dtable-ui-component 5.2.5-alpha5 → 5.2.6

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,4 @@
1
+ .dtable-select__indicator.dtable-select__dropdown-indicator,
2
+ .dtable-select__indicator.dtable-select__clear-indicator {
3
+ padding: 8px 6px;
4
+ }
@@ -8,6 +8,7 @@ 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");
11
12
  class DTableSelect extends _react.default.Component {
12
13
  render() {
13
14
  const {
@@ -33,7 +34,7 @@ class DTableSelect extends _react.default.Component {
33
34
  onChange: onChange,
34
35
  options: options,
35
36
  isMulti: isMulti,
36
- classNamePrefix: classNamePrefix,
37
+ classNamePrefix: 'dtable-select' + classNamePrefix,
37
38
  styles: style || _utils.MenuSelectStyle,
38
39
  components: {
39
40
  Option: _utils.Option,
@@ -70,6 +71,7 @@ DTableSelect.defaultProps = {
70
71
  isMulti: false,
71
72
  autoFocus: false,
72
73
  menuPortalTarget: '.modal',
74
+ classNamePrefix: '',
73
75
  noOptionsMessage: () => {
74
76
  return null;
75
77
  }
@@ -101,13 +101,7 @@ const MenuSelectStyle = exports.MenuSelectStyle = {
101
101
  ...base,
102
102
  zIndex: 9999
103
103
  }),
104
- indicatorSeparator: () => {},
105
- indicatorsContainer: provided => {
106
- return {
107
- ...provided,
108
- padding: '8px 6px'
109
- };
110
- }
104
+ indicatorSeparator: () => {}
111
105
  };
112
106
  const DropdownIndicator = props => {
113
107
  return _reactSelect.components.DropdownIndicator && /*#__PURE__*/_react.default.createElement(_reactSelect.components.DropdownIndicator, props, /*#__PURE__*/_react.default.createElement("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "5.2.5-alpha5",
3
+ "version": "5.2.6",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "3.0.1",