@mirohq/design-system-utils
Advanced tools
Comparing version 0.12.1 to 0.13.0-checkbox.0
@@ -37,3 +37,11 @@ 'use strict'; | ||
const booleanify = (value) => { | ||
if (value === false || value === "false") { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
exports.addPropsToChildren = addPropsToChildren; | ||
exports.booleanify = booleanify; | ||
exports.createConstants = createConstants; | ||
@@ -40,0 +48,0 @@ exports.isFragment = isFragment; |
@@ -33,3 +33,10 @@ import { Fragment, Children, cloneElement } from 'react'; | ||
export { addPropsToChildren, createConstants, isFragment, mapKeysToVariants }; | ||
const booleanify = (value) => { | ||
if (value === false || value === "false") { | ||
return false; | ||
} | ||
return true; | ||
}; | ||
export { addPropsToChildren, booleanify, createConstants, isFragment, mapKeysToVariants }; | ||
//# sourceMappingURL=module.js.map |
import { ReactNode, ReactElement } from 'react'; | ||
import * as _stitches_react_types_css_util from '@stitches/react/types/css-util'; | ||
import { CSSProperties } from '@stitches/react'; | ||
import { Booleanish } from '@mirohq/design-system-types'; | ||
@@ -33,2 +34,9 @@ declare const createConstants: <T extends string | number>(...constants: readonly T[]) => { [K in T]: K; }; | ||
export { addPropsToChildren, createConstants, isFragment, mapKeysToVariants }; | ||
/** | ||
* Returns boolean type. | ||
* @param value | ||
* @returns | ||
*/ | ||
declare const booleanify: (value: Booleanish) => boolean; | ||
export { addPropsToChildren, booleanify, createConstants, isFragment, mapKeysToVariants }; |
{ | ||
"name": "@mirohq/design-system-utils", | ||
"version": "0.12.1", | ||
"version": "0.13.0-checkbox.0", | ||
"description": "", | ||
@@ -28,2 +28,5 @@ "author": "Miro", | ||
}, | ||
"dependencies": { | ||
"@mirohq/design-system-types": "^0.4.0-checkbox.0" | ||
}, | ||
"scripts": { | ||
@@ -30,0 +33,0 @@ "build": "rollup -c ../../rollup.config.js", |
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
13722
114
3
+ Added@mirohq/design-system-types@0.4.1(transitive)