dtable-ui-component 0.1.96-test1 → 0.1.96-test4

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,10 +2,6 @@
2
2
  position: relative;
3
3
  }
4
4
 
5
- .dtable-ui-collaborator-editor-container .collaborators-container {
6
- margin-top: 8px;
7
- }
8
-
9
5
  .dtable-ui-collaborator-editor-popover .collaborator-search-container {
10
6
  padding: 10px 10px 0 10px;
11
7
  }
@@ -190,16 +190,16 @@ var CollaboratorEditor = /*#__PURE__*/function (_React$Component) {
190
190
  var enableDeleteCollaborator = !isReadOnly;
191
191
  return /*#__PURE__*/React.createElement("div", {
192
192
  ref: this.setEditorContainerRef,
193
- className: "cell-editor dtable-ui-collaborator-editor"
193
+ className: "dtable-ui-collaborator-editor"
194
194
  }, /*#__PURE__*/React.createElement("div", {
195
195
  ref: this.setEditorRef,
196
196
  className: "dtable-ui-collaborator-editor-container"
197
197
  }, /*#__PURE__*/React.createElement(EditEditorButton, {
198
198
  text: getLocale('Add_a_collaborator'),
199
199
  onClick: this.onAddOptionToggle
200
- }), /*#__PURE__*/React.createElement("div", {
201
- className: "collaborators-container"
202
- }, selectedCollaborators.length > 0 && selectedCollaborators.map(function (collaborator) {
200
+ }), selectedCollaborators.length > 0 && /*#__PURE__*/React.createElement("div", {
201
+ className: "collaborators-container mt-2"
202
+ }, selectedCollaborators.map(function (collaborator) {
203
203
  return /*#__PURE__*/React.createElement(CollaboratorItem, {
204
204
  key: collaborator.email,
205
205
  collaborator: collaborator,
@@ -11,40 +11,15 @@ var EditEditorButton = /*#__PURE__*/function (_React$Component) {
11
11
  var _super = _createSuper(EditEditorButton);
12
12
 
13
13
  function EditEditorButton() {
14
- var _this;
15
-
16
14
  _classCallCheck(this, EditEditorButton);
17
15
 
18
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
19
- args[_key] = arguments[_key];
20
- }
21
-
22
- _this = _super.call.apply(_super, [this].concat(args));
23
-
24
- _this.getStyle = function () {
25
- return {
26
- display: 'inline-block',
27
- padding: '0 12px',
28
- height: '28px',
29
- lineHeight: '28px',
30
- fontSize: '14px',
31
- backgroundColor: '#f0f0f0',
32
- color: '#8f8f8f',
33
- borderRadius: '4px',
34
- cursor: 'pointer',
35
- userSelect: 'none'
36
- };
37
- };
38
-
39
- return _this;
16
+ return _super.apply(this, arguments);
40
17
  }
41
18
 
42
19
  _createClass(EditEditorButton, [{
43
20
  key: "render",
44
21
  value: function render() {
45
22
  var text = this.props.text;
46
- var style = this.getStyle(); //<span style={style} onClick={this.props.onClick}>{text}</span>
47
-
48
23
  return /*#__PURE__*/React.createElement("span", {
49
24
  className: "dtable-ui-editor-button",
50
25
  onClick: this.props.onClick
@@ -1,8 +1,3 @@
1
1
  .dtable-ui-link-editor {
2
2
  position: relative;
3
3
  }
4
-
5
- .dtable-ui-link-editor-container {
6
- display: inline-block;
7
- height: 30px;
8
- }
@@ -261,7 +261,7 @@ var LinkEditor = /*#__PURE__*/function (_React$Component) {
261
261
  var isShowRemoveIcon = !isReadOnly;
262
262
  return /*#__PURE__*/React.createElement("div", {
263
263
  ref: this.setEditorContainerRef,
264
- className: "cell-editor dtable-ui-link-editor"
264
+ className: "dtable-ui-link-editor"
265
265
  }, /*#__PURE__*/React.createElement("div", {
266
266
  ref: this.setEditorRef,
267
267
  className: "dtable-ui-link-editor-container",
@@ -2,13 +2,13 @@
2
2
  position: relative;
3
3
  }
4
4
 
5
- .dtable-ui-select-editor-container {
5
+ .dtable-ui-single-select-option-container {
6
6
  height: 40px;
7
7
  padding: 10px 5px;
8
8
  border-radius: 3px;
9
9
  cursor: pointer;
10
10
  }
11
11
 
12
- .dtable-ui-select-editor-container:hover {
12
+ .dtable-ui-single-select-option-container:hover {
13
13
  background-color: #f5f5f5;
14
14
  }
@@ -157,14 +157,16 @@ var SingleSelectEditor = /*#__PURE__*/function (_React$Component) {
157
157
  var selectedOptions = option ? [option] : [];
158
158
  return /*#__PURE__*/React.createElement("div", {
159
159
  ref: this.setEditorContainerRef,
160
- className: "cell-editor dtable-ui-single-select-editor"
160
+ className: "dtable-ui-single-select-editor"
161
161
  }, /*#__PURE__*/React.createElement("div", {
162
162
  ref: this.setEditorRef,
163
- className: "dtable-ui-select-editor-container",
163
+ className: "dtable-ui-single-select-editor-container d-inline-block",
164
164
  onClick: this.onAddOptionToggle
165
- }, option ? /*#__PURE__*/React.createElement(SelectEditorOption, {
165
+ }, option ? /*#__PURE__*/React.createElement("div", {
166
+ className: "dtable-ui-single-select-option-container"
167
+ }, /*#__PURE__*/React.createElement(SelectEditorOption, {
166
168
  option: option
167
- }) : /*#__PURE__*/React.createElement(EditEditorButton, {
169
+ })) : /*#__PURE__*/React.createElement(EditEditorButton, {
168
170
  text: getLocale('Add_an_option')
169
171
  })), isPopoverShow && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(MediaQuery, {
170
172
  query: "(min-width: 768px)"
@@ -75,11 +75,7 @@ var TextEditor = /*#__PURE__*/function (_React$Component) {
75
75
  key: "render",
76
76
  value: function render() {
77
77
  var isReadOnly = this.props.isReadOnly;
78
- return /*#__PURE__*/React.createElement("div", {
79
- className: "cell-editor text-editor"
80
- }, /*#__PURE__*/React.createElement("div", {
81
- className: "text-editor-container"
82
- }, /*#__PURE__*/React.createElement(Input, {
78
+ return /*#__PURE__*/React.createElement(Input, {
83
79
  ref: this.setInputRef,
84
80
  type: "text",
85
81
  value: this.state.newValue,
@@ -89,7 +85,7 @@ var TextEditor = /*#__PURE__*/function (_React$Component) {
89
85
  onBlur: this.onBlur,
90
86
  onCut: this.onCut,
91
87
  onPaste: this.onPaste
92
- })));
88
+ });
93
89
  }
94
90
  }]);
95
91
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.96-test1",
3
+ "version": "0.1.96-test4",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",