@dicebear/avataaars-neutral 5.0.0-beta.5 → 5.0.0-beta.7

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 CHANGED
@@ -1,6 +1,19 @@
1
+ Licenses
2
+ --------
3
+
4
+ # Design
5
+ Applies to all design files in this package.
6
+
7
+ Source: Avataaars (https://avataaars.com/)
8
+ Designer: Pablo Stanley (https://twitter.com/pablostanley)
9
+ License: Free for personal and commercial use. (https://avataaars.com/)
10
+
11
+ # Code
12
+ Applies to all non-design files in this package.
13
+
1
14
  MIT License
2
15
 
3
- Copyright (c) 2022 Florian Körner
16
+ Copyright (c) 2023 Florian Körner
4
17
 
5
18
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
19
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,13 +1,25 @@
1
- <h1 align="center"><img src="./tests/svg/0.svg" width="124" /> <br />Avataaars Neutral</h1>
1
+ <h1 align="center"><img src="https://dicebear.com/logo-readme.svg" width="96" /> <br />DiceBear Avataaars Neutral</h1>
2
2
  <p align="center">
3
3
  <strong>Avatar Style for <a href="https://dicebear.com/">DiceBear</a></strong><br />
4
- <a href="https://avataaars.com/">Avataaars</a>
5
- by <a href="https://twitter.com/pablostanley">Pablo Stanley</a>
4
+ <a href="https://avataaars.com/">Avataaars</a> by <a href="https://twitter.com/pablostanley">Pablo Stanley</a>
6
5
  </p>
7
6
 
8
7
  <p align="center">
9
- While our code is MIT licensed, the design is licensed under
10
- <a href="https://avataaars.com/">Free for personal and commercial use.</a>.
8
+ <img src="https://api.dicebear.com/5.x/avataaars-neutral/svg?seed=Mimi" width="64" />
9
+ <img src="https://api.dicebear.com/5.x/avataaars-neutral/svg?seed=Sasha" width="64" />
10
+ <img src="https://api.dicebear.com/5.x/avataaars-neutral/svg?seed=Lilly" width="64" />
11
+ <img src="https://api.dicebear.com/5.x/avataaars-neutral/svg?seed=Tigger" width="64" />
12
+ <img src="https://api.dicebear.com/5.x/avataaars-neutral/svg?seed=Bella" width="64" />
13
+ <img src="https://api.dicebear.com/5.x/avataaars-neutral/svg?seed=Zoe" width="64" />
14
+ <img src="https://api.dicebear.com/5.x/avataaars-neutral/svg?seed=Kitty" width="64" />
15
+ </p>
16
+
17
+ <p align="center">
18
+ The avatar style is based on <a href="https://avataaars.com/">Avataaars</a> by
19
+ <a href="https://twitter.com/pablostanley">Pablo Stanley</a>, licensed under
20
+ <a href="https://avataaars.com/">Free for personal and commercial use.</a>. / Remix of the original.
21
+ </p>
22
+ <p align="center">
11
23
  See <a href="https://dicebear.com/licenses">license overview</a> for more information.
12
24
  </p>
13
25
 
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import type { ComponentGroup } from '../types.js';
8
8
  export declare const eyebrows: ComponentGroup;
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export const eyebrows = {
8
8
  'angryNatural': (components, colors) => `<path d="M44.1 17.12ZM19.27 5.01a7.16 7.16 0 0 0-6.42 2.43c-.6.73-1.56 2.48-1.51 3.42.02.35.22.37 1.12.59 1.65.39 4.5-1.12 6.36-.98 2.58.2 5.04 1.4 7.28 2.68 3.84 2.2 8.35 6.84 13.1 6.6.35-.02 5.41-1.74 4.4-2.72-.31-.49-3.03-1.13-3.5-1.36-2.17-1.09-4.37-2.45-6.44-3.72C29.14 9.18 24.72 5.6 19.28 5ZM68.03 17.12ZM92.91 5.01c2.36-.27 4.85.5 6.42 2.43.6.73 1.56 2.48 1.51 3.42-.02.35-.22.37-1.12.59-1.65.39-4.5-1.12-6.36-.98-2.58.2-5.04 1.4-7.28 2.68-3.84 2.2-8.35 6.84-13.1 6.6-.35-.02-5.41-1.74-4.4-2.72.31-.49 3.03-1.13 3.5-1.36 2.17-1.09 4.36-2.45 6.44-3.72C83.05 9.18 87.46 5.6 92.91 5Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>`,
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import type { ComponentGroup } from '../types.js';
8
8
  export declare const eyes: ComponentGroup;
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export const eyes = {
8
8
  'closed': (components, colors) => `<path d="M16.16 27.55c1.85 3.8 6 6.45 10.84 6.45 4.81 0 8.96-2.63 10.82-6.4.55-1.13-.24-2.05-1.03-1.37a15.05 15.05 0 0 1-9.8 3.43c-3.73 0-7.12-1.24-9.55-3.23-.9-.73-1.82.01-1.28 1.12ZM74.16 27.55c1.85 3.8 6 6.45 10.84 6.45 4.81 0 8.96-2.63 10.82-6.4.55-1.13-.24-2.05-1.03-1.37a15.05 15.05 0 0 1-9.8 3.43c-3.74 0-7.13-1.24-9.56-3.23-.9-.73-1.82.01-1.28 1.12Z" fill-rule="evenodd" clip-rule="evenodd" fill="#000" fill-opacity=".6"/>`,
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export { mouth } from './mouth.js';
8
8
  export { nose } from './nose.js';
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export { mouth } from './mouth.js';
8
8
  export { nose } from './nose.js';
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import type { ComponentGroup } from '../types.js';
8
8
  export declare const mouth: ComponentGroup;
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export const mouth = {
8
8
  'concerned': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M35.12 29.87a19 19 0 0 1 37.77.09c.08.77-.77 2.04-1.85 2.04H37.1C36 32 35 30.82 35.12 29.87Z" fill="#000" fill-opacity=".7"/><path d="M69.59 32H38.4a11 11 0 0 1 15.6-6.8A11 11 0 0 1 69.59 32Z" fill="#FF4F6D"/><path d="M66.57 17.75A5 5 0 0 1 65 18H44c-.8 0-1.57-.2-2.24-.53A18.92 18.92 0 0 1 54 13c4.82 0 9.22 1.8 12.57 4.75Z" fill="#fff"/>`,
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import type { ComponentGroup } from '../types.js';
8
8
  export declare const nose: ComponentGroup;
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export const nose = {
8
8
  'default': (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M16 8c0 4.42 5.37 8 12 8s12-3.58 12-8" fill="#000" fill-opacity=".16"/>`,
@@ -2,11 +2,11 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import { Prng, StyleOptions } from "@dicebear/core";
8
8
  import { Options, ColorPickCollection, ComponentPickCollection } from "../types.js";
9
- declare type Props = {
9
+ type Props = {
10
10
  prng: Prng;
11
11
  options: StyleOptions<Options>;
12
12
  components: ComponentPickCollection;
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export function onPostCreate({ prng, options, components, colors }) {
8
8
  // Write your modifications here
@@ -2,11 +2,11 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import { Prng, StyleOptions } from "@dicebear/core";
8
8
  import { Options } from "../types.js";
9
- declare type Props = {
9
+ type Props = {
10
10
  prng: Prng;
11
11
  options: StyleOptions<Options>;
12
12
  };
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export function onPreCreate({ prng, options }) {
8
8
  // Write your modifications here
package/lib/index.d.ts CHANGED
@@ -2,8 +2,22 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
- declare const create: import("@dicebear/core").StyleCreate<import("./types.js").Options>, meta: import("@dicebear/core").StyleMeta, schema: import("json-schema").JSONSchema7;
8
- export { create, meta, schema };
7
+ /*!
8
+ * Avataaars Neutral (@dicebear/avataaars-neutral)
9
+ *
10
+ * Code licensed under MIT License.
11
+ * Copyright (c) 2023 Florian Körner
12
+ *
13
+ * Design "Avataaars" by Pablo Stanley licensed under Free for personal and commercial use.. / Remix of the original.
14
+ * Source: https://avataaars.com/
15
+ * Homepage: https://twitter.com/pablostanley
16
+ * License: https://avataaars.com/
17
+ */
18
+ import type { StyleCreate, StyleMeta } from '@dicebear/core';
19
+ import type { Options } from './types.js';
20
+ export declare const meta: StyleMeta;
21
+ export declare const create: StyleCreate<Options>;
22
+ export { schema } from './schema.js';
9
23
  export type { Options } from './types.js';
package/lib/index.js CHANGED
@@ -2,19 +2,35 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
- /*!
8
- * Avataaars Neutral (@dicebear/avataaars-neutral)
9
- *
10
- * Code licensed under MIT License.
11
- * Copyright (c) 2022 Florian Körner
12
- *
13
- * Design "Avataaars" by Pablo Stanley licensed under Free for personal and commercial use.. / Remix of the original.
14
- * Source: https://avataaars.com/
15
- * Homepage: https://twitter.com/pablostanley
16
- * License: https://avataaars.com/
17
- */
18
- import { style } from './core.js';
19
- const { create, meta, schema } = style;
20
- export { create, meta, schema };
7
+ import { getComponents } from './utils/getComponents.js';
8
+ import { getColors } from './utils/getColors.js';
9
+ import { onPreCreate } from './hooks/onPreCreate.js';
10
+ import { onPostCreate } from './hooks/onPostCreate.js';
11
+ export const meta = {
12
+ title: 'Avataaars',
13
+ creator: 'Pablo Stanley',
14
+ source: 'https://avataaars.com/',
15
+ homepage: 'https://twitter.com/pablostanley',
16
+ license: {
17
+ name: 'Free for personal and commercial use.',
18
+ url: 'https://avataaars.com/',
19
+ },
20
+ };
21
+ export const create = ({ prng, options }) => {
22
+ var _a, _b, _c, _d, _e, _f, _g, _h;
23
+ onPreCreate({ prng, options });
24
+ const components = getComponents({ prng, options });
25
+ const colors = getColors({ prng, options });
26
+ onPostCreate({ prng, options, components, colors });
27
+ return {
28
+ attributes: {
29
+ viewBox: '0 0 112 112',
30
+ fill: 'none',
31
+ 'shape-rendering': 'auto'
32
+ },
33
+ body: `<g transform="translate(2 63)">${(_b = (_a = components.mouth) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(28 51)">${(_d = (_c = components.nose) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(0 19)">${(_f = (_e = components.eyes) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(0 11)">${(_h = (_g = components.eyebrows) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g>`,
34
+ };
35
+ };
36
+ export { schema } from './schema.js';
package/lib/schema.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import type { StyleSchema } from '@dicebear/core';
8
8
  export declare const schema: StyleSchema;
package/lib/schema.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export const schema = {
8
8
  "$schema": "http://json-schema.org/draft-07/schema#",
package/lib/types.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export interface Options {
8
8
  mouth?: ('concerned' | 'default' | 'disbelief' | 'eating' | 'grimace' | 'sad' | 'screamOpen' | 'serious' | 'smile' | 'tongue' | 'twinkle' | 'vomit')[];
@@ -11,12 +11,12 @@ export interface Options {
11
11
  eyebrows?: ('angryNatural' | 'defaultNatural' | 'flatNatural' | 'frownNatural' | 'raisedExcitedNatural' | 'sadConcernedNatural' | 'unibrowNatural' | 'upDownNatural' | 'angry' | 'default' | 'raisedExcited' | 'sadConcerned' | 'upDown')[];
12
12
  backgroundColor?: string[];
13
13
  }
14
- export declare type ColorPickCollection = Record<string, string>;
15
- export declare type ComponentGroup = Record<string, ComponentGroupItem>;
16
- export declare type ComponentGroupCollection = Record<string, ComponentGroup>;
17
- export declare type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
18
- export declare type ComponentPickCollection = Record<string, ComponentPick>;
19
- export declare type ComponentPick = {
14
+ export type ColorPickCollection = Record<string, string>;
15
+ export type ComponentGroup = Record<string, ComponentGroupItem>;
16
+ export type ComponentGroupCollection = Record<string, ComponentGroup>;
17
+ export type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
18
+ export type ComponentPickCollection = Record<string, ComponentPick>;
19
+ export type ComponentPick = {
20
20
  name: string;
21
21
  value: ComponentGroupItem;
22
22
  } | undefined;
package/lib/types.js CHANGED
@@ -2,6 +2,6 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export {};
@@ -2,11 +2,11 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import type { Prng } from '@dicebear/core';
8
8
  import type { Options, ColorPickCollection } from '../types.js';
9
- declare type Props = {
9
+ type Props = {
10
10
  prng: Prng;
11
11
  options: Options;
12
12
  };
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export function getColors({ prng, options }) {
8
8
  return {};
@@ -2,11 +2,11 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import type { Prng } from '@dicebear/core';
8
8
  import type { Options, ComponentPickCollection } from '../types.js';
9
- declare type Props = {
9
+ type Props = {
10
10
  prng: Prng;
11
11
  options: Options;
12
12
  };
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import { pickComponent } from './pickComponent.js';
8
8
  export function getComponents({ prng, options }) {
@@ -2,11 +2,11 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import type { Prng } from '@dicebear/core';
8
8
  import type { ComponentPick } from '../types.js';
9
- declare type Props = {
9
+ type Props = {
10
10
  prng: Prng;
11
11
  group: string;
12
12
  values?: string[];
@@ -2,7 +2,7 @@
2
2
  * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
3
  *
4
4
  * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
5
+ * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  import * as components from '../components/index.js';
8
8
  export function pickComponent({ prng, group, values = [] }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dicebear/avataaars-neutral",
3
- "version": "5.0.0-beta.5",
3
+ "version": "5.0.0-beta.7",
4
4
  "description": "Avatar style for DiceBear",
5
5
  "keywords": [
6
6
  "dicebear"
@@ -29,7 +29,7 @@
29
29
  "test": "uvu tests"
30
30
  },
31
31
  "devDependencies": {
32
- "@dicebear/core": "^5.0.0-beta.5",
32
+ "@dicebear/core": "^5.0.0-beta.7",
33
33
  "@tsconfig/recommended": "^1.0.1",
34
34
  "del-cli": "^4.0.1",
35
35
  "typescript": "^4.6.3",
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "067460b00a40a7720d556f45edb32d9311edde14"
47
+ "gitHead": "6864a0fec66652d8740f6feb2d99dc7a118ebd79"
48
48
  }
package/lib/core.d.ts DELETED
@@ -1,9 +0,0 @@
1
- /**
2
- * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
- *
4
- * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
6
- */
7
- import type { Style } from '@dicebear/core';
8
- import type { Options } from './types.js';
9
- export declare const style: Style<Options>;
package/lib/core.js DELETED
@@ -1,39 +0,0 @@
1
- /**
2
- * Do not change this file manually! This file was generated with the "Dicebear Exporter"-Plugin for Figma.
3
- *
4
- * Plugin: https://www.figma.com/community/plugin/1005765655729342787
5
- * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h/%40dicebear%2Favataaars?node-id=20%3A299
6
- */
7
- import { schema } from './schema.js';
8
- import { getComponents } from './utils/getComponents.js';
9
- import { getColors } from './utils/getColors.js';
10
- import { onPreCreate } from './hooks/onPreCreate.js';
11
- import { onPostCreate } from './hooks/onPostCreate.js';
12
- export const style = {
13
- meta: {
14
- title: 'Avataaars',
15
- creator: 'Pablo Stanley',
16
- source: 'https://avataaars.com/',
17
- homepage: 'https://twitter.com/pablostanley',
18
- license: {
19
- name: 'Free for personal and commercial use.',
20
- url: 'https://avataaars.com/',
21
- },
22
- },
23
- schema: schema,
24
- create: ({ prng, options }) => {
25
- var _a, _b, _c, _d, _e, _f, _g, _h;
26
- onPreCreate({ prng, options });
27
- const components = getComponents({ prng, options });
28
- const colors = getColors({ prng, options });
29
- onPostCreate({ prng, options, components, colors });
30
- return {
31
- attributes: {
32
- viewBox: '0 0 112 112',
33
- fill: 'none',
34
- 'shape-rendering': 'auto'
35
- },
36
- body: `<g transform="translate(2 63)">${(_b = (_a = components.mouth) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(28 51)">${(_d = (_c = components.nose) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(0 19)">${(_f = (_e = components.eyes) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(0 11)">${(_h = (_g = components.eyebrows) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g>`,
37
- };
38
- },
39
- };