@blueprintjs/icons 4.13.2 → 4.14.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/icons.json +7 -0
- package/lib/cjs/generated-icons/16px/blueprint-icons-16.d.ts +3 -2
- package/lib/cjs/generated-icons/16px/blueprint-icons-16.js +2 -0
- package/lib/cjs/generated-icons/16px/blueprint-icons-16.js.map +1 -1
- package/lib/cjs/generated-icons/16px/paths/axle.d.ts +2 -0
- package/lib/cjs/generated-icons/16px/paths/axle.js +4 -0
- package/lib/cjs/generated-icons/16px/paths/axle.js.map +1 -0
- package/lib/cjs/generated-icons/16px/paths/index.d.ts +1 -0
- package/lib/cjs/generated-icons/16px/paths/index.js +14 -12
- package/lib/cjs/generated-icons/16px/paths/index.js.map +1 -1
- package/lib/cjs/generated-icons/20px/blueprint-icons-20.d.ts +3 -2
- package/lib/cjs/generated-icons/20px/blueprint-icons-20.js +2 -0
- package/lib/cjs/generated-icons/20px/blueprint-icons-20.js.map +1 -1
- package/lib/cjs/generated-icons/20px/paths/axle.d.ts +2 -0
- package/lib/cjs/generated-icons/20px/paths/axle.js +4 -0
- package/lib/cjs/generated-icons/20px/paths/axle.js.map +1 -0
- package/lib/cjs/generated-icons/20px/paths/index.d.ts +1 -0
- package/lib/cjs/generated-icons/20px/paths/index.js +14 -12
- package/lib/cjs/generated-icons/20px/paths/index.js.map +1 -1
- package/lib/cjs/iconCodepoints.d.ts +1 -0
- package/lib/cjs/iconNames.d.ts +2 -0
- package/lib/css/blueprint-icons-16.eot +0 -0
- package/lib/css/blueprint-icons-16.ttf +0 -0
- package/lib/css/blueprint-icons-16.woff +0 -0
- package/lib/css/blueprint-icons-16.woff2 +0 -0
- package/lib/css/blueprint-icons-20.eot +0 -0
- package/lib/css/blueprint-icons-20.ttf +0 -0
- package/lib/css/blueprint-icons-20.woff +0 -0
- package/lib/css/blueprint-icons-20.woff2 +0 -0
- package/lib/css/blueprint-icons.css +2 -2
- package/lib/css/blueprint-icons.css.map +1 -1
- package/lib/esm/generated-icons/16px/blueprint-icons-16.d.ts +3 -2
- package/lib/esm/generated-icons/16px/blueprint-icons-16.js +2 -0
- package/lib/esm/generated-icons/16px/blueprint-icons-16.js.map +1 -1
- package/lib/esm/generated-icons/16px/paths/axle.d.ts +2 -0
- package/lib/esm/generated-icons/16px/paths/axle.js +2 -0
- package/lib/esm/generated-icons/16px/paths/axle.js.map +1 -0
- package/lib/esm/generated-icons/16px/paths/index.d.ts +1 -0
- package/lib/esm/generated-icons/16px/paths/index.js +1 -0
- package/lib/esm/generated-icons/16px/paths/index.js.map +1 -1
- package/lib/esm/generated-icons/20px/blueprint-icons-20.d.ts +3 -2
- package/lib/esm/generated-icons/20px/blueprint-icons-20.js +2 -0
- package/lib/esm/generated-icons/20px/blueprint-icons-20.js.map +1 -1
- package/lib/esm/generated-icons/20px/paths/axle.d.ts +2 -0
- package/lib/esm/generated-icons/20px/paths/axle.js +2 -0
- package/lib/esm/generated-icons/20px/paths/axle.js.map +1 -0
- package/lib/esm/generated-icons/20px/paths/index.d.ts +1 -0
- package/lib/esm/generated-icons/20px/paths/index.js +1 -0
- package/lib/esm/generated-icons/20px/paths/index.js.map +1 -1
- package/lib/esm/iconCodepoints.d.ts +1 -0
- package/lib/esm/iconNames.d.ts +2 -0
- package/lib/esnext/generated-icons/16px/blueprint-icons-16.d.ts +3 -2
- package/lib/esnext/generated-icons/16px/blueprint-icons-16.js +2 -0
- package/lib/esnext/generated-icons/16px/blueprint-icons-16.js.map +1 -1
- package/lib/esnext/generated-icons/16px/paths/axle.d.ts +2 -0
- package/lib/esnext/generated-icons/16px/paths/axle.js +2 -0
- package/lib/esnext/generated-icons/16px/paths/axle.js.map +1 -0
- package/lib/esnext/generated-icons/16px/paths/index.d.ts +1 -0
- package/lib/esnext/generated-icons/16px/paths/index.js +1 -0
- package/lib/esnext/generated-icons/16px/paths/index.js.map +1 -1
- package/lib/esnext/generated-icons/20px/blueprint-icons-20.d.ts +3 -2
- package/lib/esnext/generated-icons/20px/blueprint-icons-20.js +2 -0
- package/lib/esnext/generated-icons/20px/blueprint-icons-20.js.map +1 -1
- package/lib/esnext/generated-icons/20px/paths/axle.d.ts +2 -0
- package/lib/esnext/generated-icons/20px/paths/axle.js +2 -0
- package/lib/esnext/generated-icons/20px/paths/axle.js.map +1 -0
- package/lib/esnext/generated-icons/20px/paths/index.d.ts +1 -0
- package/lib/esnext/generated-icons/20px/paths/index.js +1 -0
- package/lib/esnext/generated-icons/20px/paths/index.js.map +1 -1
- package/lib/esnext/iconCodepoints.d.ts +1 -0
- package/lib/esnext/iconNames.d.ts +2 -0
- package/lib/scss/blueprint-icons-16.scss +1 -0
- package/package.json +4 -5
- package/scripts/common.mjs +4 -4
- package/scripts/generate-icon-paths.mjs +3 -7
- package/src/generated-icons/16px/_icon-variables.scss +1 -0
- package/src/generated-icons/16px/blueprint-icons-16.css +4 -4
- package/src/generated-icons/16px/blueprint-icons-16.eot +0 -0
- package/src/generated-icons/16px/blueprint-icons-16.ts +4 -0
- package/src/generated-icons/16px/blueprint-icons-16.ttf +0 -0
- package/src/generated-icons/16px/blueprint-icons-16.woff +0 -0
- package/src/generated-icons/16px/blueprint-icons-16.woff2 +0 -0
- package/src/generated-icons/16px/paths/axle.ts +1 -0
- package/src/generated-icons/16px/paths/index.ts +1 -0
- package/src/generated-icons/20px/blueprint-icons-20.css +4 -4
- package/src/generated-icons/20px/blueprint-icons-20.eot +0 -0
- package/src/generated-icons/20px/blueprint-icons-20.ts +4 -0
- package/src/generated-icons/20px/blueprint-icons-20.ttf +0 -0
- package/src/generated-icons/20px/blueprint-icons-20.woff +0 -0
- package/src/generated-icons/20px/blueprint-icons-20.woff2 +0 -0
- package/src/generated-icons/20px/paths/axle.ts +1 -0
- package/src/generated-icons/20px/paths/index.ts +1 -0
|
@@ -24,14 +24,10 @@
|
|
|
24
24
|
import { pascalCase } from "change-case";
|
|
25
25
|
import { readFileSync } from "node:fs";
|
|
26
26
|
import { join } from "node:path";
|
|
27
|
-
// Note: we had issues with this approach using svgo v2.x, so for now we stick with v1.x
|
|
28
|
-
// With v2.x, some shapes within the icon SVGs would not get converted to paths correctly,
|
|
29
|
-
// resulting in invalid d="..." attributes rendered by the <Icon> component.
|
|
30
|
-
import SVGO from "svgo";
|
|
31
27
|
|
|
32
|
-
import {
|
|
28
|
+
import { svgOptimizer } from "@blueprintjs/node-build-scripts";
|
|
33
29
|
|
|
34
|
-
|
|
30
|
+
import { iconResourcesDir, iconsMetadata, writeLinesToFile } from "./common.mjs";
|
|
35
31
|
|
|
36
32
|
const ICON_NAMES = iconsMetadata.map(icon => icon.iconName);
|
|
37
33
|
|
|
@@ -71,7 +67,7 @@ async function getIconPaths(iconSize) {
|
|
|
71
67
|
for (const iconName of ICON_NAMES) {
|
|
72
68
|
const filepath = join(iconResourcesDir, `${iconSize}px/${iconName}.svg`);
|
|
73
69
|
const svg = readFileSync(filepath, "utf-8");
|
|
74
|
-
const optimizedSvg = await
|
|
70
|
+
const optimizedSvg = await svgOptimizer.optimize(svg, { path: filepath });
|
|
75
71
|
const pathStrings = (optimizedSvg.data.match(/ d="[^"]+"/g) || [])
|
|
76
72
|
// strip off leading 'd="'
|
|
77
73
|
.map(s => s.slice(3))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "blueprint-icons-16";
|
|
3
|
-
src: url("./blueprint-icons-16.ttf?
|
|
4
|
-
url("./blueprint-icons-16.eot?
|
|
5
|
-
url("./blueprint-icons-16.woff2?
|
|
6
|
-
url("./blueprint-icons-16.woff?
|
|
3
|
+
src: url("./blueprint-icons-16.ttf?0c7462c47bcd60a8d9e9dc959711c752") format("truetype"),
|
|
4
|
+
url("./blueprint-icons-16.eot?0c7462c47bcd60a8d9e9dc959711c752#iefix") format("embedded-opentype"),
|
|
5
|
+
url("./blueprint-icons-16.woff2?0c7462c47bcd60a8d9e9dc959711c752") format("woff2"),
|
|
6
|
+
url("./blueprint-icons-16.woff?0c7462c47bcd60a8d9e9dc959711c752") format("woff");
|
|
7
7
|
}
|
|
Binary file
|
|
@@ -48,6 +48,7 @@ export type BlueprintIcons_16Id =
|
|
|
48
48
|
| "asterisk"
|
|
49
49
|
| "at"
|
|
50
50
|
| "automatic-updates"
|
|
51
|
+
| "axle"
|
|
51
52
|
| "backlink"
|
|
52
53
|
| "badge"
|
|
53
54
|
| "ban-circle"
|
|
@@ -617,6 +618,7 @@ export type BlueprintIcons_16Key =
|
|
|
617
618
|
| "Asterisk"
|
|
618
619
|
| "At"
|
|
619
620
|
| "AutomaticUpdates"
|
|
621
|
+
| "Axle"
|
|
620
622
|
| "Backlink"
|
|
621
623
|
| "Badge"
|
|
622
624
|
| "BanCircle"
|
|
@@ -1186,6 +1188,7 @@ export enum BlueprintIcons_16 {
|
|
|
1186
1188
|
Asterisk = "asterisk",
|
|
1187
1189
|
At = "at",
|
|
1188
1190
|
AutomaticUpdates = "automatic-updates",
|
|
1191
|
+
Axle = "axle",
|
|
1189
1192
|
Backlink = "backlink",
|
|
1190
1193
|
Badge = "badge",
|
|
1191
1194
|
BanCircle = "ban-circle",
|
|
@@ -1756,6 +1759,7 @@ export const BLUEPRINT_ICONS_16_CODEPOINTS: { [key in BlueprintIcons_16]: string
|
|
|
1756
1759
|
[BlueprintIcons_16.Asterisk]: "61740",
|
|
1757
1760
|
[BlueprintIcons_16.At]: "62257",
|
|
1758
1761
|
[BlueprintIcons_16.AutomaticUpdates]: "61741",
|
|
1762
|
+
[BlueprintIcons_16.Axle]: "62264",
|
|
1759
1763
|
[BlueprintIcons_16.Backlink]: "61742",
|
|
1760
1764
|
[BlueprintIcons_16.Badge]: "61743",
|
|
1761
1765
|
[BlueprintIcons_16.BanCircle]: "61744",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default ["M1 13h1v.5a.5.5 0 001 0v-11a.5.5 0 00-1 0V3H1v10zM15 3h-1v-.5a.5.5 0 00-1 0v11a.5.5 0 001 0V13h1V3zM3 6l1.789.894A1 1 0 005.236 7h5.528a1 1 0 00.447-.106L13 6v4l-1.789-.894A1 1 0 0010.764 9H5.236a1 1 0 00-.447.106L3 10V6z", "M0 8a1 1 0 011-1h1v2H1a1 1 0 01-1-1zM16 8a1 1 0 01-1 1h-1V7h1a1 1 0 011 1z"];
|
|
@@ -47,6 +47,7 @@ export { default as ArrowsVertical } from "./arrows-vertical";
|
|
|
47
47
|
export { default as Asterisk } from "./asterisk";
|
|
48
48
|
export { default as At } from "./at";
|
|
49
49
|
export { default as AutomaticUpdates } from "./automatic-updates";
|
|
50
|
+
export { default as Axle } from "./axle";
|
|
50
51
|
export { default as Backlink } from "./backlink";
|
|
51
52
|
export { default as Badge } from "./badge";
|
|
52
53
|
export { default as BanCircle } from "./ban-circle";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "blueprint-icons-20";
|
|
3
|
-
src: url("./blueprint-icons-20.ttf?
|
|
4
|
-
url("./blueprint-icons-20.eot?
|
|
5
|
-
url("./blueprint-icons-20.woff2?
|
|
6
|
-
url("./blueprint-icons-20.woff?
|
|
3
|
+
src: url("./blueprint-icons-20.ttf?b4378b0892d4caac52c10b43a6714b78") format("truetype"),
|
|
4
|
+
url("./blueprint-icons-20.eot?b4378b0892d4caac52c10b43a6714b78#iefix") format("embedded-opentype"),
|
|
5
|
+
url("./blueprint-icons-20.woff2?b4378b0892d4caac52c10b43a6714b78") format("woff2"),
|
|
6
|
+
url("./blueprint-icons-20.woff?b4378b0892d4caac52c10b43a6714b78") format("woff");
|
|
7
7
|
}
|
|
Binary file
|
|
@@ -48,6 +48,7 @@ export type BlueprintIcons_20Id =
|
|
|
48
48
|
| "asterisk"
|
|
49
49
|
| "at"
|
|
50
50
|
| "automatic-updates"
|
|
51
|
+
| "axle"
|
|
51
52
|
| "backlink"
|
|
52
53
|
| "badge"
|
|
53
54
|
| "ban-circle"
|
|
@@ -617,6 +618,7 @@ export type BlueprintIcons_20Key =
|
|
|
617
618
|
| "Asterisk"
|
|
618
619
|
| "At"
|
|
619
620
|
| "AutomaticUpdates"
|
|
621
|
+
| "Axle"
|
|
620
622
|
| "Backlink"
|
|
621
623
|
| "Badge"
|
|
622
624
|
| "BanCircle"
|
|
@@ -1186,6 +1188,7 @@ export enum BlueprintIcons_20 {
|
|
|
1186
1188
|
Asterisk = "asterisk",
|
|
1187
1189
|
At = "at",
|
|
1188
1190
|
AutomaticUpdates = "automatic-updates",
|
|
1191
|
+
Axle = "axle",
|
|
1189
1192
|
Backlink = "backlink",
|
|
1190
1193
|
Badge = "badge",
|
|
1191
1194
|
BanCircle = "ban-circle",
|
|
@@ -1756,6 +1759,7 @@ export const BLUEPRINT_ICONS_20_CODEPOINTS: { [key in BlueprintIcons_20]: string
|
|
|
1756
1759
|
[BlueprintIcons_20.Asterisk]: "61740",
|
|
1757
1760
|
[BlueprintIcons_20.At]: "62257",
|
|
1758
1761
|
[BlueprintIcons_20.AutomaticUpdates]: "61741",
|
|
1762
|
+
[BlueprintIcons_20.Axle]: "62264",
|
|
1759
1763
|
[BlueprintIcons_20.Backlink]: "61742",
|
|
1760
1764
|
[BlueprintIcons_20.Badge]: "61743",
|
|
1761
1765
|
[BlueprintIcons_20.BanCircle]: "61744",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default ["M2 15h2v.5a.5.5 0 001 0v-11a.5.5 0 00-1 0V5H2v10zM18 5h-2v-.5a.5.5 0 00-1 0v11a.5.5 0 001 0V15h2V5zM5 8l1.789.894A1 1 0 007.236 9h5.528a1 1 0 00.447-.106L15 8v4l-1.789-.894a.999.999 0 00-.447-.106H7.236a1 1 0 00-.447.106L5 12V8zM0 9h2v2H0V9z", "M0 8h1v4H0V8zM19 8h1v4h-1V8z", "M20 11h-2V9h2v2zM8 9a1 1 0 011-1h2a1 1 0 011 1v2a1 1 0 01-1 1H9a1 1 0 01-1-1V9z"];
|
|
@@ -47,6 +47,7 @@ export { default as ArrowsVertical } from "./arrows-vertical";
|
|
|
47
47
|
export { default as Asterisk } from "./asterisk";
|
|
48
48
|
export { default as At } from "./at";
|
|
49
49
|
export { default as AutomaticUpdates } from "./automatic-updates";
|
|
50
|
+
export { default as Axle } from "./axle";
|
|
50
51
|
export { default as Backlink } from "./backlink";
|
|
51
52
|
export { default as Badge } from "./badge";
|
|
52
53
|
export { default as BanCircle } from "./ban-circle";
|