@itcase/ui 1.0.25 → 1.0.27
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/Button.js +3 -1
- package/dist/components/DatePicker.js +4 -1
- package/dist/components/Notification.js +3 -2
- package/dist/components/RadioButton.js +5 -1
- package/dist/components/Select.js +12 -1
- package/dist/css/components/RadioButton/RadioButton.css +2 -1
- package/dist/css/components/Select/Select.css +7 -1
- package/dist/css/components/Select/css/__menu/select__menu.css +3 -1
- package/dist/css/components/Select/css/__single-value/select__single-value.css +1 -0
- package/dist/css/components/Select/css/__value-container/select__value-container.css +3 -0
- package/dist/css/components/Tab/Tab.css +1 -0
- package/package.json +1 -1
|
@@ -61,6 +61,7 @@ var Button = /*#__PURE__*/React__default.default.forwardRef(function Button(prop
|
|
|
61
61
|
label = props.label,
|
|
62
62
|
labelTextColor = props.labelTextColor,
|
|
63
63
|
labelTextSize = props.labelTextSize,
|
|
64
|
+
labelTextWrap = props.labelTextWrap,
|
|
64
65
|
loaderSet = props.loaderSet,
|
|
65
66
|
loaderFill = props.loaderFill,
|
|
66
67
|
loaderItemFill = props.loaderItemFill,
|
|
@@ -158,7 +159,8 @@ var Button = /*#__PURE__*/React__default.default.forwardRef(function Button(prop
|
|
|
158
159
|
className: "button__label",
|
|
159
160
|
size: labelTextSize,
|
|
160
161
|
style: labelStyles,
|
|
161
|
-
textColor: labelTextColor
|
|
162
|
+
textColor: labelTextColor,
|
|
163
|
+
textWrap: labelTextWrap
|
|
162
164
|
}, children || label), iconAfter && /*#__PURE__*/React__default.default.createElement(index$2.Icon, {
|
|
163
165
|
className: "button__icon_after",
|
|
164
166
|
iconFill: iconAfterFill,
|
|
@@ -10201,7 +10201,9 @@ function DatePickerInput(props) {
|
|
|
10201
10201
|
return /*#__PURE__*/React__namespace.default.createElement("div", {
|
|
10202
10202
|
className: clsx__default.default(className, 'datepicker', (datePickerProps == null ? void 0 : datePickerProps.monthsShown) && 'datepicker_type_multiple-months', (datePickerProps == null ? void 0 : datePickerProps.customTimeInput) && 'datepicker_type_button')
|
|
10203
10203
|
}, /*#__PURE__*/React__namespace.default.createElement(Xt, Object.assign({
|
|
10204
|
-
customInput: /*#__PURE__*/React__namespace.default.createElement(DatePickerСustomInput, inputProps
|
|
10204
|
+
customInput: /*#__PURE__*/React__namespace.default.createElement(DatePickerСustomInput, Object.assign({}, inputProps, {
|
|
10205
|
+
inputProps: inputProps
|
|
10206
|
+
})),
|
|
10205
10207
|
endDate: (datePickerProps == null ? void 0 : datePickerProps.selectsRange) && endDate,
|
|
10206
10208
|
locale: ru,
|
|
10207
10209
|
renderCustomHeader: renderCustomHeader,
|
|
@@ -10213,6 +10215,7 @@ function DatePickerInput(props) {
|
|
|
10213
10215
|
}
|
|
10214
10216
|
var DatePickerСustomInput = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10215
10217
|
return /*#__PURE__*/React__namespace.default.createElement(index.Input, Object.assign({}, props, {
|
|
10218
|
+
placeholder: props.inputProps.placeholder,
|
|
10216
10219
|
ref: ref
|
|
10217
10220
|
}));
|
|
10218
10221
|
});
|
|
@@ -19,11 +19,12 @@ function NotificationItem(props) {
|
|
|
19
19
|
status = props.status,
|
|
20
20
|
size = props.size,
|
|
21
21
|
text = props.text,
|
|
22
|
-
title = props.title
|
|
22
|
+
title = props.title,
|
|
23
|
+
className = props.className;
|
|
23
24
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
24
25
|
className: clsx__default.default('notification__item', status && "notification__item_status_" + status, set && "notification__item_set_" + set, size && "notification__item_set_" + size)
|
|
25
26
|
}, before, /*#__PURE__*/React__default.default.createElement("div", {
|
|
26
|
-
className:
|
|
27
|
+
className: clsx__default.default(className, 'notification__item-wrapper')
|
|
27
28
|
}, title && /*#__PURE__*/React__default.default.createElement("div", {
|
|
28
29
|
className: "notification__item-title"
|
|
29
30
|
}, title), text && /*#__PURE__*/React__default.default.createElement("div", {
|
|
@@ -80,6 +80,10 @@ function RadioButton(props) {
|
|
|
80
80
|
prefix: 'border-color_',
|
|
81
81
|
propsKey: checked ? 'stateBorderColorChecked' : 'stateBorderColor'
|
|
82
82
|
});
|
|
83
|
+
var stateBorderColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
84
|
+
prefix: 'border-color_hover_',
|
|
85
|
+
propsKey: checked ? 'stateBorderColorHoverChecked' : 'stateBorderColorHover'
|
|
86
|
+
});
|
|
83
87
|
var stateBorderColorDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
84
88
|
prefix: 'border-color_',
|
|
85
89
|
propsKey: checked ? 'stateBorderColorDisabledChecked' : 'stateBorderColorDisabled'
|
|
@@ -97,7 +101,7 @@ function RadioButton(props) {
|
|
|
97
101
|
type: "radio",
|
|
98
102
|
onChange: onChange
|
|
99
103
|
}), /*#__PURE__*/React__default.default.createElement("div", {
|
|
100
|
-
className: clsx__default.default('radio-button__state', disabled ? stateFillDisabledClass : stateFillClass, disabled ? stateBorderColorDisabledClass : stateBorderColorClass, stateShapeClass, stateBorderWidthClass)
|
|
104
|
+
className: clsx__default.default('radio-button__state', disabled ? stateFillDisabledClass : stateFillClass, disabled ? stateBorderColorDisabledClass : stateBorderColorClass, stateBorderColorHoverClass, stateShapeClass, stateBorderWidthClass)
|
|
101
105
|
}, "\xA0"), /*#__PURE__*/React__default.default.createElement("div", {
|
|
102
106
|
className: "radio-button__state-checkmark"
|
|
103
107
|
}, "\xA0")), label && /*#__PURE__*/React__default.default.createElement(index.Text, {
|
|
@@ -7558,12 +7558,14 @@ var SelectGroupHeading = function SelectGroupHeading(props) {
|
|
|
7558
7558
|
var _props$selectProps = props.selectProps,
|
|
7559
7559
|
headingFill = _props$selectProps.headingFill,
|
|
7560
7560
|
headingFillHover = _props$selectProps.headingFillHover,
|
|
7561
|
+
headingTextWeight = _props$selectProps.headingTextWeight,
|
|
7561
7562
|
headingTextSize = _props$selectProps.headingTextSize,
|
|
7562
7563
|
headingTextColor = _props$selectProps.headingTextColor;
|
|
7563
7564
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.GroupHeading, Object.assign({}, props, {
|
|
7564
7565
|
className: clsx__default.default('select__menu-group-heading', headingFill, headingFillHover)
|
|
7565
7566
|
}), /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
|
|
7566
7567
|
size: headingTextSize,
|
|
7568
|
+
textWeight: headingTextWeight,
|
|
7567
7569
|
textColor: headingTextColor
|
|
7568
7570
|
}, props.data.label));
|
|
7569
7571
|
};
|
|
@@ -7590,7 +7592,10 @@ SelectInput.propTypes = {
|
|
|
7590
7592
|
};
|
|
7591
7593
|
|
|
7592
7594
|
var SelectMenu = function SelectMenu(props) {
|
|
7593
|
-
|
|
7595
|
+
var elevation = props.selectProps.elevation;
|
|
7596
|
+
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Menu, Object.assign({}, props, {
|
|
7597
|
+
className: clsx__default.default(elevation && "elevation_" + elevation)
|
|
7598
|
+
}), props.selectProps.fetchingData ? /*#__PURE__*/React__namespace.default.createElement("span", {
|
|
7594
7599
|
className: "fetching"
|
|
7595
7600
|
}, "Fetching data...") : /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, props.children));
|
|
7596
7601
|
};
|
|
@@ -7779,6 +7784,7 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7779
7784
|
noOptionsText = props.noOptionsText,
|
|
7780
7785
|
openMenuOnClick = props.openMenuOnClick,
|
|
7781
7786
|
options = props.options,
|
|
7787
|
+
elevation = props.elevation,
|
|
7782
7788
|
placeholder = props.placeholder,
|
|
7783
7789
|
set = props.set,
|
|
7784
7790
|
value = props.value,
|
|
@@ -7880,6 +7886,9 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7880
7886
|
var headingTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7881
7887
|
propsKey: 'headingTextSize'
|
|
7882
7888
|
});
|
|
7889
|
+
var headingTextWeightClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7890
|
+
propsKey: 'headingTextWeight'
|
|
7891
|
+
});
|
|
7883
7892
|
var headingTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
|
|
7884
7893
|
propsKey: 'headingTextColor'
|
|
7885
7894
|
});
|
|
@@ -7891,6 +7900,7 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7891
7900
|
classNamePrefix: "select",
|
|
7892
7901
|
styles: clearStyle,
|
|
7893
7902
|
value: value,
|
|
7903
|
+
elevation: elevation,
|
|
7894
7904
|
isClearable: isClearable,
|
|
7895
7905
|
openMenuOnClick: openMenuOnClick,
|
|
7896
7906
|
clearIcon: clearIcon,
|
|
@@ -7935,6 +7945,7 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
7935
7945
|
headingFillHover: headingFillHoverClass,
|
|
7936
7946
|
headingTextSize: headingTextSizeClass,
|
|
7937
7947
|
headingTextColor: headingTextColorClass,
|
|
7948
|
+
headingTextWeight: headingTextWeightClass,
|
|
7938
7949
|
multipleItemFill: multipleItemFill,
|
|
7939
7950
|
multipleItemFillHover: multipleItemFillHover,
|
|
7940
7951
|
multipleItemTextSize: multipleItemTextSizeClass,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
grid-template-rows: auto auto;
|
|
5
5
|
column-gap: 4px;
|
|
6
6
|
&:hover {
|
|
7
|
-
|
|
7
|
+
^&__state {
|
|
8
8
|
border-color: var(--radio-button-state-hover-border);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
min-width: 16px;
|
|
19
19
|
grid-row-start: span 2;
|
|
20
20
|
align-self: start;
|
|
21
|
+
margin: 2px 0 0 0;
|
|
21
22
|
^&__input {
|
|
22
23
|
cursor: pointer;
|
|
23
24
|
appearance: none;
|
|
@@ -154,18 +154,20 @@
|
|
|
154
154
|
.select {
|
|
155
155
|
&__menu {
|
|
156
156
|
width: 100%;
|
|
157
|
-
margin: 0;
|
|
157
|
+
margin: var(--select-menu-margin, 0);
|
|
158
158
|
border-top: none;
|
|
159
159
|
position: absolute;
|
|
160
160
|
left: 0;
|
|
161
161
|
top: 100%;
|
|
162
162
|
z-index: 100000;
|
|
163
|
+
border-radius: var(--select-menu-border-radius, 0);
|
|
163
164
|
&-group-heading {
|
|
164
165
|
z-index: 100000;
|
|
165
166
|
}
|
|
166
167
|
&-list {
|
|
167
168
|
overflow-y: scroll;
|
|
168
169
|
max-height: 240px;
|
|
170
|
+
border-radius: var(--select-menu-border-radius, 0);
|
|
169
171
|
&-item {
|
|
170
172
|
width: 100%;
|
|
171
173
|
&_option {
|
|
@@ -259,6 +261,7 @@
|
|
|
259
261
|
.select {
|
|
260
262
|
&__single-value {
|
|
261
263
|
display: flex;
|
|
264
|
+
position: absolute;
|
|
262
265
|
}
|
|
263
266
|
}
|
|
264
267
|
|
|
@@ -272,6 +275,9 @@
|
|
|
272
275
|
align-items: center;
|
|
273
276
|
&--is-multi {
|
|
274
277
|
gap: 8px;
|
|
278
|
+
& .select__placeholder {
|
|
279
|
+
position: relative;
|
|
280
|
+
}
|
|
275
281
|
& .select__input-container {
|
|
276
282
|
display: none;
|
|
277
283
|
}
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
.select {
|
|
2
2
|
&__menu {
|
|
3
3
|
width: 100%;
|
|
4
|
-
margin: 0;
|
|
4
|
+
margin: var(--select-menu-margin, 0);
|
|
5
5
|
border-top: none;
|
|
6
6
|
position: absolute;
|
|
7
7
|
left: 0;
|
|
8
8
|
top: 100%;
|
|
9
9
|
z-index: 100000;
|
|
10
|
+
border-radius: var(--select-menu-border-radius, 0);
|
|
10
11
|
&-group-heading {
|
|
11
12
|
z-index: 100000;
|
|
12
13
|
}
|
|
13
14
|
&-list {
|
|
14
15
|
overflow-y: scroll;
|
|
15
16
|
max-height: 240px;
|
|
17
|
+
border-radius: var(--select-menu-border-radius, 0);
|
|
16
18
|
&-item {
|
|
17
19
|
width: 100%;
|
|
18
20
|
&_option {
|