@sb1/ffe-symbols-react 1.1.2 → 1.1.4
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 +12 -0
- package/es/Symbol.js +2 -3
- package/lib/Symbol.js +2 -3
- package/package.json +4 -3
- package/src/Symbol.js +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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
|
+
## [1.1.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-symbols-react@1.1.3...@sb1/ffe-symbols-react@1.1.4) (2023-08-22)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **ffe-symbols-react:** legg til dependency og fjern default farge ([75b5423](https://github.com/SpareBank1/designsystem/commit/75b5423a6d6df5dc12107c6b0c85449b226980af))
|
|
11
|
+
|
|
12
|
+
## [1.1.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-symbols-react@1.1.2...@sb1/ffe-symbols-react@1.1.3) (2023-08-16)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **ffe-symbols-react:** rett path til main i package.json ([f1cbcf6](https://github.com/SpareBank1/designsystem/commit/f1cbcf65866fa9a73ede4ee5b5194213dd816663))
|
|
17
|
+
|
|
6
18
|
## [1.1.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-symbols-react@1.1.1...@sb1/ffe-symbols-react@1.1.2) (2023-08-16)
|
|
7
19
|
|
|
8
20
|
### Bug Fixes
|
package/es/Symbol.js
CHANGED
|
@@ -19,7 +19,7 @@ var _Symbol = function _Symbol(props) {
|
|
|
19
19
|
role: "img",
|
|
20
20
|
style: {
|
|
21
21
|
fontVariationSettings: "'FILL' ".concat(fill ? 1 : 0, ", 'GRAD' 0, 'wght' ").concat(weight),
|
|
22
|
-
color: "var(--".concat(color, ")")
|
|
22
|
+
color: color ? "var(--".concat(color, ")") : null
|
|
23
23
|
},
|
|
24
24
|
"aria-label": ariaLabel ? ariaLabel : null,
|
|
25
25
|
"aria-hidden": ariaLabel ? false : true
|
|
@@ -28,8 +28,7 @@ var _Symbol = function _Symbol(props) {
|
|
|
28
28
|
_Symbol.defaultProps = {
|
|
29
29
|
fill: false,
|
|
30
30
|
size: 'md',
|
|
31
|
-
weight: 400
|
|
32
|
-
color: 'ffe-v-symbol-default-color'
|
|
31
|
+
weight: 400
|
|
33
32
|
};
|
|
34
33
|
_Symbol.propTypes = {
|
|
35
34
|
/** Fills the icon with color */
|
package/lib/Symbol.js
CHANGED
|
@@ -26,7 +26,7 @@ var _Symbol = function _Symbol(props) {
|
|
|
26
26
|
role: "img",
|
|
27
27
|
style: {
|
|
28
28
|
fontVariationSettings: "'FILL' ".concat(fill ? 1 : 0, ", 'GRAD' 0, 'wght' ").concat(weight),
|
|
29
|
-
color: "var(--".concat(color, ")")
|
|
29
|
+
color: color ? "var(--".concat(color, ")") : null
|
|
30
30
|
},
|
|
31
31
|
"aria-label": ariaLabel ? ariaLabel : null,
|
|
32
32
|
"aria-hidden": ariaLabel ? false : true
|
|
@@ -35,8 +35,7 @@ var _Symbol = function _Symbol(props) {
|
|
|
35
35
|
_Symbol.defaultProps = {
|
|
36
36
|
fill: false,
|
|
37
37
|
size: 'md',
|
|
38
|
-
weight: 400
|
|
39
|
-
color: 'ffe-v-symbol-default-color'
|
|
38
|
+
weight: 400
|
|
40
39
|
};
|
|
41
40
|
_Symbol.propTypes = {
|
|
42
41
|
/** Fills the icon with color */
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-symbols-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "React-komponenter for Material Symbols tilpasset Sb1 sine behov",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"types": "types/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/SpareBank1/designsystem#readme",
|
|
25
25
|
"dependencies": {
|
|
26
|
+
"@sb1/ffe-symbols": "^1.1.2",
|
|
26
27
|
"classnames": "^2.3.2",
|
|
27
28
|
"prop-types": "^15.8.1",
|
|
28
29
|
"react": "^18.2.0"
|
|
@@ -34,5 +35,5 @@
|
|
|
34
35
|
"publishConfig": {
|
|
35
36
|
"access": "public"
|
|
36
37
|
},
|
|
37
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "01524375499c050bd939803e4978b7f698655c8b"
|
|
38
39
|
}
|
package/src/Symbol.js
CHANGED
|
@@ -25,7 +25,7 @@ const Symbol = props => {
|
|
|
25
25
|
fontVariationSettings: `'FILL' ${
|
|
26
26
|
fill ? 1 : 0
|
|
27
27
|
}, 'GRAD' 0, 'wght' ${weight}`,
|
|
28
|
-
color: `var(--${color})
|
|
28
|
+
color: color ? `var(--${color})` : null,
|
|
29
29
|
}}
|
|
30
30
|
aria-label={ariaLabel ? ariaLabel : null}
|
|
31
31
|
aria-hidden={ariaLabel ? false : true}
|
|
@@ -40,7 +40,6 @@ Symbol.defaultProps = {
|
|
|
40
40
|
fill: false,
|
|
41
41
|
size: 'md',
|
|
42
42
|
weight: 400,
|
|
43
|
-
color: 'ffe-v-symbol-default-color',
|
|
44
43
|
};
|
|
45
44
|
|
|
46
45
|
Symbol.propTypes = {
|