@leafygreen-ui/polymorphic
Advanced tools
Comparing version 1.3.2 to 1.3.3
# @leafygreen-ui/polymorphic | ||
## 1.3.3 | ||
### Patch Changes | ||
- 215268ff: Updates build tooling. No functional changes | ||
## 1.3.2 | ||
@@ -4,0 +10,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/polymorphic"]={},e.React)}(this,(function(e,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(n),t=function(e){return o.default.useRef(null)};function l(e){return e||"div"}function i(e){return{Component:l(e),ref:t()}}function u(e,n,r){var o;return r=null!==(o=r)&&void 0!==o?o:"div",e||("string"==typeof(null==n?void 0:n.href)?"a":r)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},f.apply(this,arguments)}function a(e,n){if(null==e)return{};var r,o,t=function(e,n){if(null==e)return{};var r,o,t={},l=Object.keys(e);for(o=0;o<l.length;o++)r=l[o],n.indexOf(r)>=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var c=["as","children"],p=function(e,n){var r=e.as,t=e.children,l=a(e,c),u=i(r).Component;return o.default.createElement(u,f({},l,{ref:n}),t)},d=o.default.forwardRef(p);d.displayName="Polymorph";e.InferredPolymorphic=function(e,n){var r,t;return(t=1===e.length?e:o.default.forwardRef(e)).displayName=null!==(r=null!=n?n:e.displayName)&&void 0!==r?r:"PolymorphicComponent",t},e.Polymorph=d,e.Polymorphic=function(e,r){var o,t=1===e.length?e:n.forwardRef(e);return t.displayName=null!==(o=null!=r?r:e.displayName)&&void 0!==o?o:"PolymorphicComponent",t},e.useInferredPolymorphic=function(e,n,r){return i(e=u(e,n,r))},e.useInferredPolymorphicComponent=u,e.usePolymorphic=i,e.usePolymorphicComponent=l,e.usePolymorphicRef=t,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self)["@leafygreen-ui/polymorphic"]={},e.React)}(this,(function(e,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=r(n),t=function(e){return o.default.useRef(null)};function l(e){return e||"div"}function i(e){return{Component:l(e),ref:t()}}function u(e,n,r){var o;return r=null!==(o=r)&&void 0!==o?o:"div",e||("string"==typeof(null==n?void 0:n.href)?"a":r)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},f.apply(this,arguments)}function a(e,n){if(null==e)return{};var r,o,t=function(e,n){if(null==e)return{};var r,o,t={},l=Object.keys(e);for(o=0;o<l.length;o++)r=l[o],n.indexOf(r)>=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],n.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var c=["as","children"],p=function(e,n){var r=e.as,t=e.children,l=a(e,c),u=i(r).Component;return o.default.createElement(u,f({},l,{ref:n}),t)},d=o.default.forwardRef(p);d.displayName="Polymorph";e.InferredPolymorphic=function(e,n){var r,t;return(t=1===e.length?e:o.default.forwardRef(e)).displayName=null!==(r=null!=n?n:e.displayName)&&void 0!==r?r:"PolymorphicComponent",t},e.Polymorph=d,e.Polymorphic=function(e,r){var o,t=1===e.length?e:n.forwardRef(e);return t.displayName=null!==(o=null!=r?r:e.displayName)&&void 0!==o?o:"PolymorphicComponent",t},e.useInferredPolymorphic=function(e,n,r){return i(e=u(e,n,r))},e.useInferredPolymorphicComponent=u,e.usePolymorphic=i,e.usePolymorphicComponent=l,e.usePolymorphicRef=t})); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@leafygreen-ui/polymorphic", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "LeafyGreen UI Kit Polymorphic", | ||
@@ -16,3 +16,5 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"build": "../../node_modules/.bin/rollup --config ../../rollup.config.js" | ||
"build": "lg build-package", | ||
"tsc": "lg build-ts", | ||
"docs": "lg build-tsdoc" | ||
}, | ||
@@ -33,4 +35,6 @@ "license": "Apache-2.0", | ||
"@emotion/styled": "^11.10.5", | ||
"next": "^13.1.6" | ||
"@lg-tools/build": "^0.1.0", | ||
"next": "^13.1.6", | ||
"@leafygreen-ui/lib": "^10.4.1" | ||
} | ||
} |
{ | ||
"extends": "../../package.tsconfig.json", | ||
"extends": "@lg-tools/build/config/package.tsconfig.json", | ||
"compilerOptions": { | ||
@@ -12,3 +12,4 @@ "declarationDir": "dist", | ||
], | ||
"exclude": ["**/*.spec.*", "**/*.story.*"], | ||
"references": [] | ||
} |
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
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
62
3409
202770
4