@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 CHANGED
@@ -1,7 +1,26 @@
1
1
  # @sb1/ffe-icons
2
2
 
3
- ## Deprecated package
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
- This package is deprecated, and will be removed from the designsystem repo.
5
+ ## Install
6
6
 
7
- To use the new set of icons, please refer to [ffe-symbols](https://github.com/SpareBank1/designsystem/tree/develop/packages/ffe-symbols) and/or [ffe-symbols-react](https://github.com/SpareBank1/designsystem/tree/develop/packages/ffe-symbols-react).
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
@@ -9,7 +9,7 @@ const {
9
9
  } = require('./deleteSvg');
10
10
 
11
11
  (async () => {
12
- const weights = [300, 500];
12
+ const weights = [300, 400, 500];
13
13
  const sizes = [
14
14
  { name: 'sm', opsz: 20 },
15
15
  { name: 'md', opsz: 24 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-icons",
3
- "version": "13.0.5",
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": "73d1ca2c6d689ecda874ee22ed4e8f94bad46dfb"
35
+ "gitHead": "1f39aa49233479133f6a5aaf9d3b59f02d48ed53"
36
36
  }