dtable-ui-component 0.1.84-beta → 0.1.84-beta1
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.
- package/lib/DtableSwitch/index.js +27 -0
- package/lib/index.js +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
function DtableSwitch(props) {
|
|
4
|
+
var onChange = props.onChange,
|
|
5
|
+
checked = props.checked,
|
|
6
|
+
placeholder = props.placeholder,
|
|
7
|
+
disabled = props.disabled,
|
|
8
|
+
switchClassName = props.switchClassName;
|
|
9
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10
|
+
className: "dtable-switch ".concat(switchClassName || '')
|
|
11
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
12
|
+
className: "custom-switch"
|
|
13
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
14
|
+
className: "custom-switch-input",
|
|
15
|
+
type: "checkbox",
|
|
16
|
+
checked: checked,
|
|
17
|
+
onChange: onChange,
|
|
18
|
+
name: "custom-switch-checkbox",
|
|
19
|
+
disabled: disabled
|
|
20
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
21
|
+
className: "custom-switch-description text-truncate"
|
|
22
|
+
}, placeholder), /*#__PURE__*/React.createElement("span", {
|
|
23
|
+
className: "custom-switch-indicator"
|
|
24
|
+
})));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default DtableSwitch;
|
package/lib/index.js
CHANGED
|
@@ -41,7 +41,8 @@ export { default as SingleSelectEditor } from './SingleSelectEditor';
|
|
|
41
41
|
export { default as MultipleSelectEditor } from './MultipleSelectEditor';
|
|
42
42
|
export { default as CollaboratorEditor } from './CollaboratorEditor';
|
|
43
43
|
export { default as DateEditor } from './DateEditor';
|
|
44
|
-
export { default as LinkEditor } from './LinkEditor'; //
|
|
44
|
+
export { default as LinkEditor } from './LinkEditor'; // dtable custom
|
|
45
45
|
|
|
46
46
|
export { default as DTablePopover } from './DtablePopover';
|
|
47
|
-
export { default as DTableSelect } from './DtableSelect';
|
|
47
|
+
export { default as DTableSelect } from './DtableSelect';
|
|
48
|
+
export { default as DtableSwitch } from './DtableSwitch';
|