@dicebear/lorelei 9.2.2 → 9.2.3
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/lib/components/beard.js +2 -2
- package/lib/components/earrings.js +3 -3
- package/lib/components/eyebrows.js +13 -13
- package/lib/components/eyes.js +24 -24
- package/lib/components/freckles.js +1 -1
- package/lib/components/glasses.js +5 -5
- package/lib/components/hair.js +48 -48
- package/lib/components/hairAccessories.js +1 -1
- package/lib/components/head.js +4 -4
- package/lib/components/mouth.js +27 -27
- package/lib/components/nose.js +6 -6
- package/lib/hooks/onPostCreate.d.ts +2 -2
- package/lib/index.js +1 -1
- package/lib/schema.js +407 -465
- package/lib/types.d.ts +2 -2
- package/lib/utils/getColors.js +10 -11
- package/lib/utils/getComponents.d.ts +1 -1
- package/lib/utils/getComponents.js +20 -13
- package/lib/utils/pickComponent.d.ts +1 -1
- package/lib/utils/pickComponent.js +1 -1
- package/package.json +6 -6
package/lib/components/head.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const head = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
variant04: (components, colors) => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; return `<path d="M495 231a231 231 0 0 1 219 204c1 10 2 21 0 30-1 4-1 7-4 8-3-10-3-19-4-29a220 220 0 0 0-239-205c-42 4-83 19-117 44l-17 13a221 221 0 0 0-78 164c0 23 7 43 15 64h17c3 1 4 4 2 6l-6 2c-15 1-31 7-42 17-8 9-14 19-16 31-3 15 0 32 8 45 9 15 24 27 40 33 14 5 29 7 43 5 4-1 8-2 11 0v3c-5 5-11 6-18 7-16 3-33-1-47-8a86 86 0 0 1-47-58c-4-18-1-37 9-53 8-12 20-21 34-26-7-14-10-28-12-43-2-18-2-35 0-53 1-13 4-25 8-38a227 227 0 0 1 99-122c41-28 92-43 142-41Z" fill="#000"/><path d="M535 244a220 220 0 0 1 171 200c1 10 1 19 4 29l-2 18v22c-3 4-4 9-4 14-2 8-2 15-2 23v65c0 21-3 42-11 61-4 13-10 24-18 35-10 12-21 22-34 31-11 9-24 17-37 24l-22 14-12 8 9-2c-3 11-3 24-4 36 0 8 1 16 7 22a235 235 0 0 0 81 45c6 7 11 16 13 25 1 9 0 18-4 27-6 10-14 18-23 24-13 10-28 17-43 22a417 417 0 0 1-217 11c-16-3-33-9-48-17-10-5-21-12-28-21-6-6-10-14-11-22-2-10 0-21 5-30 21-13 39-32 49-54 5-11 7-22 8-34 1-16 0-32-1-47-2-20-3-41-8-61 11 12 23 24 37 32 17 11 36 20 55 26 20 7 41 13 63 18l25 3c3 0 6 0 8-2 2-1 1-2 2-3l-17-2c-29-7-58-16-87-27-18-7-36-15-53-27-18-13-33-30-47-47l-11-16-1-1v-3c-3-2-7-1-11 0-14 2-29 0-43-5-16-6-31-18-40-33-8-13-11-30-8-45 2-12 8-22 16-31 11-10 27-16 42-17l6-2c2-2 1-5-2-6h-17c-8-21-15-41-15-64-1-14 2-27 5-41a221 221 0 0 1 73-123l17-13a230 230 0 0 1 185-39Z" fill="${escape.xml(`${colors.skin}`)}"/><path d="M708 513c3 3 2 7 3 12v29c0 26 2 54 0 80-3 31-14 63-36 86-25 28-57 51-93 64l2 7v35c1 6 4 10 8 14l26 19 32 20 24 12c2 0 3 1 5 3l-19-5c-19-6-37-14-54-25-9-5-19-12-26-20-6-6-7-14-7-22 1-12 1-25 4-36l-9 2 12-8 22-14c13-7 26-15 37-24 13-9 24-19 34-31a178 178 0 0 0 29-96v-65c0-8 0-15 2-23 0-5 1-10 4-14ZM278 574c5 5 4 14 0 19l-3 7c1 3 5 5 7 6 6 3 12 7 19 9 0 4-3 5-7 5-6-1-13-3-18-6-7-3-13-8-13-16 0-6 5-9 6-14 2-4 0-7-1-11 4-1 7-2 10 1ZM328 667l11 16c14 17 29 34 47 47 17 12 35 20 53 27a714 714 0 0 0 104 29c-1 1 0 2-2 3-2 2-5 2-8 2l-25-3a478 478 0 0 1-118-44c-14-8-26-20-37-32 5 20 6 41 8 61 1 15 2 31 1 47-1 12-3 23-8 34-10 22-28 41-49 54l-14 8c2-4 6-6 9-9 13-11 24-25 34-39 6-10 12-21 14-33 4-19 3-39 3-58l-3-59 2-10c-10-11-19-26-22-41Z" fill="#000"/>${(_b = (_a = components.eyes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}${(_d = (_c = components.eyebrows) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}${(_f = (_e = components.earrings) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}${(_h = (_g = components.freckles) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}${(_k = (_j = components.nose) === null || _j === void 0 ? void 0 : _j.value(components, colors)) !== null && _k !== void 0 ? _k : ''}${(_m = (_l = components.beard) === null || _l === void 0 ? void 0 : _l.value(components, colors)) !== null && _m !== void 0 ? _m : ''}${(_p = (_o = components.mouth) === null || _o === void 0 ? void 0 : _o.value(components, colors)) !== null && _p !== void 0 ? _p : ''}${(_r = (_q = components.glasses) === null || _q === void 0 ? void 0 : _q.value(components, colors)) !== null && _r !== void 0 ? _r : ''}`; },
|
|
10
|
+
variant03: (components, colors) => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; return `<path d="M495 234c28 1 56 6 84 15a201 201 0 0 1 100 65c19 25 31 55 35 86a361 361 0 0 1 2 101l-5 34-4 20c-1 2-1 2-3 2-2-4-2-8-2-12-1-15 1-29 2-44 1-24 3-48 1-72l-6-45c-7-28-20-54-40-75-18-18-40-33-63-43-22-9-44-15-67-19-18-3-36-4-54-4a277 277 0 0 0-128 29c-13 9-25 20-35 32a276 276 0 0 0-55 139c-1 24 0 47 8 70l7 15 12 1 1 3c-3 2-7 2-11 3-10 2-20 6-29 12-7 5-14 11-18 19-5 10-3 22-1 33 5 19 17 37 33 49 11 9 25 14 39 16 10 2 20 0 30-1 5 4 8 12 11 17l18 27a136 136 0 0 0 66 50c22 9 45 14 68 19l41 8 17 5v4h-12a535 535 0 0 1-67-8 255 255 0 0 1-84-33c-11-7-21-16-29-27a214 214 0 0 1-16 123c-15 27-40 48-70 57-3 1-7 2-10 1-2 0-2-1-2-3 1-3 4-5 6-6 12-8 26-14 38-23 13-11 24-23 31-38 6-15 10-32 12-49 2-13 3-26 2-40l-4-38-18-36-19 4a88 88 0 0 1-75-38 93 93 0 0 1-20-58c0-9 3-18 8-25s12-13 19-17c5-4 12-6 18-8l-9-24c-5-22-5-45-2-67a292 292 0 0 1 63-149c9-10 18-19 29-26 7-4 14-5 20-9 43-19 90-25 137-22Z" fill="#000"/><path d="M475 243a276 276 0 0 1 121 23c23 10 45 25 63 43 20 21 33 47 40 75l6 45c2 24 0 48-1 72-1 15-3 29-2 44 0 4 0 8 2 12l-1 20c-2 5-2 10-2 16-2 24-2 49-6 74-1 12-3 25-8 36-3 9-8 17-15 24-12 13-27 24-43 33-19 11-39 16-58 24-5 2-10 4-13 8 8 1 15 0 23-2-5 12-6 24-6 36 0 5-1 11 1 16 3 5 8 9 13 12l35 13c22 8 43 18 65 27 2 4 5 7 6 12 6 11 7 23 3 35-5 13-15 24-27 31-16 11-36 19-55 24a494 494 0 0 1-235-7c-20-7-40-14-58-24-14-8-29-18-40-31-6-8-11-19-12-29a122 122 0 0 0 86-107c4-24 4-49 0-73 8 11 18 20 29 27l27 14a331 331 0 0 0 124 27h12v-4l-17-5-41-8c-23-5-46-10-68-19-13-6-27-13-39-21-10-9-19-18-27-29l-18-27c-3-5-6-13-11-17-10 1-20 3-30 1-14-2-28-7-39-16a94 94 0 0 1-33-49c-2-11-4-23 1-33 4-8 11-14 18-19 9-6 19-10 29-12 4-1 8-1 11-3l-1-3-12-1-7-15c-8-23-9-46-7-70a276 276 0 0 1 54-139c10-12 22-23 35-32a277 277 0 0 1 128-30Z" fill="${escape.xml(`${colors.skin}`)}"/><path d="M260 571c4 0 7 0 11 2 5 1 11 4 14 8 2 3 2 7 0 10-5 6-12 10-16 16 6 4 14 6 21 9 4 1 8 3 11 6l1 3-8-2-24-7c-4-1-8-3-9-7-1-3 1-7 3-10l15-13c-4-7-15-8-19-15ZM703 577l2 3 2 16a483 483 0 0 1-2 89c-2 11-5 23-10 33a198 198 0 0 1-106 71c-1 14-3 31-2 47l5 5c8 6 18 9 27 12a451 451 0 0 1 68 28c7 4 13 9 18 15-5 1-10-1-16-2-22-9-43-19-65-27l-35-13c-5-3-10-7-13-12-2-5-1-11-1-16 0-12 1-24 6-36-8 2-15 3-23 2 3-4 8-6 13-8 19-8 39-13 58-24 16-9 31-20 43-33 7-7 12-15 15-24 5-11 7-24 8-36 4-25 4-50 6-74 0-6 0-11 2-16Z" fill="#000"/>${(_b = (_a = components.eyes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}${(_d = (_c = components.eyebrows) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}${(_f = (_e = components.earrings) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}${(_h = (_g = components.freckles) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}${(_k = (_j = components.nose) === null || _j === void 0 ? void 0 : _j.value(components, colors)) !== null && _k !== void 0 ? _k : ''}${(_m = (_l = components.beard) === null || _l === void 0 ? void 0 : _l.value(components, colors)) !== null && _m !== void 0 ? _m : ''}${(_p = (_o = components.mouth) === null || _o === void 0 ? void 0 : _o.value(components, colors)) !== null && _p !== void 0 ? _p : ''}${(_r = (_q = components.glasses) === null || _q === void 0 ? void 0 : _q.value(components, colors)) !== null && _r !== void 0 ? _r : ''}`; },
|
|
11
|
+
variant02: (components, colors) => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; return `<path d="M486 236c57-2 115 18 159 56a209 209 0 0 1 73 190c-1 4-1 8-4 12l-1-3v-33a215 215 0 0 0-172-206 235 235 0 0 0-270 153c-12 37-14 78-6 116 6-2 12-2 17-2 2 1 5 1 6 3s0 3-1 4l-12 4c-14 3-27 8-37 18a63 63 0 0 0-22 45c0 12 3 24 8 35 8 13 19 24 33 31 18 10 41 13 62 7 2-1 4-2 6-1s3 4 4 6l15 30a215 215 0 0 0 72 63c28 15 59 21 90 26 3 1 8 1 10 4 1 2 0 3-2 4l-11 1a231 231 0 0 1-147-62c5 18 8 36 8 54 0 12-2 23-6 34-5 10-11 18-19 26a196 196 0 0 1-60 43c-1-1 1-2 2-3l17-14c13-12 25-23 35-38a93 93 0 0 0 17-65l-4-39-2-10-12-17c-5-10-11-20-13-31a93 93 0 0 1-96-31 81 81 0 0 1-19-51c0-12 3-23 8-34 9-16 23-29 40-36-8-31-8-62-3-93 8-40 26-77 51-108 45-54 115-87 186-88Z" fill="#000"/><path d="M541 252a214 214 0 0 1 172 206v33c-1 5-2 10-1 15-2 2-3 3-3 5-3 18-1 37 1 55 4 29 6 59 2 88-3 28-13 56-30 79-16 21-38 34-62 43-15 6-30 9-45 13-11 2-22 4-32 8 1 2 4 1 6 2 12 1 24-1 36-2-5 8-8 17-9 26-2 10 2 19 9 26 6 7 15 11 24 14 5 2 11 3 17 3 7 9 13 18 14 30 2 12-1 24-8 34-9 14-22 23-37 30-18 9-38 15-57 18a352 352 0 0 1-192-23c-18-10-38-23-48-42-4-7-8-16-6-24 18-10 33-23 47-38 8-8 14-16 19-26 4-11 6-22 6-34 0-18-3-36-8-54a235 235 0 0 0 147 62l11-1c2-1 3-2 2-4-2-3-7-3-10-4-31-5-62-11-90-26-18-10-36-22-50-37-8-8-16-17-22-26l-15-30c-1-2-2-5-4-6s-4 0-6 1a82 82 0 0 1-95-38c-5-11-8-23-8-35 1-17 9-34 22-45 10-10 23-15 37-18l12-4c1-1 2-2 1-4s-4-2-6-3c-5 0-11 0-17 2-8-38-6-79 6-116a236 236 0 0 1 270-153Z" fill="${escape.xml(`${colors.skin}`)}"/><path d="m712 506 3 3 1 13 3 45c3 20 5 40 5 60 0 16-1 32-5 47-6 28-20 56-40 76a174 174 0 0 1-88 46c-1 9-4 16-4 25-1 6 2 10 5 15 8 8 18 14 28 19l18 9c-3 3-8 1-12 2-6 0-12-1-17-3-9-3-18-7-24-14-7-7-11-16-9-26 1-9 4-18 9-26-12 1-24 3-36 2-2-1-5 0-6-2 10-4 21-6 32-8 15-4 30-7 45-13 24-9 46-22 62-43 17-23 27-51 30-79 4-29 2-59-2-88-2-18-4-37-1-55 0-2 1-3 3-5ZM262 566c6 0 12 1 15 6 2 3 2 7 1 10-3 8-9 14-11 22-1 4 0 7 3 9 7 5 16 7 24 10l-2 2h-11c-6-1-12-2-17-5-5-4-9-11-7-18 2-9 9-15 12-23-7-4-14-2-20-8 3-4 8-6 13-5Z" fill="#000"/>${(_b = (_a = components.eyes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}${(_d = (_c = components.eyebrows) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}${(_f = (_e = components.earrings) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}${(_h = (_g = components.freckles) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}${(_k = (_j = components.nose) === null || _j === void 0 ? void 0 : _j.value(components, colors)) !== null && _k !== void 0 ? _k : ''}${(_m = (_l = components.beard) === null || _l === void 0 ? void 0 : _l.value(components, colors)) !== null && _m !== void 0 ? _m : ''}${(_p = (_o = components.mouth) === null || _o === void 0 ? void 0 : _o.value(components, colors)) !== null && _p !== void 0 ? _p : ''}${(_r = (_q = components.glasses) === null || _q === void 0 ? void 0 : _q.value(components, colors)) !== null && _r !== void 0 ? _r : ''}`; },
|
|
12
|
+
variant01: (components, colors) => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; return `<path d="M528 244c41 6 80 22 113 47 28 21 50 49 65 81 13 28 20 60 19 91-1 15-3 30-8 44h-2l1-21c1-30-2-59-13-87-10-30-28-57-50-79-42-40-98-62-156-63a243 243 0 0 0-196 94 207 207 0 0 0-40 139l2 25c8 0 19 0 25 7l-3 3-17 1c-12 1-24 5-33 13a64 64 0 0 0-17 39c-5 32 12 65 39 83 16 10 36 15 55 9 4-2 9-5 14-3 3 1 4 4 5 7a251 251 0 0 0 90 100c8 7 18 13 28 18 18 8 38 14 57 19l32 8c5 1 9 1 13 3l-4 1c-25 2-48-3-72-10-12-3-23-7-34-12a306 306 0 0 1-84-63l2 28c1 17 0 35-6 52-4 12-11 24-19 34-10 10-22 19-34 26-10 7-21 14-32 18l-16 5 9-9 31-20 22-17a95 95 0 0 0 32-56c2-14 2-28 2-43v-27c-10-14-22-29-27-46-17 8-38 7-55-1-17-7-32-19-43-33-12-17-19-36-21-56s2-40 15-56c9-10 22-18 35-21-4-14-6-29-6-44a234 234 0 0 1 83-173 249 249 0 0 1 199-55Z" fill="#000"/><path d="M653 320c22 22 40 49 50 79 11 28 14 57 13 87l-1 21-5 15-2 13 2 56c0 21 1 42-1 63l-3 47c-2 16-7 31-14 45-11 18-26 33-44 44-13 8-27 12-41 16l-38 11-17 3c0 1 1 2 3 2 8 5 17 5 26 4-3 7-4 14-2 22 3 7 11 11 17 14 12 6 24 7 36 9 7 6 14 14 16 24 2 8 2 16-2 23-5 10-14 18-24 23-13 8-27 14-42 18a468 468 0 0 1-222-1c-17-4-33-9-48-17-12-6-23-13-32-22-5-7-9-14-10-23 11-4 22-11 32-18 12-7 24-16 34-26 8-10 15-22 19-34 6-17 7-35 6-52l-2-28 22 23c19 15 40 30 62 40 11 5 22 9 34 12 24 7 47 12 72 10l4-1c-4-2-8-2-13-3l-32-8c-19-5-39-11-57-19l-29-17c-11-9-23-17-33-27a251 251 0 0 1-56-74c-1-3-2-6-5-7-5-2-10 1-14 3-19 6-39 1-55-9a88 88 0 0 1-39-83c1-14 7-28 17-39 9-8 21-12 33-13l17-1 3-3c-6-7-17-7-25-7l-2-25a207 207 0 0 1 40-139 243 243 0 0 1 196-94c58 1 114 23 156 63Z" fill="${escape.xml(`${colors.skin}`)}"/><path d="M710 522c3 0 3 4 4 6 3 11 4 23 5 34l2 21c1 22 2 43 1 65-1 21-1 44-5 65a136 136 0 0 1-80 99c-15 7-31 11-48 13v15c1 3 3 4 5 6 12 6 23 8 36 11 12 3 24 5 36 11-3 3-7 4-11 4-7 1-15-1-23-1-12-2-24-3-36-9-6-3-14-7-17-14-2-8-1-15 2-22-9 1-18 1-26-4-2 0-3-1-3-2l17-3 38-11c14-4 28-8 41-16 18-11 33-26 44-44 7-14 12-29 14-45l3-47c2-21 1-42 1-63l-2-56 2-13ZM252 549c8 0 17 1 23 7 5 4 10 9 12 15 1 3 0 6-2 8l-13 8c-7 6-7 19 0 25 6 5 14 8 21 11 2 0 5 1 6 3-1 2-3 3-5 3-10 0-20-3-28-9-5-3-8-8-9-13-2-8-2-17 4-24 4-6 11-9 18-12-4-5-7-11-14-13-7-3-15-3-22-5l9-4Z" fill="#000"/>${(_b = (_a = components.eyes) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}${(_d = (_c = components.eyebrows) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}${(_f = (_e = components.earrings) === null || _e === void 0 ? void 0 : _e.value(components, colors)) !== null && _f !== void 0 ? _f : ''}${(_h = (_g = components.freckles) === null || _g === void 0 ? void 0 : _g.value(components, colors)) !== null && _h !== void 0 ? _h : ''}${(_k = (_j = components.nose) === null || _j === void 0 ? void 0 : _j.value(components, colors)) !== null && _k !== void 0 ? _k : ''}${(_m = (_l = components.beard) === null || _l === void 0 ? void 0 : _l.value(components, colors)) !== null && _m !== void 0 ? _m : ''}${(_p = (_o = components.mouth) === null || _o === void 0 ? void 0 : _o.value(components, colors)) !== null && _p !== void 0 ? _p : ''}${(_r = (_q = components.glasses) === null || _q === void 0 ? void 0 : _q.value(components, colors)) !== null && _r !== void 0 ? _r : ''}`; },
|
|
13
13
|
};
|
package/lib/components/mouth.js
CHANGED
|
@@ -6,31 +6,31 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const mouth = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
9
|
+
happy01: (components, colors) => `<path d="m636 651-7 7c-7 8-14 16-23 23-8 7-17 13-27 16-11 4-23 4-35 3-16-2-31-5-45-12l-12-7c-1-2-1-4 1-5s6 0 8 1c12 4 24 8 37 9 17 2 34 2 50-3 8-2 15-6 21-10l24-17 8-5Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
10
|
+
happy02: (components, colors) => `<path d="M476 660c3 0 5 2 7 4l13 7c11 5 23 8 34 11 15 5 30 6 45 6 12 1 23 2 34 1l4 2c-18 9-41 11-61 10-23-1-46-8-66-18-6-4-13-8-14-16-1-3 1-7 4-7Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
11
|
+
happy03: (components, colors) => `<path d="m636 651-7 8-17 16c-9 10-19 18-32 22-18 6-38 4-57 0-10-3-21-7-31-13l-6-5c0-3 2-4 4-4l17 5 33-4c13-2 27-3 39 0l5-1 19-8c4-2 8-3 13-3 6-4 13-10 20-13Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
12
|
+
happy04: (components, colors) => `<path d="M632 656c-5 5-12 9-18 13-11 8-23 15-36 20-3 1-6 3-10 3l-17-2h-23l-23-2c-6 0-11-4-15-9l-13 1c-3-1-6-4-4-7s7-5 10-7c5-1 11-2 16 1 3 2 4 6 6 8l5 1c15 1 31 1 46 4 5 1 10 4 15 2 5-1 10-4 14-6 13-6 25-13 38-18 3-1 6-3 9-2Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
13
|
+
happy05: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M654 667c2-4 0-9-4-10-8-2-16-1-24-1l-57 6a445 445 0 0 1-56 5l-21 1a255 255 0 0 1-34-1c-4-1-8-1-12 1h1c0 2 1 3 3 3 8 3 16 4 25 5 1 4 3 7 7 9l11 7a503 503 0 0 1 5 3l23 10a175 175 0 0 0 31 8c7 2 14 3 22 2l21-5c6-2 12-5 17-9a129 129 0 0 0 26-23l8-8c3 0 6 0 8-3Zm-30 9 8-9a207 207 0 0 0-78 4l-4 1c-22 3-45 6-67 5l5 2 20 8c17 8 35 13 53 17 15 2 30-2 43-8 8-5 14-12 20-20Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
14
|
+
happy06: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="m634 683-9-3c-25-6-52-7-78-6l-13 1a774 774 0 0 1-85 0l-7-1c-2 2 1 4 2 5h1c2 2 4 3 7 3l4 2a147 147 0 0 0 69 28c15 2 31 3 47 2 7 0 15-1 22-4a68 68 0 0 0 24-19l3-3h3c4 0 8 1 12-1 0-2-1-2-2-3v-1Zm-31 3-14-2c-22-2-43 0-65 1h-4l-43 1 11 5 12 5c13 6 27 7 41 9h32c7 0 14-1 21-5l15-11 2-2-8-1Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
15
|
+
happy07: (components, colors) => `<path d="M516 651c18 5 31 16 48 21 7 3 14 4 21 2 11-2 21-8 32-10 8-1 17 1 22 7 5 5 7 12 7 19 0 8-4 16-9 23a84 84 0 0 1-53 26l-26-1c-14-2-27-6-40-13-6-4-13-9-17-15l13 7c16 8 33 14 51 15 8 0 17 0 25-2 10-2 19-6 27-12 6-4 11-8 15-14s6-15 3-22c-2-5-6-8-11-8-7-1-14 2-20 5l6 5c5 9 8 21 6 31-5-7-11-15-14-24-2-3-2-7-1-11-10 4-20 7-31 5l-1 11-5 25c-3-5-3-9-3-14 0-8 0-16 2-24-11-3-21-8-31-14-6 13-15 24-20 36-3-5-1-11 1-16 3-9 7-17 13-23-7-3-14-6-21-7s-14 2-18 7c-6 6-7 15-4 23 2 5 6 8 9 12-5 1-9-2-12-5-6-7-9-17-6-26 2-9 10-17 20-20 7-2 15-1 22 1Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
16
|
+
happy08: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M603 664c-2-2-4-1-6-1a400 400 0 0 0-58 26l-5 4-1 4 4 5 4 5c6 5 13 11 21 14 5 2 12 3 16-1 5-3 8-9 10-14a375 375 0 0 0 15-36v-6Zm-14 21 4-12-51 23 12 9 10 8c3 2 8 4 11 1l6-9 1-2 7-18Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
17
|
+
happy18: (components, colors) => `<path d="M608 667c2 0 4 0 5 2l-1 15c5-1 10-4 16-2 0 4-4 7-7 9l-35 12c-17 4-34 7-51 8-7 1-15-1-22-3-2-1-4-1-4-4 4-2 9 0 12-1 2-5 7-7 11-10l31-19c3-1 7-4 10-4 4-1 7 4 11 4 8-2 16-7 24-7ZM607 712c1 4 1 8-1 11-2 5-7 9-12 11-6 2-12 3-18 2-2 0-6-2-6-5 1-2 5-2 7-3 8-4 18-7 25-13 2-1 3-3 5-3Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
18
|
+
happy09: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="m463 648-14-4h-1c-2-1-5-1-6 1-1 1 0 3 1 3l6 3 2 1a257 257 0 0 0 73 24c0 7 2 14 7 20 5 7 12 13 21 16 10 4 21 3 31-1s18-12 22-22c2-4 2-9 2-13l18-6v-1l2-2a1497 1497 0 0 0-29 0 324 324 0 0 1-86-4l-39-11-2-1-8-3Zm69 29c1 10 9 18 18 23 12 9 32 5 40-8 3-4 4-9 5-14v-1l-26 2 1 1c0 3 1 5-1 8s-6 3-7 0c-2-3-2-6-1-9a1036 1036 0 0 0-25-2h-4Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
19
|
+
happy10: (components, colors) => `<path d="M513 669c0 7-5 15-8 21 23-1 45 2 67-2 20-3 37-11 56-14 4 0 10-2 14 2-3 5-8 6-13 8-9 5-19 7-29 11-10 2-19 5-29 6-16 2-32 0-48-1l-21-4-10 23c-1 2-4 3-6 1v-8c3-12 10-24 16-35l7-11c3-1 5 0 4 3Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
20
|
+
happy11: (components, colors) => `<path d="M497 679c8 3 15 5 22 9 4 1 7 3 11 3l13-2c5-1 10-1 14 3 7 5 8 17 2 23s-16 7-24 9c-6 1-13 1-19-2-4-1-6-3-8-6l5-4c6-2 13 1 19 0l15-3 5-4c0-2-1-5-4-5-7-1-13 4-20 3-9-1-16-7-25-10-4-2-9-5-14-5-4 0-6 3-7 6-2 4-3 9-1 13-2 3-5 1-7-1-4-8-1-19 6-25 5-3 12-3 17-2Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
21
|
+
happy12: (components, colors) => `<path d="M465 666c10-1 20 1 30 2 16 1 31 5 47 6h25l23-2c11-2 22-4 33-3 6 0 12 2 16 6 4 3 7 9 6 14-1 7-6 13-11 18l-24 13c-10 3-19 6-29 4-4-1-6-3-8-6 8-4 16-3 24-5 12-3 24-8 33-16 3-2 6-6 7-10s-2-6-5-8c-6-2-13-2-19-1-16 2-32 6-48 7l-28-1c-14-1-28-5-42-7l-27-2c-2 0-4-1-6 1-1 3 0 8 2 11 5 6 12 9 19 13l19 8c3 1 7 2 8 5 2 7 1 14 4 21 1 2 3 4 6 5 6-5 4-11 8-17 2-4 4-8 9-8 9-1 18 1 27 2 2 1 4 1 5 3 0 3-3 3-5 3-8 1-18-2-26-2-3-1-3 2-5 3-3 6-2 12-6 16-1 3-5 5-8 5-4-1-8-4-10-7-4-6-4-14-5-21-7-1-14-2-20-5l-17-8c-6-4-10-10-12-16v-14c2-4 6-6 10-7Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
22
|
+
happy13: (components, colors) => `<path d="M607 684c3 2 2 6 1 9-2 8-4 15-9 22-5 5-10 10-17 12-10 4-22 2-31-3-4-2-9-5-11-9-1-1-2-3-1-4 2-2 5-3 8-3 9 1 18 6 27 7 7 1 13-3 17-8 5-6 8-15 12-22 1-2 2-2 4-1Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
23
|
+
happy14: (components, colors) => `<path d="M478 678c3-1 5 0 5 2 0 3-3 6-6 7-3-3-2-7 1-9ZM503 690l36 7 30 2c7 1 13 0 19 2-1 2-3 3-6 4a158 158 0 0 1-74-6c-3-1-7-3-8-6-1-2 1-4 3-3Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
24
|
+
happy17: (components, colors) => `<path d="M597 674h33c4 0 8-1 11 2s4 7 2 10c-3 7-10 12-13 18l1 5c1 4 1 9-2 12-4 5-11 7-18 8l12-11v-5c-2-3-5-4-6-8-1-7 3-12 7-17-7 0-13 0-19-2-3-2-8-4-10-7-1-2 0-4 2-5Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
25
|
+
happy15: (components, colors) => `<path d="M655 663c3 1 4 2 5 5 2 6 1 14-5 18-5 5-13 9-16 15-2 5-6 8-11 10-7 5-15 9-24 8-10-1-17-6-26-8l-33-4-9-1c-4 1-8 2-13 1-5 0-9-2-13-3-10-2-16 5-26 3-5-1-9-6-10-12 0-7 2-12 5-18-5 0-8 3-12 6-1-3 1-5 2-8 3-4 8-6 13-7h8c3 2 3 6 2 9-2 6-6 12-5 18 1 3 5 3 8 2 5-1 11-2 16-1l10 2c6 1 13-3 19-2l22 3 23 5c7 3 13 7 21 6 6-1 12-6 16-10 4-3 5-7 8-11l15-10 5-4 4-9 1-3Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
26
|
+
happy16: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M438 634c-4 6-11 11-19 13 0-4 3-7 6-9 4-3 8-5 13-4Zm14 12 32 5 24 6c15 4 29 8 44 10 10 1 20 0 29-1 12-2 23-4 36-1 6 2 11 6 15 11 3 5 4 10 2 16s-7 13-13 17c-7 5-15 6-24 7l-30 3-29-2-21-5-10-3-12-3-14-4-23-8-17-10c-7-5-10-15-8-23 2-9 10-15 19-15Zm4 9-9 1c-4 1-7 4-8 8 0 3 2 6 3 8v1l8 8 4 2c0-9 0-19 4-27l-2-1Zm9 2a703 703 0 0 1 40 10c-2 11-5 22-4 33l-22-6-14-5-4-2 4-17v-13Zm87 20c-14-1-27-5-41-8a46 46 0 0 1-1 18c-1 5-2 10-5 14l9 2 13 4 17 3 5 1c-3-10 0-21 2-30l1-4Zm54-5c4 0 8 0 12 2 3 1 6 5 8 8 1 2 2 5 1 8-3 5-7 10-12 13s-10 4-16 5l-2 1 7-18 2-19Zm-13 25 5-25-15 3-23 2c0 10-2 19-5 29l-2 5a135 135 0 0 0 35-1l4-1 1-12Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
27
|
+
sad01: (components, colors) => `<path d="M599 665c5 0 10 3 13 7 3 6 4 13 5 20 1 11-1 23-6 33-5 9-13 13-22 15-11 3-23 3-34 3-4 0-9-1-13-3 7-3 13-3 20-4l21-3c6-1 14-4 18-9s6-12 7-19l-4 6c-4 3-9 3-14 4l-26 4c-7 1-15 3-23 0l-11 23c-3 1-3-2-3-4 0-7 3-14 6-20 7-17 21-32 36-42 9-6 19-11 30-11Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
28
|
+
sad02: (components, colors) => `<path d="M619 659c1 3-1 7-2 9-5 9-14 13-21 21 0 4-2 7-3 11-3 9-6 17-13 23-3 2-7 2-11 1-3 0-6-2-7-5-1-5 0-9 3-13 6-12 16-19 26-27 8-6 15-10 21-17 2-1 4-4 7-3Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
29
|
+
sad03: (components, colors) => `<path d="M587 747c7-1 14 0 20 2-3 3-9 4-13 5l-43 11c-2 1-5 2-6 0-1-3 1-5 3-6 5-4 12-7 19-8l20-4Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
30
|
+
sad04: (components, colors) => `<path d="M621 668c2-1 4 1 5 3 2 5 1 11 1 16-1 4-2 8-5 11-1 2-3 2-5 3l-2-7 4-20-30 6c-4 0-9 2-13 4-11 6-20 16-29 23-2 2-5 5-9 6-3 0-5-2-4-5 0-4 4-8 6-11 9-9 20-19 32-23 10-3 18 1 27-2l22-4Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
31
|
+
sad05: (components, colors) => `<path d="M649 656c8 0 17 1 25 3 3 1 7 2 8 6 1 3-2 6-5 6-6 0-11-2-17-3-11-2-24 0-35 1l-45 4h-26c-19 1-38 2-56 7l-10 4c-4 4-8 8-14 11h-5c-2-1-3-4-2-6 2-6 6-11 11-15 5-3 10-4 16-5l25-2c14-1 27-3 41-3l34-3c19-2 36-5 55-5Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
32
|
+
sad06: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="m527 664 16 4 6 1a258 258 0 0 0 69 8c8 0 17 2 24 6 4 2 5 4 5 8l-6-2c-9-2-17-2-26-2h-8c1 6 0 11-2 16h3l12 1c2 0 4 1 5 3 0 3-2 3-4 4h-23a2932 2932 0 0 0-86-1l-2 1-1 1-3-2-27-2a3065 3065 0 0 0-8 0c-3-1-7-1-10-3l14-1h29c0-9-1-21 2-30-9 1-19 2-28 5-8 3-15 7-20 14l-4 4c-1 2-2 5-4 6l-2-1c0-4 0-10 2-14l11-11c10-7 24-10 36-12 10-1 20-2 30-1Zm-16 10a104 104 0 0 1 28 4l16 4v21l-18 1h-23v-3c1-9 2-19-3-27Zm89 13c-13 0-25-1-37-4 1 7 1 14-1 20h39c-2-5-2-11-1-16Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
33
|
+
sad07: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M661 646c3 3 6 8 7 12 3 5 4 11 3 17l-4-5-1-2-10-15-1-1v-1c-1-2-2-3-1-5 2-2 4-1 7 0Zm-30 25a40 40 0 0 1 29 13c3 4 7 7 8 10 2 4 2 8-2 10-5 4-13 5-20 5a5207 5207 0 0 1-42 1l-28 3-18 1-10 2-19 1c1-3 2-4 5-5l5-6 4-3c7-7 17-12 26-17l2-1c10-5 21-9 31-11 10-3 19-4 29-3Zm-6 29c-1-7 1-14 4-20-11-1-22 0-32 3l-1 11-1 7 30-1Zm11-19 1 1 4 1c6 2 11 7 15 12l3 3c-6 2-12 2-19 2h-10c4-6 6-12 6-19Zm-48 20c-1-5 0-10 1-15a254 254 0 0 0-43 21c10-3 21-4 31-5l11-1Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
34
|
+
sad08: (components, colors) => `<path fill-rule="evenodd" clip-rule="evenodd" d="M622 659c1-4-5-4-7-4-15 0-30 3-45 7a441 441 0 0 0-84 36c-6 3-11 7-15 13l-2 4 5-1c5-5 12-8 18-12 0 7 0 14 4 20 3 6 9 10 15 11 9 1 19-3 26-9 11-8 18-20 24-32 3-6 3-11 3-17 16-6 33-9 49-12h1c3 0 6-1 8-4Zm-84 48c6-8 11-18 14-29l-27 10c0 7-4 14-7 21l-1-6v-1l2-12-23 10v1c2 6 4 14 9 18 4 5 10 5 16 3 7-3 13-9 17-15Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
35
|
+
sad09: (components, colors) => `<path d="M667 657c2 0 4 0 5 2 2 2 1 5-1 6l-16 4c-21 3-42 7-64 9-6 0-12 2-17 0l15-5 62-13 16-3Z" fill="${escape.xml(`${colors.mouth}`)}"/>`,
|
|
36
36
|
};
|
package/lib/components/nose.js
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { escape } from '@dicebear/core';
|
|
8
8
|
export const nose = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
variant01: (components, colors) => `<path d="M597 505h1l3 15 3 26 8 13 6 12c2 5 2 10 5 14 3 5 5 10 5 16 0 9-6 17-14 20l-19 8c-5 3-9 5-15 5-5 0-11 0-13-5-2-2 0-4 2-5l12-3 16-5 13-5c6-2 9-8 7-14l-5-8-7-17-7-19c-4-8-6-17-5-26 0-7 1-15 4-22Z" fill="${escape.xml(`${colors.nose}`)}"/>`,
|
|
10
|
+
variant02: (components, colors) => `<path d="M603 613v1c-4 8-11 15-20 18-3 1-7 1-9-1v-4c7-5 16-9 24-12l5-2Z" fill="${escape.xml(`${colors.nose}`)}"/>`,
|
|
11
|
+
variant03: (components, colors) => `<path d="M607 606c0 3-2 6-4 9-4 6-11 10-18 12-5 1-9-2-13 0-4 0-8 1-12-1-2-1-2-4 0-6 3-4 8-7 12-7 4-1 7-1 10 2l1 7c5-2 7-5 11-8l13-8Z" fill="${escape.xml(`${colors.nose}`)}"/>`,
|
|
12
|
+
variant04: (components, colors) => `<path d="M594 572a37 37 0 0 1 19 29c0 9-5 18-13 22l-17 7c-4 1-6 2-9 0-2-3-1-4 1-6 6-5 15-7 21-12 3-2 5-5 5-9 0-10-5-17-7-26v-5Z" fill="${escape.xml(`${colors.nose}`)}"/>`,
|
|
13
|
+
variant05: (components, colors) => `<path d="m591 528 2 2 7 22c4 8 10 15 15 23 4 6 6 13 5 20-1 6-4 12-9 16-7 7-16 12-25 16-5 3-11 4-17 2l5-4c11-9 25-14 36-24 2-2 4-6 4-9-1-7-5-11-8-16-5-9-10-16-13-25-2-7-4-16-2-23Z" fill="${escape.xml(`${colors.nose}`)}"/>`,
|
|
14
|
+
variant06: (components, colors) => `<path d="M609 602c1 9-4 16-9 23-4 3-9 6-15 6s-13-3-19-5c-4-2-8-3-11-6l5-4c9-1 17 3 25 4 4 0 7-3 9-6 5-5 9-10 15-12Z" fill="${escape.xml(`${colors.nose}`)}"/>`,
|
|
15
15
|
};
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Plugin: https://www.figma.com/community/plugin/1005765655729342787
|
|
5
5
|
* File: https://www.figma.com/community/file/1198749693280469639
|
|
6
6
|
*/
|
|
7
|
-
import { Prng, StyleOptions } from
|
|
8
|
-
import { Options, ColorPickCollection, ComponentPickCollection } from
|
|
7
|
+
import { Prng, StyleOptions } from '@dicebear/core';
|
|
8
|
+
import { Options, ColorPickCollection, ComponentPickCollection } from '../types.js';
|
|
9
9
|
type Props = {
|
|
10
10
|
prng: Prng;
|
|
11
11
|
options: StyleOptions<Options>;
|
package/lib/index.js
CHANGED
|
@@ -26,7 +26,7 @@ export const create = ({ prng, options }) => {
|
|
|
26
26
|
attributes: {
|
|
27
27
|
viewBox: '0 0 980 980',
|
|
28
28
|
fill: 'none',
|
|
29
|
-
'shape-rendering': 'auto'
|
|
29
|
+
'shape-rendering': 'auto',
|
|
30
30
|
},
|
|
31
31
|
body: `<g transform="translate(10 -60)">${(_b = (_a = components.hair) === null || _a === void 0 ? void 0 : _a.value(components, colors)) !== null && _b !== void 0 ? _b : ''}</g><g transform="translate(10 -60)">${(_d = (_c = components.hairAccessories) === null || _c === void 0 ? void 0 : _c.value(components, colors)) !== null && _d !== void 0 ? _d : ''}</g>`,
|
|
32
32
|
extra: () => ({
|