@bone-ui/badge
Advanced tools
Comparing version 0.25.0 to 0.29.0
@@ -16,3 +16,2 @@ 'use strict'; | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
@@ -23,3 +22,2 @@ key = sourceKeys[i]; | ||
} | ||
return target; | ||
@@ -31,8 +29,7 @@ } | ||
var _props$variant = props.variant, | ||
variant = _props$variant === void 0 ? 'standard' : _props$variant, | ||
children = props.children, | ||
content = props.content, | ||
max = props.max, | ||
rest = _objectWithoutPropertiesLoose(props, _excluded); | ||
variant = _props$variant === void 0 ? 'standard' : _props$variant, | ||
children = props.children, | ||
content = props.content, | ||
max = props.max, | ||
rest = _objectWithoutPropertiesLoose(props, _excluded); | ||
var hasChildren = !!children; | ||
@@ -68,3 +65,2 @@ var isStandard = variant === 'standard'; | ||
}); | ||
function getContent(content, max) { | ||
@@ -74,3 +70,2 @@ if (max === void 0) { | ||
} | ||
if (typeof content !== 'number') return content; | ||
@@ -77,0 +72,0 @@ if (max > 0) return max + '+'; |
@@ -10,3 +10,2 @@ import React from 'react'; | ||
var key, i; | ||
for (i = 0; i < sourceKeys.length; i++) { | ||
@@ -17,3 +16,2 @@ key = sourceKeys[i]; | ||
} | ||
return target; | ||
@@ -25,8 +23,7 @@ } | ||
var _props$variant = props.variant, | ||
variant = _props$variant === void 0 ? 'standard' : _props$variant, | ||
children = props.children, | ||
content = props.content, | ||
max = props.max, | ||
rest = _objectWithoutPropertiesLoose(props, _excluded); | ||
variant = _props$variant === void 0 ? 'standard' : _props$variant, | ||
children = props.children, | ||
content = props.content, | ||
max = props.max, | ||
rest = _objectWithoutPropertiesLoose(props, _excluded); | ||
var hasChildren = !!children; | ||
@@ -62,3 +59,2 @@ var isStandard = variant === 'standard'; | ||
}); | ||
function getContent(content, max) { | ||
@@ -68,3 +64,2 @@ if (max === void 0) { | ||
} | ||
if (typeof content !== 'number') return content; | ||
@@ -71,0 +66,0 @@ if (max > 0) return max + '+'; |
{ | ||
"name": "@bone-ui/badge", | ||
"version": "0.25.0", | ||
"version": "0.29.0", | ||
"license": "MIT", | ||
@@ -23,5 +23,4 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@bone-ui/utils": "^0.25.0" | ||
}, | ||
"gitHead": "39b7d355e13975accaae6ac2ecc011a68e3078ff" | ||
"@bone-ui/utils": "^0.29.0" | ||
} | ||
} |
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
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
16783
11
+ Added@bone-ui/utils@0.29.0(transitive)
- Removed@bone-ui/utils@0.25.0(transitive)
Updated@bone-ui/utils@^0.29.0