@dicebear/adventurer-neutral 5.0.0-beta.4 → 5.0.0-beta.6

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: Adventurer Neutral (https://www.figma.com/community/file/1184595184137881796)
8
+ Designer: Lisa Wischofsky (https://www.instagram.com/lischi_art/)
9
+ License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
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 />Adventurer Neutral</h1>
1
+ <h1 align="center"><img src="https://dicebear.com/logo-readme.svg" width="96" /> <br />DiceBear Adventurer 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://www.figma.com/community/file/1035815353921481031">Adventurer Neutral</a>
5
- by <a href="https://www.instagram.com/lischi_art/">Lisa Wischofsky</a>
4
+ <a href="https://www.figma.com/community/file/1184595184137881796">Adventurer Neutral</a> by <a href="https://www.instagram.com/lischi_art/">Lisa Wischofsky</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://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
8
+ <img src="https://api.dicebear.com/5.x/adventurer-neutral/svg?seed=Mimi" width="64" />
9
+ <img src="https://api.dicebear.com/5.x/adventurer-neutral/svg?seed=Sasha" width="64" />
10
+ <img src="https://api.dicebear.com/5.x/adventurer-neutral/svg?seed=Lilly" width="64" />
11
+ <img src="https://api.dicebear.com/5.x/adventurer-neutral/svg?seed=Tigger" width="64" />
12
+ <img src="https://api.dicebear.com/5.x/adventurer-neutral/svg?seed=Bella" width="64" />
13
+ <img src="https://api.dicebear.com/5.x/adventurer-neutral/svg?seed=Zoe" width="64" />
14
+ <img src="https://api.dicebear.com/5.x/adventurer-neutral/svg?seed=Kitty" width="64" />
15
+ </p>
16
+
17
+ <p align="center">
18
+ The avatar style is based on <a href="https://www.figma.com/community/file/1184595184137881796">Adventurer Neutral</a> by
19
+ <a href="https://www.instagram.com/lischi_art/">Lisa Wischofsky</a>, licensed under
20
+ <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
6
6
  */
7
7
  export const eyebrows = {
8
8
  'variant10': (components, colors) => `<path d="M545.03 378.5c24.7.94 48.04 8.97 69.45 21 2.26 1.31 4.92 2.48 6.79 4.32 1.3 2.39-.38 5.13-3.2 4.19-16.58-6.2-33.56-9.63-51.06-12.02-20.3-2.34-39.92-3.68-60.2-.13-3.2.44-6.87 2.16-10.08 1.59-2.66-1.69-1.2-6.1 1.29-7.37 13.63-9.33 30.79-12.1 47-11.58ZM407.99 396.92c3.5.64 6.6 1.92 9.63 3.78-.15 1.2-.26 2.4-.33 3.62-2.7.74-5.46 1.12-8.24 1.34-13.17 1.15-26.45 5.1-38.81 9.69-12.23 4.75-24.78 10.64-35.19 18.7-2.82 2.04-4.13 4.83-8.08 4.48-.5-.9-1-1.79-1.51-2.67.9-1.6 1.68-3.17 2.76-4.64 9.55-13.17 23.64-23.22 38.6-29.35 12.7-5.15 27.62-8.05 41.17-4.95Z" fill="#000"/>`,
@@ -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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
6
6
  */
7
7
  export const eyes = {
8
8
  'variant26': (components, colors) => `<path d="M550.3 424.38c22.91-2.4 46.2 8 59.5 26.8A65.77 65.77 0 0 1 622.16 491c-.45 10.96-3.32 21.75-8.93 31.21-8.53 14.65-23.03 25.87-39.46 30.13a65.5 65.5 0 0 1-41.5-2.57 65.32 65.32 0 0 1-32.38-28.67c-7.4-12.95-9.7-28.21-7.34-42.87a64.87 64.87 0 0 1 17.9-34.8 65.14 65.14 0 0 1 39.86-19.06Z" fill="#000"/><path d="M549.26 430.26a59.65 59.65 0 0 1 42.62 10.89c15.43 11.05 25 29.84 24.48 48.85.05 22.7-14.12 44.35-34.86 53.52-10.79 4.85-22.8 6.65-34.5 4.52a59.62 59.62 0 0 1-40.35-26.67 61.5 61.5 0 0 1-9.37-29.32 60.42 60.42 0 0 1 13.41-40.36 59.52 59.52 0 0 1 38.57-21.43Z" fill="#fff"/><path d="M381.24 447.1a54.92 54.92 0 0 1 59.96 45.86c1.17 8.18.85 16.9-1.66 24.82A54.86 54.86 0 0 1 380 556.3c-15.8-1.8-30.35-11-39.02-24.28-5.54-8.32-8.46-18.03-9.11-27.97-.3-12.31 3.26-24.64 10.57-34.6a55.1 55.1 0 0 1 38.8-22.35Z" fill="#000"/><path d="M376.5 453.67c18.86-4.33 39.25 3.64 50.42 19.36 7.92 11.03 11.42 25.76 8.17 39.05a48.81 48.81 0 0 1-14.45 25.58 49.5 49.5 0 0 1-29.64 13.28c-19.88 1.83-39.68-9.53-48.32-27.5a49.23 49.23 0 0 1 33.81-69.78Z" fill="#fff"/><path d="M576.41 464.4a24.73 24.73 0 0 1 17.67 1.5c9.98 4.69 16.69 17.38 12.92 28.13a24.34 24.34 0 0 1-17.18 17.45c-6.55 1.67-13.68.8-19.44-2.84-8.89-5.5-13.54-16.73-10.71-26.86a24.59 24.59 0 0 1 16.74-17.38ZM408.46 478.49c12.74-1.61 25.04 8.55 25.32 21.5 1.08 12.37-9.26 24.21-21.78 24.28-12.48.61-23.88-9.65-23.87-22.26-.7-11.8 8.69-22.33 20.33-23.52Z" fill="#000"/>`,
@@ -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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
6
6
  */
7
7
  import type { ComponentGroup } from '../types.js';
8
8
  export declare const glasses: 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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
6
6
  */
7
7
  export const glasses = {
8
8
  'variant01': (components, colors) => `<path d="M569 416.32c10.67-.28 21.35-.06 32.02-.26 13.97-.61 27.98-.37 41.98-.52 3.87.15 9-.18 12.21 2.31 2.36 1.63 2.22 5.59 2.35 8.14-.1 4.33-.28 9.38-2.3 13.3-5.08 1.98-11.45 1.25-16.85 1.9.43 12.27 1.67 24.57 1.31 36.84-.71 13.91-3.67 28-10.34 40.32-8.1 13.04-19.9 24.39-33.54 31.5-10.42 5.39-21.75 7.4-33.39 7.79-6.22.2-12.08.5-18.21-.84-9.48-2.04-18.88-4.45-26.96-10.06-11.14-7.58-19.27-18.77-25.4-30.6-6.6-13.57-10.15-29.24-13.27-43.94-.53-2.3-2.38-3.48-4.35-4.45-6.63-2.95-14.93-.5-18.8 5.6-.8 2.4-.9 5.14-1.16 7.65-.62 7.61-2.25 15.33-3.88 22.8-3.12 13.57-9 26.31-16.8 37.82-4.35 5.79-9.75 11.42-16.22 14.8-10.53 5.75-22.3 10.1-34.4 10.3-7.25-.2-14.16-.4-21.13-2.5-5.48-1.34-10.5-4.81-15.16-7.95-6.4-4.39-11.06-10.29-15.28-16.72a111.1 111.1 0 0 1-12.24-26.73c-2.84-9.45-5.24-18.8-5.19-28.73-4.55.66-9.39 2.23-14 1.95-4.35-.81-5.3-7.5-5.5-11.08.14-2.4-.15-6.76 2.7-7.68 21.6-9.82 44.44-17.06 67.54-22.42 17.03-3.7 34.73-8.24 52.27-6.65 11.18.94 22.83 3.92 31.72 11.06 3.2 2.41 5.43 6.83 9.38 7.6 7.08 1.82 14.45-1.24 20.89-3.97 3.63-9.99 10.02-17.33 19.06-22.81 6.3-3.84 13.67-6.15 20.7-8.28 16.76-4.03 33.14-4.65 50.24-5.5Z" fill="#000"/><path d="M307.1 478.16c1.2-1.2 3.4-.01 2.44 1.64-1.21 1.2-3.4 0-2.44-1.64Z" fill="#000"/><ellipse cx="605" cy="457.5" rx="14" ry="10.5" fill="#fff"/><ellipse cx="411" cy="476.11" rx="11" ry="8.11" 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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
6
6
  */
7
7
  export { eyes } from './eyes.js';
8
8
  export { eyebrows } from './eyebrows.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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
6
6
  */
7
7
  export { eyes } from './eyes.js';
8
8
  export { eyebrows } from './eyebrows.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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
6
6
  */
7
7
  export const mouth = {
8
8
  'variant30': (components, colors) => `<path d="M517.87 557.3c2.33.2 3.18 2.72 2.32 4.67-1.4 3.57-3.16 7-4.64 10.53-8.44 19.32-19.56 37.08-31.84 54.17-1.4 1.83-2.87 3.96-4.81 5.27-2.97.78-6.1.75-8.65-1.18a129.37 129.37 0 0 1-24.3-22.74c-7.03-7.83-13.5-16.1-18.86-25.17-1.05-2.12-2.54-4.48-1.19-6.81 1-1.56 3.22-2 4.86-2.55 11.13-3.1 22.19-6.48 33.39-9.29a235.06 235.06 0 0 1 35.86-5.71c5.9-.54 11.94-1.42 17.86-1.2Z" fill="#000"/><path d="M513.81 563.01c-8.96 21.23-21 40.76-34.34 59.5-.92 1.13-2.13 2.82-3.66 3.08-2.18.55-3.7-.86-5.38-2-8.5-6.52-15.77-14.18-22.74-22.27a137.4 137.4 0 0 1-16.59-22.31c14.95-4 29.9-8.63 45.12-11.4 12.45-2.5 25-3.27 37.59-4.6Z" fill="#8F2E45"/>`,
@@ -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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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
+ * Adventurer Neutral (@dicebear/adventurer-neutral)
9
+ *
10
+ * Code licensed under MIT License.
11
+ * Copyright (c) 2023 Florian Körner
12
+ *
13
+ * Design "Adventurer Neutral" by Lisa Wischofsky licensed under CC BY 4.0. / Remix of the original.
14
+ * Source: https://www.figma.com/community/file/1184595184137881796
15
+ * Homepage: https://www.instagram.com/lischi_art/
16
+ * License: https://creativecommons.org/licenses/by/4.0/
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
6
6
  */
7
- /*!
8
- * Adventurer Neutral (@dicebear/adventurer-neutral)
9
- *
10
- * Code licensed under MIT License.
11
- * Copyright (c) 2022 Florian Körner
12
- *
13
- * Design "Adventurer Neutral" by Lisa Wischofsky licensed under CC BY 4.0. / Remix of the original.
14
- * Source: https://www.figma.com/community/file/1035815353921481031
15
- * Homepage: https://www.instagram.com/lischi_art/
16
- * License: https://creativecommons.org/licenses/by/4.0/
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: 'Adventurer Neutral',
13
+ creator: 'Lisa Wischofsky',
14
+ source: 'https://www.figma.com/community/file/1184595184137881796',
15
+ homepage: 'https://www.instagram.com/lischi_art/',
16
+ license: {
17
+ name: 'CC BY 4.0',
18
+ url: 'https://creativecommons.org/licenses/by/4.0/',
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 400 400',
30
+ fill: 'none',
31
+ 'shape-rendering': 'auto'
32
+ },
33
+ body: `<g transform="translate(-279 -322)">${(_b = (_a = components.eyes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(-279 -322)">${(_d = (_c = components.eyebrows) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(-279 -322)">${(_f = (_e = components.mouth) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(-279 -322)">${(_h = (_g = components.glasses) === 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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
6
6
  */
7
7
  export interface Options {
8
8
  eyes?: ('variant26' | 'variant25' | 'variant24' | 'variant23' | 'variant22' | 'variant21' | 'variant20' | 'variant19' | 'variant18' | 'variant17' | 'variant16' | 'variant15' | 'variant14' | 'variant13' | 'variant12' | 'variant11' | 'variant10' | 'variant09' | 'variant08' | 'variant07' | 'variant06' | 'variant05' | 'variant04' | 'variant03' | 'variant02' | 'variant01')[];
@@ -12,12 +12,12 @@ export interface Options {
12
12
  glassesProbability?: number;
13
13
  backgroundColor?: string[];
14
14
  }
15
- export declare type ColorPickCollection = Record<string, string>;
16
- export declare type ComponentGroup = Record<string, ComponentGroupItem>;
17
- export declare type ComponentGroupCollection = Record<string, ComponentGroup>;
18
- export declare type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
19
- export declare type ComponentPickCollection = Record<string, ComponentPick>;
20
- export declare type ComponentPick = {
15
+ export type ColorPickCollection = Record<string, string>;
16
+ export type ComponentGroup = Record<string, ComponentGroupItem>;
17
+ export type ComponentGroupCollection = Record<string, ComponentGroup>;
18
+ export type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
19
+ export type ComponentPickCollection = Record<string, ComponentPick>;
20
+ export type ComponentPick = {
21
21
  name: string;
22
22
  value: ComponentGroupItem;
23
23
  } | 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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
5
+ * File: https://www.figma.com/file/XXfL2r5Wylk623KpxDt7gO
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/adventurer-neutral",
3
- "version": "5.0.0-beta.4",
3
+ "version": "5.0.0-beta.6",
4
4
  "description": "Avatar style for DiceBear",
5
5
  "keywords": [
6
6
  "dicebear"
@@ -14,6 +14,7 @@
14
14
  },
15
15
  "license": "MIT",
16
16
  "type": "module",
17
+ "main": "./lib/index.js",
17
18
  "exports": "./lib/index.js",
18
19
  "types": "./lib/index.d.ts",
19
20
  "files": [
@@ -28,7 +29,7 @@
28
29
  "test": "uvu tests"
29
30
  },
30
31
  "devDependencies": {
31
- "@dicebear/core": "^5.0.0-beta.4",
32
+ "@dicebear/core": "^5.0.0-beta.6",
32
33
  "@tsconfig/recommended": "^1.0.1",
33
34
  "del-cli": "^4.0.1",
34
35
  "typescript": "^4.6.3",
@@ -43,5 +44,5 @@
43
44
  "publishConfig": {
44
45
  "access": "public"
45
46
  },
46
- "gitHead": "5fcae5a84a2b4b2dd338c4f7a0e461c1efef1e9d"
47
+ "gitHead": "1a81759251d30336383497f31843b48809d0f56b"
47
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
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/XXfL2r5Wylk623KpxDt7gO/%40dicebear%2Fadventurer?node-id=29%3A43
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: 'Adventurer Neutral',
15
- creator: 'Lisa Wischofsky',
16
- source: 'https://www.figma.com/community/file/1035815353921481031',
17
- homepage: 'https://www.instagram.com/lischi_art/',
18
- license: {
19
- name: 'CC BY 4.0',
20
- url: 'https://creativecommons.org/licenses/by/4.0/',
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 400 400',
33
- fill: 'none',
34
- 'shape-rendering': 'auto'
35
- },
36
- body: `<g transform="translate(-279 -322)">${(_b = (_a = components.eyes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(-279 -322)">${(_d = (_c = components.eyebrows) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g><g transform="translate(-279 -322)">${(_f = (_e = components.mouth) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}</g><g transform="translate(-279 -322)">${(_h = (_g = components.glasses) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}</g>`,
37
- };
38
- },
39
- };