@dicebear/pixel-art-neutral 5.0.0-alpha.8 → 5.0.0-alpha.9
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/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ function $parcel$export(e, n, v, s) {
|
|
|
5
5
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
6
|
}
|
|
7
7
|
var $1145e09e10517965$exports = {};
|
|
8
|
-
$1145e09e10517965$exports = JSON.parse("{\"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\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\"]},\"eyebrows\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"eyes\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"glasses\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"glassesColor\":{\"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\",\"enum\":[\"green01\",\"blue01\",\"red01\",\"black01\",\"black02\",\"black03\"]}]},\"default\":[\"green01\",\"blue01\",\"red01\",\"black01\",\"black02\",\"black03\"]},\"glassesProbability\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":100,\"default\":20},\"hairColor\":{\"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\",\"enum\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\",\"variant09\",\"variant10\"]}]},\"default\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\",\"variant09\",\"variant10\"]},\"mouth\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"surprised03\",\"surprised02\",\"happy09\",\"happy08\",\"happy07\",\"happy06\",\"happy05\",\"happy04\",\"happy03\",\"happy02\",\"happy01\",\"sad08\",\"sad07\",\"sad06\",\"sad05\",\"sad04\",\"sad03\",\"sad02\",\"sad01\",\"surprised01\"]},\"default\":[\"surprised03\",\"surprised02\",\"happy09\",\"happy08\",\"happy07\",\"happy06\",\"happy05\",\"happy04\",\"happy03\",\"happy02\",\"happy01\",\"sad08\",\"sad07\",\"sad06\",\"sad05\",\"sad04\",\"sad03\",\"sad02\",\"sad01\",\"surprised01\"]},\"mouthColor\":{\"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\",\"enum\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\"]}]},\"default\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\"]}},\"additionalProperties\":false}");
|
|
8
|
+
$1145e09e10517965$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\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\"]},\"eyebrows\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"eyes\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"glasses\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"glassesColor\":{\"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\",\"enum\":[\"green01\",\"blue01\",\"red01\",\"black01\",\"black02\",\"black03\"]}]},\"default\":[\"green01\",\"blue01\",\"red01\",\"black01\",\"black02\",\"black03\"]},\"glassesProbability\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":100,\"default\":20},\"hairColor\":{\"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\",\"enum\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\",\"variant09\",\"variant10\"]}]},\"default\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\",\"variant09\",\"variant10\"]},\"mouth\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"surprised03\",\"surprised02\",\"happy09\",\"happy08\",\"happy07\",\"happy06\",\"happy05\",\"happy04\",\"happy03\",\"happy02\",\"happy01\",\"sad08\",\"sad07\",\"sad06\",\"sad05\",\"sad04\",\"sad03\",\"sad02\",\"sad01\",\"surprised01\"]},\"default\":[\"surprised03\",\"surprised02\",\"happy09\",\"happy08\",\"happy07\",\"happy06\",\"happy05\",\"happy04\",\"happy03\",\"happy02\",\"happy01\",\"sad08\",\"sad07\",\"sad06\",\"sad05\",\"sad04\",\"sad03\",\"sad02\",\"sad01\",\"surprised01\"]},\"mouthColor\":{\"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\",\"enum\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\"]}]},\"default\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\"]}},\"additionalProperties\":false}");
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var $64d77018b4c5202a$exports = {};
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAw5G;;;;;;;;;AIM76G,KAAK,CAAC,wCAAI,GAAmB,CAAC;IACnC,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,6JAA6J;;IAChK,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,4QAA4Q;;IAC/Q,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ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AE,EAAE,cAAc,IAAI,UAAU,EAAE,CAAC;gBASzB,GAA0B;YARlC,KAAK,CAAC,CAAC,QAAC,KAAK,WAAE,MAAM,EAAC,CAAC,GAAG,yCAAU,CAAC,cAAc;gBAQ3C,IAAqD;YAN7D,MAAM,CAAC,CAAC;gBACN,UAAU,EAAE,CAAC;oBACX,OAAO,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,MAAM;oBAC/B,IAAI,EAAE,CAAM;oBACZ,CAAiB,kBAAE,CAAM;gBAC3B,CAAC;gBACD,IAAI,GAAE,IAAqD,IAArD,GAA0B,GAA1B,UAAU,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;;;ADzED,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/pixel-art-neutral/src/index.ts","packages/@dicebear/pixel-art-neutral/src/core.ts","packages/@dicebear/pixel-art-neutral/src/schema.json","packages/@dicebear/pixel-art-neutral/src/utils/getComponents.ts","packages/@dicebear/pixel-art-neutral/src/utils/pickComponent.ts","packages/@dicebear/pixel-art-neutral/src/components/index.ts","packages/@dicebear/pixel-art-neutral/src/components/eyes.ts","packages/@dicebear/pixel-art-neutral/src/components/eyebrows.ts","packages/@dicebear/pixel-art-neutral/src/components/mouth.ts","packages/@dicebear/pixel-art-neutral/src/components/glasses.ts","packages/@dicebear/pixel-art-neutral/src/utils/getColors.ts","packages/@dicebear/pixel-art-neutral/src/utils/pickColor.ts","packages/@dicebear/pixel-art-neutral/src/colors/index.ts","packages/@dicebear/pixel-art-neutral/src/colors/skin.ts","packages/@dicebear/pixel-art-neutral/src/colors/hair.ts","packages/@dicebear/pixel-art-neutral/src/colors/mouth.ts","packages/@dicebear/pixel-art-neutral/src/colors/glasses.ts","packages/@dicebear/pixel-art-neutral/src/hooks/onPreCreate.ts","packages/@dicebear/pixel-art-neutral/src/hooks/onPostCreate.ts","packages/@dicebear/pixel-art-neutral/src/meta/components.ts"],"sourcesContent":["/*!\n * Pixel Art - Neutral (@dicebear/pixel-art-neutral)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n * Copyright (c) 2021 Plastic Jam\n *\n * Design \"Pixel Art - Neutral\" by Plastic Jam licensed under MIT.\n * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE\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: 'Pixel Art - Neutral',\n creator: 'Plastic Jam',\n license: {\n name: 'MIT',\n url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE',\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 14 14',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `<g transform=\"translate(-3 -3)\">${\n components.eyes?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -3)\">${\n components.eyebrows?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -2)\">${\n components.mouth?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -3)\">${\n components.glasses?.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 \"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 \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\"\n ]\n },\n \"eyebrows\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"eyes\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"glasses\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"glassesColor\": {\n \"type\": \"array\",\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 {\n \"type\": \"string\",\n \"enum\": [\n \"green01\",\n \"blue01\",\n \"red01\",\n \"black01\",\n \"black02\",\n \"black03\"\n ]\n }\n ]\n },\n \"default\": [\"green01\", \"blue01\", \"red01\", \"black01\", \"black02\", \"black03\"]\n },\n \"glassesProbability\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"maximum\": 100,\n \"default\": 20\n },\n \"hairColor\": {\n \"type\": \"array\",\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 {\n \"type\": \"string\",\n \"enum\": [\n \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\",\n \"variant09\",\n \"variant10\"\n ]\n }\n ]\n },\n \"default\": [\n \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\",\n \"variant09\",\n \"variant10\"\n ]\n },\n \"mouth\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"surprised03\",\n \"surprised02\",\n \"happy09\",\n \"happy08\",\n \"happy07\",\n \"happy06\",\n \"happy05\",\n \"happy04\",\n \"happy03\",\n \"happy02\",\n \"happy01\",\n \"sad08\",\n \"sad07\",\n \"sad06\",\n \"sad05\",\n \"sad04\",\n \"sad03\",\n \"sad02\",\n \"sad01\",\n \"surprised01\"\n ]\n },\n \"default\": [\n \"surprised03\",\n \"surprised02\",\n \"happy09\",\n \"happy08\",\n \"happy07\",\n \"happy06\",\n \"happy05\",\n \"happy04\",\n \"happy03\",\n \"happy02\",\n \"happy01\",\n \"sad08\",\n \"sad07\",\n \"sad06\",\n \"sad05\",\n \"sad04\",\n \"sad03\",\n \"sad02\",\n \"sad01\",\n \"surprised01\"\n ]\n },\n \"mouthColor\": {\n \"type\": \"array\",\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 {\n \"type\": \"string\",\n \"enum\": [\"variant01\", \"variant02\", \"variant03\", \"variant04\"]\n }\n ]\n },\n \"default\": [\"variant01\", \"variant02\", \"variant03\", \"variant04\"]\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 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 const mouthComponent = pickComponent({\n prng,\n group: 'mouth',\n values: options.mouth,\n });\n const glassesComponent = pickComponent({\n prng,\n group: 'glasses',\n values: options.glasses,\n });\n\n return {\n eyes: eyesComponent,\n eyebrows: eyebrowsComponent,\n mouth: mouthComponent,\n glasses: prng.bool(options.glassesProbability)\n ? glassesComponent\n : undefined,\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 { eyes } from './eyes';\nexport { eyebrows } from './eyebrows';\nexport { mouth } from './mouth';\nexport { glasses } from './glasses';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyes: ComponentGroup = {\n variant13: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant12: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/></g>`,\n variant11: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant10: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant09: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant08: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/><path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/><path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/><path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/><path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/><path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/><path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/><path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyebrows: ComponentGroup = {\n variant13: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"${colors.hair.value}\"/><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant12: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant11: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant10: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant09: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"${colors.hair.value}\"/><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant08: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"${colors.hair.value}\"/><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"${colors.hair.value}\"/><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const mouth: ComponentGroup = {\n surprised03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M9 12v2h2v-2H9Z\" fill=\"${colors.mouth.value}\"/>`,\n surprised02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M9 13v1h1v-1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n happy09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"${colors.mouth.value}\"/>`,\n happy08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"${colors.mouth.value}\"/>`,\n happy07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"${colors.mouth.value}\"/><path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\n happy05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n happy03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>`,\n happy01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\n sad08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n sad07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"${colors.mouth.value}\"/>`,\n sad06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12h3v1H8v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12h4v1H8v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12h2v1H9v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n sad02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n sad01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"${colors.mouth.value}\"/>`,\n surprised01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const glasses: ComponentGroup = {\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"${colors.glasses.value}\"/><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/><path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"${colors.glasses.value}\"/><path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"${colors.glasses.value}\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\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 hair: pickColor({\n prng,\n group: 'hair',\n values: options.hairColor,\n }),\n mouth: pickColor({\n prng,\n group: 'mouth',\n values: options.mouthColor,\n }),\n glasses: pickColor({\n prng,\n group: 'glasses',\n values: options.glassesColor,\n }),\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';\nexport { hair } from './hair';\nexport { mouth } from './mouth';\nexport { glasses } from './glasses';\n","import type { ColorGroup } from '../static-types';\n\nexport const skin: ColorGroup = {\n variant01: 'rgba(255, 219, 172, 1)',\n variant02: 'rgba(245, 207, 160, 1)',\n variant03: 'rgba(234, 195, 147, 1)',\n variant04: 'rgba(224, 182, 135, 1)',\n variant05: 'rgba(203, 158, 110, 1)',\n variant06: 'rgba(182, 134, 85, 1)',\n variant07: 'rgba(162, 109, 61, 1)',\n variant08: 'rgba(141, 85, 36, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const hair: ColorGroup = {\n variant01: 'rgba(202, 177, 136, 1)',\n variant02: 'rgba(167, 137, 97, 1)',\n variant03: 'rgba(131, 98, 59, 1)',\n variant04: 'rgba(96, 58, 20, 1)',\n variant05: 'rgba(96, 48, 21, 1)',\n variant06: 'rgba(97, 38, 22, 1)',\n variant07: 'rgba(97, 28, 23, 1)',\n variant08: 'rgba(78, 26, 19, 1)',\n variant09: 'rgba(59, 23, 14, 1)',\n variant10: 'rgba(40, 21, 10, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const mouth: ColorGroup = {\n variant01: 'rgba(210, 153, 133, 1)',\n variant02: 'rgba(201, 130, 118, 1)',\n variant03: 'rgba(227, 93, 106, 1)',\n variant04: 'rgba(222, 15, 13, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const glasses: ColorGroup = {\n green01: 'rgba(95, 112, 92, 1)',\n blue01: 'rgba(67, 103, 125, 1)',\n red01: 'rgba(160, 75, 93, 1)',\n black01: 'rgba(75, 75, 75, 1)',\n black02: 'rgba(50, 50, 50, 1)',\n black03: 'rgba(25, 25, 25, 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 eyes: {\n width: 20,\n height: 20,\n },\n eyebrows: {\n width: 20,\n height: 20,\n },\n mouth: {\n width: 20,\n height: 20,\n },\n glasses: {\n width: 20,\n height: 20,\n },\n};\n"],"names":[],"version":3,"file":"index.es.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAgkH;;;;;;;;;AIMrlH,KAAK,CAAC,wCAAI,GAAmB,CAAC;IACnC,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IAC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AC;QAGH,MAAM,CAAC,SAAS;IAClB,CAAC;AACH,CAAC;;;ADzED,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/pixel-art-neutral/src/index.ts","packages/@dicebear/pixel-art-neutral/src/core.ts","packages/@dicebear/pixel-art-neutral/src/schema.json","packages/@dicebear/pixel-art-neutral/src/utils/getComponents.ts","packages/@dicebear/pixel-art-neutral/src/utils/pickComponent.ts","packages/@dicebear/pixel-art-neutral/src/components/index.ts","packages/@dicebear/pixel-art-neutral/src/components/eyes.ts","packages/@dicebear/pixel-art-neutral/src/components/eyebrows.ts","packages/@dicebear/pixel-art-neutral/src/components/mouth.ts","packages/@dicebear/pixel-art-neutral/src/components/glasses.ts","packages/@dicebear/pixel-art-neutral/src/utils/getColors.ts","packages/@dicebear/pixel-art-neutral/src/utils/pickColor.ts","packages/@dicebear/pixel-art-neutral/src/colors/index.ts","packages/@dicebear/pixel-art-neutral/src/colors/skin.ts","packages/@dicebear/pixel-art-neutral/src/colors/hair.ts","packages/@dicebear/pixel-art-neutral/src/colors/mouth.ts","packages/@dicebear/pixel-art-neutral/src/colors/glasses.ts","packages/@dicebear/pixel-art-neutral/src/hooks/onPreCreate.ts","packages/@dicebear/pixel-art-neutral/src/hooks/onPostCreate.ts","packages/@dicebear/pixel-art-neutral/src/meta/components.ts"],"sourcesContent":["/*!\n * Pixel Art - Neutral (@dicebear/pixel-art-neutral)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n * Copyright (c) 2021 Plastic Jam\n *\n * Design \"Pixel Art - Neutral\" by Plastic Jam licensed under MIT.\n * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE\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: 'Pixel Art - Neutral',\n creator: 'Plastic Jam',\n license: {\n name: 'MIT',\n url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE',\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 14 14',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `<g transform=\"translate(-3 -3)\">${\n components.eyes?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -3)\">${\n components.eyebrows?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -2)\">${\n components.mouth?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -3)\">${\n components.glasses?.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 \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\"\n ]\n },\n \"eyebrows\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"eyes\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"glasses\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"glassesColor\": {\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 {\n \"type\": \"string\",\n \"enum\": [\n \"green01\",\n \"blue01\",\n \"red01\",\n \"black01\",\n \"black02\",\n \"black03\"\n ]\n }\n ]\n },\n \"default\": [\"green01\", \"blue01\", \"red01\", \"black01\", \"black02\", \"black03\"]\n },\n \"glassesProbability\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"maximum\": 100,\n \"default\": 20\n },\n \"hairColor\": {\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 {\n \"type\": \"string\",\n \"enum\": [\n \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\",\n \"variant09\",\n \"variant10\"\n ]\n }\n ]\n },\n \"default\": [\n \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\",\n \"variant09\",\n \"variant10\"\n ]\n },\n \"mouth\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"surprised03\",\n \"surprised02\",\n \"happy09\",\n \"happy08\",\n \"happy07\",\n \"happy06\",\n \"happy05\",\n \"happy04\",\n \"happy03\",\n \"happy02\",\n \"happy01\",\n \"sad08\",\n \"sad07\",\n \"sad06\",\n \"sad05\",\n \"sad04\",\n \"sad03\",\n \"sad02\",\n \"sad01\",\n \"surprised01\"\n ]\n },\n \"default\": [\n \"surprised03\",\n \"surprised02\",\n \"happy09\",\n \"happy08\",\n \"happy07\",\n \"happy06\",\n \"happy05\",\n \"happy04\",\n \"happy03\",\n \"happy02\",\n \"happy01\",\n \"sad08\",\n \"sad07\",\n \"sad06\",\n \"sad05\",\n \"sad04\",\n \"sad03\",\n \"sad02\",\n \"sad01\",\n \"surprised01\"\n ]\n },\n \"mouthColor\": {\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 {\n \"type\": \"string\",\n \"enum\": [\"variant01\", \"variant02\", \"variant03\", \"variant04\"]\n }\n ]\n },\n \"default\": [\"variant01\", \"variant02\", \"variant03\", \"variant04\"]\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 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 const mouthComponent = pickComponent({\n prng,\n group: 'mouth',\n values: options.mouth,\n });\n const glassesComponent = pickComponent({\n prng,\n group: 'glasses',\n values: options.glasses,\n });\n\n return {\n eyes: eyesComponent,\n eyebrows: eyebrowsComponent,\n mouth: mouthComponent,\n glasses: prng.bool(options.glassesProbability)\n ? glassesComponent\n : undefined,\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 { eyes } from './eyes';\nexport { eyebrows } from './eyebrows';\nexport { mouth } from './mouth';\nexport { glasses } from './glasses';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyes: ComponentGroup = {\n variant13: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant12: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/></g>`,\n variant11: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant10: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant09: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant08: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/><path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/><path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/><path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/><path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/><path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/><path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/><path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyebrows: ComponentGroup = {\n variant13: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"${colors.hair.value}\"/><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant12: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant11: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant10: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant09: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"${colors.hair.value}\"/><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant08: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"${colors.hair.value}\"/><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"${colors.hair.value}\"/><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const mouth: ComponentGroup = {\n surprised03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M9 12v2h2v-2H9Z\" fill=\"${colors.mouth.value}\"/>`,\n surprised02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M9 13v1h1v-1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n happy09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"${colors.mouth.value}\"/>`,\n happy08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"${colors.mouth.value}\"/>`,\n happy07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"${colors.mouth.value}\"/><path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\n happy05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n happy03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>`,\n happy01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\n sad08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n sad07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"${colors.mouth.value}\"/>`,\n sad06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12h3v1H8v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12h4v1H8v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12h2v1H9v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n sad02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n sad01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"${colors.mouth.value}\"/>`,\n surprised01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const glasses: ComponentGroup = {\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"${colors.glasses.value}\"/><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/><path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"${colors.glasses.value}\"/><path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"${colors.glasses.value}\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\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 hair: pickColor({\n prng,\n group: 'hair',\n values: options.hairColor,\n }),\n mouth: pickColor({\n prng,\n group: 'mouth',\n values: options.mouthColor,\n }),\n glasses: pickColor({\n prng,\n group: 'glasses',\n values: options.glassesColor,\n }),\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';\nexport { hair } from './hair';\nexport { mouth } from './mouth';\nexport { glasses } from './glasses';\n","import type { ColorGroup } from '../static-types';\n\nexport const skin: ColorGroup = {\n variant01: 'rgba(255, 219, 172, 1)',\n variant02: 'rgba(245, 207, 160, 1)',\n variant03: 'rgba(234, 195, 147, 1)',\n variant04: 'rgba(224, 182, 135, 1)',\n variant05: 'rgba(203, 158, 110, 1)',\n variant06: 'rgba(182, 134, 85, 1)',\n variant07: 'rgba(162, 109, 61, 1)',\n variant08: 'rgba(141, 85, 36, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const hair: ColorGroup = {\n variant01: 'rgba(202, 177, 136, 1)',\n variant02: 'rgba(167, 137, 97, 1)',\n variant03: 'rgba(131, 98, 59, 1)',\n variant04: 'rgba(96, 58, 20, 1)',\n variant05: 'rgba(96, 48, 21, 1)',\n variant06: 'rgba(97, 38, 22, 1)',\n variant07: 'rgba(97, 28, 23, 1)',\n variant08: 'rgba(78, 26, 19, 1)',\n variant09: 'rgba(59, 23, 14, 1)',\n variant10: 'rgba(40, 21, 10, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const mouth: ColorGroup = {\n variant01: 'rgba(210, 153, 133, 1)',\n variant02: 'rgba(201, 130, 118, 1)',\n variant03: 'rgba(227, 93, 106, 1)',\n variant04: 'rgba(222, 15, 13, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const glasses: ColorGroup = {\n green01: 'rgba(95, 112, 92, 1)',\n blue01: 'rgba(67, 103, 125, 1)',\n red01: 'rgba(160, 75, 93, 1)',\n black01: 'rgba(75, 75, 75, 1)',\n black02: 'rgba(50, 50, 50, 1)',\n black03: 'rgba(25, 25, 25, 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 eyes: {\n width: 20,\n height: 20,\n },\n eyebrows: {\n width: 20,\n height: 20,\n },\n mouth: {\n width: 20,\n height: 20,\n },\n glasses: {\n width: 20,\n height: 20,\n },\n};\n"],"names":[],"version":3,"file":"index.es.js.map"}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ $parcel$export(module.exports, "preview", function () { return $3401a08dd5a809ba
|
|
|
10
10
|
$parcel$export(module.exports, "meta", function () { return $3401a08dd5a809ba$export$6990040ee07315; });
|
|
11
11
|
$parcel$export(module.exports, "schema", function () { return $3401a08dd5a809ba$export$4902baddc787debb; });
|
|
12
12
|
var $54d39ad2b380e643$exports = {};
|
|
13
|
-
$54d39ad2b380e643$exports = JSON.parse("{\"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\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\"]},\"eyebrows\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"eyes\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"glasses\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"glassesColor\":{\"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\",\"enum\":[\"green01\",\"blue01\",\"red01\",\"black01\",\"black02\",\"black03\"]}]},\"default\":[\"green01\",\"blue01\",\"red01\",\"black01\",\"black02\",\"black03\"]},\"glassesProbability\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":100,\"default\":20},\"hairColor\":{\"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\",\"enum\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\",\"variant09\",\"variant10\"]}]},\"default\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\",\"variant09\",\"variant10\"]},\"mouth\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"surprised03\",\"surprised02\",\"happy09\",\"happy08\",\"happy07\",\"happy06\",\"happy05\",\"happy04\",\"happy03\",\"happy02\",\"happy01\",\"sad08\",\"sad07\",\"sad06\",\"sad05\",\"sad04\",\"sad03\",\"sad02\",\"sad01\",\"surprised01\"]},\"default\":[\"surprised03\",\"surprised02\",\"happy09\",\"happy08\",\"happy07\",\"happy06\",\"happy05\",\"happy04\",\"happy03\",\"happy02\",\"happy01\",\"sad08\",\"sad07\",\"sad06\",\"sad05\",\"sad04\",\"sad03\",\"sad02\",\"sad01\",\"surprised01\"]},\"mouthColor\":{\"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\",\"enum\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\"]}]},\"default\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\"]}},\"additionalProperties\":false}");
|
|
13
|
+
$54d39ad2b380e643$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\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\"]},\"eyebrows\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"eyes\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant13\",\"variant12\",\"variant11\",\"variant10\",\"variant09\",\"variant08\",\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"glasses\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"default\":[\"variant07\",\"variant06\",\"variant05\",\"variant04\",\"variant03\",\"variant02\",\"variant01\"]},\"glassesColor\":{\"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\",\"enum\":[\"green01\",\"blue01\",\"red01\",\"black01\",\"black02\",\"black03\"]}]},\"default\":[\"green01\",\"blue01\",\"red01\",\"black01\",\"black02\",\"black03\"]},\"glassesProbability\":{\"type\":\"integer\",\"minimum\":0,\"maximum\":100,\"default\":20},\"hairColor\":{\"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\",\"enum\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\",\"variant09\",\"variant10\"]}]},\"default\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\",\"variant05\",\"variant06\",\"variant07\",\"variant08\",\"variant09\",\"variant10\"]},\"mouth\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"surprised03\",\"surprised02\",\"happy09\",\"happy08\",\"happy07\",\"happy06\",\"happy05\",\"happy04\",\"happy03\",\"happy02\",\"happy01\",\"sad08\",\"sad07\",\"sad06\",\"sad05\",\"sad04\",\"sad03\",\"sad02\",\"sad01\",\"surprised01\"]},\"default\":[\"surprised03\",\"surprised02\",\"happy09\",\"happy08\",\"happy07\",\"happy06\",\"happy05\",\"happy04\",\"happy03\",\"happy02\",\"happy01\",\"sad08\",\"sad07\",\"sad06\",\"sad05\",\"sad04\",\"sad03\",\"sad02\",\"sad01\",\"surprised01\"]},\"mouthColor\":{\"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\",\"enum\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\"]}]},\"default\":[\"variant01\",\"variant02\",\"variant03\",\"variant04\"]}},\"additionalProperties\":false}");
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var $b749b0cbbada1f11$exports = {};
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAw5G;;;;;;;;;AIM76G,KAAK,CAAC,wCAAI,GAAmB,CAAC;IACnC,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,6JAA6J;;IAChK,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC,EACnC,MAA2B,IAE1B,qJAAqJ;;IACxJ,SAAS,GACP,UAAmC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src/schema.json","packages/@dicebear/pixel-art-neutral/src/utils/getComponents.ts","packages/@dicebear/pixel-art-neutral/src/utils/pickComponent.ts","packages/@dicebear/pixel-art-neutral/src/components/index.ts","packages/@dicebear/pixel-art-neutral/src/components/eyes.ts","packages/@dicebear/pixel-art-neutral/src/components/eyebrows.ts","packages/@dicebear/pixel-art-neutral/src/components/mouth.ts","packages/@dicebear/pixel-art-neutral/src/components/glasses.ts","packages/@dicebear/pixel-art-neutral/src/utils/getColors.ts","packages/@dicebear/pixel-art-neutral/src/utils/pickColor.ts","packages/@dicebear/pixel-art-neutral/src/colors/index.ts","packages/@dicebear/pixel-art-neutral/src/colors/skin.ts","packages/@dicebear/pixel-art-neutral/src/colors/hair.ts","packages/@dicebear/pixel-art-neutral/src/colors/mouth.ts","packages/@dicebear/pixel-art-neutral/src/colors/glasses.ts","packages/@dicebear/pixel-art-neutral/src/hooks/onPreCreate.ts","packages/@dicebear/pixel-art-neutral/src/hooks/onPostCreate.ts","packages/@dicebear/pixel-art-neutral/src/meta/components.ts"],"sourcesContent":["/*!\n * Pixel Art - Neutral (@dicebear/pixel-art-neutral)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n * Copyright (c) 2021 Plastic Jam\n *\n * Design \"Pixel Art - Neutral\" by Plastic Jam licensed under MIT.\n * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE\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: 'Pixel Art - Neutral',\n creator: 'Plastic Jam',\n license: {\n name: 'MIT',\n url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE',\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 14 14',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `<g transform=\"translate(-3 -3)\">${\n components.eyes?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -3)\">${\n components.eyebrows?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -2)\">${\n components.mouth?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -3)\">${\n components.glasses?.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 \"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 \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\"\n ]\n },\n \"eyebrows\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"eyes\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"glasses\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"glassesColor\": {\n \"type\": \"array\",\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 {\n \"type\": \"string\",\n \"enum\": [\n \"green01\",\n \"blue01\",\n \"red01\",\n \"black01\",\n \"black02\",\n \"black03\"\n ]\n }\n ]\n },\n \"default\": [\"green01\", \"blue01\", \"red01\", \"black01\", \"black02\", \"black03\"]\n },\n \"glassesProbability\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"maximum\": 100,\n \"default\": 20\n },\n \"hairColor\": {\n \"type\": \"array\",\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 {\n \"type\": \"string\",\n \"enum\": [\n \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\",\n \"variant09\",\n \"variant10\"\n ]\n }\n ]\n },\n \"default\": [\n \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\",\n \"variant09\",\n \"variant10\"\n ]\n },\n \"mouth\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"surprised03\",\n \"surprised02\",\n \"happy09\",\n \"happy08\",\n \"happy07\",\n \"happy06\",\n \"happy05\",\n \"happy04\",\n \"happy03\",\n \"happy02\",\n \"happy01\",\n \"sad08\",\n \"sad07\",\n \"sad06\",\n \"sad05\",\n \"sad04\",\n \"sad03\",\n \"sad02\",\n \"sad01\",\n \"surprised01\"\n ]\n },\n \"default\": [\n \"surprised03\",\n \"surprised02\",\n \"happy09\",\n \"happy08\",\n \"happy07\",\n \"happy06\",\n \"happy05\",\n \"happy04\",\n \"happy03\",\n \"happy02\",\n \"happy01\",\n \"sad08\",\n \"sad07\",\n \"sad06\",\n \"sad05\",\n \"sad04\",\n \"sad03\",\n \"sad02\",\n \"sad01\",\n \"surprised01\"\n ]\n },\n \"mouthColor\": {\n \"type\": \"array\",\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 {\n \"type\": \"string\",\n \"enum\": [\"variant01\", \"variant02\", \"variant03\", \"variant04\"]\n }\n ]\n },\n \"default\": [\"variant01\", \"variant02\", \"variant03\", \"variant04\"]\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 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 const mouthComponent = pickComponent({\n prng,\n group: 'mouth',\n values: options.mouth,\n });\n const glassesComponent = pickComponent({\n prng,\n group: 'glasses',\n values: options.glasses,\n });\n\n return {\n eyes: eyesComponent,\n eyebrows: eyebrowsComponent,\n mouth: mouthComponent,\n glasses: prng.bool(options.glassesProbability)\n ? glassesComponent\n : undefined,\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 { eyes } from './eyes';\nexport { eyebrows } from './eyebrows';\nexport { mouth } from './mouth';\nexport { glasses } from './glasses';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyes: ComponentGroup = {\n variant13: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant12: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/></g>`,\n variant11: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant10: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant09: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant08: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/><path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/><path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/><path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/><path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/><path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/><path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/><path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyebrows: ComponentGroup = {\n variant13: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"${colors.hair.value}\"/><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant12: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant11: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant10: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant09: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"${colors.hair.value}\"/><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant08: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"${colors.hair.value}\"/><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"${colors.hair.value}\"/><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const mouth: ComponentGroup = {\n surprised03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M9 12v2h2v-2H9Z\" fill=\"${colors.mouth.value}\"/>`,\n surprised02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M9 13v1h1v-1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n happy09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"${colors.mouth.value}\"/>`,\n happy08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"${colors.mouth.value}\"/>`,\n happy07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"${colors.mouth.value}\"/><path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\n happy05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n happy03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>`,\n happy01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\n sad08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n sad07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"${colors.mouth.value}\"/>`,\n sad06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12h3v1H8v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12h4v1H8v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12h2v1H9v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n sad02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n sad01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"${colors.mouth.value}\"/>`,\n surprised01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const glasses: ComponentGroup = {\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"${colors.glasses.value}\"/><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/><path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"${colors.glasses.value}\"/><path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"${colors.glasses.value}\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\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 hair: pickColor({\n prng,\n group: 'hair',\n values: options.hairColor,\n }),\n mouth: pickColor({\n prng,\n group: 'mouth',\n values: options.mouthColor,\n }),\n glasses: pickColor({\n prng,\n group: 'glasses',\n values: options.glassesColor,\n }),\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';\nexport { hair } from './hair';\nexport { mouth } from './mouth';\nexport { glasses } from './glasses';\n","import type { ColorGroup } from '../static-types';\n\nexport const skin: ColorGroup = {\n variant01: 'rgba(255, 219, 172, 1)',\n variant02: 'rgba(245, 207, 160, 1)',\n variant03: 'rgba(234, 195, 147, 1)',\n variant04: 'rgba(224, 182, 135, 1)',\n variant05: 'rgba(203, 158, 110, 1)',\n variant06: 'rgba(182, 134, 85, 1)',\n variant07: 'rgba(162, 109, 61, 1)',\n variant08: 'rgba(141, 85, 36, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const hair: ColorGroup = {\n variant01: 'rgba(202, 177, 136, 1)',\n variant02: 'rgba(167, 137, 97, 1)',\n variant03: 'rgba(131, 98, 59, 1)',\n variant04: 'rgba(96, 58, 20, 1)',\n variant05: 'rgba(96, 48, 21, 1)',\n variant06: 'rgba(97, 38, 22, 1)',\n variant07: 'rgba(97, 28, 23, 1)',\n variant08: 'rgba(78, 26, 19, 1)',\n variant09: 'rgba(59, 23, 14, 1)',\n variant10: 'rgba(40, 21, 10, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const mouth: ColorGroup = {\n variant01: 'rgba(210, 153, 133, 1)',\n variant02: 'rgba(201, 130, 118, 1)',\n variant03: 'rgba(227, 93, 106, 1)',\n variant04: 'rgba(222, 15, 13, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const glasses: ColorGroup = {\n green01: 'rgba(95, 112, 92, 1)',\n blue01: 'rgba(67, 103, 125, 1)',\n red01: 'rgba(160, 75, 93, 1)',\n black01: 'rgba(75, 75, 75, 1)',\n black02: 'rgba(50, 50, 50, 1)',\n black03: 'rgba(25, 25, 25, 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 eyes: {\n width: 20,\n height: 20,\n },\n eyebrows: {\n width: 20,\n height: 20,\n },\n mouth: {\n width: 20,\n height: 20,\n },\n glasses: {\n width: 20,\n height: 20,\n },\n};\n"],"names":[],"version":3,"file":"index.js.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAgkH;;;;;;;;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G,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;;;ADzED,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/pixel-art-neutral/src/index.ts","packages/@dicebear/pixel-art-neutral/src/core.ts","packages/@dicebear/pixel-art-neutral/src/schema.json","packages/@dicebear/pixel-art-neutral/src/utils/getComponents.ts","packages/@dicebear/pixel-art-neutral/src/utils/pickComponent.ts","packages/@dicebear/pixel-art-neutral/src/components/index.ts","packages/@dicebear/pixel-art-neutral/src/components/eyes.ts","packages/@dicebear/pixel-art-neutral/src/components/eyebrows.ts","packages/@dicebear/pixel-art-neutral/src/components/mouth.ts","packages/@dicebear/pixel-art-neutral/src/components/glasses.ts","packages/@dicebear/pixel-art-neutral/src/utils/getColors.ts","packages/@dicebear/pixel-art-neutral/src/utils/pickColor.ts","packages/@dicebear/pixel-art-neutral/src/colors/index.ts","packages/@dicebear/pixel-art-neutral/src/colors/skin.ts","packages/@dicebear/pixel-art-neutral/src/colors/hair.ts","packages/@dicebear/pixel-art-neutral/src/colors/mouth.ts","packages/@dicebear/pixel-art-neutral/src/colors/glasses.ts","packages/@dicebear/pixel-art-neutral/src/hooks/onPreCreate.ts","packages/@dicebear/pixel-art-neutral/src/hooks/onPostCreate.ts","packages/@dicebear/pixel-art-neutral/src/meta/components.ts"],"sourcesContent":["/*!\n * Pixel Art - Neutral (@dicebear/pixel-art-neutral)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n * Copyright (c) 2021 Plastic Jam\n *\n * Design \"Pixel Art - Neutral\" by Plastic Jam licensed under MIT.\n * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE\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: 'Pixel Art - Neutral',\n creator: 'Plastic Jam',\n license: {\n name: 'MIT',\n url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/pixel-art-neutral/LICENSE',\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 14 14',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `<g transform=\"translate(-3 -3)\">${\n components.eyes?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -3)\">${\n components.eyebrows?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -2)\">${\n components.mouth?.value(components, colors) ?? ''\n }</g><g transform=\"translate(-3 -3)\">${\n components.glasses?.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 \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\"\n ]\n },\n \"eyebrows\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"eyes\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant13\",\n \"variant12\",\n \"variant11\",\n \"variant10\",\n \"variant09\",\n \"variant08\",\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"glasses\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"default\": [\n \"variant07\",\n \"variant06\",\n \"variant05\",\n \"variant04\",\n \"variant03\",\n \"variant02\",\n \"variant01\"\n ]\n },\n \"glassesColor\": {\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 {\n \"type\": \"string\",\n \"enum\": [\n \"green01\",\n \"blue01\",\n \"red01\",\n \"black01\",\n \"black02\",\n \"black03\"\n ]\n }\n ]\n },\n \"default\": [\"green01\", \"blue01\", \"red01\", \"black01\", \"black02\", \"black03\"]\n },\n \"glassesProbability\": {\n \"type\": \"integer\",\n \"minimum\": 0,\n \"maximum\": 100,\n \"default\": 20\n },\n \"hairColor\": {\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 {\n \"type\": \"string\",\n \"enum\": [\n \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\",\n \"variant09\",\n \"variant10\"\n ]\n }\n ]\n },\n \"default\": [\n \"variant01\",\n \"variant02\",\n \"variant03\",\n \"variant04\",\n \"variant05\",\n \"variant06\",\n \"variant07\",\n \"variant08\",\n \"variant09\",\n \"variant10\"\n ]\n },\n \"mouth\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"surprised03\",\n \"surprised02\",\n \"happy09\",\n \"happy08\",\n \"happy07\",\n \"happy06\",\n \"happy05\",\n \"happy04\",\n \"happy03\",\n \"happy02\",\n \"happy01\",\n \"sad08\",\n \"sad07\",\n \"sad06\",\n \"sad05\",\n \"sad04\",\n \"sad03\",\n \"sad02\",\n \"sad01\",\n \"surprised01\"\n ]\n },\n \"default\": [\n \"surprised03\",\n \"surprised02\",\n \"happy09\",\n \"happy08\",\n \"happy07\",\n \"happy06\",\n \"happy05\",\n \"happy04\",\n \"happy03\",\n \"happy02\",\n \"happy01\",\n \"sad08\",\n \"sad07\",\n \"sad06\",\n \"sad05\",\n \"sad04\",\n \"sad03\",\n \"sad02\",\n \"sad01\",\n \"surprised01\"\n ]\n },\n \"mouthColor\": {\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 {\n \"type\": \"string\",\n \"enum\": [\"variant01\", \"variant02\", \"variant03\", \"variant04\"]\n }\n ]\n },\n \"default\": [\"variant01\", \"variant02\", \"variant03\", \"variant04\"]\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 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 const mouthComponent = pickComponent({\n prng,\n group: 'mouth',\n values: options.mouth,\n });\n const glassesComponent = pickComponent({\n prng,\n group: 'glasses',\n values: options.glasses,\n });\n\n return {\n eyes: eyesComponent,\n eyebrows: eyebrowsComponent,\n mouth: mouthComponent,\n glasses: prng.bool(options.glassesProbability)\n ? glassesComponent\n : undefined,\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 { eyes } from './eyes';\nexport { eyebrows } from './eyebrows';\nexport { mouth } from './mouth';\nexport { glasses } from './glasses';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyes: ComponentGroup = {\n variant13: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 9V7h3v2H5Zm7-2h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8v1h1V8H7Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant12: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 1V8h1v1h-1Z\" fill=\"#000\"/></g>`,\n variant11: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant10: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v1h1v1H6V7Zm6 0h1v1h1v1h-2V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm6 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant09: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant08: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M7 8h1v1H7V8Zm5 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7v1h3V7H5Zm7 0h3v1h-3V7Z\" fill=\"#fff\"/><path d=\"M5 9V8h1V7h1v1h1v1H5Zm7 0V8h1V7h1v1h1v1h-3Z\" fill=\"#000\"/><path d=\"M5 9V8h1V7h1v1h1v1H7V8H6v1H5Zm7 0V8h1V7h1v1h1v1h-1V8h-1v1h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 8h1v1H6V8Zm7 0h1v1h-1V8Z\" fill=\"#000\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M6 7h2v2H6V7Zm7 0h2v2h-2V7Z\" fill=\"#000\"/><path d=\"M6 7v1h1v1h1V8H7V7H6Zm7 0v1h1v1h1V8h-1V7h-1Z\" fill=\"#fff\" fill-opacity=\".4\"/><path d=\"M7 7v1h1V7H7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path d=\"M5 8h2v1H5V8Zm7 0h2v1h-2V8Z\" fill=\"#000\"/><path d=\"M5 8h1v1H5V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\" fill-opacity=\".7\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 7h1v2H5V8h1V7Zm7 0h1v2h-2V8h1V7Z\" fill=\"#fff\"/><path d=\"M7 7v1H6v1h2V7H7Zm7 0v1h-1v1h2V7h-1Z\" fill=\"#000\"/><path d=\"M7 7v1h1V7H7ZM6 8v1h1V8H6Zm8-1v1h1V7h-1Zm-1 1v1h1V8h-1Z\" fill=\"#fff\" fill-opacity=\".5\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const eyebrows: ComponentGroup = {\n variant13: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"${colors.hair.value}\"/><path d=\"M8 4v1H7v1H5V5h2V4h1Zm4 0h1v1h2v1h-2V5h-1V4Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant12: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h3v2H8V6H6V5Zm5 0h3v1h-2v1h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant11: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M5 5h3v1h1v1H8V6H5V5Zm10 0h-3v1h-1v1h1V6h3V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant10: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5H4v2h1V6h1V5Zm8 0h2v2h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant09: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"${colors.hair.value}\"/><path d=\"M5 6h2v1H5V6Zm8 0h2v1h-2V6Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant08: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h1v1h1v1H5V6h1V5Zm7 0h1v1h1v1h-3V6h1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M6 5h2v1h1v1H8V6H6V5Zm8 0h-2v1h-1v1h1V6h2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"${colors.hair.value}\"/><path d=\"M12 7V6h1V5h1v1h1v1h-1V6h-1v1h-1ZM5 7V6h1V5h1v1h1v1H7V6H6v1H5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm6 0h2v1h1v1h-1V6h-2V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"${colors.hair.value}\"/><path d=\"M4 7V5h3v1H5v1H4Zm12-2v2h-1V6h-2V5h3Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5h1v1h1v1H8V6H7V5Zm6 0v1h-1v1h-1V6h1V5h1Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"${colors.hair.value}\"/><path d=\"M4 7V6h1V5h1v1H5v1H4Zm10-2h1v1h1v1h-1V6h-1V5Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"${colors.hair.value}\"/><path d=\"M7 5v1H5v1H4V6h1V5h2Zm7 0v1h-2v1h-1V6h1V5h2Z\" fill=\"#000\" fill-opacity=\".1\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const mouth: ComponentGroup = {\n surprised03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M9 12v2h2v-2H9Z\" fill=\"${colors.mouth.value}\"/>`,\n surprised02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M9 13v1h1v-1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n happy09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M7 12v1h1v1h4v-1H8v-1H7Z\" fill=\"${colors.mouth.value}\"/>`,\n happy08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M10 12v1H9v1h2v-2h-1Z\" fill=\"${colors.mouth.value}\"/>`,\n happy07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 13v1h4v-1h1v-1h-1v1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12v2h2v-1h-1v-1H9Z\" fill=\"${colors.mouth.value}\"/><path d=\"M11 14v-1h-1v-1H9v1h1v1h1Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\n happy05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 13v1h2v-1h1v-1h-1v1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n happy03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1H9v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n happy02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\"/>`,\n happy01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h1v1h2v-1h1v-1h-1v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/><path d=\"M9 12v1h2v-1H9Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\n sad08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12v1H8v1h4v-1h-1v-1H9Z\" fill=\"${colors.mouth.value}\"/>`,\n sad07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M11 12v1H9v1H8v-1h1v-1h2Z\" fill=\"${colors.mouth.value}\"/>`,\n sad06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12h3v1H8v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12h4v1H8v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M9 12h2v1H9v-1Z\" fill=\"${colors.mouth.value}\"/>`,\n sad03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 12v1h3v1h1v-1h-1v-1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n sad02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M8 13v1h1v-1h3v-1H9v1H8Z\" fill=\"${colors.mouth.value}\"/>`,\n sad01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M10 12v1h1v1h1v-2h-2Z\" fill=\"${colors.mouth.value}\"/>`,\n surprised01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) => `<path d=\"M8 12v2h4v-2H8Z\" fill=\"#fff\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const glasses: ComponentGroup = {\n variant07: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v3H5V7Zm7 0h3v3h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 10V7h3v3h-3Zm-1-4v1H9V6H4v1H3v1h1v3h5V8h2v3h5V8h1V7h-1V6h-5Zm-6 4V7h3v3H5Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant06: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M5 7v2h3V7H5ZM4 6v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-1V6h-5v1H9V6H4Zm8 1v2h3V7h-3Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant05: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 8h1v1H7V8Zm7 0h1v1h-1V8Z\" fill=\"#fff\"/><path d=\"M5 8v1h3V8H5ZM3 7v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7H3Zm9 1v1h3V8h-3Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7v1h1V7H3Zm6 0v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant04: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M7 7h1v1H7V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\"/><path d=\"M12 7v2h3V7h-3ZM8 6H5v1H3v1h1v1h1v1h3V9h1V8h2v1h1v1h3V9h1V8h1V7h-2V6h-3v1H8V6ZM5 7v2h3V7H5Z\" fill=\"${colors.glasses.value}\"/><path d=\"M3 7h1v1H3V7Zm6 0h2v1H9V7Zm7 0h1v1h-1V7Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant03: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h1V6h5v1h2V6h5v1h1v1h-1v2h-5V8H9v2H4V8Zm1 0V7h3v2H5V8Zm7-1v2h3V7h-3Z\" fill=\"${colors.glasses.value}\"/><path opacity=\".2\" d=\"M5 7h3v2H5V7Zm7 0h3v2h-3V7Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M14 7h1v1h-1V7ZM7 7h1v1H7V7Z\" fill=\"#fff\"/><path d=\"M3 8V7h1v1H3Zm6-1v1h2V7H9Zm7 0v1h1V7h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant02: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<g fill-rule=\"evenodd\" clip-rule=\"evenodd\"><path d=\"M4 8H3V7h14v1h-1v2h-5V8H9v2H4V8Zm1 0h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"${colors.glasses.value}\"/><path opacity=\".2\" d=\"M7 8v1h1V8H7Zm7 0v1h1V8h-1Z\" fill=\"#fff\"/><path opacity=\".2\" d=\"M5 8h3v1H5V8Zm7 0h3v1h-3V8Z\" fill=\"#fff\"/><path d=\"M3 7v1h1V7H3Zm13 0v1h1V7h-1ZM9 7v1h2V7H9Z\" fill=\"#fff\" fill-opacity=\".2\"/></g>`,\n variant01: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path d=\"M3 8V7h1V6h2v1h1V6h2v1h2V6h2v1h1V6h2v1h1v1h-1v1h-1v1h-1v1h-1v-1h-1V9h-1V8H9v1H8v1H7v1H6v-1H5V9H4V8H3Z\" fill=\"${colors.glasses.value}\"/><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M3 7v1h1V7h1V6H4v1H3Zm5-1v1h1v1h2V7h1V6h-1v1H9V6H8Zm7 0v1h1v1h1V7h-1V6h-1Z\" fill=\"#fff\" fill-opacity=\".2\"/>`,\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 hair: pickColor({\n prng,\n group: 'hair',\n values: options.hairColor,\n }),\n mouth: pickColor({\n prng,\n group: 'mouth',\n values: options.mouthColor,\n }),\n glasses: pickColor({\n prng,\n group: 'glasses',\n values: options.glassesColor,\n }),\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';\nexport { hair } from './hair';\nexport { mouth } from './mouth';\nexport { glasses } from './glasses';\n","import type { ColorGroup } from '../static-types';\n\nexport const skin: ColorGroup = {\n variant01: 'rgba(255, 219, 172, 1)',\n variant02: 'rgba(245, 207, 160, 1)',\n variant03: 'rgba(234, 195, 147, 1)',\n variant04: 'rgba(224, 182, 135, 1)',\n variant05: 'rgba(203, 158, 110, 1)',\n variant06: 'rgba(182, 134, 85, 1)',\n variant07: 'rgba(162, 109, 61, 1)',\n variant08: 'rgba(141, 85, 36, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const hair: ColorGroup = {\n variant01: 'rgba(202, 177, 136, 1)',\n variant02: 'rgba(167, 137, 97, 1)',\n variant03: 'rgba(131, 98, 59, 1)',\n variant04: 'rgba(96, 58, 20, 1)',\n variant05: 'rgba(96, 48, 21, 1)',\n variant06: 'rgba(97, 38, 22, 1)',\n variant07: 'rgba(97, 28, 23, 1)',\n variant08: 'rgba(78, 26, 19, 1)',\n variant09: 'rgba(59, 23, 14, 1)',\n variant10: 'rgba(40, 21, 10, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const mouth: ColorGroup = {\n variant01: 'rgba(210, 153, 133, 1)',\n variant02: 'rgba(201, 130, 118, 1)',\n variant03: 'rgba(227, 93, 106, 1)',\n variant04: 'rgba(222, 15, 13, 1)',\n};\n","import type { ColorGroup } from '../static-types';\n\nexport const glasses: ColorGroup = {\n green01: 'rgba(95, 112, 92, 1)',\n blue01: 'rgba(67, 103, 125, 1)',\n red01: 'rgba(160, 75, 93, 1)',\n black01: 'rgba(75, 75, 75, 1)',\n black02: 'rgba(50, 50, 50, 1)',\n black03: 'rgba(25, 25, 25, 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 eyes: {\n width: 20,\n height: 20,\n },\n eyebrows: {\n width: 20,\n height: 20,\n },\n mouth: {\n width: 20,\n height: 20,\n },\n glasses: {\n width: 20,\n height: 20,\n },\n};\n"],"names":[],"version":3,"file":"index.js.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dicebear/pixel-art-neutral",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.9",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build:parcel": "parcel build"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@dicebear/core": "^5.0.0-alpha.
|
|
35
|
+
"@dicebear/core": "^5.0.0-alpha.9",
|
|
36
36
|
"@parcel/packager-ts": "^2.0.1",
|
|
37
37
|
"@parcel/transformer-typescript-types": "^2.0.1",
|
|
38
38
|
"@tsconfig/recommended": "^1.0.0",
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "d2861228315afd1fef06969d1eaf9655a027fbbb"
|
|
56
56
|
}
|