@dicebear/miniavs 5.0.0-alpha.32 → 5.0.0-alpha.33

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/README.md CHANGED
@@ -1,13 +1,13 @@
1
1
  <h1 align="center"><img src="./tests/svg/0.svg" width="124" /> <br />Miniavs</h1>
2
2
  <p align="center">
3
3
  <strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
4
- <a href="https://www.figma.com/community/file/923211396597067458">Miniavs - Free Avatar Creator</a>
5
- by <a href="https://webpixels.io/">Webpixels</a>
4
+ <a href="https://www.figma.com/community/file/923211396597067458">Miniavs - Free Avatar Creator</a>
5
+ by <a href="https://webpixels.io/">Webpixels</a>
6
6
  </p>
7
7
 
8
8
  <p align="center">
9
9
  While our code is MIT licensed, the design is licensed under
10
- <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
10
+ <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
11
11
  See <a href="https://dicebear.com/licenses">license overview</a> for more information.
12
12
  </p>
13
13
 
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { ComponentGroup } from '../types.js';
2
8
  export declare const blushes: ComponentGroup;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export const blushes = {
2
- default: (components, colors) => `<g fill="#FF859B"><rect x="24" y="39" width="5" height="3" rx="1.5"/><rect x="43" y="39" width="4" height="3" rx="1.5"/></g>`,
8
+ 'default': (components, colors) => `<g fill="#FF859B"><rect x="24" y="39" width="5" height="3" rx="1.5"/><rect x="43" y="39" width="4" height="3" rx="1.5"/></g>`,
3
9
  };
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { ComponentGroup } from '../types.js';
2
8
  export declare const body: ComponentGroup;
@@ -1,5 +1,11 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import { escape } from '@dicebear/core';
2
8
  export const body = {
3
- tShirt: (components, colors) => `<rect x="7" y="60" width="40" height="23" rx="9" fill="${escape.xml(`#${colors.body}`)}"/>`,
4
- golf: (components, colors) => `<rect x="7" y="60" width="40" height="23" rx="9" fill="${escape.xml(`#${colors.body}`)}"/><path d="M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z" fill="${escape.xml(`#${colors.body}`)}"/><path d="M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z" fill="#000" fill-opacity=".2"/><path d="M16.5 59c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z" fill="${escape.xml(`#${colors.body}`)}"/>`,
9
+ 'tShirt': (components, colors) => `<rect x="7" y="60" width="40" height="23" rx="9" fill="${escape.xml(`#${colors.body}`)}"/>`,
10
+ 'golf': (components, colors) => `<rect x="7" y="60" width="40" height="23" rx="9" fill="${escape.xml(`#${colors.body}`)}"/><path d="M17 58h19v3s-5 1-9.5 1-9.5-1-9.5-1v-3Z" fill="${escape.xml(`#${colors.body}`)}"/><path d="M17 58h19v2s-3 1.5-9.5 1.5S17 60 17 60v-2Z" fill="#000" fill-opacity=".2"/><path d="M16.5 59c0-1.1.9-2 2-2h16a2 2 0 0 1 2 2s-5 1-10 1-10-1-10-1Z" fill="${escape.xml(`#${colors.body}`)}"/>`,
5
11
  };
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { ComponentGroup } from '../types.js';
2
8
  export declare const eyes: ComponentGroup;
