dtable-ui-component 0.1.91 → 0.1.92

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.
@@ -1 +1,5 @@
1
1
  @import url('../css/cell-formatter.css');
2
+
3
+ .dtable-ui.checkbox-formatter .checkbox-checked-mark {
4
+ color: '#20c933';
5
+ }
@@ -24,15 +24,17 @@ var CheckboxFormatter = /*#__PURE__*/function (_React$PureComponent) {
24
24
  value = _this$props.value,
25
25
  containerClassName = _this$props.containerClassName;
26
26
  value = value === true ? true : false;
27
- var classname = cn('dtable-ui cell-formatter-container checkbox-formatter', containerClassName);
28
- return /*#__PURE__*/React.createElement("div", {
29
- className: classname
30
- }, /*#__PURE__*/React.createElement("input", {
31
- className: "checkbox",
32
- type: "checkbox",
33
- readOnly: true,
34
- checked: value
35
- }));
27
+ var classname = cn('dtable-ui cell-formatter-container checkbox-formatter d-flex align-items-center justify-content-center', containerClassName);
28
+
29
+ if (value) {
30
+ return /*#__PURE__*/React.createElement("div", {
31
+ className: classname
32
+ }, /*#__PURE__*/React.createElement("span", {
33
+ className: "dtable-font dtable-icon-check-mark checkbox-checked-mark"
34
+ }));
35
+ }
36
+
37
+ return null;
36
38
  }
37
39
  }]);
38
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.91",
3
+ "version": "0.1.92",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",