platformicons
Advanced tools
Comparing version 4.1.1 to 4.1.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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r])}return a}).apply(this,arguments)}var e={android:"android",apple:"apple",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",cryengine:"cryengine",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",dotnet:"dotnet","dotnet-awslambda":"aws","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-csharp":"csharp","dotnet-blazor":"blazor","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",electron:"electron",elixir:"elixir",flutter:"flutter",fsharp:"fsharp",go:"go",godot:"godot",java:"java","java-appengine":"app-engine","java-android":"android","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-gatsby":"gatsby","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",kotlin:"kotlin","kotlin-android":"android",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa",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",qt:"qt","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails","ruby-sinatra":"sinatra",rust:"rust","rust-actix":"actix",scala:"scala",stride3d:"stride3d",swift:"swift",unity:"unity",unreal:"unreal"};function r(a){return a.replace(".","-")}function n(a){var t=r(a);return e[t]||(t.includes("-")?o(t):"default")}function o(a){return n(r(a).split("-")[0])}var s=function(e){var r=e.platform,s=e.size,i=void 0===s?20:s,p=e.format,c=void 0===p?"sm":p,l=e.radius,d=void 0===l?3:l,u=e.withLanguageIcon,v=e.languageIconStyles,g=void 0===v?{}:v,y=e.style,h=void 0===y?{}:y,f=function(a,t){if(null==a)return{};var e,r,n={},o=Object.keys(a);for(r=0;r<o.length;r++)t.indexOf(e=o[r])>=0||(n[e]=a[e]);return n}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=n(r),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=o(r),x=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?a.createElement("div",Object.assign({},f,{style:t({position:"relative"},h)}),a.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),a.createElement("img",{src:x,style:t({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},g)})):a.createElement("img",Object.assign({src:b,width:i,height:i},f,{style:t({borderRadius:d+"px"},h)}))};function i(a){var t,r=(a?[a]:["lg","sm"]).map(function(a){return Object.values(e).map(function(t){return require("../"+("lg"===a?"svg_80x80":"svg")+"/"+t+".svg")})}).flat();null==(t=document.querySelector("head"))||t.append.apply(t,r.map(function(a){var t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}export{s as PlatformIcon,i as preloadIcons}; | ||
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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r])}return a}).apply(this,arguments)}var e={android:"android",apple:"apple",capacitor:"capacitor",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",cryengine:"cryengine",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",dotnet:"dotnet","dotnet-awslambda":"aws","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-csharp":"csharp","dotnet-blazor":"blazor","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",electron:"electron",elixir:"elixir",flutter:"flutter",fsharp:"fsharp",go:"go",godot:"godot",java:"java","java-appengine":"app-engine","java-android":"android","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-gatsby":"gatsby","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",kotlin:"kotlin","kotlin-android":"android",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa",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",qt:"qt","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails","ruby-sinatra":"sinatra",rust:"rust","rust-actix":"actix",scala:"scala",stride3d:"stride3d",swift:"swift",unity:"unity",ue4:"unreal",unrealengine:"unreal"};function r(a){return a.replace(".","-")}function n(a){var t=r(a);return e[t]||(t.includes("-")?o(t):"default")}function o(a){return n(r(a).split("-")[0])}var s=function(e){var r=e.platform,s=e.size,i=void 0===s?20:s,p=e.format,c=void 0===p?"sm":p,l=e.radius,d=void 0===l?3:l,u=e.withLanguageIcon,v=e.languageIconStyles,g=void 0===v?{}:v,y=e.style,h=void 0===y?{}:y,f=function(a,t){if(null==a)return{};var e,r,n={},o=Object.keys(a);for(r=0;r<o.length;r++)t.indexOf(e=o[r])>=0||(n[e]=a[e]);return n}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=n(r),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=o(r),x=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?a.createElement("div",Object.assign({},f,{style:t({position:"relative"},h)}),a.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),a.createElement("img",{src:x,style:t({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},g)})):a.createElement("img",Object.assign({src:b,width:i,height:i},f,{style:t({borderRadius:d+"px"},h)}))};function i(a){var t,r=(a?[a]:["lg","sm"]).map(function(a){return Object.values(e).map(function(t){return require("../"+("lg"===a?"svg_80x80":"svg")+"/"+t+".svg")})}).flat();null==(t=document.querySelector("head"))||t.append.apply(t,r.map(function(a){var t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}export{s as PlatformIcon,i as preloadIcons}; | ||
//# 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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r])}return a}).apply(this,arguments)}var r={android:"android",apple:"apple",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",cryengine:"cryengine",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",dotnet:"dotnet","dotnet-awslambda":"aws","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-csharp":"csharp","dotnet-blazor":"blazor","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",electron:"electron",elixir:"elixir",flutter:"flutter",fsharp:"fsharp",go:"go",godot:"godot",java:"java","java-appengine":"app-engine","java-android":"android","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-gatsby":"gatsby","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",kotlin:"kotlin","kotlin-android":"android",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa",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",qt:"qt","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails","ruby-sinatra":"sinatra",rust:"rust","rust-actix":"actix",scala:"scala",stride3d:"stride3d",swift:"swift",unity:"unity",unreal:"unreal"};function n(a){return a.replace(".","-")}function o(a){var t=n(a);return r[t]||(t.includes("-")?s(t):"default")}function s(a){return o(n(a).split("-")[0])}exports.PlatformIcon=function(a){var r=a.platform,n=a.size,i=void 0===n?20:n,p=a.format,c=void 0===p?"sm":p,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,f=function(a,t){if(null==a)return{};var e,r,n={},o=Object.keys(a);for(r=0;r<o.length;r++)t.indexOf(e=o[r])>=0||(n[e]=a[e]);return n}(a,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=o(r),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=s(r),x=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?t.createElement("div",Object.assign({},f,{style:e({position:"relative"},h)}),t.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),t.createElement("img",{src:x,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},f,{style:e({borderRadius:d+"px"},h)}))},exports.preloadIcons=function(a){var t,e=(a?[a]:["lg","sm"]).map(function(a){return Object.values(r).map(function(t){return require("../"+("lg"===a?"svg_80x80":"svg")+"/"+t+".svg")})}).flat();null==(t=document.querySelector("head"))||t.append.apply(t,e.map(function(a){var t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}; | ||
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 r in e)Object.prototype.hasOwnProperty.call(e,r)&&(a[r]=e[r])}return a}).apply(this,arguments)}var r={android:"android",apple:"apple",capacitor:"capacitor",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",cryengine:"cryengine",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",dotnet:"dotnet","dotnet-awslambda":"aws","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-csharp":"csharp","dotnet-blazor":"blazor","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",electron:"electron",elixir:"elixir",flutter:"flutter",fsharp:"fsharp",go:"go",godot:"godot",java:"java","java-appengine":"app-engine","java-android":"android","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-gatsby":"gatsby","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",kotlin:"kotlin","kotlin-android":"android",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa",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",qt:"qt","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails","ruby-sinatra":"sinatra",rust:"rust","rust-actix":"actix",scala:"scala",stride3d:"stride3d",swift:"swift",unity:"unity",ue4:"unreal",unrealengine:"unreal"};function n(a){return a.replace(".","-")}function o(a){var t=n(a);return r[t]||(t.includes("-")?s(t):"default")}function s(a){return o(n(a).split("-")[0])}exports.PlatformIcon=function(a){var r=a.platform,n=a.size,i=void 0===n?20:n,p=a.format,c=void 0===p?"sm":p,l=a.radius,d=void 0===l?3:l,u=a.withLanguageIcon,v=a.languageIconStyles,g=void 0===v?{}:v,y=a.style,h=void 0===y?{}:y,f=function(a,t){if(null==a)return{};var e,r,n={},o=Object.keys(a);for(r=0;r<o.length;r++)t.indexOf(e=o[r])>=0||(n[e]=a[e]);return n}(a,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=o(r),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=s(r),x=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?t.createElement("div",Object.assign({},f,{style:e({position:"relative"},h)}),t.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),t.createElement("img",{src:x,style:e({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},g)})):t.createElement("img",Object.assign({src:b,width:i,height:i},f,{style:e({borderRadius:d+"px"},h)}))},exports.preloadIcons=function(a){var t,e=(a?[a]:["lg","sm"]).map(function(a){return Object.values(r).map(function(t){return require("../"+("lg"===a?"svg_80x80":"svg")+"/"+t+".svg")})}).flat();null==(t=document.querySelector("head"))||t.append.apply(t,e.map(function(a){var t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}; | ||
//# 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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n])}return a}).apply(this,arguments)}const e={android:"android",apple:"apple",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",cryengine:"cryengine",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",dotnet:"dotnet","dotnet-awslambda":"aws","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-csharp":"csharp","dotnet-blazor":"blazor","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",electron:"electron",elixir:"elixir",flutter:"flutter",fsharp:"fsharp",go:"go",godot:"godot",java:"java","java-appengine":"app-engine","java-android":"android","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-gatsby":"gatsby","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",kotlin:"kotlin","kotlin-android":"android",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa",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",qt:"qt","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails","ruby-sinatra":"sinatra",rust:"rust","rust-actix":"actix",scala:"scala",stride3d:"stride3d",swift:"swift",unity:"unity",unreal:"unreal"};function n(a){return a.replace(".","-")}function r(a){const t=n(a);return e[t]||(t.includes("-")?o(t):"default")}function o(a){const[t]=n(a).split("-");return r(t)}const s=e=>{let{platform:n,size:s=20,format:c="sm",radius:p=3,withLanguageIcon:i,languageIconStyles:l={},style:d={}}=e,u=function(a,t){if(null==a)return{};var e,n,r={},o=Object.keys(a);for(n=0;n<o.length;n++)t.indexOf(e=o[n])>=0||(r[e]=a[e]);return r}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]);const g=r(n),y=require(`../${"lg"===c?"svg_80x80":"svg"}/${g}.svg`),h=o(n),v=require(`../svg/${h}.svg`);return i&&h!==g&&"default"!==h?a.createElement("div",Object.assign({},u,{style:t({position:"relative"},d)}),a.createElement("img",{src:y,width:s,height:s,style:{borderRadius:p+"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:y,width:s,height:s},u,{style:t({borderRadius:p+"px"},d)}))};function c(a){var t;const n=(a?[a]:["lg","sm"]).map(a=>Object.values(e).map(t=>require(`../${"lg"===a?"svg_80x80":"svg"}/${t}.svg`))).flat();null==(t=document.querySelector("head"))||t.append(...n.map(a=>{const t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}export{s as PlatformIcon,c as preloadIcons}; | ||
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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n])}return a}).apply(this,arguments)}const e={android:"android",apple:"apple",capacitor:"capacitor",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",cryengine:"cryengine",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",dotnet:"dotnet","dotnet-awslambda":"aws","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-csharp":"csharp","dotnet-blazor":"blazor","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",electron:"electron",elixir:"elixir",flutter:"flutter",fsharp:"fsharp",go:"go",godot:"godot",java:"java","java-appengine":"app-engine","java-android":"android","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-gatsby":"gatsby","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",kotlin:"kotlin","kotlin-android":"android",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa",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",qt:"qt","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails","ruby-sinatra":"sinatra",rust:"rust","rust-actix":"actix",scala:"scala",stride3d:"stride3d",swift:"swift",unity:"unity",ue4:"unreal",unrealengine:"unreal"};function n(a){return a.replace(".","-")}function r(a){const t=n(a);return e[t]||(t.includes("-")?o(t):"default")}function o(a){const[t]=n(a).split("-");return r(t)}const s=e=>{let{platform:n,size:s=20,format:c="sm",radius:i=3,withLanguageIcon:p,languageIconStyles:l={},style:d={}}=e,u=function(a,t){if(null==a)return{};var e,n,r={},o=Object.keys(a);for(n=0;n<o.length;n++)t.indexOf(e=o[n])>=0||(r[e]=a[e]);return r}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]);const g=r(n),y=require(`../${"lg"===c?"svg_80x80":"svg"}/${g}.svg`),h=o(n),v=require(`../svg/${h}.svg`);return p&&h!==g&&"default"!==h?a.createElement("div",Object.assign({},u,{style:t({position:"relative"},d)}),a.createElement("img",{src:y,width:s,height:s,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:y,width:s,height:s},u,{style:t({borderRadius:i+"px"},d)}))};function c(a){var t;const n=(a?[a]:["lg","sm"]).map(a=>Object.values(e).map(t=>require(`../${"lg"===a?"svg_80x80":"svg"}/${t}.svg`))).flat();null==(t=document.querySelector("head"))||t.append(...n.map(a=>{const t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}export{s as PlatformIcon,c as preloadIcons}; | ||
//# sourceMappingURL=index.modern.js.map |
@@ -1,2 +0,2 @@ | ||
!function(t,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],a):a((t=t||self).platformicons={},t.react)}(this,function(t,a){function e(){return(e=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var e=arguments[a];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}).apply(this,arguments)}a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var n={android:"android",apple:"apple",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",cryengine:"cryengine",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",dotnet:"dotnet","dotnet-awslambda":"aws","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-csharp":"csharp","dotnet-blazor":"blazor","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",electron:"electron",elixir:"elixir",flutter:"flutter",fsharp:"fsharp",go:"go",godot:"godot",java:"java","java-appengine":"app-engine","java-android":"android","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-gatsby":"gatsby","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",kotlin:"kotlin","kotlin-android":"android",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa",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",qt:"qt","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails","ruby-sinatra":"sinatra",rust:"rust","rust-actix":"actix",scala:"scala",stride3d:"stride3d",swift:"swift",unity:"unity",unreal:"unreal"};function r(t){return t.replace(".","-")}function o(t){var a=r(t);return n[a]||(a.includes("-")?s(a):"default")}function s(t){return o(r(t).split("-")[0])}t.PlatformIcon=function(t){var n=t.platform,r=t.size,i=void 0===r?20:r,p=t.format,c=void 0===p?"sm":p,l=t.radius,d=void 0===l?3:l,u=t.withLanguageIcon,y=t.languageIconStyles,v=void 0===y?{}:y,g=t.style,f=void 0===g?{}:g,h=function(t,a){if(null==t)return{};var e,n,r={},o=Object.keys(t);for(n=0;n<o.length;n++)a.indexOf(e=o[n])>=0||(r[e]=t[e]);return r}(t,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=o(n),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=s(n),x=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?a.createElement("div",Object.assign({},h,{style:e({position:"relative"},f)}),a.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),a.createElement("img",{src:x,style:e({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:e({borderRadius:d+"px"},f)}))},t.preloadIcons=function(t){var a,e=(t?[t]:["lg","sm"]).map(function(t){return Object.values(n).map(function(a){return require("../"+("lg"===t?"svg_80x80":"svg")+"/"+a+".svg")})}).flat();null==(a=document.querySelector("head"))||a.append.apply(a,e.map(function(t){var a=document.createElement("link");return a.rel="preload",a.as="image",a.href=t,a}))}}); | ||
!function(a,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((a=a||self).platformicons={},a.react)}(this,function(a,t){function e(){return(e=Object.assign||function(a){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n])}return a}).apply(this,arguments)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var n={android:"android",apple:"apple",capacitor:"capacitor",clojure:"clojure",cocoa:"apple","cocoa-objc":"apple","cocoa-swift":"swift",cordova:"cordova",cryengine:"cryengine",csharp:"csharp","csharp-aspnetcore":"csharp",dart:"dart",default:"default",dotnet:"dotnet","dotnet-awslambda":"aws","dotnet-aspnetcore":"dotnet","dotnet-aspnet":"dotnet","dotnet-csharp":"csharp","dotnet-blazor":"blazor","dotnet-uno":"uno","dotnet-xamarin":"xamarin",dotnetcore:"dotnetcore",dotnetfx:"dotnetfx",electron:"electron",elixir:"elixir",flutter:"flutter",fsharp:"fsharp",go:"go",godot:"godot",java:"java","java-appengine":"app-engine","java-android":"android","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-gatsby":"gatsby","javascript-nextjs":"nextjs","javascript-react":"react","javascript-vue":"vue",kotlin:"kotlin","kotlin-android":"android",native:"nativec",node:"nodejs","node-awslambda":"aws","node-azurefunctions":"azure","node-connect":"nodejs","node-express":"express","node-gcpfunctions":"gcp","node-koa":"koa",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",qt:"qt","react-native":"react",ruby:"ruby","ruby-rack":"ruby","ruby-rails":"rails","ruby-sinatra":"sinatra",rust:"rust","rust-actix":"actix",scala:"scala",stride3d:"stride3d",swift:"swift",unity:"unity",ue4:"unreal",unrealengine:"unreal"};function r(a){return a.replace(".","-")}function o(a){var t=r(a);return n[t]||(t.includes("-")?s(t):"default")}function s(a){return o(r(a).split("-")[0])}a.PlatformIcon=function(a){var n=a.platform,r=a.size,i=void 0===r?20:r,p=a.format,c=void 0===p?"sm":p,l=a.radius,d=void 0===l?3:l,u=a.withLanguageIcon,y=a.languageIconStyles,g=void 0===y?{}:y,v=a.style,f=void 0===v?{}:v,h=function(a,t){if(null==a)return{};var e,n,r={},o=Object.keys(a);for(n=0;n<o.length;n++)t.indexOf(e=o[n])>=0||(r[e]=a[e]);return r}(a,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=o(n),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=s(n),x=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?t.createElement("div",Object.assign({},h,{style:e({position:"relative"},f)}),t.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),t.createElement("img",{src:x,style:e({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},g)})):t.createElement("img",Object.assign({src:b,width:i,height:i},h,{style:e({borderRadius:d+"px"},f)}))},a.preloadIcons=function(a){var t,e=(a?[a]:["lg","sm"]).map(function(a){return Object.values(n).map(function(t){return require("../"+("lg"===a?"svg_80x80":"svg")+"/"+t+".svg")})}).flat();null==(t=document.querySelector("head"))||t.append.apply(t,e.map(function(a){var t=document.createElement("link");return t.rel="preload",t.as="image",t.href=a,t}))}}); | ||
//# sourceMappingURL=index.umd.js.map |
@@ -5,2 +5,3 @@ import React from "react"; | ||
readonly apple: "apple"; | ||
readonly capacitor: "capacitor"; | ||
readonly clojure: "clojure"; | ||
@@ -100,3 +101,4 @@ readonly cocoa: "apple"; | ||
readonly unity: "unity"; | ||
readonly unreal: "unreal"; | ||
readonly ue4: "unreal"; | ||
readonly unrealengine: "unreal"; | ||
}; | ||
@@ -103,0 +105,0 @@ declare type Props = React.HTMLAttributes<HTMLDivElement | HTMLImageElement> & { |
{ | ||
"name": "platformicons", | ||
"version": "4.1.1", | ||
"version": "4.1.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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
284953
172
424