@dicebear/shapes 5.0.0-alpha.8 → 5.2.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 +14 -2
- package/README.md +21 -3
- package/lib/components/index.d.ts +9 -0
- package/lib/components/index.js +9 -0
- package/lib/components/shape1.d.ts +8 -0
- package/lib/components/shape1.js +16 -0
- package/lib/components/shape2.d.ts +8 -0
- package/lib/components/shape2.js +16 -0
- package/lib/components/shape3.d.ts +8 -0
- package/lib/components/shape3.js +16 -0
- package/lib/hooks/onPreCreate.d.ts +14 -0
- package/lib/hooks/onPreCreate.js +24 -0
- package/lib/index.d.ts +23 -0
- package/lib/index.js +44 -0
- package/lib/schema.d.ts +8 -0
- package/lib/schema.js +249 -0
- package/lib/types.d.ts +36 -0
- package/lib/types.js +7 -0
- package/lib/utils/convertColor.d.ts +7 -0
- package/lib/utils/convertColor.js +9 -0
- package/lib/utils/getColors.d.ts +14 -0
- package/lib/utils/getColors.js +16 -0
- package/lib/utils/getComponents.d.ts +14 -0
- package/lib/utils/getComponents.js +40 -0
- package/lib/utils/pickComponent.d.ts +18 -0
- package/lib/utils/pickComponent.js +33 -0
- package/package.json +20 -28
- package/dist/index.d.ts +0 -20
- package/dist/index.d.ts.map +0 -1
- package/dist/index.es.js +0 -475
- package/dist/index.es.js.map +0 -1
- package/dist/index.js +0 -479
- package/dist/index.js.map +0 -1
package/dist/index.es.js
DELETED
|
@@ -1,475 +0,0 @@
|
|
|
1
|
-
function $parcel$interopDefault(a) {
|
|
2
|
-
return a && a.__esModule ? a.default : a;
|
|
3
|
-
}
|
|
4
|
-
function $parcel$export(e, n, v, s) {
|
|
5
|
-
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
|
-
}
|
|
7
|
-
var $67e4187b48816612$exports = {};
|
|
8
|
-
$67e4187b48816612$exports = JSON.parse("{\"title\":\"Options\",\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"properties\":{\"baseColor\":{\"type\":\"array\",\"items\":{\"anyOf\":[{\"type\":\"string\",\"pattern\":\"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"},{\"type\":\"string\",\"enum\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]}]},\"default\":[\"amber\",\"blue\",\"cyan\",\"deepOrange\",\"deepPurple\",\"green\",\"indigo\",\"lightBlue\",\"lightGreen\",\"lime\",\"orange\",\"pink\",\"purple\",\"red\",\"teal\",\"yellow\"]},\"center\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"default\":[\"shape1Inverted\",\"shape1\",\"shape2Inverted\",\"shape2\",\"shape3Inverted\",\"shape3\",\"shape4Inverted\",\"shape4\",\"shape5Inverted\",\"shape5\",\"shape6Inverted\",\"shape6\",\"shape7Inverted\",\"shape7\",\"shape8\",\"shape9\"]},\"centerModifier\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"centerWrapper\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"corners\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"cornersModifier\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"cornersWrapper\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]},\"sides\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"default\":[\"shape10\",\"shape09\",\"shape08\",\"shape07\",\"shape06\",\"shape05\",\"shape04\",\"shape03\",\"shape02\",\"shape01\"]},\"sidesModifier\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"default\":[\"none\",\"lightGray\",\"gray\",\"lighten\"]},\"sidesWrapper\":{\"type\":\"array\",\"items\":{\"type\":\"string\",\"enum\":[\"default\"]},\"default\":[\"default\"]}},\"additionalProperties\":false}");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var $8d32e7eb0737d2f8$exports = {};
|
|
12
|
-
|
|
13
|
-
$parcel$export($8d32e7eb0737d2f8$exports, "centerModifier", function () { return $476636328e722a09$export$ab12e1dd328f61f4; });
|
|
14
|
-
$parcel$export($8d32e7eb0737d2f8$exports, "cornersModifier", function () { return $dbf20b83e8c5e37b$export$76bffe75b78c48eb; });
|
|
15
|
-
$parcel$export($8d32e7eb0737d2f8$exports, "sidesModifier", function () { return $453ed38ace51786c$export$fb256829d2744cca; });
|
|
16
|
-
$parcel$export($8d32e7eb0737d2f8$exports, "sidesWrapper", function () { return $19062f9f95291733$export$e13a84330d5c0f4a; });
|
|
17
|
-
$parcel$export($8d32e7eb0737d2f8$exports, "sides", function () { return $1db5d4d79df4d87b$export$832b6fa47fa053d2; });
|
|
18
|
-
$parcel$export($8d32e7eb0737d2f8$exports, "cornersWrapper", function () { return $17a6e15359b21f1d$export$753e340586fd18e2; });
|
|
19
|
-
$parcel$export($8d32e7eb0737d2f8$exports, "corners", function () { return $28a98c8c0d7da433$export$389cfe57f7c9dd77; });
|
|
20
|
-
$parcel$export($8d32e7eb0737d2f8$exports, "centerWrapper", function () { return $ef48713e7f3412ce$export$d2d6c9a8ff78da49; });
|
|
21
|
-
$parcel$export($8d32e7eb0737d2f8$exports, "center", function () { return $6677c8736950a583$export$3481c78889e8fbe8; });
|
|
22
|
-
var ref5, ref1, ref2, ref3;
|
|
23
|
-
const $476636328e722a09$export$ab12e1dd328f61f4 = {
|
|
24
|
-
none: (components, colors)=>{
|
|
25
|
-
var ref4;
|
|
26
|
-
return `${(ref5 = (ref4 = components.centerWrapper) === null || ref4 === void 0 ? void 0 : ref4.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}`;
|
|
27
|
-
},
|
|
28
|
-
lightGray: (components, colors)=>{
|
|
29
|
-
var ref;
|
|
30
|
-
return `<mask id="centerModifierLightGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref1 = (ref = components.centerWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</mask><g mask="url(#centerModifierLightGray-a)"><path fill="#E5E5E5" d="M0 0h48v48H0z"/></g>`;
|
|
31
|
-
},
|
|
32
|
-
gray: (components, colors)=>{
|
|
33
|
-
var ref;
|
|
34
|
-
return `<mask id="centerModifierGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref2 = (ref = components.centerWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</mask><g mask="url(#centerModifierGray-a)"><path fill="#737373" d="M0 0h48v48H0z"/></g>`;
|
|
35
|
-
},
|
|
36
|
-
lighten: (components, colors)=>{
|
|
37
|
-
var ref;
|
|
38
|
-
return `<mask id="centerModifierLighten-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref3 = (ref = components.centerWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</mask><g mask="url(#centerModifierLighten-a)"><path fill="${colors.base.value}" d="M0 0h48v48H0z"/><path fill="#fff" fill-opacity=".5" d="M0 0h48v48H0z"/></g>`;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var ref5, ref1, ref2, ref3;
|
|
44
|
-
const $dbf20b83e8c5e37b$export$76bffe75b78c48eb = {
|
|
45
|
-
none: (components, colors)=>{
|
|
46
|
-
var ref4;
|
|
47
|
-
return `${(ref5 = (ref4 = components.cornersWrapper) === null || ref4 === void 0 ? void 0 : ref4.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}`;
|
|
48
|
-
},
|
|
49
|
-
lightGray: (components, colors)=>{
|
|
50
|
-
var ref;
|
|
51
|
-
return `<mask id="cornersModifierLightGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref1 = (ref = components.cornersWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</mask><g mask="url(#cornersModifierLightGray-a)"><path fill="#E5E5E5" d="M0 0h48v48H0z"/></g>`;
|
|
52
|
-
},
|
|
53
|
-
gray: (components, colors)=>{
|
|
54
|
-
var ref;
|
|
55
|
-
return `<mask id="cornersModifierGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref2 = (ref = components.cornersWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</mask><g mask="url(#cornersModifierGray-a)"><path fill="#737373" d="M0 0h48v48H0z"/></g>`;
|
|
56
|
-
},
|
|
57
|
-
lighten: (components, colors)=>{
|
|
58
|
-
var ref;
|
|
59
|
-
return `<mask id="cornersModifierLighten-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref3 = (ref = components.cornersWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</mask><g mask="url(#cornersModifierLighten-a)"><path fill="${colors.base.value}" d="M0 0h48v48H0z"/><path fill="#fff" fill-opacity=".5" d="M0 0h48v48H0z"/></g>`;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
var ref5, ref1, ref2, ref3;
|
|
65
|
-
const $453ed38ace51786c$export$fb256829d2744cca = {
|
|
66
|
-
none: (components, colors)=>{
|
|
67
|
-
var ref4;
|
|
68
|
-
return `${(ref5 = (ref4 = components.sidesWrapper) === null || ref4 === void 0 ? void 0 : ref4.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}`;
|
|
69
|
-
},
|
|
70
|
-
lightGray: (components, colors)=>{
|
|
71
|
-
var ref;
|
|
72
|
-
return `<mask id="sidesModifierLightGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref1 = (ref = components.sidesWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</mask><g mask="url(#sidesModifierLightGray-a)"><path fill="#E5E5E5" d="M0 0h48v48H0z"/></g>`;
|
|
73
|
-
},
|
|
74
|
-
gray: (components, colors)=>{
|
|
75
|
-
var ref;
|
|
76
|
-
return `<mask id="sidesModifierGray-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref2 = (ref = components.sidesWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</mask><g mask="url(#sidesModifierGray-a)"><path fill="#737373" d="M0 0h48v48H0z"/></g>`;
|
|
77
|
-
},
|
|
78
|
-
lighten: (components, colors)=>{
|
|
79
|
-
var ref;
|
|
80
|
-
return `<mask id="sidesModifierLighten-a" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="48" height="48">${(ref3 = (ref = components.sidesWrapper) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</mask><g mask="url(#sidesModifierLighten-a)"><path fill="${colors.base.value}" d="M0 0h48v48H0z"/><path fill="#fff" fill-opacity=".5" d="M0 0h48v48H0z"/></g>`;
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var ref, ref1, ref2, ref3, ref4, ref5, ref6, ref7;
|
|
86
|
-
const $19062f9f95291733$export$e13a84330d5c0f4a = {
|
|
87
|
-
default: (components, colors)=>{
|
|
88
|
-
var ref15, ref8, ref9, ref10, ref11, ref12, ref13, ref14;
|
|
89
|
-
return `<g transform="translate(12)">${(ref = (ref15 = components.sides) === null || ref15 === void 0 ? void 0 : ref15.value(components, colors)) !== null && ref !== void 0 ? ref : ''}</g><g transform="rotate(90 18 18)">${(ref1 = (ref8 = components.sides) === null || ref8 === void 0 ? void 0 : ref8.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</g><g transform="rotate(90 18 30)">${(ref2 = (ref9 = components.sides) === null || ref9 === void 0 ? void 0 : ref9.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</g><g transform="rotate(-180 24 18)">${(ref3 = (ref10 = components.sides) === null || ref10 === void 0 ? void 0 : ref10.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</g><g transform="rotate(-180 18 24)">${(ref4 = (ref11 = components.sides) === null || ref11 === void 0 ? void 0 : ref11.value(components, colors)) !== null && ref4 !== void 0 ? ref4 : ''}</g><g transform="rotate(-90 30 18)">${(ref5 = (ref12 = components.sides) === null || ref12 === void 0 ? void 0 : ref12.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}</g><g transform="rotate(-90 18 18)">${(ref6 = (ref13 = components.sides) === null || ref13 === void 0 ? void 0 : ref13.value(components, colors)) !== null && ref6 !== void 0 ? ref6 : ''}</g><g transform="translate(0 12)">${(ref7 = (ref14 = components.sides) === null || ref14 === void 0 ? void 0 : ref14.value(components, colors)) !== null && ref7 !== void 0 ? ref7 : ''}</g>`;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
const $1db5d4d79df4d87b$export$832b6fa47fa053d2 = {
|
|
95
|
-
shape10: (components, colors)=>`<path d="M0 12V0l12 12H0Z" fill="${colors.base.value}"/>`
|
|
96
|
-
,
|
|
97
|
-
shape09: (components, colors)=>`<path d="M12 12H0L12 0v12Z" fill="${colors.base.value}"/>`
|
|
98
|
-
,
|
|
99
|
-
shape08: (components, colors)=>`<path d="M12 0v12L0 0h12Z" fill="${colors.base.value}"/>`
|
|
100
|
-
,
|
|
101
|
-
shape07: (components, colors)=>`<path d="M0 0h12L0 12V0Z" fill="${colors.base.value}"/>`
|
|
102
|
-
,
|
|
103
|
-
shape06: (components, colors)=>`<circle cx="6" cy="6" r="4" fill="${colors.base.value}"/>`
|
|
104
|
-
,
|
|
105
|
-
shape05: (components, colors)=>`<path d="M12 0H0l12 6V0Z" fill="${colors.base.value}"/>`
|
|
106
|
-
,
|
|
107
|
-
shape04: (components, colors)=>`<path d="M0 0v12L6 0H0Z" fill="${colors.base.value}"/>`
|
|
108
|
-
,
|
|
109
|
-
shape03: (components, colors)=>`<path d="M0 12h12L0 6v6Z" fill="${colors.base.value}"/>`
|
|
110
|
-
,
|
|
111
|
-
shape02: (components, colors)=>`<path d="M12 12V0L6 12h6Z" fill="${colors.base.value}"/>`
|
|
112
|
-
,
|
|
113
|
-
shape01: (components, colors)=>`<path d="m0 6 6-6 6 6-6 6-6-6Z" fill="${colors.base.value}"/>`
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
var ref, ref1, ref2, ref3;
|
|
118
|
-
const $17a6e15359b21f1d$export$753e340586fd18e2 = {
|
|
119
|
-
default: (components, colors)=>{
|
|
120
|
-
var ref7, ref4, ref5, ref6;
|
|
121
|
-
return `${(ref = (ref7 = components.corners) === null || ref7 === void 0 ? void 0 : ref7.value(components, colors)) !== null && ref !== void 0 ? ref : ''}<g transform="rotate(90 24 24)">${(ref1 = (ref4 = components.corners) === null || ref4 === void 0 ? void 0 : ref4.value(components, colors)) !== null && ref1 !== void 0 ? ref1 : ''}</g><g transform="rotate(-90 24 24)">${(ref2 = (ref5 = components.corners) === null || ref5 === void 0 ? void 0 : ref5.value(components, colors)) !== null && ref2 !== void 0 ? ref2 : ''}</g><g transform="rotate(180 24 24)">${(ref3 = (ref6 = components.corners) === null || ref6 === void 0 ? void 0 : ref6.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}</g>`;
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
const $28a98c8c0d7da433$export$389cfe57f7c9dd77 = {
|
|
127
|
-
shape10: (components, colors)=>`<path d="M0 12V0l12 12H0Z" fill="${colors.base.value}"/>`
|
|
128
|
-
,
|
|
129
|
-
shape09: (components, colors)=>`<path d="M12 12H0L12 0v12Z" fill="${colors.base.value}"/>`
|
|
130
|
-
,
|
|
131
|
-
shape08: (components, colors)=>`<path d="M12 0v12L0 0h12Z" fill="${colors.base.value}"/>`
|
|
132
|
-
,
|
|
133
|
-
shape07: (components, colors)=>`<path d="M0 0h12L0 12V0Z" fill="${colors.base.value}"/>`
|
|
134
|
-
,
|
|
135
|
-
shape06: (components, colors)=>`<circle cx="6" cy="6" r="4" fill="${colors.base.value}"/>`
|
|
136
|
-
,
|
|
137
|
-
shape05: (components, colors)=>`<path d="M12 0H0l12 6V0Z" fill="${colors.base.value}"/>`
|
|
138
|
-
,
|
|
139
|
-
shape04: (components, colors)=>`<path d="M0 0v12L6 0H0Z" fill="${colors.base.value}"/>`
|
|
140
|
-
,
|
|
141
|
-
shape03: (components, colors)=>`<path d="M0 12h12L0 6v6Z" fill="${colors.base.value}"/>`
|
|
142
|
-
,
|
|
143
|
-
shape02: (components, colors)=>`<path d="M12 12V0L6 12h6Z" fill="${colors.base.value}"/>`
|
|
144
|
-
,
|
|
145
|
-
shape01: (components, colors)=>`<path d="m0 6 6-6 6 6-6 6-6-6Z" fill="${colors.base.value}"/>`
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
var ref;
|
|
150
|
-
const $ef48713e7f3412ce$export$d2d6c9a8ff78da49 = {
|
|
151
|
-
default: (components, colors)=>{
|
|
152
|
-
var ref1;
|
|
153
|
-
return `<g transform="translate(12 12)">${(ref = (ref1 = components.center) === null || ref1 === void 0 ? void 0 : ref1.value(components, colors)) !== null && ref !== void 0 ? ref : ''}</g>`;
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
const $6677c8736950a583$export$3481c78889e8fbe8 = {
|
|
159
|
-
shape1Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM8.5 12 5 5l7 3.5L19 5l-3.5 7 3.5 7-7-3.5L5 19l3.5-7Z" fill="${colors.base.value}"/>`
|
|
160
|
-
,
|
|
161
|
-
shape1: (components, colors)=>`<path d="M12 8.5 5 5l3.5 7L5 19l7-3.5 7 3.5-3.5-7L19 5l-7 3.5Z" fill="${colors.base.value}"/>`
|
|
162
|
-
,
|
|
163
|
-
shape2Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0h24v24H0V0Zm13 13h7v7h-7v-7Zm-2 0H4v7h7v-7Zm2-9h7v7h-7V4Zm-2 0H4v7h7V4Z" fill="${colors.base.value}"/>`
|
|
164
|
-
,
|
|
165
|
-
shape2: (components, colors)=>`<path d="M13 4h7v7h-7V4ZM11 13H4v7h7v-7ZM20 13h-7v7h7v-7ZM11 4H4v7h7V4Z" fill="${colors.base.value}"/>`
|
|
166
|
-
,
|
|
167
|
-
shape3Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0h24v24H0V0Zm11 16.5L4 13v7l7-3.5Zm2-9L20 4v7l-7-3.5ZM11 4H4l3.5 7L11 4Zm2 16 3.5-7 3.5 7h-7Z" fill="${colors.base.value}"/>`
|
|
168
|
-
,
|
|
169
|
-
shape3: (components, colors)=>`<path d="m20 11-7-3.5L20 4v7ZM13 20h7l-3.5-7-3.5 7ZM11 16.5 4 13v7l7-3.5ZM11 4H4l3.5 7L11 4Z" fill="${colors.base.value}"/>`
|
|
170
|
-
,
|
|
171
|
-
shape4Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM12 2v5l10 5h-5l-5 10v-5L2 12h5l5-10Z" fill="${colors.base.value}"/>`
|
|
172
|
-
,
|
|
173
|
-
shape4: (components, colors)=>`<path d="M12 7V2L7 12H2l10 5v5l5-10h5L12 7Z" fill="${colors.base.value}"/>`
|
|
174
|
-
,
|
|
175
|
-
shape5Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0h24v24H0V0Zm20 16.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z" fill="${colors.base.value}"/>`
|
|
176
|
-
,
|
|
177
|
-
shape5: (components, colors)=>`<path d="M20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM16.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z" fill="${colors.base.value}"/>`
|
|
178
|
-
,
|
|
179
|
-
shape6Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM12 6l-6 6 6 6 6-6-6-6Z" fill="${colors.base.value}"/>`
|
|
180
|
-
,
|
|
181
|
-
shape6: (components, colors)=>`<path d="m6 12 6-6 6 6-6 6-6-6Z" fill="${colors.base.value}"/>`
|
|
182
|
-
,
|
|
183
|
-
shape7Inverted: (components, colors)=>`<path fill-rule="evenodd" clip-rule="evenodd" d="M24 0H0v24h24V0ZM12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z" fill="${colors.base.value}"/>`
|
|
184
|
-
,
|
|
185
|
-
shape7: (components, colors)=>`<circle cx="12" cy="12" r="7" fill="${colors.base.value}"/>`
|
|
186
|
-
,
|
|
187
|
-
shape8: (components, colors)=>`<path fill="${colors.base.value}" d="M4 4h16v16H4z"/>`
|
|
188
|
-
,
|
|
189
|
-
shape9: (components, colors)=>`<path d="M12 0v9L6 0h6ZM24 12h-9l9-6v6ZM12 24v-9l6 9h-6ZM9 12H0v6l9-6Z" fill="${colors.base.value}"/>`
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
function $0db3dece4d90e77e$export$5bc6178a9a86ed74({ prng: prng , group: group , values: values = [] }) {
|
|
196
|
-
const componentCollection = $8d32e7eb0737d2f8$exports;
|
|
197
|
-
const key = prng.pick(values);
|
|
198
|
-
if (componentCollection[group][key]) return {
|
|
199
|
-
name: key,
|
|
200
|
-
value: componentCollection[group][key]
|
|
201
|
-
};
|
|
202
|
-
else return undefined;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
function $a2b0f2914fce622c$export$4e811121b221213b({ prng: prng , options: options }) {
|
|
207
|
-
const centerModifierComponent = $0db3dece4d90e77e$export$5bc6178a9a86ed74({
|
|
208
|
-
prng: prng,
|
|
209
|
-
group: 'centerModifier',
|
|
210
|
-
values: options.centerModifier
|
|
211
|
-
});
|
|
212
|
-
const cornersModifierComponent = $0db3dece4d90e77e$export$5bc6178a9a86ed74({
|
|
213
|
-
prng: prng,
|
|
214
|
-
group: 'cornersModifier',
|
|
215
|
-
values: options.cornersModifier
|
|
216
|
-
});
|
|
217
|
-
const sidesModifierComponent = $0db3dece4d90e77e$export$5bc6178a9a86ed74({
|
|
218
|
-
prng: prng,
|
|
219
|
-
group: 'sidesModifier',
|
|
220
|
-
values: options.sidesModifier
|
|
221
|
-
});
|
|
222
|
-
const sidesWrapperComponent = $0db3dece4d90e77e$export$5bc6178a9a86ed74({
|
|
223
|
-
prng: prng,
|
|
224
|
-
group: 'sidesWrapper',
|
|
225
|
-
values: options.sidesWrapper
|
|
226
|
-
});
|
|
227
|
-
const sidesComponent = $0db3dece4d90e77e$export$5bc6178a9a86ed74({
|
|
228
|
-
prng: prng,
|
|
229
|
-
group: 'sides',
|
|
230
|
-
values: options.sides
|
|
231
|
-
});
|
|
232
|
-
const cornersWrapperComponent = $0db3dece4d90e77e$export$5bc6178a9a86ed74({
|
|
233
|
-
prng: prng,
|
|
234
|
-
group: 'cornersWrapper',
|
|
235
|
-
values: options.cornersWrapper
|
|
236
|
-
});
|
|
237
|
-
const cornersComponent = $0db3dece4d90e77e$export$5bc6178a9a86ed74({
|
|
238
|
-
prng: prng,
|
|
239
|
-
group: 'corners',
|
|
240
|
-
values: options.corners
|
|
241
|
-
});
|
|
242
|
-
const centerWrapperComponent = $0db3dece4d90e77e$export$5bc6178a9a86ed74({
|
|
243
|
-
prng: prng,
|
|
244
|
-
group: 'centerWrapper',
|
|
245
|
-
values: options.centerWrapper
|
|
246
|
-
});
|
|
247
|
-
const centerComponent = $0db3dece4d90e77e$export$5bc6178a9a86ed74({
|
|
248
|
-
prng: prng,
|
|
249
|
-
group: 'center',
|
|
250
|
-
values: options.center
|
|
251
|
-
});
|
|
252
|
-
return {
|
|
253
|
-
centerModifier: centerModifierComponent,
|
|
254
|
-
cornersModifier: cornersModifierComponent,
|
|
255
|
-
sidesModifier: sidesModifierComponent,
|
|
256
|
-
sidesWrapper: sidesWrapperComponent,
|
|
257
|
-
sides: sidesComponent,
|
|
258
|
-
cornersWrapper: cornersWrapperComponent,
|
|
259
|
-
corners: cornersComponent,
|
|
260
|
-
centerWrapper: centerWrapperComponent,
|
|
261
|
-
center: centerComponent
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
var $af72ddadddfa54f2$exports = {};
|
|
267
|
-
|
|
268
|
-
$parcel$export($af72ddadddfa54f2$exports, "base", function () { return $ae91cf0914d0997f$export$e2253033e6e1df16; });
|
|
269
|
-
const $ae91cf0914d0997f$export$e2253033e6e1df16 = {
|
|
270
|
-
amber: 'rgba(255, 179, 0, 1)',
|
|
271
|
-
blue: 'rgba(30, 136, 229, 1)',
|
|
272
|
-
cyan: 'rgba(0, 172, 193, 1)',
|
|
273
|
-
deepOrange: 'rgba(244, 81, 30, 1)',
|
|
274
|
-
deepPurple: 'rgba(94, 53, 177, 1)',
|
|
275
|
-
green: 'rgba(67, 160, 71, 1)',
|
|
276
|
-
indigo: 'rgba(57, 73, 171, 1)',
|
|
277
|
-
lightBlue: 'rgba(3, 155, 229, 1)',
|
|
278
|
-
lightGreen: 'rgba(124, 179, 66, 1)',
|
|
279
|
-
lime: 'rgba(192, 202, 51, 1)',
|
|
280
|
-
orange: 'rgba(251, 140, 0, 1)',
|
|
281
|
-
pink: 'rgba(216, 27, 96, 1)',
|
|
282
|
-
purple: 'rgba(142, 36, 170, 1)',
|
|
283
|
-
red: 'rgba(229, 57, 53, 1)',
|
|
284
|
-
teal: 'rgba(0, 137, 123, 1)',
|
|
285
|
-
yellow: 'rgba(253, 216, 53, 1)'
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
function $8230d913f247a3d1$export$c6d89e41e42fa994({ prng: prng , group: group , values: values = [] }) {
|
|
292
|
-
const colorCollection = $af72ddadddfa54f2$exports;
|
|
293
|
-
if (values.length === 0) values.push('transparent');
|
|
294
|
-
const key = prng.pick(values);
|
|
295
|
-
var _key;
|
|
296
|
-
return {
|
|
297
|
-
name: key,
|
|
298
|
-
value: (_key = colorCollection[group][key]) !== null && _key !== void 0 ? _key : key
|
|
299
|
-
};
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
function $1fd6002e836276a0$export$6cee60e8aa85e528({ prng: prng , options: options }) {
|
|
304
|
-
return {
|
|
305
|
-
base: $8230d913f247a3d1$export$c6d89e41e42fa994({
|
|
306
|
-
prng: prng,
|
|
307
|
-
group: 'base',
|
|
308
|
-
values: options.baseColor
|
|
309
|
-
})
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
function $deedb14c8ca8364c$export$19269755e7fb6f76({ prng: prng , options: options , preview: preview }) {
|
|
315
|
-
const pickModifier = (modifier = [], alreadyPicked = [])=>{
|
|
316
|
-
const pickItems = modifier.filter((v)=>false === alreadyPicked.includes(v) && v === 'none'
|
|
317
|
-
);
|
|
318
|
-
const pick = prng.pick(pickItems.length ? pickItems : modifier);
|
|
319
|
-
return pick ? [
|
|
320
|
-
pick
|
|
321
|
-
] : [];
|
|
322
|
-
};
|
|
323
|
-
options.centerModifier = pickModifier(options.centerModifier);
|
|
324
|
-
options.sidesModifier = pickModifier(options.sidesModifier, [
|
|
325
|
-
options.centerModifier[0],
|
|
326
|
-
]);
|
|
327
|
-
options.cornersModifier = pickModifier(options.cornersModifier, [
|
|
328
|
-
options.centerModifier[0],
|
|
329
|
-
options.sidesModifier[0],
|
|
330
|
-
]);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
function $3fdf2bfee3789e13$export$2538c3cd8a13189f({ prng: prng , options: options , components: components , colors: colors , preview: preview }) {
|
|
335
|
-
// Write your modifications here
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
const $175b4ed7b2aa5868$export$62ad7b0c781000e9 = {
|
|
340
|
-
centerModifier: {
|
|
341
|
-
width: 48,
|
|
342
|
-
height: 48
|
|
343
|
-
},
|
|
344
|
-
cornersModifier: {
|
|
345
|
-
width: 48,
|
|
346
|
-
height: 48
|
|
347
|
-
},
|
|
348
|
-
sidesModifier: {
|
|
349
|
-
width: 48,
|
|
350
|
-
height: 48
|
|
351
|
-
},
|
|
352
|
-
sidesWrapper: {
|
|
353
|
-
width: 48,
|
|
354
|
-
height: 48
|
|
355
|
-
},
|
|
356
|
-
sides: {
|
|
357
|
-
width: 12,
|
|
358
|
-
height: 12
|
|
359
|
-
},
|
|
360
|
-
cornersWrapper: {
|
|
361
|
-
width: 48,
|
|
362
|
-
height: 48
|
|
363
|
-
},
|
|
364
|
-
corners: {
|
|
365
|
-
width: 12,
|
|
366
|
-
height: 12
|
|
367
|
-
},
|
|
368
|
-
centerWrapper: {
|
|
369
|
-
width: 48,
|
|
370
|
-
height: 48
|
|
371
|
-
},
|
|
372
|
-
center: {
|
|
373
|
-
width: 24,
|
|
374
|
-
height: 24
|
|
375
|
-
}
|
|
376
|
-
};
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
const $cb6f04372c68525d$export$1d567c320f4763bc = {
|
|
380
|
-
meta: {
|
|
381
|
-
title: 'Jdenticon',
|
|
382
|
-
creator: 'Daniel Mester Pirttijärvi',
|
|
383
|
-
source: 'https://github.com/dmester/jdenticon',
|
|
384
|
-
license: {
|
|
385
|
-
name: 'MIT',
|
|
386
|
-
url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/LICENSE'
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
schema: (/*@__PURE__*/$parcel$interopDefault($67e4187b48816612$exports)),
|
|
390
|
-
create: ({ prng: prng , options: options })=>{
|
|
391
|
-
var ref, ref1, ref2;
|
|
392
|
-
$deedb14c8ca8364c$export$19269755e7fb6f76({
|
|
393
|
-
prng: prng,
|
|
394
|
-
options: options,
|
|
395
|
-
preview: false
|
|
396
|
-
});
|
|
397
|
-
const components = $a2b0f2914fce622c$export$4e811121b221213b({
|
|
398
|
-
prng: prng,
|
|
399
|
-
options: options
|
|
400
|
-
});
|
|
401
|
-
const colors = $1fd6002e836276a0$export$6cee60e8aa85e528({
|
|
402
|
-
prng: prng,
|
|
403
|
-
options: options
|
|
404
|
-
});
|
|
405
|
-
$3fdf2bfee3789e13$export$2538c3cd8a13189f({
|
|
406
|
-
prng: prng,
|
|
407
|
-
options: options,
|
|
408
|
-
components: components,
|
|
409
|
-
colors: colors,
|
|
410
|
-
preview: false
|
|
411
|
-
});
|
|
412
|
-
var ref3, ref4, ref5;
|
|
413
|
-
return {
|
|
414
|
-
attributes: {
|
|
415
|
-
viewBox: '0 0 48 48',
|
|
416
|
-
fill: 'none',
|
|
417
|
-
'shape-rendering': 'auto'
|
|
418
|
-
},
|
|
419
|
-
body: `${(ref3 = (ref = components.centerModifier) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref3 !== void 0 ? ref3 : ''}${(ref4 = (ref1 = components.cornersModifier) === null || ref1 === void 0 ? void 0 : ref1.value(components, colors)) !== null && ref4 !== void 0 ? ref4 : ''}${(ref5 = (ref2 = components.sidesModifier) === null || ref2 === void 0 ? void 0 : ref2.value(components, colors)) !== null && ref5 !== void 0 ? ref5 : ''}`
|
|
420
|
-
};
|
|
421
|
-
},
|
|
422
|
-
preview: ({ prng: prng , options: options , property: property })=>{
|
|
423
|
-
const componentGroup = property.toString();
|
|
424
|
-
const colorGroup = property.toString().replace(/Color$/, '');
|
|
425
|
-
$deedb14c8ca8364c$export$19269755e7fb6f76({
|
|
426
|
-
prng: prng,
|
|
427
|
-
options: options,
|
|
428
|
-
preview: true
|
|
429
|
-
});
|
|
430
|
-
const components = $a2b0f2914fce622c$export$4e811121b221213b({
|
|
431
|
-
prng: prng,
|
|
432
|
-
options: options
|
|
433
|
-
});
|
|
434
|
-
const colors = $1fd6002e836276a0$export$6cee60e8aa85e528({
|
|
435
|
-
prng: prng,
|
|
436
|
-
options: options
|
|
437
|
-
});
|
|
438
|
-
$3fdf2bfee3789e13$export$2538c3cd8a13189f({
|
|
439
|
-
prng: prng,
|
|
440
|
-
options: options,
|
|
441
|
-
components: components,
|
|
442
|
-
colors: colors,
|
|
443
|
-
preview: true
|
|
444
|
-
});
|
|
445
|
-
if (componentGroup in components) {
|
|
446
|
-
var ref;
|
|
447
|
-
const { width: width , height: height } = $175b4ed7b2aa5868$export$62ad7b0c781000e9[componentGroup];
|
|
448
|
-
var ref6;
|
|
449
|
-
return {
|
|
450
|
-
attributes: {
|
|
451
|
-
viewBox: `0 0 ${width} ${height}`,
|
|
452
|
-
fill: 'none',
|
|
453
|
-
'shape-rendering': 'auto'
|
|
454
|
-
},
|
|
455
|
-
body: (ref6 = (ref = components[componentGroup]) === null || ref === void 0 ? void 0 : ref.value(components, colors)) !== null && ref6 !== void 0 ? ref6 : ''
|
|
456
|
-
};
|
|
457
|
-
}
|
|
458
|
-
if (colorGroup in colors) return {
|
|
459
|
-
attributes: {
|
|
460
|
-
viewBox: `0 0 1 1`,
|
|
461
|
-
fill: 'none',
|
|
462
|
-
'shape-rendering': 'auto'
|
|
463
|
-
},
|
|
464
|
-
body: `<rect width="1" height="1" fill="${colors[colorGroup].value}" />`
|
|
465
|
-
};
|
|
466
|
-
return undefined;
|
|
467
|
-
}
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
const { create: $3c847bb6bd997dbd$export$185802fd694ee1f5 , preview: $3c847bb6bd997dbd$export$48c2d0f2f545ac27 , meta: $3c847bb6bd997dbd$export$6990040ee07315 , schema: $3c847bb6bd997dbd$export$4902baddc787debb } = $cb6f04372c68525d$export$1d567c320f4763bc;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
export {$3c847bb6bd997dbd$export$185802fd694ee1f5 as create, $3c847bb6bd997dbd$export$48c2d0f2f545ac27 as preview, $3c847bb6bd997dbd$export$6990040ee07315 as meta, $3c847bb6bd997dbd$export$4902baddc787debb as schema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;QACzE,CAAC;QAGH,MAAM,CAAC,SAAS;IAClB,CAAC;AACH,CAAC;;;AD/DD,KAAK,CAAC,CAAC,SAAC,yCAAM,YAAE,yCAAO,SAAE,uCAAI,WAAE,yCAAM,EAAC,CAAC,GAAG,yCAAK","sources":["packages/@dicebear/shapes/src/index.ts","packages/@dicebear/shapes/src/core.ts","packages/@dicebear/shapes/src/schema.json","packages/@dicebear/shapes/src/utils/getComponents.ts","packages/@dicebear/shapes/src/utils/pickComponent.ts","packages/@dicebear/shapes/src/components/index.ts","packages/@dicebear/shapes/src/components/centerModifier.ts","packages/@dicebear/shapes/src/components/cornersModifier.ts","packages/@dicebear/shapes/src/components/sidesModifier.ts","packages/@dicebear/shapes/src/components/sidesWrapper.ts","packages/@dicebear/shapes/src/components/sides.ts","packages/@dicebear/shapes/src/components/cornersWrapper.ts","packages/@dicebear/shapes/src/components/corners.ts","packages/@dicebear/shapes/src/components/centerWrapper.ts","packages/@dicebear/shapes/src/components/center.ts","packages/@dicebear/shapes/src/utils/getColors.ts","packages/@dicebear/shapes/src/utils/pickColor.ts","packages/@dicebear/shapes/src/colors/index.ts","packages/@dicebear/shapes/src/colors/base.ts","packages/@dicebear/shapes/src/hooks/onPreCreate.ts","packages/@dicebear/shapes/src/hooks/onPostCreate.ts","packages/@dicebear/shapes/src/meta/components.ts"],"sourcesContent":["/*!\n * Shapes (@dicebear/shapes)\n *\n * Code licensed under MIT License.\n * Copyright (c) 2021 Florian Körner\n * Copyright (c) 2021 Daniel Mester Pirttijärvi\n *\n * Design \"Jdenticon\" by Daniel Mester Pirttijärvi licensed under MIT.\n * Source: https://github.com/dmester/jdenticon\n * License: https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/LICENSE\n */\n\nimport { style } from './core';\n\nconst { create, preview, meta, schema } = style;\n\nexport { create, preview, meta, schema };\nexport type { Options } from './options';\n","import type { Style, StyleSchema } from '@dicebear/core';\nimport type { Options } from './options';\n\nimport schema from './schema.json';\nimport { getComponents } from './utils/getComponents';\nimport { getColors } from './utils/getColors';\nimport { onPreCreate } from './hooks/onPreCreate';\nimport { onPostCreate } from './hooks/onPostCreate';\nimport { dimensions } from './meta/components';\n\nexport const style: Style<Options> = {\n meta: {\n title: 'Jdenticon',\n creator: 'Daniel Mester Pirttijärvi',\n source: 'https://github.com/dmester/jdenticon',\n license: {\n name: 'MIT',\n url: 'https://github.com/dicebear/dicebear/blob/main/packages/%40dicebear/shapes/LICENSE',\n },\n },\n schema: schema as StyleSchema,\n create: ({ prng, options }) => {\n onPreCreate({ prng, options, preview: false });\n\n const components = getComponents({ prng, options });\n const colors = getColors({ prng, options });\n\n onPostCreate({ prng, options, components, colors, preview: false });\n\n return {\n attributes: {\n viewBox: '0 0 48 48',\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `${components.centerModifier?.value(components, colors) ?? ''}${\n components.cornersModifier?.value(components, colors) ?? ''\n }${components.sidesModifier?.value(components, colors) ?? ''}`,\n };\n },\n preview: ({ prng, options, property }) => {\n const componentGroup = property.toString();\n const colorGroup = property.toString().replace(/Color$/, '');\n\n onPreCreate({ prng, options, preview: true });\n\n const components = getComponents({ prng, options });\n const colors = getColors({ prng, options });\n\n onPostCreate({ prng, options, components, colors, preview: true });\n\n if (componentGroup in components) {\n const { width, height } = dimensions[componentGroup]!;\n\n return {\n attributes: {\n viewBox: `0 0 ${width} ${height}`,\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: components[componentGroup]?.value(components, colors) ?? '',\n };\n }\n\n if (colorGroup in colors) {\n return {\n attributes: {\n viewBox: `0 0 1 1`,\n fill: 'none',\n 'shape-rendering': 'auto',\n },\n body: `<rect width=\"1\" height=\"1\" fill=\"${colors[colorGroup].value}\" />`,\n };\n }\n\n return undefined;\n },\n};\n","{\n \"title\": \"Options\",\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"properties\": {\n \"baseColor\": {\n \"type\": \"array\",\n \"items\": {\n \"anyOf\": [\n {\n \"type\": \"string\",\n \"pattern\": \"^#([a-fA-F0-9]{3}|[a-fA-F0-9]{4}|[a-fA-F0-9]{6}|[a-fA-F0-9]{8})$\"\n },\n {\n \"type\": \"string\",\n \"enum\": [\n \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n }\n ]\n },\n \"default\": [\n \"amber\",\n \"blue\",\n \"cyan\",\n \"deepOrange\",\n \"deepPurple\",\n \"green\",\n \"indigo\",\n \"lightBlue\",\n \"lightGreen\",\n \"lime\",\n \"orange\",\n \"pink\",\n \"purple\",\n \"red\",\n \"teal\",\n \"yellow\"\n ]\n },\n \"center\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"default\": [\n \"shape1Inverted\",\n \"shape1\",\n \"shape2Inverted\",\n \"shape2\",\n \"shape3Inverted\",\n \"shape3\",\n \"shape4Inverted\",\n \"shape4\",\n \"shape5Inverted\",\n \"shape5\",\n \"shape6Inverted\",\n \"shape6\",\n \"shape7Inverted\",\n \"shape7\",\n \"shape8\",\n \"shape9\"\n ]\n },\n \"centerModifier\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"centerWrapper\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"corners\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"cornersModifier\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"cornersWrapper\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n },\n \"sides\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"default\": [\n \"shape10\",\n \"shape09\",\n \"shape08\",\n \"shape07\",\n \"shape06\",\n \"shape05\",\n \"shape04\",\n \"shape03\",\n \"shape02\",\n \"shape01\"\n ]\n },\n \"sidesModifier\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\",\n \"enum\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"default\": [\"none\", \"lightGray\", \"gray\", \"lighten\"]\n },\n \"sidesWrapper\": {\n \"type\": \"array\",\n \"items\": { \"type\": \"string\", \"enum\": [\"default\"] },\n \"default\": [\"default\"]\n }\n },\n \"additionalProperties\": false\n}\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ComponentPickCollection } from '../static-types';\nimport { pickComponent } from './pickComponent';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getComponents({\n prng,\n options,\n}: Props): ComponentPickCollection {\n const centerModifierComponent = pickComponent({\n prng,\n group: 'centerModifier',\n values: options.centerModifier,\n });\n const cornersModifierComponent = pickComponent({\n prng,\n group: 'cornersModifier',\n values: options.cornersModifier,\n });\n const sidesModifierComponent = pickComponent({\n prng,\n group: 'sidesModifier',\n values: options.sidesModifier,\n });\n const sidesWrapperComponent = pickComponent({\n prng,\n group: 'sidesWrapper',\n values: options.sidesWrapper,\n });\n const sidesComponent = pickComponent({\n prng,\n group: 'sides',\n values: options.sides,\n });\n const cornersWrapperComponent = pickComponent({\n prng,\n group: 'cornersWrapper',\n values: options.cornersWrapper,\n });\n const cornersComponent = pickComponent({\n prng,\n group: 'corners',\n values: options.corners,\n });\n const centerWrapperComponent = pickComponent({\n prng,\n group: 'centerWrapper',\n values: options.centerWrapper,\n });\n const centerComponent = pickComponent({\n prng,\n group: 'center',\n values: options.center,\n });\n\n return {\n centerModifier: centerModifierComponent,\n cornersModifier: cornersModifierComponent,\n sidesModifier: sidesModifierComponent,\n sidesWrapper: sidesWrapperComponent,\n sides: sidesComponent,\n cornersWrapper: cornersWrapperComponent,\n corners: cornersComponent,\n centerWrapper: centerWrapperComponent,\n center: centerComponent,\n };\n}\n","import type { Prng } from '@dicebear/core';\nimport type { ComponentGroupCollection, ComponentPick } from '../static-types';\nimport * as components from '../components';\n\ntype Props = {\n prng: Prng;\n group: string;\n values?: string[];\n};\n\nexport function pickComponent({\n prng,\n group,\n values = [],\n}: Props): ComponentPick {\n const componentCollection: ComponentGroupCollection = components;\n\n const key = prng.pick(values);\n\n if (componentCollection[group][key]) {\n return {\n name: key,\n value: componentCollection[group][key],\n };\n } else {\n return undefined;\n }\n}\n","export { centerModifier } from './centerModifier';\nexport { cornersModifier } from './cornersModifier';\nexport { sidesModifier } from './sidesModifier';\nexport { sidesWrapper } from './sidesWrapper';\nexport { sides } from './sides';\nexport { cornersWrapper } from './cornersWrapper';\nexport { corners } from './corners';\nexport { centerWrapper } from './centerWrapper';\nexport { center } from './center';\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.centerWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"centerModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"centerModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.centerWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#centerModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.cornersWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"cornersModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"cornersModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.cornersWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#cornersModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesModifier: ComponentGroup = {\n none: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${components.sidesWrapper?.value(components, colors) ?? ''}`,\n lightGray: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<mask id=\"sidesModifierLightGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLightGray-a)\"><path fill=\"#E5E5E5\" d=\"M0 0h48v48H0z\"/></g>`,\n gray: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierGray-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierGray-a)\"><path fill=\"#737373\" d=\"M0 0h48v48H0z\"/></g>`,\n lighten: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<mask id=\"sidesModifierLighten-a\" style=\"mask-type:alpha\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"48\" height=\"48\">${\n components.sidesWrapper?.value(components, colors) ?? ''\n }</mask><g mask=\"url(#sidesModifierLighten-a)\"><path fill=\"${\n colors.base.value\n }\" d=\"M0 0h48v48H0z\"/><path fill=\"#fff\" fill-opacity=\".5\" d=\"M0 0h48v48H0z\"/></g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sidesWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(90 18 30)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 24 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-180 18 24)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 30 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 18 18)\">${\n components.sides?.value(components, colors) ?? ''\n }</g><g transform=\"translate(0 12)\">${\n components.sides?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const sides: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const cornersWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `${\n components.corners?.value(components, colors) ?? ''\n }<g transform=\"rotate(90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(-90 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g><g transform=\"rotate(180 24 24)\">${\n components.corners?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const corners: ComponentGroup = {\n shape10: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12V0l12 12H0Z\" fill=\"${colors.base.value}\"/>`,\n shape09: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12H0L12 0v12Z\" fill=\"${colors.base.value}\"/>`,\n shape08: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v12L0 0h12Z\" fill=\"${colors.base.value}\"/>`,\n shape07: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0h12L0 12V0Z\" fill=\"${colors.base.value}\"/>`,\n shape06: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"6\" cy=\"6\" r=\"4\" fill=\"${colors.base.value}\"/>`,\n shape05: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0H0l12 6V0Z\" fill=\"${colors.base.value}\"/>`,\n shape04: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 0v12L6 0H0Z\" fill=\"${colors.base.value}\"/>`,\n shape03: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M0 12h12L0 6v6Z\" fill=\"${colors.base.value}\"/>`,\n shape02: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 12V0L6 12h6Z\" fill=\"${colors.base.value}\"/>`,\n shape01: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m0 6 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const centerWrapper: ComponentGroup = {\n default: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<g transform=\"translate(12 12)\">${\n components.center?.value(components, colors) ?? ''\n }</g>`,\n};\n","import type {\n ComponentGroup,\n ComponentPickCollection,\n ColorPickCollection,\n} from '../static-types';\n\nexport const center: ComponentGroup = {\n shape1Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM8.5 12 5 5l7 3.5L19 5l-3.5 7 3.5 7-7-3.5L5 19l3.5-7Z\" fill=\"${colors.base.value}\"/>`,\n shape1: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 8.5 5 5l3.5 7L5 19l7-3.5 7 3.5-3.5-7L19 5l-7 3.5Z\" fill=\"${colors.base.value}\"/>`,\n shape2Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm13 13h7v7h-7v-7Zm-2 0H4v7h7v-7Zm2-9h7v7h-7V4Zm-2 0H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape2: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M13 4h7v7h-7V4ZM11 13H4v7h7v-7ZM20 13h-7v7h7v-7ZM11 4H4v7h7V4Z\" fill=\"${colors.base.value}\"/>`,\n shape3Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm11 16.5L4 13v7l7-3.5Zm2-9L20 4v7l-7-3.5ZM11 4H4l3.5 7L11 4Zm2 16 3.5-7 3.5 7h-7Z\" fill=\"${colors.base.value}\"/>`,\n shape3: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m20 11-7-3.5L20 4v7ZM13 20h7l-3.5-7-3.5 7ZM11 16.5 4 13v7l7-3.5ZM11 4H4l3.5 7L11 4Z\" fill=\"${colors.base.value}\"/>`,\n shape4Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 2v5l10 5h-5l-5 10v-5L2 12h5l5-10Z\" fill=\"${colors.base.value}\"/>`,\n shape4: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 7V2L7 12H2l10 5v5l5-10h5L12 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 0h24v24H0V0Zm20 16.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape5: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M20 7.5a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0ZM7.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM16.5 20a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM7.5 11a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7Z\" fill=\"${colors.base.value}\"/>`,\n shape6Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 6l-6 6 6 6 6-6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape6: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"m6 12 6-6 6 6-6 6-6-6Z\" fill=\"${colors.base.value}\"/>`,\n shape7Inverted: (\n components: ComponentPickCollection,\n colors: ColorPickCollection\n ) =>\n `<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M24 0H0v24h24V0ZM12 19a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z\" fill=\"${colors.base.value}\"/>`,\n shape7: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"${colors.base.value}\"/>`,\n shape8: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path fill=\"${colors.base.value}\" d=\"M4 4h16v16H4z\"/>`,\n shape9: (components: ComponentPickCollection, colors: ColorPickCollection) =>\n `<path d=\"M12 0v9L6 0h6ZM24 12h-9l9-6v6ZM12 24v-9l6 9h-6ZM9 12H0v6l9-6Z\" fill=\"${colors.base.value}\"/>`,\n};\n","import type { Prng } from '@dicebear/core';\nimport type { Options } from '../options';\nimport type { ColorPickCollection } from '../static-types';\nimport { pickColor } from './pickColor';\n\ntype Props = {\n prng: Prng;\n options: Options;\n};\n\nexport function getColors({ prng, options }: Props): ColorPickCollection {\n return {\n base: pickColor({\n prng,\n group: 'base',\n values: options.baseColor,\n }),\n };\n}\n","import type { Prng } from '@dicebear/core';\nimport type { ColorGroupCollection, ColorPick } from '../static-types';\nimport * as colors from '../colors';\n\ntype Props = {\n prng: Prng;\n group: string;\n values?: string[];\n};\n\nexport function pickColor({ prng, group, values = [] }: Props): ColorPick {\n const colorCollection: ColorGroupCollection = colors;\n\n if (values.length === 0) {\n values.push('transparent');\n }\n\n const key = prng.pick(values);\n\n return {\n name: key,\n value: colorCollection[group][key] ?? key,\n };\n}\n","export { base } from './base';\n","import type { ColorGroup } from '../static-types';\n\nexport const base: ColorGroup = {\n amber: 'rgba(255, 179, 0, 1)',\n blue: 'rgba(30, 136, 229, 1)',\n cyan: 'rgba(0, 172, 193, 1)',\n deepOrange: 'rgba(244, 81, 30, 1)',\n deepPurple: 'rgba(94, 53, 177, 1)',\n green: 'rgba(67, 160, 71, 1)',\n indigo: 'rgba(57, 73, 171, 1)',\n lightBlue: 'rgba(3, 155, 229, 1)',\n lightGreen: 'rgba(124, 179, 66, 1)',\n lime: 'rgba(192, 202, 51, 1)',\n orange: 'rgba(251, 140, 0, 1)',\n pink: 'rgba(216, 27, 96, 1)',\n purple: 'rgba(142, 36, 170, 1)',\n red: 'rgba(229, 57, 53, 1)',\n teal: 'rgba(0, 137, 123, 1)',\n yellow: 'rgba(253, 216, 53, 1)',\n};\n","import { Prng, StyleOptions } from '@dicebear/core';\n\nimport { Options } from '../options';\n\ntype Props = { prng: Prng; options: StyleOptions<Options>; preview: boolean };\n\nexport function onPreCreate({ prng, options, preview }: Props) {\n const pickModifier = <T extends string>(\n modifier: T[] = [],\n alreadyPicked: T[] = []\n ): T[] => {\n const pickItems = modifier.filter(\n (v) => false === alreadyPicked.includes(v) && v === 'none'\n );\n const pick = prng.pick(pickItems.length ? pickItems : modifier);\n\n return pick ? [pick] : [];\n };\n\n options.centerModifier = pickModifier(options.centerModifier);\n options.sidesModifier = pickModifier(options.sidesModifier, [\n options.centerModifier[0],\n ]);\n options.cornersModifier = pickModifier(options.cornersModifier, [\n options.centerModifier[0],\n options.sidesModifier[0],\n ]);\n}\n","import { Prng, StyleOptions } from '@dicebear/core';\n\nimport { Options } from '../options';\nimport { ColorPickCollection, ComponentPickCollection } from '../static-types';\n\ntype Props = {\n prng: Prng;\n options: StyleOptions<Options>;\n components: ComponentPickCollection;\n colors: ColorPickCollection;\n preview: boolean;\n};\n\nexport function onPostCreate({\n prng,\n options,\n components,\n colors,\n preview,\n}: Props) {\n // Write your modifications here\n}\n","export const dimensions: Record<string, { width: number; height: number }> = {\n centerModifier: {\n width: 48,\n height: 48,\n },\n cornersModifier: {\n width: 48,\n height: 48,\n },\n sidesModifier: {\n width: 48,\n height: 48,\n },\n sidesWrapper: {\n width: 48,\n height: 48,\n },\n sides: {\n width: 12,\n height: 12,\n },\n cornersWrapper: {\n width: 48,\n height: 48,\n },\n corners: {\n width: 12,\n height: 12,\n },\n centerWrapper: {\n width: 48,\n height: 48,\n },\n center: {\n width: 24,\n height: 24,\n },\n};\n"],"names":[],"version":3,"file":"index.es.js.map"}
|