@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 CHANGED
@@ -1,14 +1,20 @@
1
- /*!
2
- * Shapes (@dicebear/shapes)
3
- *
4
- * Code licensed under MIT License.
5
- * Copyright (c) 2021 Florian Körner
6
- * Copyright (c) 2021 Daniel Mester Pirttijärvi
7
- *
8
- * Design "Jdenticon" by Daniel Mester Pirttijärvi licensed under MIT.
9
- * Source: https://github.com/dmester/jdenticon
10
- * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/LICENSE
11
- */
12
- declare let 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;
13
- export { create, preview, meta, schema };
14
- export { Options } from './options';
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
+ }
18
+ 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;
19
+
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"mappings":"AACA;;;;GAIG;AAEH;IACE,SAAS,CAAC,EAAE,CACR,MAAM,GACN,CACI,OAAO,GACP,MAAM,GACN,MAAM,GACN,YAAY,GACZ,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,KAAK,GACL,MAAM,GACN,QAAQ,CACX,CACJ,EAAE,CAAC;IACJ,MAAM,CAAC,EAAE,CACL,gBAAgB,GAChB,QAAQ,GACR,gBAAgB,GAChB,QAAQ,GACR,gBAAgB,GAChB,QAAQ,GACR,gBAAgB,GAChB,QAAQ,GACR,gBAAgB,GAChB,QAAQ,GACR,gBAAgB,GAChB,QAAQ,GACR,gBAAgB,GAChB,QAAQ,GACR,QAAQ,GACR,QAAQ,CACX,EAAE,CAAC;IACJ,cAAc,CAAC,EAAE,CAAC,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC/D,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,CACN,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CACZ,EAAE,CAAC;IACJ,eAAe,CAAC,EAAE,CAAC,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAChE,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,CACJ,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CACZ,EAAE,CAAC;IACJ,aAAa,CAAC,EAAE,CAAC,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC;IAC9D,YAAY,CAAC,EAAE,SAAS,EAAE,CAAC;CAC5B;AsB/DD,OAAA,yPAA+C,CAAC","sources":["packages/@dicebear/shapes/src/src/options.ts","packages/@dicebear/shapes/src/src/static-types.ts","packages/@dicebear/shapes/src/src/components/centerModifier.ts","packages/@dicebear/shapes/src/src/components/cornersModifier.ts","packages/@dicebear/shapes/src/src/components/sidesModifier.ts","packages/@dicebear/shapes/src/src/components/sidesWrapper.ts","packages/@dicebear/shapes/src/src/components/sides.ts","packages/@dicebear/shapes/src/src/components/cornersWrapper.ts","packages/@dicebear/shapes/src/src/components/corners.ts","packages/@dicebear/shapes/src/src/components/centerWrapper.ts","packages/@dicebear/shapes/src/src/components/center.ts","packages/@dicebear/shapes/src/src/components/index.ts","packages/@dicebear/shapes/src/src/utils/pickComponent.ts","packages/@dicebear/shapes/src/src/utils/getComponents.ts","packages/@dicebear/shapes/src/src/colors/base.ts","packages/@dicebear/shapes/src/src/colors/index.ts","packages/@dicebear/shapes/src/src/utils/pickColor.ts","packages/@dicebear/shapes/src/src/utils/getColors.ts","packages/@dicebear/shapes/src/src/hooks/onPreCreate.ts","packages/@dicebear/shapes/src/src/hooks/onPostCreate.ts","packages/@dicebear/shapes/src/src/meta/components.ts","packages/@dicebear/shapes/src/src/core.ts","packages/@dicebear/shapes/src/src/index.ts","packages/@dicebear/shapes/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,null,null,"/*!\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"],"names":[],"version":3,"file":"index.d.ts.map"}