@dicebear/croodles-neutral 8.0.0-rc.2 → 8.0.0
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/LICENSE +1 -1
- package/README.md +4 -4
- package/lib/components/eyes.js +5 -6
- package/lib/index.d.ts +1 -1
- package/lib/schema.js +0 -20
- package/lib/types.d.ts +0 -2
- package/lib/utils/getColors.js +1 -6
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -13,7 +13,7 @@ Applies to all non-design files in this package.
|
|
|
13
13
|
|
|
14
14
|
MIT License
|
|
15
15
|
|
|
16
|
-
Copyright (c)
|
|
16
|
+
Copyright (c) 2024 Florian Körner
|
|
17
17
|
|
|
18
18
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
19
19
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<h1 align="center"><img src="https://dicebear.com/logo-readme.svg" width="96" /> <br />DiceBear Croodles - Neutral</h1>
|
|
1
|
+
<h1 align="center"><img src="https://www.dicebear.com/logo-readme.svg" width="96" /> <br />DiceBear Croodles - Neutral</h1>
|
|
2
2
|
<p align="center">
|
|
3
|
-
<strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
|
|
3
|
+
<strong>Avatar Style for <a href="https://www.dicebear.com/">DiceBear</a></strong><br />
|
|
4
4
|
<a href="https://www.figma.com/community/file/966199982810283152">Croodles - Doodle your face</a> by <a href="https://vjy.me/">vijay verma</a>
|
|
5
5
|
</p>
|
|
6
6
|
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>. / Remix of the original.
|
|
21
21
|
</p>
|
|
22
22
|
<p align="center">
|
|
23
|
-
See <a href="https://dicebear.com/licenses">license overview</a> for more information.
|
|
23
|
+
See <a href="https://www.dicebear.com/licenses">license overview</a> for more information.
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
26
|
<p align="center">
|
|
27
|
-
<a href="https://dicebear.com/styles/croodles-neutral">
|
|
27
|
+
<a href="https://www.dicebear.com/styles/croodles-neutral">
|
|
28
28
|
Read Documentation
|
|
29
29
|
</a>
|
|
30
30
|
</p>
|
package/lib/components/eyes.js
CHANGED
|
@@ -4,16 +4,15 @@
|
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
5
|
* File: https://www.figma.com/file/ZHPv3t2L6Asuuql9ND4q1L
|
|
6
6
|
*/
|
|
7
|
-
import { escape } from '@dicebear/core';
|
|
8
7
|
export const eyes = {
|
|
9
8
|
'variant16': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M30.5 41.3c-5.1.3-8.2-4-9.2-6C27 30 35.5 33 39.1 35c-.7 2-3.4 6-8.6 6.3Z"/><path d="M28.6 37.2c.8.5 2.7 1.1 4-.8 1.6-2.4-2.4-5-3.7-3.8-1 1-.6 2.4-.2 3M90.7 35.2c1-.4 2.6-1.8 1.6-4-1.2-2.8-5.8-.8-5.5 1 .3 1.5 1.9 2 2.6 2"/><path d="M90.7 38.8c-5 1.2-9-2.8-9.8-5.5 4.6-6 15-3.5 17.6-1.3-.4 2-2.8 5.7-7.8 6.8ZM17.3 21c5.5-1.1 18.3-1.5 25.2 5.1M75.6 25.7c3.3-5.4 14.2-11.2 22-7.6"/></g>`,
|
|
10
|
-
'variant15': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M25.5 18.2c1.7-1.3 6.1-2.6 11.3-1.9 4.5.6 6.4 2.3 7.7 4.3M73 20c2-2.8 5.8-3.3 8.2-3.4 2.4-.2 5 0 7.2.
|
|
11
|
-
'variant14': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20.8 12.3c1.7-1.3 6.2-2.6 11.3-2 4.5.7 6.4 2.3 7.7 4.3M72.9 14.2c2-3 5.7-3.7 8-4 2.4-.2 5.1-.2 7.3.
|
|
12
|
-
'variant13': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M26.8 19.1c1.3 1.2 4.7 2.4 8.6 1.7 3.5-.5 5-2 6-3.9M70 16.1c2 2.6 5.4 3.4 7.6 3.6 2.2 0 5-.8 7.2-
|
|
9
|
+
'variant15': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M25.5 18.2c1.7-1.3 6.1-2.6 11.3-1.9 4.5.6 6.4 2.3 7.7 4.3M73 20c2-2.8 5.8-3.3 8.2-3.4 2.4-.2 5 0 7.2.6M4 20.6l13.7 8.5M48.2 33A31.5 31.5 0 0 1 68.7 31M96.9 28.8c2.5-1.3 10.6-8.8 13.1-10.6M18.1 29.7c-.3 3.7-.4 13.1 4.4 16.6 4.7 3.5 23.5-.3 25.2-1 1.7-.5 1.7-7.7-.9-14.3-2.1-5.5-20.5-3.7-28-2.3"/><path d="M70.5 28c6-2.7 22-1 25 0 3.7 1 4.1 10.3 3.8 13.7C98.9 45 78.8 45 74 44.9c-3.7-.1-4.9-11.6-4-16.5M33.4 32.3c-.4.2-1 1-.8 1.9.4 1 3.4 2.5 3.5.8.1-1.7-.4-2.3-1.2-1.6"/><path d="M81.6 31.2c-.6.6-1.7 1.8-1 2.3 1 .7 4.3 2.3 4 0-.2-1.8-1.1-1.7-1.5-1.4l-.8.8"/></g>`,
|
|
10
|
+
'variant14': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20.8 12.3c1.7-1.3 6.2-2.6 11.3-2 4.5.7 6.4 2.3 7.7 4.3M72.9 14.2c2-3 5.7-3.7 8-4 2.4-.2 5.1-.2 7.3.4M4 21.2l13.7 6.5M48.2 31.5a31.5 31.5 0 0 1 20.5-1.8M96.9 27.3a193 193 0 0 0 13.1-8.6M24.6 49.9c-5-3.1-10.5-15.7-5.9-22.7 5.3-7.8 23.8-8.7 28.1 2.4 2.6 6.5 1.6 12.7 1 14.3-1.9 4.5-10.3 13.9-23.2 6ZM95.5 26.5c-5.6-8-21-8.3-25.4.4-1.9 3.7-3 14.2 4.4 20.2 3.8 3 18 8.2 22.8-5.2 2.2-6.3.4-12.2-1.8-15.4Z"/><path d="M34.4 29.8c-.4.2-1.1 1-.8 1.8.4 1.2 3.4 2.5 3.5.9.1-1.7-.5-2.3-1.2-1.6M81 27.7c-.6.5-1.7 1.8-1 2.3 1 .6 4.2 2.3 4 0-.3-1.9-1.1-1.7-1.5-1.4l-.9.7"/></g>`,
|
|
11
|
+
'variant13': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M26.8 19.1c1.3 1.2 4.7 2.4 8.6 1.7 3.5-.5 5-2 6-3.9M70 16.1c2 2.6 5.4 3.4 7.6 3.6 2.2 0 5-.8 7.2-2M4 20.5 17.7 29M48.2 32.8A31.5 31.5 0 0 1 68.7 31M96.9 28.7c2.5-1.4 10.6-7.8 13.1-9.7"/><path d="M22.6 46c-8.3-3.1-7.6-11.4-3.7-17.2 3-3.8 22.8-2.2 27.2 1.8 4.2 3.8 2.3 11.8-1.8 14.3-3.4 2-16.2 3.1-21.7 1ZM94.4 26.7c-3.6-1.2-18.2-1-24 2.6-3.8 2.5-6.5 14.7 3.6 16 4.6.7 14.9 0 18.7-1.8 8.2-3.9 6.8-15.2 1.7-16.8Z"/><path d="M29.7 35.3c1-2 3.2-2.6 4.1-2.6 3.1 0 4 1.3 4.7 2.1M78 35.3c1-2 3.1-2.6 4-2.6 3.2 0 4 1.3 4.7 2.1"/></g>`,
|
|
13
12
|
'variant12': (components, colors) => `<path d="M33 35.6c-1.8-1.7.5-4.4 2.5-3.4 2.5 1.3 3.4 4.3 1.2 6.5s-7.2.8-7.5-4.5c-.3-5.3 6.5-9.2 10-3 3.3 6.3 2.2 11.9-5.2 11.9-5.1 0-7.3-3.6-7.9-7-1-6.7 2.5-13.6 9.7-12 4.5 1 9.7 4 8.8 13.3-1 9.3-6 10.3-12.3 9.2-7.7-1.3-9.8-8.2-7.3-16M78.5 35.6c-1.9-1.7.4-4.4 2.4-3.4 2.5 1.3 3.4 4.3 1.2 6.5-2.1 2.2-7.1.8-7.5-4.5-.3-5.3 6.5-9.2 10-3 3.3 6.3 2.2 11.9-5.2 11.9-5.1 0-7.3-3.6-7.8-7-1-6.7 2.4-13.6 9.7-12 4.4 1 9.6 4 8.7 13.3-1 9.3-6 10.3-12.3 9.2-7.7-1.3-9.8-8.2-7.3-16M29.8 15.9c3 2.2 8.8 2.6 12 1M72.2 16.8c3.6 1 9.2-.3 11.8-2.8" stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>`,
|
|
14
13
|
'variant11': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M36.8 29v-.2c0-.8-.7-1.5-1.5-1.4-1.4 0-3.5.5-5.3 1.4a7.8 7.8 0 0 0-4.3 5.4c-.5 3 0 5.3 1 6.9 1 1.5 2.4 2.3 3.1 2.7a13.6 13.6 0 0 0 5.4.6c1.2 0 2.5-.4 3.6-1.1 1.1-.8 2-2 2.3-3.6a12 12 0 0 0-.7-7 7 7 0 0 0-3-3.6l-.6-.1Zm-7.3 4a4.1 4.1 0 0 0-.9 2.2l.4-1 .5-1.1Zm1.3 4.4-.1.3.2.2v-.5Zm3-2.1v.5-.5Zm-1.8-3c.7-.2 1.6.1 2 .9l-.8.3.7-.3a4.6 4.6 0 0 1 .1.2 6.9 6.9 0 0 1 .4 1.5c0 .3 0 .8-.2 1.2-.5 1-1.4 1.3-2 1.3-.8 0-2-.2-2.4-1.4a2 2 0 0 1 0-1.5 2 2 0 0 1 1-1l.3-.2c.1-.4.4-.7.9-1Zm-.6 2.8ZM86 27V27c0-.9-.7-1.5-1.6-1.4-1.3 0-3.4.4-5.2 1.4a7.8 7.8 0 0 0-4.3 5.4c-.6 3 0 5.2 1 6.8 1 1.6 2.4 2.4 3.1 2.8a13.6 13.6 0 0 0 5.4.6c1.2-.1 2.5-.4 3.6-1.2 1.1-.7 2-2 2.3-3.6a12 12 0 0 0-.7-6.9 7 7 0 0 0-3-3.6l-.6-.1Zm-7.4 4.1a4.1 4.1 0 0 0-.8 2.1l.4-1c0-.4.2-.7.4-1Zm1.4 4.4-.2.3.3.2-.1-.5Zm3-2.1-.1.2v.2l.1-.4Zm.9 4a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Zm-2.7-7c.7-.3 1.6 0 2 .8l-.8.4.7-.4a4.6 4.6 0 0 1 .1.3 6.8 6.8 0 0 1 .4 1.5c0 .2 0 .7-.3 1.2-.4 1-1.3 1.3-2 1.3s-1.8-.3-2.3-1.4a2 2 0 0 1 0-1.5 2 2 0 0 1 1-1l.3-.2c.1-.4.4-.8.9-1Zm-.6 2.8Z" fill="#000"/><path d="M27.5 21.8c1-1.3 3.8-3.4 6-2M78 18c1-1.3 4.2-1.4 4.7 0" stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>`,
|
|
15
|
-
'variant10': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20.4 39.8c2.2-3.1 9-8.4 19-4"
|
|
16
|
-
'variant09': (components, colors) => `<g stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M23.2 17.6c1.6.8 6 1.7 11.2 1.3 4.5-.4 6.5-1.5 7.8-2.9M75.2 15c2.1 1.9 5.9 2.3 8.3 2.3 2.3.1 5 0 7.1-.
|
|
14
|
+
'variant10': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20.4 39.8c2.2-3.1 9-8.4 19-4"/><path d="M29 35.3c-1 .5-2.8 2.1-1.6 4.5 1.5 3 6.5.5 6-1.5-.4-1.6-2.1-2-3-2M17 24.6C21.8 23 33.2 21 40 27M71.4 24.6c4.8-1.7 16.2-3.6 23 2.3M68 28c6.4-.8 24.3 1.6 27 3.2 3 1.8 3.5 15.2 1.2 21.6-1.2 3.2-13.3 6.7-23.8 0-7.5-4.7-5.9-18.8-5-23.7"/><path d="M70.6 31c-.7 1.9-1.8 8.5-2.5 10.8l5-10.2c-.7 3.2-3.5 14.2-3.3 15.2.3 1.2 5.9-15.3 6.5-15.2.6 0-4.4 16.9-4.4 17.9s5.8-17.2 6.7-17.2c.9 0-4.4 17.9-3.8 18.8.6.9 5.2-17.3 6-18.2C81.4 32 76.1 53 77 53c.8 0 6.1-21 6.9-19 .7 2-5.1 22-3.2 20.3 2-1.6 5.6-21.8 7-20.3 1.5 1.5-4.4 20.8-3.2 20.3C85.8 53.8 90 35 90.6 35c.6 0-2.4 20.8-1.8 19.4l5-19.4c.3-1.2 0 3 0 6.9-.1 3-2.2 10.5-2.5 12.5l4.4-14.6c0 2.3 0 7.6-.3 10.1-.3 2.6-.8 3.7-1 4M6 3a253.7 253.7 0 0 0 58.6 26c3 .8 28 4.5 32 2.3 3.3-1.7 11.2-14 13-16"/></g>`,
|
|
15
|
+
'variant09': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M23.2 17.6c1.6.8 6 1.7 11.2 1.3 4.5-.4 6.5-1.5 7.8-2.9M75.2 15c2.1 1.9 5.9 2.3 8.3 2.3 2.3.1 5 0 7.1-.4M4 18.5 17.7 26M48.2 29.8A31.5 31.5 0 0 1 68.7 28M96.9 25.6c2.5-1.3 10.6-7.7 13.1-9.6M18.1 26.6c-.3 3.7-1.7 15.6 0 17.6 2.6 3 27.8-1 29.5-1.5 1.6-.6 2-8.8-.5-15.4-2.2-5.5-20.8-3.1-28.4-1.8"/><path d="m19.5 31.9 2.8-5.4c-.8 3.3-3 11-2.8 12 .3 1.2 5.7-12.6 6.3-12.6.6.1-4.5 16-4.5 17s6-17 6.9-17c.9 0-4.2 15.6-3.6 16.5.6 1 5.4-16 6.2-16.9.7-.9-4.3 18.2-3.4 18.1.8 0 6.1-21 6.9-19 .7 2-4.9 21.2-3 19.5 2-1.6 5.4-21 6.8-19.5 1.4 1.5-3.6 20-2.4 19.5 1.3-.5 4.6-17.6 5.2-17.6.6 0-1 17.1-.5 17.1s3.3-14 3.7-15.1c.3-1.2 1-.5 1 3.4-.1 3-1.3 9-1.6 11l3-7.6M70.8 33l2.8-7c-.8 3.3-2.3 10-2 10.9.2 1.2 5-11.5 5.5-11.4.6 0-3.5 13.1-3.5 14 0 1 5-14 5.9-14 .9 0-3.6 14.8-3 15.7.6.9 4.8-15.3 5.6-16.2.7-.9-4.3 18.2-3.4 18.1.8 0 6.1-21 6.9-19 .7 2-5.1 20.7-3.2 19 2-1.6 5.6-20.5 7-19 1.4 1.5-3.6 20-2.4 19.6C88.3 43 91.6 26 92.2 26c.6 0-1 17-.5 17s2.7-12.7 3-13.9c.4-1.1 1.3-.5 1.2 3.3 0 3.1-.8 7.9-1.1 9.9l3-7.6"/><path d="M70.5 24.8c6-2.7 22.2-1 25.2 0 3.8 1.1 3.6 14.7 3.3 18-.4 3.4-22.1.2-26.8 0-3.7-.1-3-12.7-2.1-17.6"/></g>`,
|
|
17
16
|
'variant08': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M34.8 27.8c3.3.6 11-.1 14.7-7.9M65.2 15c.5 2.7 2.7 8.5 7.4 10.8 4.6 2.3 8.8 2.3 10.3 2M21.2 40.5a134 134 0 0 1 27.1-5M21 42.7c6.8-1.3 20.5-4.5 25.2-5.2M67.3 34.8c7.1-1.3 22.3 2.4 26.3 4.1"/><path d="M66.7 35.2c7.1-1.2 20.6 3.7 24.6 5.5"/><path d="M66.5 36.1c7-1.3 21.6 4.9 25.6 6.7"/><path d="M66.5 37.5c7-1.3 21.6 5 25.6 6.9M25 41.3c6.5-2.3 20.5-6.6 24-5.2M24 45c6.6-2.3 20.3-6.2 24-7"/></g>`,
|
|
18
17
|
'variant07': (components, colors) => `<path d="M35.5 48c-.7-.6-5.1-2.3-7.4-6.2-2.3-3.8-2.5-7.7 0-9.3 1.6-1.2 5.1.6 7.4 2.2M36.4 34c1.5-1.6 4.1-3 6.7-1.6 1.8 1 1.6 7.1 0 9.4-1.2 1.9-5.2 5-6.7 6M77.7 33.3c-2.2-2.1-7.1-5.4-9.2-1.7-2.6 4.6 5.6 13 10.2 14.8M79.8 47c2.2-1.7 7-5.4 7.8-6.6 1-1.5 2.8-8 0-10.6-2.8-2.6-8.6 1-8.6 5.2M26 18.3c.6-1.4 3-4.2 7-3.7 5.2.6 6.2 1.5 7.4 3.7M72.2 16.2c.5-1.7 3-4.8 8.2-4 5.2.6 7 3.5 7.3 4.9" stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>`,
|
|
19
18
|
'variant06': (components, colors) => `<g stroke="#000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M42.8 24c-6.4.3-17.8 3.1-17.8 11.4C25 47.8 34.7 50 38.2 50c3 0 9.2-1.6 11.5-4 2.3-2.6 3.2-12.6 1.6-15.8-1.1-2.2-3.2-5-7-5"/><path d="M30.7 32.3c-.4 0-1.2.2-1 .9.3.6 1.4.5 1.6 0 .3-.6-.2-1.8-.2-1.8M78.6 42c.3.6.5.4.7 0"/><path d="M80.3 30.4c-3 .8-8.6 3.8-7.4 9.9 1.3 6 5.8 7.7 10.4 6.4 4.5-1.4 7-7.6 6.4-10.3-1-3.4-5.7-6-9.4-5M28.7 16.7c2.1 1.6 8 4.3 14.3 2.4 6.3-2 11.2-7.5 12.8-10.1M78.9 14.5c-1 1 .2 4.7 2.4 5.5 2.2.9 3.6 1.5 5.8 1.5"/></g>`,
|
package/lib/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Croodles - Neutral (@dicebear/croodles-neutral)
|
|
9
9
|
*
|
|
10
10
|
* Code licensed under MIT License.
|
|
11
|
-
* Copyright (c)
|
|
11
|
+
* Copyright (c) 2024 Florian Körner
|
|
12
12
|
*
|
|
13
13
|
* Design "Croodles - Doodle your face" by vijay verma licensed under CC BY 4.0. / Remix of the original.
|
|
14
14
|
* Source: https://www.figma.com/community/file/966199982810283152
|
package/lib/schema.js
CHANGED
|
@@ -7,16 +7,6 @@
|
|
|
7
7
|
export const schema = {
|
|
8
8
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
9
9
|
"properties": {
|
|
10
|
-
"eyepatchColor": {
|
|
11
|
-
"type": "array",
|
|
12
|
-
"items": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"pattern": "^(transparent|[a-fA-F0-9]{6})$"
|
|
15
|
-
},
|
|
16
|
-
"default": [
|
|
17
|
-
"000000"
|
|
18
|
-
]
|
|
19
|
-
},
|
|
20
10
|
"eyes": {
|
|
21
11
|
"type": "array",
|
|
22
12
|
"items": {
|
|
@@ -59,16 +49,6 @@ export const schema = {
|
|
|
59
49
|
"variant01"
|
|
60
50
|
]
|
|
61
51
|
},
|
|
62
|
-
"glassesColor": {
|
|
63
|
-
"type": "array",
|
|
64
|
-
"items": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"pattern": "^(transparent|[a-fA-F0-9]{6})$"
|
|
67
|
-
},
|
|
68
|
-
"default": [
|
|
69
|
-
"000000"
|
|
70
|
-
]
|
|
71
|
-
},
|
|
72
52
|
"mouth": {
|
|
73
53
|
"type": "array",
|
|
74
54
|
"items": {
|
package/lib/types.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ export interface Options {
|
|
|
8
8
|
eyes?: ('variant16' | 'variant15' | 'variant14' | 'variant13' | 'variant12' | 'variant11' | 'variant10' | 'variant09' | 'variant08' | 'variant07' | 'variant06' | 'variant05' | 'variant04' | 'variant03' | 'variant02' | 'variant01')[];
|
|
9
9
|
nose?: ('variant09' | 'variant08' | 'variant07' | 'variant06' | 'variant05' | 'variant04' | 'variant03' | 'variant02' | 'variant01')[];
|
|
10
10
|
mouth?: ('variant18' | 'variant17' | 'variant16' | 'variant15' | 'variant14' | 'variant13' | 'variant12' | 'variant11' | 'variant10' | 'variant09' | 'variant08' | 'variant07' | 'variant06' | 'variant05' | 'variant04' | 'variant03' | 'variant02' | 'variant01')[];
|
|
11
|
-
glassesColor?: string[];
|
|
12
|
-
eyepatchColor?: string[];
|
|
13
11
|
}
|
|
14
12
|
export type ColorPickCollection = Record<string, string>;
|
|
15
13
|
export type ComponentGroup = Record<string, ComponentGroupItem>;
|
package/lib/utils/getColors.js
CHANGED
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
5
|
* File: https://www.figma.com/file/ZHPv3t2L6Asuuql9ND4q1L
|
|
6
6
|
*/
|
|
7
|
-
import { convertColor } from './convertColor.js';
|
|
8
7
|
export function getColors({ prng, options }) {
|
|
9
|
-
|
|
10
|
-
return {
|
|
11
|
-
'glasses': convertColor(prng.pick((_a = options.glassesColor) !== null && _a !== void 0 ? _a : [], 'transparent')),
|
|
12
|
-
'eyepatch': convertColor(prng.pick((_b = options.eyepatchColor) !== null && _b !== void 0 ? _b : [], 'transparent')),
|
|
13
|
-
};
|
|
8
|
+
return {};
|
|
14
9
|
}
|
|
15
10
|
;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/croodles-neutral",
|
|
3
|
-
"version": "8.0.0
|
|
3
|
+
"version": "8.0.0",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
"test": "uvu tests"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@dicebear/core": "8.0.0
|
|
32
|
+
"@dicebear/core": "8.0.0",
|
|
33
33
|
"@tsconfig/recommended": "^1.0.2",
|
|
34
34
|
"del-cli": "^5.0.0",
|
|
35
35
|
"typescript": "^5.1.6",
|
|
36
36
|
"uvu": "^0.5.6"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@dicebear/core": "^8.0.0
|
|
39
|
+
"@dicebear/core": "^8.0.0"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=16.0.0"
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "218cf2a59086fb512ac9b1bfc498ccb8855f4226"
|
|
48
48
|
}
|