@dicebear/shapes 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 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 $67e4187b48816612$exports = {};
8
- $67e4187b48816612$exports = JSON.parse("{\"title\":\"Options\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"properties\":{\"baseColor\":{\"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\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]}]},\"default\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]},\"center\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"default\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"centerModifier\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"centerWrapper\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"corners\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"cornersModifier\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"cornersWrapper\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"sides\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"sidesModifier\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"sidesWrapper\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]}},\"additionalProperties\":false}");
8
+ $67e4187b48816612$exports = JSON.parse("{\"title\":\"Options\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"properties\":{\"baseColor\":{\"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\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]}]},\"default\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]},\"center\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"default\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"centerModifier\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"centerWrapper\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"corners\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"cornersModifier\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"cornersWrapper\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"sides\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"sidesModifier\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"sidesWrapper\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]}},\"additionalProperties\":false}");
9
9
 
10
10
 
11
11
  var $8d32e7eb0737d2f8$exports = {};
@@ -1 +1 @@
1
- {"mappings":";;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAgwF;;;;;;;;;;;;;;IIQrxF,IAAmD,EAMpD,IAAmD,EAInD,IAAmD,EAInD,IAAmD;AAhBlD,KAAK,CAAC,yCAAc,GAAmB,CAAC;IAC7C,IAAI,GAAG,UAAmC,EAAE,MAA2B;YAClE,IAAwB;mBAAxB,IAAmD,IAAnD,IAAwB,GAAxB,UAAU,CAAC,aAAa,cAAxB,IAAwB,KAAxB,IAAI,CAAJ,CAA+B,GAA/B,IAAI,CAAJ,CAA+B,GAA/B,IAAwB,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAAlD,IAAmD,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AC,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;;;AD/DD,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/shapes/src/index.ts","packages/@dicebear/shapes/src/core.ts","packages/@dicebear/shapes/src/schema.json","packages/@dicebear/shapes/src/utils/getComponents.ts","packages/@dicebear/shapes/src/utils/pickComponent.ts","packages/@dicebear/shapes/src/components/index.ts","packages/@dicebear/shapes/src/components/centerModifier.ts","packages/@dicebear/shapes/src/components/cornersModifier.ts","packages/@dicebear/shapes/src/components/sidesModifier.ts","packages/@dicebear/shapes/src/components/sidesWrapper.ts","packages/@dicebear/shapes/src/components/sides.ts","packages/@dicebear/shapes/src/components/cornersWrapper.ts","packages/@dicebear/shapes/src/components/corners.ts","packages/@dicebear/shapes/src/components/centerWrapper.ts","packages/@dicebear/shapes/src/components/center.ts","packages/@dicebear/shapes/src/utils/getColors.ts","packages/@dicebear/shapes/src/utils/pickColor.ts","packages/@dicebear/shapes/src/colors/index.ts","packages/@dicebear/shapes/src/colors/base.ts","packages/@dicebear/shapes/src/hooks/onPreCreate.ts","packages/@dicebear/shapes/src/hooks/onPostCreate.ts","packages/@dicebear/shapes/src/meta/components.ts"],"sourcesContent":["/*!\n * Shapes (@dicebear/shapes)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n * Copyright (c) 2021 Daniel Mester Pirttijärvi\n *\n * Design \"Jdenticon\" by Daniel Mester Pirttijärvi licensed under MIT.\n * Source: https://github.com/dmester/jdenticon\n * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/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: 'Jdenticon',\n creator: 'Daniel Mester Pirttijärvi',\n source: 'https://github.com/dmester/jdenticon',\n license: {\n name: 'MIT',\n url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/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 return {\n attributes: {\n viewBox: '0 0 48 48',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `${components.centerModifier?.value(components, colors) ?? ''}${\n components.cornersModifier?.value(components, colors) ?? ''\n }${components.sidesModifier?.value(components, colors) ?? ''}`,\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 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 \"baseColor\": {\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 \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n }\n ]\n },\n \"default\": [\n \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n },\n \"center\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"default\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"centerModifier\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"centerWrapper\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"corners\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"cornersModifier\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"cornersWrapper\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"sides\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"sidesModifier\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"sidesWrapper\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n }\n },\n \"additionalProperties\": false\n}\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ComponentPickCollection } from '../static-types';\nimport { pickComponent } from './pickComponent';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getComponents({\n prng,\n options,\n}: Props): ComponentPickCollection {\n const centerModifierComponent = pickComponent({\n prng,\n group: 'centerModifier',\n values: options.centerModifier,\n });\n const cornersModifierComponent = pickComponent({\n prng,\n group: 'cornersModifier',\n values: options.cornersModifier,\n });\n const sidesModifierComponent = pickComponent({\n prng,\n group: 'sidesModifier',\n values: options.sidesModifier,\n });\n const sidesWrapperComponent = pickComponent({\n prng,\n group: 'sidesWrapper',\n values: options.sidesWrapper,\n });\n const sidesComponent = pickComponent({\n prng,\n group: 'sides',\n values: options.sides,\n });\n const cornersWrapperComponent = pickComponent({\n prng,\n group: 'cornersWrapper',\n values: options.cornersWrapper,\n });\n const cornersComponent = pickComponent({\n prng,\n group: 'corners',\n values: options.corners,\n });\n const centerWrapperComponent = pickComponent({\n prng,\n group: 'centerWrapper',\n values: options.centerWrapper,\n });\n const centerComponent = pickComponent({\n prng,\n group: 'center',\n values: options.center,\n });\n\n return {\n centerModifier: centerModifierComponent,\n cornersModifier: cornersModifierComponent,\n sidesModifier: sidesModifierComponent,\n sidesWrapper: sidesWrapperComponent,\n sides: sidesComponent,\n cornersWrapper: cornersWrapperComponent,\n corners: cornersComponent,\n centerWrapper: centerWrapperComponent,\n center: centerComponent,\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 { centerModifier } from './centerModifier';\nexport { cornersModifier } from './cornersModifier';\nexport { sidesModifier } from './sidesModifier';\nexport { sidesWrapper } from './sidesWrapper';\nexport { sides } from './sides';\nexport { cornersWrapper } from './cornersWrapper';\nexport { corners } from './corners';\nexport { centerWrapper } from './centerWrapper';\nexport { center } from './center';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.centerWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"centerModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.cornersWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"cornersModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.sidesWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"sidesModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 30)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 24 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 18 24)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 30 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"translate(0 12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sides: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${\n components.corners?.value(components, colors) ?? ''\n }<g transform=\"rotate(90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(180 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const corners: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12 12)\">${\n components.center?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const center: ComponentGroup = {\n shape1Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM8.5 12 5 5l7 3.5L19 5l-3.5 7 3.5 7-7-3.5L5 19l3.5-7Z\" fill=\"${colors.base.value}\"/>`,\n shape1: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 8.5 5 5l3.5 7L5 19l7-3.5 7 3.5-3.5-7L19 5l-7 3.5Z\" fill=\"${colors.base.value}\"/>`,\n shape2Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm13 13h7v7h-7v-7Zm-2 0H4v7h7v-7Zm2-9h7v7h-7V4Zm-2 0H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape2: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M13 4h7v7h-7V4ZM11 13H4v7h7v-7ZM20 13h-7v7h7v-7ZM11 4H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape3Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm11 16.5L4 13v7l7-3.5Zm2-9L20 4v7l-7-3.5ZM11 4H4l3.5 7L11 4Zm2 16 3.5-7 3.5 7h-7Z\" fill=\"${colors.base.value}\"/>`,\n shape3: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m20 11-7-3.5L20 4v7ZM13 20h7l-3.5-7-3.5 7ZM11 16.5 4 13v7l7-3.5ZM11 4H4l3.5 7L11 4Z\" fill=\"${colors.base.value}\"/>`,\n shape4Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 2v5l10 5h-5l-5 10v-5L2 12h5l5-10Z\" fill=\"${colors.base.value}\"/>`,\n shape4: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 7V2L7 12H2l10 5v5l5-10h5L12 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm20 16.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM16.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape6Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 6l-6 6 6 6 6-6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape6: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m6 12 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape7Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z\" fill=\"${colors.base.value}\"/>`,\n shape7: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"${colors.base.value}\"/>`,\n shape8: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path fill=\"${colors.base.value}\" d=\"M4 4h16v16H4z\"/>`,\n shape9: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v9L6 0h6ZM24 12h-9l9-6v6ZM12 24v-9l6 9h-6ZM9 12H0v6l9-6Z\" fill=\"${colors.base.value}\"/>`,\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 base: pickColor({\n prng,\n group: 'base',\n values: options.baseColor,\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 { base } from './base';\n","import type { ColorGroup } from '../static-types';\n\nexport const base: ColorGroup = {\n amber: 'rgba(255, 179, 0, 1)',\n blue: 'rgba(30, 136, 229, 1)',\n cyan: 'rgba(0, 172, 193, 1)',\n deepOrange: 'rgba(244, 81, 30, 1)',\n deepPurple: 'rgba(94, 53, 177, 1)',\n green: 'rgba(67, 160, 71, 1)',\n indigo: 'rgba(57, 73, 171, 1)',\n lightBlue: 'rgba(3, 155, 229, 1)',\n lightGreen: 'rgba(124, 179, 66, 1)',\n lime: 'rgba(192, 202, 51, 1)',\n orange: 'rgba(251, 140, 0, 1)',\n pink: 'rgba(216, 27, 96, 1)',\n purple: 'rgba(142, 36, 170, 1)',\n red: 'rgba(229, 57, 53, 1)',\n teal: 'rgba(0, 137, 123, 1)',\n yellow: 'rgba(253, 216, 53, 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 const pickModifier = <T extends string>(\n modifier: T[] = [],\n alreadyPicked: T[] = []\n ): T[] => {\n const pickItems = modifier.filter(\n (v) => false === alreadyPicked.includes(v) && v === 'none'\n );\n const pick = prng.pick(pickItems.length ? pickItems : modifier);\n\n return pick ? [pick] : [];\n };\n\n options.centerModifier = pickModifier(options.centerModifier);\n options.sidesModifier = pickModifier(options.sidesModifier, [\n options.centerModifier[0],\n ]);\n options.cornersModifier = pickModifier(options.cornersModifier, [\n options.centerModifier[0],\n options.sidesModifier[0],\n ]);\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 centerModifier: {\n width: 48,\n height: 48,\n },\n cornersModifier: {\n width: 48,\n height: 48,\n },\n sidesModifier: {\n width: 48,\n height: 48,\n },\n sidesWrapper: {\n width: 48,\n height: 48,\n },\n sides: {\n width: 12,\n height: 12,\n },\n cornersWrapper: {\n width: 48,\n height: 48,\n },\n corners: {\n width: 12,\n height: 12,\n },\n centerWrapper: {\n width: 48,\n height: 48,\n },\n center: {\n width: 24,\n height: 24,\n },\n};\n"],"names":[],"version":3,"file":"index.es.js.map"}
1
+ {"mappings":";;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAk9F;;;;;;;;;;;;;;IIQv+F,IAAmD,EAMpD,IAAmD,EAInD,IAAmD,EAInD,IAAmD;AAhBlD,KAAK,CAAC,yCAAc,GAAmB,CAAC;IAC7C,IAAI,GAAG,UAAmC,EAAE,MAA2B;YAClE,IAAwB;mBAAxB,IAAmD,IAAnD,IAAwB,GAAxB,UAAU,CAAC,aAAa,cAAxB,IAAwB,KAAxB,IAAI,CAAJ,CAA+B,GAA/B,IAAI,CAAJ,CAA+B,GAA/B,IAAwB,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAAlD,IAAmD,cAAnD,IAAmD,GAAI,CAAE;;IAC9D,SAAS,GACP,UAAmC,EACnC,MAA2B;YAGzB,GAAwB;gBADzB,2HAA2H,GAC1H,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AO,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;;;AD/DD,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/shapes/src/index.ts","packages/@dicebear/shapes/src/core.ts","packages/@dicebear/shapes/src/schema.json","packages/@dicebear/shapes/src/utils/getComponents.ts","packages/@dicebear/shapes/src/utils/pickComponent.ts","packages/@dicebear/shapes/src/components/index.ts","packages/@dicebear/shapes/src/components/centerModifier.ts","packages/@dicebear/shapes/src/components/cornersModifier.ts","packages/@dicebear/shapes/src/components/sidesModifier.ts","packages/@dicebear/shapes/src/components/sidesWrapper.ts","packages/@dicebear/shapes/src/components/sides.ts","packages/@dicebear/shapes/src/components/cornersWrapper.ts","packages/@dicebear/shapes/src/components/corners.ts","packages/@dicebear/shapes/src/components/centerWrapper.ts","packages/@dicebear/shapes/src/components/center.ts","packages/@dicebear/shapes/src/utils/getColors.ts","packages/@dicebear/shapes/src/utils/pickColor.ts","packages/@dicebear/shapes/src/colors/index.ts","packages/@dicebear/shapes/src/colors/base.ts","packages/@dicebear/shapes/src/hooks/onPreCreate.ts","packages/@dicebear/shapes/src/hooks/onPostCreate.ts","packages/@dicebear/shapes/src/meta/components.ts"],"sourcesContent":["/*!\n * Shapes (@dicebear/shapes)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n * Copyright (c) 2021 Daniel Mester Pirttijärvi\n *\n * Design \"Jdenticon\" by Daniel Mester Pirttijärvi licensed under MIT.\n * Source: https://github.com/dmester/jdenticon\n * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/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: 'Jdenticon',\n creator: 'Daniel Mester Pirttijärvi',\n source: 'https://github.com/dmester/jdenticon',\n license: {\n name: 'MIT',\n url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/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 return {\n attributes: {\n viewBox: '0 0 48 48',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `${components.centerModifier?.value(components, colors) ?? ''}${\n components.cornersModifier?.value(components, colors) ?? ''\n }${components.sidesModifier?.value(components, colors) ?? ''}`,\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 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 \"baseColor\": {\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 \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n }\n ]\n },\n \"default\": [\n \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n },\n \"center\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"default\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"centerModifier\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"centerWrapper\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"corners\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"cornersModifier\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"cornersWrapper\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"sides\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"sidesModifier\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"sidesWrapper\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n }\n },\n \"additionalProperties\": false\n}\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ComponentPickCollection } from '../static-types';\nimport { pickComponent } from './pickComponent';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getComponents({\n prng,\n options,\n}: Props): ComponentPickCollection {\n const centerModifierComponent = pickComponent({\n prng,\n group: 'centerModifier',\n values: options.centerModifier,\n });\n const cornersModifierComponent = pickComponent({\n prng,\n group: 'cornersModifier',\n values: options.cornersModifier,\n });\n const sidesModifierComponent = pickComponent({\n prng,\n group: 'sidesModifier',\n values: options.sidesModifier,\n });\n const sidesWrapperComponent = pickComponent({\n prng,\n group: 'sidesWrapper',\n values: options.sidesWrapper,\n });\n const sidesComponent = pickComponent({\n prng,\n group: 'sides',\n values: options.sides,\n });\n const cornersWrapperComponent = pickComponent({\n prng,\n group: 'cornersWrapper',\n values: options.cornersWrapper,\n });\n const cornersComponent = pickComponent({\n prng,\n group: 'corners',\n values: options.corners,\n });\n const centerWrapperComponent = pickComponent({\n prng,\n group: 'centerWrapper',\n values: options.centerWrapper,\n });\n const centerComponent = pickComponent({\n prng,\n group: 'center',\n values: options.center,\n });\n\n return {\n centerModifier: centerModifierComponent,\n cornersModifier: cornersModifierComponent,\n sidesModifier: sidesModifierComponent,\n sidesWrapper: sidesWrapperComponent,\n sides: sidesComponent,\n cornersWrapper: cornersWrapperComponent,\n corners: cornersComponent,\n centerWrapper: centerWrapperComponent,\n center: centerComponent,\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 { centerModifier } from './centerModifier';\nexport { cornersModifier } from './cornersModifier';\nexport { sidesModifier } from './sidesModifier';\nexport { sidesWrapper } from './sidesWrapper';\nexport { sides } from './sides';\nexport { cornersWrapper } from './cornersWrapper';\nexport { corners } from './corners';\nexport { centerWrapper } from './centerWrapper';\nexport { center } from './center';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.centerWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"centerModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.cornersWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"cornersModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.sidesWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"sidesModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 30)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 24 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 18 24)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 30 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"translate(0 12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sides: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${\n components.corners?.value(components, colors) ?? ''\n }<g transform=\"rotate(90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(180 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const corners: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12 12)\">${\n components.center?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const center: ComponentGroup = {\n shape1Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM8.5 12 5 5l7 3.5L19 5l-3.5 7 3.5 7-7-3.5L5 19l3.5-7Z\" fill=\"${colors.base.value}\"/>`,\n shape1: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 8.5 5 5l3.5 7L5 19l7-3.5 7 3.5-3.5-7L19 5l-7 3.5Z\" fill=\"${colors.base.value}\"/>`,\n shape2Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm13 13h7v7h-7v-7Zm-2 0H4v7h7v-7Zm2-9h7v7h-7V4Zm-2 0H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape2: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M13 4h7v7h-7V4ZM11 13H4v7h7v-7ZM20 13h-7v7h7v-7ZM11 4H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape3Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm11 16.5L4 13v7l7-3.5Zm2-9L20 4v7l-7-3.5ZM11 4H4l3.5 7L11 4Zm2 16 3.5-7 3.5 7h-7Z\" fill=\"${colors.base.value}\"/>`,\n shape3: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m20 11-7-3.5L20 4v7ZM13 20h7l-3.5-7-3.5 7ZM11 16.5 4 13v7l7-3.5ZM11 4H4l3.5 7L11 4Z\" fill=\"${colors.base.value}\"/>`,\n shape4Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 2v5l10 5h-5l-5 10v-5L2 12h5l5-10Z\" fill=\"${colors.base.value}\"/>`,\n shape4: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 7V2L7 12H2l10 5v5l5-10h5L12 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm20 16.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM16.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape6Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 6l-6 6 6 6 6-6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape6: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m6 12 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape7Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z\" fill=\"${colors.base.value}\"/>`,\n shape7: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"${colors.base.value}\"/>`,\n shape8: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path fill=\"${colors.base.value}\" d=\"M4 4h16v16H4z\"/>`,\n shape9: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v9L6 0h6ZM24 12h-9l9-6v6ZM12 24v-9l6 9h-6ZM9 12H0v6l9-6Z\" fill=\"${colors.base.value}\"/>`,\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 base: pickColor({\n prng,\n group: 'base',\n values: options.baseColor,\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 { base } from './base';\n","import type { ColorGroup } from '../static-types';\n\nexport const base: ColorGroup = {\n amber: 'rgba(255, 179, 0, 1)',\n blue: 'rgba(30, 136, 229, 1)',\n cyan: 'rgba(0, 172, 193, 1)',\n deepOrange: 'rgba(244, 81, 30, 1)',\n deepPurple: 'rgba(94, 53, 177, 1)',\n green: 'rgba(67, 160, 71, 1)',\n indigo: 'rgba(57, 73, 171, 1)',\n lightBlue: 'rgba(3, 155, 229, 1)',\n lightGreen: 'rgba(124, 179, 66, 1)',\n lime: 'rgba(192, 202, 51, 1)',\n orange: 'rgba(251, 140, 0, 1)',\n pink: 'rgba(216, 27, 96, 1)',\n purple: 'rgba(142, 36, 170, 1)',\n red: 'rgba(229, 57, 53, 1)',\n teal: 'rgba(0, 137, 123, 1)',\n yellow: 'rgba(253, 216, 53, 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 const pickModifier = <T extends string>(\n modifier: T[] = [],\n alreadyPicked: T[] = []\n ): T[] => {\n const pickItems = modifier.filter(\n (v) => false === alreadyPicked.includes(v) && v === 'none'\n );\n const pick = prng.pick(pickItems.length ? pickItems : modifier);\n\n return pick ? [pick] : [];\n };\n\n options.centerModifier = pickModifier(options.centerModifier);\n options.sidesModifier = pickModifier(options.sidesModifier, [\n options.centerModifier[0],\n ]);\n options.cornersModifier = pickModifier(options.cornersModifier, [\n options.centerModifier[0],\n options.sidesModifier[0],\n ]);\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 centerModifier: {\n width: 48,\n height: 48,\n },\n cornersModifier: {\n width: 48,\n height: 48,\n },\n sidesModifier: {\n width: 48,\n height: 48,\n },\n sidesWrapper: {\n width: 48,\n height: 48,\n },\n sides: {\n width: 12,\n height: 12,\n },\n cornersWrapper: {\n width: 48,\n height: 48,\n },\n corners: {\n width: 12,\n height: 12,\n },\n centerWrapper: {\n width: 48,\n height: 48,\n },\n center: {\n width: 24,\n height: 24,\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 $29c0649b5fbcf0fc
10
10
  $parcel$export(module.exports, "meta", function () { return $29c0649b5fbcf0fc$export$6990040ee07315; });
