@univerjs/icons 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/cursors-icon.cjs +37 -0
- package/dist/cjs/export-icon.cjs +2 -2
- package/dist/cjs/grip-horizontal-icon.cjs +84 -0
- package/dist/cjs/import-icon.cjs +41 -0
- package/dist/cjs/index.cjs +56 -7
- package/dist/cjs/mermaid-diagram-icon.cjs +88 -0
- package/dist/cjs/paint-icon.cjs +76 -0
- package/dist/cjs/precise-selection-icon.cjs +41 -0
- package/dist/cjs/show-dimensions-icon.cjs +111 -0
- package/dist/cjs/show-toolbar-icon.cjs +43 -0
- package/dist/esm/cursors-icon.d.ts +3 -0
- package/dist/esm/cursors-icon.js +32 -0
- package/dist/esm/export-icon.js +2 -2
- package/dist/esm/grip-horizontal-icon.d.ts +3 -0
- package/dist/esm/grip-horizontal-icon.js +79 -0
- package/dist/esm/import-icon.d.ts +3 -0
- package/dist/esm/import-icon.js +36 -0
- package/dist/esm/index.d.ts +8 -1
- package/dist/esm/index.js +9 -2
- package/dist/esm/mermaid-diagram-icon.d.ts +3 -0
- package/dist/esm/mermaid-diagram-icon.js +83 -0
- package/dist/esm/paint-icon.d.ts +3 -0
- package/dist/esm/paint-icon.js +71 -0
- package/dist/esm/precise-selection-icon.d.ts +3 -0
- package/dist/esm/precise-selection-icon.js +36 -0
- package/dist/esm/show-dimensions-icon.d.ts +3 -0
- package/dist/esm/show-dimensions-icon.js +106 -0
- package/dist/esm/show-toolbar-icon.d.ts +3 -0
- package/dist/esm/show-toolbar-icon.js +38 -0
- package/package.json +6 -6
- package/dist/cjs/more-icon.cjs +0 -37
- package/dist/esm/more-icon.d.ts +0 -3
- package/dist/esm/more-icon.js +0 -32
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { createElement, forwardRef } from "react";
|
|
2
|
+
import { IconBase } from "./base.js";
|
|
3
|
+
//#region ts/show-dimensions-icon.tsx
|
|
4
|
+
const element = {
|
|
5
|
+
"tag": "svg",
|
|
6
|
+
"attrs": {
|
|
7
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
8
|
+
"fill": "none",
|
|
9
|
+
"viewBox": "0 0 16 16",
|
|
10
|
+
"width": "1em",
|
|
11
|
+
"height": "1em"
|
|
12
|
+
},
|
|
13
|
+
"children": [
|
|
14
|
+
{
|
|
15
|
+
"tag": "path",
|
|
16
|
+
"attrs": {
|
|
17
|
+
"stroke": "currentColor",
|
|
18
|
+
"d": "M4.45 3.25H10.9",
|
|
19
|
+
"strokeLinecap": "round",
|
|
20
|
+
"strokeWidth": 1.3
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"tag": "path",
|
|
25
|
+
"attrs": {
|
|
26
|
+
"stroke": "currentColor",
|
|
27
|
+
"d": "M3.25 4.45V8.95",
|
|
28
|
+
"strokeLinecap": "round",
|
|
29
|
+
"strokeWidth": 1.3
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"tag": "path",
|
|
34
|
+
"attrs": {
|
|
35
|
+
"stroke": "currentColor",
|
|
36
|
+
"d": "M12.1 4.45V6.7",
|
|
37
|
+
"strokeLinecap": "round",
|
|
38
|
+
"strokeWidth": 1.3
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"tag": "path",
|
|
43
|
+
"attrs": {
|
|
44
|
+
"stroke": "currentColor",
|
|
45
|
+
"d": "M4.45 10H7.75",
|
|
46
|
+
"strokeLinecap": "round",
|
|
47
|
+
"strokeWidth": 1.3
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"tag": "rect",
|
|
52
|
+
"attrs": {
|
|
53
|
+
"width": 2.2,
|
|
54
|
+
"height": 2.2,
|
|
55
|
+
"x": 2.15,
|
|
56
|
+
"y": 2.15,
|
|
57
|
+
"stroke": "currentColor",
|
|
58
|
+
"rx": .18,
|
|
59
|
+
"strokeWidth": 1.2
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"tag": "rect",
|
|
64
|
+
"attrs": {
|
|
65
|
+
"width": 2.2,
|
|
66
|
+
"height": 2.2,
|
|
67
|
+
"x": 11,
|
|
68
|
+
"y": 2.15,
|
|
69
|
+
"stroke": "currentColor",
|
|
70
|
+
"rx": .18,
|
|
71
|
+
"strokeWidth": 1.2
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"tag": "rect",
|
|
76
|
+
"attrs": {
|
|
77
|
+
"width": 2.2,
|
|
78
|
+
"height": 2.2,
|
|
79
|
+
"x": 2.15,
|
|
80
|
+
"y": 8.9,
|
|
81
|
+
"stroke": "currentColor",
|
|
82
|
+
"rx": .18,
|
|
83
|
+
"strokeWidth": 1.2
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"tag": "path",
|
|
88
|
+
"attrs": {
|
|
89
|
+
"fill": "currentColor",
|
|
90
|
+
"d": "M12.55 8.2L12.92 9.1C13.13 9.16 13.33 9.24 13.51 9.36L14.42 8.99L14.97 9.94L14.19 10.53C14.21 10.65 14.22 10.78 14.22 10.9C14.22 11.02 14.21 11.15 14.19 11.27L14.97 11.86L14.42 12.81L13.51 12.44C13.33 12.56 13.13 12.64 12.92 12.7L12.55 13.6H11.45L11.08 12.7C10.87 12.64 10.67 12.56 10.49 12.44L9.58 12.81L9.03 11.86L9.81 11.27C9.79 11.15 9.78 11.02 9.78 10.9C9.78 10.78 9.79 10.65 9.81 10.53L9.03 9.94L9.58 8.99L10.49 9.36C10.67 9.24 10.87 9.16 11.08 9.1L11.45 8.2H12.55ZM12 11.7C12.4418 11.7 12.8 11.3418 12.8 10.9C12.8 10.4582 12.4418 10.1 12 10.1C11.5582 10.1 11.2 10.4582 11.2 10.9C11.2 11.3418 11.5582 11.7 12 11.7Z",
|
|
91
|
+
"fillRule": "evenodd",
|
|
92
|
+
"clipRule": "evenodd"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
};
|
|
97
|
+
const ShowDimensionsIcon = forwardRef(function ShowDimensionsIcon(props, ref) {
|
|
98
|
+
return createElement(IconBase, Object.assign({}, props, {
|
|
99
|
+
id: "show-dimensions-icon",
|
|
100
|
+
ref,
|
|
101
|
+
icon: element
|
|
102
|
+
}));
|
|
103
|
+
});
|
|
104
|
+
ShowDimensionsIcon.displayName = "ShowDimensionsIcon";
|
|
105
|
+
//#endregion
|
|
106
|
+
export { ShowDimensionsIcon, ShowDimensionsIcon as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createElement, forwardRef } from "react";
|
|
2
|
+
import { IconBase } from "./base.js";
|
|
3
|
+
//#region ts/show-toolbar-icon.tsx
|
|
4
|
+
const element = {
|
|
5
|
+
"tag": "svg",
|
|
6
|
+
"attrs": {
|
|
7
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
8
|
+
"fill": "none",
|
|
9
|
+
"viewBox": "0 0 16 16",
|
|
10
|
+
"width": "1em",
|
|
11
|
+
"height": "1em"
|
|
12
|
+
},
|
|
13
|
+
"children": [{
|
|
14
|
+
"tag": "path",
|
|
15
|
+
"attrs": {
|
|
16
|
+
"fill": "currentColor",
|
|
17
|
+
"d": "M2.5 3C1.94772 3 1.5 3.44772 1.5 4V12C1.5 12.5523 1.94772 13 2.5 13H13.5C14.0523 13 14.5 12.5523 14.5 12V4C14.5 3.44772 14.0523 3 13.5 3H2.5ZM2.8 4.3V11.7H13.2V4.3H2.8Z",
|
|
18
|
+
"fillRule": "evenodd",
|
|
19
|
+
"clipRule": "evenodd"
|
|
20
|
+
}
|
|
21
|
+
}, {
|
|
22
|
+
"tag": "path",
|
|
23
|
+
"attrs": {
|
|
24
|
+
"fill": "currentColor",
|
|
25
|
+
"d": "M9.6 5.8C9.6 5.46863 9.86863 5.2 10.2 5.2H11.7C12.0314 5.2 12.3 5.46863 12.3 5.8C12.3 6.13137 12.0314 6.4 11.7 6.4H10.2C9.86863 6.4 9.6 6.13137 9.6 5.8Z"
|
|
26
|
+
}
|
|
27
|
+
}]
|
|
28
|
+
};
|
|
29
|
+
const ShowToolbarIcon = forwardRef(function ShowToolbarIcon(props, ref) {
|
|
30
|
+
return createElement(IconBase, Object.assign({}, props, {
|
|
31
|
+
id: "show-toolbar-icon",
|
|
32
|
+
ref,
|
|
33
|
+
icon: element
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
ShowToolbarIcon.displayName = "ShowToolbarIcon";
|
|
37
|
+
//#endregion
|
|
38
|
+
export { ShowToolbarIcon, ShowToolbarIcon as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/icons",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"description": "React icons for Univer.",
|
|
5
5
|
"author": "DreamNum Co., Ltd. <developer@univer.ai>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"imports": {
|
|
25
|
-
"#build/*": "./scripts/build/*.
|
|
25
|
+
"#build/*": "./scripts/build/*.mts"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"react-dom": "*"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/node": "^
|
|
43
|
+
"@types/node": "^26.0.0",
|
|
44
44
|
"@types/svg-parser": "^2.0.6",
|
|
45
|
-
"rolldown": "1.1.
|
|
45
|
+
"rolldown": "1.1.2",
|
|
46
46
|
"svg-parser": "^2.0.4",
|
|
47
47
|
"svgo": "^4.0.1",
|
|
48
48
|
"typescript": "^6.0.3",
|
|
49
|
-
"@univerjs/icons-svg": "1.
|
|
49
|
+
"@univerjs/icons-svg": "1.13.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
|
-
"build": "node --experimental-strip-types ./scripts/build/index.
|
|
52
|
+
"build": "node --experimental-strip-types ./scripts/build/index.mts && tsc"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/dist/cjs/more-icon.cjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
Object.defineProperties(exports, {
|
|
2
|
-
__esModule: { value: true },
|
|
3
|
-
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
-
});
|
|
5
|
-
let react = require("react");
|
|
6
|
-
let ts_base_js = require("./base.js");
|
|
7
|
-
//#region ts/more-icon.tsx
|
|
8
|
-
const element = {
|
|
9
|
-
"tag": "svg",
|
|
10
|
-
"attrs": {
|
|
11
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
12
|
-
"fill": "none",
|
|
13
|
-
"viewBox": "0 0 16 16",
|
|
14
|
-
"width": "1em",
|
|
15
|
-
"height": "1em"
|
|
16
|
-
},
|
|
17
|
-
"children": [{
|
|
18
|
-
"tag": "path",
|
|
19
|
-
"attrs": {
|
|
20
|
-
"fill": "currentColor",
|
|
21
|
-
"d": "M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z",
|
|
22
|
-
"fillRule": "evenodd",
|
|
23
|
-
"clipRule": "evenodd"
|
|
24
|
-
}
|
|
25
|
-
}]
|
|
26
|
-
};
|
|
27
|
-
const MoreIcon = (0, react.forwardRef)(function MoreIcon(props, ref) {
|
|
28
|
-
return (0, react.createElement)(ts_base_js.IconBase, Object.assign({}, props, {
|
|
29
|
-
id: "more-icon",
|
|
30
|
-
ref,
|
|
31
|
-
icon: element
|
|
32
|
-
}));
|
|
33
|
-
});
|
|
34
|
-
MoreIcon.displayName = "MoreIcon";
|
|
35
|
-
//#endregion
|
|
36
|
-
exports.MoreIcon = MoreIcon;
|
|
37
|
-
exports.default = MoreIcon;
|
package/dist/esm/more-icon.d.ts
DELETED
package/dist/esm/more-icon.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createElement, forwardRef } from "react";
|
|
2
|
-
import { IconBase } from "./base.js";
|
|
3
|
-
//#region ts/more-icon.tsx
|
|
4
|
-
const element = {
|
|
5
|
-
"tag": "svg",
|
|
6
|
-
"attrs": {
|
|
7
|
-
"xmlns": "http://www.w3.org/2000/svg",
|
|
8
|
-
"fill": "none",
|
|
9
|
-
"viewBox": "0 0 16 16",
|
|
10
|
-
"width": "1em",
|
|
11
|
-
"height": "1em"
|
|
12
|
-
},
|
|
13
|
-
"children": [{
|
|
14
|
-
"tag": "path",
|
|
15
|
-
"attrs": {
|
|
16
|
-
"fill": "currentColor",
|
|
17
|
-
"d": "M5.90913 3.57564C6.14345 3.34132 6.52335 3.34132 6.75766 3.57564L10.7577 7.57564C10.992 7.80995 10.992 8.18985 10.7577 8.42417L6.75766 12.4242C6.52335 12.6585 6.14345 12.6585 5.90913 12.4242C5.67482 12.1899 5.67482 11.81 5.90913 11.5756L9.48487 7.9999L5.90913 4.42417C5.67482 4.18985 5.67482 3.80995 5.90913 3.57564Z",
|
|
18
|
-
"fillRule": "evenodd",
|
|
19
|
-
"clipRule": "evenodd"
|
|
20
|
-
}
|
|
21
|
-
}]
|
|
22
|
-
};
|
|
23
|
-
const MoreIcon = forwardRef(function MoreIcon(props, ref) {
|
|
24
|
-
return createElement(IconBase, Object.assign({}, props, {
|
|
25
|
-
id: "more-icon",
|
|
26
|
-
ref,
|
|
27
|
-
icon: element
|
|
28
|
-
}));
|
|
29
|
-
});
|
|
30
|
-
MoreIcon.displayName = "MoreIcon";
|
|
31
|
-
//#endregion
|
|
32
|
-
export { MoreIcon, MoreIcon as default };
|