@mirohq/design-system-utils
Advanced tools
Comparing version 0.13.0-checkbox.0 to 0.13.0
@@ -38,6 +38,6 @@ 'use strict'; | ||
const booleanify = (value) => { | ||
if (value === false || value === "false") { | ||
return false; | ||
if (value === true || value === "true") { | ||
return true; | ||
} | ||
return true; | ||
return false; | ||
}; | ||
@@ -44,0 +44,0 @@ |
@@ -34,6 +34,6 @@ import { Fragment, Children, cloneElement } from 'react'; | ||
const booleanify = (value) => { | ||
if (value === false || value === "false") { | ||
return false; | ||
if (value === true || value === "true") { | ||
return true; | ||
} | ||
return true; | ||
return false; | ||
}; | ||
@@ -40,0 +40,0 @@ |
@@ -36,7 +36,5 @@ import { ReactNode, ReactElement } from 'react'; | ||
* Returns boolean type. | ||
* @param value | ||
* @returns | ||
*/ | ||
declare const booleanify: (value: Booleanish) => boolean; | ||
declare const booleanify: (value: Booleanish | undefined | null) => boolean; | ||
export { addPropsToChildren, booleanify, createConstants, isFragment, mapKeysToVariants }; |
{ | ||
"name": "@mirohq/design-system-utils", | ||
"version": "0.13.0-checkbox.0", | ||
"version": "0.13.0", | ||
"description": "", | ||
@@ -29,3 +29,3 @@ "author": "Miro", | ||
"dependencies": { | ||
"@mirohq/design-system-types": "^0.4.0-checkbox.0" | ||
"@mirohq/design-system-types": "^0.4.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "scripts": { |
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
13661
112