@dicebear/avataaars-neutral 5.0.0-alpha.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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Florian Körner
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ <h1 align="center"><img src="./tests/svg/0.svg" width="124" /> <br />Avataaars Neutral</h1>
2
+ <p align="center">
3
+ <strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
4
+ <a href="https://avataaars.com/">Avataaars</a>
5
+ by Pablo Stanley
6
+ </p>
7
+
8
+ <p align="center">
9
+ While our code is MIT licensed, the design is licensed under
10
+ <a href="https://avataaars.com/">Free for personal and commercial use.</a>.
11
+ See <a href="https://dicebear.com/licenses">license overview</a> for more information.
12
+ </p>
13
+
14
+ <p align="center">
15
+ <a href="https://dicebear.com/styles/avataaars-neutral">
16
+ Read Documentation
17
+ </a>
18
+ </p>
@@ -0,0 +1 @@
1
+ export { skin } from './skin';
@@ -0,0 +1,2 @@
1
+ import type { ColorGroup } from '../static-types';
2
+ export declare const skin: ColorGroup;
@@ -0,0 +1,2 @@
1
+ import type { ComponentGroup } from '../static-types';
2
+ export declare const eyebrows: ComponentGroup;
@@ -0,0 +1,2 @@
1
+ import type { ComponentGroup } from '../static-types';
2
+ export declare const eyes: ComponentGroup;
@@ -0,0 +1,4 @@
1
+ export { mouth } from './mouth';
2
+ export { nose } from './nose';
3
+ export { eyes } from './eyes';
4
+ export { eyebrows } from './eyebrows';
@@ -0,0 +1,2 @@
1
+ import type { ComponentGroup } from '../static-types';
2
+ export declare const mouth: ComponentGroup;
@@ -0,0 +1,2 @@
1
+ import type { ComponentGroup } from '../static-types';
2
+ export declare const nose: ComponentGroup;
package/dist/core.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { Style } from '@dicebear/core';
2
+ import type { Options } from './options';
3
+ export declare const style: Style<Options>;
@@ -0,0 +1,12 @@
1
+ import { Prng, StyleOptions } from '@dicebear/core';
2
+ import { Options } from '../options';
3
+ import { ColorPickCollection, ComponentPickCollection } from '../static-types';
4
+ declare type Props = {
5
+ prng: Prng;
6
+ options: StyleOptions<Options>;
7
+ components: ComponentPickCollection;
8
+ colors: ColorPickCollection;
9
+ preview: boolean;
10
+ };
11
+ export declare function onPostCreate({ prng, options, components, colors, preview, }: Props): void;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ import { Prng, StyleOptions } from '@dicebear/core';
2
+ import { Options } from '../options';
3
+ declare type Props = {
4
+ prng: Prng;
5
+ options: StyleOptions<Options>;
6
+ preview: boolean;
7
+ };
8
+ export declare function onPreCreate({ prng, options, preview }: Props): void;
9
+ export {};
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Avataaars Neutral (@dicebear/avataaars-neutral)
3
+ *
4
+ * Code licensed under MIT License.
5
+ * Copyright (c) 2021 Florian Körner
6
+ *
7
+ * Design "Avataaars" by Pablo Stanley licensed under Free for personal and commercial use..
8
+ * Source: https://avataaars.com/
9
+ * License: https://avataaars.com/
10
+ */
11
+ declare let create: import("@dicebear/core").StyleCreate<import("./options").Options>, preview: import("@dicebear/core").StylePreview<import("./options").Options> | undefined, meta: import("@dicebear/core").StyleMeta, schema: import("json-schema").JSONSchema7;
12
+ export { create, preview, meta, schema };
13
+ export { Options } from './options';
@@ -0,0 +1,428 @@
1
+ var title = "Options";
2
+ var $schema = "http://json-schema.org/draft-07/schema#";
3
+ var properties = {
4
+ backgroundColor: {
5
+ type: "array",
6
+ items: {
7
+ anyOf: [
8
+ {
9
+ type: "string",
10
+ pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
11
+ },
12
+ {
13
+ type: "string",
14
+ pattern: "^[0-9a-zA-Z]+$"
15
+ }
16
+ ]
17
+ },
18
+ "default": [
19
+ "black",
20
+ "brown",
21
+ "darkBrown",
22
+ "light",
23
+ "pale",
24
+ "tanned",
25
+ "yellow"
26
+ ]
27
+ },
28
+ eyebrows: {
29
+ type: "array",
30
+ items: {
31
+ type: "string",
32
+ "enum": [
33
+ "angryNatural",
34
+ "defaultNatural",
35
+ "flatNatural",
36
+ "frownNatural",
37
+ "raisedExcitedNatural",
38
+ "sadConcernedNatural",
39
+ "unibrowNatural",
40
+ "upDownNatural",
41
+ "angry",
42
+ "default",
43
+ "raisedExcited",
44
+ "sadConcerned",
45
+ "upDown"
46
+ ]
47
+ },
48
+ "default": [
49
+ "angryNatural",
50
+ "defaultNatural",
51
+ "flatNatural",
52
+ "frownNatural",
53
+ "raisedExcitedNatural",
54
+ "sadConcernedNatural",
55
+ "unibrowNatural",
56
+ "upDownNatural",
57
+ "angry",
58
+ "default",
59
+ "raisedExcited",
60
+ "sadConcerned",
61
+ "upDown"
62
+ ]
63
+ },
64
+ eyes: {
65
+ type: "array",
66
+ items: {
67
+ type: "string",
68
+ "enum": [
69
+ "closed",
70
+ "cry",
71
+ "default",
72
+ "eyeRoll",
73
+ "happy",
74
+ "hearts",
75
+ "side",
76
+ "squint",
77
+ "surprised",
78
+ "winkWacky",
79
+ "wink",
80
+ "xDizzy"
81
+ ]
82
+ },
83
+ "default": [
84
+ "closed",
85
+ "cry",
86
+ "default",
87
+ "eyeRoll",
88
+ "happy",
89
+ "hearts",
90
+ "side",
91
+ "squint",
92
+ "surprised",
93
+ "winkWacky",
94
+ "wink",
95
+ "xDizzy"
96
+ ]
97
+ },
98
+ mouth: {
99
+ type: "array",
100
+ items: {
101
+ type: "string",
102
+ "enum": [
103
+ "concerned",
104
+ "default",
105
+ "disbelief",
106
+ "eating",
107
+ "grimace",
108
+ "sad",
109
+ "screamOpen",
110
+ "serious",
111
+ "smile",
112
+ "tongue",
113
+ "twinkle",
114
+ "vomit"
115
+ ]
116
+ },
117
+ "default": [
118
+ "concerned",
119
+ "default",
120
+ "disbelief",
121
+ "eating",
122
+ "grimace",
123
+ "sad",
124
+ "screamOpen",
125
+ "serious",
126
+ "smile",
127
+ "tongue",
128
+ "twinkle",
129
+ "vomit"
130
+ ]
131
+ },
132
+ nose: {
133
+ type: "array",
134
+ items: {
135
+ type: "string",
136
+ "enum": [
137
+ "default"
138
+ ]
139
+ },
140
+ "default": [
141
+ "default"
142
+ ]
143
+ }
144
+ };
145
+ var additionalProperties = false;
146
+ var schema$1 = {
147
+ title: title,
148
+ $schema: $schema,
149
+ properties: properties,
150
+ additionalProperties: additionalProperties
151
+ };
152
+
153
+ const mouth = {
154
+ concerned: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M35.12 29.87a19 19 0 0 1 37.77.09c.08.77-.77 2.04-1.85 2.04H37.1C36 32 35 30.82 35.12 29.87Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M69.59 32H38.4a11 11 0 0 1 15.6-6.8A11 11 0 0 1 69.59 32Z\" fill=\"#FF4F6D\"/>\n<path d=\"M66.57 17.75A5 5 0 0 1 65 18H44c-.8 0-1.57-.2-2.24-.53A18.92 18.92 0 0 1 54 13c4.82 0 9.22 1.8 12.57 4.75Z\" fill=\"#fff\"/>\n",
155
+ default: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M40 15a14 14 0 1 0 28 0\" fill=\"#000\" fill-opacity=\".7\"/>\n",
156
+ disbelief: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M40 29a14 14 0 1 1 28 0\" fill=\"#000\" fill-opacity=\".7\"/>\n",
157
+ eating: (components, colors) => "\n<path d=\"M28 26.24c1.36.5 2.84.76 4.4.76 5.31 0 9.81-3.15 11.29-7.49 2.47 2.17 6.17 3.54 10.31 3.54 4.14 0 7.84-1.37 10.31-3.53 1.48 4.35 5.98 7.5 11.3 7.5 1.55 0 3.03-.27 4.4-.76h-.19c-6.33 0-11.8-4.9-11.8-10.56 0-4.18 2.32-7.72 5.69-9.68-5.5.8-9.73 5-9.9 10.1a17.61 17.61 0 0 1-9.8 2.8c-3.8 0-7.25-1.06-9.8-2.8-.18-5.1-4.4-9.3-9.9-10.1a11.18 11.18 0 0 1 5.68 9.68c0 5.66-5.47 10.57-11.8 10.57H28Z\" fill=\"#000\" fill-opacity=\".6\" opacity=\".6\"/>\n<path d=\"M17 24a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM91 24a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z\" fill=\"#FF4646\" fill-opacity=\".2\"/>\n",
158
+ grimace: (components, colors) => "\n<rect x=\"22\" y=\"7\" width=\"64\" height=\"26\" rx=\"13\" fill=\"#000\" fill-opacity=\".6\"/>\n<rect x=\"24\" y=\"9\" width=\"60\" height=\"22\" rx=\"11\" fill=\"#fff\"/>\n<path d=\"M24.18 18H32V9.41A11 11 0 0 1 35 9h1v9h9V9h4v9h9V9h4v9h9V9h2c.68 0 1.35.06 2 .18V18h8.82l.05.28v3.44l-.05.28H75v8.82c-.65.12-1.32.18-2 .18h-2v-9h-9v9h-4v-9h-9v9h-4v-9h-9v9h-1a11 11 0 0 1-3-.41V22h-7.82a11.06 11.06 0 0 1 0-4Z\" fill=\"#E6E6E6\"/>\n",
159
+ sad: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M40.06 27.72C40.7 20.7 46.7 16 54 16c7.34 0 13.36 4.75 13.95 11.85.03.38-.87.67-1.32.45-5.54-2.77-9.75-4.16-12.63-4.16-2.84 0-7 1.36-12.45 4.07-.5.25-1.53-.07-1.5-.49Z\" fill=\"#000\" fill-opacity=\".7\"/>\n",
160
+ screamOpen: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M34 38.86C35.14 24.88 38.24 13.01 54 13c15.76 0 18.92 11.94 20 26 .08 1.12-.83 2-1.96 2-6.69 0-9.37-2-18.05-2-8.7 0-13.24 2-17.9 2-1.15 0-2.2-.74-2.1-2.14Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M67.02 17.57c-.61.28-1.3.43-2.02.43H44c-.98 0-1.9-.28-2.67-.77C44.23 14.57 48.28 13 54 13c5.95 0 10.1 1.7 13.02 4.57Z\" fill=\"#fff\"/>\n<path d=\"M69.8 40.92a44.2 44.2 0 0 1-5.54-.82c-2.73-.53-5.65-1.1-10.27-1.1-5.02 0-8.66.66-11.74 1.23-1.45.26-2.77.5-4.06.65A11 11 0 0 1 54 33.2a11 11 0 0 1 15.8 7.72Z\" fill=\"#FF4F6D\"/>\n",
161
+ serious: (components, colors) => "\n<rect x=\"42\" y=\"18\" width=\"24\" height=\"6\" rx=\"3\" fill=\"#000\" fill-opacity=\".7\"/>\n",
162
+ smile: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M35.12 15.13a19 19 0 0 0 37.77-.09c.08-.77-.77-2.04-1.85-2.04H37.1C36 13 35 14.18 35.12 15.13Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z\" fill=\"#fff\"/>\n<path d=\"M66.7 27.14A10.96 10.96 0 0 0 54 25.2a10.95 10.95 0 0 0-12.7 1.94A18.93 18.93 0 0 0 54 32c4.88 0 9.33-1.84 12.7-4.86Z\" fill=\"#FF4F6D\"/>\n",
163
+ tongue: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M29 15.6C30.41 25.24 41.06 33 54 33c12.97 0 23.65-7.82 25-18.26.1-.4-.22-1.74-2.17-1.74H31.17c-1.79 0-2.3 1.24-2.17 2.6Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z\" fill=\"#fff\"/>\n<path d=\"M43 23.5a1.88 1.88 0 0 0 0 .13v8.87a11.5 11.5 0 1 0 23 0v-8.87a1.62 1.62 0 0 0 0-.13c0-1.93-2.91-3.5-6.5-3.5-2.01 0-3.8.5-5 1.26a9.45 9.45 0 0 0-5-1.26c-3.59 0-6.5 1.57-6.5 3.5Z\" fill=\"#FF4F6D\"/>\n",
164
+ twinkle: (components, colors) => "\n<path d=\"M40 16c0 5.37 6.16 9 14 9s14-3.63 14-9c0-1.1-.95-2-2-2-1.3 0-1.87.9-2 2-1.24 2.94-4.32 4.72-10 5-5.68-.28-8.76-2.06-10-5-.13-1.1-.7-2-2-2-1.05 0-2 .9-2 2Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
165
+ vomit: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M34 30.4C35.14 19.9 38.24 11 54 11c15.76 0 18.92 8.96 20 19.5.08.84-.83 1.5-1.96 1.5-6.69 0-9.37-1.5-18.05-1.5-8.7 0-13.24 1.5-17.9 1.5-1.15 0-2.2-.55-2.1-1.6Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M67.86 15.1c-.8.57-1.8.9-2.86.9H44c-1.3 0-2.49-.5-3.38-1.31C43.56 12.38 47.8 11 54 11c6.54 0 10.9 1.54 13.86 4.1Z\" fill=\"#fff\"/>\n<path d=\"M42 25a6 6 0 0 0-6 6v7a6 6 0 0 0 12 0v-2h.08a6 6 0 0 1 11.84 0H60a6 6 0 0 0 12 0v-5a6 6 0 0 0-6-6H42Z\" fill=\"#7BB24B\"/>\n<path d=\"M72 31a6 6 0 0 0-6-6H42a6 6 0 0 0-6 6v6a6 6 0 0 0 12 0v-2h.08a6 6 0 0 1 11.84 0H60a6 6 0 0 0 12 0v-4Z\" fill=\"#88C553\"/>\n"
166
+ };
167
+
168
+ const nose = {
169
+ default: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 8c0 4.42 5.37 8 12 8s12-3.58 12-8\" fill=\"#000\" fill-opacity=\".16\"/>\n"
170
+ };
171
+
172
+ const eyes = {
173
+ closed: (components, colors) => "\n<path d=\"M16.16 27.55c1.85 3.8 6 6.45 10.84 6.45 4.81 0 8.96-2.63 10.82-6.4.55-1.13-.24-2.05-1.03-1.37a15.05 15.05 0 0 1-9.8 3.43c-3.73 0-7.12-1.24-9.55-3.23-.9-.73-1.82.01-1.28 1.12ZM74.16 27.55c1.85 3.8 6 6.45 10.84 6.45 4.81 0 8.96-2.63 10.82-6.4.55-1.13-.24-2.05-1.03-1.37a15.05 15.05 0 0 1-9.8 3.43c-3.74 0-7.13-1.24-9.56-3.23-.9-.73-1.82.01-1.28 1.12Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
174
+ cry: (components, colors) => "\n<path d=\"M25 27s-6 7.27-6 11.27a6 6 0 1 0 12 0c0-4-6-11.27-6-11.27Z\" fill=\"#92D9FF\"/>\n<path d=\"M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
175
+ default: (components, colors) => "\n<path d=\"M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
176
+ eyeRoll: (components, colors) => "\n<path d=\"M44 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0ZM96 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0Z\" fill=\"#fff\"/>\n<path d=\"M36 14a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 14a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\" fill=\"#000\" fill-opacity=\".7\"/>\n",
177
+ happy: (components, colors) => "\n<path d=\"M16.16 22.45c1.85-3.8 6-6.45 10.84-6.45 4.81 0 8.96 2.63 10.82 6.4.55 1.13-.24 2.05-1.03 1.37a15.05 15.05 0 0 0-9.8-3.43c-3.73 0-7.12 1.24-9.55 3.23-.9.73-1.82-.01-1.28-1.12ZM74.16 22.45c1.85-3.8 6-6.45 10.84-6.45 4.81 0 8.96 2.63 10.82 6.4.55 1.13-.24 2.05-1.03 1.37a15.05 15.05 0 0 0-9.8-3.43c-3.74 0-7.13 1.24-9.56 3.23-.9.73-1.82-.01-1.28-1.12Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
178
+ hearts: (components, colors) => "\n<path d=\"M35.96 10c-2.55 0-5.08 1.98-6.46 3.82-1.39-1.84-3.9-3.82-6.46-3.82-5.49 0-9.04 3.33-9.04 7.64 0 5.73 4.41 9.13 9.04 12.74 1.66 1.23 4.78 4.4 5.17 5.1.38.68 2.1.7 2.58 0 .48-.73 3.51-3.87 5.17-5.1 4.63-3.6 9.04-7 9.04-12.74 0-4.3-3.55-7.64-9.04-7.64ZM88.96 10c-2.55 0-5.08 1.98-6.46 3.82-1.39-1.84-3.9-3.82-6.46-3.82-5.49 0-9.04 3.33-9.04 7.64 0 5.73 4.41 9.13 9.04 12.74 1.65 1.23 4.78 4.4 5.17 5.1.38.68 2.1.7 2.58 0 .48-.73 3.51-3.87 5.17-5.1 4.63-3.6 9.04-7 9.04-12.74 0-4.3-3.55-7.64-9.04-7.64Z\" fill=\"#FF5353\" fill-opacity=\".8\"/>\n",
179
+ side: (components, colors) => "\n<path d=\"M27 16c-4.84 0-9 2.65-10.84 6.45-.54 1.1.39 1.85 1.28 1.12a15.13 15.13 0 0 1 9.8-3.22 6 6 0 1 0 10.7 2.8 2 2 0 0 0-.12-.74l-.15-.38a6 6 0 0 0-1.64-2.48C33.9 17.32 30.5 16 27 16ZM85 16c-4.84 0-9 2.65-10.84 6.45-.54 1.1.39 1.85 1.28 1.12a15.13 15.13 0 0 1 9.8-3.22 6 6 0 1 0 10.7 2.8 2 2 0 0 0-.12-.74l-.15-.38a6 6 0 0 0-1.64-2.48C91.9 17.32 88.5 16 85 16Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
180
+ squint: (components, colors) => "\n<path d=\"M44 20.73c0 4.26-6.27 7.72-14 7.72S16 25 16 20.73C16 16.46 22.27 13 30 13s14 3.46 14 7.73ZM96 20.73c0 4.26-6.27 7.72-14 7.72S68 25 68 20.73C68 16.46 74.27 13 82 13s14 3.46 14 7.73Z\" fill=\"#fff\"/>\n<path d=\"M32.82 28.3a25.15 25.15 0 0 1-5.64 0 6 6 0 1 1 5.64 0ZM84.82 28.3a25.15 25.15 0 0 1-5.64 0 6 6 0 1 1 5.64 0Z\" fill=\"#000\" fill-opacity=\".7\"/>\n",
181
+ surprised: (components, colors) => "\n<path d=\"M44 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0ZM96 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0Z\" fill=\"#fff\"/>\n<path d=\"M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\" fill=\"#000\" fill-opacity=\".7\"/>\n",
182
+ winkWacky: (components, colors) => "\n<circle cx=\"82\" cy=\"22\" r=\"12\" fill=\"#fff\"/>\n<circle cx=\"82\" cy=\"22\" r=\"6\" fill=\"#000\" fill-opacity=\".7\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.16 25.45c1.85-3.8 6-6.45 10.84-6.45 4.81 0 8.96 2.63 10.82 6.4.55 1.13-.24 2.05-1.03 1.37a15.05 15.05 0 0 0-9.8-3.43c-3.73 0-7.12 1.24-9.55 3.23-.9.73-1.82-.01-1.28-1.12Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
183
+ wink: (components, colors) => "\n<g fill=\"#000\" fill-opacity=\".6\">\n<path d=\"M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M70.6 24.96c1.59-3.92 5.55-6.86 10.37-7.2 4.8-.33 9.12 2 11.24 5.64.63 1.09-.1 2.06-.93 1.43-2.6-1.93-6.15-3-10-2.73A15.13 15.13 0 0 0 71.95 26c-.84.78-1.81.1-1.35-1.04Z\"/>\n</g>\n",
184
+ xDizzy: (components, colors) => "\n<path d=\"M34.5 30.7 29 25.2l-5.5 5.5c-.4.4-1.1.4-1.6 0l-1.6-1.6c-.4-.4-.4-1.1 0-1.6l5.5-5.5-5.5-5.5c-.4-.5-.4-1.2 0-1.6l1.6-1.6c.4-.4 1.1-.4 1.6 0l5.5 5.5 5.5-5.5c.4-.4 1.1-.4 1.6 0l1.6 1.6c.4.4.4 1.1 0 1.6L32.2 22l5.5 5.5c.4.4.4 1.1 0 1.6l-1.6 1.6c-.4.4-1.1.4-1.6 0ZM88.5 30.7 83 25.2l-5.5 5.5c-.4.4-1.1.4-1.6 0l-1.6-1.6c-.4-.4-.4-1.1 0-1.6l5.5-5.5-5.5-5.5c-.4-.5-.4-1.2 0-1.6l1.6-1.6c.4-.4 1.1-.4 1.6 0l5.5 5.5 5.5-5.5c.4-.4 1.1-.4 1.6 0l1.6 1.6c.4.4.4 1.1 0 1.6L86.2 22l5.5 5.5c.4.4.4 1.1 0 1.6l-1.6 1.6c-.4.4-1.1.4-1.6 0Z\" fill=\"#000\" fill-opacity=\".6\"/>\n"
185
+ };
186
+
187
+ const eyebrows = {
188
+ angryNatural: (components, colors) => "\n<path d=\"M44.1 17.12ZM19.27 5.01a7.16 7.16 0 0 0-6.42 2.43c-.6.73-1.56 2.48-1.51 3.42.02.35.22.37 1.12.59 1.65.39 4.5-1.12 6.36-.98 2.58.2 5.04 1.4 7.28 2.68 3.84 2.2 8.35 6.84 13.1 6.6.35-.02 5.41-1.74 4.4-2.72-.31-.49-3.03-1.13-3.5-1.36-2.17-1.09-4.37-2.45-6.44-3.72C29.14 9.18 24.72 5.6 19.28 5ZM68.03 17.12ZM92.91 5.01c2.36-.27 4.85.5 6.42 2.43.6.73 1.56 2.48 1.51 3.42-.02.35-.22.37-1.12.59-1.65.39-4.5-1.12-6.36-.98-2.58.2-5.04 1.4-7.28 2.68-3.84 2.2-8.35 6.84-13.1 6.6-.35-.02-5.41-1.74-4.4-2.72.31-.49 3.03-1.13 3.5-1.36 2.17-1.09 4.36-2.45 6.44-3.72C83.05 9.18 87.46 5.6 92.91 5Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
189
+ defaultNatural: (components, colors) => "\n<path d=\"M26.55 6.15c-5.8.27-15.2 4.49-14.96 10.34.01.18.3.27.43.12 2.76-2.96 22.32-5.95 29.2-4.36.64.14 1.12-.48.72-.93-3.43-3.85-10.2-5.43-15.4-5.18ZM86.45 6.15c5.8.27 15.2 4.49 14.96 10.34-.01.18-.3.27-.43.12-2.76-2.96-22.32-5.95-29.2-4.36-.64.14-1.12-.48-.72-.93 3.43-3.85 10.2-5.43 15.4-5.18Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
190
+ flatNatural: (components, colors) => "\n<path d=\"M38.66 11.1c-5 .35-9.92.08-14.92-.13-3.83-.16-7.72-.68-11.37 1.01-.7.32-4.53 2.28-4.44 3.35.07.85 3.93 2.2 4.63 2.44 3.67 1.29 7.18.9 10.95.66 4.64-.27 9.25-.07 13.87-.2 3.12-.1 7.92-.63 9.46-4.4.46-1.14.1-3.42-.36-4.66-.19-.5-.72-.69-1.13-.4a15.04 15.04 0 0 1-6.68 2.32ZM73.34 11.1c5 .35 9.92.08 14.92-.13 3.83-.16 7.72-.68 11.37 1.01.7.32 4.53 2.28 4.44 3.35-.07.85-3.93 2.2-4.63 2.44-3.67 1.29-7.18.9-10.95.66-4.63-.27-9.24-.07-13.86-.2-3.12-.1-7.92-.63-9.46-4.4-.46-1.14-.1-3.42.36-4.66.18-.5.72-.69 1.13-.4a15.04 15.04 0 0 0 6.68 2.32Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
191
+ frownNatural: (components, colors) => "\n<path d=\"M36.37 6.88c-1.97 2.9-5.55 4.64-8.74 5.68-3.94 1.29-18.55 3.38-15.11 11.35.05.12.22.12.27 0 1.15-2.65 17.47-5.12 18.97-5.7 4.45-1.71 8.4-5.5 9.17-10.55.35-2.31-.64-6.05-1.55-7.55-.11-.18-.37-.13-.43.07-.36 1.33-1.41 4.97-2.58 6.7ZM75.63 6.88c1.97 2.9 5.55 4.64 8.74 5.68 3.94 1.29 18.55 3.38 15.11 11.35a.15.15 0 0 1-.27 0c-1.15-2.65-17.47-5.12-18.97-5.7-4.45-1.71-8.4-5.5-9.17-10.55-.35-2.31.64-6.05 1.55-7.55.11-.18.37-.13.43.07.36 1.33 1.41 4.97 2.58 6.7Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
192
+ raisedExcitedNatural: (components, colors) => "\n<path d=\"m22.77 1.58.9-.4C28.93-.91 36.88-.03 41.73 2.3c.57.27.18 1.15-.4 1.1-14.92-1.14-24.96 8.15-28.37 14.45-.1.18-.41.2-.49.03-2.3-5.32 4.45-13.98 10.3-16.3ZM89.23 1.58l-.9-.4C83.07-.91 75.12-.03 70.27 2.3c-.57.27-.18 1.15.4 1.1 14.92-1.14 24.96 8.15 28.37 14.45.1.18.41.2.49.03 2.3-5.32-4.45-13.98-10.3-16.3Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
193
+ sadConcernedNatural: (components, colors) => "\n<path d=\"m31.23 20.42-.9.4c-5.25 2.09-13.2 1.21-18.05-1.12-.57-.27-.18-1.15.4-1.1 14.92 1.14 24.96-8.15 28.37-14.45.1-.18.41-.2.49-.03 2.3 5.32-4.45 13.98-10.3 16.3ZM80.77 20.42l.9.4c5.25 2.09 13.2 1.21 18.05-1.12.57-.27.18-1.15-.4-1.1-14.92 1.14-24.96-8.15-28.37-14.45-.1-.18-.41-.2-.49-.03-2.3 5.32 4.45 13.98 10.3 16.3Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
194
+ unibrowNatural: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#DADADA\">\n<path d=\"M57 12.82ZM96.12 7.6c1.46.56 9.19 6.43 7.86 9.16a.8.8 0 0 1-1.29.22 10.63 10.63 0 0 0-1.7-1.19c-5.1-2.84-11.3-1.93-16.73-.91-6.12 1.14-12.11 3.48-18.39 2.67-2.04-.26-6.08-1.22-7.63-2.96-.47-.53-.06-1.38.64-1.43 1.44-.11 2.86-.86 4.33-1.28 3.65-1.03 7.4-1.56 11.11-2.29 6.62-1.3 15.17-4.53 21.8-2Z\"/>\n<path d=\"M58.76 12.76c-1.17.04-2.8 3.56-.56 3.68 2.23.11 1.73-3.72.56-3.68ZM55 12.8c0-.01 0-.01 0 0ZM15.88 7.56c-1.46.56-9.19 6.43-7.86 9.16.24.5.89.6 1.29.22.55-.52 1.58-1.11 1.71-1.18 5.1-2.84 11.3-1.93 16.73-.91 6.12 1.14 12.11 3.48 18.39 2.67 2.04-.26 6.08-1.22 7.63-2.96.47-.53.06-1.38-.64-1.43-1.44-.11-2.86-.86-4.33-1.28-3.65-1.03-7.4-1.56-11.11-2.29-6.62-1.3-15.17-4.53-21.8-2Z\"/>\n<path d=\"M54.97 11.79c1.17.04 2.77 4.5.53 4.67-2.24.18-1.7-4.71-.53-4.67Z\"/>\n</g>\n",
195
+ upDownNatural: (components, colors) => "\n<path d=\"m22.77 1.58.9-.4C28.93-.91 36.88-.03 41.73 2.3c.57.27.18 1.15-.4 1.1-14.92-1.14-24.96 8.15-28.37 14.45-.1.18-.41.2-.49.03-2.3-5.32 4.45-13.98 10.3-16.3ZM87 12.07c5.75.77 14.74 5.8 13.99 11.6-.03.2-.31.26-.44.1-2.49-3.2-21.71-7.87-28.71-6.9-.64.1-1.07-.57-.63-.98 3.75-3.54 10.62-4.52 15.78-3.82Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
196
+ angry: (components, colors) => "\n<path d=\"M15.61 15.18c4.24-5.76 6.88-5.48 13.31-.62l.67.5C34.41 18.73 36.7 20 40 20a2 2 0 1 0 0-4c-2.07 0-3.9-1.02-7.99-4.12l-.68-.52C27.57 8.53 25.37 7.3 22.63 7c-3.68-.4-7.05 1.48-10.24 5.83a2 2 0 1 0 3.22 2.36ZM96.39 15.18c-4.24-5.76-6.88-5.48-13.31-.62l-.67.5C77.58 18.73 75.29 20 72 20a2 2 0 1 1 0-4c2.07 0 3.9-1.02 7.99-4.12l.68-.52c3.76-2.83 5.96-4.07 8.7-4.37 3.68-.4 7.05 1.48 10.24 5.83a2 2 0 1 1-3.22 2.36Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
197
+ default: (components, colors) => "\n<path d=\"M15.63 17.16c3.92-5.51 14.65-8.6 23.9-6.33a2 2 0 1 0 .95-3.88c-10.74-2.64-23.17.94-28.11 7.9a2 2 0 0 0 3.26 2.3ZM96.37 17.16c-3.91-5.51-14.65-8.6-23.9-6.33a2 2 0 1 1-.95-3.88c10.74-2.64 23.17.94 28.11 7.9a2 2 0 0 1-3.26 2.3Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
198
+ raisedExcited: (components, colors) => "\n<path d=\"M15.98 17.13C17.48 7.6 30.06 1.1 39.16 5.3a2 2 0 1 0 1.68-3.63c-11.5-5.3-26.9 2.66-28.82 14.84a2 2 0 0 0 3.96.63ZM96.02 17.13C94.52 7.6 81.94 1.1 72.84 5.3a2 2 0 1 1-1.68-3.63c11.5-5.3 26.9 2.66 28.82 14.84a2 2 0 0 1-3.96.63Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
199
+ sadConcerned: (components, colors) => "\n<path d=\"M38.03 5.6c-1.48 8.38-14.1 14.17-23.24 10.42a2.04 2.04 0 0 0-2.64 1c-.43.97.04 2.1 1.05 2.5 11.45 4.7 26.84-2.37 28.76-13.3a1.92 1.92 0 0 0-1.64-2.2 2 2 0 0 0-2.3 1.57ZM73.97 5.6c1.48 8.38 14.1 14.17 23.24 10.42 1.02-.41 2.2.03 2.63 1 .43.97-.04 2.1-1.05 2.5-11.44 4.7-26.84-2.37-28.76-13.3a1.92 1.92 0 0 1 1.64-2.2 2 2 0 0 1 2.3 1.57Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
200
+ upDown: (components, colors) => "\n<path d=\"M15.6 14.16c4.49-6.32 14-9.5 23.75-6.36a2 2 0 1 0 1.23-3.81c-11.41-3.68-22.74.1-28.25 7.85a2 2 0 1 0 3.26 2.32ZM96.38 21.16c-3.92-5.51-14.65-8.6-23.9-6.33a2 2 0 0 1-.95-3.88c10.74-2.64 23.17.94 28.1 7.9a2 2 0 1 1-3.25 2.3Z\" fill=\"#000\" fill-opacity=\".6\"/>\n"
201
+ };
202
+
203
+ var components = /*#__PURE__*/Object.freeze({
204
+ __proto__: null,
205
+ mouth: mouth,
206
+ nose: nose,
207
+ eyes: eyes,
208
+ eyebrows: eyebrows
209
+ });
210
+
211
+ function pickComponent({
212
+ prng,
213
+ group,
214
+ values = []
215
+ }) {
216
+ const componentCollection = components;
217
+ const key = prng.pick(values);
218
+
219
+ if (componentCollection[group][key]) {
220
+ return {
221
+ name: key,
222
+ value: componentCollection[group][key]
223
+ };
224
+ } else {
225
+ return undefined;
226
+ }
227
+ }
228
+
229
+ function getComponents({
230
+ prng,
231
+ options
232
+ }) {
233
+ const mouthComponent = pickComponent({
234
+ prng,
235
+ group: 'mouth',
236
+ values: options.mouth
237
+ });
238
+ const noseComponent = pickComponent({
239
+ prng,
240
+ group: 'nose',
241
+ values: options.nose
242
+ });
243
+ const eyesComponent = pickComponent({
244
+ prng,
245
+ group: 'eyes',
246
+ values: options.eyes
247
+ });
248
+ const eyebrowsComponent = pickComponent({
249
+ prng,
250
+ group: 'eyebrows',
251
+ values: options.eyebrows
252
+ });
253
+ return {
254
+ mouth: mouthComponent,
255
+ nose: noseComponent,
256
+ eyes: eyesComponent,
257
+ eyebrows: eyebrowsComponent
258
+ };
259
+ }
260
+
261
+ const skin = {
262
+ black: 'rgba(97, 67, 53, 1)',
263
+ brown: 'rgba(208, 139, 91, 1)',
264
+ darkBrown: 'rgba(174, 93, 41, 1)',
265
+ light: 'rgba(237, 185, 138, 1)',
266
+ pale: 'rgba(255, 219, 180, 1)',
267
+ tanned: 'rgba(253, 152, 65, 1)',
268
+ yellow: 'rgba(248, 210, 92, 1)'
269
+ };
270
+
271
+ var colors = /*#__PURE__*/Object.freeze({
272
+ __proto__: null,
273
+ skin: skin
274
+ });
275
+
276
+ function pickColor({
277
+ prng,
278
+ group,
279
+ values = []
280
+ }) {
281
+ var _colorCollection$grou;
282
+
283
+ const colorCollection = colors;
284
+
285
+ if (values.length === 0) {
286
+ values.push('transparent');
287
+ }
288
+
289
+ const key = prng.pick(values);
290
+ return {
291
+ name: key,
292
+ value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
293
+ };
294
+ }
295
+
296
+ function getColors({
297
+ prng,
298
+ options
299
+ }) {
300
+ return {
301
+ background: pickColor({
302
+ prng,
303
+ group: 'skin',
304
+ values: options.backgroundColor
305
+ })
306
+ };
307
+ }
308
+
309
+ const dimensions = {
310
+ mouth: {
311
+ width: 108,
312
+ height: 44
313
+ },
314
+ nose: {
315
+ width: 56,
316
+ height: 24
317
+ },
318
+ eyes: {
319
+ width: 112,
320
+ height: 44
321
+ },
322
+ eyebrows: {
323
+ width: 112,
324
+ height: 24
325
+ }
326
+ };
327
+
328
+ const style = {
329
+ meta: {
330
+ title: 'Avataaars',
331
+ creator: 'Pablo Stanley',
332
+ source: 'https://avataaars.com/',
333
+ license: {
334
+ name: 'Free for personal and commercial use.',
335
+ url: 'https://avataaars.com/'
336
+ }
337
+ },
338
+ schema: schema$1,
339
+ create: ({
340
+ prng,
341
+ options
342
+ }) => {
343
+ var _components$mouth$val, _components$mouth, _components$nose$valu, _components$nose, _components$eyes$valu, _components$eyes, _components$eyebrows$, _components$eyebrows;
344
+ const components = getComponents({
345
+ prng,
346
+ options
347
+ });
348
+ const colors = getColors({
349
+ prng,
350
+ options
351
+ });
352
+ options.backgroundColor = [colors.background.value];
353
+ return {
354
+ attributes: {
355
+ viewBox: '0 0 112 112',
356
+ fill: 'none',
357
+ 'shape-rendering': 'auto'
358
+ },
359
+ body: "\n<g transform=\"translate(2 63)\">\n".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 : '', "\n</g>\n<g transform=\"translate(28 51)\">\n").concat((_components$nose$valu = (_components$nose = components.nose) === null || _components$nose === void 0 ? void 0 : _components$nose.value(components, colors)) !== null && _components$nose$valu !== void 0 ? _components$nose$valu : '', "\n</g>\n<g transform=\"translate(0 19)\">\n").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 : '', "\n</g>\n<g transform=\"translate(0 11)\">\n").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$ : '', "\n</g>\n")
360
+ };
361
+ },
362
+ preview: ({
363
+ prng,
364
+ options,
365
+ property
366
+ }) => {
367
+ const componentGroup = property.toString();
368
+ const colorGroup = property.toString().replace(/Color$/, '');
369
+ const components = getComponents({
370
+ prng,
371
+ options
372
+ });
373
+ const colors = getColors({
374
+ prng,
375
+ options
376
+ });
377
+ options.backgroundColor = [colors.background.value];
378
+
379
+ if (componentGroup in components) {
380
+ var _components$component, _components$component2;
381
+
382
+ const {
383
+ width,
384
+ height
385
+ } = dimensions[componentGroup];
386
+ return {
387
+ attributes: {
388
+ viewBox: "0 0 ".concat(width, " ").concat(height),
389
+ fill: 'none',
390
+ 'shape-rendering': 'auto'
391
+ },
392
+ body: (_components$component = (_components$component2 = components[componentGroup]) === null || _components$component2 === void 0 ? void 0 : _components$component2.value(components, colors)) !== null && _components$component !== void 0 ? _components$component : ''
393
+ };
394
+ }
395
+
396
+ if (colorGroup in colors) {
397
+ return {
398
+ attributes: {
399
+ viewBox: "0 0 1 1",
400
+ fill: 'none',
401
+ 'shape-rendering': 'auto'
402
+ },
403
+ body: "<rect width=\"1\" height=\"1\" fill=\"".concat(colors[colorGroup].value, "\" />")
404
+ };
405
+ }
406
+
407
+ return undefined;
408
+ }
409
+ };
410
+
411
+ /*!
412
+ * Avataaars Neutral (@dicebear/avataaars-neutral)
413
+ *
414
+ * Code licensed under MIT License.
415
+ * Copyright (c) 2021 Florian Körner
416
+ *
417
+ * Design "Avataaars" by Pablo Stanley licensed under Free for personal and commercial use..
418
+ * Source: https://avataaars.com/
419
+ * License: https://avataaars.com/
420
+ */
421
+ let {
422
+ create,
423
+ preview,
424
+ meta,
425
+ schema
426
+ } = style;
427
+
428
+ export { create, meta, preview, schema };
package/dist/index.js ADDED
@@ -0,0 +1,435 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var title = "Options";
6
+ var $schema = "http://json-schema.org/draft-07/schema#";
7
+ var properties = {
8
+ backgroundColor: {
9
+ type: "array",
10
+ items: {
11
+ anyOf: [
12
+ {
13
+ type: "string",
14
+ pattern: "^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$"
15
+ },
16
+ {
17
+ type: "string",
18
+ pattern: "^[0-9a-zA-Z]+$"
19
+ }
20
+ ]
21
+ },
22
+ "default": [
23
+ "black",
24
+ "brown",
25
+ "darkBrown",
26
+ "light",
27
+ "pale",
28
+ "tanned",
29
+ "yellow"
30
+ ]
31
+ },
32
+ eyebrows: {
33
+ type: "array",
34
+ items: {
35
+ type: "string",
36
+ "enum": [
37
+ "angryNatural",
38
+ "defaultNatural",
39
+ "flatNatural",
40
+ "frownNatural",
41
+ "raisedExcitedNatural",
42
+ "sadConcernedNatural",
43
+ "unibrowNatural",
44
+ "upDownNatural",
45
+ "angry",
46
+ "default",
47
+ "raisedExcited",
48
+ "sadConcerned",
49
+ "upDown"
50
+ ]
51
+ },
52
+ "default": [
53
+ "angryNatural",
54
+ "defaultNatural",
55
+ "flatNatural",
56
+ "frownNatural",
57
+ "raisedExcitedNatural",
58
+ "sadConcernedNatural",
59
+ "unibrowNatural",
60
+ "upDownNatural",
61
+ "angry",
62
+ "default",
63
+ "raisedExcited",
64
+ "sadConcerned",
65
+ "upDown"
66
+ ]
67
+ },
68
+ eyes: {
69
+ type: "array",
70
+ items: {
71
+ type: "string",
72
+ "enum": [
73
+ "closed",
74
+ "cry",
75
+ "default",
76
+ "eyeRoll",
77
+ "happy",
78
+ "hearts",
79
+ "side",
80
+ "squint",
81
+ "surprised",
82
+ "winkWacky",
83
+ "wink",
84
+ "xDizzy"
85
+ ]
86
+ },
87
+ "default": [
88
+ "closed",
89
+ "cry",
90
+ "default",
91
+ "eyeRoll",
92
+ "happy",
93
+ "hearts",
94
+ "side",
95
+ "squint",
96
+ "surprised",
97
+ "winkWacky",
98
+ "wink",
99
+ "xDizzy"
100
+ ]
101
+ },
102
+ mouth: {
103
+ type: "array",
104
+ items: {
105
+ type: "string",
106
+ "enum": [
107
+ "concerned",
108
+ "default",
109
+ "disbelief",
110
+ "eating",
111
+ "grimace",
112
+ "sad",
113
+ "screamOpen",
114
+ "serious",
115
+ "smile",
116
+ "tongue",
117
+ "twinkle",
118
+ "vomit"
119
+ ]
120
+ },
121
+ "default": [
122
+ "concerned",
123
+ "default",
124
+ "disbelief",
125
+ "eating",
126
+ "grimace",
127
+ "sad",
128
+ "screamOpen",
129
+ "serious",
130
+ "smile",
131
+ "tongue",
132
+ "twinkle",
133
+ "vomit"
134
+ ]
135
+ },
136
+ nose: {
137
+ type: "array",
138
+ items: {
139
+ type: "string",
140
+ "enum": [
141
+ "default"
142
+ ]
143
+ },
144
+ "default": [
145
+ "default"
146
+ ]
147
+ }
148
+ };
149
+ var additionalProperties = false;
150
+ var schema$1 = {
151
+ title: title,
152
+ $schema: $schema,
153
+ properties: properties,
154
+ additionalProperties: additionalProperties
155
+ };
156
+
157
+ const mouth = {
158
+ concerned: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M35.12 29.87a19 19 0 0 1 37.77.09c.08.77-.77 2.04-1.85 2.04H37.1C36 32 35 30.82 35.12 29.87Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M69.59 32H38.4a11 11 0 0 1 15.6-6.8A11 11 0 0 1 69.59 32Z\" fill=\"#FF4F6D\"/>\n<path d=\"M66.57 17.75A5 5 0 0 1 65 18H44c-.8 0-1.57-.2-2.24-.53A18.92 18.92 0 0 1 54 13c4.82 0 9.22 1.8 12.57 4.75Z\" fill=\"#fff\"/>\n",
159
+ default: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M40 15a14 14 0 1 0 28 0\" fill=\"#000\" fill-opacity=\".7\"/>\n",
160
+ disbelief: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M40 29a14 14 0 1 1 28 0\" fill=\"#000\" fill-opacity=\".7\"/>\n",
161
+ eating: (components, colors) => "\n<path d=\"M28 26.24c1.36.5 2.84.76 4.4.76 5.31 0 9.81-3.15 11.29-7.49 2.47 2.17 6.17 3.54 10.31 3.54 4.14 0 7.84-1.37 10.31-3.53 1.48 4.35 5.98 7.5 11.3 7.5 1.55 0 3.03-.27 4.4-.76h-.19c-6.33 0-11.8-4.9-11.8-10.56 0-4.18 2.32-7.72 5.69-9.68-5.5.8-9.73 5-9.9 10.1a17.61 17.61 0 0 1-9.8 2.8c-3.8 0-7.25-1.06-9.8-2.8-.18-5.1-4.4-9.3-9.9-10.1a11.18 11.18 0 0 1 5.68 9.68c0 5.66-5.47 10.57-11.8 10.57H28Z\" fill=\"#000\" fill-opacity=\".6\" opacity=\".6\"/>\n<path d=\"M17 24a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM91 24a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z\" fill=\"#FF4646\" fill-opacity=\".2\"/>\n",
162
+ grimace: (components, colors) => "\n<rect x=\"22\" y=\"7\" width=\"64\" height=\"26\" rx=\"13\" fill=\"#000\" fill-opacity=\".6\"/>\n<rect x=\"24\" y=\"9\" width=\"60\" height=\"22\" rx=\"11\" fill=\"#fff\"/>\n<path d=\"M24.18 18H32V9.41A11 11 0 0 1 35 9h1v9h9V9h4v9h9V9h4v9h9V9h2c.68 0 1.35.06 2 .18V18h8.82l.05.28v3.44l-.05.28H75v8.82c-.65.12-1.32.18-2 .18h-2v-9h-9v9h-4v-9h-9v9h-4v-9h-9v9h-1a11 11 0 0 1-3-.41V22h-7.82a11.06 11.06 0 0 1 0-4Z\" fill=\"#E6E6E6\"/>\n",
163
+ sad: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M40.06 27.72C40.7 20.7 46.7 16 54 16c7.34 0 13.36 4.75 13.95 11.85.03.38-.87.67-1.32.45-5.54-2.77-9.75-4.16-12.63-4.16-2.84 0-7 1.36-12.45 4.07-.5.25-1.53-.07-1.5-.49Z\" fill=\"#000\" fill-opacity=\".7\"/>\n",
164
+ screamOpen: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M34 38.86C35.14 24.88 38.24 13.01 54 13c15.76 0 18.92 11.94 20 26 .08 1.12-.83 2-1.96 2-6.69 0-9.37-2-18.05-2-8.7 0-13.24 2-17.9 2-1.15 0-2.2-.74-2.1-2.14Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M67.02 17.57c-.61.28-1.3.43-2.02.43H44c-.98 0-1.9-.28-2.67-.77C44.23 14.57 48.28 13 54 13c5.95 0 10.1 1.7 13.02 4.57Z\" fill=\"#fff\"/>\n<path d=\"M69.8 40.92a44.2 44.2 0 0 1-5.54-.82c-2.73-.53-5.65-1.1-10.27-1.1-5.02 0-8.66.66-11.74 1.23-1.45.26-2.77.5-4.06.65A11 11 0 0 1 54 33.2a11 11 0 0 1 15.8 7.72Z\" fill=\"#FF4F6D\"/>\n",
165
+ serious: (components, colors) => "\n<rect x=\"42\" y=\"18\" width=\"24\" height=\"6\" rx=\"3\" fill=\"#000\" fill-opacity=\".7\"/>\n",
166
+ smile: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M35.12 15.13a19 19 0 0 0 37.77-.09c.08-.77-.77-2.04-1.85-2.04H37.1C36 13 35 14.18 35.12 15.13Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z\" fill=\"#fff\"/>\n<path d=\"M66.7 27.14A10.96 10.96 0 0 0 54 25.2a10.95 10.95 0 0 0-12.7 1.94A18.93 18.93 0 0 0 54 32c4.88 0 9.33-1.84 12.7-4.86Z\" fill=\"#FF4F6D\"/>\n",
167
+ tongue: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M29 15.6C30.41 25.24 41.06 33 54 33c12.97 0 23.65-7.82 25-18.26.1-.4-.22-1.74-2.17-1.74H31.17c-1.79 0-2.3 1.24-2.17 2.6Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z\" fill=\"#fff\"/>\n<path d=\"M43 23.5a1.88 1.88 0 0 0 0 .13v8.87a11.5 11.5 0 1 0 23 0v-8.87a1.62 1.62 0 0 0 0-.13c0-1.93-2.91-3.5-6.5-3.5-2.01 0-3.8.5-5 1.26a9.45 9.45 0 0 0-5-1.26c-3.59 0-6.5 1.57-6.5 3.5Z\" fill=\"#FF4F6D\"/>\n",
168
+ twinkle: (components, colors) => "\n<path d=\"M40 16c0 5.37 6.16 9 14 9s14-3.63 14-9c0-1.1-.95-2-2-2-1.3 0-1.87.9-2 2-1.24 2.94-4.32 4.72-10 5-5.68-.28-8.76-2.06-10-5-.13-1.1-.7-2-2-2-1.05 0-2 .9-2 2Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
169
+ vomit: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M34 30.4C35.14 19.9 38.24 11 54 11c15.76 0 18.92 8.96 20 19.5.08.84-.83 1.5-1.96 1.5-6.69 0-9.37-1.5-18.05-1.5-8.7 0-13.24 1.5-17.9 1.5-1.15 0-2.2-.55-2.1-1.6Z\" fill=\"#000\" fill-opacity=\".7\"/>\n<path d=\"M67.86 15.1c-.8.57-1.8.9-2.86.9H44c-1.3 0-2.49-.5-3.38-1.31C43.56 12.38 47.8 11 54 11c6.54 0 10.9 1.54 13.86 4.1Z\" fill=\"#fff\"/>\n<path d=\"M42 25a6 6 0 0 0-6 6v7a6 6 0 0 0 12 0v-2h.08a6 6 0 0 1 11.84 0H60a6 6 0 0 0 12 0v-5a6 6 0 0 0-6-6H42Z\" fill=\"#7BB24B\"/>\n<path d=\"M72 31a6 6 0 0 0-6-6H42a6 6 0 0 0-6 6v6a6 6 0 0 0 12 0v-2h.08a6 6 0 0 1 11.84 0H60a6 6 0 0 0 12 0v-4Z\" fill=\"#88C553\"/>\n"
170
+ };
171
+
172
+ const nose = {
173
+ default: (components, colors) => "\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16 8c0 4.42 5.37 8 12 8s12-3.58 12-8\" fill=\"#000\" fill-opacity=\".16\"/>\n"
174
+ };
175
+
176
+ const eyes = {
177
+ closed: (components, colors) => "\n<path d=\"M16.16 27.55c1.85 3.8 6 6.45 10.84 6.45 4.81 0 8.96-2.63 10.82-6.4.55-1.13-.24-2.05-1.03-1.37a15.05 15.05 0 0 1-9.8 3.43c-3.73 0-7.12-1.24-9.55-3.23-.9-.73-1.82.01-1.28 1.12ZM74.16 27.55c1.85 3.8 6 6.45 10.84 6.45 4.81 0 8.96-2.63 10.82-6.4.55-1.13-.24-2.05-1.03-1.37a15.05 15.05 0 0 1-9.8 3.43c-3.74 0-7.13-1.24-9.56-3.23-.9-.73-1.82.01-1.28 1.12Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
178
+ cry: (components, colors) => "\n<path d=\"M25 27s-6 7.27-6 11.27a6 6 0 1 0 12 0c0-4-6-11.27-6-11.27Z\" fill=\"#92D9FF\"/>\n<path d=\"M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
179
+ default: (components, colors) => "\n<path d=\"M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
180
+ eyeRoll: (components, colors) => "\n<path d=\"M44 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0ZM96 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0Z\" fill=\"#fff\"/>\n<path d=\"M36 14a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 14a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\" fill=\"#000\" fill-opacity=\".7\"/>\n",
181
+ happy: (components, colors) => "\n<path d=\"M16.16 22.45c1.85-3.8 6-6.45 10.84-6.45 4.81 0 8.96 2.63 10.82 6.4.55 1.13-.24 2.05-1.03 1.37a15.05 15.05 0 0 0-9.8-3.43c-3.73 0-7.12 1.24-9.55 3.23-.9.73-1.82-.01-1.28-1.12ZM74.16 22.45c1.85-3.8 6-6.45 10.84-6.45 4.81 0 8.96 2.63 10.82 6.4.55 1.13-.24 2.05-1.03 1.37a15.05 15.05 0 0 0-9.8-3.43c-3.74 0-7.13 1.24-9.56 3.23-.9.73-1.82-.01-1.28-1.12Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
182
+ hearts: (components, colors) => "\n<path d=\"M35.96 10c-2.55 0-5.08 1.98-6.46 3.82-1.39-1.84-3.9-3.82-6.46-3.82-5.49 0-9.04 3.33-9.04 7.64 0 5.73 4.41 9.13 9.04 12.74 1.66 1.23 4.78 4.4 5.17 5.1.38.68 2.1.7 2.58 0 .48-.73 3.51-3.87 5.17-5.1 4.63-3.6 9.04-7 9.04-12.74 0-4.3-3.55-7.64-9.04-7.64ZM88.96 10c-2.55 0-5.08 1.98-6.46 3.82-1.39-1.84-3.9-3.82-6.46-3.82-5.49 0-9.04 3.33-9.04 7.64 0 5.73 4.41 9.13 9.04 12.74 1.65 1.23 4.78 4.4 5.17 5.1.38.68 2.1.7 2.58 0 .48-.73 3.51-3.87 5.17-5.1 4.63-3.6 9.04-7 9.04-12.74 0-4.3-3.55-7.64-9.04-7.64Z\" fill=\"#FF5353\" fill-opacity=\".8\"/>\n",
183
+ side: (components, colors) => "\n<path d=\"M27 16c-4.84 0-9 2.65-10.84 6.45-.54 1.1.39 1.85 1.28 1.12a15.13 15.13 0 0 1 9.8-3.22 6 6 0 1 0 10.7 2.8 2 2 0 0 0-.12-.74l-.15-.38a6 6 0 0 0-1.64-2.48C33.9 17.32 30.5 16 27 16ZM85 16c-4.84 0-9 2.65-10.84 6.45-.54 1.1.39 1.85 1.28 1.12a15.13 15.13 0 0 1 9.8-3.22 6 6 0 1 0 10.7 2.8 2 2 0 0 0-.12-.74l-.15-.38a6 6 0 0 0-1.64-2.48C91.9 17.32 88.5 16 85 16Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
184
+ squint: (components, colors) => "\n<path d=\"M44 20.73c0 4.26-6.27 7.72-14 7.72S16 25 16 20.73C16 16.46 22.27 13 30 13s14 3.46 14 7.73ZM96 20.73c0 4.26-6.27 7.72-14 7.72S68 25 68 20.73C68 16.46 74.27 13 82 13s14 3.46 14 7.73Z\" fill=\"#fff\"/>\n<path d=\"M32.82 28.3a25.15 25.15 0 0 1-5.64 0 6 6 0 1 1 5.64 0ZM84.82 28.3a25.15 25.15 0 0 1-5.64 0 6 6 0 1 1 5.64 0Z\" fill=\"#000\" fill-opacity=\".7\"/>\n",
185
+ surprised: (components, colors) => "\n<path d=\"M44 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0ZM96 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0Z\" fill=\"#fff\"/>\n<path d=\"M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\" fill=\"#000\" fill-opacity=\".7\"/>\n",
186
+ winkWacky: (components, colors) => "\n<circle cx=\"82\" cy=\"22\" r=\"12\" fill=\"#fff\"/>\n<circle cx=\"82\" cy=\"22\" r=\"6\" fill=\"#000\" fill-opacity=\".7\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M16.16 25.45c1.85-3.8 6-6.45 10.84-6.45 4.81 0 8.96 2.63 10.82 6.4.55 1.13-.24 2.05-1.03 1.37a15.05 15.05 0 0 0-9.8-3.43c-3.73 0-7.12 1.24-9.55 3.23-.9.73-1.82-.01-1.28-1.12Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
187
+ wink: (components, colors) => "\n<g fill=\"#000\" fill-opacity=\".6\">\n<path d=\"M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\"/>\n<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M70.6 24.96c1.59-3.92 5.55-6.86 10.37-7.2 4.8-.33 9.12 2 11.24 5.64.63 1.09-.1 2.06-.93 1.43-2.6-1.93-6.15-3-10-2.73A15.13 15.13 0 0 0 71.95 26c-.84.78-1.81.1-1.35-1.04Z\"/>\n</g>\n",
188
+ xDizzy: (components, colors) => "\n<path d=\"M34.5 30.7 29 25.2l-5.5 5.5c-.4.4-1.1.4-1.6 0l-1.6-1.6c-.4-.4-.4-1.1 0-1.6l5.5-5.5-5.5-5.5c-.4-.5-.4-1.2 0-1.6l1.6-1.6c.4-.4 1.1-.4 1.6 0l5.5 5.5 5.5-5.5c.4-.4 1.1-.4 1.6 0l1.6 1.6c.4.4.4 1.1 0 1.6L32.2 22l5.5 5.5c.4.4.4 1.1 0 1.6l-1.6 1.6c-.4.4-1.1.4-1.6 0ZM88.5 30.7 83 25.2l-5.5 5.5c-.4.4-1.1.4-1.6 0l-1.6-1.6c-.4-.4-.4-1.1 0-1.6l5.5-5.5-5.5-5.5c-.4-.5-.4-1.2 0-1.6l1.6-1.6c.4-.4 1.1-.4 1.6 0l5.5 5.5 5.5-5.5c.4-.4 1.1-.4 1.6 0l1.6 1.6c.4.4.4 1.1 0 1.6L86.2 22l5.5 5.5c.4.4.4 1.1 0 1.6l-1.6 1.6c-.4.4-1.1.4-1.6 0Z\" fill=\"#000\" fill-opacity=\".6\"/>\n"
189
+ };
190
+
191
+ const eyebrows = {
192
+ angryNatural: (components, colors) => "\n<path d=\"M44.1 17.12ZM19.27 5.01a7.16 7.16 0 0 0-6.42 2.43c-.6.73-1.56 2.48-1.51 3.42.02.35.22.37 1.12.59 1.65.39 4.5-1.12 6.36-.98 2.58.2 5.04 1.4 7.28 2.68 3.84 2.2 8.35 6.84 13.1 6.6.35-.02 5.41-1.74 4.4-2.72-.31-.49-3.03-1.13-3.5-1.36-2.17-1.09-4.37-2.45-6.44-3.72C29.14 9.18 24.72 5.6 19.28 5ZM68.03 17.12ZM92.91 5.01c2.36-.27 4.85.5 6.42 2.43.6.73 1.56 2.48 1.51 3.42-.02.35-.22.37-1.12.59-1.65.39-4.5-1.12-6.36-.98-2.58.2-5.04 1.4-7.28 2.68-3.84 2.2-8.35 6.84-13.1 6.6-.35-.02-5.41-1.74-4.4-2.72.31-.49 3.03-1.13 3.5-1.36 2.17-1.09 4.36-2.45 6.44-3.72C83.05 9.18 87.46 5.6 92.91 5Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
193
+ defaultNatural: (components, colors) => "\n<path d=\"M26.55 6.15c-5.8.27-15.2 4.49-14.96 10.34.01.18.3.27.43.12 2.76-2.96 22.32-5.95 29.2-4.36.64.14 1.12-.48.72-.93-3.43-3.85-10.2-5.43-15.4-5.18ZM86.45 6.15c5.8.27 15.2 4.49 14.96 10.34-.01.18-.3.27-.43.12-2.76-2.96-22.32-5.95-29.2-4.36-.64.14-1.12-.48-.72-.93 3.43-3.85 10.2-5.43 15.4-5.18Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
194
+ flatNatural: (components, colors) => "\n<path d=\"M38.66 11.1c-5 .35-9.92.08-14.92-.13-3.83-.16-7.72-.68-11.37 1.01-.7.32-4.53 2.28-4.44 3.35.07.85 3.93 2.2 4.63 2.44 3.67 1.29 7.18.9 10.95.66 4.64-.27 9.25-.07 13.87-.2 3.12-.1 7.92-.63 9.46-4.4.46-1.14.1-3.42-.36-4.66-.19-.5-.72-.69-1.13-.4a15.04 15.04 0 0 1-6.68 2.32ZM73.34 11.1c5 .35 9.92.08 14.92-.13 3.83-.16 7.72-.68 11.37 1.01.7.32 4.53 2.28 4.44 3.35-.07.85-3.93 2.2-4.63 2.44-3.67 1.29-7.18.9-10.95.66-4.63-.27-9.24-.07-13.86-.2-3.12-.1-7.92-.63-9.46-4.4-.46-1.14-.1-3.42.36-4.66.18-.5.72-.69 1.13-.4a15.04 15.04 0 0 0 6.68 2.32Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
195
+ frownNatural: (components, colors) => "\n<path d=\"M36.37 6.88c-1.97 2.9-5.55 4.64-8.74 5.68-3.94 1.29-18.55 3.38-15.11 11.35.05.12.22.12.27 0 1.15-2.65 17.47-5.12 18.97-5.7 4.45-1.71 8.4-5.5 9.17-10.55.35-2.31-.64-6.05-1.55-7.55-.11-.18-.37-.13-.43.07-.36 1.33-1.41 4.97-2.58 6.7ZM75.63 6.88c1.97 2.9 5.55 4.64 8.74 5.68 3.94 1.29 18.55 3.38 15.11 11.35a.15.15 0 0 1-.27 0c-1.15-2.65-17.47-5.12-18.97-5.7-4.45-1.71-8.4-5.5-9.17-10.55-.35-2.31.64-6.05 1.55-7.55.11-.18.37-.13.43.07.36 1.33 1.41 4.97 2.58 6.7Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
196
+ raisedExcitedNatural: (components, colors) => "\n<path d=\"m22.77 1.58.9-.4C28.93-.91 36.88-.03 41.73 2.3c.57.27.18 1.15-.4 1.1-14.92-1.14-24.96 8.15-28.37 14.45-.1.18-.41.2-.49.03-2.3-5.32 4.45-13.98 10.3-16.3ZM89.23 1.58l-.9-.4C83.07-.91 75.12-.03 70.27 2.3c-.57.27-.18 1.15.4 1.1 14.92-1.14 24.96 8.15 28.37 14.45.1.18.41.2.49.03 2.3-5.32-4.45-13.98-10.3-16.3Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
197
+ sadConcernedNatural: (components, colors) => "\n<path d=\"m31.23 20.42-.9.4c-5.25 2.09-13.2 1.21-18.05-1.12-.57-.27-.18-1.15.4-1.1 14.92 1.14 24.96-8.15 28.37-14.45.1-.18.41-.2.49-.03 2.3 5.32-4.45 13.98-10.3 16.3ZM80.77 20.42l.9.4c5.25 2.09 13.2 1.21 18.05-1.12.57-.27.18-1.15-.4-1.1-14.92 1.14-24.96-8.15-28.37-14.45-.1-.18-.41-.2-.49-.03-2.3 5.32 4.45 13.98 10.3 16.3Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
198
+ unibrowNatural: (components, colors) => "\n<g fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#DADADA\">\n<path d=\"M57 12.82ZM96.12 7.6c1.46.56 9.19 6.43 7.86 9.16a.8.8 0 0 1-1.29.22 10.63 10.63 0 0 0-1.7-1.19c-5.1-2.84-11.3-1.93-16.73-.91-6.12 1.14-12.11 3.48-18.39 2.67-2.04-.26-6.08-1.22-7.63-2.96-.47-.53-.06-1.38.64-1.43 1.44-.11 2.86-.86 4.33-1.28 3.65-1.03 7.4-1.56 11.11-2.29 6.62-1.3 15.17-4.53 21.8-2Z\"/>\n<path d=\"M58.76 12.76c-1.17.04-2.8 3.56-.56 3.68 2.23.11 1.73-3.72.56-3.68ZM55 12.8c0-.01 0-.01 0 0ZM15.88 7.56c-1.46.56-9.19 6.43-7.86 9.16.24.5.89.6 1.29.22.55-.52 1.58-1.11 1.71-1.18 5.1-2.84 11.3-1.93 16.73-.91 6.12 1.14 12.11 3.48 18.39 2.67 2.04-.26 6.08-1.22 7.63-2.96.47-.53.06-1.38-.64-1.43-1.44-.11-2.86-.86-4.33-1.28-3.65-1.03-7.4-1.56-11.11-2.29-6.62-1.3-15.17-4.53-21.8-2Z\"/>\n<path d=\"M54.97 11.79c1.17.04 2.77 4.5.53 4.67-2.24.18-1.7-4.71-.53-4.67Z\"/>\n</g>\n",
199
+ upDownNatural: (components, colors) => "\n<path d=\"m22.77 1.58.9-.4C28.93-.91 36.88-.03 41.73 2.3c.57.27.18 1.15-.4 1.1-14.92-1.14-24.96 8.15-28.37 14.45-.1.18-.41.2-.49.03-2.3-5.32 4.45-13.98 10.3-16.3ZM87 12.07c5.75.77 14.74 5.8 13.99 11.6-.03.2-.31.26-.44.1-2.49-3.2-21.71-7.87-28.71-6.9-.64.1-1.07-.57-.63-.98 3.75-3.54 10.62-4.52 15.78-3.82Z\" fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#000\" fill-opacity=\".6\"/>\n",
200
+ angry: (components, colors) => "\n<path d=\"M15.61 15.18c4.24-5.76 6.88-5.48 13.31-.62l.67.5C34.41 18.73 36.7 20 40 20a2 2 0 1 0 0-4c-2.07 0-3.9-1.02-7.99-4.12l-.68-.52C27.57 8.53 25.37 7.3 22.63 7c-3.68-.4-7.05 1.48-10.24 5.83a2 2 0 1 0 3.22 2.36ZM96.39 15.18c-4.24-5.76-6.88-5.48-13.31-.62l-.67.5C77.58 18.73 75.29 20 72 20a2 2 0 1 1 0-4c2.07 0 3.9-1.02 7.99-4.12l.68-.52c3.76-2.83 5.96-4.07 8.7-4.37 3.68-.4 7.05 1.48 10.24 5.83a2 2 0 1 1-3.22 2.36Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
201
+ default: (components, colors) => "\n<path d=\"M15.63 17.16c3.92-5.51 14.65-8.6 23.9-6.33a2 2 0 1 0 .95-3.88c-10.74-2.64-23.17.94-28.11 7.9a2 2 0 0 0 3.26 2.3ZM96.37 17.16c-3.91-5.51-14.65-8.6-23.9-6.33a2 2 0 1 1-.95-3.88c10.74-2.64 23.17.94 28.11 7.9a2 2 0 0 1-3.26 2.3Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
202
+ raisedExcited: (components, colors) => "\n<path d=\"M15.98 17.13C17.48 7.6 30.06 1.1 39.16 5.3a2 2 0 1 0 1.68-3.63c-11.5-5.3-26.9 2.66-28.82 14.84a2 2 0 0 0 3.96.63ZM96.02 17.13C94.52 7.6 81.94 1.1 72.84 5.3a2 2 0 1 1-1.68-3.63c11.5-5.3 26.9 2.66 28.82 14.84a2 2 0 0 1-3.96.63Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
203
+ sadConcerned: (components, colors) => "\n<path d=\"M38.03 5.6c-1.48 8.38-14.1 14.17-23.24 10.42a2.04 2.04 0 0 0-2.64 1c-.43.97.04 2.1 1.05 2.5 11.45 4.7 26.84-2.37 28.76-13.3a1.92 1.92 0 0 0-1.64-2.2 2 2 0 0 0-2.3 1.57ZM73.97 5.6c1.48 8.38 14.1 14.17 23.24 10.42 1.02-.41 2.2.03 2.63 1 .43.97-.04 2.1-1.05 2.5-11.44 4.7-26.84-2.37-28.76-13.3a1.92 1.92 0 0 1 1.64-2.2 2 2 0 0 1 2.3 1.57Z\" fill=\"#000\" fill-opacity=\".6\"/>\n",
204
+ upDown: (components, colors) => "\n<path d=\"M15.6 14.16c4.49-6.32 14-9.5 23.75-6.36a2 2 0 1 0 1.23-3.81c-11.41-3.68-22.74.1-28.25 7.85a2 2 0 1 0 3.26 2.32ZM96.38 21.16c-3.92-5.51-14.65-8.6-23.9-6.33a2 2 0 0 1-.95-3.88c10.74-2.64 23.17.94 28.1 7.9a2 2 0 1 1-3.25 2.3Z\" fill=\"#000\" fill-opacity=\".6\"/>\n"
205
+ };
206
+
207
+ var components = /*#__PURE__*/Object.freeze({
208
+ __proto__: null,
209
+ mouth: mouth,
210
+ nose: nose,
211
+ eyes: eyes,
212
+ eyebrows: eyebrows
213
+ });
214
+
215
+ function pickComponent({
216
+ prng,
217
+ group,
218
+ values = []
219
+ }) {
220
+ const componentCollection = components;
221
+ const key = prng.pick(values);
222
+
223
+ if (componentCollection[group][key]) {
224
+ return {
225
+ name: key,
226
+ value: componentCollection[group][key]
227
+ };
228
+ } else {
229
+ return undefined;
230
+ }
231
+ }
232
+
233
+ function getComponents({
234
+ prng,
235
+ options
236
+ }) {
237
+ const mouthComponent = pickComponent({
238
+ prng,
239
+ group: 'mouth',
240
+ values: options.mouth
241
+ });
242
+ const noseComponent = pickComponent({
243
+ prng,
244
+ group: 'nose',
245
+ values: options.nose
246
+ });
247
+ const eyesComponent = pickComponent({
248
+ prng,
249
+ group: 'eyes',
250
+ values: options.eyes
251
+ });
252
+ const eyebrowsComponent = pickComponent({
253
+ prng,
254
+ group: 'eyebrows',
255
+ values: options.eyebrows
256
+ });
257
+ return {
258
+ mouth: mouthComponent,
259
+ nose: noseComponent,
260
+ eyes: eyesComponent,
261
+ eyebrows: eyebrowsComponent
262
+ };
263
+ }
264
+
265
+ const skin = {
266
+ black: 'rgba(97, 67, 53, 1)',
267
+ brown: 'rgba(208, 139, 91, 1)',
268
+ darkBrown: 'rgba(174, 93, 41, 1)',
269
+ light: 'rgba(237, 185, 138, 1)',
270
+ pale: 'rgba(255, 219, 180, 1)',
271
+ tanned: 'rgba(253, 152, 65, 1)',
272
+ yellow: 'rgba(248, 210, 92, 1)'
273
+ };
274
+
275
+ var colors = /*#__PURE__*/Object.freeze({
276
+ __proto__: null,
277
+ skin: skin
278
+ });
279
+
280
+ function pickColor({
281
+ prng,
282
+ group,
283
+ values = []
284
+ }) {
285
+ var _colorCollection$grou;
286
+
287
+ const colorCollection = colors;
288
+
289
+ if (values.length === 0) {
290
+ values.push('transparent');
291
+ }
292
+
293
+ const key = prng.pick(values);
294
+ return {
295
+ name: key,
296
+ value: (_colorCollection$grou = colorCollection[group][key]) !== null && _colorCollection$grou !== void 0 ? _colorCollection$grou : key
297
+ };
298
+ }
299
+
300
+ function getColors({
301
+ prng,
302
+ options
303
+ }) {
304
+ return {
305
+ background: pickColor({
306
+ prng,
307
+ group: 'skin',
308
+ values: options.backgroundColor
309
+ })
310
+ };
311
+ }
312
+
313
+ const dimensions = {
314
+ mouth: {
315
+ width: 108,
316
+ height: 44
317
+ },
318
+ nose: {
319
+ width: 56,
320
+ height: 24
321
+ },
322
+ eyes: {
323
+ width: 112,
324
+ height: 44
325
+ },
326
+ eyebrows: {
327
+ width: 112,
328
+ height: 24
329
+ }
330
+ };
331
+
332
+ const style = {
333
+ meta: {
334
+ title: 'Avataaars',
335
+ creator: 'Pablo Stanley',
336
+ source: 'https://avataaars.com/',
337
+ license: {
338
+ name: 'Free for personal and commercial use.',
339
+ url: 'https://avataaars.com/'
340
+ }
341
+ },
342
+ schema: schema$1,
343
+ create: ({
344
+ prng,
345
+ options
346
+ }) => {
347
+ var _components$mouth$val, _components$mouth, _components$nose$valu, _components$nose, _components$eyes$valu, _components$eyes, _components$eyebrows$, _components$eyebrows;
348
+ const components = getComponents({
349
+ prng,
350
+ options
351
+ });
352
+ const colors = getColors({
353
+ prng,
354
+ options
355
+ });
356
+ options.backgroundColor = [colors.background.value];
357
+ return {
358
+ attributes: {
359
+ viewBox: '0 0 112 112',
360
+ fill: 'none',
361
+ 'shape-rendering': 'auto'
362
+ },
363
+ body: "\n<g transform=\"translate(2 63)\">\n".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 : '', "\n</g>\n<g transform=\"translate(28 51)\">\n").concat((_components$nose$valu = (_components$nose = components.nose) === null || _components$nose === void 0 ? void 0 : _components$nose.value(components, colors)) !== null && _components$nose$valu !== void 0 ? _components$nose$valu : '', "\n</g>\n<g transform=\"translate(0 19)\">\n").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 : '', "\n</g>\n<g transform=\"translate(0 11)\">\n").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$ : '', "\n</g>\n")
364
+ };
365
+ },
366
+ preview: ({
367
+ prng,
368
+ options,
369
+ property
370
+ }) => {
371
+ const componentGroup = property.toString();
372
+ const colorGroup = property.toString().replace(/Color$/, '');
373
+ const components = getComponents({
374
+ prng,
375
+ options
376
+ });
377
+ const colors = getColors({
378
+ prng,
379
+ options
380
+ });
381
+ options.backgroundColor = [colors.background.value];
382
+
383
+ if (componentGroup in components) {
384
+ var _components$component, _components$component2;
385
+
386
+ const {
387
+ width,
388
+ height
389
+ } = dimensions[componentGroup];
390
+ return {
391
+ attributes: {
392
+ viewBox: "0 0 ".concat(width, " ").concat(height),
393
+ fill: 'none',
394
+ 'shape-rendering': 'auto'
395
+ },
396
+ body: (_components$component = (_components$component2 = components[componentGroup]) === null || _components$component2 === void 0 ? void 0 : _components$component2.value(components, colors)) !== null && _components$component !== void 0 ? _components$component : ''
397
+ };
398
+ }
399
+
400
+ if (colorGroup in colors) {
401
+ return {
402
+ attributes: {
403
+ viewBox: "0 0 1 1",
404
+ fill: 'none',
405
+ 'shape-rendering': 'auto'
406
+ },
407
+ body: "<rect width=\"1\" height=\"1\" fill=\"".concat(colors[colorGroup].value, "\" />")
408
+ };
409
+ }
410
+
411
+ return undefined;
412
+ }
413
+ };
414
+
415
+ /*!
416
+ * Avataaars Neutral (@dicebear/avataaars-neutral)
417
+ *
418
+ * Code licensed under MIT License.
419
+ * Copyright (c) 2021 Florian Körner
420
+ *
421
+ * Design "Avataaars" by Pablo Stanley licensed under Free for personal and commercial use..
422
+ * Source: https://avataaars.com/
423
+ * License: https://avataaars.com/
424
+ */
425
+ let {
426
+ create,
427
+ preview,
428
+ meta,
429
+ schema
430
+ } = style;
431
+
432
+ exports.create = create;
433
+ exports.meta = meta;
434
+ exports.preview = preview;
435
+ exports.schema = schema;
@@ -0,0 +1,12 @@
1
+ !function(l,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((l="undefined"!=typeof globalThis?globalThis:l||self).DiceBear=l.DiceBear||{},l.DiceBear.AvataaarsNeutral={}))}(this,(function(l){"use strict";var e={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:["black","brown","darkBrown","light","pale","tanned","yellow"]},eyebrows:{type:"array",items:{type:"string",enum:["angryNatural","defaultNatural","flatNatural","frownNatural","raisedExcitedNatural","sadConcernedNatural","unibrowNatural","upDownNatural","angry","default","raisedExcited","sadConcerned","upDown"]},default:["angryNatural","defaultNatural","flatNatural","frownNatural","raisedExcitedNatural","sadConcernedNatural","unibrowNatural","upDownNatural","angry","default","raisedExcited","sadConcerned","upDown"]},eyes:{type:"array",items:{type:"string",enum:["closed","cry","default","eyeRoll","happy","hearts","side","squint","surprised","winkWacky","wink","xDizzy"]},default:["closed","cry","default","eyeRoll","happy","hearts","side","squint","surprised","winkWacky","wink","xDizzy"]},mouth:{type:"array",items:{type:"string",enum:["concerned","default","disbelief","eating","grimace","sad","screamOpen","serious","smile","tongue","twinkle","vomit"]},default:["concerned","default","disbelief","eating","grimace","sad","screamOpen","serious","smile","tongue","twinkle","vomit"]},nose:{type:"array",items:{type:"string",enum:["default"]},default:["default"]}},additionalProperties:!1};var a=Object.freeze({__proto__:null,mouth:{concerned:(l,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M35.12 29.87a19 19 0 0 1 37.77.09c.08.77-.77 2.04-1.85 2.04H37.1C36 32 35 30.82 35.12 29.87Z" fill="#000" fill-opacity=".7"/>\n<path d="M69.59 32H38.4a11 11 0 0 1 15.6-6.8A11 11 0 0 1 69.59 32Z" fill="#FF4F6D"/>\n<path d="M66.57 17.75A5 5 0 0 1 65 18H44c-.8 0-1.57-.2-2.24-.53A18.92 18.92 0 0 1 54 13c4.82 0 9.22 1.8 12.57 4.75Z" fill="#fff"/>\n',default:(l,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M40 15a14 14 0 1 0 28 0" fill="#000" fill-opacity=".7"/>\n',disbelief:(l,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M40 29a14 14 0 1 1 28 0" fill="#000" fill-opacity=".7"/>\n',eating:(l,e)=>'\n<path d="M28 26.24c1.36.5 2.84.76 4.4.76 5.31 0 9.81-3.15 11.29-7.49 2.47 2.17 6.17 3.54 10.31 3.54 4.14 0 7.84-1.37 10.31-3.53 1.48 4.35 5.98 7.5 11.3 7.5 1.55 0 3.03-.27 4.4-.76h-.19c-6.33 0-11.8-4.9-11.8-10.56 0-4.18 2.32-7.72 5.69-9.68-5.5.8-9.73 5-9.9 10.1a17.61 17.61 0 0 1-9.8 2.8c-3.8 0-7.25-1.06-9.8-2.8-.18-5.1-4.4-9.3-9.9-10.1a11.18 11.18 0 0 1 5.68 9.68c0 5.66-5.47 10.57-11.8 10.57H28Z" fill="#000" fill-opacity=".6" opacity=".6"/>\n<path d="M17 24a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM91 24a9 9 0 1 0 0-18 9 9 0 0 0 0 18Z" fill="#FF4646" fill-opacity=".2"/>\n',grimace:(l,e)=>'\n<rect x="22" y="7" width="64" height="26" rx="13" fill="#000" fill-opacity=".6"/>\n<rect x="24" y="9" width="60" height="22" rx="11" fill="#fff"/>\n<path d="M24.18 18H32V9.41A11 11 0 0 1 35 9h1v9h9V9h4v9h9V9h4v9h9V9h2c.68 0 1.35.06 2 .18V18h8.82l.05.28v3.44l-.05.28H75v8.82c-.65.12-1.32.18-2 .18h-2v-9h-9v9h-4v-9h-9v9h-4v-9h-9v9h-1a11 11 0 0 1-3-.41V22h-7.82a11.06 11.06 0 0 1 0-4Z" fill="#E6E6E6"/>\n',sad:(l,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M40.06 27.72C40.7 20.7 46.7 16 54 16c7.34 0 13.36 4.75 13.95 11.85.03.38-.87.67-1.32.45-5.54-2.77-9.75-4.16-12.63-4.16-2.84 0-7 1.36-12.45 4.07-.5.25-1.53-.07-1.5-.49Z" fill="#000" fill-opacity=".7"/>\n',screamOpen:(l,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M34 38.86C35.14 24.88 38.24 13.01 54 13c15.76 0 18.92 11.94 20 26 .08 1.12-.83 2-1.96 2-6.69 0-9.37-2-18.05-2-8.7 0-13.24 2-17.9 2-1.15 0-2.2-.74-2.1-2.14Z" fill="#000" fill-opacity=".7"/>\n<path d="M67.02 17.57c-.61.28-1.3.43-2.02.43H44c-.98 0-1.9-.28-2.67-.77C44.23 14.57 48.28 13 54 13c5.95 0 10.1 1.7 13.02 4.57Z" fill="#fff"/>\n<path d="M69.8 40.92a44.2 44.2 0 0 1-5.54-.82c-2.73-.53-5.65-1.1-10.27-1.1-5.02 0-8.66.66-11.74 1.23-1.45.26-2.77.5-4.06.65A11 11 0 0 1 54 33.2a11 11 0 0 1 15.8 7.72Z" fill="#FF4F6D"/>\n',serious:(l,e)=>'\n<rect x="42" y="18" width="24" height="6" rx="3" fill="#000" fill-opacity=".7"/>\n',smile:(l,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M35.12 15.13a19 19 0 0 0 37.77-.09c.08-.77-.77-2.04-1.85-2.04H37.1C36 13 35 14.18 35.12 15.13Z" fill="#000" fill-opacity=".7"/>\n<path d="M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z" fill="#fff"/>\n<path d="M66.7 27.14A10.96 10.96 0 0 0 54 25.2a10.95 10.95 0 0 0-12.7 1.94A18.93 18.93 0 0 0 54 32c4.88 0 9.33-1.84 12.7-4.86Z" fill="#FF4F6D"/>\n',tongue:(l,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M29 15.6C30.41 25.24 41.06 33 54 33c12.97 0 23.65-7.82 25-18.26.1-.4-.22-1.74-2.17-1.74H31.17c-1.79 0-2.3 1.24-2.17 2.6Z" fill="#000" fill-opacity=".7"/>\n<path d="M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z" fill="#fff"/>\n<path d="M43 23.5a1.88 1.88 0 0 0 0 .13v8.87a11.5 11.5 0 1 0 23 0v-8.87a1.62 1.62 0 0 0 0-.13c0-1.93-2.91-3.5-6.5-3.5-2.01 0-3.8.5-5 1.26a9.45 9.45 0 0 0-5-1.26c-3.59 0-6.5 1.57-6.5 3.5Z" fill="#FF4F6D"/>\n',twinkle:(l,e)=>'\n<path d="M40 16c0 5.37 6.16 9 14 9s14-3.63 14-9c0-1.1-.95-2-2-2-1.3 0-1.87.9-2 2-1.24 2.94-4.32 4.72-10 5-5.68-.28-8.76-2.06-10-5-.13-1.1-.7-2-2-2-1.05 0-2 .9-2 2Z" fill="#000" fill-opacity=".6"/>\n',vomit:(l,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M34 30.4C35.14 19.9 38.24 11 54 11c15.76 0 18.92 8.96 20 19.5.08.84-.83 1.5-1.96 1.5-6.69 0-9.37-1.5-18.05-1.5-8.7 0-13.24 1.5-17.9 1.5-1.15 0-2.2-.55-2.1-1.6Z" fill="#000" fill-opacity=".7"/>\n<path d="M67.86 15.1c-.8.57-1.8.9-2.86.9H44c-1.3 0-2.49-.5-3.38-1.31C43.56 12.38 47.8 11 54 11c6.54 0 10.9 1.54 13.86 4.1Z" fill="#fff"/>\n<path d="M42 25a6 6 0 0 0-6 6v7a6 6 0 0 0 12 0v-2h.08a6 6 0 0 1 11.84 0H60a6 6 0 0 0 12 0v-5a6 6 0 0 0-6-6H42Z" fill="#7BB24B"/>\n<path d="M72 31a6 6 0 0 0-6-6H42a6 6 0 0 0-6 6v6a6 6 0 0 0 12 0v-2h.08a6 6 0 0 1 11.84 0H60a6 6 0 0 0 12 0v-4Z" fill="#88C553"/>\n'},nose:{default:(l,e)=>'\n<path fill-rule="evenodd" clip-rule="evenodd" d="M16 8c0 4.42 5.37 8 12 8s12-3.58 12-8" fill="#000" fill-opacity=".16"/>\n'},eyes:{closed:(l,e)=>'\n<path d="M16.16 27.55c1.85 3.8 6 6.45 10.84 6.45 4.81 0 8.96-2.63 10.82-6.4.55-1.13-.24-2.05-1.03-1.37a15.05 15.05 0 0 1-9.8 3.43c-3.73 0-7.12-1.24-9.55-3.23-.9-.73-1.82.01-1.28 1.12ZM74.16 27.55c1.85 3.8 6 6.45 10.84 6.45 4.81 0 8.96-2.63 10.82-6.4.55-1.13-.24-2.05-1.03-1.37a15.05 15.05 0 0 1-9.8 3.43c-3.74 0-7.13-1.24-9.56-3.23-.9-.73-1.82.01-1.28 1.12Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>\n',cry:(l,e)=>'\n<path d="M25 27s-6 7.27-6 11.27a6 6 0 1 0 12 0c0-4-6-11.27-6-11.27Z" fill="#92D9FF"/>\n<path d="M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" fill="#000" fill-opacity=".6"/>\n',default:(l,e)=>'\n<path d="M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" fill="#000" fill-opacity=".6"/>\n',eyeRoll:(l,e)=>'\n<path d="M44 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0ZM96 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0Z" fill="#fff"/>\n<path d="M36 14a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 14a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" fill="#000" fill-opacity=".7"/>\n',happy:(l,e)=>'\n<path d="M16.16 22.45c1.85-3.8 6-6.45 10.84-6.45 4.81 0 8.96 2.63 10.82 6.4.55 1.13-.24 2.05-1.03 1.37a15.05 15.05 0 0 0-9.8-3.43c-3.73 0-7.12 1.24-9.55 3.23-.9.73-1.82-.01-1.28-1.12ZM74.16 22.45c1.85-3.8 6-6.45 10.84-6.45 4.81 0 8.96 2.63 10.82 6.4.55 1.13-.24 2.05-1.03 1.37a15.05 15.05 0 0 0-9.8-3.43c-3.74 0-7.13 1.24-9.56 3.23-.9.73-1.82-.01-1.28-1.12Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>\n',hearts:(l,e)=>'\n<path d="M35.96 10c-2.55 0-5.08 1.98-6.46 3.82-1.39-1.84-3.9-3.82-6.46-3.82-5.49 0-9.04 3.33-9.04 7.64 0 5.73 4.41 9.13 9.04 12.74 1.66 1.23 4.78 4.4 5.17 5.1.38.68 2.1.7 2.58 0 .48-.73 3.51-3.87 5.17-5.1 4.63-3.6 9.04-7 9.04-12.74 0-4.3-3.55-7.64-9.04-7.64ZM88.96 10c-2.55 0-5.08 1.98-6.46 3.82-1.39-1.84-3.9-3.82-6.46-3.82-5.49 0-9.04 3.33-9.04 7.64 0 5.73 4.41 9.13 9.04 12.74 1.65 1.23 4.78 4.4 5.17 5.1.38.68 2.1.7 2.58 0 .48-.73 3.51-3.87 5.17-5.1 4.63-3.6 9.04-7 9.04-12.74 0-4.3-3.55-7.64-9.04-7.64Z" fill="#FF5353" fill-opacity=".8"/>\n',side:(l,e)=>'\n<path d="M27 16c-4.84 0-9 2.65-10.84 6.45-.54 1.1.39 1.85 1.28 1.12a15.13 15.13 0 0 1 9.8-3.22 6 6 0 1 0 10.7 2.8 2 2 0 0 0-.12-.74l-.15-.38a6 6 0 0 0-1.64-2.48C33.9 17.32 30.5 16 27 16ZM85 16c-4.84 0-9 2.65-10.84 6.45-.54 1.1.39 1.85 1.28 1.12a15.13 15.13 0 0 1 9.8-3.22 6 6 0 1 0 10.7 2.8 2 2 0 0 0-.12-.74l-.15-.38a6 6 0 0 0-1.64-2.48C91.9 17.32 88.5 16 85 16Z" fill="#000" fill-opacity=".6"/>\n',squint:(l,e)=>'\n<path d="M44 20.73c0 4.26-6.27 7.72-14 7.72S16 25 16 20.73C16 16.46 22.27 13 30 13s14 3.46 14 7.73ZM96 20.73c0 4.26-6.27 7.72-14 7.72S68 25 68 20.73C68 16.46 74.27 13 82 13s14 3.46 14 7.73Z" fill="#fff"/>\n<path d="M32.82 28.3a25.15 25.15 0 0 1-5.64 0 6 6 0 1 1 5.64 0ZM84.82 28.3a25.15 25.15 0 0 1-5.64 0 6 6 0 1 1 5.64 0Z" fill="#000" fill-opacity=".7"/>\n',surprised:(l,e)=>'\n<path d="M44 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0ZM96 22a14 14 0 1 1-28 0 14 14 0 0 1 28 0Z" fill="#fff"/>\n<path d="M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0ZM88 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z" fill="#000" fill-opacity=".7"/>\n',winkWacky:(l,e)=>'\n<circle cx="82" cy="22" r="12" fill="#fff"/>\n<circle cx="82" cy="22" r="6" fill="#000" fill-opacity=".7"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M16.16 25.45c1.85-3.8 6-6.45 10.84-6.45 4.81 0 8.96 2.63 10.82 6.4.55 1.13-.24 2.05-1.03 1.37a15.05 15.05 0 0 0-9.8-3.43c-3.73 0-7.12 1.24-9.55 3.23-.9.73-1.82-.01-1.28-1.12Z" fill="#000" fill-opacity=".6"/>\n',wink:(l,e)=>'\n<g fill="#000" fill-opacity=".6">\n<path d="M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M70.6 24.96c1.59-3.92 5.55-6.86 10.37-7.2 4.8-.33 9.12 2 11.24 5.64.63 1.09-.1 2.06-.93 1.43-2.6-1.93-6.15-3-10-2.73A15.13 15.13 0 0 0 71.95 26c-.84.78-1.81.1-1.35-1.04Z"/>\n</g>\n',xDizzy:(l,e)=>'\n<path d="M34.5 30.7 29 25.2l-5.5 5.5c-.4.4-1.1.4-1.6 0l-1.6-1.6c-.4-.4-.4-1.1 0-1.6l5.5-5.5-5.5-5.5c-.4-.5-.4-1.2 0-1.6l1.6-1.6c.4-.4 1.1-.4 1.6 0l5.5 5.5 5.5-5.5c.4-.4 1.1-.4 1.6 0l1.6 1.6c.4.4.4 1.1 0 1.6L32.2 22l5.5 5.5c.4.4.4 1.1 0 1.6l-1.6 1.6c-.4.4-1.1.4-1.6 0ZM88.5 30.7 83 25.2l-5.5 5.5c-.4.4-1.1.4-1.6 0l-1.6-1.6c-.4-.4-.4-1.1 0-1.6l5.5-5.5-5.5-5.5c-.4-.5-.4-1.2 0-1.6l1.6-1.6c.4-.4 1.1-.4 1.6 0l5.5 5.5 5.5-5.5c.4-.4 1.1-.4 1.6 0l1.6 1.6c.4.4.4 1.1 0 1.6L86.2 22l5.5 5.5c.4.4.4 1.1 0 1.6l-1.6 1.6c-.4.4-1.1.4-1.6 0Z" fill="#000" fill-opacity=".6"/>\n'},eyebrows:{angryNatural:(l,e)=>'\n<path d="M44.1 17.12ZM19.27 5.01a7.16 7.16 0 0 0-6.42 2.43c-.6.73-1.56 2.48-1.51 3.42.02.35.22.37 1.12.59 1.65.39 4.5-1.12 6.36-.98 2.58.2 5.04 1.4 7.28 2.68 3.84 2.2 8.35 6.84 13.1 6.6.35-.02 5.41-1.74 4.4-2.72-.31-.49-3.03-1.13-3.5-1.36-2.17-1.09-4.37-2.45-6.44-3.72C29.14 9.18 24.72 5.6 19.28 5ZM68.03 17.12ZM92.91 5.01c2.36-.27 4.85.5 6.42 2.43.6.73 1.56 2.48 1.51 3.42-.02.35-.22.37-1.12.59-1.65.39-4.5-1.12-6.36-.98-2.58.2-5.04 1.4-7.28 2.68-3.84 2.2-8.35 6.84-13.1 6.6-.35-.02-5.41-1.74-4.4-2.72.31-.49 3.03-1.13 3.5-1.36 2.17-1.09 4.36-2.45 6.44-3.72C83.05 9.18 87.46 5.6 92.91 5Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>\n',defaultNatural:(l,e)=>'\n<path d="M26.55 6.15c-5.8.27-15.2 4.49-14.96 10.34.01.18.3.27.43.12 2.76-2.96 22.32-5.95 29.2-4.36.64.14 1.12-.48.72-.93-3.43-3.85-10.2-5.43-15.4-5.18ZM86.45 6.15c5.8.27 15.2 4.49 14.96 10.34-.01.18-.3.27-.43.12-2.76-2.96-22.32-5.95-29.2-4.36-.64.14-1.12-.48-.72-.93 3.43-3.85 10.2-5.43 15.4-5.18Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>\n',flatNatural:(l,e)=>'\n<path d="M38.66 11.1c-5 .35-9.92.08-14.92-.13-3.83-.16-7.72-.68-11.37 1.01-.7.32-4.53 2.28-4.44 3.35.07.85 3.93 2.2 4.63 2.44 3.67 1.29 7.18.9 10.95.66 4.64-.27 9.25-.07 13.87-.2 3.12-.1 7.92-.63 9.46-4.4.46-1.14.1-3.42-.36-4.66-.19-.5-.72-.69-1.13-.4a15.04 15.04 0 0 1-6.68 2.32ZM73.34 11.1c5 .35 9.92.08 14.92-.13 3.83-.16 7.72-.68 11.37 1.01.7.32 4.53 2.28 4.44 3.35-.07.85-3.93 2.2-4.63 2.44-3.67 1.29-7.18.9-10.95.66-4.63-.27-9.24-.07-13.86-.2-3.12-.1-7.92-.63-9.46-4.4-.46-1.14-.1-3.42.36-4.66.18-.5.72-.69 1.13-.4a15.04 15.04 0 0 0 6.68 2.32Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>\n',frownNatural:(l,e)=>'\n<path d="M36.37 6.88c-1.97 2.9-5.55 4.64-8.74 5.68-3.94 1.29-18.55 3.38-15.11 11.35.05.12.22.12.27 0 1.15-2.65 17.47-5.12 18.97-5.7 4.45-1.71 8.4-5.5 9.17-10.55.35-2.31-.64-6.05-1.55-7.55-.11-.18-.37-.13-.43.07-.36 1.33-1.41 4.97-2.58 6.7ZM75.63 6.88c1.97 2.9 5.55 4.64 8.74 5.68 3.94 1.29 18.55 3.38 15.11 11.35a.15.15 0 0 1-.27 0c-1.15-2.65-17.47-5.12-18.97-5.7-4.45-1.71-8.4-5.5-9.17-10.55-.35-2.31.64-6.05 1.55-7.55.11-.18.37-.13.43.07.36 1.33 1.41 4.97 2.58 6.7Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>\n',raisedExcitedNatural:(l,e)=>'\n<path d="m22.77 1.58.9-.4C28.93-.91 36.88-.03 41.73 2.3c.57.27.18 1.15-.4 1.1-14.92-1.14-24.96 8.15-28.37 14.45-.1.18-.41.2-.49.03-2.3-5.32 4.45-13.98 10.3-16.3ZM89.23 1.58l-.9-.4C83.07-.91 75.12-.03 70.27 2.3c-.57.27-.18 1.15.4 1.1 14.92-1.14 24.96 8.15 28.37 14.45.1.18.41.2.49.03 2.3-5.32-4.45-13.98-10.3-16.3Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>\n',sadConcernedNatural:(l,e)=>'\n<path d="m31.23 20.42-.9.4c-5.25 2.09-13.2 1.21-18.05-1.12-.57-.27-.18-1.15.4-1.1 14.92 1.14 24.96-8.15 28.37-14.45.1-.18.41-.2.49-.03 2.3 5.32-4.45 13.98-10.3 16.3ZM80.77 20.42l.9.4c5.25 2.09 13.2 1.21 18.05-1.12.57-.27.18-1.15-.4-1.1-14.92 1.14-24.96-8.15-28.37-14.45-.1-.18-.41-.2-.49-.03-2.3 5.32 4.45 13.98 10.3 16.3Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>\n',unibrowNatural:(l,e)=>'\n<g fill-rule="evenodd" clip-rule="evenodd" fill="#DADADA">\n<path d="M57 12.82ZM96.12 7.6c1.46.56 9.19 6.43 7.86 9.16a.8.8 0 0 1-1.29.22 10.63 10.63 0 0 0-1.7-1.19c-5.1-2.84-11.3-1.93-16.73-.91-6.12 1.14-12.11 3.48-18.39 2.67-2.04-.26-6.08-1.22-7.63-2.96-.47-.53-.06-1.38.64-1.43 1.44-.11 2.86-.86 4.33-1.28 3.65-1.03 7.4-1.56 11.11-2.29 6.62-1.3 15.17-4.53 21.8-2Z"/>\n<path d="M58.76 12.76c-1.17.04-2.8 3.56-.56 3.68 2.23.11 1.73-3.72.56-3.68ZM55 12.8c0-.01 0-.01 0 0ZM15.88 7.56c-1.46.56-9.19 6.43-7.86 9.16.24.5.89.6 1.29.22.55-.52 1.58-1.11 1.71-1.18 5.1-2.84 11.3-1.93 16.73-.91 6.12 1.14 12.11 3.48 18.39 2.67 2.04-.26 6.08-1.22 7.63-2.96.47-.53.06-1.38-.64-1.43-1.44-.11-2.86-.86-4.33-1.28-3.65-1.03-7.4-1.56-11.11-2.29-6.62-1.3-15.17-4.53-21.8-2Z"/>\n<path d="M54.97 11.79c1.17.04 2.77 4.5.53 4.67-2.24.18-1.7-4.71-.53-4.67Z"/>\n</g>\n',upDownNatural:(l,e)=>'\n<path d="m22.77 1.58.9-.4C28.93-.91 36.88-.03 41.73 2.3c.57.27.18 1.15-.4 1.1-14.92-1.14-24.96 8.15-28.37 14.45-.1.18-.41.2-.49.03-2.3-5.32 4.45-13.98 10.3-16.3ZM87 12.07c5.75.77 14.74 5.8 13.99 11.6-.03.2-.31.26-.44.1-2.49-3.2-21.71-7.87-28.71-6.9-.64.1-1.07-.57-.63-.98 3.75-3.54 10.62-4.52 15.78-3.82Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>\n',angry:(l,e)=>'\n<path d="M15.61 15.18c4.24-5.76 6.88-5.48 13.31-.62l.67.5C34.41 18.73 36.7 20 40 20a2 2 0 1 0 0-4c-2.07 0-3.9-1.02-7.99-4.12l-.68-.52C27.57 8.53 25.37 7.3 22.63 7c-3.68-.4-7.05 1.48-10.24 5.83a2 2 0 1 0 3.22 2.36ZM96.39 15.18c-4.24-5.76-6.88-5.48-13.31-.62l-.67.5C77.58 18.73 75.29 20 72 20a2 2 0 1 1 0-4c2.07 0 3.9-1.02 7.99-4.12l.68-.52c3.76-2.83 5.96-4.07 8.7-4.37 3.68-.4 7.05 1.48 10.24 5.83a2 2 0 1 1-3.22 2.36Z" fill="#000" fill-opacity=".6"/>\n',default:(l,e)=>'\n<path d="M15.63 17.16c3.92-5.51 14.65-8.6 23.9-6.33a2 2 0 1 0 .95-3.88c-10.74-2.64-23.17.94-28.11 7.9a2 2 0 0 0 3.26 2.3ZM96.37 17.16c-3.91-5.51-14.65-8.6-23.9-6.33a2 2 0 1 1-.95-3.88c10.74-2.64 23.17.94 28.11 7.9a2 2 0 0 1-3.26 2.3Z" fill="#000" fill-opacity=".6"/>\n',raisedExcited:(l,e)=>'\n<path d="M15.98 17.13C17.48 7.6 30.06 1.1 39.16 5.3a2 2 0 1 0 1.68-3.63c-11.5-5.3-26.9 2.66-28.82 14.84a2 2 0 0 0 3.96.63ZM96.02 17.13C94.52 7.6 81.94 1.1 72.84 5.3a2 2 0 1 1-1.68-3.63c11.5-5.3 26.9 2.66 28.82 14.84a2 2 0 0 1-3.96.63Z" fill="#000" fill-opacity=".6"/>\n',sadConcerned:(l,e)=>'\n<path d="M38.03 5.6c-1.48 8.38-14.1 14.17-23.24 10.42a2.04 2.04 0 0 0-2.64 1c-.43.97.04 2.1 1.05 2.5 11.45 4.7 26.84-2.37 28.76-13.3a1.92 1.92 0 0 0-1.64-2.2 2 2 0 0 0-2.3 1.57ZM73.97 5.6c1.48 8.38 14.1 14.17 23.24 10.42 1.02-.41 2.2.03 2.63 1 .43.97-.04 2.1-1.05 2.5-11.44 4.7-26.84-2.37-28.76-13.3a1.92 1.92 0 0 1 1.64-2.2 2 2 0 0 1 2.3 1.57Z" fill="#000" fill-opacity=".6"/>\n',upDown:(l,e)=>'\n<path d="M15.6 14.16c4.49-6.32 14-9.5 23.75-6.36a2 2 0 1 0 1.23-3.81c-11.41-3.68-22.74.1-28.25 7.85a2 2 0 1 0 3.26 2.32ZM96.38 21.16c-3.92-5.51-14.65-8.6-23.9-6.33a2 2 0 0 1-.95-3.88c10.74-2.64 23.17.94 28.1 7.9a2 2 0 1 1-3.25 2.3Z" fill="#000" fill-opacity=".6"/>\n'}});function n({prng:l,group:e,values:n=[]}){const i=a,t=l.pick(n);return i[e][t]?{name:t,value:i[e][t]}:void 0}function i({prng:l,options:e}){return{mouth:n({prng:l,group:"mouth",values:e.mouth}),nose:n({prng:l,group:"nose",values:e.nose}),eyes:n({prng:l,group:"eyes",values:e.eyes}),eyebrows:n({prng:l,group:"eyebrows",values:e.eyebrows})}}var t=Object.freeze({__proto__:null,skin:{black:"rgba(97, 67, 53, 1)",brown:"rgba(208, 139, 91, 1)",darkBrown:"rgba(174, 93, 41, 1)",light:"rgba(237, 185, 138, 1)",pale:"rgba(255, 219, 180, 1)",tanned:"rgba(253, 152, 65, 1)",yellow:"rgba(248, 210, 92, 1)"}});function r({prng:l,group:e,values:a=[]}){var n;const i=t;0===a.length&&a.push("transparent");const r=l.pick(a);return{name:r,value:null!==(n=i[e][r])&&void 0!==n?n:r}}function c({prng:l,options:e}){return{background:r({prng:l,group:"skin",values:e.backgroundColor})}}const o={mouth:{width:108,height:44},nose:{width:56,height:24},eyes:{width:112,height:44},eyebrows:{width:112,height:24}},d={meta:{title:"Avataaars",creator:"Pablo Stanley",source:"https://avataaars.com/",license:{name:"Free for personal and commercial use.",url:"https://avataaars.com/"}},schema:e,create:({prng:l,options:e})=>{var a,n,t,r,o,d,f,p;const u=i({prng:l,options:e}),s=c({prng:l,options:e});return e.backgroundColor=[s.background.value],{attributes:{viewBox:"0 0 112 112",fill:"none","shape-rendering":"auto"},body:'\n<g transform="translate(2 63)">\n'.concat(null!==(a=null===(n=u.mouth)||void 0===n?void 0:n.value(u,s))&&void 0!==a?a:"",'\n</g>\n<g transform="translate(28 51)">\n').concat(null!==(t=null===(r=u.nose)||void 0===r?void 0:r.value(u,s))&&void 0!==t?t:"",'\n</g>\n<g transform="translate(0 19)">\n').concat(null!==(o=null===(d=u.eyes)||void 0===d?void 0:d.value(u,s))&&void 0!==o?o:"",'\n</g>\n<g transform="translate(0 11)">\n').concat(null!==(f=null===(p=u.eyebrows)||void 0===p?void 0:p.value(u,s))&&void 0!==f?f:"","\n</g>\n")}},preview:({prng:l,options:e,property:a})=>{const n=a.toString(),t=a.toString().replace(/Color$/,""),r=i({prng:l,options:e}),d=c({prng:l,options:e});if(e.backgroundColor=[d.background.value],n in r){var f,p;const{width:l,height:e}=o[n];return{attributes:{viewBox:"0 0 ".concat(l," ").concat(e),fill:"none","shape-rendering":"auto"},body:null!==(f=null===(p=r[n])||void 0===p?void 0:p.value(r,d))&&void 0!==f?f:""}}if(t in d)return{attributes:{viewBox:"0 0 1 1",fill:"none","shape-rendering":"auto"},body:'<rect width="1" height="1" fill="'.concat(d[t].value,'" />')}}};
2
+ /*!
3
+ * Avataaars Neutral (@dicebear/avataaars-neutral)
4
+ *
5
+ * Code licensed under MIT License.
6
+ * Copyright (c) 2021 Florian Körner
7
+ *
8
+ * Design "Avataaars" by Pablo Stanley licensed under Free for personal and commercial use..
9
+ * Source: https://avataaars.com/
10
+ * License: https://avataaars.com/
11
+ */
12
+ let{create:f,preview:p,meta:u,schema:s}=d;l.create=f,l.meta=u,l.preview=p,l.schema=s,Object.defineProperty(l,"__esModule",{value:!0})}));
@@ -0,0 +1,4 @@
1
+ export declare const dimensions: Record<string, {
2
+ width: number;
3
+ height: number;
4
+ }>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ export interface Options {
7
+ backgroundColor?: (string | string)[];
8
+ eyebrows?: ("angryNatural" | "defaultNatural" | "flatNatural" | "frownNatural" | "raisedExcitedNatural" | "sadConcernedNatural" | "unibrowNatural" | "upDownNatural" | "angry" | "default" | "raisedExcited" | "sadConcerned" | "upDown")[];
9
+ eyes?: ("closed" | "cry" | "default" | "eyeRoll" | "happy" | "hearts" | "side" | "squint" | "surprised" | "winkWacky" | "wink" | "xDizzy")[];
10
+ mouth?: ("concerned" | "default" | "disbelief" | "eating" | "grimace" | "sad" | "screamOpen" | "serious" | "smile" | "tongue" | "twinkle" | "vomit")[];
11
+ nose?: "default"[];
12
+ }
@@ -0,0 +1,16 @@
1
+ export declare type ColorGroup = Record<string, ColorGroupItem>;
2
+ export declare type ColorGroupCollection = Record<string, ColorGroup>;
3
+ export declare type ColorGroupItem = string;
4
+ export declare type ColorPickCollection = Record<string, ColorPick>;
5
+ export declare type ColorPick = {
6
+ name: string;
7
+ value: ColorGroupItem;
8
+ };
9
+ export declare type ComponentGroup = Record<string, ComponentGroupItem>;
10
+ export declare type ComponentGroupCollection = Record<string, ComponentGroup>;
11
+ export declare type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
12
+ export declare type ComponentPickCollection = Record<string, ComponentPick>;
13
+ export declare type ComponentPick = {
14
+ name: string;
15
+ value: ComponentGroupItem;
16
+ } | undefined;
@@ -0,0 +1,9 @@
1
+ import type { Prng } from '@dicebear/core';
2
+ import type { Options } from '../options';
3
+ import type { ColorPickCollection } from '../static-types';
4
+ declare type Props = {
5
+ prng: Prng;
6
+ options: Options;
7
+ };
8
+ export declare function getColors({ prng, options }: Props): ColorPickCollection;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { Prng } from '@dicebear/core';
2
+ import type { Options } from '../options';
3
+ import type { ComponentPickCollection } from '../static-types';
4
+ declare type Props = {
5
+ prng: Prng;
6
+ options: Options;
7
+ };
8
+ export declare function getComponents({ prng, options, }: Props): ComponentPickCollection;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { Prng } from '@dicebear/core';
2
+ import type { ColorPick } from '../static-types';
3
+ declare type Props = {
4
+ prng: Prng;
5
+ group: string;
6
+ values?: string[];
7
+ };
8
+ export declare function pickColor({ prng, group, values }: Props): ColorPick;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { Prng } from '@dicebear/core';
2
+ import type { ComponentPick } from '../static-types';
3
+ declare type Props = {
4
+ prng: Prng;
5
+ group: string;
6
+ values?: string[];
7
+ };
8
+ export declare function pickComponent({ prng, group, values, }: Props): ComponentPick;
9
+ export {};
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@dicebear/avataaars-neutral",
3
+ "version": "5.0.0-alpha.0",
4
+ "description": "Avatar style for DiceBear",
5
+ "keywords": [
6
+ "dicebear"
7
+ ],
8
+ "bugs": {
9
+ "url": "https://github.com/dicebear/dicebear/issues"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/dicebear/dicebear.git"
14
+ },
15
+ "license": "MIT",
16
+ "source": "src/index.ts",
17
+ "main": "dist/index.js",
18
+ "module": "dist/index.es.js",
19
+ "browser": "dist/index.umd.js",
20
+ "types": "dist/index.d.ts",
21
+ "files": [
22
+ "LICENSE",
23
+ "README.md",
24
+ "dist"
25
+ ],
26
+ "scripts": {
27
+ "test": "jest",
28
+ "prepublishOnly": "npm run build",
29
+ "prebuild": "shx rm -rf dist",
30
+ "build": "dicebear-project build DiceBear.AvataaarsNeutral"
31
+ },
32
+ "devDependencies": {
33
+ "@dicebear/core": "^5.0.0-alpha.0",
34
+ "@tsconfig/recommended": "^1.0.0",
35
+ "@types/jest": "^26.0.22",
36
+ "@types/node": "^10.11.6",
37
+ "dicebear-project": "^5.0.0-alpha.0",
38
+ "jest": "^26.6.3",
39
+ "shx": "^0.3.3",
40
+ "ts-jest": "^26.5.4",
41
+ "typescript": "^4.2.3",
42
+ "utility-types": "^3.10.0"
43
+ },
44
+ "peerDependencies": {
45
+ "@dicebear/core": "^5.0.0"
46
+ },
47
+ "publishConfig": {
48
+ "access": "public"
49
+ },
50
+ "gitHead": "842f2a824d473dc87a637100f3375cc94db2787d"
51
+ }