@dicebear/shapes 5.0.0-alpha.5 → 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.d.ts +20 -14
- package/dist/index.d.ts.map +1 -0
- package/dist/index.es.js +427 -670
- package/dist/index.es.js.map +1 -0
- package/dist/index.js +431 -677
- package/dist/index.js.map +1 -0
- package/package.json +14 -9
- package/dist/colors/base.d.ts +0 -2
- package/dist/colors/index.d.ts +0 -1
- package/dist/components/center.d.ts +0 -2
- package/dist/components/centerModifier.d.ts +0 -2
- package/dist/components/centerWrapper.d.ts +0 -2
- package/dist/components/corners.d.ts +0 -2
- package/dist/components/cornersModifier.d.ts +0 -2
- package/dist/components/cornersWrapper.d.ts +0 -2
- package/dist/components/index.d.ts +0 -9
- package/dist/components/sides.d.ts +0 -2
- package/dist/components/sidesModifier.d.ts +0 -2
- package/dist/components/sidesWrapper.d.ts +0 -2
- package/dist/core.d.ts +0 -3
- package/dist/hooks/onPostCreate.d.ts +0 -12
- package/dist/hooks/onPreCreate.d.ts +0 -9
- package/dist/index.umd.js +0 -13
- package/dist/meta/components.d.ts +0 -4
- package/dist/options.d.ts +0 -17
- package/dist/static-types.d.ts +0 -16
- package/dist/utils/getColors.d.ts +0 -9
- package/dist/utils/getComponents.d.ts +0 -9
- package/dist/utils/pickColor.d.ts +0 -9
- package/dist/utils/pickComponent.d.ts +0 -9
|
@@ -0,0 +1 @@
|
|
|
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,IA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AAC;QAEjE,EAAE,EAAE,cAAc,IAAI,UAAU,EAAE,CAAC;gBASzB,GAA0B;YARlC,KAAK,CAAC,CAAC,QAAC,KAAK,WAAE,MAAM,EAAC,CAAC,GAAG,yCAAU,CAAC,cAAc;gBAQ3C,IAAqD;YAN7D,MAAM,CAAC,CAAC;gBACN,UAAU,EAAE,CAAC;oBACX,OAAO,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,EAAE,MAAM;oBAC/B,IAAI,EAAE,CAAM;oBACZ,CAAiB,kBAAE,CAAM;gBAC3B,CAAC;gBACD,IAAI,GAAE,IAAqD,IAArD,GAA0B,GAA1B,UAAU,CAAC,cAAc,eAAzB,GAA0B,KAA1B,IAAI,CAAJ,CAAiC,GAAjC,IAAI,CAAJ,CAAiC,GAAjC,GAA0B,CAAE,KAAK,CAAC,UAAU,EAAE,MAAM,eAApD,IAAqD,cAArD,IAAqD,GAAI,CAAE;YACnE,CAAC;QACH,CAAC;QAED,EAAE,EAAE,UAAU,IAAI,MAAM,EACtB,MAAM,CAAC,CAAC;YACN,UAAU,EAAE,CAAC;gBACX,OAAO,GAAG,OAAO;gBACjB,IAAI,EAAE,CAAM;gBACZ,CAAiB,kBAAE,CAAM;YAC3B,CAAC;YACD,IAAI,GAAG,iCAAiC,EAAE,MAAM,CAAC,UAAU,EAAE,KAAK,CAAC,IAAI;QACzE,CAAC;QAGH,MAAM,CAAC,SAAS;IAClB,CAAC;AACH,CAAC;;;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.
|
|
3
|
+
"version": "5.0.0-alpha.9",
|
|
4
4
|
"description": "Avatar style for DiceBear",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dicebear"
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"url": "git+https://github.com/dicebear/dicebear.git"
|
|
14
14
|
},
|
|
15
15
|
"license": "MIT",
|
|
16
|
+
"browserslist": ">.25%, not IE > 0, not dead",
|
|
16
17
|
"source": "src/index.ts",
|
|
17
18
|
"main": "dist/index.js",
|
|
18
19
|
"module": "dist/index.es.js",
|
|
19
|
-
"browser": "dist/index.umd.js",
|
|
20
20
|
"types": "dist/index.d.ts",
|
|
21
21
|
"files": [
|
|
22
22
|
"LICENSE",
|
|
@@ -27,25 +27,30 @@
|
|
|
27
27
|
"test": "jest",
|
|
28
28
|
"prepublishOnly": "npm run build",
|
|
29
29
|
"prebuild": "shx rm -rf dist",
|
|
30
|
-
"build": "
|
|
30
|
+
"build": "npm-run-all build:*",
|
|
31
|
+
"build:schema": "json2ts src/schema.json src/options.ts",
|
|
32
|
+
"build:parcel": "parcel build"
|
|
31
33
|
},
|
|
32
34
|
"devDependencies": {
|
|
33
|
-
"@dicebear/core": "^5.0.0-alpha.
|
|
35
|
+
"@dicebear/core": "^5.0.0-alpha.9",
|
|
36
|
+
"@parcel/packager-ts": "^2.0.1",
|
|
37
|
+
"@parcel/transformer-typescript-types": "^2.0.1",
|
|
34
38
|
"@tsconfig/recommended": "^1.0.0",
|
|
35
39
|
"@types/jest": "^26.0.22",
|
|
36
40
|
"@types/node": "^10.11.6",
|
|
37
|
-
"dicebear-project": "^5.0.0-alpha.5",
|
|
38
41
|
"jest": "^26.6.3",
|
|
42
|
+
"json-schema-to-typescript": "^10.1.5",
|
|
43
|
+
"npm-run-all": "^4.1.5",
|
|
44
|
+
"parcel": "^2.0.1",
|
|
39
45
|
"shx": "^0.3.3",
|
|
40
46
|
"ts-jest": "^26.5.4",
|
|
41
|
-
"typescript": "^4.2
|
|
42
|
-
"utility-types": "^3.10.0"
|
|
47
|
+
"typescript": "^4.5.2"
|
|
43
48
|
},
|
|
44
49
|
"peerDependencies": {
|
|
45
|
-
"@dicebear/core": "^5.0.0-alpha.
|
|
50
|
+
"@dicebear/core": "^5.0.0-alpha.6"
|
|
46
51
|
},
|
|
47
52
|
"publishConfig": {
|
|
48
53
|
"access": "public"
|
|
49
54
|
},
|
|
50
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "d2861228315afd1fef06969d1eaf9655a027fbbb"
|
|
51
56
|
}
|
package/dist/colors/base.d.ts
DELETED
package/dist/colors/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { base } from './base';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export { centerModifier } from './centerModifier';
|
|
2
|
-
export { cornersModifier } from './cornersModifier';
|
|
3
|
-
export { sidesModifier } from './sidesModifier';
|
|
4
|
-
export { sidesWrapper } from './sidesWrapper';
|
|
5
|
-
export { sides } from './sides';
|
|
6
|
-
export { cornersWrapper } from './cornersWrapper';
|
|
7
|
-
export { corners } from './corners';
|
|
8
|
-
export { centerWrapper } from './centerWrapper';
|
|
9
|
-
export { center } from './center';
|
package/dist/core.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Prng, StyleOptions } from '@dicebear/core';
|
|
2
|
-
import { Options } from '../options';
|
|
3
|
-
import { ColorPickCollection, ComponentPickCollection } from '../static-types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
prng: Prng;
|
|
6
|
-
options: StyleOptions<Options>;
|
|
7
|
-
components: ComponentPickCollection;
|
|
8
|
-
colors: ColorPickCollection;
|
|
9
|
-
preview: boolean;
|
|
10
|
-
};
|
|
11
|
-
export declare function onPostCreate({ prng, options, components, colors, preview, }: Props): void;
|
|
12
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Prng, StyleOptions } from '@dicebear/core';
|
|
2
|
-
import { Options } from '../options';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
prng: Prng;
|
|
5
|
-
options: StyleOptions<Options>;
|
|
6
|
-
preview: boolean;
|
|
7
|
-
};
|
|
8
|
-
export declare function onPreCreate({ prng, options, preview }: Props): void;
|
|
9
|
-
export {};
|
package/dist/index.umd.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
!function(e,a){"object"==typeof exports&&"undefined"!=typeof module?a(exports):"function"==typeof define&&define.amd?define(["exports"],a):a(((e="undefined"!=typeof globalThis?globalThis:e||self).DiceBear=e.DiceBear||{},e.DiceBear.Shapes={}))}(this,(function(e){"use strict";var a={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:!1};var r=Object.freeze({__proto__:null,centerModifier:{none:(e,a)=>{var r,t;return"".concat(null!==(r=null===(t=e.centerWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"")},lightGray:(e,a)=>{var r,t;return'<mask id="centerModifierLightGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">'.concat(null!==(r=null===(t=e.centerWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</mask><g mask="url(#centerModifierLightGray-a)"><path fill="#E5E5E5" d="M0 0h48v48H0z"/></g>')},gray:(e,a)=>{var r,t;return'<mask id="centerModifierGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">'.concat(null!==(r=null===(t=e.centerWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</mask><g mask="url(#centerModifierGray-a)"><path fill="#737373" d="M0 0h48v48H0z"/></g>')},lighten:(e,a)=>{var r,t;return'<mask id="centerModifierLighten-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">'.concat(null!==(r=null===(t=e.centerWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</mask><g mask="url(#centerModifierLighten-a)"><path fill="').concat(a.base.value,'" d="M0 0h48v48H0z"/><path fill="#fff" fill-opacity=".5" d="M0 0h48v48H0z"/></g>')}},cornersModifier:{none:(e,a)=>{var r,t;return"".concat(null!==(r=null===(t=e.cornersWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"")},lightGray:(e,a)=>{var r,t;return'<mask id="cornersModifierLightGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">'.concat(null!==(r=null===(t=e.cornersWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</mask><g mask="url(#cornersModifierLightGray-a)"><path fill="#E5E5E5" d="M0 0h48v48H0z"/></g>')},gray:(e,a)=>{var r,t;return'<mask id="cornersModifierGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">'.concat(null!==(r=null===(t=e.cornersWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</mask><g mask="url(#cornersModifierGray-a)"><path fill="#737373" d="M0 0h48v48H0z"/></g>')},lighten:(e,a)=>{var r,t;return'<mask id="cornersModifierLighten-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">'.concat(null!==(r=null===(t=e.cornersWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</mask><g mask="url(#cornersModifierLighten-a)"><path fill="').concat(a.base.value,'" d="M0 0h48v48H0z"/><path fill="#fff" fill-opacity=".5" d="M0 0h48v48H0z"/></g>')}},sidesModifier:{none:(e,a)=>{var r,t;return"".concat(null!==(r=null===(t=e.sidesWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"")},lightGray:(e,a)=>{var r,t;return'<mask id="sidesModifierLightGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">'.concat(null!==(r=null===(t=e.sidesWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</mask><g mask="url(#sidesModifierLightGray-a)"><path fill="#E5E5E5" d="M0 0h48v48H0z"/></g>')},gray:(e,a)=>{var r,t;return'<mask id="sidesModifierGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">'.concat(null!==(r=null===(t=e.sidesWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</mask><g mask="url(#sidesModifierGray-a)"><path fill="#737373" d="M0 0h48v48H0z"/></g>')},lighten:(e,a)=>{var r,t;return'<mask id="sidesModifierLighten-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">'.concat(null!==(r=null===(t=e.sidesWrapper)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</mask><g mask="url(#sidesModifierLighten-a)"><path fill="').concat(a.base.value,'" d="M0 0h48v48H0z"/><path fill="#fff" fill-opacity=".5" d="M0 0h48v48H0z"/></g>')}},sidesWrapper:{default:(e,a)=>{var r,t,i,l,n,s,o,p,d,h,c,v,u,g,f,m;return'<g transform="translate(12)">'.concat(null!==(r=null===(t=e.sides)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'</g><g transform="rotate(90 18 18)">').concat(null!==(i=null===(l=e.sides)||void 0===l?void 0:l.value(e,a))&&void 0!==i?i:"",'</g><g transform="rotate(90 18 30)">').concat(null!==(n=null===(s=e.sides)||void 0===s?void 0:s.value(e,a))&&void 0!==n?n:"",'</g><g transform="rotate(-180 24 18)">').concat(null!==(o=null===(p=e.sides)||void 0===p?void 0:p.value(e,a))&&void 0!==o?o:"",'</g><g transform="rotate(-180 18 24)">').concat(null!==(d=null===(h=e.sides)||void 0===h?void 0:h.value(e,a))&&void 0!==d?d:"",'</g><g transform="rotate(-90 30 18)">').concat(null!==(c=null===(v=e.sides)||void 0===v?void 0:v.value(e,a))&&void 0!==c?c:"",'</g><g transform="rotate(-90 18 18)">').concat(null!==(u=null===(g=e.sides)||void 0===g?void 0:g.value(e,a))&&void 0!==u?u:"",'</g><g transform="translate(0 12)">').concat(null!==(f=null===(m=e.sides)||void 0===m?void 0:m.value(e,a))&&void 0!==f?f:"","</g>")}},sides:{shape10:(e,a)=>'<path d="M0 12V0l12 12H0Z" fill="'.concat(a.base.value,'"/>'),shape09:(e,a)=>'<path d="M12 12H0L12 0v12Z" fill="'.concat(a.base.value,'"/>'),shape08:(e,a)=>'<path d="M12 0v12L0 0h12Z" fill="'.concat(a.base.value,'"/>'),shape07:(e,a)=>'<path d="M0 0h12L0 12V0Z" fill="'.concat(a.base.value,'"/>'),shape06:(e,a)=>'<circle cx="6" cy="6" r="4" fill="'.concat(a.base.value,'"/>'),shape05:(e,a)=>'<path d="M12 0H0l12 6V0Z" fill="'.concat(a.base.value,'"/>'),shape04:(e,a)=>'<path d="M0 0v12L6 0H0Z" fill="'.concat(a.base.value,'"/>'),shape03:(e,a)=>'<path d="M0 12h12L0 6v6Z" fill="'.concat(a.base.value,'"/>'),shape02:(e,a)=>'<path d="M12 12V0L6 12h6Z" fill="'.concat(a.base.value,'"/>'),shape01:(e,a)=>'<path d="m0 6 6-6 6 6-6 6-6-6Z" fill="'.concat(a.base.value,'"/>')},cornersWrapper:{default:(e,a)=>{var r,t,i,l,n,s,o,p;return"".concat(null!==(r=null===(t=e.corners)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"",'<g transform="rotate(90 24 24)">').concat(null!==(i=null===(l=e.corners)||void 0===l?void 0:l.value(e,a))&&void 0!==i?i:"",'</g><g transform="rotate(-90 24 24)">').concat(null!==(n=null===(s=e.corners)||void 0===s?void 0:s.value(e,a))&&void 0!==n?n:"",'</g><g transform="rotate(180 24 24)">').concat(null!==(o=null===(p=e.corners)||void 0===p?void 0:p.value(e,a))&&void 0!==o?o:"","</g>")}},corners:{shape10:(e,a)=>'<path d="M0 12V0l12 12H0Z" fill="'.concat(a.base.value,'"/>'),shape09:(e,a)=>'<path d="M12 12H0L12 0v12Z" fill="'.concat(a.base.value,'"/>'),shape08:(e,a)=>'<path d="M12 0v12L0 0h12Z" fill="'.concat(a.base.value,'"/>'),shape07:(e,a)=>'<path d="M0 0h12L0 12V0Z" fill="'.concat(a.base.value,'"/>'),shape06:(e,a)=>'<circle cx="6" cy="6" r="4" fill="'.concat(a.base.value,'"/>'),shape05:(e,a)=>'<path d="M12 0H0l12 6V0Z" fill="'.concat(a.base.value,'"/>'),shape04:(e,a)=>'<path d="M0 0v12L6 0H0Z" fill="'.concat(a.base.value,'"/>'),shape03:(e,a)=>'<path d="M0 12h12L0 6v6Z" fill="'.concat(a.base.value,'"/>'),shape02:(e,a)=>'<path d="M12 12V0L6 12h6Z" fill="'.concat(a.base.value,'"/>'),shape01:(e,a)=>'<path d="m0 6 6-6 6 6-6 6-6-6Z" fill="'.concat(a.base.value,'"/>')},centerWrapper:{default:(e,a)=>{var r,t;return'<g transform="translate(12 12)">'.concat(null!==(r=null===(t=e.center)||void 0===t?void 0:t.value(e,a))&&void 0!==r?r:"","</g>")}},center:{shape1Inverted:(e,a)=>'<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="'.concat(a.base.value,'"/>'),shape1:(e,a)=>'<path d="M12 8.5 5 5l3.5 7L5 19l7-3.5 7 3.5-3.5-7L19 5l-7 3.5Z" fill="'.concat(a.base.value,'"/>'),shape2Inverted:(e,a)=>'<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0h24v24H0V0Zm13 13h7v7h-7v-7Zm-2 0H4v7h7v-7Zm2-9h7v7h-7V4Zm-2 0H4v7h7V4Z" fill="'.concat(a.base.value,'"/>'),shape2:(e,a)=>'<path d="M13 4h7v7h-7V4ZM11 13H4v7h7v-7ZM20 13h-7v7h7v-7ZM11 4H4v7h7V4Z" fill="'.concat(a.base.value,'"/>'),shape3Inverted:(e,a)=>'<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="'.concat(a.base.value,'"/>'),shape3:(e,a)=>'<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="'.concat(a.base.value,'"/>'),shape4Inverted:(e,a)=>'<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM12 2v5l10 5h-5l-5 10v-5L2 12h5l5-10Z" fill="'.concat(a.base.value,'"/>'),shape4:(e,a)=>'<path d="M12 7V2L7 12H2l10 5v5l5-10h5L12 7Z" fill="'.concat(a.base.value,'"/>'),shape5Inverted:(e,a)=>'<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="'.concat(a.base.value,'"/>'),shape5:(e,a)=>'<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="'.concat(a.base.value,'"/>'),shape6Inverted:(e,a)=>'<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM12 6l-6 6 6 6 6-6-6-6Z" fill="'.concat(a.base.value,'"/>'),shape6:(e,a)=>'<path d="m6 12 6-6 6 6-6 6-6-6Z" fill="'.concat(a.base.value,'"/>'),shape7Inverted:(e,a)=>'<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="'.concat(a.base.value,'"/>'),shape7:(e,a)=>'<circle cx="12" cy="12" r="7" fill="'.concat(a.base.value,'"/>'),shape8:(e,a)=>'<path fill="'.concat(a.base.value,'" d="M4 4h16v16H4z"/>'),shape9:(e,a)=>'<path d="M12 0v9L6 0h6ZM24 12h-9l9-6v6ZM12 24v-9l6 9h-6ZM9 12H0v6l9-6Z" fill="'.concat(a.base.value,'"/>')}});function t(e){let{prng:a,group:t,values:i=[]}=e;const l=r,n=a.pick(i);return l[t][n]?{name:n,value:l[t][n]}:void 0}function i(e){let{prng:a,options:r}=e;return{centerModifier:t({prng:a,group:"centerModifier",values:r.centerModifier}),cornersModifier:t({prng:a,group:"cornersModifier",values:r.cornersModifier}),sidesModifier:t({prng:a,group:"sidesModifier",values:r.sidesModifier}),sidesWrapper:t({prng:a,group:"sidesWrapper",values:r.sidesWrapper}),sides:t({prng:a,group:"sides",values:r.sides}),cornersWrapper:t({prng:a,group:"cornersWrapper",values:r.cornersWrapper}),corners:t({prng:a,group:"corners",values:r.corners}),centerWrapper:t({prng:a,group:"centerWrapper",values:r.centerWrapper}),center:t({prng:a,group:"center",values:r.center})}}var l=Object.freeze({__proto__:null,base:{amber:"rgba(255, 179, 0, 1)",blue:"rgba(30, 136, 229, 1)",cyan:"rgba(0, 172, 193, 1)",deepOrange:"rgba(244, 81, 30, 1)",deepPurple:"rgba(94, 53, 177, 1)",green:"rgba(67, 160, 71, 1)",indigo:"rgba(57, 73, 171, 1)",lightBlue:"rgba(3, 155, 229, 1)",lightGreen:"rgba(124, 179, 66, 1)",lime:"rgba(192, 202, 51, 1)",orange:"rgba(251, 140, 0, 1)",pink:"rgba(216, 27, 96, 1)",purple:"rgba(142, 36, 170, 1)",red:"rgba(229, 57, 53, 1)",teal:"rgba(0, 137, 123, 1)",yellow:"rgba(253, 216, 53, 1)"}});function n(e){var a;let{prng:r,group:t,values:i=[]}=e;const n=l;0===i.length&&i.push("transparent");const s=r.pick(i);return{name:s,value:null!==(a=n[t][s])&&void 0!==a?a:s}}function s(e){let{prng:a,options:r}=e;return{base:n({prng:a,group:"base",values:r.baseColor})}}function o(e){let{prng:a,options:r,preview:t}=e;const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t=e.filter((e=>!1===r.includes(e)&&"none"===e)),i=a.pick(t.length?t:e);return i?[i]:[]};r.centerModifier=i(r.centerModifier),r.sidesModifier=i(r.sidesModifier,[r.centerModifier[0]]),r.cornersModifier=i(r.cornersModifier,[r.centerModifier[0],r.sidesModifier[0]])}const p={centerModifier:{width:48,height:48},cornersModifier:{width:48,height:48},sidesModifier:{width:48,height:48},sidesWrapper:{width:48,height:48},sides:{width:12,height:12},cornersWrapper:{width:48,height:48},corners:{width:12,height:12},centerWrapper:{width:48,height:48},center:{width:24,height:24}},d={meta:{title:"Jdenticon",creator:"Daniel Mester Pirttijärvi",source:"https://github.com/dmester/jdenticon",license:{name:"MIT",url:"https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/LICENSE"}},schema:a,create:e=>{var a,r,t,l;let{prng:n,options:p}=e;o({prng:n,options:p,preview:!1});const d=i({prng:n,options:p}),h=s({prng:n,options:p});return{attributes:{viewBox:"0 0 48 48",fill:"none","shape-rendering":"auto"},body:"".concat(null!==(a=null===(r=d.centerModifiercomponent)||void 0===r?void 0:r.value(d,h))&&void 0!==a?a:"","::cornersModifier").concat(null!==(t=null===(l=d.sidesModifier)||void 0===l?void 0:l.value(d,h))&&void 0!==t?t:"")}},preview:e=>{let{prng:a,options:r,property:t}=e;const l=t.toString(),n=t.toString().replace(/Color$/,"");o({prng:a,options:r,preview:!0});const d=i({prng:a,options:r}),h=s({prng:a,options:r});if(l in d){var c,v;const{width:e,height:a}=p[l];return{attributes:{viewBox:"0 0 ".concat(e," ").concat(a),fill:"none","shape-rendering":"auto"},body:null!==(c=null===(v=d[l])||void 0===v?void 0:v.value(d,h))&&void 0!==c?c:""}}if(n in h)return{attributes:{viewBox:"0 0 1 1",fill:"none","shape-rendering":"auto"},body:'<rect width="1" height="1" fill="'.concat(h[n].value,'" />')}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Shapes (@dicebear/shapes)
|
|
4
|
-
*
|
|
5
|
-
* Code licensed under MIT License.
|
|
6
|
-
* Copyright (c) 2021 Florian Körner
|
|
7
|
-
* Copyright (c) 2021 Daniel Mester Pirttijärvi
|
|
8
|
-
*
|
|
9
|
-
* Design "Jdenticon" by Daniel Mester Pirttijärvi licensed under MIT.
|
|
10
|
-
* Source: https://github.com/dmester/jdenticon
|
|
11
|
-
* License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/LICENSE
|
|
12
|
-
*/
|
|
13
|
-
let{create:h,preview:c,meta:v,schema:u}=d;e.create=h,e.meta=v,e.preview=c,e.schema=u,Object.defineProperty(e,"__esModule",{value:!0})}));
|
package/dist/options.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
-
*/
|
|
6
|
-
export interface Options {
|
|
7
|
-
baseColor?: (string | ("amber" | "blue" | "cyan" | "deepOrange" | "deepPurple" | "green" | "indigo" | "lightBlue" | "lightGreen" | "lime" | "orange" | "pink" | "purple" | "red" | "teal" | "yellow"))[];
|
|
8
|
-
center?: ("shape1Inverted" | "shape1" | "shape2Inverted" | "shape2" | "shape3Inverted" | "shape3" | "shape4Inverted" | "shape4" | "shape5Inverted" | "shape5" | "shape6Inverted" | "shape6" | "shape7Inverted" | "shape7" | "shape8" | "shape9")[];
|
|
9
|
-
centerModifier?: ("none" | "lightGray" | "gray" | "lighten")[];
|
|
10
|
-
centerWrapper?: "default"[];
|
|
11
|
-
corners?: ("shape10" | "shape09" | "shape08" | "shape07" | "shape06" | "shape05" | "shape04" | "shape03" | "shape02" | "shape01")[];
|
|
12
|
-
cornersModifier?: ("none" | "lightGray" | "gray" | "lighten")[];
|
|
13
|
-
cornersWrapper?: "default"[];
|
|
14
|
-
sides?: ("shape10" | "shape09" | "shape08" | "shape07" | "shape06" | "shape05" | "shape04" | "shape03" | "shape02" | "shape01")[];
|
|
15
|
-
sidesModifier?: ("none" | "lightGray" | "gray" | "lighten")[];
|
|
16
|
-
sidesWrapper?: "default"[];
|
|
17
|
-
}
|
package/dist/static-types.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare type ColorGroup = Record<string, ColorGroupItem>;
|
|
2
|
-
export declare type ColorGroupCollection = Record<string, ColorGroup>;
|
|
3
|
-
export declare type ColorGroupItem = string;
|
|
4
|
-
export declare type ColorPickCollection = Record<string, ColorPick>;
|
|
5
|
-
export declare type ColorPick = {
|
|
6
|
-
name: string;
|
|
7
|
-
value: ColorGroupItem;
|
|
8
|
-
};
|
|
9
|
-
export declare type ComponentGroup = Record<string, ComponentGroupItem>;
|
|
10
|
-
export declare type ComponentGroupCollection = Record<string, ComponentGroup>;
|
|
11
|
-
export declare type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
|
|
12
|
-
export declare type ComponentPickCollection = Record<string, ComponentPick>;
|
|
13
|
-
export declare type ComponentPick = {
|
|
14
|
-
name: string;
|
|
15
|
-
value: ComponentGroupItem;
|
|
16
|
-
} | undefined;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Prng } from '@dicebear/core';
|
|
2
|
-
import type { Options } from '../options';
|
|
3
|
-
import type { ColorPickCollection } from '../static-types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
prng: Prng;
|
|
6
|
-
options: Options;
|
|
7
|
-
};
|
|
8
|
-
export declare function getColors({ prng, options }: Props): ColorPickCollection;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Prng } from '@dicebear/core';
|
|
2
|
-
import type { Options } from '../options';
|
|
3
|
-
import type { ComponentPickCollection } from '../static-types';
|
|
4
|
-
declare type Props = {
|
|
5
|
-
prng: Prng;
|
|
6
|
-
options: Options;
|
|
7
|
-
};
|
|
8
|
-
export declare function getComponents({ prng, options, }: Props): ComponentPickCollection;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Prng } from '@dicebear/core';
|
|
2
|
-
import type { ColorPick } from '../static-types';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
prng: Prng;
|
|
5
|
-
group: string;
|
|
6
|
-
values?: string[];
|
|
7
|
-
};
|
|
8
|
-
export declare function pickColor({ prng, group, values }: Props): ColorPick;
|
|
9
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { Prng } from '@dicebear/core';
|
|
2
|
-
import type { ComponentPick } from '../static-types';
|
|
3
|
-
declare type Props = {
|
|
4
|
-
prng: Prng;
|
|
5
|
-
group: string;
|
|
6
|
-
values?: string[];
|
|
7
|
-
};
|
|
8
|
-
export declare function pickComponent({ prng, group, values, }: Props): ComponentPick;
|
|
9
|
-
export {};
|