@dicebear/icons 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 +2 -2
- package/README.md +20 -3
- package/lib/components/icon.d.ts +1 -1
- package/lib/components/icon.js +1 -1
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.js +1 -1
- package/lib/hooks/onPostCreate.d.ts +2 -2
- package/lib/hooks/onPostCreate.js +1 -1
- package/lib/hooks/onPreCreate.d.ts +2 -2
- package/lib/hooks/onPreCreate.js +1 -1
- package/lib/index.d.ts +18 -3
- package/lib/index.js +31 -16
- package/lib/schema.d.ts +1 -1
- package/lib/schema.js +1 -1
- package/lib/types.d.ts +7 -7
- package/lib/types.js +1 -1
- package/lib/utils/getColors.d.ts +2 -2
- package/lib/utils/getColors.js +1 -1
- package/lib/utils/getComponents.d.ts +2 -2
- package/lib/utils/getComponents.js +1 -1
- package/lib/utils/pickComponent.d.ts +2 -2
- package/lib/utils/pickComponent.js +1 -1
- package/package.json +4 -3
- package/lib/core.d.ts +0 -9
- package/lib/core.js +0 -39
package/LICENSE
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
4
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2023 Florian Körner
|
|
4
|
+
Copyright (c) 2023 The Bootstrap Authors
|
|
5
5
|
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
7
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
<h1 align="center"><img src="
|
|
1
|
+
<h1 align="center"><img src="https://dicebear.com/logo-readme.svg" width="96" /> <br />DiceBear Icons</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://github.com/twbs/icons">Bootstrap Icons</a>
|
|
5
|
-
by <a href="https://getbootstrap.com/">The Bootstrap Authors</a>
|
|
4
|
+
<a href="https://github.com/twbs/icons">Bootstrap Icons</a> by <a href="https://getbootstrap.com/">The Bootstrap Authors</a>
|
|
6
5
|
</p>
|
|
7
6
|
|
|
7
|
+
<p align="center">
|
|
8
|
+
<img src="https://api.dicebear.com/5.x/icons/svg?seed=Mimi" width="64" />
|
|
9
|
+
<img src="https://api.dicebear.com/5.x/icons/svg?seed=Sasha" width="64" />
|
|
10
|
+
<img src="https://api.dicebear.com/5.x/icons/svg?seed=Lilly" width="64" />
|
|
11
|
+
<img src="https://api.dicebear.com/5.x/icons/svg?seed=Tigger" width="64" />
|
|
12
|
+
<img src="https://api.dicebear.com/5.x/icons/svg?seed=Bella" width="64" />
|
|
13
|
+
<img src="https://api.dicebear.com/5.x/icons/svg?seed=Zoe" width="64" />
|
|
14
|
+
<img src="https://api.dicebear.com/5.x/icons/svg?seed=Kitty" width="64" />
|
|
15
|
+
</p>
|
|
16
|
+
|
|
17
|
+
<p align="center">
|
|
18
|
+
The avatar style is based on <a href="https://github.com/twbs/icons">Bootstrap Icons</a> by
|
|
19
|
+
<a href="https://getbootstrap.com/">The Bootstrap Authors</a>, licensed under
|
|
20
|
+
<a href="https://github.com/twbs/icons/blob/main/LICENSE.md">MIT</a>. / Remix of the original.
|
|
21
|
+
</p>
|
|
22
|
+
<p align="center">
|
|
23
|
+
See <a href="https://dicebear.com/licenses">license overview</a> for more information.
|
|
24
|
+
</p>
|
|
8
25
|
|
|
9
26
|
<p align="center">
|
|
10
27
|
<a href="https://dicebear.com/styles/icons">
|
package/lib/components/icon.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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
import type { ComponentGroup } from '../types.js';
|
|
8
8
|
export declare const icon: ComponentGroup;
|
package/lib/components/icon.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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
export const icon = {
|
|
8
8
|
'alarm': (components, colors) => `<g fill="#fff"><path d="M8.5 5.5a.5.5 0 1 0-1 0v3.362l-1.429 2.38a.5.5 0 0 0 .858.515l1.5-2.5A.5.5 0 0 0 8.5 9V5.5Z"/><path d="M6.5 0a.5.5 0 1 0 0 1H7v1.07a7 7 0 0 0-3.273 12.474l-.602.602a.5.5 0 0 0 .707.708l.746-.746A6.97 6.97 0 0 0 8 16a6.97 6.97 0 0 0 3.422-.892l.746.746a.5.5 0 1 0 .707-.708l-.601-.602A7.001 7.001 0 0 0 9 2.07V1h.5a.5.5 0 1 0 0-1h-3Zm1.038 3.018a6 6 0 1 1 .924 11.964 6 6 0 0 1-.924-11.964ZM0 3.5c0 .753.333 1.429.86 1.887A8.035 8.035 0 0 1 4.387 1.86 2.5 2.5 0 0 0 0 3.5ZM13.5 1c-.753 0-1.429.333-1.887.86a8.035 8.035 0 0 1 3.527 3.527A2.5 2.5 0 0 0 13.5 1Z"/></g>`,
|
|
@@ -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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
export { icon } from './icon.js';
|
package/lib/components/index.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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
export { icon } from './icon.js';
|
|
@@ -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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
import { Prng, StyleOptions } from "@dicebear/core";
|
|
8
8
|
import { Options, ColorPickCollection, ComponentPickCollection } from "../types.js";
|
|
9
|
-
|
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
import { Prng, StyleOptions } from "@dicebear/core";
|
|
8
8
|
import { Options } from "../types.js";
|
|
9
|
-
|
|
9
|
+
type Props = {
|
|
10
10
|
prng: Prng;
|
|
11
11
|
options: StyleOptions<Options>;
|
|
12
12
|
};
|
package/lib/hooks/onPreCreate.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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
export function onPreCreate({ prng, options }) {
|
|
8
8
|
// Write your modifications here
|
package/lib/index.d.ts
CHANGED
|
@@ -2,8 +2,23 @@
|
|
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/*!
|
|
8
|
+
* Icons (@dicebear/icons)
|
|
9
|
+
*
|
|
10
|
+
* Code licensed under MIT License.
|
|
11
|
+
* Copyright (c) 2023 Florian Körner
|
|
12
|
+
* Copyright (c) 2023 The Bootstrap Authors
|
|
13
|
+
*
|
|
14
|
+
* Design "Bootstrap Icons" by The Bootstrap Authors licensed under MIT. / Remix of the original.
|
|
15
|
+
* Source: https://github.com/twbs/icons
|
|
16
|
+
* Homepage: https://getbootstrap.com/
|
|
17
|
+
* License: https://github.com/twbs/icons/blob/main/LICENSE.md
|
|
18
|
+
*/
|
|
19
|
+
import type { StyleCreate, StyleMeta } from '@dicebear/core';
|
|
20
|
+
import type { Options } from './types.js';
|
|
21
|
+
export declare const meta: StyleMeta;
|
|
22
|
+
export declare const create: StyleCreate<Options>;
|
|
23
|
+
export { schema } from './schema.js';
|
|
9
24
|
export type { Options } from './types.js';
|
package/lib/index.js
CHANGED
|
@@ -2,20 +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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export
|
|
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: 'Bootstrap Icons',
|
|
13
|
+
creator: 'The Bootstrap Authors',
|
|
14
|
+
source: 'https://github.com/twbs/icons',
|
|
15
|
+
homepage: 'https://getbootstrap.com/',
|
|
16
|
+
license: {
|
|
17
|
+
name: 'MIT',
|
|
18
|
+
url: 'https://github.com/twbs/icons/blob/main/LICENSE.md',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export const create = ({ prng, options }) => {
|
|
22
|
+
var _a, _b;
|
|
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 24 24',
|
|
30
|
+
fill: 'none',
|
|
31
|
+
'shape-rendering': 'auto'
|
|
32
|
+
},
|
|
33
|
+
body: `<g transform="translate(4 4)">${(_b = (_a = components.icon) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
export const schema = {
|
|
8
8
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
package/lib/types.d.ts
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
export interface Options {
|
|
8
8
|
icon?: ('alarm' | 'archive' | 'award' | 'bag' | 'bandaid' | 'bank' | 'basket' | 'basket2' | 'basket3' | 'bell' | 'bicycle' | 'binoculars' | 'book' | 'bookshelf' | 'boombox' | 'boxSeam' | 'box' | 'boxes' | 'bricks' | 'briefcase' | 'brightnessHigh' | 'brush' | 'bucket' | 'bug' | 'building' | 'calculator' | 'cameraReels' | 'camera' | 'cart2' | 'cashCoin' | 'clock' | 'cloudDrizzle' | 'cloudMoon' | 'cloudSnow' | 'cloud' | 'clouds' | 'coin' | 'compass' | 'controller' | 'cupStraw' | 'cup' | 'dice5' | 'disc' | 'display' | 'doorClosed' | 'doorOpen' | 'dpad' | 'droplet' | 'easel' | 'eggFried' | 'egg' | 'emojiHeartEyes' | 'emojiLaughing' | 'emojiSmileUpsideDown' | 'emojiSmile' | 'emojiSunglasses' | 'emojiWink' | 'envelope' | 'eyeglasses' | 'flag' | 'flower1' | 'flower2' | 'flower3' | 'gem' | 'gift' | 'globe' | 'globe2' | 'handThumbsUp' | 'handbag' | 'hdd' | 'heart' | 'hourglassSplit' | 'hourglass' | 'houseDoor' | 'house' | 'inbox' | 'inboxes' | 'key' | 'keyboard' | 'ladder' | 'lamp' | 'laptop' | 'lightbulb' | 'lightningCharge' | 'lightning' | 'lock' | 'magic' | 'mailbox' | 'map' | 'megaphone' | 'minecartLoaded' | 'minecart' | 'moonStars' | 'moon' | 'mortarboard' | 'mouse' | 'mouse2' | 'newspaper' | 'paintBucket' | 'palette' | 'palette2' | 'paperclip' | 'pen' | 'pencil' | 'phone' | 'piggyBank' | 'pinAngle' | 'plug' | 'printer' | 'projector' | 'puzzle' | 'router' | 'scissors' | 'sdCard' | 'search' | 'send' | 'shopWindow' | 'shop' | 'signpost2' | 'signpostSplit' | 'signpost' | 'smartwatch' | 'snow' | 'snow2' | 'snow3' | 'speaker' | 'star' | 'stoplights' | 'stopwatch' | 'sun' | 'tablet' | 'thermometer' | 'ticketPerforated' | 'tornado' | 'trash' | 'trash2' | 'tree' | 'trophy' | 'truckFlatbed' | 'truck' | 'tsunami' | 'umbrella' | 'wallet' | 'wallet2' | 'watch' | 'webcam')[];
|
|
9
9
|
backgroundColor?: string[];
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
11
|
+
export type ColorPickCollection = Record<string, string>;
|
|
12
|
+
export type ComponentGroup = Record<string, ComponentGroupItem>;
|
|
13
|
+
export type ComponentGroupCollection = Record<string, ComponentGroup>;
|
|
14
|
+
export type ComponentGroupItem = (components: ComponentPickCollection, colors: ColorPickCollection) => string;
|
|
15
|
+
export type ComponentPickCollection = Record<string, ComponentPick>;
|
|
16
|
+
export type ComponentPick = {
|
|
17
17
|
name: string;
|
|
18
18
|
value: ComponentGroupItem;
|
|
19
19
|
} | 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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
export {};
|
package/lib/utils/getColors.d.ts
CHANGED
|
@@ -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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
import type { Prng } from '@dicebear/core';
|
|
8
8
|
import type { Options, ColorPickCollection } from '../types.js';
|
|
9
|
-
|
|
9
|
+
type Props = {
|
|
10
10
|
prng: Prng;
|
|
11
11
|
options: Options;
|
|
12
12
|
};
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
import type { Prng } from '@dicebear/core';
|
|
8
8
|
import type { Options, ComponentPickCollection } from '../types.js';
|
|
9
|
-
|
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
6
6
|
*/
|
|
7
7
|
import type { Prng } from '@dicebear/core';
|
|
8
8
|
import type { ComponentPick } from '../types.js';
|
|
9
|
-
|
|
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/BRj9eonsORJ7GIUdm8gnu5
|
|
5
|
+
* File: https://www.figma.com/file/BRj9eonsORJ7GIUdm8gnu5
|
|
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/icons",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
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.
|
|
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": "
|
|
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/BRj9eonsORJ7GIUdm8gnu5/%40dicebear%2Ficons?node-id=1%3A7653
|
|
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/BRj9eonsORJ7GIUdm8gnu5/%40dicebear%2Ficons?node-id=1%3A7653
|
|
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: 'Bootstrap Icons',
|
|
15
|
-
creator: 'The Bootstrap Authors',
|
|
16
|
-
source: 'https://github.com/twbs/icons',
|
|
17
|
-
homepage: 'https://getbootstrap.com/',
|
|
18
|
-
license: {
|
|
19
|
-
name: 'MIT',
|
|
20
|
-
url: 'https://github.com/twbs/icons/blob/main/LICENSE.md',
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
schema: schema,
|
|
24
|
-
create: ({ prng, options }) => {
|
|
25
|
-
var _a, _b;
|
|
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 24 24',
|
|
33
|
-
fill: 'none',
|
|
34
|
-
'shape-rendering': 'auto'
|
|
35
|
-
},
|
|
36
|
-
body: `<g transform="translate(4 4)">${(_b = (_a = components.icon) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g>`,
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
};
|