@itcase/ui 1.0.32 → 1.0.34
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/Avatar.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/Select.js +1 -1
- package/dist/css/components/Avatar/Avatar.css +5 -7
- package/dist/css/components/Dropdown/Dropdown.css +30 -5
- package/dist/css/components/Empty/Empty.css +6 -0
- package/dist/css/components/Select/Select.css +3 -3
- package/dist/css/components/Select/css/__menu/select__menu.css +3 -3
- package/package.json +1 -1
|
@@ -82,7 +82,7 @@ function Avatar(props) {
|
|
|
82
82
|
return "" + firstChar + secondChar;
|
|
83
83
|
}, [firstName, secondName]);
|
|
84
84
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
85
|
-
className: clsx__default.default(className, 'avatar', shapeClass, size && "avatar_size_" + size, type && "avatar_type_" + type),
|
|
85
|
+
className: clsx__default.default(className, 'avatar', shapeClass, size && "avatar_size_" + size, type && "avatar_type_" + type, onClick && 'cursor_type_pointer'),
|
|
86
86
|
onClick: onClick
|
|
87
87
|
}, /*#__PURE__*/React__default.default.createElement("div", {
|
|
88
88
|
className: clsx__default.default('avatar__wrapper', fillClass, fillHoverClass)
|
package/dist/components/Label.js
CHANGED
|
@@ -82,14 +82,14 @@ function Label(props) {
|
|
|
82
82
|
var _useStyles = useStyles.useStyles(props),
|
|
83
83
|
labelStyles = _useStyles.styles;
|
|
84
84
|
return /*#__PURE__*/React__default.default.createElement("div", {
|
|
85
|
-
className: clsx__default.default(className, 'label', fillClass || appearance && ("fill_" + labelConfig.appearance[appearance].fillClass).replace(/([A-Z])/g, '-$1').toLowerCase(), shapeClass, borderClass, borderTypeClass, sizeClass, wrapClass, alignDirectionClass, alignClass, type && "label_type_" + type, set && "label_set_" + set),
|
|
85
|
+
className: clsx__default.default(className, 'label', fillClass || labelConfig.appearance[appearance] && ("fill_" + labelConfig.appearance[appearance].fillClass).replace(/([A-Z])/g, '-$1').toLowerCase(), shapeClass, borderClass, borderTypeClass, sizeClass, wrapClass, alignDirectionClass, alignClass, type && "label_type_" + type, set && "label_set_" + set),
|
|
86
86
|
"data-tour": dataTour,
|
|
87
87
|
style: labelStyles
|
|
88
88
|
}, /*#__PURE__*/React__default.default.createElement("div", {
|
|
89
89
|
className: "label__inner"
|
|
90
90
|
}, typeof label === 'string' ? /*#__PURE__*/React__default.default.createElement(index.Text, {
|
|
91
91
|
className: "label__label",
|
|
92
|
-
textColor: labelTextColor || appearance && labelConfig.appearance[appearance].labelTextColor.replace(/([A-Z])/g, '-$1').toLowerCase(),
|
|
92
|
+
textColor: labelTextColor || labelConfig.appearance[appearance] && labelConfig.appearance[appearance].labelTextColor.replace(/([A-Z])/g, '-$1').toLowerCase(),
|
|
93
93
|
size: labelTextSize,
|
|
94
94
|
textWrap: labelTextWrap
|
|
95
95
|
}, label) : /*#__PURE__*/React__default.default.createElement("div", {
|
|
@@ -7524,7 +7524,7 @@ var SelectControl = function SelectControl(props) {
|
|
|
7524
7524
|
inputBorderColor = _props$selectProps.inputBorderColor,
|
|
7525
7525
|
inputBorderColorHover = _props$selectProps.inputBorderColorHover;
|
|
7526
7526
|
return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Control, Object.assign({}, props, {
|
|
7527
|
-
className: clsx__default.default(inputFill, inputShape, inputBorderColor && "border-color_" + inputBorderColor, inputBorderColorHover && "border-color_hover_" + inputBorderColorHover)
|
|
7527
|
+
className: clsx__default.default('select__control', inputFill, inputShape, inputBorderColor && "border-color_" + inputBorderColor, inputBorderColorHover && "border-color_hover_" + inputBorderColorHover)
|
|
7528
7528
|
}));
|
|
7529
7529
|
};
|
|
7530
7530
|
SelectControl.propTypes = {
|
|
@@ -22,13 +22,11 @@
|
|
|
22
22
|
width: $(size)px;
|
|
23
23
|
height: $(size)px;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
justify-content: center;
|
|
31
|
-
}
|
|
25
|
+
width: $(size)px;
|
|
26
|
+
height: $(size)px;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
32
|
}
|
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
.dropdown {
|
|
2
2
|
display: flex;
|
|
3
3
|
position: relative;
|
|
4
|
-
&
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
&_set {
|
|
5
|
+
&_normal {
|
|
6
|
+
^^&__wrapper {
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
padding: 12px 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
&_compact {
|
|
13
|
+
^^&__wrapper {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
padding: 8px 0;
|
|
17
|
+
gap: 8px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
7
20
|
}
|
|
8
21
|
}
|
|
9
22
|
.dropdown {
|
|
@@ -42,8 +55,20 @@
|
|
|
42
55
|
}
|
|
43
56
|
.dropdown {
|
|
44
57
|
&__item {
|
|
45
|
-
|
|
46
|
-
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
align-items: center;
|
|
61
|
+
gap: 8px;
|
|
62
|
+
&_set {
|
|
63
|
+
&_normal {
|
|
64
|
+
min-width: 240px;
|
|
65
|
+
padding: 10px 12px 10px 16px;
|
|
66
|
+
}
|
|
67
|
+
&_compact {
|
|
68
|
+
min-width: 180px;
|
|
69
|
+
padding: 0 12px 0 16px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
47
72
|
&-label {
|
|
48
73
|
display: block;
|
|
49
74
|
}
|
|
@@ -165,14 +165,14 @@
|
|
|
165
165
|
z-index: 100000;
|
|
166
166
|
}
|
|
167
167
|
&-list {
|
|
168
|
-
overflow-y:
|
|
168
|
+
overflow-y: auto;
|
|
169
169
|
max-height: 240px;
|
|
170
170
|
border-radius: var(--select-menu-border-radius, 0);
|
|
171
171
|
&-item {
|
|
172
172
|
width: 100%;
|
|
173
173
|
position: relative;
|
|
174
|
-
|
|
175
|
-
|
|
174
|
+
justify-content: space-between;
|
|
175
|
+
&_state_selected {
|
|
176
176
|
}
|
|
177
177
|
&_option {
|
|
178
178
|
z-index: 100000;
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
z-index: 100000;
|
|
13
13
|
}
|
|
14
14
|
&-list {
|
|
15
|
-
overflow-y:
|
|
15
|
+
overflow-y: auto;
|
|
16
16
|
max-height: 240px;
|
|
17
17
|
border-radius: var(--select-menu-border-radius, 0);
|
|
18
18
|
&-item {
|
|
19
19
|
width: 100%;
|
|
20
20
|
position: relative;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
justify-content: space-between;
|
|
22
|
+
&_state_selected {
|
|
23
23
|
}
|
|
24
24
|
&_option {
|
|
25
25
|
z-index: 100000;
|