@superlogica/checkbox
Advanced tools
Comparing version 0.0.32 to 0.0.33
@@ -16,2 +16,6 @@ "use strict"; | ||
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
// coordenadas SVG para cada ícone | ||
@@ -24,5 +28,9 @@ var checkBoxIcons = { | ||
var Checkbox = function Checkbox(props) { | ||
var Checkbox = function Checkbox(_ref) { | ||
var className = _ref.className, | ||
props = _objectWithoutProperties(_ref, ["className"]); | ||
var variant = checkBoxIcons[props.variant] ? props.variant : 'check'; | ||
return _react.default.createElement(_Styled.GenericDiv, { | ||
className: className, | ||
dark: props.dark | ||
@@ -29,0 +37,0 @@ }, _react.default.createElement(_Styled.Label, { |
{ | ||
"name": "@superlogica/checkbox", | ||
"version": "0.0.32", | ||
"version": "0.0.33", | ||
"description": "Checkbox - DSweb Superlogica", | ||
@@ -16,3 +16,3 @@ "dependencies": { | ||
"license": "MIT", | ||
"gitHead": "dfe3c3ff0dab5e2945e9ad3646d90ea881cb9ec5" | ||
"gitHead": "53d83ab810d3d1c70429f5a5035a6757692c8bb5" | ||
} |
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
8348
155