@dicebear/lorelei 7.0.1 → 8.0.0-rc.0
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 +1 -1
- package/README.md +1 -1
- package/lib/components/beard.d.ts +1 -1
- package/lib/components/beard.js +1 -1
- package/lib/components/earrings.d.ts +1 -1
- package/lib/components/earrings.js +1 -1
- package/lib/components/eyebrows.d.ts +1 -1
- package/lib/components/eyebrows.js +1 -1
- package/lib/components/eyes.d.ts +1 -1
- package/lib/components/eyes.js +1 -1
- package/lib/components/freckles.d.ts +1 -1
- package/lib/components/freckles.js +1 -1
- package/lib/components/glasses.d.ts +1 -1
- package/lib/components/glasses.js +1 -1
- package/lib/components/hair.d.ts +1 -1
- package/lib/components/hair.js +1 -1
- package/lib/components/hairAccessories.d.ts +1 -1
- package/lib/components/hairAccessories.js +1 -1
- package/lib/components/head.d.ts +1 -1
- package/lib/components/head.js +1 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/mouth.d.ts +1 -1
- package/lib/components/mouth.js +1 -1
- package/lib/components/nose.d.ts +1 -1
- package/lib/components/nose.js +1 -1
- package/lib/hooks/onPostCreate.d.ts +1 -1
- package/lib/hooks/onPostCreate.js +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/schema.d.ts +1 -1
- package/lib/schema.js +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.js +1 -1
- package/lib/utils/convertColor.d.ts +1 -1
- package/lib/utils/convertColor.js +1 -1
- package/lib/utils/getColors.d.ts +1 -1
- package/lib/utils/getColors.js +1 -1
- package/lib/utils/getComponents.d.ts +1 -1
- package/lib/utils/getComponents.js +12 -12
- package/lib/utils/pickComponent.d.ts +1 -1
- package/lib/utils/pickComponent.js +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
|
@@ -6,7 +6,7 @@ Applies to all design files in this package.
|
|
|
6
6
|
|
|
7
7
|
Source: Lorelei (https://www.figma.com/community/file/1198749693280469639)
|
|
8
8
|
Designer: Lisa Wischofsky (https://www.instagram.com/lischi_art/)
|
|
9
|
-
License: CC0 1.0 (https://creativecommons.org/
|
|
9
|
+
License: CC0 1.0 (https://creativecommons.org/publicdomain/zero/1.0/)
|
|
10
10
|
|
|
11
11
|
# Code
|
|
12
12
|
Applies to all non-design files in this package.
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<p align="center">
|
|
18
18
|
The avatar style is based on <a href="https://www.figma.com/community/file/1198749693280469639">Lorelei</a> by
|
|
19
19
|
<a href="https://www.instagram.com/lischi_art/">Lisa Wischofsky</a>, licensed under
|
|
20
|
-
<a href="https://creativecommons.org/
|
|
20
|
+
<a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0</a>. / Remix of the original.
|
|
21
21
|
</p>
|
|
22
22
|
<p align="center">
|
|
23
23
|
See <a href="https://dicebear.com/licenses">license overview</a> for more information.
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const beard: ComponentGroup;
|
package/lib/components/beard.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const beard = {
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const earrings: 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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const earrings = {
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const eyebrows = {
|
package/lib/components/eyes.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const eyes: ComponentGroup;
|
package/lib/components/eyes.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const eyes = {
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const freckles: 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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const freckles = {
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const glasses = {
|
package/lib/components/hair.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const hair: ComponentGroup;
|
package/lib/components/hair.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const hair = {
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const hairAccessories: 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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const hairAccessories = {
|
package/lib/components/head.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const head: ComponentGroup;
|
package/lib/components/head.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const head = {
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
export { hair } from './hair.js';
|
|
8
8
|
export { hairAccessories } from './hairAccessories.js';
|
package/lib/components/index.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
export { hair } from './hair.js';
|
|
8
8
|
export { hairAccessories } from './hairAccessories.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const mouth: ComponentGroup;
|
package/lib/components/mouth.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const mouth = {
|
package/lib/components/nose.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const nose: ComponentGroup;
|
package/lib/components/nose.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const nose = {
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { Prng, StyleOptions } from "@dicebear/core";
|
|
8
8
|
import { Options, ColorPickCollection, ComponentPickCollection } from "../types.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
export function onPostCreate({ prng, options, components, colors }) {
|
|
8
8
|
if (components.beard && colors.hair === colors.mouth) {
|
package/lib/index.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
/*!
|
|
8
8
|
* Lorelei (@dicebear/lorelei)
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Design "Lorelei" by Lisa Wischofsky licensed under CC0 1.0. / Remix of the original.
|
|
14
14
|
* Source: https://www.figma.com/community/file/1198749693280469639
|
|
15
15
|
* Homepage: https://www.instagram.com/lischi_art/
|
|
16
|
-
* License: https://creativecommons.org/
|
|
16
|
+
* License: https://creativecommons.org/publicdomain/zero/1.0/
|
|
17
17
|
*/
|
|
18
18
|
import type { StyleCreate, StyleMeta } from '@dicebear/core';
|
|
19
19
|
import type { Options } from './types.js';
|
package/lib/index.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { getComponents } from './utils/getComponents.js';
|
|
8
8
|
import { getColors } from './utils/getColors.js';
|
|
@@ -14,7 +14,7 @@ export const meta = {
|
|
|
14
14
|
homepage: 'https://www.instagram.com/lischi_art/',
|
|
15
15
|
license: {
|
|
16
16
|
name: 'CC0 1.0',
|
|
17
|
-
url: 'https://creativecommons.org/
|
|
17
|
+
url: 'https://creativecommons.org/publicdomain/zero/1.0/',
|
|
18
18
|
},
|
|
19
19
|
};
|
|
20
20
|
export const create = ({ prng, options }) => {
|
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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
export interface Options {
|
|
8
8
|
hair?: ('variant48' | 'variant47' | 'variant46' | 'variant45' | 'variant44' | 'variant43' | 'variant42' | 'variant41' | 'variant40' | 'variant39' | 'variant38' | 'variant37' | 'variant36' | 'variant35' | 'variant34' | 'variant33' | 'variant32' | 'variant31' | 'variant30' | 'variant29' | 'variant28' | 'variant27' | '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')[];
|
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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
export {};
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
export declare function convertColor(color: string): 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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
export function convertColor(color) {
|
|
8
8
|
return 'transparent' === color ? color : `#${color}`;
|
package/lib/utils/getColors.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { Prng } from '@dicebear/core';
|
|
8
8
|
import type { Options, ColorPickCollection } from '../types.js';
|
package/lib/utils/getColors.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { convertColor } from './convertColor.js';
|
|
8
8
|
export function getColors({ prng, options }) {
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { Prng } from '@dicebear/core';
|
|
8
8
|
import type { Options, ComponentPickCollection } from '../types.js';
|
|
@@ -2,64 +2,64 @@
|
|
|
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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import { pickComponent } from './pickComponent.js';
|
|
8
8
|
export function getComponents({ prng, options }) {
|
|
9
9
|
const hairComponent = pickComponent({
|
|
10
10
|
prng,
|
|
11
11
|
group: 'hair',
|
|
12
|
-
values: options.hair
|
|
12
|
+
values: options.hair,
|
|
13
13
|
});
|
|
14
14
|
const hairAccessoriesComponent = pickComponent({
|
|
15
15
|
prng,
|
|
16
16
|
group: 'hairAccessories',
|
|
17
|
-
values: options.hairAccessories
|
|
17
|
+
values: options.hairAccessories,
|
|
18
18
|
});
|
|
19
19
|
const headComponent = pickComponent({
|
|
20
20
|
prng,
|
|
21
21
|
group: 'head',
|
|
22
|
-
values: options.head
|
|
22
|
+
values: options.head,
|
|
23
23
|
});
|
|
24
24
|
const eyesComponent = pickComponent({
|
|
25
25
|
prng,
|
|
26
26
|
group: 'eyes',
|
|
27
|
-
values: options.eyes
|
|
27
|
+
values: options.eyes,
|
|
28
28
|
});
|
|
29
29
|
const eyebrowsComponent = pickComponent({
|
|
30
30
|
prng,
|
|
31
31
|
group: 'eyebrows',
|
|
32
|
-
values: options.eyebrows
|
|
32
|
+
values: options.eyebrows,
|
|
33
33
|
});
|
|
34
34
|
const earringsComponent = pickComponent({
|
|
35
35
|
prng,
|
|
36
36
|
group: 'earrings',
|
|
37
|
-
values: options.earrings
|
|
37
|
+
values: options.earrings,
|
|
38
38
|
});
|
|
39
39
|
const frecklesComponent = pickComponent({
|
|
40
40
|
prng,
|
|
41
41
|
group: 'freckles',
|
|
42
|
-
values: options.freckles
|
|
42
|
+
values: options.freckles,
|
|
43
43
|
});
|
|
44
44
|
const noseComponent = pickComponent({
|
|
45
45
|
prng,
|
|
46
46
|
group: 'nose',
|
|
47
|
-
values: options.nose
|
|
47
|
+
values: options.nose,
|
|
48
48
|
});
|
|
49
49
|
const beardComponent = pickComponent({
|
|
50
50
|
prng,
|
|
51
51
|
group: 'beard',
|
|
52
|
-
values: options.beard
|
|
52
|
+
values: options.beard,
|
|
53
53
|
});
|
|
54
54
|
const mouthComponent = pickComponent({
|
|
55
55
|
prng,
|
|
56
56
|
group: 'mouth',
|
|
57
|
-
values: options.mouth
|
|
57
|
+
values: options.mouth,
|
|
58
58
|
});
|
|
59
59
|
const glassesComponent = pickComponent({
|
|
60
60
|
prng,
|
|
61
61
|
group: 'glasses',
|
|
62
|
-
values: options.glasses
|
|
62
|
+
values: options.glasses,
|
|
63
63
|
});
|
|
64
64
|
return {
|
|
65
65
|
'hair': hairComponent,
|
|
@@ -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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
7
|
import type { Prng } from '@dicebear/core';
|
|
8
8
|
import type { ComponentPick } from '../types.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/
|
|
5
|
+
* File: https://www.figma.com/community/file/1198749693280469639
|
|
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/lorelei",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-rc.0",
|
|
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": "
|
|
32
|
+
"@dicebear/core": "8.0.0-rc.0",
|
|
33
33
|
"@tsconfig/recommended": "^1.0.2",
|
|
34
34
|
"del-cli": "^5.0.0",
|
|
35
35
|
"typescript": "^5.1.6",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "46efe92668f9efd1eb8cd956617586439f870d19"
|
|
48
48
|
}
|