dtable-ui-component 5.1.2 → 5.1.3
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.
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.user-select .select-module-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.user-select .select-module.select-module-avatar {
|
|
7
|
+
height: 24px;
|
|
8
|
+
width: 24px;
|
|
9
|
+
border-radius: 50%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.user-select .select-module.select-module-name {
|
|
13
|
+
color: #212529;
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.user-select .true__value-container .select-module-container {
|
|
18
|
+
display: block;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.user-select .true__value-container .select-module.select-module-avatar {
|
|
22
|
+
height: 16px;
|
|
23
|
+
width: 16px;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.user-select .true__value-container .true__multi-value__label {
|
|
28
|
+
padding: 0px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.user-select .true__value-container .true__multi-value__label .select-module.select-module-avatar {
|
|
32
|
+
transform: translateY(-2px);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.user-select .true__value-container .select-module.select-module-name {
|
|
36
|
+
font-size: 13px;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
text-overflow: ellipsis;
|
|
39
|
+
white-space: nowrap;
|
|
40
|
+
flex: 1 1;
|
|
41
|
+
line-height: 20px;
|
|
42
|
+
margin-left: 5px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.user-select .true__control.true__control--is-focused,
|
|
46
|
+
.user-select .true__control.true__control--is-focused:hover {
|
|
47
|
+
background-color: #ffffff;
|
|
48
|
+
border-color: #1991eb;
|
|
49
|
+
outline: 0;
|
|
50
|
+
box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25);
|
|
51
|
+
}
|
|
@@ -4,9 +4,76 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.Option = exports.MenuSelectStyle = exports.MenuList = exports.DropdownIndicator = exports.ClearIndicator = void 0;
|
|
7
|
+
exports.UserSelectStyle = exports.Option = exports.MenuSelectStyle = exports.MenuList = exports.DropdownIndicator = exports.ClearIndicator = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _reactSelect = require("react-select");
|
|
10
|
+
const UserSelectStyle = exports.UserSelectStyle = {
|
|
11
|
+
option: (provided, state) => {
|
|
12
|
+
const {
|
|
13
|
+
isDisabled,
|
|
14
|
+
isFocused
|
|
15
|
+
} = state;
|
|
16
|
+
return {
|
|
17
|
+
...provided,
|
|
18
|
+
cursor: isDisabled ? 'default' : 'pointer',
|
|
19
|
+
backgroundColor: isFocused ? '#f5f5f5' : '#fff'
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
control: provided => ({
|
|
23
|
+
...provided,
|
|
24
|
+
fontSize: '14px',
|
|
25
|
+
cursor: 'pointer',
|
|
26
|
+
lineHeight: '1.5'
|
|
27
|
+
}),
|
|
28
|
+
indicatorSeparator: () => ({
|
|
29
|
+
display: 'none'
|
|
30
|
+
}),
|
|
31
|
+
dropdownIndicator: () => ({
|
|
32
|
+
display: 'none'
|
|
33
|
+
}),
|
|
34
|
+
clearIndicator: () => ({
|
|
35
|
+
display: 'none'
|
|
36
|
+
}),
|
|
37
|
+
multiValue: provided => {
|
|
38
|
+
return {
|
|
39
|
+
...provided,
|
|
40
|
+
display: 'inline-flex',
|
|
41
|
+
alignItems: 'center',
|
|
42
|
+
background: '#eaeaea',
|
|
43
|
+
borderRadius: '10px',
|
|
44
|
+
margin: '0 10px 0 0',
|
|
45
|
+
padding: '0 0 0 2px'
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
multiValueLabel: provided => {
|
|
49
|
+
return {
|
|
50
|
+
...provided,
|
|
51
|
+
padding: '0px'
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
multiValueRemove: provided => {
|
|
55
|
+
return {
|
|
56
|
+
...provided,
|
|
57
|
+
color: '#666',
|
|
58
|
+
':hover': {
|
|
59
|
+
backgroundColor: 'transparent',
|
|
60
|
+
color: '#555555'
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
singleValue: provided => {
|
|
65
|
+
return {
|
|
66
|
+
...provided,
|
|
67
|
+
display: 'inline-flex',
|
|
68
|
+
alignItems: 'center',
|
|
69
|
+
background: '#eaeaea',
|
|
70
|
+
borderRadius: '10px',
|
|
71
|
+
margin: '0',
|
|
72
|
+
padding: '0 2px',
|
|
73
|
+
width: 'fit-content'
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
};
|
|
10
77
|
const MenuSelectStyle = exports.MenuSelectStyle = {
|
|
11
78
|
option: (provided, state) => {
|
|
12
79
|
const {
|