@itcase/ui 1.0.86 → 1.0.88
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/dist/components/Cell.js +16 -12
- package/dist/components/Choice.js +21 -5
- package/dist/components/Dropdown.js +4 -5
- package/dist/components/Icon.js +13 -1
- package/dist/components/Input.js +32 -5
- package/dist/css/components/Choice/Choice.css +52 -33
- package/dist/css/components/Choice/css/__item/choice__item.css +12 -0
- package/dist/css/components/Input/Input.css +16 -8
- package/package.json +1 -1
package/dist/components/Cell.js
CHANGED
|
@@ -44,7 +44,7 @@ var clsx__default = /*#__PURE__*/_interopDefault(clsx);
|
|
|
44
44
|
function Cell(props) {
|
|
45
45
|
const {
|
|
46
46
|
className,
|
|
47
|
-
|
|
47
|
+
showTitleIcon,
|
|
48
48
|
titleIconFill,
|
|
49
49
|
titleIconFillSize,
|
|
50
50
|
titleIconIconFill,
|
|
@@ -53,7 +53,7 @@ function Cell(props) {
|
|
|
53
53
|
titleIconSrc,
|
|
54
54
|
titleIconShape,
|
|
55
55
|
titleIcon,
|
|
56
|
-
|
|
56
|
+
showValueIcon,
|
|
57
57
|
valueIconFill,
|
|
58
58
|
valueIconFillSize,
|
|
59
59
|
valueIconIconFill,
|
|
@@ -78,7 +78,7 @@ function Cell(props) {
|
|
|
78
78
|
titleTextSize,
|
|
79
79
|
titleTextColor,
|
|
80
80
|
titleTextWeight,
|
|
81
|
-
|
|
81
|
+
showTitleLabel,
|
|
82
82
|
titleLabelAppearance,
|
|
83
83
|
titleLabel,
|
|
84
84
|
titleLabelTextSize,
|
|
@@ -90,9 +90,11 @@ function Cell(props) {
|
|
|
90
90
|
valueLabelTextSize,
|
|
91
91
|
valueLabelShape,
|
|
92
92
|
valueLabelSize,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
93
|
+
titleTextWrap,
|
|
94
|
+
valueTextWrap,
|
|
95
|
+
zeroPadding,
|
|
96
|
+
zeroGap,
|
|
97
|
+
reverse,
|
|
96
98
|
onClick,
|
|
97
99
|
onMouseEnter
|
|
98
100
|
} = props;
|
|
@@ -145,7 +147,7 @@ function Cell(props) {
|
|
|
145
147
|
propsKey: 'width'
|
|
146
148
|
});
|
|
147
149
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
148
|
-
className: clsx__default.default(className, 'cell', size && `cell_size_${size}`, set && `cell_set_${set}`, bgFillClass, bgFillHoverClass, isActive && bgFillActiveClass, isDisabled && bgFillDisabledClass, bgShapeClass, widthClass,
|
|
150
|
+
className: clsx__default.default(className, 'cell', size && `cell_size_${size}`, set && `cell_set_${set}`, bgFillClass, bgFillHoverClass, isActive && bgFillActiveClass, isDisabled && bgFillDisabledClass, bgShapeClass, widthClass, zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'),
|
|
149
151
|
onClick: onClick,
|
|
150
152
|
onMouseEnter: onMouseEnter
|
|
151
153
|
}, before && /*#__PURE__*/React__default.default.createElement("div", {
|
|
@@ -159,8 +161,9 @@ function Cell(props) {
|
|
|
159
161
|
size: titleTextSize,
|
|
160
162
|
tag: titleTag,
|
|
161
163
|
textColor: titleTextColor,
|
|
162
|
-
textWeight: titleTextWeight
|
|
163
|
-
|
|
164
|
+
textWeight: titleTextWeight,
|
|
165
|
+
textWrap: titleTextWrap
|
|
166
|
+
}, title), showTitleIcon && /*#__PURE__*/React__default.default.createElement(index$1.Icon, {
|
|
164
167
|
className: "cell__icon",
|
|
165
168
|
fill: titleIconFill,
|
|
166
169
|
fillSize: titleIconFillSize,
|
|
@@ -170,7 +173,7 @@ function Cell(props) {
|
|
|
170
173
|
imageSrc: titleIconSrc,
|
|
171
174
|
shape: titleIconShape,
|
|
172
175
|
SvgImage: titleIcon
|
|
173
|
-
}),
|
|
176
|
+
}), showTitleLabel && /*#__PURE__*/React__default.default.createElement(index$2.Label, {
|
|
174
177
|
appearance: titleLabelAppearance,
|
|
175
178
|
label: titleLabel,
|
|
176
179
|
labelTextSize: titleLabelTextSize,
|
|
@@ -183,8 +186,9 @@ function Cell(props) {
|
|
|
183
186
|
size: valueTextSize,
|
|
184
187
|
tag: valueTag,
|
|
185
188
|
textColor: valueTextColor,
|
|
186
|
-
textWeight: valueTextWeight
|
|
187
|
-
|
|
189
|
+
textWeight: valueTextWeight,
|
|
190
|
+
textWrap: valueTextWrap
|
|
191
|
+
}, value), showValueIcon && /*#__PURE__*/React__default.default.createElement(index$1.Icon, {
|
|
188
192
|
className: "cell__icon",
|
|
189
193
|
fill: valueIconFill,
|
|
190
194
|
fillSize: valueIconFillSize,
|
|
@@ -46,6 +46,7 @@ const Choice = /*#__PURE__*/React__default.default.forwardRef(function Choice(pr
|
|
|
46
46
|
type,
|
|
47
47
|
options,
|
|
48
48
|
active,
|
|
49
|
+
isDisabled,
|
|
49
50
|
set,
|
|
50
51
|
setActiveSegment,
|
|
51
52
|
size,
|
|
@@ -55,8 +56,12 @@ const Choice = /*#__PURE__*/React__default.default.forwardRef(function Choice(pr
|
|
|
55
56
|
before,
|
|
56
57
|
after,
|
|
57
58
|
icon,
|
|
59
|
+
iconFillDisabled,
|
|
60
|
+
iconStrokeDisabled,
|
|
58
61
|
activeIcon,
|
|
59
62
|
iconSize,
|
|
63
|
+
labelTextActiveColorDisabled,
|
|
64
|
+
labelTextColorDisabled,
|
|
60
65
|
activeIconItemFill,
|
|
61
66
|
iconItemFill,
|
|
62
67
|
iconStroke,
|
|
@@ -88,6 +93,10 @@ const Choice = /*#__PURE__*/React__default.default.forwardRef(function Choice(pr
|
|
|
88
93
|
prefix: 'fill_',
|
|
89
94
|
propsKey: 'fill'
|
|
90
95
|
});
|
|
96
|
+
const fillDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
97
|
+
prefix: 'fill_disabled_',
|
|
98
|
+
propsKey: 'fillDisabled'
|
|
99
|
+
});
|
|
91
100
|
const fillHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
92
101
|
prefix: 'fill_hover_',
|
|
93
102
|
propsKey: 'fillHover'
|
|
@@ -96,13 +105,17 @@ const Choice = /*#__PURE__*/React__default.default.forwardRef(function Choice(pr
|
|
|
96
105
|
prefix: 'fill_active_',
|
|
97
106
|
propsKey: 'fillActive'
|
|
98
107
|
});
|
|
108
|
+
const fillActiveDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
109
|
+
prefix: 'fill_active_disabled_',
|
|
110
|
+
propsKey: 'fillActiveDisabled'
|
|
111
|
+
});
|
|
99
112
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
100
|
-
className: clsx__default.default(className, 'choice', shapeClass, fillClass, borderColorClass, borderWidthClass, borderTypeClass, set && `choice_set_${set}`, size && `choice_size_${size}`, type && `choice_type_${type}`),
|
|
113
|
+
className: clsx__default.default(className, 'choice', shapeClass, !isDisabled ? fillClass : fillDisabledClass, borderColorClass, borderWidthClass, borderTypeClass, set && `choice_set_${set}`, size && `choice_size_${size}`, type && `choice_type_${type}`),
|
|
101
114
|
ref: controlRef
|
|
102
115
|
}, /*#__PURE__*/React__default.default.createElement("div", {
|
|
103
116
|
className: "choice__wrapper"
|
|
104
117
|
}, options?.map((item, i) => /*#__PURE__*/React__default.default.createElement("div", {
|
|
105
|
-
className: clsx__default.default('choice__item', fillHoverClass, item.value
|
|
118
|
+
className: clsx__default.default('choice__item', !isDisabled && fillHoverClass, item.value !== active.value && isDisabled && 'choice__item_state_disabled', item.value === active.value ? !isDisabled ? fillActiveClass : fillActiveDisabledClass : !isDisabled ? fillClass : fillDisabledClass, item.value === active.value && isDisabled && 'choice__item_active_state_disabled', item.value === active.value && 'choice__item_active'),
|
|
106
119
|
key: item.value,
|
|
107
120
|
ref: optionsRefs.get(item.value)
|
|
108
121
|
}, /*#__PURE__*/React__default.default.createElement("input", {
|
|
@@ -110,20 +123,23 @@ const Choice = /*#__PURE__*/React__default.default.forwardRef(function Choice(pr
|
|
|
110
123
|
className: "choice__item-radio",
|
|
111
124
|
id: `${name}-${item.value}`,
|
|
112
125
|
name: name,
|
|
126
|
+
disabled: isDisabled,
|
|
113
127
|
type: isMultiple ? 'checkbox' : 'radio',
|
|
114
128
|
value: item.value,
|
|
115
129
|
onChange: event => onChange(event, item)
|
|
116
130
|
}), /*#__PURE__*/React__default.default.createElement("label", {
|
|
117
|
-
className: clsx__default.default('choice__item-label'),
|
|
131
|
+
className: clsx__default.default('choice__item-label', isDisabled && 'choice__item-label_state_disabled'),
|
|
118
132
|
htmlFor: `${name}-${item.value}`
|
|
119
133
|
}, before, item.label && /*#__PURE__*/React__default.default.createElement(index.Text, {
|
|
120
134
|
size: labelTextSize,
|
|
121
|
-
textColor: item.value === active.value ? labelTextActiveColor : labelTextColor
|
|
135
|
+
textColor: item.value === active.value ? !isDisabled ? labelTextActiveColor : labelTextActiveColorDisabled : !isDisabled ? labelTextColor : labelTextColorDisabled
|
|
122
136
|
}, item.label), (icon || activeIcon) && /*#__PURE__*/React__default.default.createElement(index$1.Icon, {
|
|
123
137
|
className: "choice__item-icon",
|
|
124
138
|
iconFill: item.value === active.value ? activeIconItemFill : iconItemFill,
|
|
139
|
+
iconFillDisabled: isDisabled && iconFillDisabled,
|
|
125
140
|
iconSize: iconSize,
|
|
126
|
-
|
|
141
|
+
iconStroke: iconStroke,
|
|
142
|
+
iconStrokeDisabled: isDisabled && iconStrokeDisabled,
|
|
127
143
|
SvgImage: item.value === active.value ? activeIcon : icon
|
|
128
144
|
}), after)))));
|
|
129
145
|
});
|
|
@@ -112,11 +112,10 @@ function Dropdown(props) {
|
|
|
112
112
|
className: clsx__default.default(className, 'dropdown', set && `dropdown_set_${set}`, shapeClass, elevationClass, isOpen ? 'dropdown_state_open' : 'dropdown_state_close', animationState.className),
|
|
113
113
|
ref: dropdownRef,
|
|
114
114
|
style: styles
|
|
115
|
-
}, children &&
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
className: clsx__default.default('dropdown__wrapper', fillClass, fillHoverClass),
|
|
115
|
+
}, children && /*#__PURE__*/React__default.default.createElement("div", {
|
|
116
|
+
className: clsx__default.default('dropdown__wrapper', fillClass, fillHoverClass)
|
|
117
|
+
// Add "onAnimationEnd" only for wrapper for ignore dropdown button
|
|
118
|
+
,
|
|
120
119
|
onAnimationEnd: onAnimationEnd
|
|
121
120
|
}, children));
|
|
122
121
|
}
|
package/dist/components/Icon.js
CHANGED
|
@@ -82,6 +82,10 @@ const Icon = /*#__PURE__*/React__default.default.forwardRef(function Icon(props,
|
|
|
82
82
|
prefix: 'fill_hover_',
|
|
83
83
|
propsKey: 'fillHover'
|
|
84
84
|
});
|
|
85
|
+
const fillDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
86
|
+
prefix: 'fill_disabled_',
|
|
87
|
+
propsKey: 'fillDisabled'
|
|
88
|
+
});
|
|
85
89
|
const fillSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
86
90
|
prefix: 'icon_fill_size_',
|
|
87
91
|
propsKey: 'fillSize'
|
|
@@ -94,6 +98,10 @@ const Icon = /*#__PURE__*/React__default.default.forwardRef(function Icon(props,
|
|
|
94
98
|
prefix: 'icon_fill_hover_',
|
|
95
99
|
propsKey: 'iconFillHover'
|
|
96
100
|
});
|
|
101
|
+
const iconFillDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
102
|
+
prefix: 'icon_fill_disabled_',
|
|
103
|
+
propsKey: 'iconFillDisabled'
|
|
104
|
+
});
|
|
97
105
|
const iconStrokeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
98
106
|
prefix: 'icon_stroke_',
|
|
99
107
|
propsKey: 'iconStroke'
|
|
@@ -102,6 +110,10 @@ const Icon = /*#__PURE__*/React__default.default.forwardRef(function Icon(props,
|
|
|
102
110
|
prefix: 'icon_stroke_hover_',
|
|
103
111
|
propsKey: 'iconStrokeHover'
|
|
104
112
|
});
|
|
113
|
+
const iconStrokeDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
114
|
+
prefix: 'icon_stroke_disabled_',
|
|
115
|
+
propsKey: 'iconStrokeDisabled'
|
|
116
|
+
});
|
|
105
117
|
const iconSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
106
118
|
prefix: 'icon_size_',
|
|
107
119
|
propsKey: 'iconSize'
|
|
@@ -147,7 +159,7 @@ const Icon = /*#__PURE__*/React__default.default.forwardRef(function Icon(props,
|
|
|
147
159
|
return null;
|
|
148
160
|
}, [SvgImage, imageSrc]);
|
|
149
161
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
150
|
-
className: clsx__default.default(className, 'icon', fillClass, fillHoverClass, fillSizeClass, iconFillClass, iconFillHoverClass, shapeClass, iconStrokeClass, iconStrokeHoverClass, borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, cursorClass, Badge && 'icon_type_with-badge', (link || href || onClick) && 'cursor_type_pointer'),
|
|
162
|
+
className: clsx__default.default(className, 'icon', fillClass, fillHoverClass, fillSizeClass, fillDisabledClass, iconFillClass, iconFillHoverClass, iconFillDisabledClass, shapeClass, iconStrokeClass, iconStrokeHoverClass, iconStrokeDisabledClass, borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, cursorClass, Badge && 'icon_type_with-badge', (link || href || onClick) && 'cursor_type_pointer'),
|
|
151
163
|
"data-tour": dataTour,
|
|
152
164
|
id: id,
|
|
153
165
|
ref: ref,
|
package/dist/components/Input.js
CHANGED
|
@@ -30,7 +30,7 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
|
|
|
30
30
|
type,
|
|
31
31
|
className,
|
|
32
32
|
placeholder,
|
|
33
|
-
|
|
33
|
+
isDisabled,
|
|
34
34
|
value,
|
|
35
35
|
onBlur,
|
|
36
36
|
onChange,
|
|
@@ -41,6 +41,10 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
|
|
|
41
41
|
prefix: 'fill_',
|
|
42
42
|
propsKey: 'fill'
|
|
43
43
|
});
|
|
44
|
+
const fillDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
45
|
+
prefix: 'fill_disabled_',
|
|
46
|
+
propsKey: 'fillDisabled'
|
|
47
|
+
});
|
|
44
48
|
const sizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
45
49
|
prefix: 'input_size_',
|
|
46
50
|
propsKey: 'size'
|
|
@@ -57,6 +61,10 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
|
|
|
57
61
|
prefix: 'text-color_',
|
|
58
62
|
propsKey: 'textColor'
|
|
59
63
|
});
|
|
64
|
+
const textColorDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
65
|
+
prefix: 'text-color_disabled_',
|
|
66
|
+
propsKey: 'textColor'
|
|
67
|
+
});
|
|
60
68
|
const caretClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
61
69
|
prefix: 'caret-color_',
|
|
62
70
|
propsKey: 'caret'
|
|
@@ -65,6 +73,10 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
|
|
|
65
73
|
prefix: 'placeholder-text-color_',
|
|
66
74
|
propsKey: 'placeholderTextColor'
|
|
67
75
|
});
|
|
76
|
+
const placeholderTextColorDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
77
|
+
prefix: 'placeholder-text-color_disabled_',
|
|
78
|
+
propsKey: 'placeholderTextColorDisabled'
|
|
79
|
+
});
|
|
68
80
|
const weightClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
69
81
|
prefix: 'text-weight_',
|
|
70
82
|
propsKey: 'textWeight'
|
|
@@ -73,21 +85,36 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
|
|
|
73
85
|
prefix: 'border-width_',
|
|
74
86
|
propsKey: 'borderWidth'
|
|
75
87
|
});
|
|
88
|
+
const borderWidthDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
89
|
+
prefix: 'border-width_disabled_',
|
|
90
|
+
propsKey: 'borderWidthDisabled'
|
|
91
|
+
});
|
|
76
92
|
const borderColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
77
93
|
prefix: 'border-color_',
|
|
78
94
|
propsKey: 'borderColor'
|
|
79
95
|
});
|
|
96
|
+
const borderColorDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
97
|
+
prefix: 'border-color_disabled_',
|
|
98
|
+
propsKey: 'borderColorDisabled'
|
|
99
|
+
});
|
|
80
100
|
const widthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
81
101
|
prefix: 'width_',
|
|
82
102
|
propsKey: 'width'
|
|
83
103
|
});
|
|
104
|
+
|
|
105
|
+
// const disabledClasses = {
|
|
106
|
+
// 'borderColorClass': 'borderColorDisabledClass',
|
|
107
|
+
// 'placeholderTextColorClass': 'placeholderTextColorDisabledClass',
|
|
108
|
+
// 'textColorClass': 'textColorDisabledClass'
|
|
109
|
+
// }
|
|
110
|
+
|
|
84
111
|
return /*#__PURE__*/React__default.default.createElement("input", {
|
|
85
|
-
className: clsx__default.default(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || weightClass) && 'text', caretClass, fillClass, shapeClass, textSizeClass, weightClass, widthClass, borderWidthClass, sizeClass, borderColorClass || inputConfig.state[state]?.borderColor && `border-color_${inputConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), placeholderTextColorClass || inputConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textColorClass || inputConfig.state[state]?.textColor && `text-color_${inputConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
112
|
+
className: clsx__default.default(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || weightClass) && 'text', caretClass, !isDisabled ? fillClass : fillDisabledClass, shapeClass, textSizeClass, weightClass, widthClass, !isDisabled ? borderWidthClass : borderWidthDisabledClass, sizeClass, !isDisabled ? borderColorClass || inputConfig.state[state]?.borderColor && `border-color_${inputConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : borderColorDisabledClass || inputConfig.state[state]?.borderColor && `border-color_disabled_${inputConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? placeholderTextColorClass || inputConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : placeholderTextColorDisabledClass || inputConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? textColorClass || inputConfig.state[state]?.textColor && `text-color_${inputConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : textColorDisabledClass || inputConfig.state[state]?.textColor && `text-color_${inputConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase()),
|
|
86
113
|
type: type,
|
|
87
114
|
id: id,
|
|
88
115
|
index: index,
|
|
89
116
|
ref: ref,
|
|
90
|
-
disabled:
|
|
117
|
+
disabled: isDisabled,
|
|
91
118
|
placeholder: placeholder,
|
|
92
119
|
value: value,
|
|
93
120
|
onBlur: onBlur,
|
|
@@ -102,7 +129,7 @@ Input.propTypes = {
|
|
|
102
129
|
placeholder: PropTypes__default.default.string,
|
|
103
130
|
value: PropTypes__default.default.string,
|
|
104
131
|
checked: PropTypes__default.default.bool,
|
|
105
|
-
|
|
132
|
+
isDisabled: PropTypes__default.default.bool,
|
|
106
133
|
onBlur: PropTypes__default.default.func,
|
|
107
134
|
onChange: PropTypes__default.default.func,
|
|
108
135
|
onKeyDown: PropTypes__default.default.func,
|
|
@@ -170,7 +197,7 @@ Input.__docgenInfo = {
|
|
|
170
197
|
},
|
|
171
198
|
"required": false
|
|
172
199
|
},
|
|
173
|
-
"
|
|
200
|
+
"isDisabled": {
|
|
174
201
|
"description": "",
|
|
175
202
|
"type": {
|
|
176
203
|
"name": "bool"
|
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
.choice {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
&__wrapper {
|
|
6
|
-
position: relative;
|
|
7
|
-
display: flex;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
.choice {
|
|
11
|
-
&_shape {
|
|
12
|
-
&_rounded {
|
|
13
|
-
border-radius: var(--choice-shape-rounded, 8px);
|
|
14
|
-
overflow: hidden;
|
|
15
|
-
}
|
|
16
|
-
&_circular {
|
|
17
|
-
border-radius: 50%;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
.choice {
|
|
22
|
-
&_size {
|
|
23
|
-
@each $size in xs, s, m, l, xl, xxl, tiny, compact, normal, large {
|
|
24
|
-
&_$(size) {
|
|
25
|
-
^^&__item {
|
|
26
|
-
&-label {
|
|
27
|
-
padding: var(--choice-item-size-$(size)-padding, 9px 16px);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
1
|
.choice__item {
|
|
35
2
|
min-width: 30px;
|
|
36
3
|
position: relative;
|
|
@@ -41,8 +8,20 @@
|
|
|
41
8
|
&:not(:last-child) {
|
|
42
9
|
border-right: 1px solid var(--choice-border-color);
|
|
43
10
|
}
|
|
11
|
+
&_state_disabled {
|
|
12
|
+
background: var(--choice-item-state-disabled-background, #ECECEC);
|
|
13
|
+
&:hover {
|
|
14
|
+
background: var(--choice-item-state-disabled-background, #ECECEC);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
44
17
|
&_active {
|
|
45
18
|
background: var(--choice-item-background-active);
|
|
19
|
+
&_state_disabled {
|
|
20
|
+
background: var(--choice-item-active-state-disabled-background, #ccc);
|
|
21
|
+
&:hover {
|
|
22
|
+
background: var(--choice-item-active-state-disabled-background, #ccc);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
46
25
|
}
|
|
47
26
|
& input {
|
|
48
27
|
width: 100%;
|
|
@@ -68,8 +47,48 @@
|
|
|
68
47
|
padding: var(--choice-item-icon-padding);
|
|
69
48
|
}
|
|
70
49
|
}
|
|
50
|
+
|
|
51
|
+
.choice {
|
|
52
|
+
&_shape {
|
|
53
|
+
&_rounded {
|
|
54
|
+
border-radius: var(--choice-shape-rounded, 8px);
|
|
55
|
+
overflow: hidden;
|
|
56
|
+
}
|
|
57
|
+
&_circular {
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.choice {
|
|
64
|
+
&_size {
|
|
65
|
+
@each $size in xs, s, m, l, xl, xxl, tiny, compact, normal, large {
|
|
66
|
+
&_$(size) {
|
|
67
|
+
^^&__item {
|
|
68
|
+
&-label {
|
|
69
|
+
padding: var(--choice-item-size-$(size)-padding, 9px 16px);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.choice {
|
|
78
|
+
position: relative;
|
|
79
|
+
display: flex;
|
|
80
|
+
align-items: center;
|
|
81
|
+
&__wrapper {
|
|
82
|
+
position: relative;
|
|
83
|
+
display: flex;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
71
87
|
:root {
|
|
88
|
+
|
|
72
89
|
--choice-item-background-hover: var(--color-surface-secondary);
|
|
90
|
+
|
|
73
91
|
--choice-item-background-active: var(--color-surface-active);
|
|
92
|
+
|
|
74
93
|
--choice-border-color: var(--color-surface-border-tertiary);
|
|
75
94
|
}
|
|
@@ -8,8 +8,20 @@
|
|
|
8
8
|
&:not(:last-child) {
|
|
9
9
|
border-right: 1px solid var(--choice-border-color);
|
|
10
10
|
}
|
|
11
|
+
&_state_disabled {
|
|
12
|
+
background: var(--choice-item-state-disabled-background, #ECECEC);
|
|
13
|
+
&:hover {
|
|
14
|
+
background: var(--choice-item-state-disabled-background, #ECECEC);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
11
17
|
&_active {
|
|
12
18
|
background: var(--choice-item-background-active);
|
|
19
|
+
&_state_disabled {
|
|
20
|
+
background: var(--choice-item-active-state-disabled-background, #ccc);
|
|
21
|
+
&:hover {
|
|
22
|
+
background: var(--choice-item-active-state-disabled-background, #ccc);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
13
25
|
}
|
|
14
26
|
& input {
|
|
15
27
|
width: 100%;
|
|
@@ -1,32 +1,40 @@
|
|
|
1
1
|
.input {
|
|
2
|
-
|
|
3
|
-
appearance: none;
|
|
2
|
+
min-width: unset;
|
|
4
3
|
padding: 0;
|
|
5
4
|
margin: 0;
|
|
6
|
-
|
|
5
|
+
border: none;
|
|
6
|
+
position: relative;
|
|
7
7
|
box-shadow: none;
|
|
8
|
+
appearance: none;
|
|
8
9
|
outline: 0;
|
|
9
|
-
position: relative;
|
|
10
10
|
caret-color: var(--input-caret-color);
|
|
11
|
+
&:disabled {
|
|
12
|
+
background: var(--input-state-disabled-background, #ECECEC);
|
|
13
|
+
border: solid 1px var(--input-state-disabled-border, #747474);
|
|
14
|
+
&:hover {
|
|
15
|
+
background: var(--input-state-disabled-background, #ECECEC);
|
|
16
|
+
border: solid 1px var(--input-state-disabled-border, #747474);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
11
19
|
&:focus {
|
|
12
20
|
outline: none;
|
|
13
21
|
}
|
|
14
22
|
&:hover {
|
|
15
|
-
border: solid 1px var(--input-state-hover-border);
|
|
16
23
|
background: var(--input-state-hover-background);
|
|
24
|
+
border: solid 1px var(--input-state-hover-border);
|
|
17
25
|
}
|
|
18
26
|
&&_state {
|
|
19
27
|
&_success {
|
|
20
|
-
border: solid 1px var(--input-state-success-border);
|
|
21
28
|
background: var(--input-state-success-background);
|
|
29
|
+
border: solid 1px var(--input-state-success-border);
|
|
22
30
|
}
|
|
23
31
|
&_error {
|
|
24
|
-
border: solid 1px var(--input-state-error-border);
|
|
25
32
|
background: var(--input-state-error-background);
|
|
33
|
+
border: solid 1px var(--input-state-error-border);
|
|
26
34
|
}
|
|
27
35
|
&_focus {
|
|
28
|
-
border: solid 1px var(--input-state-focus-border);
|
|
29
36
|
background: var(--input-state-focus-background);
|
|
37
|
+
border: solid 1px var(--input-state-focus-border);
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
40
|
}
|