@dicebear/pixel-art-neutral 5.0.0-alpha.1 → 5.0.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +54 -54
- package/dist/index.js +54 -54
- package/dist/index.umd.js +1 -1
- package/package.json +5 -5
package/dist/index.es.js
CHANGED
|
@@ -282,68 +282,68 @@ var schema$1 = {
|
|
|
282
282
|
};
|
|
283
283
|
|
|
284
284
|
const eyes = {
|
|
285
|
-
variant13: (components, colors) => "
|
|
286
|
-
variant12: (components, colors) => "
|
|
287
|
-
variant11: (components, colors) => "
|
|
288
|
-
variant10: (components, colors) => "
|
|
289
|
-
variant09: (components, colors) => "
|
|
290
|
-
variant08: (components, colors) => "
|
|
291
|
-
variant07: (components, colors) => "
|
|
292
|
-
variant06: (components, colors) => "
|
|
293
|
-
variant05: (components, colors) => "
|
|
294
|
-
variant04: (components, colors) => "
|
|
295
|
-
variant03: (components, colors) => "
|
|
296
|
-
variant02: (components, colors) => "
|
|
297
|
-
variant01: (components, colors) => "
|
|
285
|
+
variant13: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
286
|
+
variant12: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/></g>",
|
|
287
|
+
variant11: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
288
|
+
variant10: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
289
|
+
variant09: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
290
|
+
variant08: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
291
|
+
variant07: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/><path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/><path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>",
|
|
292
|
+
variant06: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
293
|
+
variant05: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/></g>",
|
|
294
|
+
variant04: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
295
|
+
variant03: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/><path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/><path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>",
|
|
296
|
+
variant02: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/><path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>",
|
|
297
|
+
variant01: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/><path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/><path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>"
|
|
298
298
|
};
|
|
299
299
|
|
|
300
300
|
const eyebrows = {
|
|
301
|
-
variant13: (components, colors) => "
|
|
302
|
-
variant12: (components, colors) => "
|
|
303
|
-
variant11: (components, colors) => "
|
|
304
|
-
variant10: (components, colors) => "
|
|
305
|
-
variant09: (components, colors) => "
|
|
306
|
-
variant08: (components, colors) => "
|
|
307
|
-
variant07: (components, colors) => "
|
|
308
|
-
variant06: (components, colors) => "
|
|
309
|
-
variant05: (components, colors) => "
|
|
310
|
-
variant04: (components, colors) => "
|
|
311
|
-
variant03: (components, colors) => "
|
|
312
|
-
variant02: (components, colors) => "
|
|
313
|
-
variant01: (components, colors) => "
|
|
301
|
+
variant13: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
302
|
+
variant12: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
303
|
+
variant11: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
304
|
+
variant10: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
305
|
+
variant09: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
306
|
+
variant08: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
307
|
+
variant07: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
308
|
+
variant06: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
309
|
+
variant05: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
310
|
+
variant04: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
311
|
+
variant03: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
312
|
+
variant02: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
313
|
+
variant01: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/></g>")
|
|
314
314
|
};
|
|
315
315
|
|
|
316
316
|
const mouth$1 = {
|
|
317
|
-
surprised03: (components, colors) => "
|
|
318
|
-
surprised02: (components, colors) => "
|
|
319
|
-
happy09: (components, colors) => "
|
|
320
|
-
happy08: (components, colors) => "
|
|
321
|
-
happy07: (components, colors) => "
|
|
322
|
-
happy06: (components, colors) => "
|
|
323
|
-
happy05: (components, colors) => "
|
|
324
|
-
happy04: (components, colors) => "
|
|
325
|
-
happy03: (components, colors) => "
|
|
326
|
-
happy02: (components, colors) => "
|
|
327
|
-
happy01: (components, colors) => "
|
|
328
|
-
sad08: (components, colors) => "
|
|
329
|
-
sad07: (components, colors) => "
|
|
330
|
-
sad06: (components, colors) => "
|
|
331
|
-
sad05: (components, colors) => "
|
|
332
|
-
sad04: (components, colors) => "
|
|
333
|
-
sad03: (components, colors) => "
|
|
334
|
-
sad02: (components, colors) => "
|
|
335
|
-
sad01: (components, colors) => "
|
|
336
|
-
surprised01: (components, colors) => "
|
|
317
|
+
surprised03: (components, colors) => "<path d=\"M9 12v2h2v-2H9Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
318
|
+
surprised02: (components, colors) => "<path d=\"M9 13v1h1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
319
|
+
happy09: (components, colors) => "<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
320
|
+
happy08: (components, colors) => "<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
321
|
+
happy07: (components, colors) => "<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
322
|
+
happy06: (components, colors) => "<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/><path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>"),
|
|
323
|
+
happy05: (components, colors) => "<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
324
|
+
happy04: (components, colors) => "<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
325
|
+
happy03: (components, colors) => "<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
326
|
+
happy02: (components, colors) => "<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>"),
|
|
327
|
+
happy01: (components, colors) => "<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>"),
|
|
328
|
+
sad08: (components, colors) => "<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
329
|
+
sad07: (components, colors) => "<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
330
|
+
sad06: (components, colors) => "<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
331
|
+
sad05: (components, colors) => "<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
332
|
+
sad04: (components, colors) => "<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
333
|
+
sad03: (components, colors) => "<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
334
|
+
sad02: (components, colors) => "<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
335
|
+
sad01: (components, colors) => "<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
336
|
+
surprised01: (components, colors) => "<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>"
|
|
337
337
|
};
|
|
338
338
|
|
|
339
339
|
const glasses$1 = {
|
|
340
|
-
variant07: (components, colors) => "
|
|
341
|
-
variant06: (components, colors) => "
|
|
342
|
-
variant05: (components, colors) => "
|
|
343
|
-
variant04: (components, colors) => "
|
|
344
|
-
variant03: (components, colors) => "
|
|
345
|
-
variant02: (components, colors) => "
|
|
346
|
-
variant01: (components, colors) => "
|
|
340
|
+
variant07: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"".concat(colors.glasses.value, "\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
341
|
+
variant06: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
342
|
+
variant05: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/><path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
343
|
+
variant04: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
344
|
+
variant03: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/><path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
345
|
+
variant02: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/><path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
346
|
+
variant01: (components, colors) => "<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>")
|
|
347
347
|
};
|
|
348
348
|
|
|
349
349
|
var components = /*#__PURE__*/Object.freeze({
|
|
@@ -555,7 +555,7 @@ const style = {
|
|
|
555
555
|
fill: 'none',
|
|
556
556
|
'shape-rendering': 'auto'
|
|
557
557
|
},
|
|
558
|
-
body: "
|
|
558
|
+
body: "<g transform=\"translate(-3 -3)\">".concat((_components$eyes$valu = (_components$eyes = components.eyes) === null || _components$eyes === void 0 ? void 0 : _components$eyes.value(components, colors)) !== null && _components$eyes$valu !== void 0 ? _components$eyes$valu : '', "</g><g transform=\"translate(-3 -3)\">").concat((_components$eyebrows$ = (_components$eyebrows = components.eyebrows) === null || _components$eyebrows === void 0 ? void 0 : _components$eyebrows.value(components, colors)) !== null && _components$eyebrows$ !== void 0 ? _components$eyebrows$ : '', "</g><g transform=\"translate(-3 -2)\">").concat((_components$mouth$val = (_components$mouth = components.mouth) === null || _components$mouth === void 0 ? void 0 : _components$mouth.value(components, colors)) !== null && _components$mouth$val !== void 0 ? _components$mouth$val : '', "</g><g transform=\"translate(-3 -3)\">").concat((_components$glasses$v = (_components$glasses = components.glasses) === null || _components$glasses === void 0 ? void 0 : _components$glasses.value(components, colors)) !== null && _components$glasses$v !== void 0 ? _components$glasses$v : '', "</g>")
|
|
559
559
|
};
|
|
560
560
|
},
|
|
561
561
|
preview: _ref2 => {
|
package/dist/index.js
CHANGED
|
@@ -286,68 +286,68 @@ var schema$1 = {
|
|
|
286
286
|
};
|
|
287
287
|
|
|
288
288
|
const eyes = {
|
|
289
|
-
variant13: (components, colors) => "
|
|
290
|
-
variant12: (components, colors) => "
|
|
291
|
-
variant11: (components, colors) => "
|
|
292
|
-
variant10: (components, colors) => "
|
|
293
|
-
variant09: (components, colors) => "
|
|
294
|
-
variant08: (components, colors) => "
|
|
295
|
-
variant07: (components, colors) => "
|
|
296
|
-
variant06: (components, colors) => "
|
|
297
|
-
variant05: (components, colors) => "
|
|
298
|
-
variant04: (components, colors) => "
|
|
299
|
-
variant03: (components, colors) => "
|
|
300
|
-
variant02: (components, colors) => "
|
|
301
|
-
variant01: (components, colors) => "
|
|
289
|
+
variant13: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
290
|
+
variant12: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/></g>",
|
|
291
|
+
variant11: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
292
|
+
variant10: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
293
|
+
variant09: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
294
|
+
variant08: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
295
|
+
variant07: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/><path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/><path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>",
|
|
296
|
+
variant06: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
297
|
+
variant05: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/></g>",
|
|
298
|
+
variant04: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>",
|
|
299
|
+
variant03: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/><path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/><path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>",
|
|
300
|
+
variant02: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/><path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>",
|
|
301
|
+
variant01: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/><path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/><path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>"
|
|
302
302
|
};
|
|
303
303
|
|
|
304
304
|
const eyebrows = {
|
|
305
|
-
variant13: (components, colors) => "
|
|
306
|
-
variant12: (components, colors) => "
|
|
307
|
-
variant11: (components, colors) => "
|
|
308
|
-
variant10: (components, colors) => "
|
|
309
|
-
variant09: (components, colors) => "
|
|
310
|
-
variant08: (components, colors) => "
|
|
311
|
-
variant07: (components, colors) => "
|
|
312
|
-
variant06: (components, colors) => "
|
|
313
|
-
variant05: (components, colors) => "
|
|
314
|
-
variant04: (components, colors) => "
|
|
315
|
-
variant03: (components, colors) => "
|
|
316
|
-
variant02: (components, colors) => "
|
|
317
|
-
variant01: (components, colors) => "
|
|
305
|
+
variant13: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
306
|
+
variant12: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
307
|
+
variant11: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
308
|
+
variant10: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
309
|
+
variant09: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
310
|
+
variant08: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
311
|
+
variant07: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
312
|
+
variant06: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
313
|
+
variant05: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
314
|
+
variant04: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
315
|
+
variant03: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
316
|
+
variant02: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>"),
|
|
317
|
+
variant01: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"".concat(colors.hair.value, "\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/></g>")
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
const mouth$1 = {
|
|
321
|
-
surprised03: (components, colors) => "
|
|
322
|
-
surprised02: (components, colors) => "
|
|
323
|
-
happy09: (components, colors) => "
|
|
324
|
-
happy08: (components, colors) => "
|
|
325
|
-
happy07: (components, colors) => "
|
|
326
|
-
happy06: (components, colors) => "
|
|
327
|
-
happy05: (components, colors) => "
|
|
328
|
-
happy04: (components, colors) => "
|
|
329
|
-
happy03: (components, colors) => "
|
|
330
|
-
happy02: (components, colors) => "
|
|
331
|
-
happy01: (components, colors) => "
|
|
332
|
-
sad08: (components, colors) => "
|
|
333
|
-
sad07: (components, colors) => "
|
|
334
|
-
sad06: (components, colors) => "
|
|
335
|
-
sad05: (components, colors) => "
|
|
336
|
-
sad04: (components, colors) => "
|
|
337
|
-
sad03: (components, colors) => "
|
|
338
|
-
sad02: (components, colors) => "
|
|
339
|
-
sad01: (components, colors) => "
|
|
340
|
-
surprised01: (components, colors) => "
|
|
321
|
+
surprised03: (components, colors) => "<path d=\"M9 12v2h2v-2H9Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
322
|
+
surprised02: (components, colors) => "<path d=\"M9 13v1h1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
323
|
+
happy09: (components, colors) => "<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
324
|
+
happy08: (components, colors) => "<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
325
|
+
happy07: (components, colors) => "<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
326
|
+
happy06: (components, colors) => "<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/><path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>"),
|
|
327
|
+
happy05: (components, colors) => "<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
328
|
+
happy04: (components, colors) => "<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
329
|
+
happy03: (components, colors) => "<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
330
|
+
happy02: (components, colors) => "<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>"),
|
|
331
|
+
happy01: (components, colors) => "<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>"),
|
|
332
|
+
sad08: (components, colors) => "<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
333
|
+
sad07: (components, colors) => "<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
334
|
+
sad06: (components, colors) => "<path d=\"M8 12h3v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
335
|
+
sad05: (components, colors) => "<path d=\"M8 12h4v1H8v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
336
|
+
sad04: (components, colors) => "<path d=\"M9 12h2v1H9v-1Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
337
|
+
sad03: (components, colors) => "<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
338
|
+
sad02: (components, colors) => "<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
339
|
+
sad01: (components, colors) => "<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"".concat(colors.mouth.value, "\"/>"),
|
|
340
|
+
surprised01: (components, colors) => "<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>"
|
|
341
341
|
};
|
|
342
342
|
|
|
343
343
|
const glasses$1 = {
|
|
344
|
-
variant07: (components, colors) => "
|
|
345
|
-
variant06: (components, colors) => "
|
|
346
|
-
variant05: (components, colors) => "
|
|
347
|
-
variant04: (components, colors) => "
|
|
348
|
-
variant03: (components, colors) => "
|
|
349
|
-
variant02: (components, colors) => "
|
|
350
|
-
variant01: (components, colors) => "
|
|
344
|
+
variant07: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"".concat(colors.glasses.value, "\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
345
|
+
variant06: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
346
|
+
variant05: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"".concat(colors.glasses.value, "\"/><path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
347
|
+
variant04: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"".concat(colors.glasses.value, "\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
348
|
+
variant03: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"".concat(colors.glasses.value, "\"/><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/><path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
349
|
+
variant02: (components, colors) => "<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"".concat(colors.glasses.value, "\"/><path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>"),
|
|
350
|
+
variant01: (components, colors) => "<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"".concat(colors.glasses.value, "\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>")
|
|
351
351
|
};
|
|
352
352
|
|
|
353
353
|
var components = /*#__PURE__*/Object.freeze({
|
|
@@ -559,7 +559,7 @@ const style = {
|
|
|
559
559
|
fill: 'none',
|
|
560
560
|
'shape-rendering': 'auto'
|
|
561
561
|
},
|
|
562
|
-
body: "
|
|
562
|
+
body: "<g transform=\"translate(-3 -3)\">".concat((_components$eyes$valu = (_components$eyes = components.eyes) === null || _components$eyes === void 0 ? void 0 : _components$eyes.value(components, colors)) !== null && _components$eyes$valu !== void 0 ? _components$eyes$valu : '', "</g><g transform=\"translate(-3 -3)\">").concat((_components$eyebrows$ = (_components$eyebrows = components.eyebrows) === null || _components$eyebrows === void 0 ? void 0 : _components$eyebrows.value(components, colors)) !== null && _components$eyebrows$ !== void 0 ? _components$eyebrows$ : '', "</g><g transform=\"translate(-3 -2)\">").concat((_components$mouth$val = (_components$mouth = components.mouth) === null || _components$mouth === void 0 ? void 0 : _components$mouth.value(components, colors)) !== null && _components$mouth$val !== void 0 ? _components$mouth$val : '', "</g><g transform=\"translate(-3 -3)\">").concat((_components$glasses$v = (_components$glasses = components.glasses) === null || _components$glasses === void 0 ? void 0 : _components$glasses.value(components, colors)) !== null && _components$glasses$v !== void 0 ? _components$glasses$v : '', "</g>")
|
|
563
563
|
};
|
|
564
564
|
},
|
|
565
565
|
preview: _ref2 => {
|
package/dist/index.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(a,h){"object"==typeof exports&&"undefined"!=typeof module?h(exports):"function"==typeof define&&define.amd?define(["exports"],h):h(((a="undefined"!=typeof globalThis?globalThis:a||self).DiceBear=a.DiceBear||{},a.DiceBear.PixelArtNeutral={}))}(this,(function(a){"use strict";var h={title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{backgroundColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",pattern:"^[0-9a-zA-Z]+$"}]},default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08"]},eyebrows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyes:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glasses:{type:"array",items:{type:"string",enum:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["green01","blue01","red01","black01","black02","black03"]}]},default:["green01","blue01","red01","black01","black02","black03"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:20},hairColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]}]},default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},mouth:{type:"array",items:{type:"string",enum:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},default:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},mouthColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["variant01","variant02","variant03","variant04"]}]},default:["variant01","variant02","variant03","variant04"]}},additionalProperties:!1};var v=Object.freeze({__proto__:null,eyes:{variant13:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 9V7h3v2H5Zm7-2h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8v1h1V8H7Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant12:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 1V8h1v1h-1Z" fill="#000"/>\n</g>\n',variant11:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant10:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm6 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant09:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant08:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant07:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7v1h3V7H5Zm7 0h3v1h-3V7Z" fill="#fff"/>\n<path d="M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z" fill="#000"/>\n<path d="M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n',variant06:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant05:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n</g>\n',variant04:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/>\n</g>\n',variant03:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M6 7h2v2H6V7Zm7 0h2v2h-2V7Z" fill="#000"/>\n<path d="M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z" fill="#fff" fill-opacity=".4"/>\n<path d="M7 7v1h1V7H7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".7"/>\n</g>\n',variant02:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/>\n<path d="M5 8h1v1H5V8Zm7 0h1v1h-1V8Z" fill="#fff" fill-opacity=".7"/>\n</g>\n',variant01:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z" fill="#fff"/>\n<path d="M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z" fill="#000"/>\n<path d="M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z" fill="#fff" fill-opacity=".5"/>\n</g>\n'},eyebrows:{variant13:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="'.concat(h.hair.value,'"/>\n<path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant12:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant11:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant10:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant09:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="'.concat(h.hair.value,'"/>\n<path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant08:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant07:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant06:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant05:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant04:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="'.concat(h.hair.value,'"/>\n<path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant03:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="'.concat(h.hair.value,'"/>\n<path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant02:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="'.concat(h.hair.value,'"/>\n<path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/>\n</g>\n'),variant01:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="'.concat(h.hair.value,'"/>\n<path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="#000" fill-opacity=".1"/>\n</g>\n')},mouth:{surprised03:(a,h)=>'\n<path d="M9 12v2h2v-2H9Z" fill="'.concat(h.mouth.value,'"/>\n'),surprised02:(a,h)=>'\n<path d="M9 13v1h1v-1H9Z" fill="'.concat(h.mouth.value,'"/>\n'),happy09:(a,h)=>'\n<path d="M7 12v1h1v1h4v-1H8v-1H7Z" fill="'.concat(h.mouth.value,'"/>\n'),happy08:(a,h)=>'\n<path d="M10 12v1H9v1h2v-2h-1Z" fill="'.concat(h.mouth.value,'"/>\n'),happy07:(a,h)=>'\n<path d="M8 13v1h4v-1h1v-1h-1v1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),happy06:(a,h)=>'\n<path d="M9 12v2h2v-1h-1v-1H9Z" fill="'.concat(h.mouth.value,'"/>\n<path d="M11 14v-1h-1v-1H9v1h1v1h1Z" fill="#fff" fill-opacity=".2"/>\n'),happy05:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1h1v-1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),happy04:(a,h)=>'\n<path d="M9 13v1h2v-1h1v-1h-1v1H9Z" fill="'.concat(h.mouth.value,'"/>\n'),happy03:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1H9v-1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),happy02:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff"/>\n'),happy01:(a,h)=>'\n<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>\n<path d="M9 12v1h2v-1H9Z" fill="#fff" fill-opacity=".2"/>\n'),sad08:(a,h)=>'\n<path d="M9 12v1H8v1h4v-1h-1v-1H9Z" fill="'.concat(h.mouth.value,'"/>\n'),sad07:(a,h)=>'\n<path d="M11 12v1H9v1H8v-1h1v-1h2Z" fill="'.concat(h.mouth.value,'"/>\n'),sad06:(a,h)=>'\n<path d="M8 12h3v1H8v-1Z" fill="'.concat(h.mouth.value,'"/>\n'),sad05:(a,h)=>'\n<path d="M8 12h4v1H8v-1Z" fill="'.concat(h.mouth.value,'"/>\n'),sad04:(a,h)=>'\n<path d="M9 12h2v1H9v-1Z" fill="'.concat(h.mouth.value,'"/>\n'),sad03:(a,h)=>'\n<path d="M8 12v1h3v1h1v-1h-1v-1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),sad02:(a,h)=>'\n<path d="M8 13v1h1v-1h3v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>\n'),sad01:(a,h)=>'\n<path d="M10 12v1h1v1h1v-2h-2Z" fill="'.concat(h.mouth.value,'"/>\n'),surprised01:(a,h)=>'\n<path d="M8 12v2h4v-2H8Z" fill="#fff"/>\n'},glasses:{variant07:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant06:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant05:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path opacity=".2" d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#fff"/>\n<path d="M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant04:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/>\n<path d="M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z" fill="'.concat(h.glasses.value,'"/>\n<path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant03:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z" fill="'.concat(h.glasses.value,'"/>\n<path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/>\n<path opacity=".2" d="M14 7h1v1h-1V7ZM7 7h1v1H7V7Z" fill="#fff"/>\n<path d="M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant02:(a,h)=>'\n<g fill-rule="evenodd" clip-rule="evenodd">\n<path d="M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z" fill="'.concat(h.glasses.value,'"/>\n<path opacity=".2" d="M7 8v1h1V8H7Zm7 0v1h1V8h-1Z" fill="#fff"/>\n<path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/>\n<path d="M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z" fill="#fff" fill-opacity=".2"/>\n</g>\n'),variant01:(a,h)=>'\n<path d="M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z" fill="'.concat(h.glasses.value,'"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z" fill="#fff" fill-opacity=".2"/>\n')}});function n(a){let{prng:h,group:n,values:l=[]}=a;const t=v,i=h.pick(l);return t[n][i]?{name:i,value:t[n][i]}:void 0}function l(a){let{prng:h,options:v}=a;const l=n({prng:h,group:"eyes",values:v.eyes}),t=n({prng:h,group:"eyebrows",values:v.eyebrows}),i=n({prng:h,group:"mouth",values:v.mouth}),e=n({prng:h,group:"glasses",values:v.glasses});return{eyes:l,eyebrows:t,mouth:i,glasses:h.bool(v.glassesProbability)?e:void 0}}var t=Object.freeze({__proto__:null,skin:{variant01:"rgba(255, 219, 172, 1)",variant02:"rgba(245, 207, 160, 1)",variant03:"rgba(234, 195, 147, 1)",variant04:"rgba(224, 182, 135, 1)",variant05:"rgba(203, 158, 110, 1)",variant06:"rgba(182, 134, 85, 1)",variant07:"rgba(162, 109, 61, 1)",variant08:"rgba(141, 85, 36, 1)"},hair:{variant01:"rgba(202, 177, 136, 1)",variant02:"rgba(167, 137, 97, 1)",variant03:"rgba(131, 98, 59, 1)",variant04:"rgba(96, 58, 20, 1)",variant05:"rgba(96, 48, 21, 1)",variant06:"rgba(97, 38, 22, 1)",variant07:"rgba(97, 28, 23, 1)",variant08:"rgba(78, 26, 19, 1)",variant09:"rgba(59, 23, 14, 1)",variant10:"rgba(40, 21, 10, 1)"},mouth:{variant01:"rgba(210, 153, 133, 1)",variant02:"rgba(201, 130, 118, 1)",variant03:"rgba(227, 93, 106, 1)",variant04:"rgba(222, 15, 13, 1)"},glasses:{green01:"rgba(95, 112, 92, 1)",blue01:"rgba(67, 103, 125, 1)",red01:"rgba(160, 75, 93, 1)",black01:"rgba(75, 75, 75, 1)",black02:"rgba(50, 50, 50, 1)",black03:"rgba(25, 25, 25, 1)"}});function i(a){var h;let{prng:v,group:n,values:l=[]}=a;const i=t;0===l.length&&l.push("transparent");const e=v.pick(l);return{name:e,value:null!==(h=i[n][e])&&void 0!==h?h:e}}function e(a){let{prng:h,options:v}=a;return{hair:i({prng:h,group:"hair",values:v.hairColor}),mouth:i({prng:h,group:"mouth",values:v.mouthColor}),glasses:i({prng:h,group:"glasses",values:v.glassesColor}),background:i({prng:h,group:"skin",values:v.backgroundColor})}}const r={eyes:{width:20,height:20},eyebrows:{width:20,height:20},mouth:{width:20,height:20},glasses:{width:20,height:20}},f={meta:{title:"Pixel Art - Neutral",creator:"Plastic Jam",license:{name:"MIT",url:"https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE"}},schema:h,create:a=>{var h,v,n,t,i,r,f,d;let{prng:p,options:o}=a;const V=l({prng:p,options:o}),u=e({prng:p,options:o});return o.backgroundColor=[u.background.value],{attributes:{viewBox:"0 0 14 14",fill:"none","shape-rendering":"auto"},body:'\n<g transform="translate(-3 -3)">\n'.concat(null!==(h=null===(v=V.eyes)||void 0===v?void 0:v.value(V,u))&&void 0!==h?h:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(n=null===(t=V.eyebrows)||void 0===t?void 0:t.value(V,u))&&void 0!==n?n:"",'\n</g>\n<g transform="translate(-3 -2)">\n').concat(null!==(i=null===(r=V.mouth)||void 0===r?void 0:r.value(V,u))&&void 0!==i?i:"",'\n</g>\n<g transform="translate(-3 -3)">\n').concat(null!==(f=null===(d=V.glasses)||void 0===d?void 0:d.value(V,u))&&void 0!==f?f:"","\n</g>\n")}},preview:a=>{let{prng:h,options:v,property:n}=a;const t=n.toString(),i=n.toString().replace(/Color$/,""),f=l({prng:h,options:v}),d=e({prng:h,options:v});if(v.backgroundColor=[d.background.value],t in f){var p,o;const{width:a,height:h}=r[t];return{attributes:{viewBox:"0 0 ".concat(a," ").concat(h),fill:"none","shape-rendering":"auto"},body:null!==(p=null===(o=f[t])||void 0===o?void 0:o.value(f,d))&&void 0!==p?p:""}}if(i in d)return{attributes:{viewBox:"0 0 1 1",fill:"none","shape-rendering":"auto"},body:'<rect width="1" height="1" fill="'.concat(d[i].value,'" />')}}};
|
|
1
|
+
!function(a,h){"object"==typeof exports&&"undefined"!=typeof module?h(exports):"function"==typeof define&&define.amd?define(["exports"],h):h(((a="undefined"!=typeof globalThis?globalThis:a||self).DiceBear=a.DiceBear||{},a.DiceBear.PixelArtNeutral={}))}(this,(function(a){"use strict";var h={title:"Options",$schema:"http://json-schema.org/draft-07/schema#",properties:{backgroundColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",pattern:"^[0-9a-zA-Z]+$"}]},default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08"]},eyebrows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyes:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glasses:{type:"array",items:{type:"string",enum:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["green01","blue01","red01","black01","black02","black03"]}]},default:["green01","blue01","red01","black01","black02","black03"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:20},hairColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]}]},default:["variant01","variant02","variant03","variant04","variant05","variant06","variant07","variant08","variant09","variant10"]},mouth:{type:"array",items:{type:"string",enum:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},default:["surprised03","surprised02","happy09","happy08","happy07","happy06","happy05","happy04","happy03","happy02","happy01","sad08","sad07","sad06","sad05","sad04","sad03","sad02","sad01","surprised01"]},mouthColor:{type:"array",items:{anyOf:[{type:"string",pattern:"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"},{type:"string",enum:["variant01","variant02","variant03","variant04"]}]},default:["variant01","variant02","variant03","variant04"]}},additionalProperties:!1};var v=Object.freeze({__proto__:null,eyes:{variant13:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 9V7h3v2H5Zm7-2h3v2h-3V7Z" fill="#fff"/><path d="M7 8v1h1V8H7Zm7 0h1v1h-1V8Z" fill="#000"/></g>',variant12:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/><path d="M6 8h1v1H6V8Zm7 1V8h1v1h-1Z" fill="#000"/></g>',variant11:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/><path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/></g>',variant10:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z" fill="#fff"/><path d="M6 8h1v1H6V8Zm6 0h1v1h-1V8Z" fill="#000"/></g>',variant09:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#fff"/><path d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#000"/></g>',variant08:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#fff"/><path d="M7 8h1v1H7V8Zm5 0h1v1h-1V8Z" fill="#000"/></g>',variant07:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 7v1h3V7H5Zm7 0h3v1h-3V7Z" fill="#fff"/><path d="M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z" fill="#000"/><path d="M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z" fill="#fff" fill-opacity=".5"/></g>',variant06:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/><path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/></g>',variant05:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/><path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/></g>',variant04:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/><path d="M6 8h1v1H6V8Zm7 0h1v1h-1V8Z" fill="#000"/></g>',variant03:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/><path d="M6 7h2v2H6V7Zm7 0h2v2h-2V7Z" fill="#000"/><path d="M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z" fill="#fff" fill-opacity=".4"/><path d="M7 7v1h1V7H7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".7"/></g>',variant02:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/><path d="M5 8h2v1H5V8Zm7 0h2v1h-2V8Z" fill="#000"/><path d="M5 8h1v1H5V8Zm7 0h1v1h-1V8Z" fill="#fff" fill-opacity=".7"/></g>',variant01:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z" fill="#fff"/><path d="M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z" fill="#000"/><path d="M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z" fill="#fff" fill-opacity=".5"/></g>'},eyebrows:{variant13:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="'.concat(h.hair.value,'"/><path d="M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z" fill="#000" fill-opacity=".1"/></g>'),variant12:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="'.concat(h.hair.value,'"/><path d="M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z" fill="#000" fill-opacity=".1"/></g>'),variant11:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="'.concat(h.hair.value,'"/><path d="M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z" fill="#000" fill-opacity=".1"/></g>'),variant10:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="'.concat(h.hair.value,'"/><path d="M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/></g>'),variant09:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="'.concat(h.hair.value,'"/><path d="M5 6h2v1H5V6Zm8 0h2v1h-2V6Z" fill="#000" fill-opacity=".1"/></g>'),variant08:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="'.concat(h.hair.value,'"/><path d="M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z" fill="#000" fill-opacity=".1"/></g>'),variant07:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="'.concat(h.hair.value,'"/><path d="M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z" fill="#000" fill-opacity=".1"/></g>'),variant06:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="'.concat(h.hair.value,'"/><path d="M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z" fill="#000" fill-opacity=".1"/></g>'),variant05:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="'.concat(h.hair.value,'"/><path d="M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z" fill="#000" fill-opacity=".1"/></g>'),variant04:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="'.concat(h.hair.value,'"/><path d="M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z" fill="#000" fill-opacity=".1"/></g>'),variant03:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="'.concat(h.hair.value,'"/><path d="M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z" fill="#000" fill-opacity=".1"/></g>'),variant02:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="'.concat(h.hair.value,'"/><path d="M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z" fill="#000" fill-opacity=".1"/></g>'),variant01:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="'.concat(h.hair.value,'"/><path d="M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z" fill="#000" fill-opacity=".1"/></g>')},mouth:{surprised03:(a,h)=>'<path d="M9 12v2h2v-2H9Z" fill="'.concat(h.mouth.value,'"/>'),surprised02:(a,h)=>'<path d="M9 13v1h1v-1H9Z" fill="'.concat(h.mouth.value,'"/>'),happy09:(a,h)=>'<path d="M7 12v1h1v1h4v-1H8v-1H7Z" fill="'.concat(h.mouth.value,'"/>'),happy08:(a,h)=>'<path d="M10 12v1H9v1h2v-2h-1Z" fill="'.concat(h.mouth.value,'"/>'),happy07:(a,h)=>'<path d="M8 13v1h4v-1h1v-1h-1v1H8Z" fill="'.concat(h.mouth.value,'"/>'),happy06:(a,h)=>'<path d="M9 12v2h2v-1h-1v-1H9Z" fill="'.concat(h.mouth.value,'"/><path d="M11 14v-1h-1v-1H9v1h1v1h1Z" fill="#fff" fill-opacity=".2"/>'),happy05:(a,h)=>'<path d="M8 12v1h1v1h2v-1h1v-1H8Z" fill="'.concat(h.mouth.value,'"/>'),happy04:(a,h)=>'<path d="M9 13v1h2v-1h1v-1h-1v1H9Z" fill="'.concat(h.mouth.value,'"/>'),happy03:(a,h)=>'<path d="M8 12v1h1v1h2v-1H9v-1H8Z" fill="'.concat(h.mouth.value,'"/>'),happy02:(a,h)=>'<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/><path d="M9 12v1h2v-1H9Z" fill="#fff"/>'),happy01:(a,h)=>'<path d="M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/><path d="M9 12v1h2v-1H9Z" fill="#fff" fill-opacity=".2"/>'),sad08:(a,h)=>'<path d="M9 12v1H8v1h4v-1h-1v-1H9Z" fill="'.concat(h.mouth.value,'"/>'),sad07:(a,h)=>'<path d="M11 12v1H9v1H8v-1h1v-1h2Z" fill="'.concat(h.mouth.value,'"/>'),sad06:(a,h)=>'<path d="M8 12h3v1H8v-1Z" fill="'.concat(h.mouth.value,'"/>'),sad05:(a,h)=>'<path d="M8 12h4v1H8v-1Z" fill="'.concat(h.mouth.value,'"/>'),sad04:(a,h)=>'<path d="M9 12h2v1H9v-1Z" fill="'.concat(h.mouth.value,'"/>'),sad03:(a,h)=>'<path d="M8 12v1h3v1h1v-1h-1v-1H8Z" fill="'.concat(h.mouth.value,'"/>'),sad02:(a,h)=>'<path d="M8 13v1h1v-1h3v-1H9v1H8Z" fill="'.concat(h.mouth.value,'"/>'),sad01:(a,h)=>'<path d="M10 12v1h1v1h1v-2h-2Z" fill="'.concat(h.mouth.value,'"/>'),surprised01:(a,h)=>'<path d="M8 12v2h4v-2H8Z" fill="#fff"/>'},glasses:{variant07:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path opacity=".2" d="M5 7h3v3H5V7Zm7 0h3v3h-3V7Z" fill="#fff"/><path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/><path d="M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z" fill="'.concat(h.glasses.value,'"/><path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/></g>'),variant06:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/><path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/><path d="M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z" fill="'.concat(h.glasses.value,'"/><path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/></g>'),variant05:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/><path opacity=".2" d="M7 8h1v1H7V8Zm7 0h1v1h-1V8Z" fill="#fff"/><path d="M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z" fill="'.concat(h.glasses.value,'"/><path d="M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/></g>'),variant04:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/><path opacity=".2" d="M7 7h1v1H7V7Zm7 0h1v1h-1V7Z" fill="#fff"/><path d="M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z" fill="'.concat(h.glasses.value,'"/><path d="M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z" fill="#fff" fill-opacity=".2"/></g>'),variant03:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z" fill="'.concat(h.glasses.value,'"/><path opacity=".2" d="M5 7h3v2H5V7Zm7 0h3v2h-3V7Z" fill="#fff"/><path opacity=".2" d="M14 7h1v1h-1V7ZM7 7h1v1H7V7Z" fill="#fff"/><path d="M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z" fill="#fff" fill-opacity=".2"/></g>'),variant02:(a,h)=>'<g fill-rule="evenodd" clip-rule="evenodd"><path d="M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z" fill="'.concat(h.glasses.value,'"/><path opacity=".2" d="M7 8v1h1V8H7Zm7 0v1h1V8h-1Z" fill="#fff"/><path opacity=".2" d="M5 8h3v1H5V8Zm7 0h3v1h-3V8Z" fill="#fff"/><path d="M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z" fill="#fff" fill-opacity=".2"/></g>'),variant01:(a,h)=>'<path d="M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z" fill="'.concat(h.glasses.value,'"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z" fill="#fff" fill-opacity=".2"/>')}});function l(a){let{prng:h,group:l,values:t=[]}=a;const i=v,e=h.pick(t);return i[l][e]?{name:e,value:i[l][e]}:void 0}function t(a){let{prng:h,options:v}=a;const t=l({prng:h,group:"eyes",values:v.eyes}),i=l({prng:h,group:"eyebrows",values:v.eyebrows}),e=l({prng:h,group:"mouth",values:v.mouth}),r=l({prng:h,group:"glasses",values:v.glasses});return{eyes:t,eyebrows:i,mouth:e,glasses:h.bool(v.glassesProbability)?r:void 0}}var i=Object.freeze({__proto__:null,skin:{variant01:"rgba(255, 219, 172, 1)",variant02:"rgba(245, 207, 160, 1)",variant03:"rgba(234, 195, 147, 1)",variant04:"rgba(224, 182, 135, 1)",variant05:"rgba(203, 158, 110, 1)",variant06:"rgba(182, 134, 85, 1)",variant07:"rgba(162, 109, 61, 1)",variant08:"rgba(141, 85, 36, 1)"},hair:{variant01:"rgba(202, 177, 136, 1)",variant02:"rgba(167, 137, 97, 1)",variant03:"rgba(131, 98, 59, 1)",variant04:"rgba(96, 58, 20, 1)",variant05:"rgba(96, 48, 21, 1)",variant06:"rgba(97, 38, 22, 1)",variant07:"rgba(97, 28, 23, 1)",variant08:"rgba(78, 26, 19, 1)",variant09:"rgba(59, 23, 14, 1)",variant10:"rgba(40, 21, 10, 1)"},mouth:{variant01:"rgba(210, 153, 133, 1)",variant02:"rgba(201, 130, 118, 1)",variant03:"rgba(227, 93, 106, 1)",variant04:"rgba(222, 15, 13, 1)"},glasses:{green01:"rgba(95, 112, 92, 1)",blue01:"rgba(67, 103, 125, 1)",red01:"rgba(160, 75, 93, 1)",black01:"rgba(75, 75, 75, 1)",black02:"rgba(50, 50, 50, 1)",black03:"rgba(25, 25, 25, 1)"}});function e(a){var h;let{prng:v,group:l,values:t=[]}=a;const e=i;0===t.length&&t.push("transparent");const r=v.pick(t);return{name:r,value:null!==(h=e[l][r])&&void 0!==h?h:r}}function r(a){let{prng:h,options:v}=a;return{hair:e({prng:h,group:"hair",values:v.hairColor}),mouth:e({prng:h,group:"mouth",values:v.mouthColor}),glasses:e({prng:h,group:"glasses",values:v.glassesColor}),background:e({prng:h,group:"skin",values:v.backgroundColor})}}const n={eyes:{width:20,height:20},eyebrows:{width:20,height:20},mouth:{width:20,height:20},glasses:{width:20,height:20}},f={meta:{title:"Pixel Art - Neutral",creator:"Plastic Jam",license:{name:"MIT",url:"https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE"}},schema:h,create:a=>{var h,v,l,i,e,n,f,d;let{prng:p,options:o}=a;const V=t({prng:p,options:o}),u=r({prng:p,options:o});return o.backgroundColor=[u.background.value],{attributes:{viewBox:"0 0 14 14",fill:"none","shape-rendering":"auto"},body:'<g transform="translate(-3 -3)">'.concat(null!==(h=null===(v=V.eyes)||void 0===v?void 0:v.value(V,u))&&void 0!==h?h:"",'</g><g transform="translate(-3 -3)">').concat(null!==(l=null===(i=V.eyebrows)||void 0===i?void 0:i.value(V,u))&&void 0!==l?l:"",'</g><g transform="translate(-3 -2)">').concat(null!==(e=null===(n=V.mouth)||void 0===n?void 0:n.value(V,u))&&void 0!==e?e:"",'</g><g transform="translate(-3 -3)">').concat(null!==(f=null===(d=V.glasses)||void 0===d?void 0:d.value(V,u))&&void 0!==f?f:"","</g>")}},preview:a=>{let{prng:h,options:v,property:l}=a;const i=l.toString(),e=l.toString().replace(/Color$/,""),f=t({prng:h,options:v}),d=r({prng:h,options:v});if(v.backgroundColor=[d.background.value],i in f){var p,o;const{width:a,height:h}=n[i];return{attributes:{viewBox:"0 0 ".concat(a," ").concat(h),fill:"none","shape-rendering":"auto"},body:null!==(p=null===(o=f[i])||void 0===o?void 0:o.value(f,d))&&void 0!==p?p:""}}if(e in d)return{attributes:{viewBox:"0 0 1 1",fill:"none","shape-rendering":"auto"},body:'<rect width="1" height="1" fill="'.concat(d[e].value,'" />')}}};
|
|
2
2
|
/*!
|
|
3
3
|
* Pixel Art - Neutral (@dicebear/pixel-art-neutral)
|
|
4
4
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/pixel-art-neutral",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.5",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"build": "dicebear-project build DiceBear.PixelArtNeutral"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@dicebear/core": "^5.0.0-alpha.
|
|
33
|
+
"@dicebear/core": "^5.0.0-alpha.5",
|
|
34
34
|
"@tsconfig/recommended": "^1.0.0",
|
|
35
35
|
"@types/jest": "^26.0.22",
|
|
36
36
|
"@types/node": "^10.11.6",
|
|
37
|
-
"dicebear-project": "^5.0.0-alpha.
|
|
37
|
+
"dicebear-project": "^5.0.0-alpha.5",
|
|
38
38
|
"jest": "^26.6.3",
|
|
39
39
|
"shx": "^0.3.3",
|
|
40
40
|
"ts-jest": "^26.5.4",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"utility-types": "^3.10.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@dicebear/core": "^5.0.0-alpha.
|
|
45
|
+
"@dicebear/core": "^5.0.0-alpha.5"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f468a40150c4d5f913287f10b49eb034b180e4f0"
|
|
51
51
|
}
|