@duik/base-input
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -1,3 +0,3 @@ | ||
import * as React from "react"; | ||
export declare type InputBaseProps = JSX.IntrinsicElements["input"] & { | ||
import * as React from 'react'; | ||
export declare type InputBaseProps = JSX.IntrinsicElements['input'] & { | ||
label?: React.ReactNode; | ||
@@ -4,0 +4,0 @@ description?: React.ReactNode; |
@@ -173,14 +173,14 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
var label = _a.label, className = _a.className, description = _a.description, toggle = _a.toggle, name = _a.name, type = _a.type, rest = __rest(_a, ["label", "className", "description", "toggle", "name", "type"]); | ||
var isRadio = type === "radio"; | ||
return (external_react_["createElement"]("label", { className: external_classnames_default()(styles_default.a["form-check"], "form-group", className, (_b = {}, | ||
var isRadio = type === 'radio'; | ||
return (external_react_["createElement"]("label", { className: external_classnames_default()(styles_default.a['form-check'], 'form-group', className, (_b = {}, | ||
_b[styles_default.a.toggle] = toggle, | ||
_b[styles_default.a.radio] = type === "radio", | ||
_b[styles_default.a.radio] = isRadio, | ||
_b)) }, | ||
external_react_["createElement"]("input", __assign({ className: styles_default.a["form-check-input"], name: name, type: isRadio ? "radio" : "checkbox" }, rest)), | ||
external_react_["createElement"]("span", { className: styles_default.a["form-check-label"] }, | ||
external_react_["createElement"]("input", __assign({ className: styles_default.a['form-check-input'], name: name, type: isRadio ? 'radio' : 'checkbox' }, rest)), | ||
external_react_["createElement"]("span", { className: styles_default.a['form-check-label'] }, | ||
!toggle && !isRadio && external_react_["createElement"](CheckboxIcon, null), | ||
label), | ||
description && (external_react_["createElement"]("p", { className: styles_default.a["form-check-description"] }, description)))); | ||
description && (external_react_["createElement"]("p", { className: styles_default.a['form-check-description'] }, description)))); | ||
}; | ||
BaseInput.displayName = "BaseInput"; | ||
BaseInput.displayName = 'BaseInput'; | ||
/* harmony default export */ var packages_BaseInput = __webpack_exports__["default"] = (BaseInput); | ||
@@ -187,0 +187,0 @@ |
{ | ||
"name": "@duik/base-input", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Dashboard UI Kit Base input for checkbox, toggle and radio", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "644fb5a5818913223e67817b93733d579e2c80c1" | ||
"gitHead": "33a562eddc8c3e87d2cd9179c0aaded0208c046d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20920
290