@redradix/components.anchor
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -1,2 +0,2 @@ | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("classnames")):"function"==typeof define&&define.amd?define(["react","classnames"],r):"object"==typeof exports?exports.anchor=r(require("react"),require("classnames")):(e.components=e.components||{},e.components.anchor=r(e.react,e.classnames))}(window,function(e,r){return function(e){var r={};function n(t){if(r[t])return r[t].exports;var a=r[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)n.d(t,a,function(r){return e[r]}.bind(null,a));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=2)}([function(r,n){r.exports=e},function(e,n){e.exports=r},function(e,r,n){e.exports=n(3)},function(e,r,n){"use strict";n.r(r);var t=n(0),a=n.n(t),o=n(1),i=n.n(o);function c(){return(c=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}var l=a.a.createElement("path",{d:"M18.586 4H15a1 1 0 0 1 0-2h6a1 1 0 0 1 1 1v6a1 1 0 0 1-2 0V5.414l-9.293 9.293a1 1 0 1 1-1.414-1.414L18.586 4zM17 13a1 1 0 0 1 2 0v6a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h6a1 1 0 0 1 0 2H5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-6z"}),u=function(e){return a.a.createElement("svg",c({width:24,height:24,"aria-labelledby":"external-link-title external-link-description"},e),l)},s=function(e){var r,n,t,o=e.children,c=e.className,l=e.isDisabled,s=e.isExternal,f=e.hierarchy,p=e.href,d=e.handleClick,b=e.overwriteClassNames,m=e.rel,y=e.renderIconExternal,h=e.role,v=e.target,x=e.title,g=b?c:i()("rdx-anchor rdx-anchor-".concat(f),(t=c,(n=c)in(r={"is-disabled":l,"is-external":s})?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r)),j="_blank"===v?"noopener noreferrer":m,O=s?"_blank":v;return a.a.createElement("a",{className:g,disabled:l,href:p,onClick:d,rel:j,role:h,target:O,title:x},o,s?function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),t=1;t<r;t++)n[t-1]=arguments[t];return"function"==typeof e&&e.apply(void 0,n)}(y,"icon anchor-icon")||a.a.createElement(u,{className:"icon anchor-icon"}):null)};s.defaultProps={hierarchy:"primary",overwriteClassNames:!1};r.default=s}])}); | ||
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("classnames")):"function"==typeof define&&define.amd?define(["react","classnames"],r):"object"==typeof exports?exports.anchor=r(require("react"),require("classnames")):(e.components=e.components||{},e.components.anchor=r(e.react,e.classnames))}(window,function(e,r){return function(e){var r={};function n(t){if(r[t])return r[t].exports;var a=r[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:t})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(n.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var a in e)n.d(t,a,function(r){return e[r]}.bind(null,a));return t},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=2)}([function(r,n){r.exports=e},function(e,n){e.exports=r},function(e,r,n){e.exports=n(3)},function(e,r,n){"use strict";n.r(r);var t=n(0),a=n.n(t),o=n(1),i=n.n(o);function l(){return(l=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e}).apply(this,arguments)}var c=a.a.createElement("title",{id:"external-link-title"},"External Link icon"),u=a.a.createElement("desc",{id:"external-link-description"},"External Link icon in svg"),s=a.a.createElement("path",{d:"M18.586 4H15a1 1 0 0 1 0-2h6a1 1 0 0 1 1 1v6a1 1 0 0 1-2 0V5.414l-9.293 9.293a1 1 0 1 1-1.414-1.414L18.586 4zM17 13a1 1 0 0 1 2 0v6a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V8a3 3 0 0 1 3-3h6a1 1 0 0 1 0 2H5a1 1 0 0 0-1 1v11a1 1 0 0 0 1 1h11a1 1 0 0 0 1-1v-6z"}),f=function(e){return a.a.createElement("svg",l({width:24,height:24,viewBox:"0 0 24 24","aria-labelledby":"external-link-title external-link-description",role:"img"},e),c,u,s)},d=function(e){var r,n,t,o=e.children,l=e.className,c=e.isDisabled,u=e.isExternal,s=e.hierarchy,d=e.href,p=e.handleClick,m=e.overwriteClassNames,b=e.rel,y=e.renderIconExternal,h=e.role,v=e.target,x=e.title,g=m?l:i()("rdx-anchor rdx-anchor-".concat(s),(t=l,(n=l)in(r={"is-disabled":c,"is-external":u})?Object.defineProperty(r,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[n]=t,r)),j="_blank"===v?"noopener noreferrer":b,O=u?"_blank":v;return a.a.createElement("a",{className:g,disabled:c,href:d,onClick:p,rel:j,role:h,target:O,title:x},o,u?function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),t=1;t<r;t++)n[t-1]=arguments[t];return"function"==typeof e&&e.apply(void 0,n)}(y,"icon anchor-icon")||a.a.createElement(f,{className:"icon anchor-icon"}):null)};d.defaultProps={hierarchy:"primary",overwriteClassNames:!1};r.default=d}])}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@redradix/components.anchor", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "", | ||
@@ -12,3 +12,3 @@ "publishConfig": { | ||
"bundle-component": "NODE_ENV=production webpack --env.package=anchor", | ||
"bundle-styles": "node-sass ./*.scss -o dist", | ||
"bundle-styles": "node-sass . -o dist", | ||
"prepublish": "npm run bundle-component && npm run bundle-styles", | ||
@@ -26,3 +26,3 @@ "postpublish": "rm -fr dist" | ||
}, | ||
"gitHead": "9b87546bd6271958bf28be022057454e2b2b24ab" | ||
"gitHead": "022afdc8e770604746ba570c0c9abe91156d88fd" | ||
} |
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
24946
7