@nice2dev/icons-cursor 1.0.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 +241 -0
- package/dist/createCursorIcon-CCO9eeBk.mjs +170 -0
- package/dist/createCursorIcon-CCO9eeBk.mjs.map +1 -0
- package/dist/createCursorIcon-Crwdo_Qk.js +169 -0
- package/dist/createCursorIcon-Crwdo_Qk.js.map +1 -0
- package/dist/createCursorIcon.d.ts +11 -0
- package/dist/createCursorIcon.d.ts.map +1 -0
- package/dist/cursorBuilder.d.ts +242 -0
- package/dist/cursorBuilder.d.ts.map +1 -0
- package/dist/index.cjs +288 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +101 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +292 -0
- package/dist/index.mjs.map +1 -0
- package/dist/pointers-DW_cbtGT.mjs +90 -0
- package/dist/pointers-DW_cbtGT.mjs.map +1 -0
- package/dist/pointers-DxPqgPxN.js +89 -0
- package/dist/pointers-DxPqgPxN.js.map +1 -0
- package/dist/pointers.cjs +21 -0
- package/dist/pointers.cjs.map +1 -0
- package/dist/pointers.d.ts +36 -0
- package/dist/pointers.d.ts.map +1 -0
- package/dist/pointers.mjs +21 -0
- package/dist/pointers.mjs.map +1 -0
- package/dist/selection-CINU3bsI.js +101 -0
- package/dist/selection-CINU3bsI.js.map +1 -0
- package/dist/selection-W-1ZhqSv.mjs +102 -0
- package/dist/selection-W-1ZhqSv.mjs.map +1 -0
- package/dist/selection.cjs +21 -0
- package/dist/selection.cjs.map +1 -0
- package/dist/selection.d.ts +36 -0
- package/dist/selection.d.ts.map +1 -0
- package/dist/selection.mjs +21 -0
- package/dist/selection.mjs.map +1 -0
- package/dist/status-BBrDqBw_.mjs +111 -0
- package/dist/status-BBrDqBw_.mjs.map +1 -0
- package/dist/status-L6N47QMq.js +110 -0
- package/dist/status-L6N47QMq.js.map +1 -0
- package/dist/status.cjs +21 -0
- package/dist/status.cjs.map +1 -0
- package/dist/status.d.ts +36 -0
- package/dist/status.d.ts.map +1 -0
- package/dist/status.mjs +21 -0
- package/dist/status.mjs.map +1 -0
- package/dist/tools-DbPCbk54.mjs +108 -0
- package/dist/tools-DbPCbk54.mjs.map +1 -0
- package/dist/tools-ttgDzC_5.js +107 -0
- package/dist/tools-ttgDzC_5.js.map +1 -0
- package/dist/tools.cjs +21 -0
- package/dist/tools.cjs.map +1 -0
- package/dist/tools.d.ts +36 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.mjs +21 -0
- package/dist/tools.mjs.map +1 -0
- package/dist/types.d.ts +55 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +71 -0
package/dist/status.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("./createCursorIcon-Crwdo_Qk.js");
|
|
4
|
+
const status = require("./status-L6N47QMq.js");
|
|
5
|
+
exports.Alias = status.Alias;
|
|
6
|
+
exports.Auto = status.Auto;
|
|
7
|
+
exports.Busy = status.Busy;
|
|
8
|
+
exports.ContextMenu = status.ContextMenu;
|
|
9
|
+
exports.Copy = status.Copy;
|
|
10
|
+
exports.Default = status.Default;
|
|
11
|
+
exports.Forbidden = status.Forbidden;
|
|
12
|
+
exports.Help = status.Help;
|
|
13
|
+
exports.Inherit = status.Inherit;
|
|
14
|
+
exports.Loading = status.Loading;
|
|
15
|
+
exports.NoDrop = status.NoDrop;
|
|
16
|
+
exports.None = status.None;
|
|
17
|
+
exports.NotAllowed = status.NotAllowed;
|
|
18
|
+
exports.Progress = status.Progress;
|
|
19
|
+
exports.Wait = status.Wait;
|
|
20
|
+
exports.statusIcons = status.statusIcons;
|
|
21
|
+
//# sourceMappingURL=status.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/status.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const Wait: import('./types').CursorIcon;
|
|
2
|
+
export declare const Progress: import('./types').CursorIcon;
|
|
3
|
+
export declare const Forbidden: import('./types').CursorIcon;
|
|
4
|
+
export declare const NotAllowed: import('./types').CursorIcon;
|
|
5
|
+
export declare const Help: import('./types').CursorIcon;
|
|
6
|
+
export declare const ContextMenu: import('./types').CursorIcon;
|
|
7
|
+
export declare const Alias: import('./types').CursorIcon;
|
|
8
|
+
export declare const Copy: import('./types').CursorIcon;
|
|
9
|
+
export declare const NoDrop: import('./types').CursorIcon;
|
|
10
|
+
export declare const Loading: import('./types').CursorIcon;
|
|
11
|
+
export declare const Busy: import('./types').CursorIcon;
|
|
12
|
+
export declare const Default: import('./types').CursorIcon;
|
|
13
|
+
export declare const Auto: import('./types').CursorIcon;
|
|
14
|
+
export declare const None: import('./types').CursorIcon;
|
|
15
|
+
export declare const Inherit: import('./types').CursorIcon;
|
|
16
|
+
/**
|
|
17
|
+
* All status icons grouped for export
|
|
18
|
+
*/
|
|
19
|
+
export declare const statusIcons: {
|
|
20
|
+
readonly Wait: import('./types').CursorIcon;
|
|
21
|
+
readonly Progress: import('./types').CursorIcon;
|
|
22
|
+
readonly Forbidden: import('./types').CursorIcon;
|
|
23
|
+
readonly NotAllowed: import('./types').CursorIcon;
|
|
24
|
+
readonly Help: import('./types').CursorIcon;
|
|
25
|
+
readonly ContextMenu: import('./types').CursorIcon;
|
|
26
|
+
readonly Alias: import('./types').CursorIcon;
|
|
27
|
+
readonly Copy: import('./types').CursorIcon;
|
|
28
|
+
readonly NoDrop: import('./types').CursorIcon;
|
|
29
|
+
readonly Loading: import('./types').CursorIcon;
|
|
30
|
+
readonly Busy: import('./types').CursorIcon;
|
|
31
|
+
readonly Default: import('./types').CursorIcon;
|
|
32
|
+
readonly Auto: import('./types').CursorIcon;
|
|
33
|
+
readonly None: import('./types').CursorIcon;
|
|
34
|
+
readonly Inherit: import('./types').CursorIcon;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../src/status.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,IAAI,8BAGhB,CAAC;AAGF,eAAO,MAAM,QAAQ,8BAGpB,CAAC;AAGF,eAAO,MAAM,SAAS,8BAGrB,CAAC;AAGF,eAAO,MAAM,UAAU,8BAGtB,CAAC;AAGF,eAAO,MAAM,IAAI,8BAGhB,CAAC;AAGF,eAAO,MAAM,WAAW,8BAGvB,CAAC;AAGF,eAAO,MAAM,KAAK,8BAGjB,CAAC;AAGF,eAAO,MAAM,IAAI,8BAGhB,CAAC;AAGF,eAAO,MAAM,MAAM,8BAGlB,CAAC;AAGF,eAAO,MAAM,OAAO,8BAGnB,CAAC;AAGF,eAAO,MAAM,IAAI,8BAAiF,CAAC;AAGnG,eAAO,MAAM,OAAO,8BAAyE,CAAC;AAG9F,eAAO,MAAM,IAAI,8BAGhB,CAAC;AAGF,eAAO,MAAM,IAAI,8BAGhB,CAAC;AAGF,eAAO,MAAM,OAAO,8BAGnB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;CAgBd,CAAC"}
|
package/dist/status.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./createCursorIcon-CCO9eeBk.mjs";
|
|
2
|
+
import { A, a, B, C, b, D, F, H, I, L, N, c, d, P, W, s } from "./status-BBrDqBw_.mjs";
|
|
3
|
+
export {
|
|
4
|
+
A as Alias,
|
|
5
|
+
a as Auto,
|
|
6
|
+
B as Busy,
|
|
7
|
+
C as ContextMenu,
|
|
8
|
+
b as Copy,
|
|
9
|
+
D as Default,
|
|
10
|
+
F as Forbidden,
|
|
11
|
+
H as Help,
|
|
12
|
+
I as Inherit,
|
|
13
|
+
L as Loading,
|
|
14
|
+
N as NoDrop,
|
|
15
|
+
c as None,
|
|
16
|
+
d as NotAllowed,
|
|
17
|
+
P as Progress,
|
|
18
|
+
W as Wait,
|
|
19
|
+
s as statusIcons
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=status.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { c as createCursorIcon } from "./createCursorIcon-CCO9eeBk.mjs";
|
|
2
|
+
const ZoomIn = createCursorIcon(
|
|
3
|
+
"ZoomIn",
|
|
4
|
+
"M21 21l-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0zM10 7v6m3-3H7"
|
|
5
|
+
);
|
|
6
|
+
const ZoomOut = createCursorIcon(
|
|
7
|
+
"ZoomOut",
|
|
8
|
+
"M21 21l-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0zM7 10h6"
|
|
9
|
+
);
|
|
10
|
+
const Rotate = createCursorIcon(
|
|
11
|
+
"Rotate",
|
|
12
|
+
"M4.93 4.93A10 10 0 1 1 3 12H1l4-4 4 4H6a8 8 0 1 0 1.51-4.69"
|
|
13
|
+
);
|
|
14
|
+
const Pan = createCursorIcon(
|
|
15
|
+
"Pan",
|
|
16
|
+
"M12 3v18m0-18l-4 4m4-4l4 4m-4 14l-4-4m4 4l4-4M3 12h18M3 12l4-4M3 12l4 4m14-4l-4-4m4 4l-4 4"
|
|
17
|
+
);
|
|
18
|
+
const Draw = createCursorIcon(
|
|
19
|
+
"Draw",
|
|
20
|
+
"M15.232 5.232l3.536 3.536m-2.121-5.657a2.5 2.5 0 1 1 3.536 3.536L6.5 21.036H3v-3.5l13.232-13.232z"
|
|
21
|
+
);
|
|
22
|
+
const Brush = createCursorIcon(
|
|
23
|
+
"Brush",
|
|
24
|
+
"M9.75 17L9 20l-1 1c-1.5 0-3-.5-3-2 0-2 2.5-3 5.5-3m1 1l6.5-6.5a1 1 0 0 0-1.5-1.5L10 14.5m7-7L19.5 5a2 2 0 1 0-3-3L14 4.5"
|
|
25
|
+
);
|
|
26
|
+
const Eraser = createCursorIcon(
|
|
27
|
+
"Eraser",
|
|
28
|
+
"M19 20H9l-5.5-5.5c-1-1-1-2.5 0-3.5l10-10c1-1 2.5-1 3.5 0l5.5 5.5c1 1 1 2.5 0 3.5L14 19m-4-4L6.5 11.5"
|
|
29
|
+
);
|
|
30
|
+
const Eyedropper = createCursorIcon(
|
|
31
|
+
"Eyedropper",
|
|
32
|
+
"M2 22l1-4 3 3-4 1zm6-5l10-10m-4 4l3 3m-7-7l3 3m3-7a2 2 0 1 1 3 3l-3-3z"
|
|
33
|
+
);
|
|
34
|
+
const Bucket = createCursorIcon(
|
|
35
|
+
"Bucket",
|
|
36
|
+
"M19 11l-8-8-9 9a2 2 0 0 0 0 3l7 7a2 2 0 0 0 3 0l7-7a2 2 0 0 0 0-3zM5.5 9.5L10 5m9.5 12.5c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5S15.5 15 17 15s2.5 2.5 2.5 2.5z"
|
|
37
|
+
);
|
|
38
|
+
const Pen = createCursorIcon(
|
|
39
|
+
"Pen",
|
|
40
|
+
"M12 19l7-7 3 3-7 7-3-3zm0 0l-1.5 1.5c-.5.5-1.5.5-2 0l-5-5c-.5-.5-.5-1.5 0-2L5 12l3-3 4 4-3 3 3 3z"
|
|
41
|
+
);
|
|
42
|
+
const Line = createCursorIcon("Line", "M4 20L20 4");
|
|
43
|
+
const Rectangle = createCursorIcon(
|
|
44
|
+
"Rectangle",
|
|
45
|
+
"M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6z"
|
|
46
|
+
);
|
|
47
|
+
const Ellipse = createCursorIcon("Ellipse", "M12 5c5 0 9 3 9 7s-4 7-9 7-9-3-9-7 4-7 9-7z");
|
|
48
|
+
const Polygon = createCursorIcon("Polygon", "M12 2l9 7-3.5 11H6.5L3 9l9-7z");
|
|
49
|
+
const Crop = createCursorIcon(
|
|
50
|
+
"Crop",
|
|
51
|
+
"M6 2v4m0 12v4M2 6h4m12 0h4m-4 12V6H6v12h12m0 0h4m-4 0v4"
|
|
52
|
+
);
|
|
53
|
+
const toolIcons = {
|
|
54
|
+
ZoomIn,
|
|
55
|
+
ZoomOut,
|
|
56
|
+
Rotate,
|
|
57
|
+
Pan,
|
|
58
|
+
Draw,
|
|
59
|
+
Brush,
|
|
60
|
+
Eraser,
|
|
61
|
+
Eyedropper,
|
|
62
|
+
Bucket,
|
|
63
|
+
Pen,
|
|
64
|
+
Line,
|
|
65
|
+
Rectangle,
|
|
66
|
+
Ellipse,
|
|
67
|
+
Polygon,
|
|
68
|
+
Crop
|
|
69
|
+
};
|
|
70
|
+
const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71
|
+
__proto__: null,
|
|
72
|
+
Brush,
|
|
73
|
+
Bucket,
|
|
74
|
+
Crop,
|
|
75
|
+
Draw,
|
|
76
|
+
Ellipse,
|
|
77
|
+
Eraser,
|
|
78
|
+
Eyedropper,
|
|
79
|
+
Line,
|
|
80
|
+
Pan,
|
|
81
|
+
Pen,
|
|
82
|
+
Polygon,
|
|
83
|
+
Rectangle,
|
|
84
|
+
Rotate,
|
|
85
|
+
ZoomIn,
|
|
86
|
+
ZoomOut,
|
|
87
|
+
toolIcons
|
|
88
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
89
|
+
export {
|
|
90
|
+
Brush as B,
|
|
91
|
+
Crop as C,
|
|
92
|
+
Draw as D,
|
|
93
|
+
Ellipse as E,
|
|
94
|
+
Line as L,
|
|
95
|
+
Pan as P,
|
|
96
|
+
Rectangle as R,
|
|
97
|
+
ZoomIn as Z,
|
|
98
|
+
Bucket as a,
|
|
99
|
+
Eraser as b,
|
|
100
|
+
Eyedropper as c,
|
|
101
|
+
Pen as d,
|
|
102
|
+
Polygon as e,
|
|
103
|
+
Rotate as f,
|
|
104
|
+
ZoomOut as g,
|
|
105
|
+
tools as h,
|
|
106
|
+
toolIcons as t
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=tools-DbPCbk54.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-DbPCbk54.mjs","sources":["../src/tools.tsx"],"sourcesContent":["/**\r\n * Tool cursor icons for drawing and editing\r\n * @packageDocumentation\r\n */\r\nimport { createCursorIcon } from './createCursorIcon';\r\n\r\n// Zoom in\r\nexport const ZoomIn = createCursorIcon(\r\n 'ZoomIn',\r\n 'M21 21l-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0zM10 7v6m3-3H7',\r\n);\r\n\r\n// Zoom out\r\nexport const ZoomOut = createCursorIcon(\r\n 'ZoomOut',\r\n 'M21 21l-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0zM7 10h6',\r\n);\r\n\r\n// Rotate\r\nexport const Rotate = createCursorIcon(\r\n 'Rotate',\r\n 'M4.93 4.93A10 10 0 1 1 3 12H1l4-4 4 4H6a8 8 0 1 0 1.51-4.69',\r\n);\r\n\r\n// Pan (hand for panning)\r\nexport const Pan = createCursorIcon(\r\n 'Pan',\r\n 'M12 3v18m0-18l-4 4m4-4l4 4m-4 14l-4-4m4 4l4-4M3 12h18M3 12l4-4M3 12l4 4m14-4l-4-4m4 4l-4 4',\r\n);\r\n\r\n// Draw (pencil)\r\nexport const Draw = createCursorIcon(\r\n 'Draw',\r\n 'M15.232 5.232l3.536 3.536m-2.121-5.657a2.5 2.5 0 1 1 3.536 3.536L6.5 21.036H3v-3.5l13.232-13.232z',\r\n);\r\n\r\n// Brush\r\nexport const Brush = createCursorIcon(\r\n 'Brush',\r\n 'M9.75 17L9 20l-1 1c-1.5 0-3-.5-3-2 0-2 2.5-3 5.5-3m1 1l6.5-6.5a1 1 0 0 0-1.5-1.5L10 14.5m7-7L19.5 5a2 2 0 1 0-3-3L14 4.5',\r\n);\r\n\r\n// Eraser\r\nexport const Eraser = createCursorIcon(\r\n 'Eraser',\r\n 'M19 20H9l-5.5-5.5c-1-1-1-2.5 0-3.5l10-10c1-1 2.5-1 3.5 0l5.5 5.5c1 1 1 2.5 0 3.5L14 19m-4-4L6.5 11.5',\r\n);\r\n\r\n// Eyedropper (color picker)\r\nexport const Eyedropper = createCursorIcon(\r\n 'Eyedropper',\r\n 'M2 22l1-4 3 3-4 1zm6-5l10-10m-4 4l3 3m-7-7l3 3m3-7a2 2 0 1 1 3 3l-3-3z',\r\n);\r\n\r\n// Paint bucket\r\nexport const Bucket = createCursorIcon(\r\n 'Bucket',\r\n 'M19 11l-8-8-9 9a2 2 0 0 0 0 3l7 7a2 2 0 0 0 3 0l7-7a2 2 0 0 0 0-3zM5.5 9.5L10 5m9.5 12.5c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5S15.5 15 17 15s2.5 2.5 2.5 2.5z',\r\n);\r\n\r\n// Pen (vector)\r\nexport const Pen = createCursorIcon(\r\n 'Pen',\r\n 'M12 19l7-7 3 3-7 7-3-3zm0 0l-1.5 1.5c-.5.5-1.5.5-2 0l-5-5c-.5-.5-.5-1.5 0-2L5 12l3-3 4 4-3 3 3 3z',\r\n);\r\n\r\n// Line tool\r\nexport const Line = createCursorIcon('Line', 'M4 20L20 4');\r\n\r\n// Rectangle tool\r\nexport const Rectangle = createCursorIcon(\r\n 'Rectangle',\r\n 'M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6z',\r\n);\r\n\r\n// Ellipse tool\r\nexport const Ellipse = createCursorIcon('Ellipse', 'M12 5c5 0 9 3 9 7s-4 7-9 7-9-3-9-7 4-7 9-7z');\r\n\r\n// Polygon tool\r\nexport const Polygon = createCursorIcon('Polygon', 'M12 2l9 7-3.5 11H6.5L3 9l9-7z');\r\n\r\n// Crop tool\r\nexport const Crop = createCursorIcon(\r\n 'Crop',\r\n 'M6 2v4m0 12v4M2 6h4m12 0h4m-4 12V6H6v12h12m0 0h4m-4 0v4',\r\n);\r\n\r\n/**\r\n * All tool icons grouped for export\r\n */\r\nexport const toolIcons = {\r\n ZoomIn,\r\n ZoomOut,\r\n Rotate,\r\n Pan,\r\n Draw,\r\n Brush,\r\n Eraser,\r\n Eyedropper,\r\n Bucket,\r\n Pen,\r\n Line,\r\n Rectangle,\r\n Ellipse,\r\n Polygon,\r\n Crop,\r\n} as const;\r\n"],"names":[],"mappings":";AAOO,MAAM,SAAS;AAAA,EACpB;AAAA,EACA;AACF;AAGO,MAAM,UAAU;AAAA,EACrB;AAAA,EACA;AACF;AAGO,MAAM,SAAS;AAAA,EACpB;AAAA,EACA;AACF;AAGO,MAAM,MAAM;AAAA,EACjB;AAAA,EACA;AACF;AAGO,MAAM,OAAO;AAAA,EAClB;AAAA,EACA;AACF;AAGO,MAAM,QAAQ;AAAA,EACnB;AAAA,EACA;AACF;AAGO,MAAM,SAAS;AAAA,EACpB;AAAA,EACA;AACF;AAGO,MAAM,aAAa;AAAA,EACxB;AAAA,EACA;AACF;AAGO,MAAM,SAAS;AAAA,EACpB;AAAA,EACA;AACF;AAGO,MAAM,MAAM;AAAA,EACjB;AAAA,EACA;AACF;AAGO,MAAM,OAAO,iBAAiB,QAAQ,YAAY;AAGlD,MAAM,YAAY;AAAA,EACvB;AAAA,EACA;AACF;AAGO,MAAM,UAAU,iBAAiB,WAAW,6CAA6C;AAGzF,MAAM,UAAU,iBAAiB,WAAW,+BAA+B;AAG3E,MAAM,OAAO;AAAA,EAClB;AAAA,EACA;AACF;AAKO,MAAM,YAAY;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const createCursorIcon = require("./createCursorIcon-Crwdo_Qk.js");
|
|
3
|
+
const ZoomIn = createCursorIcon.createCursorIcon(
|
|
4
|
+
"ZoomIn",
|
|
5
|
+
"M21 21l-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0zM10 7v6m3-3H7"
|
|
6
|
+
);
|
|
7
|
+
const ZoomOut = createCursorIcon.createCursorIcon(
|
|
8
|
+
"ZoomOut",
|
|
9
|
+
"M21 21l-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0zM7 10h6"
|
|
10
|
+
);
|
|
11
|
+
const Rotate = createCursorIcon.createCursorIcon(
|
|
12
|
+
"Rotate",
|
|
13
|
+
"M4.93 4.93A10 10 0 1 1 3 12H1l4-4 4 4H6a8 8 0 1 0 1.51-4.69"
|
|
14
|
+
);
|
|
15
|
+
const Pan = createCursorIcon.createCursorIcon(
|
|
16
|
+
"Pan",
|
|
17
|
+
"M12 3v18m0-18l-4 4m4-4l4 4m-4 14l-4-4m4 4l4-4M3 12h18M3 12l4-4M3 12l4 4m14-4l-4-4m4 4l-4 4"
|
|
18
|
+
);
|
|
19
|
+
const Draw = createCursorIcon.createCursorIcon(
|
|
20
|
+
"Draw",
|
|
21
|
+
"M15.232 5.232l3.536 3.536m-2.121-5.657a2.5 2.5 0 1 1 3.536 3.536L6.5 21.036H3v-3.5l13.232-13.232z"
|
|
22
|
+
);
|
|
23
|
+
const Brush = createCursorIcon.createCursorIcon(
|
|
24
|
+
"Brush",
|
|
25
|
+
"M9.75 17L9 20l-1 1c-1.5 0-3-.5-3-2 0-2 2.5-3 5.5-3m1 1l6.5-6.5a1 1 0 0 0-1.5-1.5L10 14.5m7-7L19.5 5a2 2 0 1 0-3-3L14 4.5"
|
|
26
|
+
);
|
|
27
|
+
const Eraser = createCursorIcon.createCursorIcon(
|
|
28
|
+
"Eraser",
|
|
29
|
+
"M19 20H9l-5.5-5.5c-1-1-1-2.5 0-3.5l10-10c1-1 2.5-1 3.5 0l5.5 5.5c1 1 1 2.5 0 3.5L14 19m-4-4L6.5 11.5"
|
|
30
|
+
);
|
|
31
|
+
const Eyedropper = createCursorIcon.createCursorIcon(
|
|
32
|
+
"Eyedropper",
|
|
33
|
+
"M2 22l1-4 3 3-4 1zm6-5l10-10m-4 4l3 3m-7-7l3 3m3-7a2 2 0 1 1 3 3l-3-3z"
|
|
34
|
+
);
|
|
35
|
+
const Bucket = createCursorIcon.createCursorIcon(
|
|
36
|
+
"Bucket",
|
|
37
|
+
"M19 11l-8-8-9 9a2 2 0 0 0 0 3l7 7a2 2 0 0 0 3 0l7-7a2 2 0 0 0 0-3zM5.5 9.5L10 5m9.5 12.5c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5S15.5 15 17 15s2.5 2.5 2.5 2.5z"
|
|
38
|
+
);
|
|
39
|
+
const Pen = createCursorIcon.createCursorIcon(
|
|
40
|
+
"Pen",
|
|
41
|
+
"M12 19l7-7 3 3-7 7-3-3zm0 0l-1.5 1.5c-.5.5-1.5.5-2 0l-5-5c-.5-.5-.5-1.5 0-2L5 12l3-3 4 4-3 3 3 3z"
|
|
42
|
+
);
|
|
43
|
+
const Line = createCursorIcon.createCursorIcon("Line", "M4 20L20 4");
|
|
44
|
+
const Rectangle = createCursorIcon.createCursorIcon(
|
|
45
|
+
"Rectangle",
|
|
46
|
+
"M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6z"
|
|
47
|
+
);
|
|
48
|
+
const Ellipse = createCursorIcon.createCursorIcon("Ellipse", "M12 5c5 0 9 3 9 7s-4 7-9 7-9-3-9-7 4-7 9-7z");
|
|
49
|
+
const Polygon = createCursorIcon.createCursorIcon("Polygon", "M12 2l9 7-3.5 11H6.5L3 9l9-7z");
|
|
50
|
+
const Crop = createCursorIcon.createCursorIcon(
|
|
51
|
+
"Crop",
|
|
52
|
+
"M6 2v4m0 12v4M2 6h4m12 0h4m-4 12V6H6v12h12m0 0h4m-4 0v4"
|
|
53
|
+
);
|
|
54
|
+
const toolIcons = {
|
|
55
|
+
ZoomIn,
|
|
56
|
+
ZoomOut,
|
|
57
|
+
Rotate,
|
|
58
|
+
Pan,
|
|
59
|
+
Draw,
|
|
60
|
+
Brush,
|
|
61
|
+
Eraser,
|
|
62
|
+
Eyedropper,
|
|
63
|
+
Bucket,
|
|
64
|
+
Pen,
|
|
65
|
+
Line,
|
|
66
|
+
Rectangle,
|
|
67
|
+
Ellipse,
|
|
68
|
+
Polygon,
|
|
69
|
+
Crop
|
|
70
|
+
};
|
|
71
|
+
const tools = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
72
|
+
__proto__: null,
|
|
73
|
+
Brush,
|
|
74
|
+
Bucket,
|
|
75
|
+
Crop,
|
|
76
|
+
Draw,
|
|
77
|
+
Ellipse,
|
|
78
|
+
Eraser,
|
|
79
|
+
Eyedropper,
|
|
80
|
+
Line,
|
|
81
|
+
Pan,
|
|
82
|
+
Pen,
|
|
83
|
+
Polygon,
|
|
84
|
+
Rectangle,
|
|
85
|
+
Rotate,
|
|
86
|
+
ZoomIn,
|
|
87
|
+
ZoomOut,
|
|
88
|
+
toolIcons
|
|
89
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
90
|
+
exports.Brush = Brush;
|
|
91
|
+
exports.Bucket = Bucket;
|
|
92
|
+
exports.Crop = Crop;
|
|
93
|
+
exports.Draw = Draw;
|
|
94
|
+
exports.Ellipse = Ellipse;
|
|
95
|
+
exports.Eraser = Eraser;
|
|
96
|
+
exports.Eyedropper = Eyedropper;
|
|
97
|
+
exports.Line = Line;
|
|
98
|
+
exports.Pan = Pan;
|
|
99
|
+
exports.Pen = Pen;
|
|
100
|
+
exports.Polygon = Polygon;
|
|
101
|
+
exports.Rectangle = Rectangle;
|
|
102
|
+
exports.Rotate = Rotate;
|
|
103
|
+
exports.ZoomIn = ZoomIn;
|
|
104
|
+
exports.ZoomOut = ZoomOut;
|
|
105
|
+
exports.toolIcons = toolIcons;
|
|
106
|
+
exports.tools = tools;
|
|
107
|
+
//# sourceMappingURL=tools-ttgDzC_5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-ttgDzC_5.js","sources":["../src/tools.tsx"],"sourcesContent":["/**\r\n * Tool cursor icons for drawing and editing\r\n * @packageDocumentation\r\n */\r\nimport { createCursorIcon } from './createCursorIcon';\r\n\r\n// Zoom in\r\nexport const ZoomIn = createCursorIcon(\r\n 'ZoomIn',\r\n 'M21 21l-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0zM10 7v6m3-3H7',\r\n);\r\n\r\n// Zoom out\r\nexport const ZoomOut = createCursorIcon(\r\n 'ZoomOut',\r\n 'M21 21l-6-6m2-5a7 7 0 1 1-14 0 7 7 0 0 1 14 0zM7 10h6',\r\n);\r\n\r\n// Rotate\r\nexport const Rotate = createCursorIcon(\r\n 'Rotate',\r\n 'M4.93 4.93A10 10 0 1 1 3 12H1l4-4 4 4H6a8 8 0 1 0 1.51-4.69',\r\n);\r\n\r\n// Pan (hand for panning)\r\nexport const Pan = createCursorIcon(\r\n 'Pan',\r\n 'M12 3v18m0-18l-4 4m4-4l4 4m-4 14l-4-4m4 4l4-4M3 12h18M3 12l4-4M3 12l4 4m14-4l-4-4m4 4l-4 4',\r\n);\r\n\r\n// Draw (pencil)\r\nexport const Draw = createCursorIcon(\r\n 'Draw',\r\n 'M15.232 5.232l3.536 3.536m-2.121-5.657a2.5 2.5 0 1 1 3.536 3.536L6.5 21.036H3v-3.5l13.232-13.232z',\r\n);\r\n\r\n// Brush\r\nexport const Brush = createCursorIcon(\r\n 'Brush',\r\n 'M9.75 17L9 20l-1 1c-1.5 0-3-.5-3-2 0-2 2.5-3 5.5-3m1 1l6.5-6.5a1 1 0 0 0-1.5-1.5L10 14.5m7-7L19.5 5a2 2 0 1 0-3-3L14 4.5',\r\n);\r\n\r\n// Eraser\r\nexport const Eraser = createCursorIcon(\r\n 'Eraser',\r\n 'M19 20H9l-5.5-5.5c-1-1-1-2.5 0-3.5l10-10c1-1 2.5-1 3.5 0l5.5 5.5c1 1 1 2.5 0 3.5L14 19m-4-4L6.5 11.5',\r\n);\r\n\r\n// Eyedropper (color picker)\r\nexport const Eyedropper = createCursorIcon(\r\n 'Eyedropper',\r\n 'M2 22l1-4 3 3-4 1zm6-5l10-10m-4 4l3 3m-7-7l3 3m3-7a2 2 0 1 1 3 3l-3-3z',\r\n);\r\n\r\n// Paint bucket\r\nexport const Bucket = createCursorIcon(\r\n 'Bucket',\r\n 'M19 11l-8-8-9 9a2 2 0 0 0 0 3l7 7a2 2 0 0 0 3 0l7-7a2 2 0 0 0 0-3zM5.5 9.5L10 5m9.5 12.5c0 1.4-1.1 2.5-2.5 2.5s-2.5-1.1-2.5-2.5S15.5 15 17 15s2.5 2.5 2.5 2.5z',\r\n);\r\n\r\n// Pen (vector)\r\nexport const Pen = createCursorIcon(\r\n 'Pen',\r\n 'M12 19l7-7 3 3-7 7-3-3zm0 0l-1.5 1.5c-.5.5-1.5.5-2 0l-5-5c-.5-.5-.5-1.5 0-2L5 12l3-3 4 4-3 3 3 3z',\r\n);\r\n\r\n// Line tool\r\nexport const Line = createCursorIcon('Line', 'M4 20L20 4');\r\n\r\n// Rectangle tool\r\nexport const Rectangle = createCursorIcon(\r\n 'Rectangle',\r\n 'M3 6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6z',\r\n);\r\n\r\n// Ellipse tool\r\nexport const Ellipse = createCursorIcon('Ellipse', 'M12 5c5 0 9 3 9 7s-4 7-9 7-9-3-9-7 4-7 9-7z');\r\n\r\n// Polygon tool\r\nexport const Polygon = createCursorIcon('Polygon', 'M12 2l9 7-3.5 11H6.5L3 9l9-7z');\r\n\r\n// Crop tool\r\nexport const Crop = createCursorIcon(\r\n 'Crop',\r\n 'M6 2v4m0 12v4M2 6h4m12 0h4m-4 12V6H6v12h12m0 0h4m-4 0v4',\r\n);\r\n\r\n/**\r\n * All tool icons grouped for export\r\n */\r\nexport const toolIcons = {\r\n ZoomIn,\r\n ZoomOut,\r\n Rotate,\r\n Pan,\r\n Draw,\r\n Brush,\r\n Eraser,\r\n Eyedropper,\r\n Bucket,\r\n Pen,\r\n Line,\r\n Rectangle,\r\n Ellipse,\r\n Polygon,\r\n Crop,\r\n} as const;\r\n"],"names":["createCursorIcon"],"mappings":";;AAOO,MAAM,SAASA,iBAAAA;AAAAA,EACpB;AAAA,EACA;AACF;AAGO,MAAM,UAAUA,iBAAAA;AAAAA,EACrB;AAAA,EACA;AACF;AAGO,MAAM,SAASA,iBAAAA;AAAAA,EACpB;AAAA,EACA;AACF;AAGO,MAAM,MAAMA,iBAAAA;AAAAA,EACjB;AAAA,EACA;AACF;AAGO,MAAM,OAAOA,iBAAAA;AAAAA,EAClB;AAAA,EACA;AACF;AAGO,MAAM,QAAQA,iBAAAA;AAAAA,EACnB;AAAA,EACA;AACF;AAGO,MAAM,SAASA,iBAAAA;AAAAA,EACpB;AAAA,EACA;AACF;AAGO,MAAM,aAAaA,iBAAAA;AAAAA,EACxB;AAAA,EACA;AACF;AAGO,MAAM,SAASA,iBAAAA;AAAAA,EACpB;AAAA,EACA;AACF;AAGO,MAAM,MAAMA,iBAAAA;AAAAA,EACjB;AAAA,EACA;AACF;AAGO,MAAM,OAAOA,iBAAAA,iBAAiB,QAAQ,YAAY;AAGlD,MAAM,YAAYA,iBAAAA;AAAAA,EACvB;AAAA,EACA;AACF;AAGO,MAAM,UAAUA,iBAAAA,iBAAiB,WAAW,6CAA6C;AAGzF,MAAM,UAAUA,iBAAAA,iBAAiB,WAAW,+BAA+B;AAG3E,MAAM,OAAOA,iBAAAA;AAAAA,EAClB;AAAA,EACA;AACF;AAKO,MAAM,YAAY;AAAA,EACvB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/tools.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("./createCursorIcon-Crwdo_Qk.js");
|
|
4
|
+
const tools = require("./tools-ttgDzC_5.js");
|
|
5
|
+
exports.Brush = tools.Brush;
|
|
6
|
+
exports.Bucket = tools.Bucket;
|
|
7
|
+
exports.Crop = tools.Crop;
|
|
8
|
+
exports.Draw = tools.Draw;
|
|
9
|
+
exports.Ellipse = tools.Ellipse;
|
|
10
|
+
exports.Eraser = tools.Eraser;
|
|
11
|
+
exports.Eyedropper = tools.Eyedropper;
|
|
12
|
+
exports.Line = tools.Line;
|
|
13
|
+
exports.Pan = tools.Pan;
|
|
14
|
+
exports.Pen = tools.Pen;
|
|
15
|
+
exports.Polygon = tools.Polygon;
|
|
16
|
+
exports.Rectangle = tools.Rectangle;
|
|
17
|
+
exports.Rotate = tools.Rotate;
|
|
18
|
+
exports.ZoomIn = tools.ZoomIn;
|
|
19
|
+
exports.ZoomOut = tools.ZoomOut;
|
|
20
|
+
exports.toolIcons = tools.toolIcons;
|
|
21
|
+
//# sourceMappingURL=tools.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare const ZoomIn: import('./types').CursorIcon;
|
|
2
|
+
export declare const ZoomOut: import('./types').CursorIcon;
|
|
3
|
+
export declare const Rotate: import('./types').CursorIcon;
|
|
4
|
+
export declare const Pan: import('./types').CursorIcon;
|
|
5
|
+
export declare const Draw: import('./types').CursorIcon;
|
|
6
|
+
export declare const Brush: import('./types').CursorIcon;
|
|
7
|
+
export declare const Eraser: import('./types').CursorIcon;
|
|
8
|
+
export declare const Eyedropper: import('./types').CursorIcon;
|
|
9
|
+
export declare const Bucket: import('./types').CursorIcon;
|
|
10
|
+
export declare const Pen: import('./types').CursorIcon;
|
|
11
|
+
export declare const Line: import('./types').CursorIcon;
|
|
12
|
+
export declare const Rectangle: import('./types').CursorIcon;
|
|
13
|
+
export declare const Ellipse: import('./types').CursorIcon;
|
|
14
|
+
export declare const Polygon: import('./types').CursorIcon;
|
|
15
|
+
export declare const Crop: import('./types').CursorIcon;
|
|
16
|
+
/**
|
|
17
|
+
* All tool icons grouped for export
|
|
18
|
+
*/
|
|
19
|
+
export declare const toolIcons: {
|
|
20
|
+
readonly ZoomIn: import('./types').CursorIcon;
|
|
21
|
+
readonly ZoomOut: import('./types').CursorIcon;
|
|
22
|
+
readonly Rotate: import('./types').CursorIcon;
|
|
23
|
+
readonly Pan: import('./types').CursorIcon;
|
|
24
|
+
readonly Draw: import('./types').CursorIcon;
|
|
25
|
+
readonly Brush: import('./types').CursorIcon;
|
|
26
|
+
readonly Eraser: import('./types').CursorIcon;
|
|
27
|
+
readonly Eyedropper: import('./types').CursorIcon;
|
|
28
|
+
readonly Bucket: import('./types').CursorIcon;
|
|
29
|
+
readonly Pen: import('./types').CursorIcon;
|
|
30
|
+
readonly Line: import('./types').CursorIcon;
|
|
31
|
+
readonly Rectangle: import('./types').CursorIcon;
|
|
32
|
+
readonly Ellipse: import('./types').CursorIcon;
|
|
33
|
+
readonly Polygon: import('./types').CursorIcon;
|
|
34
|
+
readonly Crop: import('./types').CursorIcon;
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.tsx"],"names":[],"mappings":"AAOA,eAAO,MAAM,MAAM,8BAGlB,CAAC;AAGF,eAAO,MAAM,OAAO,8BAGnB,CAAC;AAGF,eAAO,MAAM,MAAM,8BAGlB,CAAC;AAGF,eAAO,MAAM,GAAG,8BAGf,CAAC;AAGF,eAAO,MAAM,IAAI,8BAGhB,CAAC;AAGF,eAAO,MAAM,KAAK,8BAGjB,CAAC;AAGF,eAAO,MAAM,MAAM,8BAGlB,CAAC;AAGF,eAAO,MAAM,UAAU,8BAGtB,CAAC;AAGF,eAAO,MAAM,MAAM,8BAGlB,CAAC;AAGF,eAAO,MAAM,GAAG,8BAGf,CAAC;AAGF,eAAO,MAAM,IAAI,8BAAyC,CAAC;AAG3D,eAAO,MAAM,SAAS,8BAGrB,CAAC;AAGF,eAAO,MAAM,OAAO,8BAA6E,CAAC;AAGlG,eAAO,MAAM,OAAO,8BAA+D,CAAC;AAGpF,eAAO,MAAM,IAAI,8BAGhB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;CAgBZ,CAAC"}
|
package/dist/tools.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "./createCursorIcon-CCO9eeBk.mjs";
|
|
2
|
+
import { B, a, C, D, E, b, c, L, P, d, e, R, f, Z, g, t } from "./tools-DbPCbk54.mjs";
|
|
3
|
+
export {
|
|
4
|
+
B as Brush,
|
|
5
|
+
a as Bucket,
|
|
6
|
+
C as Crop,
|
|
7
|
+
D as Draw,
|
|
8
|
+
E as Ellipse,
|
|
9
|
+
b as Eraser,
|
|
10
|
+
c as Eyedropper,
|
|
11
|
+
L as Line,
|
|
12
|
+
P as Pan,
|
|
13
|
+
d as Pen,
|
|
14
|
+
e as Polygon,
|
|
15
|
+
R as Rectangle,
|
|
16
|
+
f as Rotate,
|
|
17
|
+
Z as ZoomIn,
|
|
18
|
+
g as ZoomOut,
|
|
19
|
+
t as toolIcons
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=tools.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { SVGProps, ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Cursor icon animation types
|
|
4
|
+
*/
|
|
5
|
+
export type CursorIconAnimation = 'pulse' | 'grow' | 'shake' | 'spin' | 'bounce' | 'fade' | 'flip' | 'slide' | 'glow';
|
|
6
|
+
/**
|
|
7
|
+
* Cursor icon rendering variants
|
|
8
|
+
*/
|
|
9
|
+
export type CursorIconVariant = 'filled' | 'outlined' | 'duotone';
|
|
10
|
+
/**
|
|
11
|
+
* Base props for all cursor icons
|
|
12
|
+
*/
|
|
13
|
+
export interface CursorIconProps extends Omit<SVGProps<SVGSVGElement>, 'ref'> {
|
|
14
|
+
/** Icon size in pixels */
|
|
15
|
+
size?: number | string;
|
|
16
|
+
/** Icon color (defaults to currentColor) */
|
|
17
|
+
color?: string;
|
|
18
|
+
/** Secondary color for duotone variant */
|
|
19
|
+
secondaryColor?: string;
|
|
20
|
+
/** Icon rendering variant */
|
|
21
|
+
variant?: CursorIconVariant;
|
|
22
|
+
/** Animation effect */
|
|
23
|
+
animation?: CursorIconAnimation;
|
|
24
|
+
/** Animation duration in milliseconds */
|
|
25
|
+
animationDuration?: number;
|
|
26
|
+
/** Title for accessibility */
|
|
27
|
+
title?: string;
|
|
28
|
+
/** Description for accessibility */
|
|
29
|
+
desc?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Pointer icon names (basic cursors)
|
|
33
|
+
*/
|
|
34
|
+
export type PointerIconName = 'Pointer' | 'PointerFinger' | 'Crosshair' | 'Move' | 'ResizeN' | 'ResizeS' | 'ResizeE' | 'ResizeW' | 'ResizeNE' | 'ResizeNW' | 'ResizeSE' | 'ResizeSW' | 'ResizeHorizontal' | 'ResizeVertical' | 'ResizeAll';
|
|
35
|
+
/**
|
|
36
|
+
* Selection icon names (text/cell selection)
|
|
37
|
+
*/
|
|
38
|
+
export type SelectionIconName = 'TextCursor' | 'TextSelect' | 'CellSelection' | 'ColumnSelect' | 'RowSelect' | 'RangeSelect' | 'Grab' | 'Grabbing' | 'Drag' | 'DragHandle' | 'Lasso' | 'MagicWand' | 'SelectAll' | 'Deselect' | 'InvertSelection';
|
|
39
|
+
/**
|
|
40
|
+
* Tool cursor icon names (drawing/editing tools)
|
|
41
|
+
*/
|
|
42
|
+
export type ToolIconName = 'ZoomIn' | 'ZoomOut' | 'Rotate' | 'Pan' | 'Draw' | 'Brush' | 'Eraser' | 'Eyedropper' | 'Bucket' | 'Pen' | 'Line' | 'Rectangle' | 'Ellipse' | 'Polygon' | 'Crop';
|
|
43
|
+
/**
|
|
44
|
+
* Status cursor icon names (system states)
|
|
45
|
+
*/
|
|
46
|
+
export type StatusIconName = 'Wait' | 'Progress' | 'Forbidden' | 'NotAllowed' | 'Help' | 'ContextMenu' | 'Alias' | 'Copy' | 'NoDrop' | 'Loading' | 'Busy' | 'Default' | 'Auto' | 'None' | 'Inherit';
|
|
47
|
+
/**
|
|
48
|
+
* All cursor icon names
|
|
49
|
+
*/
|
|
50
|
+
export type CursorIconName = PointerIconName | SelectionIconName | ToolIconName | StatusIconName;
|
|
51
|
+
/**
|
|
52
|
+
* Cursor icon component type
|
|
53
|
+
*/
|
|
54
|
+
export type CursorIcon = (props: CursorIconProps) => ReactElement;
|
|
55
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAC3B,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,QAAQ,GACR,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,KAAK,CAAC;IAC3E,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,uBAAuB;IACvB,SAAS,CAAC,EAAE,mBAAmB,CAAC;IAChC,yCAAyC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GACvB,SAAS,GACT,eAAe,GACf,WAAW,GACX,MAAM,GACN,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,UAAU,GACV,kBAAkB,GAClB,gBAAgB,GAChB,WAAW,CAAC;AAEhB;;GAEG;AACH,MAAM,MAAM,iBAAiB,GACzB,YAAY,GACZ,YAAY,GACZ,eAAe,GACf,cAAc,GACd,WAAW,GACX,aAAa,GACb,MAAM,GACN,UAAU,GACV,MAAM,GACN,YAAY,GACZ,OAAO,GACP,WAAW,GACX,WAAW,GACX,UAAU,GACV,iBAAiB,CAAC;AAEtB;;GAEG;AACH,MAAM,MAAM,YAAY,GACpB,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,KAAK,GACL,MAAM,GACN,OAAO,GACP,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,KAAK,GACL,MAAM,GACN,WAAW,GACX,SAAS,GACT,SAAS,GACT,MAAM,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,UAAU,GACV,WAAW,GACX,YAAY,GACZ,MAAM,GACN,aAAa,GACb,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,MAAM,GACN,SAAS,GACT,MAAM,GACN,MAAM,GACN,SAAS,CAAC;AAEd;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,eAAe,GAAG,iBAAiB,GAAG,YAAY,GAAG,cAAc,CAAC;AAEjG;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,KAAK,EAAE,eAAe,KAAK,YAAY,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nice2dev/icons-cursor",
|
|
3
|
+
"version": "1.0.10",
|
|
4
|
+
"description": "Cursor and pointer icons for NiceToDev UI - system cursors, tools, and selection indicators",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./pointers": {
|
|
15
|
+
"import": "./dist/pointers.mjs",
|
|
16
|
+
"require": "./dist/pointers.cjs",
|
|
17
|
+
"types": "./dist/pointers.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./selection": {
|
|
20
|
+
"import": "./dist/selection.mjs",
|
|
21
|
+
"require": "./dist/selection.cjs",
|
|
22
|
+
"types": "./dist/selection.d.ts"
|
|
23
|
+
},
|
|
24
|
+
"./tools": {
|
|
25
|
+
"import": "./dist/tools.mjs",
|
|
26
|
+
"require": "./dist/tools.cjs",
|
|
27
|
+
"types": "./dist/tools.d.ts"
|
|
28
|
+
},
|
|
29
|
+
"./status": {
|
|
30
|
+
"import": "./dist/status.mjs",
|
|
31
|
+
"require": "./dist/status.cjs",
|
|
32
|
+
"types": "./dist/status.d.ts"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist"
|
|
37
|
+
],
|
|
38
|
+
"sideEffects": false,
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsc -p tsconfig.build.json && vite build",
|
|
41
|
+
"test": "vitest run --passWithNoTests",
|
|
42
|
+
"test:watch": "vitest",
|
|
43
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
44
|
+
"typecheck": "tsc --noEmit"
|
|
45
|
+
},
|
|
46
|
+
"keywords": [
|
|
47
|
+
"icons",
|
|
48
|
+
"react",
|
|
49
|
+
"svg",
|
|
50
|
+
"cursor",
|
|
51
|
+
"pointer",
|
|
52
|
+
"nice2dev",
|
|
53
|
+
"omniwerk"
|
|
54
|
+
],
|
|
55
|
+
"author": "NiceToDev",
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"@testing-library/react": "^16.1.0",
|
|
62
|
+
"@types/react": "^19.1.2",
|
|
63
|
+
"@vitejs/plugin-react": "^4.7.0",
|
|
64
|
+
"jsdom": "^26.1.0",
|
|
65
|
+
"react": "^19.1.0",
|
|
66
|
+
"typescript": "^5.9.3",
|
|
67
|
+
"vite": "^6.4.1",
|
|
68
|
+
"vite-plugin-dts": "^4.4.0",
|
|
69
|
+
"vitest": "^2.1.9"
|
|
70
|
+
}
|
|
71
|
+
}
|