@sb1/ffe-icons 13.0.5 → 13.2.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/README.md +22 -3
- package/bin/build.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
# @sb1/ffe-icons
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package contains CSS-styling for the Icon-component in `@sb1/ffe-icons-react`-package, and SVG-files of all allowed variants of Material Symbols icons.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Install
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
```bash
|
|
8
|
+
npm install --save @sb1/ffe-icons
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Full documentation on icon usage is available at https://design.sparebank1.no/komponenter/ikoner/.
|
|
14
|
+
|
|
15
|
+
See also `@sb1/ffe-icons-react`.
|
|
16
|
+
|
|
17
|
+
## Updating available icons
|
|
18
|
+
|
|
19
|
+
Running `npm run build:icons` or the Github action: `update ffe-icons svgs` will run the `bin/build.js`-script.
|
|
20
|
+
|
|
21
|
+
The script will:
|
|
22
|
+
|
|
23
|
+
- Set available variants, like size, weight and fill/no fill
|
|
24
|
+
- Get the names of all icons available in Material Symbols
|
|
25
|
+
- Compare available names with existing SVG-files. If an icon has been deleted since last update, it'll delete all SVG-files of the removed icon.
|
|
26
|
+
- Download SVG-files for all missing variants/icons, and place it in the right folder.
|
package/bin/build.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-icons",
|
|
3
|
-
"version": "13.0
|
|
3
|
+
"version": "13.2.0",
|
|
4
4
|
"description": "Felles Front End Icons",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "SpareBank 1",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "1f39aa49233479133f6a5aaf9d3b59f02d48ed53"
|
|
36
36
|
}
|