@dicebear/micah 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 (77) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/lib/components/base.d.ts +2 -0
  4. package/lib/components/base.js +7 -0
  5. package/lib/components/earrings.d.ts +2 -0
  6. package/lib/components/earrings.js +5 -0
  7. package/lib/components/ears.d.ts +2 -0
  8. package/lib/components/ears.js +11 -0
  9. package/lib/components/eyebrows.d.ts +2 -0
  10. package/lib/components/eyebrows.js +7 -0
  11. package/lib/components/eyes.d.ts +2 -0
  12. package/lib/components/eyes.js +19 -0
  13. package/lib/components/facialHair.d.ts +2 -0
  14. package/lib/components/facialHair.js +4 -0
  15. package/lib/components/glasses.d.ts +2 -0
  16. package/lib/components/glasses.js +5 -0
  17. package/lib/components/hair.d.ts +2 -0
  18. package/lib/components/hair.js +11 -0
  19. package/lib/components/index.d.ts +11 -0
  20. package/lib/components/index.js +11 -0
  21. package/lib/components/mouth.d.ts +2 -0
  22. package/lib/components/mouth.js +11 -0
  23. package/lib/components/nose.d.ts +2 -0
  24. package/lib/components/nose.js +5 -0
  25. package/lib/components/shirt.d.ts +2 -0
  26. package/lib/components/shirt.js +6 -0
  27. package/{dist → lib}/core.d.ts +3 -3
  28. package/lib/core.js +33 -0
  29. package/{dist → lib}/hooks/onPostCreate.d.ts +10 -12
  30. package/lib/hooks/onPostCreate.js +6 -0
  31. package/lib/hooks/onPreCreate.d.ts +8 -0
  32. package/lib/hooks/onPreCreate.js +26 -0
  33. package/lib/index.d.ts +3 -0
  34. package/lib/index.js +13 -0
  35. package/lib/schema.d.ts +2 -0
  36. package/lib/schema.js +303 -0
  37. package/lib/types.d.ts +39 -0
  38. package/lib/types.js +1 -0
  39. package/{dist → lib}/utils/getColors.d.ts +8 -9
  40. package/lib/utils/getColors.js +15 -0
  41. package/{dist → lib}/utils/getComponents.d.ts +8 -9
  42. package/lib/utils/getComponents.js +77 -0
  43. package/{dist → lib}/utils/pickComponent.d.ts +9 -9
  44. package/lib/utils/pickComponent.js +11 -0
  45. package/package.json +45 -49
  46. package/dist/colors/base.d.ts +0 -2
  47. package/dist/colors/earring.d.ts +0 -2
  48. package/dist/colors/eyeShadow.d.ts +0 -2
  49. package/dist/colors/eyebrow.d.ts +0 -2
  50. package/dist/colors/eyes.d.ts +0 -2
  51. package/dist/colors/facialHair.d.ts +0 -2
  52. package/dist/colors/glasses.d.ts +0 -2
  53. package/dist/colors/hair.d.ts +0 -2
  54. package/dist/colors/index.d.ts +0 -10
  55. package/dist/colors/mouth.d.ts +0 -2
  56. package/dist/colors/shirt.d.ts +0 -2
  57. package/dist/components/base.d.ts +0 -2
  58. package/dist/components/earrings.d.ts +0 -2
  59. package/dist/components/ears.d.ts +0 -2
  60. package/dist/components/eyebrows.d.ts +0 -2
  61. package/dist/components/eyes.d.ts +0 -2
  62. package/dist/components/facialHair.d.ts +0 -2
  63. package/dist/components/glasses.d.ts +0 -2
  64. package/dist/components/hair.d.ts +0 -2
  65. package/dist/components/index.d.ts +0 -11
  66. package/dist/components/mouth.d.ts +0 -2
  67. package/dist/components/nose.d.ts +0 -2
  68. package/dist/components/shirt.d.ts +0 -2
  69. package/dist/hooks/onPreCreate.d.ts +0 -9
  70. package/dist/index.d.ts +0 -13
  71. package/dist/index.es.js +0 -1247
  72. package/dist/index.js +0 -1254
  73. package/dist/index.umd.js +0 -12
  74. package/dist/meta/components.d.ts +0 -4
  75. package/dist/options.d.ts +0 -32
  76. package/dist/static-types.d.ts +0 -16
  77. package/dist/utils/pickColor.d.ts +0 -9
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const earrings: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const ears: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const eyebrows: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const eyes: 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 glasses: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const hair: ComponentGroup;
@@ -1,11 +0,0 @@
1
- export { base } from './base';
2
- export { mouth } from './mouth';
3
- export { eyebrows } from './eyebrows';
4
- export { hair } from './hair';
5
- export { eyes } from './eyes';
6
- export { nose } from './nose';
7
- export { ears } from './ears';
8
- export { shirt } from './shirt';
9
- export { earrings } from './earrings';
10
- export { glasses } from './glasses';
11
- export { facialHair } from './facialHair';
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const mouth: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const nose: ComponentGroup;
@@ -1,2 +0,0 @@
1
- import type { ComponentGroup } from '../static-types';
2
- export declare const shirt: 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
- * Micah (@dicebear/micah)
3
- *
4
- * Code licensed under MIT License.
5
- * Copyright (c) 2021 Florian Körner
6
- *
7
- * Design "Avatar Illustration System" by Micah Lanier licensed under CC BY 4.0.
8
- * Source: https://www.figma.com/community/file/829741575478342595
9
- * License: https://creativecommons.org/licenses/by/4.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';