@instructure/ui-icons 8.37.1-snapshot-2 → 8.37.1-snapshot-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +53 -2
- package/es/font/Line/InstructureIcons-Line.eot +0 -0
- package/es/font/Line/InstructureIcons-Line.ttf +0 -0
- package/es/font/Line/InstructureIcons-Line.woff +0 -0
- package/es/font/Line/InstructureIcons-Line.woff2 +0 -0
- package/es/font/Solid/InstructureIcons-Solid.eot +0 -0
- package/es/font/Solid/InstructureIcons-Solid.ttf +0 -0
- package/es/font/Solid/InstructureIcons-Solid.woff +0 -0
- package/es/font/Solid/InstructureIcons-Solid.woff2 +0 -0
- package/lib/font/Line/InstructureIcons-Line.eot +0 -0
- package/lib/font/Line/InstructureIcons-Line.ttf +0 -0
- package/lib/font/Line/InstructureIcons-Line.woff +0 -0
- package/lib/font/Line/InstructureIcons-Line.woff2 +0 -0
- package/lib/font/Solid/InstructureIcons-Solid.eot +0 -0
- package/lib/font/Solid/InstructureIcons-Solid.ttf +0 -0
- package/lib/font/Solid/InstructureIcons-Solid.woff +0 -0
- package/lib/font/Solid/InstructureIcons-Solid.woff2 +0 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [8.37.1-snapshot-
|
|
6
|
+
## [8.37.1-snapshot-3](https://github.com/instructure/instructure-ui/compare/v8.37.0...v8.37.1-snapshot-3) (2023-05-08)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-icons
|
|
9
9
|
|
package/README.md
CHANGED
|
@@ -33,13 +33,64 @@ const MyComponent = () => {
|
|
|
33
33
|
|
|
34
34
|
- Copy the new icon files in the `/svg/Solid` and `/svg/Line` directories.
|
|
35
35
|
|
|
36
|
-
-
|
|
36
|
+
- Double-check that the SVG size is 1920x1920.
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<svg
|
|
40
|
+
width="1920"
|
|
41
|
+
height="1920"
|
|
42
|
+
viewBox="0 0 1920 1920"
|
|
43
|
+
fill="none"
|
|
44
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
45
|
+
>
|
|
46
|
+
{...}
|
|
47
|
+
</svg>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- The files cannot contain [clipping paths](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/clipPath)! Sadly, when the Designers export icons from Figma, most of the time they have a clipping path around the whole canvas. If the source code has them, manually refactor the code, e.g:
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
// Before:
|
|
54
|
+
<svg
|
|
55
|
+
width="1920"
|
|
56
|
+
height="1920"
|
|
57
|
+
viewBox="0 0 1920 1920"
|
|
58
|
+
fill="none"
|
|
59
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
60
|
+
>
|
|
61
|
+
<g clip-path="url(#clip0_1007_24)">
|
|
62
|
+
<path d="..." fill="#2D3B45" />
|
|
63
|
+
</g>
|
|
64
|
+
<defs>
|
|
65
|
+
<clipPath id="clip0_1007_24">
|
|
66
|
+
<rect width="1920" height="1920" fill="white" />
|
|
67
|
+
</clipPath>
|
|
68
|
+
</defs>
|
|
69
|
+
</svg>
|
|
70
|
+
|
|
71
|
+
// After:
|
|
72
|
+
<svg
|
|
73
|
+
width="1920"
|
|
74
|
+
height="1920"
|
|
75
|
+
viewBox="0 0 1920 1920"
|
|
76
|
+
fill="none"
|
|
77
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
78
|
+
>
|
|
79
|
+
<path d="..." fill="#2D3B45" />
|
|
80
|
+
</svg>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- If the icon has to bidirectional (being mirrored in RTL mode, typically arrow icons), add the icon name to the bidirectional list in `packages/ui-icons/icons.config.js`. Deprecated icons are handled here as well.
|
|
84
|
+
|
|
85
|
+
- Run `yarn export:icons` from the repository root directory to generate the icons. This script will also take care of further optimizations on the SVG files (e.g. removing the `fill`s). The configs for this are located in `packages/ui-icons-build/lib/tasks/optimize-svgs/index.js` and `packages/ui-icons/svgo.config.js`.
|
|
37
86
|
|
|
38
87
|
- Run `yarn && yarn bootstrap`.
|
|
39
88
|
|
|
40
89
|
- Finally, run `yarn dev` from the repository root directory to start the local server and check the generated output.
|
|
41
90
|
|
|
42
|
-
- Verify icons display correctly by checking under
|
|
91
|
+
- Verify icons display correctly by checking under [iconography](/#iconography) in the main nav. Check all 3 versions (React, SVG and icon font).
|
|
92
|
+
|
|
93
|
+
(Note: The fonts are sometimes not rendered correctly, but we decided not to fix them, because they are not really used anywhere, and we might stop supporting icon fonts in the future in general.)
|
|
43
94
|
|
|
44
95
|
### Guidelines for Drawing Icons
|
|
45
96
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-icons",
|
|
3
|
-
"version": "8.37.1-snapshot-
|
|
3
|
+
"version": "8.37.1-snapshot-3",
|
|
4
4
|
"description": "Icon set for Instructure, Inc. products",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@instructure/ui-babel-preset": "8.37.1-snapshot-
|
|
26
|
-
"@instructure/ui-icons-build": "8.37.1-snapshot-
|
|
25
|
+
"@instructure/ui-babel-preset": "8.37.1-snapshot-3",
|
|
26
|
+
"@instructure/ui-icons-build": "8.37.1-snapshot-3",
|
|
27
27
|
"gulp": "^4.0.2"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@babel/runtime": "^7.21.0",
|
|
31
|
-
"@instructure/ui-svg-images": "8.37.1-snapshot-
|
|
31
|
+
"@instructure/ui-svg-images": "8.37.1-snapshot-3",
|
|
32
32
|
"prop-types": "^15.8.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|