dtable-ui-component 0.1.95 → 0.1.96-test1

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,17 @@
1
+ .dtable-ui-editor-button {
2
+ display: inline-block;
3
+ padding: 0 12px;
4
+ height: 28px;
5
+ line-height: 28px;
6
+ font-size: 14px;
7
+ background-color: #f0f0f0;
8
+ color: #8f8f8f;
9
+ border-radius: 4px;
10
+ cursor: pointer;
11
+ user-select: none;
12
+ }
13
+
14
+ .dtable-ui-editor-button:hover {
15
+ background-color: #dbdbdb;
16
+ color: #666;
17
+ }
@@ -3,6 +3,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
3
3
  import _inherits from "@babel/runtime/helpers/esm/inherits";
4
4
  import _createSuper from "@babel/runtime/helpers/esm/createSuper";
5
5
  import React from 'react';
6
+ import './index.css';
6
7
 
7
8
  var EditEditorButton = /*#__PURE__*/function (_React$Component) {
8
9
  _inherits(EditEditorButton, _React$Component);
@@ -42,9 +43,10 @@ var EditEditorButton = /*#__PURE__*/function (_React$Component) {
42
43
  key: "render",
43
44
  value: function render() {
44
45
  var text = this.props.text;
45
- var style = this.getStyle();
46
+ var style = this.getStyle(); //<span style={style} onClick={this.props.onClick}>{text}</span>
47
+
46
48
  return /*#__PURE__*/React.createElement("span", {
47
- style: style,
49
+ className: "dtable-ui-editor-button",
48
50
  onClick: this.props.onClick
49
51
  }, text);
50
52
  }
@@ -5,5 +5,4 @@
5
5
  .dtable-ui-link-editor-container {
6
6
  display: inline-block;
7
7
  height: 30px;
8
- padding: 0 10px;
9
8
  }
@@ -1,3 +1 @@
1
- .dtable-ui-mtime-formatter {
2
- max-width: 320px;
3
- }
1
+ @import url('../css/cell-formatter.css');
@@ -36,7 +36,7 @@ var MTimeFormatter = /*#__PURE__*/function (_React$Component) {
36
36
  var _this$props = this.props,
37
37
  date = _this$props.value,
38
38
  containerClassName = _this$props.containerClassName;
39
- var classname = cn('form-control dtable-ui-mtime-formatter', containerClassName);
39
+ var classname = cn('dtable-ui cell-formatter-container ctime-formatter', containerClassName);
40
40
 
41
41
  if (date !== '') {
42
42
  date = this.formatDate(date);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.95",
3
+ "version": "0.1.96-test1",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",