@@ -1,15 +1,12 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import { escape } from '@dicebear/core';
2
8
  export const eyes = {
3
- normal: (components, colors) => {
4
- var _a, _b;
5
- return `<g fill="${escape.xml(`#${colors.hair}`)}"><rect x="30" y="36" width="3" height="4" rx="1.5"/><rect x="40" y="36" width="3" height="4" rx="1.5"/></g>${(_b = (_a = components.blushes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}`;
6
- },
7
- confident: (components, colors) => {
8
- var _a, _b;
9
- return `${(_b = (_a = components.blushes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}<path d="M43 37.5a1.5 1.5 0 0 1-3 0v-1.23c0-.15.12-.27.27-.27h2.46c.15 0 .27.12.27.27v1.23ZM33 37.5a1.5 1.5 0 0 1-3 0v-1.23c0-.15.12-.27.27-.27h2.46c.15 0 .27.12.27.27v1.23Z" fill="${escape.xml(`#${colors.hair}`)}"/><path stroke="${escape.xml(`#${colors.hair}`)}" stroke-linecap="round" d="M29.5 36.5h4M39.5 36.5h4"/>`;
10
- },
11
- happy: (components, colors) => {
12
- var _a, _b;
13
- return `${(_b = (_a = components.blushes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}<path d="M30 37.5a1.5 1.5 0 0 1 3 0v1.23c0 .15-.12.27-.27.27h-2.46a.27.27 0 0 1-.27-.27V37.5ZM40 37.5a1.5 1.5 0 0 1 3 0v1.23c0 .15-.12.27-.27.27h-2.46a.27.27 0 0 1-.27-.27V37.5Z" fill="#1B0B47"/>`;
14
- },
9
+ 'normal': (components, colors) => { var _a, _b; return `<g fill="${escape.xml(`#${colors.hair}`)}"><rect x="30" y="36" width="3" height="4" rx="1.5"/><rect x="40" y="36" width="3" height="4" rx="1.5"/></g>${(_b = (_a = components.blushes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}`; },
10
+ 'confident': (components, colors) => { var _a, _b; return `${(_b = (_a = components.blushes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}<path d="M43 37.5a1.5 1.5 0 0 1-3 0v-1.23c0-.15.12-.27.27-.27h2.46c.15 0 .27.12.27.27v1.23ZM33 37.5a1.5 1.5 0 0 1-3 0v-1.23c0-.15.12-.27.27-.27h2.46c.15 0 .27.12.27.27v1.23Z" fill="${escape.xml(`#${colors.hair}`)}"/><path stroke="${escape.xml(`#${colors.hair}`)}" stroke-linecap="round" d="M29.5 36.5h4M39.5 36.5h4"/>`; },
11
+ 'happy': (components, colors) => { var _a, _b; return `${(_b = (_a = components.blushes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}<path d="M30 37.5a1.5 1.5 0 0 1 3 0v1.23c0 .15-.12.27-.27.27h-2.46a.27.27 0 0 1-.27-.27V37.5ZM40 37.5a1.5 1.5 0 0 1 3 0v1.23c0 .15-.12.27-.27.27h-2.46a.27.27 0 0 1-.27-.27V37.5Z" fill="#1B0B47"/>`; },
15
12
  };
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { ComponentGroup } from '../types.js';
2
8
  export declare const glasses: ComponentGroup;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export const glasses = {
2
- normal: (components, colors) => `<g stroke="#000" stroke-width="2"><circle cx="30.27" cy="36.27" r="4.27"/><circle cx="44.27" cy="36.27" r="4.27"/><path d="m33.99 35.11 7-.1"/></g>`,
8
+ 'normal': (components, colors) => `<g stroke="#000" stroke-width="2"><circle cx="30.27" cy="36.27" r="4.27"/><circle cx="44.27" cy="36.27" r="4.27"/><path d="m33.99 35.11 7-.1"/></g>`,
3
9
  };
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { ComponentGroup } from '../types.js';
2
8
  export declare const hair: ComponentGroup;
@@ -1,12 +1,18 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import { escape } from '@dicebear/core';
2
8
  export const hair = {
3
- balndess: (components, colors) => `<g fill="${escape.xml(`#${colors.hair}`)}"><rect x="14" y="26" width="9" height="2" rx="1"/><rect x="14" y="33" width="7" height="2" rx="1"/><rect x="12" y="29" width="13" height="3" rx="1.5"/></g>`,
4
- slaughter: (components, colors) => `<path d="M24 25c0 .53-.1 1.04-.3 1.5A3.99 3.99 0 0 1 20 32a4 4 0 0 1-8 0c0-1.05.07-2.78.37-4.32a4 4 0 0 1 4.8-5.5A3.99 3.99 0 0 1 24 25ZM45.85 33.9a4 4 0 0 0 2.78-5.4 3.99 3.99 0 0 0-3.13-5.46c.6 3.14.48 6.61.38 9.78 0 .36-.02.72-.03 1.07Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
5
- ponyTail: (components, colors) => `<path d="M0 10c8-8 13 3 13 3l-2 8s-2 2.5 0 10-2.5 11.5-2.5 11.5S5 45 2 43s-3.4-3.92-3-7.5c.5-4.5 2-3 2-7.5s-9-10-1-18Z" fill="${escape.xml(`#${colors.hair}`)}"/><path d="m13.03 13.18 5.5 2.38-3.56 8.26-5.51-2.38S8.5 19.5 10 16.5c1.5-3 3.03-3.32 3.03-3.32Z" fill="#FF6C98"/><path d="m18 41-1.32-8.82A5 5 0 0 0 18 42v8.3c-1.55-1.37-2.93-3-4.08-4.83-1.7-2.7-2.9-5.8-3.48-9.1-.6-3.28-.58-6.68.04-9.96a25.57 25.57 0 0 1 3.55-9.05 21.32 21.32 0 0 1 6.43-6.5A17.85 17.85 0 0 1 31 8c2.5 0 4.97.45 7.27 1.33 2.3.88 4.4 2.17 6.16 3.8a17.48 17.48 0 0 1 4.12 5.67c.75 1.66 1.21 3.42 1.38 5.2H50v4.29s-.33.15-1 .36v8.5s0 1.4-1.5 2.45c-.52.36-1.22.64-1.9.85.19-1.45.29-2.91.29-4.35 0-1.04.03-2.14.07-3.29.04-1.11.07-2.27.08-3.44-1.85.34-4.37.63-7.58.63C30.62 30 26 28.29 26 28.29v-1A26.13 26.13 0 0 0 24 31c-.75 1.75-.75 3.54-.75 5.05 0 1.5 0 2.73-.75 3.34-1.5 1.2-4.5 1.6-4.5 1.6Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
6
- long: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M48 25a18 18 0 0 0-36-.5V65h11V34.6a65.12 65.12 0 0 0 12.2-3.76 53.45 53.45 0 0 0 10.68-5.64c.24 2.53.15 5.16.08 7.61-.04 1.15-.08 2.25-.08 3.29 0 .4 0 .82-.02 1.23.23-.07.45-.15.64-.24 1.5-.69 1.5-1.6 1.5-1.6V25Zm-33 8a4.98 4.98 0 0 0 0 8v-8Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
7
- curly: (components, colors) => `<g fill="${escape.xml(`#${colors.hair}`)}"><path d="M45.97 32.48a4 4 0 0 0 1.78-4.88 4 4 0 0 0-2.97-7.41c1.42 3.67 1.31 8.22 1.19 12.3Z"/><path d="M36.3 22.76a4.98 4.98 0 0 1-6.36.2 6.98 6.98 0 0 1-6.99 1.74c-.26.28-.56.53-.89.73a3.98 3.98 0 0 1-1.35 6.19c.2.24.3.55.3.88a1.5 1.5 0 0 1-1.53 1.5 4 4 0 0 1-7.3-3.17 3.99 3.99 0 0 1 0-5.66 4 4 0 0 1 .74-3.71 7 7 0 0 1 4.1-10.17V11a4 4 0 0 1 5.94-3.5 7 7 0 0 1 9.8-2.42 6.48 6.48 0 0 1 10.78 1.95 4 4 0 0 1 3.43 4.58 7.33 7.33 0 0 1 3.05 5.9c0 4.14-3.58 7.5-8 7.5a8.25 8.25 0 0 1-5.7-2.24Z"/></g>`,
8
- stylish: (components, colors) => `<path d="M20.67 28.22v6.02c0 .76-.67 1.76-1.17 2.26-.5.5-2 1.5-2.85 1.5-.85 0-3.54-.45-4.83-2.26-1.28-1.8-.89-11.32 0-13.54.9-2.21 4.19-6.88 8.85-10.45a26.26 26.26 0 0 1 12.88-5.34C58.48 3.4 49.22 20.99 46 25.5c-5.5-2-9.5-2.5-16.72-1.53-7.21.99-8.01 1.99-8.6 4.24Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
9
- elvis: (components, colors) => `<path d="M22 28c-.63 3 1 6.98 1 7.74 0 .77-3.93 3.03-5 3.76-1.07.73-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.25-.74-3-4.5c-.51-2.54.3-8.09.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3C54.9 7.97 56.22 21.5 53 26c-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
10
- classic02: (components, colors) => `<path d="M28.12 27.47C35.92 28.6 49.6 30.6 51 18 52 9 38.5-1.5 24 8c-9.1 1.35-11.39 8.28-11.9 14.26a3.99 3.99 0 0 0-.8 4.24 3.99 3.99 0 0 0 .87 4.33A4 4 0 1 0 20 32a4 4 0 0 0 3.87-5H24c.95 0 2.4.21 4.12.47Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
11
- classic01: (components, colors) => `<path d="M29.7 26.2c5.6 1.87 13.39 4.45 21.53-3.7 4-4-14-21-28.5-11.5-11.33 1.68-10.68 8.47-10.18 13.71.1 1 .18 1.95.18 2.8 0 .52.07.92.2 1.2-.16 1.24-.2 2.48-.2 3.3a4 4 0 1 0 8 0A4 4 0 0 0 24.61 27h.12a4 4 0 0 0 3.06-1.41c.6.18 1.24.4 1.9.61Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
9
+ 'balndess': (components, colors) => `<g fill="${escape.xml(`#${colors.hair}`)}"><rect x="14" y="26" width="9" height="2" rx="1"/><rect x="14" y="33" width="7" height="2" rx="1"/><rect x="12" y="29" width="13" height="3" rx="1.5"/></g>`,
10
+ 'slaughter': (components, colors) => `<path d="M24 25c0 .53-.1 1.04-.3 1.5A3.99 3.99 0 0 1 20 32a4 4 0 0 1-8 0c0-1.05.07-2.78.37-4.32a4 4 0 0 1 4.8-5.5A3.99 3.99 0 0 1 24 25ZM45.85 33.9a4 4 0 0 0 2.78-5.4 3.99 3.99 0 0 0-3.13-5.46c.6 3.14.48 6.61.38 9.78 0 .36-.02.72-.03 1.07Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
11
+ 'ponyTail': (components, colors) => `<path d="M0 10c8-8 13 3 13 3l-2 8s-2 2.5 0 10-2.5 11.5-2.5 11.5S5 45 2 43s-3.4-3.92-3-7.5c.5-4.5 2-3 2-7.5s-9-10-1-18Z" fill="${escape.xml(`#${colors.hair}`)}"/><path d="m13.03 13.18 5.5 2.38-3.56 8.26-5.51-2.38S8.5 19.5 10 16.5c1.5-3 3.03-3.32 3.03-3.32Z" fill="#FF6C98"/><path d="m18 41-1.32-8.82A5 5 0 0 0 18 42v8.3c-1.55-1.37-2.93-3-4.08-4.83-1.7-2.7-2.9-5.8-3.48-9.1-.6-3.28-.58-6.68.04-9.96a25.57 25.57 0 0 1 3.55-9.05 21.32 21.32 0 0 1 6.43-6.5A17.85 17.85 0 0 1 31 8c2.5 0 4.97.45 7.27 1.33 2.3.88 4.4 2.17 6.16 3.8a17.48 17.48 0 0 1 4.12 5.67c.75 1.66 1.21 3.42 1.38 5.2H50v4.29s-.33.15-1 .36v8.5s0 1.4-1.5 2.45c-.52.36-1.22.64-1.9.85.19-1.45.29-2.91.29-4.35 0-1.04.03-2.14.07-3.29.04-1.11.07-2.27.08-3.44-1.85.34-4.37.63-7.58.63C30.62 30 26 28.29 26 28.29v-1A26.13 26.13 0 0 0 24 31c-.75 1.75-.75 3.54-.75 5.05 0 1.5 0 2.73-.75 3.34-1.5 1.2-4.5 1.6-4.5 1.6Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
12
+ 'long': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M48 25a18 18 0 0 0-36-.5V65h11V34.6a65.12 65.12 0 0 0 12.2-3.76 53.45 53.45 0 0 0 10.68-5.64c.24 2.53.15 5.16.08 7.61-.04 1.15-.08 2.25-.08 3.29 0 .4 0 .82-.02 1.23.23-.07.45-.15.64-.24 1.5-.69 1.5-1.6 1.5-1.6V25Zm-33 8a4.98 4.98 0 0 0 0 8v-8Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
13
+ 'curly': (components, colors) => `<g fill="${escape.xml(`#${colors.hair}`)}"><path d="M45.97 32.48a4 4 0 0 0 1.78-4.88 4 4 0 0 0-2.97-7.41c1.42 3.67 1.31 8.22 1.19 12.3Z"/><path d="M36.3 22.76a4.98 4.98 0 0 1-6.36.2 6.98 6.98 0 0 1-6.99 1.74c-.26.28-.56.53-.89.73a3.98 3.98 0 0 1-1.35 6.19c.2.24.3.55.3.88a1.5 1.5 0 0 1-1.53 1.5 4 4 0 0 1-7.3-3.17 3.99 3.99 0 0 1 0-5.66 4 4 0 0 1 .74-3.71 7 7 0 0 1 4.1-10.17V11a4 4 0 0 1 5.94-3.5 7 7 0 0 1 9.8-2.42 6.48 6.48 0 0 1 10.78 1.95 4 4 0 0 1 3.43 4.58 7.33 7.33 0 0 1 3.05 5.9c0 4.14-3.58 7.5-8 7.5a8.25 8.25 0 0 1-5.7-2.24Z"/></g>`,
14
+ 'stylish': (components, colors) => `<path d="M20.67 28.22v6.02c0 .76-.67 1.76-1.17 2.26-.5.5-2 1.5-2.85 1.5-.85 0-3.54-.45-4.83-2.26-1.28-1.8-.89-11.32 0-13.54.9-2.21 4.19-6.88 8.85-10.45a26.26 26.26 0 0 1 12.88-5.34C58.48 3.4 49.22 20.99 46 25.5c-5.5-2-9.5-2.5-16.72-1.53-7.21.99-8.01 1.99-8.6 4.24Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
15
+ 'elvis': (components, colors) => `<path d="M22 28c-.63 3 1 6.98 1 7.74 0 .77-3.93 3.03-5 3.76-1.07.73-1.5-7-1.5-7-3 0-3.5 5.5-3.5 5.5s-2.25-.74-3-4.5c-.51-2.54.3-8.09.5-9.5.5-3.5 1-11.5 7.5-15.5s23-4 27-3C54.9 7.97 56.22 21.5 53 26c-5 5.5-19-1-23.5-1s-6.87 0-7.5 3Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
16
+ 'classic02': (components, colors) => `<path d="M28.12 27.47C35.92 28.6 49.6 30.6 51 18 52 9 38.5-1.5 24 8c-9.1 1.35-11.39 8.28-11.9 14.26a3.99 3.99 0 0 0-.8 4.24 3.99 3.99 0 0 0 .87 4.33A4 4 0 1 0 20 32a4 4 0 0 0 3.87-5H24c.95 0 2.4.21 4.12.47Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
17
+ 'classic01': (components, colors) => `<path d="M29.7 26.2c5.6 1.87 13.39 4.45 21.53-3.7 4-4-14-21-28.5-11.5-11.33 1.68-10.68 8.47-10.18 13.71.1 1 .18 1.95.18 2.8 0 .52.07.92.2 1.2-.16 1.24-.2 2.48-.2 3.3a4 4 0 1 0 8 0A4 4 0 0 0 24.61 27h.12a4 4 0 0 0 3.06-1.41c.6.18 1.24.4 1.9.61Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
12
18
  };
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { ComponentGroup } from '../types.js';
2
8
  export declare const head: ComponentGroup;
@@ -1,6 +1,12 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import { escape } from '@dicebear/core';
2
8
  export const head = {
3
- normal: (components, colors) => `<path d="M45.89 36.1c0 8.5-1.26 18.86-10.89 19.82v9.95S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V42a5 5 0 0 1-1.3-9.83C15.36 22.64 17.5 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29Z" fill="${escape.xml(`#${colors.skin}`)}"/><path d="M35 55.92c-.48.05-.98.07-1.5.07-8.88 0-13.9-7.15-15.5-14.6v23.13S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.95Z" fill="#000" fill-opacity=".07"/><path d="M34.63 55.95c-.37.03-.74.04-1.13.04-6.53 0-10.97-3.86-13.5-8.87V48.24c0 5.38 2.61 9.75 8.28 9.75h1.35c3.34.03 4.59.04 5-2.04ZM16.7 32.17A5 5 0 0 0 18.14 42c-.48-1.98-.71-3.99-.71-5.9a46.7 46.7 0 0 1-.73-3.93Z" fill="#000" fill-opacity=".07"/><rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>`,
4
- wide: (components, colors) => `<path d="M46.07 40.4c.47 7.5.94 15-11.07 15.56v9.91S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V45.1c-.2-1.02-.33-2.06-.41-3.12a5 5 0 0 1-.9-9.8C15.37 22.63 17.52 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29 0 1.4.09 2.86.18 4.3Z" fill="${escape.xml(`#${colors.skin}`)}"/><path d="M17.59 41.98c-.16-1.97-.16-3.97-.16-5.88a46.7 46.7 0 0 1-.73-3.93 5 5 0 0 0 .89 9.81ZM18 45.1v19.42S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.91c-.48.02-.98.03-1.5.03-10.79 0-14.34-4.95-15.5-10.9Z" fill="#000" fill-opacity=".07"/><path d="M34.93 55.96c-.46.02-.93.03-1.43.03-7.25 0-11.23-2.23-13.41-5.5.5 4.82 3.16 8.5 8.3 8.5h1.36c3.8.03 4.92.04 5.18-3.03Z" fill="#000" fill-opacity=".07"/><rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>`,
5
- thin: (components, colors) => `<path d="M45.89 36.1c0 8.92-3.9 18.9-10.39 20.4l-.5-.06v9.43S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V42a5 5 0 0 1-1.3-9.83C15.36 22.64 17.5 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29Z" fill="${escape.xml(`#${colors.skin}`)}"/><path d="M18 42v22.52S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.43c-7.26-1.02-13.9-7.5-16.45-14.47-.18.02-.37.03-.55.03Z" fill="#000" fill-opacity=".07"/><path d="M16.7 32.17a5 5 0 0 0 1.85 9.8 17.14 17.14 0 0 1-1.12-5.87 46.7 46.7 0 0 1-.73-3.93ZM34.7 56.4c-6.75-1.1-12.9-6.87-15.7-13.3v.4c0 5.65 6.27 14.47 9.38 15.49 2.57.83 5.4.65 6.32-2.6Z" fill="#000" fill-opacity=".07"/><rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>`,
9
+ 'normal': (components, colors) => `<path d="M45.89 36.1c0 8.5-1.26 18.86-10.89 19.82v9.95S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V42a5 5 0 0 1-1.3-9.83C15.36 22.64 17.5 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29Z" fill="${escape.xml(`#${colors.skin}`)}"/><path d="M35 55.92c-.48.05-.98.07-1.5.07-8.88 0-13.9-7.15-15.5-14.6v23.13S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.95Z" fill="#000" fill-opacity=".07"/><path d="M34.63 55.95c-.37.03-.74.04-1.13.04-6.53 0-10.97-3.86-13.5-8.87V48.24c0 5.38 2.61 9.75 8.28 9.75h1.35c3.34.03 4.59.04 5-2.04ZM16.7 32.17A5 5 0 0 0 18.14 42c-.48-1.98-.71-3.99-.71-5.9a46.7 46.7 0 0 1-.73-3.93Z" fill="#000" fill-opacity=".07"/><rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>`,
10
+ 'wide': (components, colors) => `<path d="M46.07 40.4c.47 7.5.94 15-11.07 15.56v9.91S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V45.1c-.2-1.02-.33-2.06-.41-3.12a5 5 0 0 1-.9-9.8C15.37 22.63 17.52 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29 0 1.4.09 2.86.18 4.3Z" fill="${escape.xml(`#${colors.skin}`)}"/><path d="M17.59 41.98c-.16-1.97-.16-3.97-.16-5.88a46.7 46.7 0 0 1-.73-3.93 5 5 0 0 0 .89 9.81ZM18 45.1v19.42S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.91c-.48.02-.98.03-1.5.03-10.79 0-14.34-4.95-15.5-10.9Z" fill="#000" fill-opacity=".07"/><path d="M34.93 55.96c-.46.02-.93.03-1.43.03-7.25 0-11.23-2.23-13.41-5.5.5 4.82 3.16 8.5 8.3 8.5h1.36c3.8.03 4.92.04 5.18-3.03Z" fill="#000" fill-opacity=".07"/><rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>`,
11
+ 'thin': (components, colors) => `<path d="M45.89 36.1c0 8.92-3.9 18.9-10.39 20.4l-.5-.06v9.43S31.36 68 26.5 68c-4.86 0-8.5-3.48-8.5-3.48V42a5 5 0 0 1-1.3-9.83C15.36 22.64 17.5 13 32 13c14.59 0 14.24 11.08 13.96 19.81-.04 1.15-.07 2.25-.07 3.29Z" fill="${escape.xml(`#${colors.skin}`)}"/><path d="M18 42v22.52S21.64 68 26.5 68c4.86 0 8.5-2.13 8.5-2.13v-9.43c-7.26-1.02-13.9-7.5-16.45-14.47-.18.02-.37.03-.55.03Z" fill="#000" fill-opacity=".07"/><path d="M16.7 32.17a5 5 0 0 0 1.85 9.8 17.14 17.14 0 0 1-1.12-5.87 46.7 46.7 0 0 1-.73-3.93ZM34.7 56.4c-6.75-1.1-12.9-6.87-15.7-13.3v.4c0 5.65 6.27 14.47 9.38 15.49 2.57.83 5.4.65 6.32-2.6Z" fill="#000" fill-opacity=".07"/><rect x="36" y="41" width="3" height="2" rx="1" fill="#000" fill-opacity=".07"/>`,
6
12
  };
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export { head } from './head.js';
2
8
  export { body } from './body.js';
3
9
  export { hair } from './hair.js';
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export { head } from './head.js';
2
8
  export { body } from './body.js';
3
9
  export { hair } from './hair.js';
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { ComponentGroup } from '../types.js';
2
8
  export declare const mouth: ComponentGroup;
@@ -1,4 +1,10 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export const mouth = {
2
- default: (components, colors) => `<path d="M27.93 46a1 1 0 0 1 1-1h9.14a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-1.14a5 5 0 0 1-5-5Z" fill="#66253C"/><path d="M35.76 50.7a5 5 0 0 1-1.69.3h-1.14a5 5 0 0 1-5-4.8c.77-.29 1.9-.25 3.02-.22L32 46c2.21 0 4 1.57 4 3.5 0 .42-.09.83-.24 1.2Z" fill="#B03E67"/><path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/>`,
3
- missingTooth: (components, colors) => `<path d="M27.93 46a1 1 0 0 1 1-1h9.14a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-1.14a5 5 0 0 1-5-5Z" fill="#66253C"/><path d="M35.76 50.7a5 5 0 0 1-1.69.3h-1.14a5 5 0 0 1-5-4.8c.77-.29 1.9-.25 3.02-.22L32 46c2.21 0 4 1.57 4 3.5 0 .42-.09.83-.24 1.2Z" fill="#B03E67"/><path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/><path d="M31 45.3c0-.17.13-.3.3-.3h1.4c.17 0 .3.13.3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z" fill="#B03E67"/>`,
8
+ 'default': (components, colors) => `<path d="M27.93 46a1 1 0 0 1 1-1h9.14a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-1.14a5 5 0 0 1-5-5Z" fill="#66253C"/><path d="M35.76 50.7a5 5 0 0 1-1.69.3h-1.14a5 5 0 0 1-5-4.8c.77-.29 1.9-.25 3.02-.22L32 46c2.21 0 4 1.57 4 3.5 0 .42-.09.83-.24 1.2Z" fill="#B03E67"/><path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/>`,
9
+ 'missingTooth': (components, colors) => `<path d="M27.93 46a1 1 0 0 1 1-1h9.14a1 1 0 0 1 1 1 5 5 0 0 1-5 5h-1.14a5 5 0 0 1-5-5Z" fill="#66253C"/><path d="M35.76 50.7a5 5 0 0 1-1.69.3h-1.14a5 5 0 0 1-5-4.8c.77-.29 1.9-.25 3.02-.22L32 46c2.21 0 4 1.57 4 3.5 0 .42-.09.83-.24 1.2Z" fill="#B03E67"/><path d="M29 45h10v1a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-1Z" fill="#fff"/><path d="M31 45.3c0-.17.13-.3.3-.3h1.4c.17 0 .3.13.3.3v2.4a.3.3 0 0 1-.3.3h-1.4a.3.3 0 0 1-.3-.3v-2.4Z" fill="#B03E67"/>`,
4
10
  };
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { ComponentGroup } from '../types.js';
2
8
  export declare const mustache: ComponentGroup;
@@ -1,7 +1,13 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import { escape } from '@dicebear/core';
2
8
  export const mustache = {
3
- pencilThinBeard: (components, colors) => `<path d="M26.5 45s4.5-.5 11-2v2c-1.5.67-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.76S44 44 38 43v2c1.43.59 4.6 1.15 6.5 1.5 2.38.44 3.5-1.74 3.5-1.74ZM33.31 55.24a1 1 0 0 1 .97-1.24h3.44a1 1 0 0 1 .97 1.24l-.25 1a1 1 0 0 1-.97.76h-2.94a1 1 0 0 1-.97-.76l-.25-1Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
4
- pencilThin: (components, colors) => `<path d="M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.33 7.5-2v-2ZM38 43c6 1 10 1.76 10 1.76s-1.12 2.18-3.5 1.74l-.32-.06c-1.92-.35-4.83-.89-6.18-1.44v-2Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
5
- horshoe: (components, colors) => `<path d="M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
6
- freddy: (components, colors) => `<path d="M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
9
+ 'pencilThinBeard': (components, colors) => `<path d="M26.5 45s4.5-.5 11-2v2c-1.5.67-5.5 1.6-7.5 2-2.5.5-3.5-2-3.5-2ZM48 44.76S44 44 38 43v2c1.43.59 4.6 1.15 6.5 1.5 2.38.44 3.5-1.74 3.5-1.74ZM33.31 55.24a1 1 0 0 1 .97-1.24h3.44a1 1 0 0 1 .97 1.24l-.25 1a1 1 0 0 1-.97.76h-2.94a1 1 0 0 1-.97-.76l-.25-1Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
10
+ 'pencilThin': (components, colors) => `<path d="M37.5 43c-6.5 1.5-11 2-11 2s1 2.5 3.5 2c2-.4 6-1.33 7.5-2v-2ZM38 43c6 1 10 1.76 10 1.76s-1.12 2.18-3.5 1.74l-.32-.06c-1.92-.35-4.83-.89-6.18-1.44v-2Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
11
+ 'horshoe': (components, colors) => `<path d="M27 46a3 3 0 0 1 3-3h11a3 3 0 0 1 3 3v11a4 4 0 0 1-4-4v-7h-9v7a4 4 0 0 1-4 4V46Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
12
+ 'freddy': (components, colors) => `<path d="M28 46a3 3 0 0 1 3-3h9a3 3 0 0 1 3 3H28Z" fill="${escape.xml(`#${colors.hair}`)}"/>`,
7
13
  };
package/lib/core.d.ts CHANGED
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { Style } from '@dicebear/core';
2
8
  import type { Options } from './types.js';
3
9
  export declare const style: Style<Options>;
package/lib/core.js CHANGED
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import { schema } from './schema.js';
2
8
  import { getComponents } from './utils/getComponents.js';
3
9
  import { getColors } from './utils/getColors.js';
@@ -25,7 +31,7 @@ export const style = {
25
31
  attributes: {
26
32
  viewBox: '0 0 64 64',
27
33
  fill: 'none',
28
- 'shape-rendering': 'auto',
34
+ 'shape-rendering': 'auto'
29
35
  },
30
36
  body: `${(_b = (_a = components.head) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}${(_d = (_c = components.body) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}${(_f = (_e = components.hair) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}<g transform="translate(1)">${(_h = (_g = components.mouth) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g><g transform="translate(0 -1)">${(_k = (_j = components.eyes) === null || _j === void 0 ? void 0 : _j.value(components, colors)) !== null && _k !== void 0 ? _k : ''}</g>${(_m = (_l = components.glasses) === null || _l === void 0 ? void 0 : _l.value(components, colors)) !== null && _m !== void 0 ? _m : ''}${(_p = (_o = components.mustache) === null || _o === void 0 ? void 0 : _o.value(components, colors)) !== null && _p !== void 0 ? _p : ''}`,
31
37
  };
@@ -1,5 +1,11 @@
1
- import { Prng, StyleOptions } from '@dicebear/core';
2
- import { Options, ColorPickCollection, ComponentPickCollection } from '../types.js';
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
7
+ import { Prng, StyleOptions } from "@dicebear/core";
8
+ import { Options, ColorPickCollection, ComponentPickCollection } from "../types.js";
3
9
  declare type Props = {
4
10
  prng: Prng;
5
11
  options: StyleOptions<Options>;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export function onPostCreate({ prng, options, components, colors }) {
2
8
  // Write your modifications here
3
9
  }
@@ -1,5 +1,11 @@
1
- import { Prng, StyleOptions } from '@dicebear/core';
2
- import { Options } from '../types.js';
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
7
+ import { Prng, StyleOptions } from "@dicebear/core";
8
+ import { Options } from "../types.js";
3
9
  declare type Props = {
4
10
  prng: Prng;
5
11
  options: StyleOptions<Options>;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export function onPreCreate({ prng, options }) {
2
8
  // Write your modifications here
3
9
  }
package/lib/index.d.ts CHANGED
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  declare const create: import("@dicebear/core").StyleCreate<import("./types.js").Options>, meta: import("@dicebear/core").StyleMeta, schema: import("json-schema").JSONSchema7;
2
8
  export { create, meta, schema };
3
9
  export type { Options } from './types.js';
package/lib/index.js CHANGED
@@ -1,13 +1,20 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  /*!
2
8
  * Miniavs (@dicebear/miniavs)
3
9
  *
4
10
  * Code licensed under MIT License.
5
11
  * Copyright (c) 2022 Florian Körner
6
12
  *
7
- * Design "Miniavs - Free Avatar Creator" by Webpixels licensed under CC BY 4.0.
13
+ * Design "Miniavs - Free Avatar Creator" by Webpixels licensed under CC BY 4.0. / Remix of the original.
8
14
  * Source: https://www.figma.com/community/file/923211396597067458
9
15
  * Homepage: https://webpixels.io/
10
16
  * License: https://creativecommons.org/licenses/by/4.0/
11
- */ import { style } from './core.js';
17
+ */
18
+ import { style } from './core.js';
12
19
  const { create, meta, schema } = style;
13
20
  export { create, meta, schema };
package/lib/schema.d.ts CHANGED
@@ -1,2 +1,8 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { StyleSchema } from '@dicebear/core';
2
8
  export declare const schema: StyleSchema;
package/lib/schema.js CHANGED
@@ -1,136 +1,195 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export const schema = {
2
- title: 'Options',
3
- $schema: 'http://json-schema.org/draft-07/schema#',
4
- properties: {
5
- blushes: {
6
- type: 'array',
7
- items: { type: 'string', enum: ['default'] },
8
- default: ['default'],
9
- examples: [['default']],
8
+ "$schema": "http://json-schema.org/draft-07/schema#",
9
+ "properties": {
10
+ "blushes": {
11
+ "type": "array",
12
+ "items": {
13
+ "type": "string",
14
+ "enum": [
15
+ "default"
16
+ ]
17
+ },
18
+ "default": [
19
+ "default"
20
+ ]
10
21
  },
11
- blushesProbability: {
12
- type: 'integer',
13
- minimum: 0,
14
- maximum: 100,
15
- default: 50,
16
- examples: [0, 100],
22
+ "blushesProbability": {
23
+ "type": "integer",
24
+ "minimum": 0,
25
+ "maximum": 100,
26
+ "default": 50
17
27
  },
18
- body: {
19
- type: 'array',
20
- items: { type: 'string', enum: ['tShirt', 'golf'] },
21
- default: ['tShirt', 'golf'],
22
- examples: [['tShirt'], ['golf']],
28
+ "body": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "string",
32
+ "enum": [
33
+ "tShirt",
34
+ "golf"
35
+ ]
36
+ },
37
+ "default": [
38
+ "tShirt",
39
+ "golf"
40
+ ]
23
41
  },
24
- bodyColor: {
25
- type: 'array',
26
- items: {
27
- type: 'string',
28
- pattern: '^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$',
42
+ "bodyColor": {
43
+ "type": "array",
44
+ "items": {
45
+ "type": "string",
46
+ "pattern": "^[a-fA-F0-9]{6}$"
29
47
  },
30
- default: ['e05a33', '3633e0', 'ff4dd8'],
48
+ "default": [
49
+ "e05a33",
50
+ "3633e0",
51
+ "ff4dd8"
52
+ ]
31
53
  },
32
- eyes: {
33
- type: 'array',
34
- items: { type: 'string', enum: ['normal', 'confident', 'happy'] },
35
- default: ['normal', 'confident', 'happy'],
36
- examples: [['normal'], ['confident'], ['happy']],
54
+ "eyes": {
55
+ "type": "array",
56
+ "items": {
57
+ "type": "string",
58
+ "enum": [
59
+ "normal",
60
+ "confident",
61
+ "happy"
62
+ ]
63
+ },
64
+ "default": [
65
+ "normal",
66
+ "confident",
67
+ "happy"
68
+ ]
37
69
  },
38
- glasses: {
39
- type: 'array',
40
- items: { type: 'string', enum: ['normal'] },
41
- default: ['normal'],
42
- examples: [['normal']],
70
+ "glasses": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "string",
74
+ "enum": [
75
+ "normal"
76
+ ]
77
+ },
78
+ "default": [
79
+ "normal"
80
+ ]
43
81
  },
44
- glassesProbability: {
45
- type: 'integer',
46
- minimum: 0,
47
- maximum: 100,
48
- default: 20,
49
- examples: [0, 100],
82
+ "glassesProbability": {
83
+ "type": "integer",
84
+ "minimum": 0,
85
+ "maximum": 100,
86
+ "default": 20
50
87
  },
51
- hair: {
52
- type: 'array',
53
- items: {
54
- type: 'string',
55
- enum: [
56
- 'balndess',
57
- 'slaughter',
58
- 'ponyTail',
59
- 'long',
60
- 'curly',
61
- 'stylish',
62
- 'elvis',
63
- 'classic02',
64
- 'classic01',
65
- ],
88
+ "hair": {
89
+ "type": "array",
90
+ "items": {
91
+ "type": "string",
92
+ "enum": [
93
+ "balndess",
94
+ "slaughter",
95
+ "ponyTail",
96
+ "long",
97
+ "curly",
98
+ "stylish",
99
+ "elvis",
100
+ "classic02",
101
+ "classic01"
102
+ ]
66
103
  },
67
- default: [
68
- 'balndess',
69
- 'slaughter',
70
- 'ponyTail',
71
- 'long',
72
- 'curly',
73
- 'stylish',
74
- 'elvis',
75
- 'classic02',
76
- 'classic01',
77
- ],
78
- examples: [
79
- ['balndess'],
80
- ['slaughter'],
81
- ['ponyTail'],
82
- ['long'],
83
- ['curly'],
84
- ['stylish'],
85
- ['elvis'],
86
- ['classic02'],
87
- ['classic01'],
88
- ],
104
+ "default": [
105
+ "balndess",
106
+ "slaughter",
107
+ "ponyTail",
108
+ "long",
109
+ "curly",
110
+ "stylish",
111
+ "elvis",
112
+ "classic02",
113
+ "classic01"
114
+ ]
89
115
  },
90
- hairColor: {
91
- type: 'array',
92
- items: {
93
- type: 'string',
94
- pattern: '^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$',
116
+ "hairColor": {
117
+ "type": "array",
118
+ "items": {
119
+ "type": "string",
120
+ "pattern": "^[a-fA-F0-9]{6}$"
95
121
  },
96
- default: ['47280b', '1b0b47', 'ad3a20'],
122
+ "default": [
123
+ "47280b",
124
+ "1b0b47",
125
+ "ad3a20"
126
+ ]
97
127
  },
98
- head: {
99
- type: 'array',
100
- items: { type: 'string', enum: ['normal', 'wide', 'thin'] },
101
- default: ['normal', 'wide', 'thin'],
102
- examples: [['normal'], ['wide'], ['thin']],
128
+ "head": {
129
+ "type": "array",
130
+ "items": {
131
+ "type": "string",
132
+ "enum": [
133
+ "normal",
134
+ "wide",
135
+ "thin"
136
+ ]
137
+ },
138
+ "default": [
139
+ "normal",
140
+ "wide",
141
+ "thin"
142
+ ]
103
143
  },
104
- mouth: {
105
- type: 'array',
106
- items: { type: 'string', enum: ['default', 'missingTooth'] },
107
- default: ['default', 'missingTooth'],
108
- examples: [['default'], ['missingTooth']],
144
+ "mouth": {
145
+ "type": "array",
146
+ "items": {
147
+ "type": "string",
148
+ "enum": [
149
+ "default",
150
+ "missingTooth"
151
+ ]
152
+ },
153
+ "default": [
154
+ "default",
155
+ "missingTooth"
156
+ ]
109
157
  },
110
- mustache: {
111
- type: 'array',
112
- items: {
113
- type: 'string',
114
- enum: ['pencilThinBeard', 'pencilThin', 'horshoe', 'freddy'],
158
+ "mustache": {
159
+ "type": "array",
160
+ "items": {
161
+ "type": "string",
162
+ "enum": [
163
+ "pencilThinBeard",
164
+ "pencilThin",
165
+ "horshoe",
166
+ "freddy"
167
+ ]
115
168
  },
116
- default: ['pencilThinBeard', 'pencilThin', 'horshoe', 'freddy'],
117
- examples: [['pencilThinBeard'], ['pencilThin'], ['horshoe'], ['freddy']],
169
+ "default": [
170
+ "pencilThinBeard",
171
+ "pencilThin",
172
+ "horshoe",
173
+ "freddy"
174
+ ]
118
175
  },
119
- mustacheProbability: {
120
- type: 'integer',
121
- minimum: 0,
122
- maximum: 100,
123
- default: 20,
124
- examples: [0, 100],
176
+ "mustacheProbability": {
177
+ "type": "integer",
178
+ "minimum": 0,
179
+ "maximum": 100,
180
+ "default": 20
125
181
  },
126
- skinColor: {
127
- type: 'array',
128
- items: {
129
- type: 'string',
130
- pattern: '^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$',
182
+ "skinColor": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "string",
186
+ "pattern": "^[a-fA-F0-9]{6}$"
131
187
  },
132
- default: ['ffcb7e', 'f5d0c5', '836055'],
133
- },
134
- },
135
- additionalProperties: false,
188
+ "default": [
189
+ "ffcb7e",
190
+ "f5d0c5",
191
+ "836055"
192
+ ]
193
+ }
194
+ }
136
195
  };
package/lib/types.d.ts CHANGED
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export interface Options {
2
8
  head?: ('normal' | 'wide' | 'thin')[];
3
9
  body?: ('tShirt' | 'golf')[];
@@ -14,9 +20,6 @@ export interface Options {
14
20
  hairColor?: string[];
15
21
  bodyColor?: string[];
16
22
  }
17
- export declare type ColorGroup = Record<string, ColorGroupItem>;
18
- export declare type ColorGroupCollection = Record<string, ColorGroup>;
19
- export declare type ColorGroupItem = string;
20
23
  export declare type ColorPickCollection = Record<string, string>;
21
24
  export declare type ComponentGroup = Record<string, ComponentGroupItem>;
22
25
  export declare type ComponentGroupCollection = Record<string, ComponentGroup>;
package/lib/types.js CHANGED
@@ -1 +1,7 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export {};
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { Prng } from '@dicebear/core';
2
8
  import type { Options, ColorPickCollection } from '../types.js';
3
9
  declare type Props = {
@@ -1,8 +1,15 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  export function getColors({ prng, options }) {
2
8
  var _a, _b, _c, _d, _e, _f;
3
9
  return {
4
- skin: (_b = prng.pick((_a = options.skinColor) !== null && _a !== void 0 ? _a : [])) !== null && _b !== void 0 ? _b : 'transparent',
5
- hair: (_d = prng.pick((_c = options.hairColor) !== null && _c !== void 0 ? _c : [])) !== null && _d !== void 0 ? _d : 'transparent',
6
- body: (_f = prng.pick((_e = options.bodyColor) !== null && _e !== void 0 ? _e : [])) !== null && _f !== void 0 ? _f : 'transparent',
10
+ 'skin': (_b = prng.pick((_a = options.skinColor) !== null && _a !== void 0 ? _a : [])) !== null && _b !== void 0 ? _b : 'transparent',
11
+ 'hair': (_d = prng.pick((_c = options.hairColor) !== null && _c !== void 0 ? _c : [])) !== null && _d !== void 0 ? _d : 'transparent',
12
+ 'body': (_f = prng.pick((_e = options.bodyColor) !== null && _e !== void 0 ? _e : [])) !== null && _f !== void 0 ? _f : 'transparent',
7
13
  };
8
14
  }
15
+ ;
@@ -1,8 +1,14 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { Prng } from '@dicebear/core';
2
8
  import type { Options, ComponentPickCollection } from '../types.js';
3
9
  declare type Props = {
4
10
  prng: Prng;
5
11
  options: Options;
6
12
  };
7
- export declare function getComponents({ prng, options, }: Props): ComponentPickCollection;
13
+ export declare function getComponents({ prng, options }: Props): ComponentPickCollection;
8
14
  export {};
@@ -1,59 +1,60 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import { pickComponent } from './pickComponent.js';
2
- export function getComponents({ prng, options, }) {
8
+ export function getComponents({ prng, options }) {
3
9
  const headComponent = pickComponent({
4
10
  prng,
5
11
  group: 'head',
6
- values: options.head,
12
+ values: options.head
7
13
  });
8
14
  const bodyComponent = pickComponent({
9
15
  prng,
10
16
  group: 'body',
11
- values: options.body,
17
+ values: options.body
12
18
  });
13
19
  const hairComponent = pickComponent({
14
20
  prng,
15
21
  group: 'hair',
16
- values: options.hair,
22
+ values: options.hair
17
23
  });
18
24
  const mouthComponent = pickComponent({
19
25
  prng,
20
26
  group: 'mouth',
21
- values: options.mouth,
27
+ values: options.mouth
22
28
  });
23
29
  const eyesComponent = pickComponent({
24
30
  prng,
25
31
  group: 'eyes',
26
- values: options.eyes,
32
+ values: options.eyes
27
33
  });
28
34
  const glassesComponent = pickComponent({
29
35
  prng,
30
36
  group: 'glasses',
31
- values: options.glasses,
37
+ values: options.glasses
32
38
  });
33
39
  const mustacheComponent = pickComponent({
34
40
  prng,
35
41
  group: 'mustache',
36
- values: options.mustache,
42
+ values: options.mustache
37
43
  });
38
44
  const blushesComponent = pickComponent({
39
45
  prng,
40
46
  group: 'blushes',
41
- values: options.blushes,
47
+ values: options.blushes
42
48
  });
43
49
  return {
44
- head: headComponent,
45
- body: bodyComponent,
46
- hair: hairComponent,
47
- mouth: mouthComponent,
48
- eyes: eyesComponent,
49
- glasses: prng.bool(options.glassesProbability)
50
- ? glassesComponent
51
- : undefined,
52
- mustache: prng.bool(options.mustacheProbability)
53
- ? mustacheComponent
54
- : undefined,
55
- blushes: prng.bool(options.blushesProbability)
56
- ? blushesComponent
57
- : undefined,
50
+ 'head': headComponent,
51
+ 'body': bodyComponent,
52
+ 'hair': hairComponent,
53
+ 'mouth': mouthComponent,
54
+ 'eyes': eyesComponent,
55
+ 'glasses': prng.bool(options.glassesProbability) ? glassesComponent : undefined,
56
+ 'mustache': prng.bool(options.mustacheProbability) ? mustacheComponent : undefined,
57
+ 'blushes': prng.bool(options.blushesProbability) ? blushesComponent : undefined,
58
58
  };
59
59
  }
60
+ ;
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import type { Prng } from '@dicebear/core';
2
8
  import type { ComponentPick } from '../types.js';
3
9
  declare type Props = {
@@ -5,5 +11,5 @@ declare type Props = {
5
11
  group: string;
6
12
  values?: string[];
7
13
  };
8
- export declare function pickComponent({ prng, group, values, }: Props): ComponentPick;
14
+ export declare function pickComponent({ prng, group, values }: Props): ComponentPick;
9
15
  export {};
@@ -1,9 +1,18 @@
1
+ /**
2
+ * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
+ *
4
+ * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
+ * File: https://www.figma.com/file/Vh7N9shKJTNHNo9prUzkZe/%40dicebear%2Fminiavs?node-id=274%3A4378
6
+ */
1
7
  import * as components from '../components/index.js';
2
- export function pickComponent({ prng, group, values = [], }) {
8
+ export function pickComponent({ prng, group, values = [] }) {
3
9
  const componentCollection = components;
4
10
  const key = prng.pick(values);
5
11
  if (key && componentCollection[group][key]) {
6
- return { name: key, value: componentCollection[group][key] };
12
+ return {
13
+ name: key,
14
+ value: componentCollection[group][key],
15
+ };
7
16
  }
8
17
  else {
9
18
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/miniavs",
3
- "version": "5.0.0-alpha.32",
3
+ "version": "5.0.0-alpha.33",
4
4
  "description": "Avatar style for DiceBear",
5
5
  "keywords": [
6
6
  "dicebear"
@@ -28,14 +28,14 @@
28
28
  "test": "uvu tests"
29
29
  },
30
30
  "devDependencies": {
31
- "@dicebear/core": "^5.0.0-alpha.32",
31
+ "@dicebear/core": "^5.0.0-alpha.33",
32
32
  "@tsconfig/recommended": "^1.0.1",
33
33
  "del-cli": "^4.0.1",
34
34
  "typescript": "^4.6.3",
35
35
  "uvu": "^0.5.3"
36
36
  },
37
37
  "peerDependencies": {
38
- "@dicebear/core": "^5.0.0-alpha.16"
38
+ "@dicebear/core": "^5.0.0-alpha.32"
39
39
  },
40
40
  "engines": {
41
41
  "node": "^14.13.1 || >=16.0.0"
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "5a4a06cbb8aca42a5d19da8e704b3a7b3a45d755"
46
+ "gitHead": "88548ee882858c8871c477d83c3ed0bd227c64b0"
47
47
  }