@bone-ui/utils
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -8,1 +8,2 @@ import React from 'react'; | ||
export declare function forwardRef(component: React.ForwardRefRenderFunction<any, any>): any; | ||
export declare function isReactText(children: any): boolean; |
@@ -50,2 +50,5 @@ 'use strict'; | ||
} | ||
function isReactText(children) { | ||
return ['string', 'number'].includes(typeof children); | ||
} | ||
@@ -59,3 +62,4 @@ exports.__DEV__ = __DEV__; | ||
exports.guid = guid; | ||
exports.isReactText = isReactText; | ||
exports.last = last; | ||
//# sourceMappingURL=utils.cjs.development.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r,t=(r=require("react"))&&"object"==typeof r&&"default"in r?r.default:r;exports.__DEV__=!1,exports.chunk=function(r,t){return r.reduce((function(r,e,n){return n%t==0?r.push([e]):r[r.length-1].push(e),r}),[])},exports.cx=function(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.filter(Boolean).join(" ")},exports.first=function(r){return null!=r&&r.length?r[0]:void 0},exports.forwardRef=function(r){return t.forwardRef(r)},exports.fromEntries=function(r){return r.reduce((function(r,t){return r[t[0]]=t[1],r}),{})},exports.guid=function(){return String.fromCharCode(Math.floor(26*Math.random())+97)+Math.random().toString(16).slice(2)+Date.now().toString(16).slice(4)},exports.last=function(r){var t=null==r?0:r.length;return t?r[t-1]:void 0}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r,t=(r=require("react"))&&"object"==typeof r&&"default"in r?r.default:r;exports.__DEV__=!1,exports.chunk=function(r,t){return r.reduce((function(r,e,n){return n%t==0?r.push([e]):r[r.length-1].push(e),r}),[])},exports.cx=function(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.filter(Boolean).join(" ")},exports.first=function(r){return null!=r&&r.length?r[0]:void 0},exports.forwardRef=function(r){return t.forwardRef(r)},exports.fromEntries=function(r){return r.reduce((function(r,t){return r[t[0]]=t[1],r}),{})},exports.guid=function(){return String.fromCharCode(Math.floor(26*Math.random())+97)+Math.random().toString(16).slice(2)+Date.now().toString(16).slice(4)},exports.isReactText=function(r){return["string","number"].includes(typeof r)},exports.last=function(r){var t=null==r?0:r.length;return t?r[t-1]:void 0}; | ||
//# sourceMappingURL=utils.cjs.production.min.js.map |
@@ -44,4 +44,7 @@ import React from 'react'; | ||
} | ||
function isReactText(children) { | ||
return ['string', 'number'].includes(typeof children); | ||
} | ||
export { __DEV__, chunk, cx, first, forwardRef, fromEntries, guid, last }; | ||
export { __DEV__, chunk, cx, first, forwardRef, fromEntries, guid, isReactText, last }; | ||
//# sourceMappingURL=utils.esm.js.map |
{ | ||
"name": "@bone-ui/utils", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"license": "MIT", | ||
@@ -22,3 +22,3 @@ "main": "dist/index.js", | ||
"module": "dist/utils.esm.js", | ||
"gitHead": "9570c1adc873190d663bab1659d52b169a9b3d69" | ||
"gitHead": "07166c96874173d1404716e61dd161d0acbe5beb" | ||
} |
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
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
17010
160