@dicebear/shapes 5.0.0-alpha.1 → 5.0.0-alpha.10
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
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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"}
|