@superlogica/checkbox
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -32,15 +32,15 @@ "use strict"; | ||
var variant = checkBoxIcons[props.variant] ? props.variant : 'check'; | ||
return _react.default.createElement(_Styled.GenericDiv, { | ||
return /*#__PURE__*/_react.default.createElement(_Styled.GenericDiv, { | ||
className: className, | ||
dark: props.dark | ||
}, _react.default.createElement(_Styled.Label, { | ||
}, /*#__PURE__*/_react.default.createElement(_Styled.Label, { | ||
htmlFor: props.id | ||
}, _react.default.createElement(_Styled.CheckDiv, { | ||
}, /*#__PURE__*/_react.default.createElement(_Styled.CheckDiv, { | ||
checked: props.checked | ||
}, _react.default.createElement(_Styled.HiddenCheckbox, props), _react.default.createElement(_Styled.StyledCheckbox, { | ||
}, /*#__PURE__*/_react.default.createElement(_Styled.HiddenCheckbox, props), /*#__PURE__*/_react.default.createElement(_Styled.StyledCheckbox, { | ||
checked: props.checked | ||
}, _react.default.createElement(_Styled.Icon, { | ||
}, /*#__PURE__*/_react.default.createElement(_Styled.Icon, { | ||
viewBox: "0 0 24 24", | ||
checked: props.checked | ||
}, _react.default.createElement("polyline", { | ||
}, /*#__PURE__*/_react.default.createElement("polyline", { | ||
points: checkBoxIcons[variant] | ||
@@ -51,2 +51,3 @@ })))), props.label || '')); | ||
Checkbox.propTypes = { | ||
className: _propTypes.default.string, | ||
checked: _propTypes.default.bool, | ||
@@ -53,0 +54,0 @@ dark: _propTypes.default.bool, |
{ | ||
"name": "@superlogica/checkbox", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"description": "Checkbox - DSweb Superlogica", | ||
@@ -16,3 +16,3 @@ "dependencies": { | ||
"license": "MIT", | ||
"gitHead": "53d83ab810d3d1c70429f5a5035a6757692c8bb5" | ||
"gitHead": "acee48e0afd9b3477ae860f6b014cc29adb220cd" | ||
} |
@@ -133,3 +133,3 @@ "use strict"; | ||
textColor = _ref4.textColor; | ||
return "\n margin: ".concat(marginTop, " ").concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft, ";\n color: ").concat(textColor, ";\n & > label:hover ").concat(CheckDiv, " {\n border-color: ").concat(theme.color.primary, ";\n }\n ").concat(Label, " {\n font-size: ").concat(theme.typography.fontSize, ";\n font-weight: ").concat(theme.typography.fontWeight, ";\n font-family: ").concat(theme.typography.fontFamily[0], ";\n }\n "); | ||
return "\n margin: ".concat(marginTop, " ").concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft, ";\n color: ").concat(textColor, ";\n\n & > label:hover ").concat(CheckDiv, " {\n border-color: ").concat(theme.color.primary, ";\n }\n ").concat(Label, " {\n font-size: ").concat(theme.typography.fontSize, ";\n font-weight: ").concat(theme.typography.fontWeight, ";\n font-family: ").concat(theme.typography.fontFamily[0], ";\n }\n "); | ||
}); // lerna | ||
@@ -136,0 +136,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8387
156