dtable-ui-component 7.0.7-soa.2 → 7.0.7-utg.2

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.
@@ -2,9 +2,9 @@
2
2
  flex-wrap: wrap;
3
3
  height: auto !important;
4
4
  min-height: 38px;
5
- max-width: calc(100% - 10px);
6
5
  padding: .375rem 40px .375rem 1rem;
7
6
  position: relative;
7
+ border-radius: 4px;
8
8
  }
9
9
 
10
10
  .dtable-ui-selected-users-container.focus {
@@ -12,7 +12,7 @@
12
12
  }
13
13
 
14
14
  .dtable-ui-selected-users-container .dtable-ui-user-select-placeholder {
15
- color: var(--bs-icon-color);
15
+ color: var(--bs-bg-placeholder-color)
16
16
  }
17
17
 
18
18
  .select-dropdown-indicator {
@@ -31,8 +31,6 @@
31
31
 
32
32
  .dtable-ui-user-select-popover {
33
33
  z-index: 1060;
34
- width: 385px !important;
35
- max-width: 385px;
36
34
  margin-top: -4px;
37
35
  background-color: var(--bs-popover-bg);
38
36
  box-shadow: var(--bs-border-secondary-shadow);
@@ -67,8 +65,7 @@
67
65
  background: none !important;
68
66
  }
69
67
 
70
- .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover,
71
- .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container-highlight {
68
+ .dtable-ui-user-select-container .dtable-ui-user-list-container .dtable-ui-user-item-container:hover {
72
69
  background-color: var(--bs-btn-background-hover);
73
70
  cursor: pointer;
74
71
  }
@@ -74,14 +74,12 @@ const AsyncUserSelect = _ref => {
74
74
  const trimmedSearchValue = (searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim()) || '';
75
75
  if (!trimmedSearchValue) {
76
76
  setSearchedUsers([]);
77
- setHighlightIndex(-1);
78
77
  return;
79
78
  }
80
79
  loadOptions && loadOptions(searchValue, function () {
81
80
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
82
81
  // [{ email, name, avatar_url }, ...]
83
82
  setSearchedUsers(options);
84
- setHighlightIndex(options.length > 0 ? 0 : -1);
85
83
  });
86
84
  }, [loadOptions]);
87
85
  const onSearchValueChanged = (0, _react.useCallback)(newSearchValue => {
@@ -13,6 +13,10 @@
13
13
  height: 32px;
14
14
  }
15
15
 
16
+ .select-search-control::placeholder {
17
+ color: var(--bs-bg-placeholder-color);
18
+ }
19
+
16
20
  .select-search-control {
17
21
  height: 100%;
18
22
  border: none;
@@ -101,7 +101,7 @@
101
101
  line-height: 20px;
102
102
  margin-right: 8px;
103
103
  width: calc(100% - 20px);
104
- display: flex;
104
+ display: block;
105
105
  text-overflow: ellipsis;
106
106
  overflow: hidden;
107
107
  white-space: nowrap;
@@ -19,5 +19,4 @@
19
19
  width: 100%;
20
20
  overflow: hidden;
21
21
  text-overflow: ellipsis;
22
- white-space: nowrap;
23
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "7.0.7soa.2",
3
+ "version": "7.0.7utg.2",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "5.0.9",