dtable-ui-component 6.0.110-aol.7 → 6.0.110-aol.8

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.
@@ -32,15 +32,16 @@
32
32
  .dtable-ui-user-select-container .dtable-ui-user-list-container {
33
33
  min-height: 160px;
34
34
  max-height: 200px;
35
- padding: 8px;
35
+ padding: 8px !important;
36
36
  overflow: auto;
37
+ position: relative;
37
38
  }
38
39
 
39
40
  .dtable-ui-user-select-container .form-control {
40
41
  border: none;
41
42
  border-bottom: 1px solid rgb(0 40 100 / 12%) !important;
42
43
  border-radius: 4px 4px 0 0;
43
- padding: .375rem .5rem !important;
44
+ padding: .375rem 1rem !important;
44
45
  }
45
46
 
46
47
  .dtable-ui-user-select-container .form-control:focus {
@@ -83,10 +84,6 @@
83
84
  font-size: 14px;
84
85
  }
85
86
 
86
- .dtable-ui-user-select-container .dtable-ui-user-search-container {
87
- position: relative;
88
- }
89
-
90
87
  .dtable-ui-user-select-container .dtable-ui-user-search-container .search-clear-btn {
91
88
  position: absolute;
92
89
  top: 5px;
@@ -220,7 +220,7 @@ class SelectOptionGroup extends _react.Component {
220
220
  style: style,
221
221
  onMouseDown: this.onMouseDown,
222
222
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
223
- className: "position-relative",
223
+ className: "position-relative mb-1",
224
224
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
225
225
  className: "option-search-control",
226
226
  placeholder: searchPlaceholder,
@@ -112,10 +112,12 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
112
112
  } = state;
113
113
  return {
114
114
  ...provided,
115
- fontSize: '13px',
115
+ fontSize: '14px',
116
116
  color: '#212529',
117
117
  cursor: isDisabled ? 'default' : 'pointer',
118
118
  backgroundColor: isFocused ? '#f5f5f5' : '#fff',
119
+ padding: '8px',
120
+ borderRadius: '4px',
119
121
  ':active': {
120
122
  backgroundColor: '#f5f5f5'
121
123
  },
@@ -182,11 +184,28 @@ const MenuList = props => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
182
184
  });
183
185
  exports.MenuList = MenuList;
184
186
  const Option = props => {
185
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
186
- style: props.data.style,
187
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.components.Option, {
187
+ const {
188
+ isSelected
189
+ } = props;
190
+ const baseStyle = props.data.style || {};
191
+ const containerStyle = {
192
+ ...baseStyle,
193
+ display: 'flex',
194
+ alignItems: 'center',
195
+ justifyContent: 'space-between'
196
+ };
197
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
198
+ style: containerStyle,
199
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactSelect.components.Option, {
188
200
  ...props
189
- })
201
+ }), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
202
+ className: "dtable-font dtable-icon-check-mark",
203
+ style: {
204
+ fontSize: '14px',
205
+ color: '#666666',
206
+ flexShrink: 0
207
+ }
208
+ })]
190
209
  });
191
210
  };
192
211
  exports.Option = Option;
@@ -17,7 +17,7 @@
17
17
  .option-group .option-group-search {
18
18
  width: 100%;
19
19
  min-width: 170px;
20
- padding: 8px 8px 0 !important
20
+ padding: 0 0 8px 0 !important;
21
21
  }
22
22
 
23
23
  .option-group-search .form-control {
@@ -67,6 +67,11 @@
67
67
  color: #fff;
68
68
  }
69
69
 
70
+ .optio .dtable-ui-explanation-tip {
71
+ color: #666666;
72
+ font-size: 12px !important;
73
+ }
74
+
70
75
  .option.option-active .header-icon .dtable-font,
71
76
  .option.option-active .header-icon .multicolor-icon {
72
77
  color: #fff;
@@ -216,7 +216,7 @@ class SelectOptionGroup extends _react.Component {
216
216
  style = {
217
217
  position: 'fixed',
218
218
  left: position.x,
219
- top: position.y + position.height + 4,
219
+ top: `${position.y + position.height + 4}px`,
220
220
  minWidth: position.width,
221
221
  opacity: 0
222
222
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.110-aol.7",
3
+ "version": "6.0.110-aol.8",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "^5.0.4",