dtable-ui-component 0.2.7-beta → 0.2.8-beta

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.
@@ -32,6 +32,14 @@
32
32
  border: unset !important;
33
33
  }
34
34
 
35
+ .dtable-radio .dtable-radio-indicator-disable {
36
+ background-color: #f5f5f5;
37
+ }
38
+
39
+ .dtable-radio .dtable-radio-selected-indicator.dtable-radio-indicator-disable {
40
+ background-color: #FF8000;
41
+ }
42
+
35
43
  .dtable-radio .dtable-radio-selected-indicator::before {
36
44
  display: inline-block;
37
45
  content: '';
@@ -44,10 +52,6 @@
44
52
  border-radius: 50%;
45
53
  }
46
54
 
47
- .dtable-radio.dtable-radio-disable .dtable-radio-indicator {
48
- background-color: #f5f5f5;
49
- }
50
-
51
55
  .dtable-radio.dtable-radio-disable .dtable-radio-selected-indicator::before {
52
56
  opacity: .5;
53
57
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import classnames from 'classnames';
3
3
  import './index.css';
4
4
 
5
- function SeaTableRadio(props) {
5
+ function DTableRadio(props) {
6
6
  return /*#__PURE__*/React.createElement("label", {
7
7
  className: classnames('dtable-radio', {
8
8
  'dtable-radio-disable': props.disabled
@@ -16,16 +16,17 @@ function SeaTableRadio(props) {
16
16
  value: props.value
17
17
  }), /*#__PURE__*/React.createElement("span", {
18
18
  className: classnames('dtable-radio-indicator', {
19
- 'dtable-radio-selected-indicator': props.isChecked
19
+ 'dtable-radio-selected-indicator': props.isChecked,
20
+ 'dtable-radio-indicator-disable': props.disabled
20
21
  })
21
22
  }), /*#__PURE__*/React.createElement("span", {
22
23
  className: "dtable-radio-description text-truncate"
23
24
  }, props.label));
24
25
  }
25
26
 
26
- SeaTableRadio.defaultProps = {
27
+ DTableRadio.defaultProps = {
27
28
  disabled: false,
28
29
  name: 'dtable-radio-input',
29
30
  onCheckedChange: function onCheckedChange() {}
30
31
  };
31
- export default SeaTableRadio;
32
+ export default DTableRadio;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.2.7beta",
3
+ "version": "0.2.8beta",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",