@zenode/designer 3.5.8 → 3.5.10
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/README.md +3 -3
- package/dist/core/engine.cjs +11 -3
- package/dist/core/engine.cjs.map +1 -1
- package/dist/core/engine.d.ts +1 -1
- package/dist/core/engine.js +11 -3
- package/dist/core/engine.js.map +1 -1
- package/dist/defaultConfig.cjs +542 -0
- package/dist/defaultConfig.cjs.map +1 -0
- package/dist/defaultConfig.js +540 -0
- package/dist/defaultConfig.js.map +1 -0
- package/dist/defaults-B8cG7xLG.js +181 -0
- package/dist/defaults-B8cG7xLG.js.map +1 -0
- package/dist/defaults-Bp5gmH4b.js +179 -0
- package/dist/defaults-Bp5gmH4b.js.map +1 -0
- package/dist/events/drag.cjs +69 -3
- package/dist/events/drag.cjs.map +1 -1
- package/dist/events/drag.d.ts +4 -2
- package/dist/events/drag.js +69 -3
- package/dist/events/drag.js.map +1 -1
- package/dist/events/mouseClick.js +34 -34
- package/dist/events/mouseMove.js +82 -82
- package/dist/testConfig.cjs +553 -0
- package/dist/testConfig.cjs.map +1 -0
- package/dist/testConfig.js +551 -0
- package/dist/testConfig.js.map +1 -0
- package/package.json +2 -3
- package/assets/demo.svg +0 -108
- package/dist/config/testXML.cjs +0 -17
- package/dist/config/testXML.cjs.map +0 -1
- package/dist/config/testXML.d.ts +0 -1
- package/dist/config/testXML.js +0 -15
- package/dist/config/testXML.js.map +0 -1
- package/dist/core/serialization.cjs +0 -123
- package/dist/core/serialization.cjs.map +0 -1
- package/dist/core/serialization.d.ts +0 -26
- package/dist/core/serialization.js +0 -121
- package/dist/core/serialization.js.map +0 -1
- package/dist/events/mouseClick.cjs +0 -36
- package/dist/events/mouseClick.cjs.map +0 -1
- package/dist/events/mouseMove.cjs +0 -104
- package/dist/events/mouseMove.cjs.map +0 -1
- package/dist/icons.bundle.js +0 -763
- package/dist/icons.bundle.js.map +0 -1
- package/dist/icons.cjs +0 -105
- package/dist/icons.cjs.map +0 -1
- package/dist/icons.d.ts +0 -7
- package/dist/icons.js +0 -89
- package/dist/icons.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/createElement.cjs +0 -36
- package/dist/node_modules/lucide/dist/esm/createElement.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/createElement.js +0 -34
- package/dist/node_modules/lucide/dist/esm/createElement.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/defaultAttributes.cjs +0 -23
- package/dist/node_modules/lucide/dist/esm/defaultAttributes.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/defaultAttributes.js +0 -21
- package/dist/node_modules/lucide/dist/esm/defaultAttributes.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/arrow-down-right.cjs +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/arrow-down-right.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/arrow-down-right.js +0 -14
- package/dist/node_modules/lucide/dist/esm/icons/arrow-down-right.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/arrow-right.cjs +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/arrow-right.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/arrow-right.js +0 -14
- package/dist/node_modules/lucide/dist/esm/icons/arrow-right.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/arrow-up-right.cjs +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/arrow-up-right.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/arrow-up-right.js +0 -14
- package/dist/node_modules/lucide/dist/esm/icons/arrow-up-right.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/box.cjs +0 -22
- package/dist/node_modules/lucide/dist/esm/icons/box.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/box.js +0 -20
- package/dist/node_modules/lucide/dist/esm/icons/box.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/chevron-down.cjs +0 -13
- package/dist/node_modules/lucide/dist/esm/icons/chevron-down.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/chevron-down.js +0 -11
- package/dist/node_modules/lucide/dist/esm/icons/chevron-down.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/chevron-right.cjs +0 -13
- package/dist/node_modules/lucide/dist/esm/icons/chevron-right.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/chevron-right.js +0 -11
- package/dist/node_modules/lucide/dist/esm/icons/chevron-right.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/circle-alert.cjs +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/circle-alert.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/circle-alert.js +0 -15
- package/dist/node_modules/lucide/dist/esm/icons/circle-alert.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/circle-check-big.cjs +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/circle-check-big.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/circle-check-big.js +0 -14
- package/dist/node_modules/lucide/dist/esm/icons/circle-check-big.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/circle-question-mark.cjs +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/circle-question-mark.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/circle-question-mark.js +0 -15
- package/dist/node_modules/lucide/dist/esm/icons/circle-question-mark.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/circle.cjs +0 -13
- package/dist/node_modules/lucide/dist/esm/icons/circle.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/circle.js +0 -11
- package/dist/node_modules/lucide/dist/esm/icons/circle.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/cloud.cjs +0 -13
- package/dist/node_modules/lucide/dist/esm/icons/cloud.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/cloud.js +0 -11
- package/dist/node_modules/lucide/dist/esm/icons/cloud.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/copy.cjs +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/copy.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/copy.js +0 -14
- package/dist/node_modules/lucide/dist/esm/icons/copy.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/database.cjs +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/database.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/database.js +0 -15
- package/dist/node_modules/lucide/dist/esm/icons/database.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/diamond.cjs +0 -20
- package/dist/node_modules/lucide/dist/esm/icons/diamond.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/diamond.js +0 -18
- package/dist/node_modules/lucide/dist/esm/icons/diamond.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/download.cjs +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/download.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/download.js +0 -15
- package/dist/node_modules/lucide/dist/esm/icons/download.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/eye-off.cjs +0 -28
- package/dist/node_modules/lucide/dist/esm/icons/eye-off.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/eye-off.js +0 -26
- package/dist/node_modules/lucide/dist/esm/icons/eye-off.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/eye.cjs +0 -21
- package/dist/node_modules/lucide/dist/esm/icons/eye.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/eye.js +0 -19
- package/dist/node_modules/lucide/dist/esm/icons/eye.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/grid-3x3.cjs +0 -19
- package/dist/node_modules/lucide/dist/esm/icons/grid-3x3.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/grid-3x3.js +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/grid-3x3.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/history.cjs +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/history.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/history.js +0 -15
- package/dist/node_modules/lucide/dist/esm/icons/history.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/info.cjs +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/info.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/info.js +0 -15
- package/dist/node_modules/lucide/dist/esm/icons/info.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/lasso.cjs +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/lasso.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/lasso.js +0 -15
- package/dist/node_modules/lucide/dist/esm/icons/lasso.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/maximize.cjs +0 -18
- package/dist/node_modules/lucide/dist/esm/icons/maximize.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/maximize.js +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/maximize.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/minimize.cjs +0 -18
- package/dist/node_modules/lucide/dist/esm/icons/minimize.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/minimize.js +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/minimize.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/mouse-pointer.cjs +0 -21
- package/dist/node_modules/lucide/dist/esm/icons/mouse-pointer.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/mouse-pointer.js +0 -19
- package/dist/node_modules/lucide/dist/esm/icons/mouse-pointer.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/move.cjs +0 -20
- package/dist/node_modules/lucide/dist/esm/icons/move.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/move.js +0 -18
- package/dist/node_modules/lucide/dist/esm/icons/move.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/panels-top-left.cjs +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/panels-top-left.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/panels-top-left.js +0 -15
- package/dist/node_modules/lucide/dist/esm/icons/panels-top-left.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/pen.cjs +0 -20
- package/dist/node_modules/lucide/dist/esm/icons/pen.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/pen.js +0 -18
- package/dist/node_modules/lucide/dist/esm/icons/pen.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/plus.cjs +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/plus.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/plus.js +0 -14
- package/dist/node_modules/lucide/dist/esm/icons/plus.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/search.cjs +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/search.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/search.js +0 -14
- package/dist/node_modules/lucide/dist/esm/icons/search.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/settings.cjs +0 -21
- package/dist/node_modules/lucide/dist/esm/icons/settings.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/settings.js +0 -19
- package/dist/node_modules/lucide/dist/esm/icons/settings.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/share-2.cjs +0 -19
- package/dist/node_modules/lucide/dist/esm/icons/share-2.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/share-2.js +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/share-2.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/square.cjs +0 -13
- package/dist/node_modules/lucide/dist/esm/icons/square.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/square.js +0 -11
- package/dist/node_modules/lucide/dist/esm/icons/square.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/sticky-note.cjs +0 -21
- package/dist/node_modules/lucide/dist/esm/icons/sticky-note.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/sticky-note.js +0 -19
- package/dist/node_modules/lucide/dist/esm/icons/sticky-note.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/trash-2.cjs +0 -19
- package/dist/node_modules/lucide/dist/esm/icons/trash-2.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/trash-2.js +0 -17
- package/dist/node_modules/lucide/dist/esm/icons/trash-2.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/triangle.cjs +0 -15
- package/dist/node_modules/lucide/dist/esm/icons/triangle.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/triangle.js +0 -13
- package/dist/node_modules/lucide/dist/esm/icons/triangle.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/x.cjs +0 -16
- package/dist/node_modules/lucide/dist/esm/icons/x.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/x.js +0 -14
- package/dist/node_modules/lucide/dist/esm/icons/x.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/zap.cjs +0 -20
- package/dist/node_modules/lucide/dist/esm/icons/zap.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/icons/zap.js +0 -18
- package/dist/node_modules/lucide/dist/esm/icons/zap.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/lucide.cjs +0 -56
- package/dist/node_modules/lucide/dist/esm/lucide.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/lucide.js +0 -54
- package/dist/node_modules/lucide/dist/esm/lucide.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/replaceElement.cjs +0 -73
- package/dist/node_modules/lucide/dist/esm/replaceElement.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/replaceElement.js +0 -67
- package/dist/node_modules/lucide/dist/esm/replaceElement.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/hasA11yProp.cjs +0 -20
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/hasA11yProp.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/hasA11yProp.js +0 -18
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/hasA11yProp.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/mergeClasses.cjs +0 -15
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/mergeClasses.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/mergeClasses.js +0 -13
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/mergeClasses.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/toCamelCase.cjs +0 -16
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/toCamelCase.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/toCamelCase.js +0 -14
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/toCamelCase.js.map +0 -1
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/toPascalCase.cjs +0 -19
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/toPascalCase.cjs.map +0 -1
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/toPascalCase.js +0 -17
- package/dist/node_modules/lucide/dist/esm/shared/src/utils/toPascalCase.js.map +0 -1
package/dist/icons.bundle.js
DELETED
|
@@ -1,763 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license lucide v1.7.0 - ISC
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the ISC license.
|
|
5
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
const defaultAttributes = {
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
width: 24,
|
|
11
|
-
height: 24,
|
|
12
|
-
viewBox: "0 0 24 24",
|
|
13
|
-
fill: "none",
|
|
14
|
-
stroke: "currentColor",
|
|
15
|
-
"stroke-width": 2,
|
|
16
|
-
"stroke-linecap": "round",
|
|
17
|
-
"stroke-linejoin": "round"
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* @license lucide v1.7.0 - ISC
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the ISC license.
|
|
24
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const createSVGElement = ([tag, attrs, children]) => {
|
|
29
|
-
const element = document.createElementNS("http://www.w3.org/2000/svg", tag);
|
|
30
|
-
Object.keys(attrs).forEach((name) => {
|
|
31
|
-
element.setAttribute(name, String(attrs[name]));
|
|
32
|
-
});
|
|
33
|
-
if (children?.length) {
|
|
34
|
-
children.forEach((child) => {
|
|
35
|
-
const childElement = createSVGElement(child);
|
|
36
|
-
element.appendChild(childElement);
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return element;
|
|
40
|
-
};
|
|
41
|
-
const createElement = (iconNode, customAttrs = {}) => {
|
|
42
|
-
const tag = "svg";
|
|
43
|
-
const attrs = {
|
|
44
|
-
...defaultAttributes,
|
|
45
|
-
...customAttrs
|
|
46
|
-
};
|
|
47
|
-
return createSVGElement([tag, attrs, iconNode]);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @license lucide v1.7.0 - ISC
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the ISC license.
|
|
54
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
|
-
const hasA11yProp = (props) => {
|
|
58
|
-
for (const prop in props) {
|
|
59
|
-
if (prop.startsWith("aria-") || prop === "role" || prop === "title") {
|
|
60
|
-
return true;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
return false;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @license lucide v1.7.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/
|
|
72
|
-
|
|
73
|
-
const mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
74
|
-
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
75
|
-
}).join(" ").trim();
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @license lucide v1.7.0 - ISC
|
|
79
|
-
*
|
|
80
|
-
* This source code is licensed under the ISC license.
|
|
81
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
const toCamelCase = (string) => string.replace(
|
|
85
|
-
/^([A-Z])|[\s-_]+(\w)/g,
|
|
86
|
-
(match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase()
|
|
87
|
-
);
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @license lucide v1.7.0 - ISC
|
|
91
|
-
*
|
|
92
|
-
* This source code is licensed under the ISC license.
|
|
93
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
-
*/
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
const toPascalCase = (string) => {
|
|
98
|
-
const camelCase = toCamelCase(string);
|
|
99
|
-
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* @license lucide v1.7.0 - ISC
|
|
104
|
-
*
|
|
105
|
-
* This source code is licensed under the ISC license.
|
|
106
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
107
|
-
*/
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
const getAttrs = (element) => Array.from(element.attributes).reduce((attrs, attr) => {
|
|
111
|
-
attrs[attr.name] = attr.value;
|
|
112
|
-
return attrs;
|
|
113
|
-
}, {});
|
|
114
|
-
const getClassNames = (attrs) => {
|
|
115
|
-
if (typeof attrs === "string") return attrs;
|
|
116
|
-
if (!attrs || !attrs.class) return "";
|
|
117
|
-
if (attrs.class && typeof attrs.class === "string") {
|
|
118
|
-
return attrs.class.split(" ");
|
|
119
|
-
}
|
|
120
|
-
if (attrs.class && Array.isArray(attrs.class)) {
|
|
121
|
-
return attrs.class;
|
|
122
|
-
}
|
|
123
|
-
return "";
|
|
124
|
-
};
|
|
125
|
-
const replaceElement = (element, { nameAttr, icons, attrs }) => {
|
|
126
|
-
const iconName = element.getAttribute(nameAttr);
|
|
127
|
-
if (iconName == null) return;
|
|
128
|
-
const ComponentName = toPascalCase(iconName);
|
|
129
|
-
const iconNode = icons[ComponentName];
|
|
130
|
-
if (!iconNode) {
|
|
131
|
-
return console.warn(
|
|
132
|
-
`${element.outerHTML} icon name was not found in the provided icons object.`
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
const elementAttrs = getAttrs(element);
|
|
136
|
-
const ariaProps = hasA11yProp(elementAttrs) ? {} : { "aria-hidden": "true" };
|
|
137
|
-
const iconAttrs = {
|
|
138
|
-
...defaultAttributes,
|
|
139
|
-
"data-lucide": iconName,
|
|
140
|
-
...ariaProps,
|
|
141
|
-
...attrs,
|
|
142
|
-
...elementAttrs
|
|
143
|
-
};
|
|
144
|
-
const elementClassNames = getClassNames(elementAttrs);
|
|
145
|
-
const className = getClassNames(attrs);
|
|
146
|
-
const classNames = mergeClasses(
|
|
147
|
-
"lucide",
|
|
148
|
-
`lucide-${iconName}`,
|
|
149
|
-
...elementClassNames,
|
|
150
|
-
...className
|
|
151
|
-
);
|
|
152
|
-
if (classNames) {
|
|
153
|
-
Object.assign(iconAttrs, {
|
|
154
|
-
class: classNames
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
const svgElement = createElement(iconNode, iconAttrs);
|
|
158
|
-
return element.parentNode?.replaceChild(svgElement, element);
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @license lucide v1.7.0 - ISC
|
|
163
|
-
*
|
|
164
|
-
* This source code is licensed under the ISC license.
|
|
165
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
-
*/
|
|
167
|
-
|
|
168
|
-
const ArrowDownRight = [
|
|
169
|
-
["path", { d: "m7 7 10 10" }],
|
|
170
|
-
["path", { d: "M17 7v10H7" }]
|
|
171
|
-
];
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* @license lucide v1.7.0 - ISC
|
|
175
|
-
*
|
|
176
|
-
* This source code is licensed under the ISC license.
|
|
177
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
-
*/
|
|
179
|
-
|
|
180
|
-
const ArrowRight = [
|
|
181
|
-
["path", { d: "M5 12h14" }],
|
|
182
|
-
["path", { d: "m12 5 7 7-7 7" }]
|
|
183
|
-
];
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* @license lucide v1.7.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/
|
|
191
|
-
|
|
192
|
-
const ArrowUpRight = [
|
|
193
|
-
["path", { d: "M7 7h10v10" }],
|
|
194
|
-
["path", { d: "M7 17 17 7" }]
|
|
195
|
-
];
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* @license lucide v1.7.0 - ISC
|
|
199
|
-
*
|
|
200
|
-
* This source code is licensed under the ISC license.
|
|
201
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
const Box = [
|
|
205
|
-
[
|
|
206
|
-
"path",
|
|
207
|
-
{
|
|
208
|
-
d: "M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z"
|
|
209
|
-
}
|
|
210
|
-
],
|
|
211
|
-
["path", { d: "m3.3 7 8.7 5 8.7-5" }],
|
|
212
|
-
["path", { d: "M12 22V12" }]
|
|
213
|
-
];
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* @license lucide v1.7.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/
|
|
221
|
-
|
|
222
|
-
const ChevronDown = [["path", { d: "m6 9 6 6 6-6" }]];
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* @license lucide v1.7.0 - ISC
|
|
226
|
-
*
|
|
227
|
-
* This source code is licensed under the ISC license.
|
|
228
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
229
|
-
*/
|
|
230
|
-
|
|
231
|
-
const ChevronRight = [["path", { d: "m9 18 6-6-6-6" }]];
|
|
232
|
-
|
|
233
|
-
/**
|
|
234
|
-
* @license lucide v1.7.0 - ISC
|
|
235
|
-
*
|
|
236
|
-
* This source code is licensed under the ISC license.
|
|
237
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/
|
|
239
|
-
|
|
240
|
-
const CircleAlert = [
|
|
241
|
-
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
242
|
-
["line", { x1: "12", x2: "12", y1: "8", y2: "12" }],
|
|
243
|
-
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16" }]
|
|
244
|
-
];
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* @license lucide v1.7.0 - ISC
|
|
248
|
-
*
|
|
249
|
-
* This source code is licensed under the ISC license.
|
|
250
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
251
|
-
*/
|
|
252
|
-
|
|
253
|
-
const CircleCheckBig = [
|
|
254
|
-
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335" }],
|
|
255
|
-
["path", { d: "m9 11 3 3L22 4" }]
|
|
256
|
-
];
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* @license lucide v1.7.0 - ISC
|
|
260
|
-
*
|
|
261
|
-
* This source code is licensed under the ISC license.
|
|
262
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
-
*/
|
|
264
|
-
|
|
265
|
-
const CircleQuestionMark = [
|
|
266
|
-
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
267
|
-
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3" }],
|
|
268
|
-
["path", { d: "M12 17h.01" }]
|
|
269
|
-
];
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* @license lucide v1.7.0 - ISC
|
|
273
|
-
*
|
|
274
|
-
* This source code is licensed under the ISC license.
|
|
275
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/
|
|
277
|
-
|
|
278
|
-
const Circle = [["circle", { cx: "12", cy: "12", r: "10" }]];
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* @license lucide v1.7.0 - ISC
|
|
282
|
-
*
|
|
283
|
-
* This source code is licensed under the ISC license.
|
|
284
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
-
*/
|
|
286
|
-
|
|
287
|
-
const Cloud = [["path", { d: "M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z" }]];
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* @license lucide v1.7.0 - ISC
|
|
291
|
-
*
|
|
292
|
-
* This source code is licensed under the ISC license.
|
|
293
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
294
|
-
*/
|
|
295
|
-
|
|
296
|
-
const Copy = [
|
|
297
|
-
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2" }],
|
|
298
|
-
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2" }]
|
|
299
|
-
];
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* @license lucide v1.7.0 - ISC
|
|
303
|
-
*
|
|
304
|
-
* This source code is licensed under the ISC license.
|
|
305
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
306
|
-
*/
|
|
307
|
-
|
|
308
|
-
const Database = [
|
|
309
|
-
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3" }],
|
|
310
|
-
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5" }],
|
|
311
|
-
["path", { d: "M3 12A9 3 0 0 0 21 12" }]
|
|
312
|
-
];
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @license lucide v1.7.0 - ISC
|
|
316
|
-
*
|
|
317
|
-
* This source code is licensed under the ISC license.
|
|
318
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
319
|
-
*/
|
|
320
|
-
|
|
321
|
-
const Diamond = [
|
|
322
|
-
[
|
|
323
|
-
"path",
|
|
324
|
-
{
|
|
325
|
-
d: "M2.7 10.3a2.41 2.41 0 0 0 0 3.41l7.59 7.59a2.41 2.41 0 0 0 3.41 0l7.59-7.59a2.41 2.41 0 0 0 0-3.41l-7.59-7.59a2.41 2.41 0 0 0-3.41 0Z"
|
|
326
|
-
}
|
|
327
|
-
]
|
|
328
|
-
];
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* @license lucide v1.7.0 - ISC
|
|
332
|
-
*
|
|
333
|
-
* This source code is licensed under the ISC license.
|
|
334
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
335
|
-
*/
|
|
336
|
-
|
|
337
|
-
const Download = [
|
|
338
|
-
["path", { d: "M12 15V3" }],
|
|
339
|
-
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }],
|
|
340
|
-
["path", { d: "m7 10 5 5 5-5" }]
|
|
341
|
-
];
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* @license lucide v1.7.0 - ISC
|
|
345
|
-
*
|
|
346
|
-
* This source code is licensed under the ISC license.
|
|
347
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
348
|
-
*/
|
|
349
|
-
|
|
350
|
-
const EyeOff = [
|
|
351
|
-
[
|
|
352
|
-
"path",
|
|
353
|
-
{
|
|
354
|
-
d: "M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"
|
|
355
|
-
}
|
|
356
|
-
],
|
|
357
|
-
["path", { d: "M14.084 14.158a3 3 0 0 1-4.242-4.242" }],
|
|
358
|
-
[
|
|
359
|
-
"path",
|
|
360
|
-
{
|
|
361
|
-
d: "M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"
|
|
362
|
-
}
|
|
363
|
-
],
|
|
364
|
-
["path", { d: "m2 2 20 20" }]
|
|
365
|
-
];
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* @license lucide v1.7.0 - ISC
|
|
369
|
-
*
|
|
370
|
-
* This source code is licensed under the ISC license.
|
|
371
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
372
|
-
*/
|
|
373
|
-
|
|
374
|
-
const Eye = [
|
|
375
|
-
[
|
|
376
|
-
"path",
|
|
377
|
-
{
|
|
378
|
-
d: "M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"
|
|
379
|
-
}
|
|
380
|
-
],
|
|
381
|
-
["circle", { cx: "12", cy: "12", r: "3" }]
|
|
382
|
-
];
|
|
383
|
-
|
|
384
|
-
/**
|
|
385
|
-
* @license lucide v1.7.0 - ISC
|
|
386
|
-
*
|
|
387
|
-
* This source code is licensed under the ISC license.
|
|
388
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
389
|
-
*/
|
|
390
|
-
|
|
391
|
-
const Grid3x3 = [
|
|
392
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }],
|
|
393
|
-
["path", { d: "M3 9h18" }],
|
|
394
|
-
["path", { d: "M3 15h18" }],
|
|
395
|
-
["path", { d: "M9 3v18" }],
|
|
396
|
-
["path", { d: "M15 3v18" }]
|
|
397
|
-
];
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* @license lucide v1.7.0 - ISC
|
|
401
|
-
*
|
|
402
|
-
* This source code is licensed under the ISC license.
|
|
403
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
404
|
-
*/
|
|
405
|
-
|
|
406
|
-
const History = [
|
|
407
|
-
["path", { d: "M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" }],
|
|
408
|
-
["path", { d: "M3 3v5h5" }],
|
|
409
|
-
["path", { d: "M12 7v5l4 2" }]
|
|
410
|
-
];
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* @license lucide v1.7.0 - ISC
|
|
414
|
-
*
|
|
415
|
-
* This source code is licensed under the ISC license.
|
|
416
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
417
|
-
*/
|
|
418
|
-
|
|
419
|
-
const Info = [
|
|
420
|
-
["circle", { cx: "12", cy: "12", r: "10" }],
|
|
421
|
-
["path", { d: "M12 16v-4" }],
|
|
422
|
-
["path", { d: "M12 8h.01" }]
|
|
423
|
-
];
|
|
424
|
-
|
|
425
|
-
/**
|
|
426
|
-
* @license lucide v1.7.0 - ISC
|
|
427
|
-
*
|
|
428
|
-
* This source code is licensed under the ISC license.
|
|
429
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
430
|
-
*/
|
|
431
|
-
|
|
432
|
-
const Lasso = [
|
|
433
|
-
["path", { d: "M3.704 14.467a10 8 0 1 1 3.115 2.375" }],
|
|
434
|
-
["path", { d: "M7 22a5 5 0 0 1-2-3.994" }],
|
|
435
|
-
["circle", { cx: "5", cy: "16", r: "2" }]
|
|
436
|
-
];
|
|
437
|
-
|
|
438
|
-
/**
|
|
439
|
-
* @license lucide v1.7.0 - ISC
|
|
440
|
-
*
|
|
441
|
-
* This source code is licensed under the ISC license.
|
|
442
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
443
|
-
*/
|
|
444
|
-
|
|
445
|
-
const Maximize = [
|
|
446
|
-
["path", { d: "M8 3H5a2 2 0 0 0-2 2v3" }],
|
|
447
|
-
["path", { d: "M21 8V5a2 2 0 0 0-2-2h-3" }],
|
|
448
|
-
["path", { d: "M3 16v3a2 2 0 0 0 2 2h3" }],
|
|
449
|
-
["path", { d: "M16 21h3a2 2 0 0 0 2-2v-3" }]
|
|
450
|
-
];
|
|
451
|
-
|
|
452
|
-
/**
|
|
453
|
-
* @license lucide v1.7.0 - ISC
|
|
454
|
-
*
|
|
455
|
-
* This source code is licensed under the ISC license.
|
|
456
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
457
|
-
*/
|
|
458
|
-
|
|
459
|
-
const Minimize = [
|
|
460
|
-
["path", { d: "M8 3v3a2 2 0 0 1-2 2H3" }],
|
|
461
|
-
["path", { d: "M21 8h-3a2 2 0 0 1-2-2V3" }],
|
|
462
|
-
["path", { d: "M3 16h3a2 2 0 0 1 2 2v3" }],
|
|
463
|
-
["path", { d: "M16 21v-3a2 2 0 0 1 2-2h3" }]
|
|
464
|
-
];
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* @license lucide v1.7.0 - ISC
|
|
468
|
-
*
|
|
469
|
-
* This source code is licensed under the ISC license.
|
|
470
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
471
|
-
*/
|
|
472
|
-
|
|
473
|
-
const MousePointer = [
|
|
474
|
-
["path", { d: "M12.586 12.586 19 19" }],
|
|
475
|
-
[
|
|
476
|
-
"path",
|
|
477
|
-
{
|
|
478
|
-
d: "M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z"
|
|
479
|
-
}
|
|
480
|
-
]
|
|
481
|
-
];
|
|
482
|
-
|
|
483
|
-
/**
|
|
484
|
-
* @license lucide v1.7.0 - ISC
|
|
485
|
-
*
|
|
486
|
-
* This source code is licensed under the ISC license.
|
|
487
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
488
|
-
*/
|
|
489
|
-
|
|
490
|
-
const Move = [
|
|
491
|
-
["path", { d: "M12 2v20" }],
|
|
492
|
-
["path", { d: "m15 19-3 3-3-3" }],
|
|
493
|
-
["path", { d: "m19 9 3 3-3 3" }],
|
|
494
|
-
["path", { d: "M2 12h20" }],
|
|
495
|
-
["path", { d: "m5 9-3 3 3 3" }],
|
|
496
|
-
["path", { d: "m9 5 3-3 3 3" }]
|
|
497
|
-
];
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* @license lucide v1.7.0 - ISC
|
|
501
|
-
*
|
|
502
|
-
* This source code is licensed under the ISC license.
|
|
503
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
504
|
-
*/
|
|
505
|
-
|
|
506
|
-
const PanelsTopLeft = [
|
|
507
|
-
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }],
|
|
508
|
-
["path", { d: "M3 9h18" }],
|
|
509
|
-
["path", { d: "M9 21V9" }]
|
|
510
|
-
];
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
* @license lucide v1.7.0 - ISC
|
|
514
|
-
*
|
|
515
|
-
* This source code is licensed under the ISC license.
|
|
516
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
517
|
-
*/
|
|
518
|
-
|
|
519
|
-
const Pen = [
|
|
520
|
-
[
|
|
521
|
-
"path",
|
|
522
|
-
{
|
|
523
|
-
d: "M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"
|
|
524
|
-
}
|
|
525
|
-
]
|
|
526
|
-
];
|
|
527
|
-
|
|
528
|
-
/**
|
|
529
|
-
* @license lucide v1.7.0 - ISC
|
|
530
|
-
*
|
|
531
|
-
* This source code is licensed under the ISC license.
|
|
532
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
533
|
-
*/
|
|
534
|
-
|
|
535
|
-
const Plus = [
|
|
536
|
-
["path", { d: "M5 12h14" }],
|
|
537
|
-
["path", { d: "M12 5v14" }]
|
|
538
|
-
];
|
|
539
|
-
|
|
540
|
-
/**
|
|
541
|
-
* @license lucide v1.7.0 - ISC
|
|
542
|
-
*
|
|
543
|
-
* This source code is licensed under the ISC license.
|
|
544
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
545
|
-
*/
|
|
546
|
-
|
|
547
|
-
const Search = [
|
|
548
|
-
["path", { d: "m21 21-4.34-4.34" }],
|
|
549
|
-
["circle", { cx: "11", cy: "11", r: "8" }]
|
|
550
|
-
];
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* @license lucide v1.7.0 - ISC
|
|
554
|
-
*
|
|
555
|
-
* This source code is licensed under the ISC license.
|
|
556
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
557
|
-
*/
|
|
558
|
-
|
|
559
|
-
const Settings = [
|
|
560
|
-
[
|
|
561
|
-
"path",
|
|
562
|
-
{
|
|
563
|
-
d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"
|
|
564
|
-
}
|
|
565
|
-
],
|
|
566
|
-
["circle", { cx: "12", cy: "12", r: "3" }]
|
|
567
|
-
];
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* @license lucide v1.7.0 - ISC
|
|
571
|
-
*
|
|
572
|
-
* This source code is licensed under the ISC license.
|
|
573
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
574
|
-
*/
|
|
575
|
-
|
|
576
|
-
const Share2 = [
|
|
577
|
-
["circle", { cx: "18", cy: "5", r: "3" }],
|
|
578
|
-
["circle", { cx: "6", cy: "12", r: "3" }],
|
|
579
|
-
["circle", { cx: "18", cy: "19", r: "3" }],
|
|
580
|
-
["line", { x1: "8.59", x2: "15.42", y1: "13.51", y2: "17.49" }],
|
|
581
|
-
["line", { x1: "15.41", x2: "8.59", y1: "6.51", y2: "10.49" }]
|
|
582
|
-
];
|
|
583
|
-
|
|
584
|
-
/**
|
|
585
|
-
* @license lucide v1.7.0 - ISC
|
|
586
|
-
*
|
|
587
|
-
* This source code is licensed under the ISC license.
|
|
588
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
589
|
-
*/
|
|
590
|
-
|
|
591
|
-
const Square = [["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2" }]];
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* @license lucide v1.7.0 - ISC
|
|
595
|
-
*
|
|
596
|
-
* This source code is licensed under the ISC license.
|
|
597
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
598
|
-
*/
|
|
599
|
-
|
|
600
|
-
const StickyNote = [
|
|
601
|
-
[
|
|
602
|
-
"path",
|
|
603
|
-
{
|
|
604
|
-
d: "M21 9a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 15 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2z"
|
|
605
|
-
}
|
|
606
|
-
],
|
|
607
|
-
["path", { d: "M15 3v5a1 1 0 0 0 1 1h5" }]
|
|
608
|
-
];
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* @license lucide v1.7.0 - ISC
|
|
612
|
-
*
|
|
613
|
-
* This source code is licensed under the ISC license.
|
|
614
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
615
|
-
*/
|
|
616
|
-
|
|
617
|
-
const Trash2 = [
|
|
618
|
-
["path", { d: "M10 11v6" }],
|
|
619
|
-
["path", { d: "M14 11v6" }],
|
|
620
|
-
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }],
|
|
621
|
-
["path", { d: "M3 6h18" }],
|
|
622
|
-
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" }]
|
|
623
|
-
];
|
|
624
|
-
|
|
625
|
-
/**
|
|
626
|
-
* @license lucide v1.7.0 - ISC
|
|
627
|
-
*
|
|
628
|
-
* This source code is licensed under the ISC license.
|
|
629
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
630
|
-
*/
|
|
631
|
-
|
|
632
|
-
const Triangle = [
|
|
633
|
-
["path", { d: "M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }]
|
|
634
|
-
];
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
* @license lucide v1.7.0 - ISC
|
|
638
|
-
*
|
|
639
|
-
* This source code is licensed under the ISC license.
|
|
640
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
641
|
-
*/
|
|
642
|
-
|
|
643
|
-
const X = [
|
|
644
|
-
["path", { d: "M18 6 6 18" }],
|
|
645
|
-
["path", { d: "m6 6 12 12" }]
|
|
646
|
-
];
|
|
647
|
-
|
|
648
|
-
/**
|
|
649
|
-
* @license lucide v1.7.0 - ISC
|
|
650
|
-
*
|
|
651
|
-
* This source code is licensed under the ISC license.
|
|
652
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
653
|
-
*/
|
|
654
|
-
|
|
655
|
-
const Zap = [
|
|
656
|
-
[
|
|
657
|
-
"path",
|
|
658
|
-
{
|
|
659
|
-
d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z"
|
|
660
|
-
}
|
|
661
|
-
]
|
|
662
|
-
];
|
|
663
|
-
|
|
664
|
-
/**
|
|
665
|
-
* @license lucide v1.7.0 - ISC
|
|
666
|
-
*
|
|
667
|
-
* This source code is licensed under the ISC license.
|
|
668
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
669
|
-
*/
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
const createIcons = ({
|
|
673
|
-
icons = {},
|
|
674
|
-
nameAttr = "data-lucide",
|
|
675
|
-
attrs = {},
|
|
676
|
-
root = document,
|
|
677
|
-
inTemplates
|
|
678
|
-
} = {}) => {
|
|
679
|
-
if (!Object.values(icons).length) {
|
|
680
|
-
throw new Error(
|
|
681
|
-
"Please provide an icons object.\nIf you want to use all the icons you can import it like:\n `import { createIcons, icons } from 'lucide';\nlucide.createIcons({icons});`"
|
|
682
|
-
);
|
|
683
|
-
}
|
|
684
|
-
if (typeof root === "undefined") {
|
|
685
|
-
throw new Error("`createIcons()` only works in a browser environment.");
|
|
686
|
-
}
|
|
687
|
-
const elementsToReplace = Array.from(root.querySelectorAll(`[${nameAttr}]`));
|
|
688
|
-
elementsToReplace.forEach((element) => replaceElement(element, { nameAttr, icons, attrs }));
|
|
689
|
-
if (inTemplates) {
|
|
690
|
-
const templates = Array.from(root.querySelectorAll("template"));
|
|
691
|
-
templates.forEach(
|
|
692
|
-
(template) => createIcons({
|
|
693
|
-
icons,
|
|
694
|
-
nameAttr,
|
|
695
|
-
attrs,
|
|
696
|
-
root: template.content,
|
|
697
|
-
inTemplates
|
|
698
|
-
})
|
|
699
|
-
);
|
|
700
|
-
}
|
|
701
|
-
if (nameAttr === "data-lucide") {
|
|
702
|
-
const deprecatedElements = root.querySelectorAll("[icon-name]");
|
|
703
|
-
if (deprecatedElements.length > 0) {
|
|
704
|
-
console.warn(
|
|
705
|
-
"[Lucide] Some icons were found with the now deprecated icon-name attribute. These will still be replaced for backwards compatibility, but will no longer be supported in v1.0 and you should switch to data-lucide"
|
|
706
|
-
);
|
|
707
|
-
Array.from(deprecatedElements).forEach(
|
|
708
|
-
(element) => replaceElement(element, { nameAttr: "icon-name", icons, attrs })
|
|
709
|
-
);
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* Optimized icon bundle for Zenode Designer.
|
|
716
|
-
* Replaces the 2MB+ external Lucide CDN with a minimal, tree-shaken local build.
|
|
717
|
-
*/
|
|
718
|
-
const initializeIcons = () => {
|
|
719
|
-
createIcons({
|
|
720
|
-
icons: {
|
|
721
|
-
AlertCircle: CircleAlert,
|
|
722
|
-
ArrowDownRight,
|
|
723
|
-
ArrowRight,
|
|
724
|
-
ArrowUpRight,
|
|
725
|
-
Box,
|
|
726
|
-
CheckCircle: CircleCheckBig,
|
|
727
|
-
ChevronDown,
|
|
728
|
-
ChevronRight,
|
|
729
|
-
Circle,
|
|
730
|
-
Cloud,
|
|
731
|
-
Copy,
|
|
732
|
-
Database,
|
|
733
|
-
Diamond,
|
|
734
|
-
Download,
|
|
735
|
-
Edit2: Pen,
|
|
736
|
-
Eye,
|
|
737
|
-
EyeOff,
|
|
738
|
-
Grid: Grid3x3,
|
|
739
|
-
HelpCircle: CircleQuestionMark,
|
|
740
|
-
History,
|
|
741
|
-
Info,
|
|
742
|
-
Lasso,
|
|
743
|
-
Layout: PanelsTopLeft,
|
|
744
|
-
Maximize,
|
|
745
|
-
Minimize,
|
|
746
|
-
MousePointer,
|
|
747
|
-
Move,
|
|
748
|
-
Plus,
|
|
749
|
-
Search,
|
|
750
|
-
Settings,
|
|
751
|
-
Share2,
|
|
752
|
-
Square,
|
|
753
|
-
StickyNote,
|
|
754
|
-
Trash2,
|
|
755
|
-
Triangle,
|
|
756
|
-
X,
|
|
757
|
-
Zap
|
|
758
|
-
}
|
|
759
|
-
});
|
|
760
|
-
};
|
|
761
|
-
|
|
762
|
-
export { Box, Circle, Cloud, Copy, Database, Diamond, Pen as Edit2, Square, StickyNote, Trash2, Triangle, X, Zap, createIcons, initializeIcons };
|
|
763
|
-
//# sourceMappingURL=icons.bundle.js.map
|