dtable-ui-component 5.2.3-alpha.3 → 5.2.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.
@@ -36,7 +36,7 @@ class CheckboxFormatter extends _react.default.PureComponent {
36
36
  style: {
37
37
  width: '16px',
38
38
  height: '16px',
39
- color: checkboxStyle.color
39
+ fill: checkboxStyle.color
40
40
  }
41
41
  }, /*#__PURE__*/_react.default.createElement("use", {
42
42
  xlinkHref: "#".concat(checkboxStyle.type)
@@ -32,7 +32,7 @@ function DepartmentMultipleSelectFilter(props) {
32
32
  name
33
33
  } = option;
34
34
  return /*#__PURE__*/_react.default.createElement("div", {
35
- className: "dropdown-item d-flex align-items-center",
35
+ className: "department-item",
36
36
  key: index,
37
37
  onClick: event => selectDepartment(event, type)
38
38
  }, /*#__PURE__*/_react.default.createElement("input", {
@@ -37,7 +37,7 @@ function DepartmentSingleSelectFilter(props) {
37
37
  name
38
38
  } = option;
39
39
  return /*#__PURE__*/_react.default.createElement("div", {
40
- className: "dropdown-item department-item d-flex align-items-center",
40
+ className: "department-item",
41
41
  key: index,
42
42
  onClick: event => onSelect(event, type)
43
43
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -301,7 +301,6 @@
301
301
  width: 100%;
302
302
  }
303
303
 
304
- .dropdown-item .collaborator,
305
304
  .filters-list .option-group .option-group-content .collaborator {
306
305
  background-color: unset;
307
306
  }
@@ -1,4 +1,10 @@
1
1
  .departments-container.dtable-ui {
2
+ position: absolute;
3
+ background-color: #fff;
4
+ border-radius: 3px;
5
+ min-width: 12rem;
6
+ height: 285px;
7
+ box-shadow: 0 0 5px #ccc;
2
8
  top: -4px;
3
9
  left: -3px;
4
10
  width: calc(100% + 8px);
@@ -52,12 +58,14 @@
52
58
  cursor: pointer;
53
59
  }
54
60
 
55
- .departments-container.dtable-ui .dropdown-item {
56
- padding-left: 10px;
61
+ .departments-container.dtable-ui .department-item {
62
+ padding: 4px 15px 4px 10px;
57
63
  cursor: pointer;
64
+ display: flex;
65
+ align-items: center;
58
66
  }
59
67
 
60
- .departments-container.dtable-ui .dropdown-item:hover {
68
+ .departments-container.dtable-ui .department-item:hover {
61
69
  background: #f5f5f5;
62
70
  color: #212529;
63
71
  }
@@ -92,7 +92,7 @@ function DepartmentMultipleSelect(props) {
92
92
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, {
93
93
  key: id
94
94
  }, /*#__PURE__*/_react.default.createElement("div", {
95
- className: "dropdown-item d-flex align-items-center",
95
+ className: "department-item",
96
96
  onClick: event => onSelectDepartment(event, id)
97
97
  }, /*#__PURE__*/_react.default.createElement("input", {
98
98
  type: "checkbox",
@@ -123,7 +123,7 @@ function DepartmentMultipleSelect(props) {
123
123
  ref: departmentContainerRef,
124
124
  onClick: onStopPropagation,
125
125
  onMouseDown: onStopPropagation,
126
- className: "dropdown-menu show departments-container dtable-ui ".concat(classNamePrefix)
126
+ className: "departments-container dtable-ui ".concat(classNamePrefix)
127
127
  }, isShowSelectedDepartments && /*#__PURE__*/_react.default.createElement("div", {
128
128
  className: "selected-departments dtable-ui",
129
129
  onClick: onClick
@@ -146,7 +146,7 @@ class DepartmentSingleSelect extends _react.Component {
146
146
  return /*#__PURE__*/_react.default.createElement(_react.Fragment, {
147
147
  key: id
148
148
  }, /*#__PURE__*/_react.default.createElement("div", {
149
- className: "dropdown-item department-item d-flex align-items-center",
149
+ className: "department-item",
150
150
  onClick: event => this.onSelectDepartment(event, id),
151
151
  style: itemStyle
152
152
  }, /*#__PURE__*/_react.default.createElement("div", {
@@ -250,7 +250,7 @@ class DepartmentSingleSelect extends _react.Component {
250
250
  }
251
251
  render() {
252
252
  return /*#__PURE__*/_react.default.createElement("div", {
253
- className: "dropdown-menu department-editor-list dtable-ui show m-0 p-0",
253
+ className: "department-editor-list dtable-ui",
254
254
  style: this.props.menuStyle || {},
255
255
  ref: ref => this.departmentsRef = ref,
256
256
  onClick: this.onStopPropagation,
@@ -1,6 +1,14 @@
1
1
  .dtable-ui.department-editor-list {
2
+ position: absolute;
3
+ left: 0;
4
+ z-index: 1000;
5
+ text-align: left;
6
+ background-color: #fff;
7
+ border-radius: 3px;
8
+ min-width: 12rem;
2
9
  width: 300px;
3
10
  height: 285px;
11
+ box-shadow: 0 0 5px #ccc;
4
12
  }
5
13
 
6
14
  .dtable-ui.department-editor-list .editor-department-container {
@@ -44,13 +52,14 @@
44
52
  display: initial !important;
45
53
  }
46
54
 
47
- .dtable-ui.department-editor-list .editor-department-container .dropdown-item {
48
- padding-left: 10px;
49
- padding-right: 15px;
55
+ .dtable-ui.department-editor-list .editor-department-container .department-item {
56
+ padding: 4px 15px 4px 10px;
50
57
  cursor: pointer;
58
+ display: flex;
59
+ align-items: center;
51
60
  }
52
61
 
53
- .dtable-ui.department-editor-list .editor-department-container .dropdown-item:hover {
62
+ .dtable-ui.department-editor-list .editor-department-container .department-item:hover {
54
63
  background: #f5f5f5;
55
64
  color: #212529;
56
65
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "5.2.3-alpha.3",
3
+ "version": "5.2.3",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "3.0.1",