@dicebear/avataaars-neutral 5.0.0-alpha.9 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/lib/components/eyebrows.d.ts +8 -0
- package/lib/components/eyebrows.js +21 -0
- package/lib/components/eyes.d.ts +8 -0
- package/lib/components/eyes.js +20 -0
- package/lib/components/index.d.ts +10 -0
- package/lib/components/index.js +10 -0
- package/lib/components/mouth.d.ts +8 -0
- package/lib/components/mouth.js +20 -0
- package/lib/components/nose.d.ts +8 -0
- package/lib/components/nose.js +9 -0
- package/lib/core.d.ts +9 -0
- package/lib/core.js +39 -0
- package/lib/hooks/onPostCreate.d.ts +16 -0
- package/lib/hooks/onPostCreate.js +9 -0
- package/lib/hooks/onPreCreate.d.ts +14 -0
- package/lib/hooks/onPreCreate.js +9 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +20 -0
- package/lib/schema.d.ts +8 -0
- package/lib/schema.js +143 -0
- package/lib/types.d.ts +22 -0
- package/lib/types.js +7 -0
- package/lib/utils/getColors.d.ts +14 -0
- package/lib/utils/getColors.js +10 -0
- package/lib/utils/getComponents.d.ts +14 -0
- package/lib/utils/getComponents.js +36 -0
- package/lib/utils/pickComponent.d.ts +15 -0
- package/lib/utils/pickComponent.js +20 -0
- package/package.json +19 -28
- package/dist/index.d.ts +0 -15
- package/dist/index.d.ts.map +0 -1
- package/dist/index.es.js +0 -319
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -323
- package/dist/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/avataaars-neutral",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-beta.1",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -13,44 +13,35 @@
|
|
|
13
13
|
"url": "git+https://github.com/dicebear/dicebear.git"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"module": "dist/index.es.js",
|
|
20
|
-
"types": "dist/index.d.ts",
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": "./lib/index.js",
|
|
18
|
+
"types": "./lib/index.d.ts",
|
|
21
19
|
"files": [
|
|
22
20
|
"LICENSE",
|
|
23
|
-
"
|
|
24
|
-
"
|
|
21
|
+
"lib",
|
|
22
|
+
"README.md"
|
|
25
23
|
],
|
|
26
24
|
"scripts": {
|
|
27
|
-
"
|
|
25
|
+
"prebuild": "del-cli lib",
|
|
26
|
+
"build": "tsc",
|
|
28
27
|
"prepublishOnly": "npm run build",
|
|
29
|
-
"
|
|
30
|
-
"build": "npm-run-all build:*",
|
|
31
|
-
"build:schema": "json2ts src/schema.json src/options.ts",
|
|
32
|
-
"build:parcel": "parcel build"
|
|
28
|
+
"test": "uvu tests"
|
|
33
29
|
},
|
|
34
30
|
"devDependencies": {
|
|
35
|
-
"@dicebear/core": "^5.0.0-
|
|
36
|
-
"@
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"@types/node": "^10.11.6",
|
|
41
|
-
"jest": "^26.6.3",
|
|
42
|
-
"json-schema-to-typescript": "^10.1.5",
|
|
43
|
-
"npm-run-all": "^4.1.5",
|
|
44
|
-
"parcel": "^2.0.1",
|
|
45
|
-
"shx": "^0.3.3",
|
|
46
|
-
"ts-jest": "^26.5.4",
|
|
47
|
-
"typescript": "^4.5.2"
|
|
31
|
+
"@dicebear/core": "^5.0.0-beta.1",
|
|
32
|
+
"@tsconfig/recommended": "^1.0.1",
|
|
33
|
+
"del-cli": "^4.0.1",
|
|
34
|
+
"typescript": "^4.6.3",
|
|
35
|
+
"uvu": "^0.5.3"
|
|
48
36
|
},
|
|
49
37
|
"peerDependencies": {
|
|
50
|
-
"@dicebear/core": "^5.0.0-alpha.
|
|
38
|
+
"@dicebear/core": "^5.0.0-alpha.32"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": "^14.13.1 || >=16.0.0"
|
|
51
42
|
},
|
|
52
43
|
"publishConfig": {
|
|
53
44
|
"access": "public"
|
|
54
45
|
},
|
|
55
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "c65209e190504abaf8ab2f3903846341476a04ed"
|
|
56
47
|
}
|
package/dist/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
13
|
-
export const 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;
|
|
14
|
-
|
|
15
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AACA;;;;GAIG;AAEH;IACE,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACtC,QAAQ,CAAC,EAAE,CACP,cAAc,GACd,gBAAgB,GAChB,aAAa,GACb,cAAc,GACd,sBAAsB,GACtB,qBAAqB,GACrB,gBAAgB,GAChB,eAAe,GACf,OAAO,GACP,SAAS,GACT,eAAe,GACf,cAAc,GACd,QAAQ,CACX,EAAE,CAAC;IACJ,IAAI,CAAC,EAAE,CACH,QAAQ,GACR,KAAK,GACL,SAAS,GACT,SAAS,GACT,OAAO,GACP,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,WAAW,GACX,WAAW,GACX,MAAM,GACN,QAAQ,CACX,EAAE,CAAC;IACJ,KAAK,CAAC,EAAE,CACJ,WAAW,GACX,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,KAAK,GACL,YAAY,GACZ,SAAS,GACT,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,CACV,EAAE,CAAC;IACJ,IAAI,CAAC,EAAE,SAAS,EAAE,CAAC;CACpB;AiBxCD,OAAA,yPAA+C,CAAC","sources":["packages/@dicebear/avataaars-neutral/src/src/options.ts","packages/@dicebear/avataaars-neutral/src/src/static-types.ts","packages/@dicebear/avataaars-neutral/src/src/components/mouth.ts","packages/@dicebear/avataaars-neutral/src/src/components/nose.ts","packages/@dicebear/avataaars-neutral/src/src/components/eyes.ts","packages/@dicebear/avataaars-neutral/src/src/components/eyebrows.ts","packages/@dicebear/avataaars-neutral/src/src/components/index.ts","packages/@dicebear/avataaars-neutral/src/src/utils/pickComponent.ts","packages/@dicebear/avataaars-neutral/src/src/utils/getComponents.ts","packages/@dicebear/avataaars-neutral/src/src/colors/skin.ts","packages/@dicebear/avataaars-neutral/src/src/colors/index.ts","packages/@dicebear/avataaars-neutral/src/src/utils/pickColor.ts","packages/@dicebear/avataaars-neutral/src/src/utils/getColors.ts","packages/@dicebear/avataaars-neutral/src/src/hooks/onPreCreate.ts","packages/@dicebear/avataaars-neutral/src/src/hooks/onPostCreate.ts","packages/@dicebear/avataaars-neutral/src/src/meta/components.ts","packages/@dicebear/avataaars-neutral/src/src/core.ts","packages/@dicebear/avataaars-neutral/src/src/index.ts","packages/@dicebear/avataaars-neutral/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"/*!\n * Avataaars Neutral (@dicebear/avataaars-neutral)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n *\n * Design \"Avataaars\" by Pablo Stanley licensed under Free for personal and commercial use..\n * Source: https://avataaars.com/\n * License: https://avataaars.com/\n */\n\nimport { style } from './core';\n\nconst { create, preview, meta, schema } = style;\n\nexport { create, preview, meta, schema };\nexport type { Options } from './options';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|
package/dist/index.es.js
DELETED
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
function $parcel$interopDefault(a) {
|
|
2
|
-
return a && a.__esModule ? a.default : a;
|
|
3
|
-
}
|
|
4
|
-
function $parcel$export(e, n, v, s) {
|
|
5
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
|
-
}
|
|
7
|
-
var $db7360e546e6ff70$exports = {};
|
|
8
|
-
$db7360e546e6ff70$exports = JSON.parse("{\"title\":\"Options\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"properties\":{\"backgroundColor\":{\"type\":\"array\",\"uniqueItems\":true,\"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\",\"uniqueItems\":true,\"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\",\"uniqueItems\":true,\"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\",\"uniqueItems\":true,\"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\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]}},\"additionalProperties\":false}");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var $72d9b4595f6f6fe0$exports = {};
|
|
12
|
-
|
|
13
|
-
$parcel$export($72d9b4595f6f6fe0$exports, "mouth", function () { return $10c382380a5641dd$export$4ec1914b3efc3f9a; });
|
|
14
|
-
$parcel$export($72d9b4595f6f6fe0$exports, "nose", function () { return $9bc63dd651dbe080$export$eef569ed4a4faa98; });
|
|
15
|
-
$parcel$export($72d9b4595f6f6fe0$exports, "eyes", function () { return $9581efd55fd4dd84$export$60b896fd2e3e4b2; });
|
|
16
|
-
$parcel$export($72d9b4595f6f6fe0$exports, "eyebrows", function () { return $7c015b0f8ba499f0$export$aebaafc0a0095705; });
|
|
17
|
-
const $10c382380a5641dd$export$4ec1914b3efc3f9a = {
|
|
18
|
-
concerned: (components, colors)=>`<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"/><path d="M69.59 32H38.4a11 11 0 0 1 15.6-6.8A11 11 0 0 1 69.59 32Z" fill="#FF4F6D"/><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"/>`
|
|
19
|
-
,
|
|
20
|
-
default: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M40 15a14 14 0 1 0 28 0" fill="#000" fill-opacity=".7"/>`
|
|
21
|
-
,
|
|
22
|
-
disbelief: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M40 29a14 14 0 1 1 28 0" fill="#000" fill-opacity=".7"/>`
|
|
23
|
-
,
|
|
24
|
-
eating: (components, colors)=>`<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"/><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"/>`
|
|
25
|
-
,
|
|
26
|
-
grimace: (components, colors)=>`<rect x="22" y="7" width="64" height="26" rx="13" fill="#000" fill-opacity=".6"/><rect x="24" y="9" width="60" height="22" rx="11" fill="#fff"/><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"/>`
|
|
27
|
-
,
|
|
28
|
-
sad: (components, colors)=>`<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"/>`
|
|
29
|
-
,
|
|
30
|
-
screamOpen: (components, colors)=>`<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"/><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"/><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"/>`
|
|
31
|
-
,
|
|
32
|
-
serious: (components, colors)=>`<rect x="42" y="18" width="24" height="6" rx="3" fill="#000" fill-opacity=".7"/>`
|
|
33
|
-
,
|
|
34
|
-
smile: (components, colors)=>`<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"/><path d="M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z" fill="#fff"/><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"/>`
|
|
35
|
-
,
|
|
36
|
-
tongue: (components, colors)=>`<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"/><path d="M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z" fill="#fff"/><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"/>`
|
|
37
|
-
,
|
|
38
|
-
twinkle: (components, colors)=>`<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"/>`
|
|
39
|
-
,
|
|
40
|
-
vomit: (components, colors)=>`<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"/><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"/><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"/><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"/>`
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const $9bc63dd651dbe080$export$eef569ed4a4faa98 = {
|
|
45
|
-
default: (components, colors)=>`<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"/>`
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
const $9581efd55fd4dd84$export$60b896fd2e3e4b2 = {
|
|
50
|
-
closed: (components, colors)=>`<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"/>`
|
|
51
|
-
,
|
|
52
|
-
cry: (components, colors)=>`<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"/><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"/>`
|
|
53
|
-
,
|
|
54
|
-
default: (components, colors)=>`<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"/>`
|
|
55
|
-
,
|
|
56
|
-
eyeRoll: (components, colors)=>`<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"/><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"/>`
|
|
57
|
-
,
|
|
58
|
-
happy: (components, colors)=>`<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"/>`
|
|
59
|
-
,
|
|
60
|
-
hearts: (components, colors)=>`<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"/>`
|
|
61
|
-
,
|
|
62
|
-
side: (components, colors)=>`<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"/>`
|
|
63
|
-
,
|
|
64
|
-
squint: (components, colors)=>`<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"/><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"/>`
|
|
65
|
-
,
|
|
66
|
-
surprised: (components, colors)=>`<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"/><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"/>`
|
|
67
|
-
,
|
|
68
|
-
winkWacky: (components, colors)=>`<circle cx="82" cy="22" r="12" fill="#fff"/><circle cx="82" cy="22" r="6" fill="#000" fill-opacity=".7"/><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"/>`
|
|
69
|
-
,
|
|
70
|
-
wink: (components, colors)=>`<g fill="#000" fill-opacity=".6"><path d="M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"/><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"/></g>`
|
|
71
|
-
,
|
|
72
|
-
xDizzy: (components, colors)=>`<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"/>`
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const $7c015b0f8ba499f0$export$aebaafc0a0095705 = {
|
|
77
|
-
angryNatural: (components, colors)=>`<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"/>`
|
|
78
|
-
,
|
|
79
|
-
defaultNatural: (components, colors)=>`<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"/>`
|
|
80
|
-
,
|
|
81
|
-
flatNatural: (components, colors)=>`<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"/>`
|
|
82
|
-
,
|
|
83
|
-
frownNatural: (components, colors)=>`<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"/>`
|
|
84
|
-
,
|
|
85
|
-
raisedExcitedNatural: (components, colors)=>`<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"/>`
|
|
86
|
-
,
|
|
87
|
-
sadConcernedNatural: (components, colors)=>`<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"/>`
|
|
88
|
-
,
|
|
89
|
-
unibrowNatural: (components, colors)=>`<g fill-rule="evenodd" clip-rule="evenodd" fill="#DADADA"><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"/><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"/><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"/></g>`
|
|
90
|
-
,
|
|
91
|
-
upDownNatural: (components, colors)=>`<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"/>`
|
|
92
|
-
,
|
|
93
|
-
angry: (components, colors)=>`<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"/>`
|
|
94
|
-
,
|
|
95
|
-
default: (components, colors)=>`<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"/>`
|
|
96
|
-
,
|
|
97
|
-
raisedExcited: (components, colors)=>`<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"/>`
|
|
98
|
-
,
|
|
99
|
-
sadConcerned: (components, colors)=>`<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"/>`
|
|
100
|
-
,
|
|
101
|
-
upDown: (components, colors)=>`<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"/>`
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
function $ee7a710351c0dcfa$export$5bc6178a9a86ed74({ prng: prng , group: group , values: values = [] }) {
|
|
108
|
-
const componentCollection = $72d9b4595f6f6fe0$exports;
|
|
109
|
-
const key = prng.pick(values);
|
|
110
|
-
if (componentCollection[group][key]) return {
|
|
111
|
-
name: key,
|
|
112
|
-
value: componentCollection[group][key]
|
|
113
|
-
};
|
|
114
|
-
else return undefined;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
function $64d2704a267c51eb$export$4e811121b221213b({ prng: prng , options: options }) {
|
|
119
|
-
const mouthComponent = $ee7a710351c0dcfa$export$5bc6178a9a86ed74({
|
|
120
|
-
prng: prng,
|
|
121
|
-
group: 'mouth',
|
|
122
|
-
values: options.mouth
|
|
123
|
-
});
|
|
124
|
-
const noseComponent = $ee7a710351c0dcfa$export$5bc6178a9a86ed74({
|
|
125
|
-
prng: prng,
|
|
126
|
-
group: 'nose',
|
|
127
|
-
values: options.nose
|
|
128
|
-
});
|
|
129
|
-
const eyesComponent = $ee7a710351c0dcfa$export$5bc6178a9a86ed74({
|
|
130
|
-
prng: prng,
|
|
131
|
-
group: 'eyes',
|
|
132
|
-
values: options.eyes
|
|
133
|
-
});
|
|
134
|
-
const eyebrowsComponent = $ee7a710351c0dcfa$export$5bc6178a9a86ed74({
|
|
135
|
-
prng: prng,
|
|
136
|
-
group: 'eyebrows',
|
|
137
|
-
values: options.eyebrows
|
|
138
|
-
});
|
|
139
|
-
return {
|
|
140
|
-
mouth: mouthComponent,
|
|
141
|
-
nose: noseComponent,
|
|
142
|
-
eyes: eyesComponent,
|
|
143
|
-
eyebrows: eyebrowsComponent
|
|
144
|
-
};
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
var $b87447525944b311$exports = {};
|
|
149
|
-
|
|
150
|
-
$parcel$export($b87447525944b311$exports, "skin", function () { return $6bb50a1b1e6f5981$export$fcdfe9c56b00fbfc; });
|
|
151
|
-
const $6bb50a1b1e6f5981$export$fcdfe9c56b00fbfc = {
|
|
152
|
-
black: 'rgba(97, 67, 53, 1)',
|
|
153
|
-
brown: 'rgba(208, 139, 91, 1)',
|
|
154
|
-
darkBrown: 'rgba(174, 93, 41, 1)',
|
|
155
|
-
light: 'rgba(237, 185, 138, 1)',
|
|
156
|
-
pale: 'rgba(255, 219, 180, 1)',
|
|
157
|
-
tanned: 'rgba(253, 152, 65, 1)',
|
|
158
|
-
yellow: 'rgba(248, 210, 92, 1)'
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
function $f176f5b7165d26f3$export$c6d89e41e42fa994({ prng: prng , group: group , values: values = [] }) {
|
|
165
|
-
const colorCollection = $b87447525944b311$exports;
|
|
166
|
-
if (values.length === 0) values.push('transparent');
|
|
167
|
-
const key = prng.pick(values);
|
|
168
|
-
var _key;
|
|
169
|
-
return {
|
|
170
|
-
name: key,
|
|
171
|
-
value: (_key = colorCollection[group][key]) !== null && _key !== void 0 ? _key : key
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
function $13d11722851876e8$export$6cee60e8aa85e528({ prng: prng , options: options }) {
|
|
177
|
-
return {
|
|
178
|
-
background: $f176f5b7165d26f3$export$c6d89e41e42fa994({
|
|
179
|
-
prng: prng,
|
|
180
|
-
group: 'skin',
|
|
181
|
-
values: options.backgroundColor
|
|
182
|
-
})
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
function $0cc0acf301b082f2$export$19269755e7fb6f76({ prng: prng , options: options , preview: preview }) {
|
|
188
|
-
// Write your modifications here
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
function $6e0dc5f2a760562a$export$2538c3cd8a13189f({ prng: prng , options: options , components: components , colors: colors , preview: preview }) {
|
|
193
|
-
// Write your modifications here
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
const $ccd0e09bec65eeac$export$62ad7b0c781000e9 = {
|
|
198
|
-
mouth: {
|
|
199
|
-
width: 108,
|
|
200
|
-
height: 44
|
|
201
|
-
},
|
|
202
|
-
nose: {
|
|
203
|
-
width: 56,
|
|
204
|
-
height: 24
|
|
205
|
-
},
|
|
206
|
-
eyes: {
|
|
207
|
-
width: 112,
|
|
208
|
-
height: 44
|
|
209
|
-
},
|
|
210
|
-
eyebrows: {
|
|
211
|
-
width: 112,
|
|
212
|
-
height: 24
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
const $5df1fb2755cad54d$export$1d567c320f4763bc = {
|
|
218
|
-
meta: {
|
|
219
|
-
title: 'Avataaars',
|
|
220
|
-
creator: 'Pablo Stanley',
|
|
221
|
-
source: 'https://avataaars.com/',
|
|
222
|
-
license: {
|
|
223
|
-
name: 'Free for personal and commercial use.',
|
|
224
|
-
url: 'https://avataaars.com/'
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
schema: (/*@__PURE__*/$parcel$interopDefault($db7360e546e6ff70$exports)),
|
|
228
|
-
create: ({ prng: prng , options: options })=>{
|
|
229
|
-
var ref, ref1, ref2, ref3;
|
|
230
|
-
$0cc0acf301b082f2$export$19269755e7fb6f76({
|
|
231
|
-
prng: prng,
|
|
232
|
-
options: options,
|
|
233
|
-
preview: false
|
|
234
|
-
});
|
|
235
|
-
const components = $64d2704a267c51eb$export$4e811121b221213b({
|
|
236
|
-
prng: prng,
|
|
237
|
-
options: options
|
|
238
|
-
});
|
|
239
|
-
const colors = $13d11722851876e8$export$6cee60e8aa85e528({
|
|
240
|
-
prng: prng,
|
|
241
|
-
options: options
|
|
242
|
-
});
|
|
243
|
-
$6e0dc5f2a760562a$export$2538c3cd8a13189f({
|
|
244
|
-
prng: prng,
|
|
245
|
-
options: options,
|
|
246
|
-
components: components,
|
|
247
|
-
colors: colors,
|
|
248
|
-
preview: false
|
|
249
|
-
});
|
|
250
|
-
options.backgroundColor = [
|
|
251
|
-
colors.background.value
|
|
252
|
-
];
|
|
253
|
-
var ref4, ref5, ref6, ref7;
|
|
254
|
-
return {
|
|
255
|
-
attributes: {
|
|
256
|
-
viewBox: '0 0 112 112',
|
|
257
|
-
fill: 'none',
|
|
258
|
-
'shape-rendering': 'auto'
|
|
259
|
-
},
|
|
260
|
-
body: `<g transform="translate(2 63)">${(ref4 = (ref = components.mouth) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref4 !== void 0 ? ref4 : ''}</g><g transform="translate(28 51)">${(ref5 = (ref1 = components.nose) === null || ref1 === void 0 ? void 0 : ref1.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}</g><g transform="translate(0 19)">${(ref6 = (ref2 = components.eyes) === null || ref2 === void 0 ? void 0 : ref2.value(components, colors)) !== null && ref6 !== void 0 ? ref6 : ''}</g><g transform="translate(0 11)">${(ref7 = (ref3 = components.eyebrows) === null || ref3 === void 0 ? void 0 : ref3.value(components, colors)) !== null && ref7 !== void 0 ? ref7 : ''}</g>`
|
|
261
|
-
};
|
|
262
|
-
},
|
|
263
|
-
preview: ({ prng: prng , options: options , property: property })=>{
|
|
264
|
-
const componentGroup = property.toString();
|
|
265
|
-
const colorGroup = property.toString().replace(/Color$/, '');
|
|
266
|
-
$0cc0acf301b082f2$export$19269755e7fb6f76({
|
|
267
|
-
prng: prng,
|
|
268
|
-
options: options,
|
|
269
|
-
preview: true
|
|
270
|
-
});
|
|
271
|
-
const components = $64d2704a267c51eb$export$4e811121b221213b({
|
|
272
|
-
prng: prng,
|
|
273
|
-
options: options
|
|
274
|
-
});
|
|
275
|
-
const colors = $13d11722851876e8$export$6cee60e8aa85e528({
|
|
276
|
-
prng: prng,
|
|
277
|
-
options: options
|
|
278
|
-
});
|
|
279
|
-
$6e0dc5f2a760562a$export$2538c3cd8a13189f({
|
|
280
|
-
prng: prng,
|
|
281
|
-
options: options,
|
|
282
|
-
components: components,
|
|
283
|
-
colors: colors,
|
|
284
|
-
preview: true
|
|
285
|
-
});
|
|
286
|
-
options.backgroundColor = [
|
|
287
|
-
colors.background.value
|
|
288
|
-
];
|
|
289
|
-
if (componentGroup in components) {
|
|
290
|
-
var ref;
|
|
291
|
-
const { width: width , height: height } = $ccd0e09bec65eeac$export$62ad7b0c781000e9[componentGroup];
|
|
292
|
-
var ref8;
|
|
293
|
-
return {
|
|
294
|
-
attributes: {
|
|
295
|
-
viewBox: `0 0 ${width} ${height}`,
|
|
296
|
-
fill: 'none',
|
|
297
|
-
'shape-rendering': 'auto'
|
|
298
|
-
},
|
|
299
|
-
body: (ref8 = (ref = components[componentGroup]) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref8 !== void 0 ? ref8 : ''
|
|
300
|
-
};
|
|
301
|
-
}
|
|
302
|
-
if (colorGroup in colors) return {
|
|
303
|
-
attributes: {
|
|
304
|
-
viewBox: `0 0 1 1`,
|
|
305
|
-
fill: 'none',
|
|
306
|
-
'shape-rendering': 'auto'
|
|
307
|
-
},
|
|
308
|
-
body: `<rect width="1" height="1" fill="${colors[colorGroup].value}" />`
|
|
309
|
-
};
|
|
310
|
-
return undefined;
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
const { create: $5acc41a1c56f2244$export$185802fd694ee1f5 , preview: $5acc41a1c56f2244$export$48c2d0f2f545ac27 , meta: $5acc41a1c56f2244$export$6990040ee07315 , schema: $5acc41a1c56f2244$export$4902baddc787debb } = $5df1fb2755cad54d$export$1d567c320f4763bc;
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
export {$5acc41a1c56f2244$export$185802fd694ee1f5 as create, $5acc41a1c56f2244$export$48c2d0f2f545ac27 as preview, $5acc41a1c56f2244$export$6990040ee07315 as meta, $5acc41a1c56f2244$export$4902baddc787debb as schema};
|
|
319
|
-
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":";;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAy3D;;;;;;;;;AIM94D,KAAK,CAAC,yCAAK,GAAmB,CAAC;IACpC,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,oYAAoY;;IACvY,OAAO,GAAG,UAAmC,EAAE,MAA2B,IACvE,yGAAyG;;IAC5G,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,yGAAyG;;IAC5G,MAAM,GAAG,UAAmC,EAAE,MAA2B,IACtE,mjBAAmjB;;IACtjB,OAAO,GAAG,UAAmC,EAAE,MAA2B,IACvE,2YAA2Y;;IAC9Y,GAAG,GAAG,UAAmC,EAAE,MAA2B,IACnE,yPAAyP;;IAC5P,UAAU,GACR,UAAmC,EACnC,MAA2B,IAE1B,kjBAAkjB;;IACrjB,OAAO,GAAG,UAAmC,EAAE,MAA2B,IACvE,gFAAgF;;IACnF,KAAK,GAAG,UAAmC,EAAE,MAA2B,IACrE,iYAAiY;;IACpY,MAAM,GAAG,UAAmC,EAAE,MAA2B,IACtE,udAAud;;IAC1d,OAAO,GAAG,UAAmC,EAAE,MAA2B,IACvE,oMAAoM;;IACvM,KAAK,GAAG,UAAmC,EAAE,MAA2B,IACrE,0nBAA0nB;AAC/nB,CAAC;;;AClCM,KAAK,CAAC,yCAAI,GAAmB,CAAC;IACnC,OAAO,GAAG,UAAmC,EAAE,MAA2B,I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,CAAC,cAAc,eAAzB,GAA0B,KAA1B,IAAI,CAAJ,CAAiC,GAAjC,IAAI,CAAJ,CAAiC,GAAjC,GAA0B,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAApD,IAAqD,cAArD,IAAqD,GAAI,CAAE;YACnE,CAAC;QACH,CAAC;QAED,EAAE,EAAE,UAAU,IAAI,MAAM,EACtB,MAAM,CAAC,CAAC;YACN,UAAU,EAAE,CAAC;gBACX,OAAO,GAAG,OAAO;gBACjB,IAAI,EAAE,CAAM;gBACZ,CAAiB,kBAAE,CAAM;YAC3B,CAAC;YACD,IAAI,GAAG,iCAAiC,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,IAAI;QACzE,CAAC;QAGH,MAAM,CAAC,SAAS;IAClB,CAAC;AACH,CAAC;;;AD1ED,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/avataaars-neutral/src/index.ts","packages/@dicebear/avataaars-neutral/src/core.ts","packages/@dicebear/avataaars-neutral/src/schema.json","packages/@dicebear/avataaars-neutral/src/utils/getComponents.ts","packages/@dicebear/avataaars-neutral/src/utils/pickComponent.ts","packages/@dicebear/avataaars-neutral/src/components/index.ts","packages/@dicebear/avataaars-neutral/src/components/mouth.ts","packages/@dicebear/avataaars-neutral/src/components/nose.ts","packages/@dicebear/avataaars-neutral/src/components/eyes.ts","packages/@dicebear/avataaars-neutral/src/components/eyebrows.ts","packages/@dicebear/avataaars-neutral/src/utils/getColors.ts","packages/@dicebear/avataaars-neutral/src/utils/pickColor.ts","packages/@dicebear/avataaars-neutral/src/colors/index.ts","packages/@dicebear/avataaars-neutral/src/colors/skin.ts","packages/@dicebear/avataaars-neutral/src/hooks/onPreCreate.ts","packages/@dicebear/avataaars-neutral/src/hooks/onPostCreate.ts","packages/@dicebear/avataaars-neutral/src/meta/components.ts"],"sourcesContent":["/*!\n * Avataaars Neutral (@dicebear/avataaars-neutral)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n *\n * Design \"Avataaars\" by Pablo Stanley licensed under Free for personal and commercial use..\n * Source: https://avataaars.com/\n * License: https://avataaars.com/\n */\n\nimport { style } from './core';\n\nconst { create, preview, meta, schema } = style;\n\nexport { create, preview, meta, schema };\nexport type { Options } from './options';\n","import type { Style, StyleSchema } from '@dicebear/core';\nimport type { Options } from './options';\n\nimport schema from './schema.json';\nimport { getComponents } from './utils/getComponents';\nimport { getColors } from './utils/getColors';\nimport { onPreCreate } from './hooks/onPreCreate';\nimport { onPostCreate } from './hooks/onPostCreate';\nimport { dimensions } from './meta/components';\n\nexport const style: Style<Options> = {\n meta: {\n title: 'Avataaars',\n creator: 'Pablo Stanley',\n source: 'https://avataaars.com/',\n license: {\n name: 'Free for personal and commercial use.',\n url: 'https://avataaars.com/',\n },\n },\n schema: schema as StyleSchema,\n create: ({ prng, options }) => {\n onPreCreate({ prng, options, preview: false });\n\n const components = getComponents({ prng, options });\n const colors = getColors({ prng, options });\n\n onPostCreate({ prng, options, components, colors, preview: false });\n\n options.backgroundColor = [colors.background.value];\n\n return {\n attributes: {\n viewBox: '0 0 112 112',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `<g transform=\"translate(2 63)\">${\n components.mouth?.value(components, colors) ?? ''\n }</g><g transform=\"translate(28 51)\">${\n components.nose?.value(components, colors) ?? ''\n }</g><g transform=\"translate(0 19)\">${\n components.eyes?.value(components, colors) ?? ''\n }</g><g transform=\"translate(0 11)\">${\n components.eyebrows?.value(components, colors) ?? ''\n }</g>`,\n };\n },\n preview: ({ prng, options, property }) => {\n const componentGroup = property.toString();\n const colorGroup = property.toString().replace(/Color$/, '');\n\n onPreCreate({ prng, options, preview: true });\n\n const components = getComponents({ prng, options });\n const colors = getColors({ prng, options });\n\n onPostCreate({ prng, options, components, colors, preview: true });\n\n options.backgroundColor = [colors.background.value];\n\n if (componentGroup in components) {\n const { width, height } = dimensions[componentGroup]!;\n\n return {\n attributes: {\n viewBox: `0 0 ${width} ${height}`,\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: components[componentGroup]?.value(components, colors) ?? '',\n };\n }\n\n if (colorGroup in colors) {\n return {\n attributes: {\n viewBox: `0 0 1 1`,\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `<rect width=\"1\" height=\"1\" fill=\"${colors[colorGroup].value}\" />`,\n };\n }\n\n return undefined;\n },\n};\n","{\n \"title\": \"Options\",\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"properties\": {\n \"backgroundColor\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\",\n \"pattern\": \"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"\n },\n { \"type\": \"string\", \"pattern\": \"^[0-9a-zA-Z]+$\" }\n ]\n },\n \"default\": [\n \"black\",\n \"brown\",\n \"darkBrown\",\n \"light\",\n \"pale\",\n \"tanned\",\n \"yellow\"\n ]\n },\n \"eyebrows\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"angryNatural\",\n \"defaultNatural\",\n \"flatNatural\",\n \"frownNatural\",\n \"raisedExcitedNatural\",\n \"sadConcernedNatural\",\n \"unibrowNatural\",\n \"upDownNatural\",\n \"angry\",\n \"default\",\n \"raisedExcited\",\n \"sadConcerned\",\n \"upDown\"\n ]\n },\n \"default\": [\n \"angryNatural\",\n \"defaultNatural\",\n \"flatNatural\",\n \"frownNatural\",\n \"raisedExcitedNatural\",\n \"sadConcernedNatural\",\n \"unibrowNatural\",\n \"upDownNatural\",\n \"angry\",\n \"default\",\n \"raisedExcited\",\n \"sadConcerned\",\n \"upDown\"\n ]\n },\n \"eyes\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"closed\",\n \"cry\",\n \"default\",\n \"eyeRoll\",\n \"happy\",\n \"hearts\",\n \"side\",\n \"squint\",\n \"surprised\",\n \"winkWacky\",\n \"wink\",\n \"xDizzy\"\n ]\n },\n \"default\": [\n \"closed\",\n \"cry\",\n \"default\",\n \"eyeRoll\",\n \"happy\",\n \"hearts\",\n \"side\",\n \"squint\",\n \"surprised\",\n \"winkWacky\",\n \"wink\",\n \"xDizzy\"\n ]\n },\n \"mouth\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"concerned\",\n \"default\",\n \"disbelief\",\n \"eating\",\n \"grimace\",\n \"sad\",\n \"screamOpen\",\n \"serious\",\n \"smile\",\n \"tongue\",\n \"twinkle\",\n \"vomit\"\n ]\n },\n \"default\": [\n \"concerned\",\n \"default\",\n \"disbelief\",\n \"eating\",\n \"grimace\",\n \"sad\",\n \"screamOpen\",\n \"serious\",\n \"smile\",\n \"tongue\",\n \"twinkle\",\n \"vomit\"\n ]\n },\n \"nose\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n }\n },\n \"additionalProperties\": false\n}\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ComponentPickCollection } from '../static-types';\nimport { pickComponent } from './pickComponent';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getComponents({\n prng,\n options,\n}: Props): ComponentPickCollection {\n const mouthComponent = pickComponent({\n prng,\n group: 'mouth',\n values: options.mouth,\n });\n const noseComponent = pickComponent({\n prng,\n group: 'nose',\n values: options.nose,\n });\n const eyesComponent = pickComponent({\n prng,\n group: 'eyes',\n values: options.eyes,\n });\n const eyebrowsComponent = pickComponent({\n prng,\n group: 'eyebrows',\n values: options.eyebrows,\n });\n\n return {\n mouth: mouthComponent,\n nose: noseComponent,\n eyes: eyesComponent,\n eyebrows: eyebrowsComponent,\n };\n}\n","import type { Prng } from '@dicebear/core';\nimport type { ComponentGroupCollection, ComponentPick } from '../static-types';\nimport * as components from '../components';\n\ntype Props = {\n prng: Prng;\n group: string;\n values?: string[];\n};\n\nexport function pickComponent({\n prng,\n group,\n values = [],\n}: Props): ComponentPick {\n const componentCollection: ComponentGroupCollection = components;\n\n const key = prng.pick(values);\n\n if (componentCollection[group][key]) {\n return {\n name: key,\n value: componentCollection[group][key],\n };\n } else {\n return undefined;\n }\n}\n","export { mouth } from './mouth';\nexport { nose } from './nose';\nexport { eyes } from './eyes';\nexport { eyebrows } from './eyebrows';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const mouth: ComponentGroup = {\n concerned: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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\"/><path d=\"M69.59 32H38.4a11 11 0 0 1 15.6-6.8A11 11 0 0 1 69.59 32Z\" fill=\"#FF4F6D\"/><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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M40 15a14 14 0 1 0 28 0\" fill=\"#000\" fill-opacity=\".7\"/>`,\n disbelief: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M40 29a14 14 0 1 1 28 0\" fill=\"#000\" fill-opacity=\".7\"/>`,\n eating: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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\"/><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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<rect x=\"22\" y=\"7\" width=\"64\" height=\"26\" rx=\"13\" fill=\"#000\" fill-opacity=\".6\"/><rect x=\"24\" y=\"9\" width=\"60\" height=\"22\" rx=\"11\" fill=\"#fff\"/><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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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\"/><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\"/><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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<rect x=\"42\" y=\"18\" width=\"24\" height=\"6\" rx=\"3\" fill=\"#000\" fill-opacity=\".7\"/>`,\n smile: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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\"/><path d=\"M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z\" fill=\"#fff\"/><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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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\"/><path d=\"M70 13H39a5 5 0 0 0 5 5h21a5 5 0 0 0 5-5Z\" fill=\"#fff\"/><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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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\"/><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\"/><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\"/><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};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const nose: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyes: ComponentGroup = {\n closed: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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\"/><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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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\"/><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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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\"/><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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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\"/><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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<circle cx=\"82\" cy=\"22\" r=\"12\" fill=\"#fff\"/><circle cx=\"82\" cy=\"22\" r=\"6\" fill=\"#000\" fill-opacity=\".7\"/><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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g fill=\"#000\" fill-opacity=\".6\"><path d=\"M36 22a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z\"/><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\"/></g>`,\n xDizzy: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyebrows: ComponentGroup = {\n angryNatural: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\" fill=\"#DADADA\"><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\"/><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\"/><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\"/></g>`,\n upDownNatural: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\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: (components: ComponentPickCollection, colors: ColorPickCollection) =>\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};\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ColorPickCollection } from '../static-types';\nimport { pickColor } from './pickColor';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getColors({ prng, options }: Props): ColorPickCollection {\n return {\n background: pickColor({\n prng,\n group: 'skin',\n values: options.backgroundColor,\n }),\n };\n}\n","import type { Prng } from '@dicebear/core';\nimport type { ColorGroupCollection, ColorPick } from '../static-types';\nimport * as colors from '../colors';\n\ntype Props = {\n prng: Prng;\n group: string;\n values?: string[];\n};\n\nexport function pickColor({ prng, group, values = [] }: Props): ColorPick {\n const colorCollection: ColorGroupCollection = colors;\n\n if (values.length === 0) {\n values.push('transparent');\n }\n\n const key = prng.pick(values);\n\n return {\n name: key,\n value: colorCollection[group][key] ?? key,\n };\n}\n","export { skin } from './skin';\n","import type { ColorGroup } from '../static-types';\n\nexport const skin: ColorGroup = {\n black: 'rgba(97, 67, 53, 1)',\n brown: 'rgba(208, 139, 91, 1)',\n darkBrown: 'rgba(174, 93, 41, 1)',\n light: 'rgba(237, 185, 138, 1)',\n pale: 'rgba(255, 219, 180, 1)',\n tanned: 'rgba(253, 152, 65, 1)',\n yellow: 'rgba(248, 210, 92, 1)',\n};\n","import { Prng, StyleOptions } from '@dicebear/core';\n\nimport { Options } from '../options';\n\ntype Props = { prng: Prng; options: StyleOptions<Options>; preview: boolean };\n\nexport function onPreCreate({ prng, options, preview }: Props) {\n // Write your modifications here\n}\n","import { Prng, StyleOptions } from '@dicebear/core';\n\nimport { Options } from '../options';\nimport { ColorPickCollection, ComponentPickCollection } from '../static-types';\n\ntype Props = {\n prng: Prng;\n options: StyleOptions<Options>;\n components: ComponentPickCollection;\n colors: ColorPickCollection;\n preview: boolean;\n};\n\nexport function onPostCreate({\n prng,\n options,\n components,\n colors,\n preview,\n}: Props) {\n // Write your modifications here\n}\n","export const dimensions: Record<string, { width: number; height: number }> = {\n mouth: {\n width: 108,\n height: 44,\n },\n nose: {\n width: 56,\n height: 24,\n },\n eyes: {\n width: 112,\n height: 44,\n },\n eyebrows: {\n width: 112,\n height: 24,\n },\n};\n"],"names":[],"version":3,"file":"index.es.js.map"}
|