11
11
  $parcel$export(module.exports, "schema", function () { return $29c0649b5fbcf0fc$export$4902baddc787debb; });
12
12
  var $e85142bc44ba634b$exports = {};
13
- $e85142bc44ba634b$exports = JSON.parse("{\"title\":\"Options\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"properties\":{\"baseColor\":{\"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\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]}]},\"default\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]},\"center\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"default\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"centerModifier\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"centerWrapper\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"corners\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"cornersModifier\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"cornersWrapper\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"sides\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"sidesModifier\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"sidesWrapper\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]}},\"additionalProperties\":false}");
13
+ $e85142bc44ba634b$exports = JSON.parse("{\"title\":\"Options\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"properties\":{\"baseColor\":{\"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\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]}]},\"default\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]},\"center\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"default\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"centerModifier\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"centerWrapper\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"corners\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"cornersModifier\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"cornersWrapper\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"sides\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"sidesModifier\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"sidesWrapper\":{\"type\":\"array\",\"uniqueItems\":true,\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]}},\"additionalProperties\":false}");
14
14
 
15
15
 
16
16
  var $081b05112beb235d$exports = {};
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAgwF;;;;;;;;;;;;;;IIQrxF,IAAmD,EAMpD,IAAmD,EAInD,IAAmD,EAInD,IAAmD;AAhBlD,KAAK,CAAC,yCAAc,GAAmB,CAAC;IAC7C,IAAI,GAAG,UAAmC,EAAE,MAA2B;YAClE,IAAwB;mBAAxB,IAAmD,IAAnD,IAAwB,GAAxB,UAAU,CAAC,aAAa,cAAxB,IAAwB,KAAxB,IAAI,CAAJ,CAA+B,GAA/B,IAAI,CAAJ,CAA+B,GAA/B,IAAwB,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAAlD,IAAmD,cAAnD,IAAmD,GAAI,CAAE;;IAC9D,SAAS,GACP,UAAmC,EACnC,MAA2B;YAGzB,GAAwB;gBADzB,2HAA2H,GAC1H,IAAmD,IAAnD,GAAwB,GAAxB,UAAU,CAAC,aAAa,cAAxB,GAAwB,KAAxB,IAAI,CAAJ,CAA+B,GAA/B,IAAI,CAAJ,CAA+B,GAA/B,GAAwB,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAAlD,IAAmD,cAAnD,IAAmD,GAAI,CAAE,EAC1D,6FAA6F;;IAChG,IAAI,GAAG,UAAmC,EAAE,MAA2B;YAEnE,GAAwB;gBADzB,sHAAsH,GACrH,IAAmD,IAAnD,GAAwB,GAAxB,UAAU,CAAC,aAAa,cAAxB,GAAwB,KAAxB,IAAI,CA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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;;;AD/DD,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/shapes/src/index.ts","packages/@dicebear/shapes/src/core.ts","packages/@dicebear/shapes/src/schema.json","packages/@dicebear/shapes/src/utils/getComponents.ts","packages/@dicebear/shapes/src/utils/pickComponent.ts","packages/@dicebear/shapes/src/components/index.ts","packages/@dicebear/shapes/src/components/centerModifier.ts","packages/@dicebear/shapes/src/components/cornersModifier.ts","packages/@dicebear/shapes/src/components/sidesModifier.ts","packages/@dicebear/shapes/src/components/sidesWrapper.ts","packages/@dicebear/shapes/src/components/sides.ts","packages/@dicebear/shapes/src/components/cornersWrapper.ts","packages/@dicebear/shapes/src/components/corners.ts","packages/@dicebear/shapes/src/components/centerWrapper.ts","packages/@dicebear/shapes/src/components/center.ts","packages/@dicebear/shapes/src/utils/getColors.ts","packages/@dicebear/shapes/src/utils/pickColor.ts","packages/@dicebear/shapes/src/colors/index.ts","packages/@dicebear/shapes/src/colors/base.ts","packages/@dicebear/shapes/src/hooks/onPreCreate.ts","packages/@dicebear/shapes/src/hooks/onPostCreate.ts","packages/@dicebear/shapes/src/meta/components.ts"],"sourcesContent":["/*!\n * Shapes (@dicebear/shapes)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n * Copyright (c) 2021 Daniel Mester Pirttijärvi\n *\n * Design \"Jdenticon\" by Daniel Mester Pirttijärvi licensed under MIT.\n * Source: https://github.com/dmester/jdenticon\n * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/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: 'Jdenticon',\n creator: 'Daniel Mester Pirttijärvi',\n source: 'https://github.com/dmester/jdenticon',\n license: {\n name: 'MIT',\n url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/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 return {\n attributes: {\n viewBox: '0 0 48 48',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `${components.centerModifier?.value(components, colors) ?? ''}${\n components.cornersModifier?.value(components, colors) ?? ''\n }${components.sidesModifier?.value(components, colors) ?? ''}`,\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 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 \"baseColor\": {\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 \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n }\n ]\n },\n \"default\": [\n \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n },\n \"center\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"default\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"centerModifier\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"centerWrapper\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"corners\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"cornersModifier\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"cornersWrapper\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"sides\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"sidesModifier\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"sidesWrapper\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n }\n },\n \"additionalProperties\": false\n}\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ComponentPickCollection } from '../static-types';\nimport { pickComponent } from './pickComponent';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getComponents({\n prng,\n options,\n}: Props): ComponentPickCollection {\n const centerModifierComponent = pickComponent({\n prng,\n group: 'centerModifier',\n values: options.centerModifier,\n });\n const cornersModifierComponent = pickComponent({\n prng,\n group: 'cornersModifier',\n values: options.cornersModifier,\n });\n const sidesModifierComponent = pickComponent({\n prng,\n group: 'sidesModifier',\n values: options.sidesModifier,\n });\n const sidesWrapperComponent = pickComponent({\n prng,\n group: 'sidesWrapper',\n values: options.sidesWrapper,\n });\n const sidesComponent = pickComponent({\n prng,\n group: 'sides',\n values: options.sides,\n });\n const cornersWrapperComponent = pickComponent({\n prng,\n group: 'cornersWrapper',\n values: options.cornersWrapper,\n });\n const cornersComponent = pickComponent({\n prng,\n group: 'corners',\n values: options.corners,\n });\n const centerWrapperComponent = pickComponent({\n prng,\n group: 'centerWrapper',\n values: options.centerWrapper,\n });\n const centerComponent = pickComponent({\n prng,\n group: 'center',\n values: options.center,\n });\n\n return {\n centerModifier: centerModifierComponent,\n cornersModifier: cornersModifierComponent,\n sidesModifier: sidesModifierComponent,\n sidesWrapper: sidesWrapperComponent,\n sides: sidesComponent,\n cornersWrapper: cornersWrapperComponent,\n corners: cornersComponent,\n centerWrapper: centerWrapperComponent,\n center: centerComponent,\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 { centerModifier } from './centerModifier';\nexport { cornersModifier } from './cornersModifier';\nexport { sidesModifier } from './sidesModifier';\nexport { sidesWrapper } from './sidesWrapper';\nexport { sides } from './sides';\nexport { cornersWrapper } from './cornersWrapper';\nexport { corners } from './corners';\nexport { centerWrapper } from './centerWrapper';\nexport { center } from './center';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.centerWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"centerModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.cornersWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"cornersModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.sidesWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"sidesModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 30)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 24 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 18 24)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 30 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"translate(0 12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sides: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${\n components.corners?.value(components, colors) ?? ''\n }<g transform=\"rotate(90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(180 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const corners: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12 12)\">${\n components.center?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const center: ComponentGroup = {\n shape1Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM8.5 12 5 5l7 3.5L19 5l-3.5 7 3.5 7-7-3.5L5 19l3.5-7Z\" fill=\"${colors.base.value}\"/>`,\n shape1: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 8.5 5 5l3.5 7L5 19l7-3.5 7 3.5-3.5-7L19 5l-7 3.5Z\" fill=\"${colors.base.value}\"/>`,\n shape2Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm13 13h7v7h-7v-7Zm-2 0H4v7h7v-7Zm2-9h7v7h-7V4Zm-2 0H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape2: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M13 4h7v7h-7V4ZM11 13H4v7h7v-7ZM20 13h-7v7h7v-7ZM11 4H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape3Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm11 16.5L4 13v7l7-3.5Zm2-9L20 4v7l-7-3.5ZM11 4H4l3.5 7L11 4Zm2 16 3.5-7 3.5 7h-7Z\" fill=\"${colors.base.value}\"/>`,\n shape3: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m20 11-7-3.5L20 4v7ZM13 20h7l-3.5-7-3.5 7ZM11 16.5 4 13v7l7-3.5ZM11 4H4l3.5 7L11 4Z\" fill=\"${colors.base.value}\"/>`,\n shape4Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 2v5l10 5h-5l-5 10v-5L2 12h5l5-10Z\" fill=\"${colors.base.value}\"/>`,\n shape4: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 7V2L7 12H2l10 5v5l5-10h5L12 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm20 16.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM16.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape6Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 6l-6 6 6 6 6-6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape6: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m6 12 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape7Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z\" fill=\"${colors.base.value}\"/>`,\n shape7: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"${colors.base.value}\"/>`,\n shape8: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path fill=\"${colors.base.value}\" d=\"M4 4h16v16H4z\"/>`,\n shape9: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v9L6 0h6ZM24 12h-9l9-6v6ZM12 24v-9l6 9h-6ZM9 12H0v6l9-6Z\" fill=\"${colors.base.value}\"/>`,\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 base: pickColor({\n prng,\n group: 'base',\n values: options.baseColor,\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 { base } from './base';\n","import type { ColorGroup } from '../static-types';\n\nexport const base: ColorGroup = {\n amber: 'rgba(255, 179, 0, 1)',\n blue: 'rgba(30, 136, 229, 1)',\n cyan: 'rgba(0, 172, 193, 1)',\n deepOrange: 'rgba(244, 81, 30, 1)',\n deepPurple: 'rgba(94, 53, 177, 1)',\n green: 'rgba(67, 160, 71, 1)',\n indigo: 'rgba(57, 73, 171, 1)',\n lightBlue: 'rgba(3, 155, 229, 1)',\n lightGreen: 'rgba(124, 179, 66, 1)',\n lime: 'rgba(192, 202, 51, 1)',\n orange: 'rgba(251, 140, 0, 1)',\n pink: 'rgba(216, 27, 96, 1)',\n purple: 'rgba(142, 36, 170, 1)',\n red: 'rgba(229, 57, 53, 1)',\n teal: 'rgba(0, 137, 123, 1)',\n yellow: 'rgba(253, 216, 53, 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 const pickModifier = <T extends string>(\n modifier: T[] = [],\n alreadyPicked: T[] = []\n ): T[] => {\n const pickItems = modifier.filter(\n (v) => false === alreadyPicked.includes(v) && v === 'none'\n );\n const pick = prng.pick(pickItems.length ? pickItems : modifier);\n\n return pick ? [pick] : [];\n };\n\n options.centerModifier = pickModifier(options.centerModifier);\n options.sidesModifier = pickModifier(options.sidesModifier, [\n options.centerModifier[0],\n ]);\n options.cornersModifier = pickModifier(options.cornersModifier, [\n options.centerModifier[0],\n options.sidesModifier[0],\n ]);\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 centerModifier: {\n width: 48,\n height: 48,\n },\n cornersModifier: {\n width: 48,\n height: 48,\n },\n sidesModifier: {\n width: 48,\n height: 48,\n },\n sidesWrapper: {\n width: 48,\n height: 48,\n },\n sides: {\n width: 12,\n height: 12,\n },\n cornersWrapper: {\n width: 48,\n height: 48,\n },\n corners: {\n width: 12,\n height: 12,\n },\n centerWrapper: {\n width: 48,\n height: 48,\n },\n center: {\n width: 24,\n height: 24,\n },\n};\n"],"names":[],"version":3,"file":"index.js.map"}
1
+ {"mappings":";;;;;;;;;;;;AEAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAk9F;;;;;;;;;;;;;;IIQv+F,IAAmD,EAMpD,IAAmD,EAInD,IAAmD,EAInD,IAAmD;AAhBlD,KAAK,CAAC,yCAAc,GAAmB,CAAC;IAC7C,IAAI,GAAG,UAAmC,EAAE,MAA2B;YAClE,IAAwB;mBAAxB,IAAmD,IAAnD,IAAwB,GAAxB,UAAU,CAAC,aAAa,cAAxB,IAAwB,KAAxB,IAAI,CAAJ,CAA+B,GAA/B,IAAI,CAAJ,CAA+B,GAA/B,IAAwB,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAAlD,IAAmD,cAAnD,IAAmD,GAAI,CAAE;;IAC9D,SAAS,GACP,UAAmC,EACnC,MAA2B;YAGzB,GAAwB;gBADzB,2HAA2H,GAC1H,IAAmD,IAAnD,GAAwB,GAAxB,UAAU,CAAC,aAAa,cAAxB,GAAwB,KAAxB,IAAI,CAAJ,CAA+B,GAA/B,IAAI,CAAJ,CAA+B,GAA/B,GAAwB,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAAlD,IAAmD,cAAnD,IAAmD,GAAI,CAAE,EAC1D,6FAA6F;;IAChG,IAAI,GAAG,UAAmC,EAAE,MAA2B;YAEnE,GAAwB;gBADzB,sHAAsH,GACrH,IAAmD,IAAnD,GAAwB,GAAxB,UAAU,CAAC,aAAa,cAAxB,GAAwB,KAAxB,IAAI,CAAJ,CAA+B,GAA/B,IAAI,CAAJ,CAA+B,GAA/B,GAAwB,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAAlD,IA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B,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;;;AD/DD,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/shapes/src/index.ts","packages/@dicebear/shapes/src/core.ts","packages/@dicebear/shapes/src/schema.json","packages/@dicebear/shapes/src/utils/getComponents.ts","packages/@dicebear/shapes/src/utils/pickComponent.ts","packages/@dicebear/shapes/src/components/index.ts","packages/@dicebear/shapes/src/components/centerModifier.ts","packages/@dicebear/shapes/src/components/cornersModifier.ts","packages/@dicebear/shapes/src/components/sidesModifier.ts","packages/@dicebear/shapes/src/components/sidesWrapper.ts","packages/@dicebear/shapes/src/components/sides.ts","packages/@dicebear/shapes/src/components/cornersWrapper.ts","packages/@dicebear/shapes/src/components/corners.ts","packages/@dicebear/shapes/src/components/centerWrapper.ts","packages/@dicebear/shapes/src/components/center.ts","packages/@dicebear/shapes/src/utils/getColors.ts","packages/@dicebear/shapes/src/utils/pickColor.ts","packages/@dicebear/shapes/src/colors/index.ts","packages/@dicebear/shapes/src/colors/base.ts","packages/@dicebear/shapes/src/hooks/onPreCreate.ts","packages/@dicebear/shapes/src/hooks/onPostCreate.ts","packages/@dicebear/shapes/src/meta/components.ts"],"sourcesContent":["/*!\n * Shapes (@dicebear/shapes)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n * Copyright (c) 2021 Daniel Mester Pirttijärvi\n *\n * Design \"Jdenticon\" by Daniel Mester Pirttijärvi licensed under MIT.\n * Source: https://github.com/dmester/jdenticon\n * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/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: 'Jdenticon',\n creator: 'Daniel Mester Pirttijärvi',\n source: 'https://github.com/dmester/jdenticon',\n license: {\n name: 'MIT',\n url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/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 return {\n attributes: {\n viewBox: '0 0 48 48',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `${components.centerModifier?.value(components, colors) ?? ''}${\n components.cornersModifier?.value(components, colors) ?? ''\n }${components.sidesModifier?.value(components, colors) ?? ''}`,\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 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 \"baseColor\": {\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 \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n }\n ]\n },\n \"default\": [\n \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n },\n \"center\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"default\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"centerModifier\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"centerWrapper\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"corners\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"cornersModifier\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"cornersWrapper\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"sides\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"sidesModifier\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"sidesWrapper\": {\n \"type\": \"array\",\n \"uniqueItems\": true,\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n }\n },\n \"additionalProperties\": false\n}\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ComponentPickCollection } from '../static-types';\nimport { pickComponent } from './pickComponent';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getComponents({\n prng,\n options,\n}: Props): ComponentPickCollection {\n const centerModifierComponent = pickComponent({\n prng,\n group: 'centerModifier',\n values: options.centerModifier,\n });\n const cornersModifierComponent = pickComponent({\n prng,\n group: 'cornersModifier',\n values: options.cornersModifier,\n });\n const sidesModifierComponent = pickComponent({\n prng,\n group: 'sidesModifier',\n values: options.sidesModifier,\n });\n const sidesWrapperComponent = pickComponent({\n prng,\n group: 'sidesWrapper',\n values: options.sidesWrapper,\n });\n const sidesComponent = pickComponent({\n prng,\n group: 'sides',\n values: options.sides,\n });\n const cornersWrapperComponent = pickComponent({\n prng,\n group: 'cornersWrapper',\n values: options.cornersWrapper,\n });\n const cornersComponent = pickComponent({\n prng,\n group: 'corners',\n values: options.corners,\n });\n const centerWrapperComponent = pickComponent({\n prng,\n group: 'centerWrapper',\n values: options.centerWrapper,\n });\n const centerComponent = pickComponent({\n prng,\n group: 'center',\n values: options.center,\n });\n\n return {\n centerModifier: centerModifierComponent,\n cornersModifier: cornersModifierComponent,\n sidesModifier: sidesModifierComponent,\n sidesWrapper: sidesWrapperComponent,\n sides: sidesComponent,\n cornersWrapper: cornersWrapperComponent,\n corners: cornersComponent,\n centerWrapper: centerWrapperComponent,\n center: centerComponent,\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 { centerModifier } from './centerModifier';\nexport { cornersModifier } from './cornersModifier';\nexport { sidesModifier } from './sidesModifier';\nexport { sidesWrapper } from './sidesWrapper';\nexport { sides } from './sides';\nexport { cornersWrapper } from './cornersWrapper';\nexport { corners } from './corners';\nexport { centerWrapper } from './centerWrapper';\nexport { center } from './center';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.centerWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"centerModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.cornersWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"cornersModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.sidesWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"sidesModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 30)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 24 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 18 24)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 30 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"translate(0 12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sides: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${\n components.corners?.value(components, colors) ?? ''\n }<g transform=\"rotate(90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(180 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const corners: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12 12)\">${\n components.center?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const center: ComponentGroup = {\n shape1Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM8.5 12 5 5l7 3.5L19 5l-3.5 7 3.5 7-7-3.5L5 19l3.5-7Z\" fill=\"${colors.base.value}\"/>`,\n shape1: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 8.5 5 5l3.5 7L5 19l7-3.5 7 3.5-3.5-7L19 5l-7 3.5Z\" fill=\"${colors.base.value}\"/>`,\n shape2Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm13 13h7v7h-7v-7Zm-2 0H4v7h7v-7Zm2-9h7v7h-7V4Zm-2 0H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape2: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M13 4h7v7h-7V4ZM11 13H4v7h7v-7ZM20 13h-7v7h7v-7ZM11 4H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape3Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm11 16.5L4 13v7l7-3.5Zm2-9L20 4v7l-7-3.5ZM11 4H4l3.5 7L11 4Zm2 16 3.5-7 3.5 7h-7Z\" fill=\"${colors.base.value}\"/>`,\n shape3: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m20 11-7-3.5L20 4v7ZM13 20h7l-3.5-7-3.5 7ZM11 16.5 4 13v7l7-3.5ZM11 4H4l3.5 7L11 4Z\" fill=\"${colors.base.value}\"/>`,\n shape4Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 2v5l10 5h-5l-5 10v-5L2 12h5l5-10Z\" fill=\"${colors.base.value}\"/>`,\n shape4: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 7V2L7 12H2l10 5v5l5-10h5L12 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm20 16.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM16.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape6Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 6l-6 6 6 6 6-6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape6: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m6 12 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape7Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z\" fill=\"${colors.base.value}\"/>`,\n shape7: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"${colors.base.value}\"/>`,\n shape8: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path fill=\"${colors.base.value}\" d=\"M4 4h16v16H4z\"/>`,\n shape9: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v9L6 0h6ZM24 12h-9l9-6v6ZM12 24v-9l6 9h-6ZM9 12H0v6l9-6Z\" fill=\"${colors.base.value}\"/>`,\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 base: pickColor({\n prng,\n group: 'base',\n values: options.baseColor,\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 { base } from './base';\n","import type { ColorGroup } from '../static-types';\n\nexport const base: ColorGroup = {\n amber: 'rgba(255, 179, 0, 1)',\n blue: 'rgba(30, 136, 229, 1)',\n cyan: 'rgba(0, 172, 193, 1)',\n deepOrange: 'rgba(244, 81, 30, 1)',\n deepPurple: 'rgba(94, 53, 177, 1)',\n green: 'rgba(67, 160, 71, 1)',\n indigo: 'rgba(57, 73, 171, 1)',\n lightBlue: 'rgba(3, 155, 229, 1)',\n lightGreen: 'rgba(124, 179, 66, 1)',\n lime: 'rgba(192, 202, 51, 1)',\n orange: 'rgba(251, 140, 0, 1)',\n pink: 'rgba(216, 27, 96, 1)',\n purple: 'rgba(142, 36, 170, 1)',\n red: 'rgba(229, 57, 53, 1)',\n teal: 'rgba(0, 137, 123, 1)',\n yellow: 'rgba(253, 216, 53, 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 const pickModifier = <T extends string>(\n modifier: T[] = [],\n alreadyPicked: T[] = []\n ): T[] => {\n const pickItems = modifier.filter(\n (v) => false === alreadyPicked.includes(v) && v === 'none'\n );\n const pick = prng.pick(pickItems.length ? pickItems : modifier);\n\n return pick ? [pick] : [];\n };\n\n options.centerModifier = pickModifier(options.centerModifier);\n options.sidesModifier = pickModifier(options.sidesModifier, [\n options.centerModifier[0],\n ]);\n options.cornersModifier = pickModifier(options.cornersModifier, [\n options.centerModifier[0],\n options.sidesModifier[0],\n ]);\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 centerModifier: {\n width: 48,\n height: 48,\n },\n cornersModifier: {\n width: 48,\n height: 48,\n },\n sidesModifier: {\n width: 48,\n height: 48,\n },\n sidesWrapper: {\n width: 48,\n height: 48,\n },\n sides: {\n width: 12,\n height: 12,\n },\n cornersWrapper: {\n width: 48,\n height: 48,\n },\n corners: {\n width: 12,\n height: 12,\n },\n centerWrapper: {\n width: 48,\n height: 48,\n },\n center: {\n width: 24,\n height: 24,\n },\n};\n"],"names":[],"version":3,"file":"index.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/shapes",
3
- "version": "5.0.0-alpha.8",
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.8",
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": "37e053cb23e90bc621d3457b7fcc8e39e32ca1ac"
55
+ "gitHead": "d2861228315afd1fef06969d1eaf9655a027fbbb"
56
56
  }