@sb1/ffe-symbols-react 100.8.3 → 100.10.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +88 -3
  3. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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
+ # [100.10.0](https://github.com/SpareBank1/designsystem/compare/v100.9.0...v100.10.0) (2026-02-12)
7
+
8
+ **Note:** Version bump only for package @sb1/ffe-symbols-react
9
+
10
+
11
+
12
+
13
+
14
+ # [100.9.0](https://github.com/SpareBank1/designsystem/compare/v100.8.3...v100.9.0) (2026-02-11)
15
+
16
+ **Note:** Version bump only for package @sb1/ffe-symbols-react
17
+
18
+
19
+
20
+
21
+
6
22
  ## [100.8.3](https://github.com/SpareBank1/designsystem/compare/v100.8.2...v100.8.3) (2026-01-27)
7
23
 
8
24
  **Note:** Version bump only for package @sb1/ffe-symbols-react
package/README.md CHANGED
@@ -1,7 +1,92 @@
1
1
  # @sb1/ffe-symbols-react
2
2
 
3
- ## Deprecated package
3
+ ## Foreldet pakke
4
4
 
5
- This package is deprecated, and will be removed from the designsystem repo.
5
+ Denne pakken er foreldet. Bruk [ffe-icons-react](https://github.com/SpareBank1/designsystem/tree/develop/packages/ffe-icons-react) i stedet.
6
6
 
7
- To use the new set of icons, please refer to [ffe-icons](https://github.com/SpareBank1/designsystem/tree/develop/packages/ffe-icons) and/or [ffe-icons-react](https://github.com/SpareBank1/designsystem/tree/develop/packages/ffe-icons-react).
7
+ ---
8
+
9
+ ## Oversikt
10
+
11
+ React-komponent for Material Symbols-ikoner (fontbasert).
12
+
13
+ ## Installasjon
14
+
15
+ ```bash
16
+ npm install @sb1/ffe-symbols-react
17
+ ```
18
+
19
+ ## Avhengigheter
20
+
21
+ ```css
22
+ @import '@sb1/ffe-symbols/ffe-symbol.css';
23
+ ```
24
+
25
+ ## Grunnleggende bruk
26
+
27
+ ```tsx
28
+ import { Symbol } from '@sb1/ffe-symbols-react';
29
+
30
+ <Symbol icon="home" />
31
+
32
+ <Symbol
33
+ icon="account_balance"
34
+ size="lg"
35
+ weight={500}
36
+ fill={true}
37
+ ariaLabel="Konto"
38
+ />
39
+ ```
40
+
41
+ ## Eksempler
42
+
43
+ ### Størrelse
44
+
45
+ ```tsx
46
+ <Symbol icon="star" size="sm" /> {/* 20px */}
47
+ <Symbol icon="star" size="xl" /> {/* 40px */}
48
+ ```
49
+
50
+ ### Vekt (tykkelse)
51
+
52
+ ```tsx
53
+ <Symbol icon="home" weight={300} /> {/* Tynn */}
54
+ <Symbol icon="home" weight={500} /> {/* Tykk */}
55
+ ```
56
+
57
+ ### Fylt vs. ikke-fylt
58
+
59
+ ```tsx
60
+ <Symbol icon="favorite" fill={false} /> {/* Omriss */}
61
+ <Symbol icon="favorite" fill={true} /> {/* Fylt */}
62
+ ```
63
+
64
+ ### Tilgjengelighet
65
+
66
+ ```tsx
67
+ <Symbol icon="search" ariaLabel="Søk" />
68
+ <Symbol icon="chevron_right" /> {/* aria-hidden="true" */}
69
+ ```
70
+
71
+ ### Med styling
72
+
73
+ ```tsx
74
+ <Symbol
75
+ icon="warning"
76
+ size="lg"
77
+ className="custom-class"
78
+ style={{ color: 'red' }}
79
+ />
80
+ ```
81
+
82
+ ## Tilgjengelige ikonnavn
83
+
84
+ Vanlige eksempler: `home`, `menu`, `close`, `search`, `add`, `edit`, `delete`, `account_balance`, `credit_card`, `check_circle`, `error`, `warning`, `info`, `person`.
85
+
86
+ Komplett liste: Se `SymbolName`-typen eller [Google Material Symbols](https://fonts.google.com/icons?icon.style=Rounded).
87
+
88
+ ## Genererte CSS-klasser
89
+
90
+ - `ffe-symbol` (alltid)
91
+ - `ffe-symbol--{weight}` eller `ffe-symbol--filled-{weight}`
92
+ - `ffe-symbol--{size}` (hvis angitt)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-symbols-react",
3
- "version": "100.8.3",
3
+ "version": "100.10.0",
4
4
  "description": "React-komponenter for Material Symbols tilpasset Sb1 sine behov",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -23,16 +23,16 @@
23
23
  },
24
24
  "homepage": "https://github.com/SpareBank1/designsystem#readme",
25
25
  "dependencies": {
26
- "@sb1/ffe-symbols": "^100.8.3",
26
+ "@sb1/ffe-symbols": "^100.10.0",
27
27
  "classnames": "^2.3.2",
28
28
  "react": "^18.2.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@sb1/ffe-buildtool": "^100.8.3",
31
+ "@sb1/ffe-buildtool": "^100.10.0",
32
32
  "eslint": "^9.22.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "f33cf64a467cb430540d1320e763a4f223a8012c"
37
+ "gitHead": "efdd3866d59d794436a97a8dd6760f4c76466a71"
38
38
  }