@dicebear/open-peeps 5.0.0-alpha.3 → 5.0.0-alpha.32

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.
Files changed (52) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/lib/components/accessories.d.ts +2 -0
  4. package/lib/components/accessories.js +10 -0
  5. package/lib/components/face.d.ts +2 -0
  6. package/lib/components/face.js +32 -0
  7. package/lib/components/facialHair.d.ts +2 -0
  8. package/lib/components/facialHair.js +19 -0
  9. package/lib/components/head.d.ts +2 -0
  10. package/lib/components/head.js +51 -0
  11. package/lib/components/index.d.ts +5 -0
  12. package/lib/components/index.js +5 -0
  13. package/lib/components/mask.d.ts +2 -0
  14. package/lib/components/mask.js +4 -0
  15. package/{dist → lib}/core.d.ts +3 -3
  16. package/lib/core.js +34 -0
  17. package/{dist → lib}/hooks/onPostCreate.d.ts +10 -12
  18. package/lib/hooks/onPostCreate.js +3 -0
  19. package/lib/hooks/onPreCreate.d.ts +8 -0
  20. package/lib/hooks/onPreCreate.js +3 -0
  21. package/lib/index.d.ts +3 -0
  22. package/lib/index.js +13 -0
  23. package/lib/schema.d.ts +2 -0
  24. package/lib/schema.js +431 -0
  25. package/lib/types.d.ts +25 -0
  26. package/lib/types.js +1 -0
  27. package/{dist → lib}/utils/getColors.d.ts +8 -9
  28. package/lib/utils/getColors.js +8 -0
  29. package/{dist → lib}/utils/getComponents.d.ts +8 -9
  30. package/lib/utils/getComponents.js +39 -0
  31. package/{dist → lib}/utils/pickComponent.d.ts +9 -9
  32. package/lib/utils/pickComponent.js +11 -0
  33. package/package.json +19 -23
  34. package/dist/colors/clothing.d.ts +0 -2
  35. package/dist/colors/hair.d.ts +0 -2
  36. package/dist/colors/index.d.ts +0 -3
  37. package/dist/colors/skin.d.ts +0 -2
  38. package/dist/components/accessories.d.ts +0 -2
  39. package/dist/components/face.d.ts +0 -2
  40. package/dist/components/facialHair.d.ts +0 -2
  41. package/dist/components/head.d.ts +0 -2
  42. package/dist/components/index.d.ts +0 -5
  43. package/dist/components/mask.d.ts +0 -2
  44. package/dist/hooks/onPreCreate.d.ts +0 -9
  45. package/dist/index.d.ts +0 -13
  46. package/dist/index.es.js +0 -780
  47. package/dist/index.js +0 -787
  48. package/dist/index.umd.js +0 -12
  49. package/dist/meta/components.d.ts +0 -4
  50. package/dist/options.d.ts +0 -18
  51. package/dist/static-types.d.ts +0 -16
  52. package/dist/utils/pickColor.d.ts +0 -9
@@ -1,2 +0,0 @@
1
- import type { ColorGroup } from '../static-types';
2
- export declare const skin: ColorGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const accessories: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const face: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const facialHair: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const head: ComponentGroup;
@@ -1,5 +0,0 @@
1
- export { head } from './head';
2
- export { face } from './face';
3
- export { facialHair } from './facialHair';
4
- export { mask } from './mask';
5
- export { accessories } from './accessories';
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const mask: ComponentGroup;
@@ -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.d.ts DELETED
@@ -1,13 +0,0 @@
1
- /*!
2
- * Open Peeps (@dicebear/open-peeps)
3
- *
4
- * Code licensed under MIT License.
5
- * Copyright (c) 2021 Florian Körner
6
- *
7
- * Design "Open Peeps" by Pablo Stanley licensed under CC0 1.0.
8
- * Source: https://www.openpeeps.com/
9
- * License: https://creativecommons.org/publicdomain/zero/1.0/
10
- */
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
- export { Options } from './options';