@dicebear/croodles 4.9.0 → 5.0.0-alpha.1
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.md → LICENSE} +0 -0
- package/README.md +6 -5
- package/dist/colors/base.d.ts +1 -1
- package/dist/colors/top.d.ts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/hooks/onPostCreate.d.ts +12 -0
- package/dist/hooks/onPreCreate.d.ts +9 -0
- package/dist/index.d.ts +3 -6
- package/dist/index.es.js +628 -434
- package/dist/index.js +628 -434
- package/dist/index.umd.js +4 -3
- package/dist/meta/components.d.ts +4 -0
- package/dist/options.d.ts +11 -22
- package/dist/utils/getColors.d.ts +9 -0
- package/dist/utils/getComponents.d.ts +9 -0
- package/dist/utils/pickColor.d.ts +8 -2
- package/dist/utils/pickComponent.d.ts +8 -2
- package/package.json +10 -5
- package/dist/schema.d.ts +0 -2
package/{LICENSE.md → LICENSE}
RENAMED
|
File without changes
|
package/README.md
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
<h1 align="center"><img src="
|
|
1
|
+
<h1 align="center"><img src="./tests/svg/0.svg" width="124" /> <br />Croodles</h1>
|
|
2
2
|
<p align="center">
|
|
3
|
-
<strong>Avatar Style for <a href="https://dicebear.com/">DiceBear
|
|
4
|
-
|
|
3
|
+
<strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
|
|
4
|
+
<a href="https://www.figma.com/community/file/966199982810283152">Croodles - Doodle your face</a>
|
|
5
|
+
by vijay verma
|
|
5
6
|
</p>
|
|
6
7
|
|
|
7
8
|
<p align="center">
|
|
8
9
|
While our code is MIT licensed, the design is licensed under
|
|
9
|
-
|
|
10
|
-
for more information.
|
|
10
|
+
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
|
|
11
|
+
See <a href="https://dicebear.com/licenses">license overview</a> for more information.
|
|
11
12
|
</p>
|
|
12
13
|
|
|
13
14
|
<p align="center">
|
package/dist/colors/base.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ColorGroup } from
|
|
1
|
+
import type { ColorGroup } from '../static-types';
|
|
2
2
|
export declare const base: ColorGroup;
|
package/dist/colors/top.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ColorGroup } from
|
|
1
|
+
import type { ColorGroup } from '../static-types';
|
|
2
2
|
export declare const top: ColorGroup;
|
package/dist/core.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,9 @@
|
|
|
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.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Croodles
|
|
2
|
+
* Croodles (@dicebear/croodles)
|
|
3
3
|
*
|
|
4
4
|
* Code licensed under MIT License.
|
|
5
5
|
* Copyright (c) 2021 Florian Körner
|
|
@@ -8,9 +8,6 @@
|
|
|
8
8
|
* Source: https://www.figma.com/community/file/966199982810283152
|
|
9
9
|
* License: https://creativecommons.org/licenses/by/4.0/
|
|
10
10
|
*/
|
|
11
|
-
declare let create: import("@dicebear/
|
|
12
|
-
export { create, meta, schema };
|
|
11
|
+
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;
|
|
12
|
+
export { create, preview, meta, schema };
|
|
13
13
|
export { Options } from './options';
|
|
14
|
-
declare const _default: import("@dicebear/avatars").SpriteCollection<import("./options").Options>;
|
|
15
|
-
/** @deprecated will be removed in Version 5.0 */
|
|
16
|
-
export default _default;
|