@dicebear/open-peeps 5.0.0-alpha.31 → 5.0.0-alpha.32
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/lib/components/facialHair.js +2 -2
- package/lib/components/head.js +48 -48
- package/lib/core.js +1 -1
- package/lib/index.d.ts +0 -11
- package/lib/index.js +1 -2
- package/lib/schema.js +30 -56
- package/lib/types.d.ts +1 -5
- package/lib/utils/getColors.js +4 -16
- package/lib/utils/pickComponent.js +2 -5
- package/package.json +3 -3
- package/lib/colors/clothing.d.ts +0 -2
- package/lib/colors/clothing.js +0 -9
- package/lib/colors/hair.d.ts +0 -2
- package/lib/colors/hair.js +0 -12
- package/lib/colors/index.d.ts +0 -3
- package/lib/colors/index.js +0 -3
- package/lib/colors/skin.d.ts +0 -2
- package/lib/colors/skin.js +0 -7
- package/lib/utils/pickColor.d.ts +0 -9
- package/lib/utils/pickColor.js +0 -13
|
@@ -4,7 +4,7 @@ export const facialHair = {
|
|
|
4
4
|
full: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M117.7 95.2c8.1-19 25.8-33 46.1-38 15-3.7 30.7-3.6 45.9-2.1 8 .7 16.5 1.4 24 4.3a35.3 35.3 0 0 1 15.6 13 73.2 73.2 0 0 1 11 25.4c-1 5.9-3 10.9-8.5 14.6-5.3 3.6-11.6 5-18 5.6l-1.7-.9c-10-5.6-16.9-19-29.3-17.2-11.1 1.6-18.5 15.6-25 23.8a87 87 0 0 1-59.8-16c-.8-4.2-.9-8.4-.3-12.5Zm157-14.4a78 78 0 0 0-42.9-46c-36-15.6-82.8-4.7-112 20.7-10 8.7-20 21.4-23 35.1a5 5 0 0 0-2.5 1.3c-21-13.2-42.8-26-59.8-44.4A118.3 118.3 0 0 1 8.4 1c-.5-1.5-2.8-1.3-2.7.3v1.1c-.2-.6-1.2-.3-1.3.4-2.8 21-6.4 43.5-3 64.7 1.8 12.6 7.6 22 15.3 32a316.6 316.6 0 0 0 27 30.2c6.1 6 12.5 13 19.9 17.5 8.6 5.2 18.4 9.2 27.6 13.2 9.3 4 18.8 7.8 28.5 11 19.3 6.6 39.3 11.1 59.7 13.1 16.3 1.6 34.9 3.3 50.5-2.8a68.2 68.2 0 0 0 29.3-23.4c8.3-11.1 15-23.8 18.6-37.2 3.7-13.8-2.2-38-3-40.3Z" fill="#000"/>`,
|
|
5
5
|
full2: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M248.1 111.7c-3.5-1.1-6.9-2.4-10.3-3.7a70.4 70.4 0 0 0-57.4-3c-9 3.6-17.5 10.2-26.6 14.5l-6.5 2.2a195 195 0 0 1-31.6-14.6l-3-3.8a148 148 0 0 0 18.3-4c17.3-4.7 33.7-12.5 51-17.4 16-4.7 33.5-7.2 49.7-1.4 7.6 2.7 14.4 7.5 21.9 10.7 3.8 1.7 8.4 3.3 13 3.5-3 7-6.6 13.5-11.7 19l-6.8-2Zm37.6-54.6c-1.6 1.3-8 5.5-10 8l-1.6-.7a4.4 4.4 0 0 0-3.6-1.6 85.6 85.6 0 0 1-25.6-18.5c-5.4-5.6-11-11.4-18-14.7-8.6-3.8-16.9-2-25.8-1.4-9.5.6-18.8-2-28.3-.8-6.9 1-13.4 3.9-19 8-11.4 8.4-19.3 20.3-29 30.5a80.4 80.4 0 0 1-39.4 22.7c-.2 0-.3-.2-.5-.3-11-10-21-21.3-29.9-33.3-8.6-11.8-31.3-64.7-36.8-69.3-2.3-2-4.8-2.8-7.2-2.7C6.7-16.9 2.7-13.9.9-9c-3 8-1.5 18.4-1.3 26.9a409.2 409.2 0 0 0 12.3 88.1A91.6 91.6 0 0 0 34 150.1c12.5 12.4 29.5 20.6 45.2 28 15 7 30.7 13.2 46.9 18 14 6.4 29 11.4 44 14 16.6 3 34 3.2 50-2.6a88 88 0 0 0 22.1-11.7c9.6-5 18.2-11.8 25.3-20.8a113.4 113.4 0 0 0 21.2-56.2c.7-5.2 3.3-25 3.5-28.1l1.9-30c.3-4.8-5.5-6-8.5-3.6Z" fill="#000"/>`,
|
|
6
6
|
full3: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M228 104.3c-9.3-8.3-19.8-25-33.1-11.8-3.3 3.8-4.7 12.1-9.7 13.8-6.8 2.1-13.4-5-15.7-10.4-9.4-30.4 29.3-38.7 51.4-33.8 10.8 4.4 18.7 22.3 19.2 31.6.3 6.2-5 15.4-12.1 10.6Zm70.3-46.7-.4-1.1c-4.1-1.6-7.4 0-9.4 3 0 .7.3 1.4.4 2.2-1.5 3.2-3 7.3-5 10.1l-1.3-.1c-35 3.6-17.9-32.9-53.3-42-27.4-4.5-76.8.7-89.7 29.2-10.2 45.5-62 13.8-79-9.9C42.4 27.5 30.7 1.2 19.4-24.4c-2.4-5.4-9.8-1.5-9 3.7C-.1.3.3 25.4-2.3 48.3c-4.4 46-8.7 110.2 33.9 138.2 55.5 62.7 194 84.8 258 27.2 22.2-47.6 19.4-105.7 8.7-156.1Z" fill="#000"/>`,
|
|
7
|
-
full4: (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M-11.6-16.2c7 0 10 16.4 10 16.4 18 31 35.3 62 66.1 83.2 34.3 13.8 68 37.2 107 39.7 17.7-1.8 22.8-18 44.6-12.3 13.9 3.4 29.4 10 42.3.5 10.8-7.1 18.4-17.9 27.8-26.5.4-1.6 3.6 15 2.6 20.5l-.7 3.2c-5.8 25.5-11.7 55.6-37.6 69.7-7.9 4.1-19 8.2-27.7 5.8-46.3 7.4-96.5 2-137-21-14.3-3.8-24.9-15.2-36.1-23.8-27.5-24-59-54.6-62-91.1-3-36.6-1.6-64.3.7-64.3ZM128.3 56c15.7-25.3 47-21.2 71.4-9.7 13.4-9.1 31.2-7.4 45.7-1 13.5 7.4 23.7 19.4 33 31 2.3 3 3.2 7.2 0 8.7-15 12.4-46.4 5.1-60.6-4.1-10.3-.8-8-15.4-20-5.2a64 64 0 0 1-28.5 14.8 75.2 75.2 0 0 1-67.4-6c-2.7-.3-13.7-6.6-9.8-8.8 4.3 1.2 28-12.4 36.2-19.7Z" fill="${escape.xml(colors.hair
|
|
7
|
+
full4: (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M-11.6-16.2c7 0 10 16.4 10 16.4 18 31 35.3 62 66.1 83.2 34.3 13.8 68 37.2 107 39.7 17.7-1.8 22.8-18 44.6-12.3 13.9 3.4 29.4 10 42.3.5 10.8-7.1 18.4-17.9 27.8-26.5.4-1.6 3.6 15 2.6 20.5l-.7 3.2c-5.8 25.5-11.7 55.6-37.6 69.7-7.9 4.1-19 8.2-27.7 5.8-46.3 7.4-96.5 2-137-21-14.3-3.8-24.9-15.2-36.1-23.8-27.5-24-59-54.6-62-91.1-3-36.6-1.6-64.3.7-64.3ZM128.3 56c15.7-25.3 47-21.2 71.4-9.7 13.4-9.1 31.2-7.4 45.7-1 13.5 7.4 23.7 19.4 33 31 2.3 3 3.2 7.2 0 8.7-15 12.4-46.4 5.1-60.6-4.1-10.3-.8-8-15.4-20-5.2a64 64 0 0 1-28.5 14.8 75.2 75.2 0 0 1-67.4-6c-2.7-.3-13.7-6.6-9.8-8.8 4.3 1.2 28-12.4 36.2-19.7Z" fill="${escape.xml(`#${colors.hair}`)}"/><path d="M-15.3 11c.2-1.4 2.3-1.4 2.3 0 1 29.2 10.5 61.3 26.6 86.4 38.8 63.2 117.8 94.9 194 84 55.5-.8 61.5-32.3 75.3-76.3 7.2-5.9 10.7-3.7 8.5 3.2-17.2 53-23 83.5-90.8 83-108.9 15.5-227-73.5-215.9-180.4Zm153.8 23.5c17.8-7.9 39-6.8 53.8 4.2l1 .2c2.6.6 5 1 8 .8C240.6 19 266.8 55 287 82c1.5 0 2.8 1.3 2.4 2.7l.6.7a36 36 0 0 1-13.4 17.4c-20.5 27.4-35.9 18.8-62.6 7.6-27.5-4.1-28.6 28.3-67 13.4l-1.5-.4a95.6 95.6 0 0 1-36.3-19.7c-.3-.3 0-.9.5-.7 21.3 6.4 48.7 27.4 70.3 13.3 5.5-3.7 10.4-8.2 16.6-11 35-11.7 47.2 34.6 77.8-13.4-24.9 4.3-53 0-71.6-17-27.8 33.6-82 28.2-116.5 7.4-4.7.6-11.7-4-7.4-8.5 4.8-3.7 12.3-2.2 18.1-4.3 18.7-6.6 23-27.7 41.6-35Zm62.3 14c-19.7-14-49.1-16.3-68 .2-11.7 11.8-19.4 28.8-38.3 32 32.5 18.7 79.3 19 104.4-10.8.8-2.6 4.9-1.5 5.4.7a86.6 86.6 0 0 0 74 12.9l-3.4-4.6c-17.5-24-40.1-52-73.6-32.2-.8.4-1-.6-1.2-1.1l-.4.3c.3.6 2.8 2.7 1 2.7Zm80.6 41.8.4.5a54 54 0 0 1 1.7-1h-.1l-2 .5ZM-12.7-25.4v-1c0-9.6 2.6 2.6 3.7 5 5 9 9.2 18 14.5 26.7C26.8 43.6 30.1 60.3 73 82c3.2 2.8-.1 7.7-4 6.7-6-1.5-11.6-5.3-16.8-8.4C23 65.3 12.2 34.6-1 7.8c-3.8-10.6-12.7-22-11.7-33.2Z" fill="#000"/></g>`,
|
|
8
8
|
goatee1: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M208 31.3c-11.2-5-31.2-.6-38.4 1.1-16.9 4-33.8 12.8-39 26.5-6 15.4 5.8 20.3 7.5 19.5 11.7.8 25.6-6.5 37.8-8.4 10-1.6 20.4-3 29.7-8.2 6.8 3.7 22.1 5.7 34.5 9 10.6 2.8 15.1 8.8 25 7.5 11.6-1.5 6.8-26.1-6.2-36.1-14.3-11-38.5-15.4-51-10.9Zm22 105.4c-9.8 2.3-10.4-19-11.5-26.5-.9-6-5.7-21-17.9-20.4-12.1.6-16.7 13.3-16.1 21.2.4 5.2 5.1 31.2-10 34.4-9.6 0-20.7-.6-30.8-2.5-12-2.7-27.4-12.1-31.5 6.4-1.5 6.7 51 26.6 74.2 28.4a75.1 75.1 0 0 0 68-20.6c3.9-4.1 14.6-21.2 15.4-25.3 1.6-8.8-2.1-14.5-13-11.4-7.6 4.1-20.6 14.7-26.9 16.3Z" fill="#000"/>`,
|
|
9
9
|
goatee2: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M237.6 65.9c2.7 2.8 5.4 5.8 7.8 9 .7 4.8.9 9.8.3 15-1 7.5-3 14.8-5.8 21.8-1.6-.2-3.2-.7-4.8-1.4-5-2.3-7.7-6.9-11-11-6.8-8-19-12.8-27.6-4.4-3.7 3.6-6.1 8.7-9.4 12.7-3.7 4.4-7.8 8.6-12 12.4l-1.7 1.5-7-8.3a80.9 80.9 0 0 1-15.8-27.8c-1-3.2-1.6-6.7-1.8-10.1a54 54 0 0 1 10.4-10c11.8-8.6 25.5-10 39.7-10.7 14.7-.8 28 .2 38.7 11.3Zm35.8 39.6C273 99.8 272 94 270.7 88c-4.8-22-15-44-35.7-54a48.3 48.3 0 0 0-31.4-4.2c-18.4-7-39 .1-53.4 12.8-17.2 14.9-25 38.3-27.8 60.2-1.8 15.3-2.5 35.6 1.8 46.7 4.4 11 31.9 40.7 71.1 40.9 56 .3 69.5-37.4 71.2-40.7a79.3 79.3 0 0 0 7-44Z" fill="#000"/>`,
|
|
10
10
|
moustache1: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M230 34c11.7.8 22.7 8 32.8 13.7a67 67 0 0 1 22.6 24l.4.6c.3.5-.3 1-.8.9-9.6-4.9-19.6-8.7-29-14-9-5.6-20.3-7.5-29.5-12.6-5.2-4-3.6-12.3 3.4-12.6Zm-30.5 5.7c.4 2.7-.7 6.9-4.2 8.1-6.1 2.2-11.8 3.4-18 5l-8 2.3c-15.4 4.4-31 9-44.7 15.9l-.4-.2c-10-6.2 44.8-32 63.7-36.2 3.5-.8 11 1 11.6 5Z" fill="#000"/>`,
|
|
@@ -15,5 +15,5 @@ export const facialHair = {
|
|
|
15
15
|
moustache6: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M258.5 37.2c-9-4.2-18.7-6.7-28.7-7.6-4.4-.4-12.9-1.6-17.5 1.2a17 17 0 0 0-5.4 5.4c-.5-.8-1.3-1.4-1.7-2.3-2.5-4.5-18-4.6-22.7-4.2-11 1-21.8 3.5-32 7.9-18.1 7.8-33.4 24.1-28.6 44.8.7 3 4 4 6.7 3.6l54.6-10.3 12.7-2.4c3.8-.7 8.5-1 12.1-2.6 1.5.7 3.1 1 4.9 1.4 21.9 4.4 43.8 8.6 65.8 12.9 2.6.5 6-.8 6.5-3.8 3.2-19.4-9.2-35.8-26.7-44" fill="#000"/>`,
|
|
16
16
|
moustache7: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M258.6 38.7c-6.6-1.3-13.4-1-20-2.4-6.3-1.4-11.4-5.6-17.6-7.5a18 18 0 0 0-16 2.8c-4-1.9-8.4-2.3-12.9-1.7a60 60 0 0 0-19.1 7l-2.1 1c-11.2-.3-22.6-.3-33.6 2.1a40 40 0 0 0-24.6 15.3c-6.5 9.2-7.7 21-8.7 31.9-.6 6.9 9 8.3 12.3 3.3a80.7 80.7 0 0 1 11.3-14.7 27.7 27.7 0 0 1 18.3-7.3c15.4-1 30.9-.1 46.2-.8 9-.4 18.9-3.8 22.5-11.6 3.8 6 12.5 9.6 19.7 10.1 7.5.6 15.2-.8 22.7.8 7.1 1.5 15.6 6.8 14 15.3-1 5 5.4 8 8.3 3.5 11.9-18.1.2-43.2-20.7-47.1" fill="#000"/>`,
|
|
17
17
|
moustache8: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M520.3-58.5c-16 14.6-5.7 51.1.6 41.3.9-9.2 3.7-26.7 13-30.3 68.2-2.9 54.2 165.8-73 145-81-5.4-166.5-122.7-242.6-51.3C135.6-21.2 42 79.8-43.1 93.7-112.4 116-215.9 74.9-197.2-10.5c4.6-25 39.3-53.7 60.5-28.3 6.3 6-1.7 28.2 5 23.6 10.2-11.3 7.5-29.4-2-40.7-15.7-18.7-43.7-10.5-60 2.7C-267.2 19-178.7 128.2-90 121 7 132.9 139-2 205.7 63.5c6.8 6.7 19.6 6.7 25.5 0C288-.5 397.4 130.4 476.5 121c84 7.7 151.4-93.8 102.8-165.6-12-18.3-41.1-32-59-14Z" fill="#000"/>`,
|
|
18
|
-
moustache9: (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M245.4 32.8c-14-2.3-28.6 1.2-42.2 4.9-21.4-14.1-49.3.1-64.7 17.7-5.2 4.4-16.3 10.1-10.5 18.4-2.2 5.9-2.8 8.6 1.8 1.8 25.9 3 53.6-2.7 79.2-8 8.8 3 16.4 9.8 26 7.5 9 1.9 19 3.7 27-2.1 6.3-.3 20.2 10.9 20-2.1-2-12.5-26.7-33.2-36.6-38Z" fill="${escape.xml(colors.hair
|
|
18
|
+
moustache9: (components, colors) => `<g fill-rule="evenodd" clip-rule="evenodd"><path d="M245.4 32.8c-14-2.3-28.6 1.2-42.2 4.9-21.4-14.1-49.3.1-64.7 17.7-5.2 4.4-16.3 10.1-10.5 18.4-2.2 5.9-2.8 8.6 1.8 1.8 25.9 3 53.6-2.7 79.2-8 8.8 3 16.4 9.8 26 7.5 9 1.9 19 3.7 27-2.1 6.3-.3 20.2 10.9 20-2.1-2-12.5-26.7-33.2-36.6-38Z" fill="${escape.xml(`#${colors.hair}`)}"/><path d="M255.9 72.8a63 63 0 0 1-43.4-9.6c-1.4-1-2.7-1-3.8-.4-1.3-.1-2.6.4-3.4 2-3.2 6-13.8 4.7-19.6 4.8-19 .4-38.8-.7-57.2 5.1C146 40.4 170.4 25.5 207.9 39c-3.4 2.8 13.6-3.6 15-3.8 26-6.5 47.5 15.3 58 37-8-2-16.8-.3-25 .6Zm36.3 5.9c-11.5-25.8-34-54.2-65.6-49.8-6.5 1-13.3 5.4-19.8 4.6-18.9-7-34.5-10.5-53.4.8-8 .6-53.1 56.4-31.7 51.9 26.4-15.1 72.1-1 88.5-14.4 32 21 58.2-1.8 76.3 11.3 3 3 7.5-.7 5.7-4.4Z" fill="#000"/></g>`,
|
|
19
19
|
};
|