dtable-ui-component 0.2.8-beta → 0.2.9-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.
@@ -2,7 +2,6 @@
2
2
  user-select: none;
3
3
  cursor: default;
4
4
  display: inline-flex;
5
- align-items: center;
6
5
  margin: 0;
7
6
  font-size: 14px;
8
7
  }
@@ -12,7 +11,6 @@
12
11
  }
13
12
 
14
13
  .dtable-radio .dtable-radio-input {
15
- position: absolute;
16
14
  z-index: -1;
17
15
  opacity: 0;
18
16
  }
@@ -24,7 +22,6 @@
24
22
  border-radius: 50%;
25
23
  background-color: #ffffff;
26
24
  border: 1px solid #bdbdbd;
27
- position: relative;
28
25
  }
29
26
 
30
27
  .dtable-radio .dtable-radio-selected-indicator {
@@ -52,12 +49,7 @@
52
49
  border-radius: 50%;
53
50
  }
54
51
 
55
- .dtable-radio.dtable-radio-disable .dtable-radio-selected-indicator::before {
56
- opacity: .5;
57
- }
58
-
59
52
  .dtable-radio .dtable-radio-description {
60
- margin-left: .5rem;
61
53
  color: inherit;
62
54
  transition: .3s color;
63
55
  line-height: 16px;
@@ -1,26 +1,28 @@
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
1
2
  import React from 'react';
2
3
  import classnames from 'classnames';
3
4
  import './index.css';
4
5
 
5
6
  function DTableRadio(props) {
7
+ var className = props.className;
6
8
  return /*#__PURE__*/React.createElement("label", {
7
- className: classnames('dtable-radio', {
9
+ className: classnames('dtable-radio w-100 align-items-center', _defineProperty({
8
10
  'dtable-radio-disable': props.disabled
9
- })
11
+ }, className, className))
10
12
  }, /*#__PURE__*/React.createElement("input", {
11
13
  type: "radio",
12
- className: "dtable-radio-input",
14
+ className: "dtable-radio-input position-absolute",
13
15
  checked: props.isChecked,
14
16
  onChange: props.disabled ? function () {} : props.onCheckedChange,
15
17
  name: props.name,
16
18
  value: props.value
17
19
  }), /*#__PURE__*/React.createElement("span", {
18
- className: classnames('dtable-radio-indicator', {
20
+ className: classnames('dtable-radio-indicator position-relative', {
19
21
  'dtable-radio-selected-indicator': props.isChecked,
20
22
  'dtable-radio-indicator-disable': props.disabled
21
23
  })
22
24
  }), /*#__PURE__*/React.createElement("span", {
23
- className: "dtable-radio-description text-truncate"
25
+ className: "dtable-radio-description text-truncate ml-2"
24
26
  }, props.label));
25
27
  }
26
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.2.8beta",
3
+ "version": "0.2.9beta",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",