Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

boring-avatars

Package Overview
Dependencies
Maintainers
2
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boring-avatars - npm Package Compare versions

Comparing version 1.11.1 to 1.11.2

2

build/index.js

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

!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var r="object"===typeof exports?t(require("react")):t(e.react);for(var l in r)("object"===typeof exports?exports:e)[l]=r[l]}}(this,(function(e){return function(e){var t={};function r(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,l){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(l,i,function(t){return e[t]}.bind(null,i));return l},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=1)}([function(t,r){t.exports=e},function(e,t,r){e.exports=r(2)},function(e,t,r){"use strict";function l(e,t){if(null==e)return{};var r,l,i=function(e,t){if(null==e)return{};var r,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.r(t);var i=r(0),a=r.n(i),n=function(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return Math.abs(t)},c=function(e,t){return Math.floor(e/Math.pow(10,t)%10)},h=function(e,t){return!(c(e,t)%2)},o=function(e,t,r){var l=e%t;return r&&c(e,r)%2===0?-l:l},s=function(e,t,r){return t[e%r]};var f=function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,h=e.size,f=l(e,["name","colors","title","square","size"]),m=function(e,t){var r=n(e),l=t&&t.length;return Array.from({length:3},(function(e,i){return{color:s(r+i,t,l),translateX:o(r*(i+1),8,1),translateY:o(r*(i+1),8,2),scale:1.2+o(r*(i+1),4)/10,rotate:o(r*(i+1),360,1)}}))}(t,r),d=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:h,height:h},f),a&&i.createElement("title",null,t),i.createElement("mask",{id:d,maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},i.createElement("rect",{width:80,height:80,rx:c?void 0:160,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(d,")")},i.createElement("rect",{width:80,height:80,fill:m[0].color}),i.createElement("path",{filter:"url(#filter_".concat(d,")"),d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:m[1].color,transform:"translate("+m[1].translateX+" "+m[1].translateY+") rotate("+m[1].rotate+" 40 40) scale("+m[2].scale+")"}),i.createElement("path",{filter:"url(#filter_".concat(d,")"),style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:m[2].color,transform:"translate("+m[2].translateX+" "+m[2].translateY+") rotate("+m[2].rotate+" 40 40) scale("+m[2].scale+")"})),i.createElement("defs",null,i.createElement("filter",{id:"filter_".concat(d),filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},i.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),i.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),i.createElement("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"}))))},m={pixel:function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,h=e.size,o=l(e,["name","colors","title","square","size"]),f=function(e,t){var r=n(e),l=t&&t.length;return Array.from({length:64},(function(e,i){return s(r%(i+1),t,l)}))}(t,r),m=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:h,height:h},o),a&&i.createElement("title",null,t),i.createElement("mask",{id:m,"mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},i.createElement("rect",{width:80,height:80,rx:c?void 0:160,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(m,")")},i.createElement("rect",{width:10,height:10,fill:f[0]}),i.createElement("rect",{x:20,width:10,height:10,fill:f[1]}),i.createElement("rect",{x:40,width:10,height:10,fill:f[2]}),i.createElement("rect",{x:60,width:10,height:10,fill:f[3]}),i.createElement("rect",{x:10,width:10,height:10,fill:f[4]}),i.createElement("rect",{x:30,width:10,height:10,fill:f[5]}),i.createElement("rect",{x:50,width:10,height:10,fill:f[6]}),i.createElement("rect",{x:70,width:10,height:10,fill:f[7]}),i.createElement("rect",{y:10,width:10,height:10,fill:f[8]}),i.createElement("rect",{y:20,width:10,height:10,fill:f[9]}),i.createElement("rect",{y:30,width:10,height:10,fill:f[10]}),i.createElement("rect",{y:40,width:10,height:10,fill:f[11]}),i.createElement("rect",{y:50,width:10,height:10,fill:f[12]}),i.createElement("rect",{y:60,width:10,height:10,fill:f[13]}),i.createElement("rect",{y:70,width:10,height:10,fill:f[14]}),i.createElement("rect",{x:20,y:10,width:10,height:10,fill:f[15]}),i.createElement("rect",{x:20,y:20,width:10,height:10,fill:f[16]}),i.createElement("rect",{x:20,y:30,width:10,height:10,fill:f[17]}),i.createElement("rect",{x:20,y:40,width:10,height:10,fill:f[18]}),i.createElement("rect",{x:20,y:50,width:10,height:10,fill:f[19]}),i.createElement("rect",{x:20,y:60,width:10,height:10,fill:f[20]}),i.createElement("rect",{x:20,y:70,width:10,height:10,fill:f[21]}),i.createElement("rect",{x:40,y:10,width:10,height:10,fill:f[22]}),i.createElement("rect",{x:40,y:20,width:10,height:10,fill:f[23]}),i.createElement("rect",{x:40,y:30,width:10,height:10,fill:f[24]}),i.createElement("rect",{x:40,y:40,width:10,height:10,fill:f[25]}),i.createElement("rect",{x:40,y:50,width:10,height:10,fill:f[26]}),i.createElement("rect",{x:40,y:60,width:10,height:10,fill:f[27]}),i.createElement("rect",{x:40,y:70,width:10,height:10,fill:f[28]}),i.createElement("rect",{x:60,y:10,width:10,height:10,fill:f[29]}),i.createElement("rect",{x:60,y:20,width:10,height:10,fill:f[30]}),i.createElement("rect",{x:60,y:30,width:10,height:10,fill:f[31]}),i.createElement("rect",{x:60,y:40,width:10,height:10,fill:f[32]}),i.createElement("rect",{x:60,y:50,width:10,height:10,fill:f[33]}),i.createElement("rect",{x:60,y:60,width:10,height:10,fill:f[34]}),i.createElement("rect",{x:60,y:70,width:10,height:10,fill:f[35]}),i.createElement("rect",{x:10,y:10,width:10,height:10,fill:f[36]}),i.createElement("rect",{x:10,y:20,width:10,height:10,fill:f[37]}),i.createElement("rect",{x:10,y:30,width:10,height:10,fill:f[38]}),i.createElement("rect",{x:10,y:40,width:10,height:10,fill:f[39]}),i.createElement("rect",{x:10,y:50,width:10,height:10,fill:f[40]}),i.createElement("rect",{x:10,y:60,width:10,height:10,fill:f[41]}),i.createElement("rect",{x:10,y:70,width:10,height:10,fill:f[42]}),i.createElement("rect",{x:30,y:10,width:10,height:10,fill:f[43]}),i.createElement("rect",{x:30,y:20,width:10,height:10,fill:f[44]}),i.createElement("rect",{x:30,y:30,width:10,height:10,fill:f[45]}),i.createElement("rect",{x:30,y:40,width:10,height:10,fill:f[46]}),i.createElement("rect",{x:30,y:50,width:10,height:10,fill:f[47]}),i.createElement("rect",{x:30,y:60,width:10,height:10,fill:f[48]}),i.createElement("rect",{x:30,y:70,width:10,height:10,fill:f[49]}),i.createElement("rect",{x:50,y:10,width:10,height:10,fill:f[50]}),i.createElement("rect",{x:50,y:20,width:10,height:10,fill:f[51]}),i.createElement("rect",{x:50,y:30,width:10,height:10,fill:f[52]}),i.createElement("rect",{x:50,y:40,width:10,height:10,fill:f[53]}),i.createElement("rect",{x:50,y:50,width:10,height:10,fill:f[54]}),i.createElement("rect",{x:50,y:60,width:10,height:10,fill:f[55]}),i.createElement("rect",{x:50,y:70,width:10,height:10,fill:f[56]}),i.createElement("rect",{x:70,y:10,width:10,height:10,fill:f[57]}),i.createElement("rect",{x:70,y:20,width:10,height:10,fill:f[58]}),i.createElement("rect",{x:70,y:30,width:10,height:10,fill:f[59]}),i.createElement("rect",{x:70,y:40,width:10,height:10,fill:f[60]}),i.createElement("rect",{x:70,y:50,width:10,height:10,fill:f[61]}),i.createElement("rect",{x:70,y:60,width:10,height:10,fill:f[62]}),i.createElement("rect",{x:70,y:70,width:10,height:10,fill:f[63]})))},bauhaus:function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,f=e.size,m=l(e,["name","colors","title","square","size"]),d=function(e,t){var r=n(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return{color:s(r+i,t,l),translateX:o(r*(i+1),40-(i+17),1),translateY:o(r*(i+1),40-(i+17),2),rotate:o(r*(i+1),360),isSquare:h(r,2)}}))}(t,r),u=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:f,height:f},m),a&&i.createElement("title",null,t),i.createElement("mask",{id:u,maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},i.createElement("rect",{width:80,height:80,rx:c?void 0:160,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(u,")")},i.createElement("rect",{width:80,height:80,fill:d[0].color}),i.createElement("rect",{x:10,y:30,width:80,height:d[1].isSquare?80:10,fill:d[1].color,transform:"translate("+d[1].translateX+" "+d[1].translateY+") rotate("+d[1].rotate+" 40 40)"}),i.createElement("circle",{cx:40,cy:40,fill:d[2].color,r:16,transform:"translate("+d[2].translateX+" "+d[2].translateY+")"}),i.createElement("line",{x1:0,y1:40,x2:80,y2:40,strokeWidth:2,stroke:d[3].color,transform:"translate("+d[3].translateX+" "+d[3].translateY+") rotate("+d[3].rotate+" 40 40)"})))},ring:function(e){var t=e.name,r=e.colors,i=e.title,c=e.square,h=e.size,o=l(e,["name","colors","title","square","size"]),f=function(e,t){var r=n(t),l=e&&e.length,i=Array.from({length:5},(function(t,i){return s(r+i,e,l)})),a=[];return a[0]=i[0],a[1]=i[1],a[2]=i[1],a[3]=i[2],a[4]=i[2],a[5]=i[3],a[6]=i[3],a[7]=i[0],a[8]=i[4],a}(r,t),m=a.a.useId();return a.a.createElement("svg",Object.assign({viewBox:"0 0 90 90",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:h,height:h},o),i&&a.a.createElement("title",null,t),a.a.createElement("mask",{id:m,maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},a.a.createElement("rect",{width:90,height:90,rx:c?void 0:180,fill:"#FFFFFF"})),a.a.createElement("g",{mask:"url(#".concat(m,")")},a.a.createElement("path",{d:"M0 0h90v45H0z",fill:f[0]}),a.a.createElement("path",{d:"M0 45h90v45H0z",fill:f[1]}),a.a.createElement("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:f[2]}),a.a.createElement("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:f[3]}),a.a.createElement("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:f[4]}),a.a.createElement("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:f[5]}),a.a.createElement("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:f[6]}),a.a.createElement("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:f[7]}),a.a.createElement("circle",{cx:45,cy:45,r:23,fill:f[8]})))},beam:function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,f=e.size,m=l(e,["name","colors","title","square","size"]),d=function(e,t){var r,l=n(e),i=t&&t.length,a=s(l,t,i),c=o(l,10,1),f=c<5?c+4:c,m=o(l,10,2),d=m<5?m+4:m;return{wrapperColor:a,faceColor:(r=a,"#"===r.slice(0,1)&&(r=r.slice(1)),(299*parseInt(r.substr(0,2),16)+587*parseInt(r.substr(2,2),16)+114*parseInt(r.substr(4,2),16))/1e3>=128?"#000000":"#FFFFFF"),backgroundColor:s(l+13,t,i),wrapperTranslateX:f,wrapperTranslateY:d,wrapperRotate:o(l,360),wrapperScale:1+o(l,3)/10,isMouthOpen:h(l,2),isCircle:h(l,1),eyeSpread:o(l,5),mouthSpread:o(l,3),faceRotate:o(l,10,3),faceTranslateX:f>6?f/2:o(l,8,1),faceTranslateY:d>6?d/2:o(l,7,2)}}(t,r),u=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 36 36",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:f,height:f},m),a&&i.createElement("title",null,t),i.createElement("mask",{id:u,maskUnits:"userSpaceOnUse",x:0,y:0,width:36,height:36},i.createElement("rect",{width:36,height:36,rx:c?void 0:72,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(u,")")},i.createElement("rect",{width:36,height:36,fill:d.backgroundColor}),i.createElement("rect",{x:"0",y:"0",width:36,height:36,transform:"translate("+d.wrapperTranslateX+" "+d.wrapperTranslateY+") rotate("+d.wrapperRotate+" 18 18) scale("+d.wrapperScale+")",fill:d.wrapperColor,rx:d.isCircle?36:6}),i.createElement("g",{transform:"translate("+d.faceTranslateX+" "+d.faceTranslateY+") rotate("+d.faceRotate+" 18 18)"},d.isMouthOpen?i.createElement("path",{d:"M15 "+(19+d.mouthSpread)+"c2 1 4 1 6 0",stroke:d.faceColor,fill:"none",strokeLinecap:"round"}):i.createElement("path",{d:"M13,"+(19+d.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:d.faceColor}),i.createElement("rect",{x:14-d.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:d.faceColor}),i.createElement("rect",{x:20+d.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:d.faceColor}))))},sunset:function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,h=e.size,o=l(e,["name","colors","title","square","size"]),f=function(e,t){var r=n(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return s(r+i,t,l)}))}(t,r),m=t.replace(/\s/g,""),d=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:h,height:h},o),a&&i.createElement("title",null,t),i.createElement("mask",{id:d,maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},i.createElement("rect",{width:80,height:80,rx:c?void 0:160,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(d,")")},i.createElement("path",{fill:"url(#gradient_paint0_linear_"+m+")",d:"M0 0h80v40H0z"}),i.createElement("path",{fill:"url(#gradient_paint1_linear_"+m+")",d:"M0 40h80v40H0z"})),i.createElement("defs",null,i.createElement("linearGradient",{id:"gradient_paint0_linear_"+m,x1:40,y1:0,x2:40,y2:40,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:f[0]}),i.createElement("stop",{offset:1,stopColor:f[1]})),i.createElement("linearGradient",{id:"gradient_paint1_linear_"+m,x1:40,y1:40,x2:40,y2:80,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:f[2]}),i.createElement("stop",{offset:1,stopColor:f[3]}))))},marble:f},d={geometric:"beam",abstract:"bauhaus"},u=function(e){var t=e.variant,r=void 0===t?"marble":t,i=e.colors,n=e.name,c=e.title,h=e.size,o=e.square,s=l(e,["variant","colors","name","title","size","square"]),u=m[d[r]||r]||f;return a.a.createElement(u,Object.assign({colors:i,name:n,title:c,size:h,square:o},s))};u.defaultProps={variant:"marble",colors:["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"],name:"Clara Barton",square:!1,title:!1};var g=u;t.default=g}])}));
!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"));else if("function"===typeof define&&define.amd)define(["react"],t);else{var r="object"===typeof exports?t(require("react")):t(e.react);for(var l in r)("object"===typeof exports?exports:e)[l]=r[l]}}(this,(function(e){return function(e){var t={};function r(l){if(t[l])return t[l].exports;var i=t[l]={i:l,l:!1,exports:{}};return e[l].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,l){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:l})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(l,i,function(t){return e[t]}.bind(null,i));return l},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=1)}([function(t,r){t.exports=e},function(e,t,r){e.exports=r(2)},function(e,t,r){"use strict";function l(e,t){if(null==e)return{};var r,l,i=function(e,t){if(null==e)return{};var r,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}r.r(t);var i=r(0),a=r.n(i),n=function(e){for(var t=0,r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r),t&=t}return Math.abs(t)},c=function(e,t){return Math.floor(e/Math.pow(10,t)%10)},h=function(e,t){return!(c(e,t)%2)},o=function(e,t,r){var l=e%t;return r&&c(e,r)%2===0?-l:l},s=function(e,t,r){return t[e%r]};var f=function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,h=e.size,f=l(e,["name","colors","title","square","size"]),m=function(e,t){var r=n(e),l=t&&t.length;return Array.from({length:3},(function(e,i){return{color:s(r+i,t,l),translateX:o(r*(i+1),8,1),translateY:o(r*(i+1),8,2),scale:1.2+o(r*(i+1),4)/10,rotate:o(r*(i+1),360,1)}}))}(t,r),d=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:h,height:h},f),a&&i.createElement("title",null,t),i.createElement("mask",{id:d,maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},i.createElement("rect",{width:80,height:80,rx:c?void 0:160,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(d,")")},i.createElement("rect",{width:80,height:80,fill:m[0].color}),i.createElement("path",{filter:"url(#filter_".concat(d,")"),d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:m[1].color,transform:"translate("+m[1].translateX+" "+m[1].translateY+") rotate("+m[1].rotate+" 40 40) scale("+m[2].scale+")"}),i.createElement("path",{filter:"url(#filter_".concat(d,")"),style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:m[2].color,transform:"translate("+m[2].translateX+" "+m[2].translateY+") rotate("+m[2].rotate+" 40 40) scale("+m[2].scale+")"})),i.createElement("defs",null,i.createElement("filter",{id:"filter_".concat(d),filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},i.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),i.createElement("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),i.createElement("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"}))))},m={pixel:function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,h=e.size,o=l(e,["name","colors","title","square","size"]),f=function(e,t){var r=n(e),l=t&&t.length;return Array.from({length:64},(function(e,i){return s(r%(i+1),t,l)}))}(t,r),m=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:h,height:h},o),a&&i.createElement("title",null,t),i.createElement("mask",{id:m,"mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},i.createElement("rect",{width:80,height:80,rx:c?void 0:160,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(m,")")},i.createElement("rect",{width:10,height:10,fill:f[0]}),i.createElement("rect",{x:20,width:10,height:10,fill:f[1]}),i.createElement("rect",{x:40,width:10,height:10,fill:f[2]}),i.createElement("rect",{x:60,width:10,height:10,fill:f[3]}),i.createElement("rect",{x:10,width:10,height:10,fill:f[4]}),i.createElement("rect",{x:30,width:10,height:10,fill:f[5]}),i.createElement("rect",{x:50,width:10,height:10,fill:f[6]}),i.createElement("rect",{x:70,width:10,height:10,fill:f[7]}),i.createElement("rect",{y:10,width:10,height:10,fill:f[8]}),i.createElement("rect",{y:20,width:10,height:10,fill:f[9]}),i.createElement("rect",{y:30,width:10,height:10,fill:f[10]}),i.createElement("rect",{y:40,width:10,height:10,fill:f[11]}),i.createElement("rect",{y:50,width:10,height:10,fill:f[12]}),i.createElement("rect",{y:60,width:10,height:10,fill:f[13]}),i.createElement("rect",{y:70,width:10,height:10,fill:f[14]}),i.createElement("rect",{x:20,y:10,width:10,height:10,fill:f[15]}),i.createElement("rect",{x:20,y:20,width:10,height:10,fill:f[16]}),i.createElement("rect",{x:20,y:30,width:10,height:10,fill:f[17]}),i.createElement("rect",{x:20,y:40,width:10,height:10,fill:f[18]}),i.createElement("rect",{x:20,y:50,width:10,height:10,fill:f[19]}),i.createElement("rect",{x:20,y:60,width:10,height:10,fill:f[20]}),i.createElement("rect",{x:20,y:70,width:10,height:10,fill:f[21]}),i.createElement("rect",{x:40,y:10,width:10,height:10,fill:f[22]}),i.createElement("rect",{x:40,y:20,width:10,height:10,fill:f[23]}),i.createElement("rect",{x:40,y:30,width:10,height:10,fill:f[24]}),i.createElement("rect",{x:40,y:40,width:10,height:10,fill:f[25]}),i.createElement("rect",{x:40,y:50,width:10,height:10,fill:f[26]}),i.createElement("rect",{x:40,y:60,width:10,height:10,fill:f[27]}),i.createElement("rect",{x:40,y:70,width:10,height:10,fill:f[28]}),i.createElement("rect",{x:60,y:10,width:10,height:10,fill:f[29]}),i.createElement("rect",{x:60,y:20,width:10,height:10,fill:f[30]}),i.createElement("rect",{x:60,y:30,width:10,height:10,fill:f[31]}),i.createElement("rect",{x:60,y:40,width:10,height:10,fill:f[32]}),i.createElement("rect",{x:60,y:50,width:10,height:10,fill:f[33]}),i.createElement("rect",{x:60,y:60,width:10,height:10,fill:f[34]}),i.createElement("rect",{x:60,y:70,width:10,height:10,fill:f[35]}),i.createElement("rect",{x:10,y:10,width:10,height:10,fill:f[36]}),i.createElement("rect",{x:10,y:20,width:10,height:10,fill:f[37]}),i.createElement("rect",{x:10,y:30,width:10,height:10,fill:f[38]}),i.createElement("rect",{x:10,y:40,width:10,height:10,fill:f[39]}),i.createElement("rect",{x:10,y:50,width:10,height:10,fill:f[40]}),i.createElement("rect",{x:10,y:60,width:10,height:10,fill:f[41]}),i.createElement("rect",{x:10,y:70,width:10,height:10,fill:f[42]}),i.createElement("rect",{x:30,y:10,width:10,height:10,fill:f[43]}),i.createElement("rect",{x:30,y:20,width:10,height:10,fill:f[44]}),i.createElement("rect",{x:30,y:30,width:10,height:10,fill:f[45]}),i.createElement("rect",{x:30,y:40,width:10,height:10,fill:f[46]}),i.createElement("rect",{x:30,y:50,width:10,height:10,fill:f[47]}),i.createElement("rect",{x:30,y:60,width:10,height:10,fill:f[48]}),i.createElement("rect",{x:30,y:70,width:10,height:10,fill:f[49]}),i.createElement("rect",{x:50,y:10,width:10,height:10,fill:f[50]}),i.createElement("rect",{x:50,y:20,width:10,height:10,fill:f[51]}),i.createElement("rect",{x:50,y:30,width:10,height:10,fill:f[52]}),i.createElement("rect",{x:50,y:40,width:10,height:10,fill:f[53]}),i.createElement("rect",{x:50,y:50,width:10,height:10,fill:f[54]}),i.createElement("rect",{x:50,y:60,width:10,height:10,fill:f[55]}),i.createElement("rect",{x:50,y:70,width:10,height:10,fill:f[56]}),i.createElement("rect",{x:70,y:10,width:10,height:10,fill:f[57]}),i.createElement("rect",{x:70,y:20,width:10,height:10,fill:f[58]}),i.createElement("rect",{x:70,y:30,width:10,height:10,fill:f[59]}),i.createElement("rect",{x:70,y:40,width:10,height:10,fill:f[60]}),i.createElement("rect",{x:70,y:50,width:10,height:10,fill:f[61]}),i.createElement("rect",{x:70,y:60,width:10,height:10,fill:f[62]}),i.createElement("rect",{x:70,y:70,width:10,height:10,fill:f[63]})))},bauhaus:function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,f=e.size,m=l(e,["name","colors","title","square","size"]),d=function(e,t){var r=n(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return{color:s(r+i,t,l),translateX:o(r*(i+1),40-(i+17),1),translateY:o(r*(i+1),40-(i+17),2),rotate:o(r*(i+1),360),isSquare:h(r,2)}}))}(t,r),u=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:f,height:f},m),a&&i.createElement("title",null,t),i.createElement("mask",{id:u,maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},i.createElement("rect",{width:80,height:80,rx:c?void 0:160,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(u,")")},i.createElement("rect",{width:80,height:80,fill:d[0].color}),i.createElement("rect",{x:10,y:30,width:80,height:d[1].isSquare?80:10,fill:d[1].color,transform:"translate("+d[1].translateX+" "+d[1].translateY+") rotate("+d[1].rotate+" 40 40)"}),i.createElement("circle",{cx:40,cy:40,fill:d[2].color,r:16,transform:"translate("+d[2].translateX+" "+d[2].translateY+")"}),i.createElement("line",{x1:0,y1:40,x2:80,y2:40,strokeWidth:2,stroke:d[3].color,transform:"translate("+d[3].translateX+" "+d[3].translateY+") rotate("+d[3].rotate+" 40 40)"})))},ring:function(e){var t=e.name,r=e.colors,i=e.title,c=e.square,h=e.size,o=l(e,["name","colors","title","square","size"]),f=function(e,t){var r=n(t),l=e&&e.length,i=Array.from({length:5},(function(t,i){return s(r+i,e,l)})),a=[];return a[0]=i[0],a[1]=i[1],a[2]=i[1],a[3]=i[2],a[4]=i[2],a[5]=i[3],a[6]=i[3],a[7]=i[0],a[8]=i[4],a}(r,t),m=a.a.useId();return a.a.createElement("svg",Object.assign({viewBox:"0 0 90 90",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:h,height:h},o),i&&a.a.createElement("title",null,t),a.a.createElement("mask",{id:m,maskUnits:"userSpaceOnUse",x:0,y:0,width:90,height:90},a.a.createElement("rect",{width:90,height:90,rx:c?void 0:180,fill:"#FFFFFF"})),a.a.createElement("g",{mask:"url(#".concat(m,")")},a.a.createElement("path",{d:"M0 0h90v45H0z",fill:f[0]}),a.a.createElement("path",{d:"M0 45h90v45H0z",fill:f[1]}),a.a.createElement("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:f[2]}),a.a.createElement("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:f[3]}),a.a.createElement("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:f[4]}),a.a.createElement("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:f[5]}),a.a.createElement("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:f[6]}),a.a.createElement("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:f[7]}),a.a.createElement("circle",{cx:45,cy:45,r:23,fill:f[8]})))},beam:function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,f=e.size,m=l(e,["name","colors","title","square","size"]),d=function(e,t){var r,l=n(e),i=t&&t.length,a=s(l,t,i),c=o(l,10,1),f=c<5?c+4:c,m=o(l,10,2),d=m<5?m+4:m;return{wrapperColor:a,faceColor:(r=a,"#"===r.slice(0,1)&&(r=r.slice(1)),(299*parseInt(r.substr(0,2),16)+587*parseInt(r.substr(2,2),16)+114*parseInt(r.substr(4,2),16))/1e3>=128?"#000000":"#FFFFFF"),backgroundColor:s(l+13,t,i),wrapperTranslateX:f,wrapperTranslateY:d,wrapperRotate:o(l,360),wrapperScale:1+o(l,3)/10,isMouthOpen:h(l,2),isCircle:h(l,1),eyeSpread:o(l,5),mouthSpread:o(l,3),faceRotate:o(l,10,3),faceTranslateX:f>6?f/2:o(l,8,1),faceTranslateY:d>6?d/2:o(l,7,2)}}(t,r),u=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 36 36",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:f,height:f},m),a&&i.createElement("title",null,t),i.createElement("mask",{id:u,maskUnits:"userSpaceOnUse",x:0,y:0,width:36,height:36},i.createElement("rect",{width:36,height:36,rx:c?void 0:72,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(u,")")},i.createElement("rect",{width:36,height:36,fill:d.backgroundColor}),i.createElement("rect",{x:"0",y:"0",width:36,height:36,transform:"translate("+d.wrapperTranslateX+" "+d.wrapperTranslateY+") rotate("+d.wrapperRotate+" 18 18) scale("+d.wrapperScale+")",fill:d.wrapperColor,rx:d.isCircle?36:6}),i.createElement("g",{transform:"translate("+d.faceTranslateX+" "+d.faceTranslateY+") rotate("+d.faceRotate+" 18 18)"},d.isMouthOpen?i.createElement("path",{d:"M15 "+(19+d.mouthSpread)+"c2 1 4 1 6 0",stroke:d.faceColor,fill:"none",strokeLinecap:"round"}):i.createElement("path",{d:"M13,"+(19+d.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:d.faceColor}),i.createElement("rect",{x:14-d.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:d.faceColor}),i.createElement("rect",{x:20+d.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:d.faceColor}))))},sunset:function(e){var t=e.name,r=e.colors,a=e.title,c=e.square,h=e.size,o=l(e,["name","colors","title","square","size"]),f=function(e,t){var r=n(e),l=t&&t.length;return Array.from({length:4},(function(e,i){return s(r+i,t,l)}))}(t,r),m=t.replace(/\s/g,""),d=i.useId();return i.createElement("svg",Object.assign({viewBox:"0 0 80 80",fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:h,height:h},o),a&&i.createElement("title",null,t),i.createElement("mask",{id:d,maskUnits:"userSpaceOnUse",x:0,y:0,width:80,height:80},i.createElement("rect",{width:80,height:80,rx:c?void 0:160,fill:"#FFFFFF"})),i.createElement("g",{mask:"url(#".concat(d,")")},i.createElement("path",{fill:"url(#gradient_paint0_linear_"+m+")",d:"M0 0h80v40H0z"}),i.createElement("path",{fill:"url(#gradient_paint1_linear_"+m+")",d:"M0 40h80v40H0z"})),i.createElement("defs",null,i.createElement("linearGradient",{id:"gradient_paint0_linear_"+m,x1:40,y1:0,x2:40,y2:40,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:f[0]}),i.createElement("stop",{offset:1,stopColor:f[1]})),i.createElement("linearGradient",{id:"gradient_paint1_linear_"+m,x1:40,y1:40,x2:40,y2:80,gradientUnits:"userSpaceOnUse"},i.createElement("stop",{stopColor:f[2]}),i.createElement("stop",{offset:1,stopColor:f[3]}))))},marble:f},d={geometric:"beam",abstract:"bauhaus"},u=function(e){var t=e.variant,r=void 0===t?"marble":t,i=e.colors,n=void 0===i?["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"]:i,c=e.name,h=void 0===c?"Clara Barton":c,o=e.title,s=void 0!==o&&o,u=e.size,g=e.square,w=void 0!==g&&g,E=l(e,["variant","colors","name","title","size","square"]),p=m[d[r]||r]||f;return a.a.createElement(p,Object.assign({colors:n,name:h,title:s,size:u,square:w},E))};t.default=u}])}));

@@ -5,3 +5,3 @@ {

"homepage": "https://boringavatars.com/",
"version": "1.11.1",
"version": "1.11.2",
"main": "build/index.js",

@@ -8,0 +8,0 @@ "types": "index.d.ts",

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