dtable-ui-component 6.0.51 → 6.0.52-alpha.0

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.
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .dtable-switch.sm .custom-switch .custom-switch-description {
23
- width: 192px;
23
+ width: auto;
24
24
  margin: 0;
25
25
  padding-right: 5px;
26
26
  color: #212529;
@@ -19,6 +19,7 @@ function DTableSwitch(_ref) {
19
19
  size = 'sm',
20
20
  switchPosition = 'right',
21
21
  switchClassName,
22
+ innerClassName,
22
23
  inputId
23
24
  } = _ref;
24
25
  const switchNode = /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -37,7 +38,9 @@ function DTableSwitch(_ref) {
37
38
  [switchClassName]: switchClassName
38
39
  }),
39
40
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("label", {
40
- className: "custom-switch",
41
+ className: (0, _classnames.default)('custom-switch', {
42
+ [innerClassName]: innerClassName
43
+ }),
41
44
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
42
45
  className: "custom-switch-input",
43
46
  type: "checkbox",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "6.0.51",
3
+ "version": "6.0.52-alpha.0",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "4.0.2",