dtable-ui-component 5.2.6-alpha1 → 5.2.6-alpha2

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.
@@ -8,7 +8,6 @@ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactSelect = _interopRequireDefault(require("react-select"));
10
10
  var _utils = require("./utils");
11
- require("./index.css");
12
11
  class DTableSelect extends _react.default.Component {
13
12
  render() {
14
13
  const {
@@ -33,9 +32,7 @@ class DTableSelect extends _react.default.Component {
33
32
  value: value,
34
33
  onChange: onChange,
35
34
  options: options,
36
- isMulti: isMulti
37
- // classNamePrefix={'dtable-select' + classNamePrefix}
38
- ,
35
+ isMulti: isMulti,
39
36
  classNamePrefix: classNamePrefix,
40
37
  styles: style || _utils.MenuSelectStyle,
41
38
  components: {
@@ -73,7 +70,6 @@ DTableSelect.defaultProps = {
73
70
  isMulti: false,
74
71
  autoFocus: false,
75
72
  menuPortalTarget: '.modal',
76
- // classNamePrefix: '',
77
73
  noOptionsMessage: () => {
78
74
  return null;
79
75
  }
@@ -104,14 +104,11 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
104
104
  indicatorSeparator: () => {}
105
105
  };
106
106
  const DropdownIndicator = props => {
107
- return _reactSelect.components.DropdownIndicator && /*#__PURE__*/_react.default.createElement(_reactSelect.components.DropdownIndicator, Object.assign({}, props, {
108
- style: {
109
- padding: '8px 6px'
110
- }
111
- }), /*#__PURE__*/_react.default.createElement("span", {
107
+ return _reactSelect.components.DropdownIndicator && /*#__PURE__*/_react.default.createElement(_reactSelect.components.DropdownIndicator, props, /*#__PURE__*/_react.default.createElement("span", {
112
108
  className: "dtable-font dtable-icon-drop-down",
113
109
  style: {
114
- fontSize: '12px'
110
+ fontSize: '12px',
111
+ marginLeft: '-2px'
115
112
  }
116
113
  }));
117
114
  };
@@ -129,14 +126,11 @@ const ClearIndicator = _ref => {
129
126
  ...innerProps,
130
127
  onMouseDown
131
128
  };
132
- return /*#__PURE__*/_react.default.createElement(_reactSelect.components.ClearIndicator, Object.assign({}, props, {
133
- style: {
134
- padding: '8px 6px'
135
- }
136
- }), /*#__PURE__*/_react.default.createElement("span", {
129
+ return /*#__PURE__*/_react.default.createElement(_reactSelect.components.ClearIndicator, props, /*#__PURE__*/_react.default.createElement("span", {
137
130
  className: "dtable-font dtable-icon-fork-number",
138
131
  style: {
139
- fontSize: '12px'
132
+ fontSize: '12px',
133
+ marginRight: '-2px'
140
134
  }
141
135
  }));
142
136
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "5.2.6-alpha1",
3
+ "version": "5.2.6-alpha2",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "3.0.1",
@@ -1,4 +0,0 @@
1
- /* .dtable-select__indicator.dtable-select__dropdown-indicator,
2
- .dtable-select__indicator.dtable-select__clear-indicator {
3
- padding: 8px 6px;
4
- } */