platformicons
Advanced tools
Comparing version 3.2.0 to 3.2.2
@@ -1,2 +0,2 @@ | ||
import a from"react";function t(){return(t=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}return a}).apply(this,arguments)}var e={android:"android",apple:"apple",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",csharp:"csharp","csharp-aspnetcore":"dotnet",dart:"dart",default:"default",dotnet:"dotnet","dotnet-aspnetcore":"dotnet",electron:"electron",elixir:"elixir",flutter:"flutter",go:"go",java:"java","java-android":"android","java-appengine":"app-engine","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-react":"react","javascript-vue":"vue",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa","objective-c":"apple",perl:"perl",php:"php","php-laravel":"laravel","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-awslambda":"aws","python-azurefunctions":"azure","python-bottle":"bottle","python-celery":"celery","python-django":"django","python-falcon":"falcon","python-flask":"flask","python-gcpfunctions":"gcp","python-pylons":"python","python-pyramid":"pyramid","python-pythonawslambda":"aws","python-rq":"redis","python-sanic":"python","python-tornado":"tornado","python-tryton":"tryton","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails",rust:"rust",swift:"swift"};function o(a){return a.replace(".","-")}function r(a){var t=o(a);return e[t]||(t.includes("-")?n(t):"default")}function n(a){return r(o(a).split("-")[0])}export default function(e){var o=e.platform,p=e.size,i=void 0===p?20:p,s=e.format,c=void 0===s?"sm":s,l=e.radius,d=void 0===l?3:l,u=e.withLanguageIcon,v=e.languageIconStyles,y=void 0===v?{}:v,g=e.style,h=void 0===g?{}:g,j=function(a,t){if(null==a)return{};var e,o,r={},n=Object.keys(a);for(o=0;o<n.length;o++)t.indexOf(e=n[o])>=0||(r[e]=a[e]);return r}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),f=r(o),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+f+".svg"),m=n(o),w=require("../svg/"+m+".svg");return u&&m!==f&&"default"!==m?a.createElement("div",Object.assign({},j,{style:t({position:"relative"},h)}),a.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),a.createElement("img",{src:w,style:t({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},y)})):a.createElement("img",Object.assign({src:b,width:i,height:i},j,{style:t({borderRadius:d+"px"},h)}))} | ||
import a from"react";function t(){return(t=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}return a}).apply(this,arguments)}var e={android:"android",apple:"apple",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",csharp:"csharp","csharp-aspnetcore":"dotnet",dart:"dart",default:"default",dotnet:"dotnet","dotnet-aspnetcore":"dotnet",electron:"electron",elixir:"elixir",flutter:"flutter",go:"go",java:"java","java-android":"android","java-appengine":"app-engine","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa","objective-c":"apple",perl:"perl",php:"php","php-laravel":"laravel","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-awslambda":"aws","python-azurefunctions":"azure","python-bottle":"bottle","python-celery":"celery","python-chalice":"chalice","python-django":"django","python-falcon":"falcon","python-flask":"flask","python-gcpfunctions":"gcp","python-pylons":"python","python-pyramid":"pyramid","python-pythonawslambda":"aws","python-rq":"redis","python-sanic":"python","python-serverless":"serverless","python-tornado":"tornado","python-tryton":"tryton","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails",rust:"rust",swift:"swift"};function o(a){return a.replace(".","-")}function r(a){var t=o(a);return e[t]||(t.includes("-")?n(t):"default")}function n(a){return r(o(a).split("-")[0])}export default function(e){var o=e.platform,s=e.size,p=void 0===s?20:s,i=e.format,c=void 0===i?"sm":i,l=e.radius,d=void 0===l?3:l,v=e.withLanguageIcon,u=e.languageIconStyles,y=void 0===u?{}:u,h=e.style,g=void 0===h?{}:h,j=function(a,t){if(null==a)return{};var e,o,r={},n=Object.keys(a);for(o=0;o<n.length;o++)t.indexOf(e=n[o])>=0||(r[e]=a[e]);return r}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),f=r(o),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+f+".svg"),m=n(o),w=require("../svg/"+m+".svg");return v&&m!==f&&"default"!==m?a.createElement("div",Object.assign({},j,{style:t({position:"relative"},g)}),a.createElement("img",{src:b,width:p,height:p,style:{borderRadius:d+"px"}}),a.createElement("img",{src:w,style:t({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},y)})):a.createElement("img",Object.assign({src:b,width:p,height:p},j,{style:t({borderRadius:d+"px"},g)}))} | ||
//# sourceMappingURL=index.esm.js.map |
@@ -1,2 +0,2 @@ | ||
var a,t=(a=require("react"))&&"object"==typeof a&&"default"in a?a.default:a;function e(){return(e=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}return a}).apply(this,arguments)}var o={android:"android",apple:"apple",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",csharp:"csharp","csharp-aspnetcore":"dotnet",dart:"dart",default:"default",dotnet:"dotnet","dotnet-aspnetcore":"dotnet",electron:"electron",elixir:"elixir",flutter:"flutter",go:"go",java:"java","java-android":"android","java-appengine":"app-engine","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-react":"react","javascript-vue":"vue",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa","objective-c":"apple",perl:"perl",php:"php","php-laravel":"laravel","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-awslambda":"aws","python-azurefunctions":"azure","python-bottle":"bottle","python-celery":"celery","python-django":"django","python-falcon":"falcon","python-flask":"flask","python-gcpfunctions":"gcp","python-pylons":"python","python-pyramid":"pyramid","python-pythonawslambda":"aws","python-rq":"redis","python-sanic":"python","python-tornado":"tornado","python-tryton":"tryton","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails",rust:"rust",swift:"swift"};function r(a){return a.replace(".","-")}function n(a){var t=r(a);return o[t]||(t.includes("-")?p(t):"default")}function p(a){return n(r(a).split("-")[0])}module.exports=function(a){var o=a.platform,r=a.size,i=void 0===r?20:r,s=a.format,c=void 0===s?"sm":s,l=a.radius,d=void 0===l?3:l,u=a.withLanguageIcon,v=a.languageIconStyles,y=void 0===v?{}:v,g=a.style,h=void 0===g?{}:g,j=function(a,t){if(null==a)return{};var e,o,r={},n=Object.keys(a);for(o=0;o<n.length;o++)t.indexOf(e=n[o])>=0||(r[e]=a[e]);return r}(a,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),f=n(o),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+f+".svg"),m=p(o),w=require("../svg/"+m+".svg");return u&&m!==f&&"default"!==m?t.createElement("div",Object.assign({},j,{style:e({position:"relative"},h)}),t.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),t.createElement("img",{src:w,style:e({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},y)})):t.createElement("img",Object.assign({src:b,width:i,height:i},j,{style:e({borderRadius:d+"px"},h)}))}; | ||
var a,t=(a=require("react"))&&"object"==typeof a&&"default"in a?a.default:a;function e(){return(e=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}return a}).apply(this,arguments)}var o={android:"android",apple:"apple",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",csharp:"csharp","csharp-aspnetcore":"dotnet",dart:"dart",default:"default",dotnet:"dotnet","dotnet-aspnetcore":"dotnet",electron:"electron",elixir:"elixir",flutter:"flutter",go:"go",java:"java","java-android":"android","java-appengine":"app-engine","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa","objective-c":"apple",perl:"perl",php:"php","php-laravel":"laravel","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-awslambda":"aws","python-azurefunctions":"azure","python-bottle":"bottle","python-celery":"celery","python-chalice":"chalice","python-django":"django","python-falcon":"falcon","python-flask":"flask","python-gcpfunctions":"gcp","python-pylons":"python","python-pyramid":"pyramid","python-pythonawslambda":"aws","python-rq":"redis","python-sanic":"python","python-serverless":"serverless","python-tornado":"tornado","python-tryton":"tryton","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails",rust:"rust",swift:"swift"};function r(a){return a.replace(".","-")}function n(a){var t=r(a);return o[t]||(t.includes("-")?s(t):"default")}function s(a){return n(r(a).split("-")[0])}module.exports=function(a){var o=a.platform,r=a.size,p=void 0===r?20:r,i=a.format,c=void 0===i?"sm":i,l=a.radius,d=void 0===l?3:l,u=a.withLanguageIcon,v=a.languageIconStyles,y=void 0===v?{}:v,h=a.style,g=void 0===h?{}:h,j=function(a,t){if(null==a)return{};var e,o,r={},n=Object.keys(a);for(o=0;o<n.length;o++)t.indexOf(e=n[o])>=0||(r[e]=a[e]);return r}(a,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),f=n(o),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+f+".svg"),m=s(o),w=require("../svg/"+m+".svg");return u&&m!==f&&"default"!==m?t.createElement("div",Object.assign({},j,{style:e({position:"relative"},g)}),t.createElement("img",{src:b,width:p,height:p,style:{borderRadius:d+"px"}}),t.createElement("img",{src:w,style:e({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},y)})):t.createElement("img",Object.assign({src:b,width:p,height:p},j,{style:e({borderRadius:d+"px"},g)}))}; | ||
//# sourceMappingURL=index.js.map |
@@ -1,2 +0,2 @@ | ||
import a from"react";function t(){return(t=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}return a}).apply(this,arguments)}const e={android:"android",apple:"apple",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",csharp:"csharp","csharp-aspnetcore":"dotnet",dart:"dart",default:"default",dotnet:"dotnet","dotnet-aspnetcore":"dotnet",electron:"electron",elixir:"elixir",flutter:"flutter",go:"go",java:"java","java-android":"android","java-appengine":"app-engine","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-react":"react","javascript-vue":"vue",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa","objective-c":"apple",perl:"perl",php:"php","php-laravel":"laravel","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-awslambda":"aws","python-azurefunctions":"azure","python-bottle":"bottle","python-celery":"celery","python-django":"django","python-falcon":"falcon","python-flask":"flask","python-gcpfunctions":"gcp","python-pylons":"python","python-pyramid":"pyramid","python-pythonawslambda":"aws","python-rq":"redis","python-sanic":"python","python-tornado":"tornado","python-tryton":"tryton","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails",rust:"rust",swift:"swift"};function o(a){return a.replace(".","-")}function r(a){const t=o(a);return e[t]||(t.includes("-")?n(t):"default")}function n(a){const[t]=o(a).split("-");return r(t)}export default e=>{let{platform:o,size:p=20,format:s="sm",radius:i=3,withLanguageIcon:c,languageIconStyles:l={},style:d={}}=e,u=function(a,t){if(null==a)return{};var e,o,r={},n=Object.keys(a);for(o=0;o<n.length;o++)t.indexOf(e=n[o])>=0||(r[e]=a[e]);return r}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]);const y=r(o),g=require(`../${"lg"===s?"svg_80x80":"svg"}/${y}.svg`),h=n(o),v=require(`../svg/${h}.svg`);return c&&h!==y&&"default"!==h?a.createElement("div",Object.assign({},u,{style:t({position:"relative"},d)}),a.createElement("img",{src:g,width:p,height:p,style:{borderRadius:i+"px"}}),a.createElement("img",{src:v,style:t({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},l)})):a.createElement("img",Object.assign({src:g,width:p,height:p},u,{style:t({borderRadius:i+"px"},d)}))}; | ||
import a from"react";function t(){return(t=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}return a}).apply(this,arguments)}const e={android:"android",apple:"apple",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",csharp:"csharp","csharp-aspnetcore":"dotnet",dart:"dart",default:"default",dotnet:"dotnet","dotnet-aspnetcore":"dotnet",electron:"electron",elixir:"elixir",flutter:"flutter",go:"go",java:"java","java-android":"android","java-appengine":"app-engine","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa","objective-c":"apple",perl:"perl",php:"php","php-laravel":"laravel","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-awslambda":"aws","python-azurefunctions":"azure","python-bottle":"bottle","python-celery":"celery","python-chalice":"chalice","python-django":"django","python-falcon":"falcon","python-flask":"flask","python-gcpfunctions":"gcp","python-pylons":"python","python-pyramid":"pyramid","python-pythonawslambda":"aws","python-rq":"redis","python-sanic":"python","python-serverless":"serverless","python-tornado":"tornado","python-tryton":"tryton","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails",rust:"rust",swift:"swift"};function o(a){return a.replace(".","-")}function r(a){const t=o(a);return e[t]||(t.includes("-")?n(t):"default")}function n(a){const[t]=o(a).split("-");return r(t)}export default e=>{let{platform:o,size:s=20,format:p="sm",radius:c=3,withLanguageIcon:i,languageIconStyles:l={},style:d={}}=e,u=function(a,t){if(null==a)return{};var e,o,r={},n=Object.keys(a);for(o=0;o<n.length;o++)t.indexOf(e=n[o])>=0||(r[e]=a[e]);return r}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]);const y=r(o),h=require(`../${"lg"===p?"svg_80x80":"svg"}/${y}.svg`),g=n(o),v=require(`../svg/${g}.svg`);return i&&g!==y&&"default"!==g?a.createElement("div",Object.assign({},u,{style:t({position:"relative"},d)}),a.createElement("img",{src:h,width:s,height:s,style:{borderRadius:c+"px"}}),a.createElement("img",{src:v,style:t({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},l)})):a.createElement("img",Object.assign({src:h,width:s,height:s},u,{style:t({borderRadius:c+"px"},d)}))}; | ||
//# sourceMappingURL=index.modern.js.map |
@@ -1,2 +0,2 @@ | ||
!function(a,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(a=a||self).platformicons=t(a.react)}(this,function(a){function t(){return(t=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=e[o])}return a}).apply(this,arguments)}a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var e={android:"android",apple:"apple",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",csharp:"csharp","csharp-aspnetcore":"dotnet",dart:"dart",default:"default",dotnet:"dotnet","dotnet-aspnetcore":"dotnet",electron:"electron",elixir:"elixir",flutter:"flutter",go:"go",java:"java","java-android":"android","java-appengine":"app-engine","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-react":"react","javascript-vue":"vue",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa","objective-c":"apple",perl:"perl",php:"php","php-laravel":"laravel","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-awslambda":"aws","python-azurefunctions":"azure","python-bottle":"bottle","python-celery":"celery","python-django":"django","python-falcon":"falcon","python-flask":"flask","python-gcpfunctions":"gcp","python-pylons":"python","python-pyramid":"pyramid","python-pythonawslambda":"aws","python-rq":"redis","python-sanic":"python","python-tornado":"tornado","python-tryton":"tryton","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails",rust:"rust",swift:"swift"};function o(a){return a.replace(".","-")}function r(a){var t=o(a);return e[t]||(t.includes("-")?n(t):"default")}function n(a){return r(o(a).split("-")[0])}return function(e){var o=e.platform,p=e.size,i=void 0===p?20:p,s=e.format,c=void 0===s?"sm":s,l=e.radius,d=void 0===l?3:l,u=e.withLanguageIcon,y=e.languageIconStyles,v=void 0===y?{}:y,f=e.style,g=void 0===f?{}:f,h=function(a,t){if(null==a)return{};var e,o,r={},n=Object.keys(a);for(o=0;o<n.length;o++)t.indexOf(e=n[o])>=0||(r[e]=a[e]);return r}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=r(o),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=n(o),w=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?a.createElement("div",Object.assign({},h,{style:t({position:"relative"},g)}),a.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),a.createElement("img",{src:w,style:t({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},v)})):a.createElement("img",Object.assign({src:b,width:i,height:i},h,{style:t({borderRadius:d+"px"},g)}))}}); | ||
!function(a,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):(a=a||self).platformicons=e(a.react)}(this,function(a){function e(){return(e=Object.assign||function(a){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(a[o]=t[o])}return a}).apply(this,arguments)}a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var t={android:"android",apple:"apple",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",csharp:"csharp","csharp-aspnetcore":"dotnet",dart:"dart",default:"default",dotnet:"dotnet","dotnet-aspnetcore":"dotnet",electron:"electron",elixir:"elixir",flutter:"flutter",go:"go",java:"java","java-android":"android","java-appengine":"app-engine","java-log4j":"java","java-log4j2":"java","java-logback":"logback","java-logging":"java","java-spring":"spring","java-spring-boot":"springboot",javascript:"javascript","javascript-angular":"angularjs","javascript-angularjs":"angularjs","javascript-backbone":"backbone","javascript-browser":"javascript","javascript-cordova":"cordova","javascript-electron":"electron","javascript-ember":"ember","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa","objective-c":"apple",perl:"perl",php:"php","php-laravel":"laravel","php-monolog":"php","php-symfony2":"symfony","php-symfony":"symfony",python:"python","python-aiohttp":"aiohttp","python-awslambda":"aws","python-azurefunctions":"azure","python-bottle":"bottle","python-celery":"celery","python-chalice":"chalice","python-django":"django","python-falcon":"falcon","python-flask":"flask","python-gcpfunctions":"gcp","python-pylons":"python","python-pyramid":"pyramid","python-pythonawslambda":"aws","python-rq":"redis","python-sanic":"python","python-serverless":"serverless","python-tornado":"tornado","python-tryton":"tryton","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails",rust:"rust",swift:"swift"};function o(a){return a.replace(".","-")}function r(a){var e=o(a);return t[e]||(e.includes("-")?n(e):"default")}function n(a){return r(o(a).split("-")[0])}return function(t){var o=t.platform,p=t.size,s=void 0===p?20:p,i=t.format,c=void 0===i?"sm":i,l=t.radius,d=void 0===l?3:l,u=t.withLanguageIcon,y=t.languageIconStyles,v=void 0===y?{}:y,h=t.style,f=void 0===h?{}:h,g=function(a,e){if(null==a)return{};var t,o,r={},n=Object.keys(a);for(o=0;o<n.length;o++)e.indexOf(t=n[o])>=0||(r[t]=a[t]);return r}(t,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=r(o),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=n(o),w=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?a.createElement("div",Object.assign({},g,{style:e({position:"relative"},f)}),a.createElement("img",{src:b,width:s,height:s,style:{borderRadius:d+"px"}}),a.createElement("img",{src:w,style:e({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},v)})):a.createElement("img",Object.assign({src:b,width:s,height:s},g,{style:e({borderRadius:d+"px"},f)}))}}); | ||
//# sourceMappingURL=index.umd.js.map |
{ | ||
"name": "platformicons", | ||
"version": "3.2.0", | ||
"version": "3.2.2", | ||
"description": "Web platform and framework icon set.", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
2755578
8
252
1