@dicebear/open-peeps 5.0.0-alpha.8 → 5.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/lib/components/accessories.d.ts +8 -0
- package/lib/components/accessories.js +16 -0
- package/lib/components/face.d.ts +8 -0
- package/lib/components/face.js +38 -0
- package/lib/components/facialHair.d.ts +8 -0
- package/lib/components/facialHair.js +25 -0
- package/lib/components/head.d.ts +8 -0
- package/lib/components/head.js +57 -0
- package/lib/components/index.d.ts +11 -0
- package/lib/components/index.js +11 -0
- package/lib/components/mask.d.ts +8 -0
- package/lib/components/mask.js +10 -0
- package/lib/core.d.ts +9 -0
- package/lib/core.js +40 -0
- package/lib/hooks/onPostCreate.d.ts +16 -0
- package/lib/hooks/onPostCreate.js +9 -0
- package/lib/hooks/onPreCreate.d.ts +14 -0
- package/lib/hooks/onPreCreate.js +9 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +20 -0
- package/lib/schema.d.ts +8 -0
- package/lib/schema.js +336 -0
- package/lib/types.d.ts +28 -0
- package/lib/types.js +7 -0
- package/lib/utils/getColors.d.ts +14 -0
- package/lib/utils/getColors.js +15 -0
- package/lib/utils/getComponents.d.ts +14 -0
- package/lib/utils/getComponents.js +42 -0
- package/lib/utils/pickComponent.d.ts +15 -0
- package/lib/utils/pickComponent.js +20 -0
- package/package.json +19 -28
- package/dist/index.d.ts +0 -21
- package/dist/index.d.ts.map +0 -1
- package/dist/index.es.js +0 -494
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -498
- package/dist/index.js.map +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,21 +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
|
-
accessories?: ("eyepatch" | "glasses" | "glasses2" | "glasses3" | "glasses4" | "glasses5" | "sunglasses" | "sunglasses2")[];
|
|
8
|
-
accessoriesProbability?: number;
|
|
9
|
-
clothingColor?: (string | ("red01" | "orange01" | "yellow01" | "green01" | "tail01" | "blue01" | "pink01"))[];
|
|
10
|
-
face?: ("angryWithFang" | "awe" | "blank" | "calm" | "cheeky" | "concerned" | "concernedFear" | "contempt" | "cute" | "cyclops" | "driven" | "eatingHappy" | "explaining" | "eyesClosed" | "fear" | "hectic" | "lovingGrin1" | "lovingGrin2" | "monster" | "old" | "rage" | "serious" | "smile" | "smileBig" | "smileLOL" | "smileTeethGap" | "solemn" | "suspicious" | "tired" | "veryAngry")[];
|
|
11
|
-
facialHair?: ("chin" | "full" | "full2" | "full3" | "full4" | "goatee1" | "goatee2" | "moustache1" | "moustache2" | "moustache3" | "moustache4" | "moustache5" | "moustache6" | "moustache7" | "moustache8" | "moustache9")[];
|
|
12
|
-
facialHairProbability?: number;
|
|
13
|
-
hairColor?: (string | ("variant01" | "variant02" | "variant03" | "variant04" | "variant05" | "variant06" | "variant07" | "variant08" | "variant09" | "variant10"))[];
|
|
14
|
-
head?: ("afro" | "bangs" | "bangs2" | "bantuKnots" | "bear" | "bun" | "bun2" | "buns" | "cornrows" | "cornrows2" | "dreads1" | "dreads2" | "flatTop" | "flatTopLong" | "grayBun" | "grayMedium" | "grayShort" | "hatBeanie" | "hatHip" | "hijab" | "long" | "longAfro" | "longBangs" | "longCurly" | "medium1" | "medium2" | "medium3" | "mediumBangs" | "mediumBangs2" | "mediumBangs3" | "mediumStraight" | "mohawk" | "mohawk2" | "noHair1" | "noHair2" | "noHair3" | "pomp" | "shaved1" | "shaved2" | "shaved3" | "short1" | "short2" | "short3" | "short4" | "short5" | "turban" | "twists" | "twists2")[];
|
|
15
|
-
mask?: ("medicalMask" | "respirator")[];
|
|
16
|
-
maskProbability?: number;
|
|
17
|
-
skinColor?: (string | ("variant01" | "variant02" | "variant03" | "variant04" | "variant05"))[];
|
|
18
|
-
}
|
|
19
|
-
export const create: import("@dicebear/core").StyleCreate<import("options").Options>, preview: import("@dicebear/core").StylePreview<import("options").Options> | undefined, meta: import("@dicebear/core").StyleMeta, schema: import("json-schema").JSONSchema7;
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"mappings":"AACA;;;;GAIG;AAEH;IACE,WAAW,CAAC,EAAE,CACV,UAAU,GACV,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,aAAa,CAChB,EAAE,CAAC;IACJ,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC;IAC9G,IAAI,CAAC,EAAE,CACH,eAAe,GACf,KAAK,GACL,OAAO,GACP,MAAM,GACN,QAAQ,GACR,WAAW,GACX,eAAe,GACf,UAAU,GACV,MAAM,GACN,SAAS,GACT,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,aAAa,GACb,aAAa,GACb,SAAS,GACT,KAAK,GACL,MAAM,GACN,SAAS,GACT,OAAO,GACP,UAAU,GACV,UAAU,GACV,eAAe,GACf,QAAQ,GACR,YAAY,GACZ,OAAO,GACP,WAAW,CACd,EAAE,CAAC;IACJ,UAAU,CAAC,EAAE,CACT,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,GACP,OAAO,GACP,SAAS,GACT,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,YAAY,CACf,EAAE,CAAC;IACJ,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,SAAS,CAAC,EAAE,CACR,MAAM,GACN,CACI,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,GACX,WAAW,CACd,CACJ,EAAE,CAAC;IACJ,IAAI,CAAC,EAAE,CACH,MAAM,GACN,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,UAAU,GACV,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,aAAa,GACb,SAAS,GACT,YAAY,GACZ,WAAW,GACX,WAAW,GACX,QAAQ,GACR,OAAO,GACP,MAAM,GACN,UAAU,GACV,WAAW,GACX,WAAW,GACX,SAAS,GACT,SAAS,GACT,SAAS,GACT,aAAa,GACb,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,MAAM,GACN,SAAS,GACT,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,CACZ,EAAE,CAAC;IACJ,IAAI,CAAC,EAAE,CAAC,aAAa,GAAG,YAAY,CAAC,EAAE,CAAC;IACxC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,CAAC,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC,CAAC,EAAE,CAAC;CAChG;AoB9HD,OAAA,yPAA+C,CAAC","sources":["packages/@dicebear/open-peeps/src/src/options.ts","packages/@dicebear/open-peeps/src/src/static-types.ts","packages/@dicebear/open-peeps/src/src/components/head.ts","packages/@dicebear/open-peeps/src/src/components/face.ts","packages/@dicebear/open-peeps/src/src/components/facialHair.ts","packages/@dicebear/open-peeps/src/src/components/mask.ts","packages/@dicebear/open-peeps/src/src/components/accessories.ts","packages/@dicebear/open-peeps/src/src/components/index.ts","packages/@dicebear/open-peeps/src/src/utils/pickComponent.ts","packages/@dicebear/open-peeps/src/src/utils/getComponents.ts","packages/@dicebear/open-peeps/src/src/colors/skin.ts","packages/@dicebear/open-peeps/src/src/colors/clothing.ts","packages/@dicebear/open-peeps/src/src/colors/hair.ts","packages/@dicebear/open-peeps/src/src/colors/index.ts","packages/@dicebear/open-peeps/src/src/utils/pickColor.ts","packages/@dicebear/open-peeps/src/src/utils/getColors.ts","packages/@dicebear/open-peeps/src/src/hooks/onPreCreate.ts","packages/@dicebear/open-peeps/src/src/hooks/onPostCreate.ts","packages/@dicebear/open-peeps/src/src/meta/components.ts","packages/@dicebear/open-peeps/src/src/core.ts","packages/@dicebear/open-peeps/src/src/index.ts","packages/@dicebear/open-peeps/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"/*!\n * Open Peeps (@dicebear/open-peeps)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n *\n * Design \"Open Peeps\" by Pablo Stanley licensed under CC0 1.0.\n * Source: https://www.openpeeps.com/\n * License: https://creativecommons.org/publicdomain/zero/1.0/\n */\n\nimport { style } from './core';\n\nconst { create, preview, meta, schema } = style;\n\nexport { create, preview, meta, schema };\nexport type { Options } from './options';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|