@sb1/ffe-symbols-react 1.1.5 → 1.1.6
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 +6 -0
- package/es/Symbol.js +2 -1
- package/es/index.js +1 -2
- package/lib/Symbol.js +3 -2
- package/lib/index.js +16 -5
- package/package.json +2 -2
- package/src/Symbol.js +2 -2
- package/src/index.d.ts +4 -0
- package/src/index.js +1 -3
- package/types/index.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-symbols-react@1.1.5...@sb1/ffe-symbols-react@1.1.6) (2023-08-24)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **ffe-symbols-react:** added missing symbols type ([504c418](https://github.com/SpareBank1/designsystem/commit/504c418c4c1ed650d2b7991abf9ee5dff3eb6a9c))
|
|
11
|
+
|
|
6
12
|
## [1.1.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-symbols-react@1.1.4...@sb1/ffe-symbols-react@1.1.5) (2023-08-22)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @sb1/ffe-symbols-react
|
package/es/Symbol.js
CHANGED
|
@@ -22,9 +22,10 @@ var _Symbol = function _Symbol(props) {
|
|
|
22
22
|
color: color ? "var(--".concat(color, ")") : null
|
|
23
23
|
},
|
|
24
24
|
"aria-label": ariaLabel ? ariaLabel : null,
|
|
25
|
-
"aria-hidden": ariaLabel
|
|
25
|
+
"aria-hidden": !ariaLabel
|
|
26
26
|
}, rest), children);
|
|
27
27
|
};
|
|
28
|
+
export { _Symbol as Symbol };
|
|
28
29
|
_Symbol.defaultProps = {
|
|
29
30
|
fill: false,
|
|
30
31
|
size: 'md',
|
package/es/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default _Symbol;
|
|
1
|
+
export { default, Symbol } from './Symbol';
|
package/lib/Symbol.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = void 0;
|
|
6
|
+
exports.default = exports.Symbol = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _propTypes = require("prop-types");
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
@@ -29,9 +29,10 @@ var _Symbol = function _Symbol(props) {
|
|
|
29
29
|
color: color ? "var(--".concat(color, ")") : null
|
|
30
30
|
},
|
|
31
31
|
"aria-label": ariaLabel ? ariaLabel : null,
|
|
32
|
-
"aria-hidden": ariaLabel
|
|
32
|
+
"aria-hidden": !ariaLabel
|
|
33
33
|
}, rest), children);
|
|
34
34
|
};
|
|
35
|
+
exports.Symbol = _Symbol;
|
|
35
36
|
_Symbol.defaultProps = {
|
|
36
37
|
fill: false,
|
|
37
38
|
size: 'md',
|
package/lib/index.js
CHANGED
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
Object.defineProperty(exports, "Symbol", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _Symbol.Symbol;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "default", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _Symbol.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
var _Symbol = _interopRequireWildcard(require("./Symbol"));
|
|
20
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sb1/ffe-symbols-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
4
4
|
"description": "React-komponenter for Material Symbols tilpasset Sb1 sine behov",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "070ca7dc51f76981e58460c996a859d801589426"
|
|
39
39
|
}
|
package/src/Symbol.js
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { string, bool, oneOf } from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
|
|
5
|
-
const Symbol = props => {
|
|
5
|
+
export const Symbol = props => {
|
|
6
6
|
const {
|
|
7
7
|
className,
|
|
8
8
|
children,
|
|
@@ -28,7 +28,7 @@ const Symbol = props => {
|
|
|
28
28
|
color: color ? `var(--${color})` : null,
|
|
29
29
|
}}
|
|
30
30
|
aria-label={ariaLabel ? ariaLabel : null}
|
|
31
|
-
aria-hidden={ariaLabel
|
|
31
|
+
aria-hidden={!ariaLabel}
|
|
32
32
|
{...rest}
|
|
33
33
|
>
|
|
34
34
|
{children}
|
package/src/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
1
3
|
export interface SymbolProps {
|
|
2
4
|
fill?: boolean;
|
|
3
5
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
@@ -7,3 +9,5 @@ export interface SymbolProps {
|
|
|
7
9
|
className?: string;
|
|
8
10
|
ariaLabel: string;
|
|
9
11
|
}
|
|
12
|
+
|
|
13
|
+
declare class Symbol extends React.Component<SymbolProps, any> {}
|
package/src/index.js
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
1
3
|
export interface SymbolProps {
|
|
2
4
|
fill?: boolean;
|
|
3
5
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
@@ -7,3 +9,5 @@ export interface SymbolProps {
|
|
|
7
9
|
className?: string;
|
|
8
10
|
ariaLabel: string;
|
|
9
11
|
}
|
|
12
|
+
|
|
13
|
+
declare class Symbol extends React.Component<SymbolProps, any> {}
|