New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

platformicons

Package Overview
Dependencies
Maintainers
2
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

platformicons - npm Package Compare versions

Comparing version 3.5.2 to 4.1.0

build/preload.d.ts

3

build/index.d.ts

@@ -1,1 +0,2 @@

export { default } from "./platformIcon";
export { default as PlatformIcon } from "./platformIcon";
export { preloadIcons } from "./preload";

@@ -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",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"};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,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,y=e.languageIconStyles,v=void 0===y?{}:y,g=e.style,h=void 0===g?{}:g,f=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),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"},v)})):a.createElement("img",Object.assign({src:b,width:i,height:i},f,{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 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"};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 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",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"};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,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,v=void 0===y?{}:y,g=a.style,h=void 0===g?{}:g,f=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"]),j=n(o),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=s(o),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"},v)})):t.createElement("img",Object.assign({src:b,width:i,height:i},f,{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 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"};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}))};
//# 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",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"};function o(a){return a.replace(".","-")}function n(a){const t=o(a);return e[t]||(t.includes("-")?r(t):"default")}function r(a){const[t]=o(a).split("-");return n(t)}export default e=>{let{platform:o,size:s=20,format:p="sm",radius:i=3,withLanguageIcon:c,languageIconStyles:l={},style:d={}}=e,u=function(a,t){if(null==a)return{};var e,o,n={},r=Object.keys(a);for(o=0;o<r.length;o++)t.indexOf(e=r[o])>=0||(n[e]=a[e]);return n}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]);const y=n(o),g=require(`../${"lg"===p?"svg_80x80":"svg"}/${y}.svg`),h=r(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: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:g,width:s,height:s},u,{style:t({borderRadius:i+"px"},d)}))};
import t from"react";function a(){return(a=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)}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"};function n(t){return t.replace(".","-")}function o(t){const a=n(t);return e[a]||(a.includes("-")?r(a):"default")}function r(t){const[a]=n(t).split("-");return o(a)}const s=e=>{let{platform:n,size:s=20,format:c="sm",radius:p=3,withLanguageIcon:i,languageIconStyles:l={},style:d={}}=e,u=function(t,a){if(null==t)return{};var e,n,o={},r=Object.keys(t);for(n=0;n<r.length;n++)a.indexOf(e=r[n])>=0||(o[e]=t[e]);return o}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]);const g=o(n),y=require(`../${"lg"===c?"svg_80x80":"svg"}/${g}.svg`),h=r(n),v=require(`../svg/${h}.svg`);return i&&h!==g&&"default"!==h?t.createElement("div",Object.assign({},u,{style:a({position:"relative"},d)}),t.createElement("img",{src:y,width:s,height:s,style:{borderRadius:p+"px"}}),t.createElement("img",{src:v,style:a({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},l)})):t.createElement("img",Object.assign({src:y,width:s,height:s},u,{style:a({borderRadius:p+"px"},d)}))};function c(t){var a;const n=(t?[t]:["lg","sm"]).map(t=>Object.values(e).map(a=>require(`../${"lg"===t?"svg_80x80":"svg"}/${a}.svg`))).flat();null==(a=document.querySelector("head"))||a.append(...n.map(t=>{const a=document.createElement("link");return a.rel="preload",a.as="image",a.href=t,a}))}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?module.exports=a(require("react")):"function"==typeof define&&define.amd?define(["react"],a):(t=t||self).platformicons=a(t.react)}(this,function(t){function a(){return(a=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var e=arguments[a];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t}).apply(this,arguments)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e={android:"android",apple:"apple",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"};function o(t){return t.replace(".","-")}function n(t){var a=o(t);return e[a]||(a.includes("-")?r(a):"default")}function r(t){return n(o(t).split("-")[0])}return function(e){var o=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,y=e.languageIconStyles,h=void 0===y?{}:y,v=e.style,g=void 0===v?{}:v,f=function(t,a){if(null==t)return{};var e,o,n={},r=Object.keys(t);for(o=0;o<r.length;o++)a.indexOf(e=r[o])>=0||(n[e]=t[e]);return n}(e,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=n(o),b=require("../"+("lg"===c?"svg_80x80":"svg")+"/"+j+".svg"),m=r(o),x=require("../svg/"+m+".svg");return u&&m!==j&&"default"!==m?t.createElement("div",Object.assign({},f,{style:a({position:"relative"},g)}),t.createElement("img",{src:b,width:i,height:i,style:{borderRadius:d+"px"}}),t.createElement("img",{src:x,style:a({position:"absolute",bottom:"-1px",right:"-1px",height:"30%",width:"30%",borderRadius:"2px"},h)})):t.createElement("img",Object.assign({src:b,width:i,height:i},f,{style:a({borderRadius:d+"px"},g)}))}});
!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"};function o(t){return t.replace(".","-")}function r(t){var a=o(t);return n[a]||(a.includes("-")?s(a):"default")}function s(t){return r(o(t).split("-")[0])}t.PlatformIcon=function(t){var n=t.platform,o=t.size,i=void 0===o?20:o,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,o={},r=Object.keys(t);for(n=0;n<r.length;n++)a.indexOf(e=r[n])>=0||(o[e]=t[e]);return o}(t,["platform","size","format","radius","withLanguageIcon","languageIconStyles","style"]),j=r(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}))}});
//# sourceMappingURL=index.umd.js.map
import React from "react";
export declare const PLATFORM_TO_ICON: {
readonly android: "android";
readonly apple: "apple";
readonly clojure: "clojure";
readonly cocoa: "apple";
readonly "cocoa-objc": "apple";
readonly "cocoa-swift": "swift";
readonly cordova: "cordova";
readonly cryengine: "cryengine";
readonly csharp: "csharp";
readonly "csharp-aspnetcore": "csharp";
readonly dart: "dart";
readonly default: "default";
readonly dotnet: "dotnet";
readonly "dotnet-awslambda": "aws";
readonly "dotnet-aspnetcore": "dotnet";
readonly "dotnet-aspnet": "dotnet";
readonly "dotnet-csharp": "csharp";
readonly "dotnet-blazor": "blazor";
readonly "dotnet-uno": "uno";
readonly "dotnet-xamarin": "xamarin";
readonly dotnetcore: "dotnetcore";
readonly dotnetfx: "dotnetfx";
readonly electron: "electron";
readonly elixir: "elixir";
readonly flutter: "flutter";
readonly fsharp: "fsharp";
readonly go: "go";
readonly godot: "godot";
readonly java: "java";
readonly "java-appengine": "app-engine";
readonly "java-android": "android";
readonly "java-log4j": "java";
readonly "java-log4j2": "java";
readonly "java-logback": "logback";
readonly "java-logging": "java";
readonly "java-spring": "spring";
readonly "java-spring-boot": "springboot";
readonly javascript: "javascript";
readonly "javascript-angular": "angularjs";
readonly "javascript-angularjs": "angularjs";
readonly "javascript-backbone": "backbone";
readonly "javascript-browser": "javascript";
readonly "javascript-cordova": "cordova";
readonly "javascript-electron": "electron";
readonly "javascript-ember": "ember";
readonly "javascript-gatsby": "gatsby";
readonly "javascript-nextjs": "nextjs";
readonly "javascript-react": "react";
readonly "javascript-vue": "vue";
readonly kotlin: "kotlin";
readonly "kotlin-android": "android";
readonly native: "nativec";
readonly node: "nodejs";
readonly "node-awslambda": "aws";
readonly "node-azurefunctions": "azure";
readonly "node-connect": "nodejs";
readonly "node-express": "express";
readonly "node-gcpfunctions": "gcp";
readonly "node-koa": "koa";
readonly perl: "perl";
readonly php: "php";
readonly "php-laravel": "laravel";
readonly "php-monolog": "php";
readonly "php-symfony2": "symfony";
readonly "php-symfony": "symfony";
readonly python: "python";
readonly "python-aiohttp": "aiohttp";
readonly "python-awslambda": "aws";
readonly "python-azurefunctions": "azure";
readonly "python-bottle": "bottle";
readonly "python-celery": "celery";
readonly "python-chalice": "chalice";
readonly "python-django": "django";
readonly "python-falcon": "falcon";
readonly "python-flask": "flask";
readonly "python-gcpfunctions": "gcp";
readonly "python-pylons": "python";
readonly "python-pyramid": "pyramid";
readonly "python-pythonawslambda": "aws";
readonly "python-rq": "redis";
readonly "python-sanic": "python";
readonly "python-serverless": "serverless";
readonly "python-tornado": "tornado";
readonly "python-tryton": "tryton";
readonly qt: "qt";
readonly "react-native": "react";
readonly ruby: "ruby";
readonly "ruby-rack": "ruby";
readonly "ruby-rails": "rails";
readonly "ruby-sinatra": "sinatra";
readonly rust: "rust";
readonly "rust-actix": "actix";
readonly scala: "scala";
readonly stride3d: "stride3d";
readonly swift: "swift";
readonly unity: "unity";
};
declare type Props = React.HTMLAttributes<HTMLDivElement | HTMLImageElement> & {

@@ -3,0 +101,0 @@ platform: string;

{
"name": "platformicons",
"version": "3.5.2",
"version": "4.1.0",
"description": "Web platform and framework icon set.",

@@ -38,6 +38,6 @@ "main": "build/index.js",

"dependencies": {
"@types/node": "*",
"@types/react": "^16 || ^17",
"@types/react-dom": "^16 || ^17",
"@types/node": "*"
"@types/react-dom": "^16 || ^17"
}
}

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc