@sb1/ffe-symbols-react 4.0.0 → 5.0.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/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
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
+ # [5.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-symbols-react@4.0.0...@sb1/ffe-symbols-react@5.0.0) (2024-04-29)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **ffe-symbols-react:** remove default props ([6f8529d](https://github.com/SpareBank1/designsystem/commit/6f8529ddeb432cda43cd08d2917dd28f2a673917))
11
+
12
+ ### Documentation
13
+
14
+ - **ffe-symbols-react:** this package has been deprecated ([970906a](https://github.com/SpareBank1/designsystem/commit/970906a22848052d9802cf9b7a5c773a001ad629))
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ - **ffe-symbols-react:** This package has been deprecated.
19
+ Please use @sb1/ffe-icons and @sb1/ffe-icons-react.
20
+
6
21
  # [4.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-symbols-react@3.0.3...@sb1/ffe-symbols-react@4.0.0) (2024-02-26)
7
22
 
8
23
  ### Bug Fixes
package/README.md CHANGED
@@ -1,25 +1,7 @@
1
1
  # @sb1/ffe-symbols-react
2
2
 
3
- ## Install
3
+ ## Deprecated package
4
4
 
5
- ```
6
- npm install --save @sb1/ffe-symbols-react
7
- ```
5
+ This package is deprecated, and will be removed from the designsystem repo.
8
6
 
9
- ## Usage
10
-
11
- Full documentation on icon usage is available at https://design.sparebank1.no/komponenter/ikoner/.
12
-
13
- ## Development
14
-
15
- To start a local development server, run the following from the designsystem root folder:
16
-
17
- ```bash
18
- npm install
19
- npm run build
20
- npm start
21
- ```
22
-
23
- A local instance of `component-overview` with live reloading will run at http://localhost:1234/.
24
-
25
- Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.
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).
package/es/Symbol.js CHANGED
@@ -8,8 +8,10 @@ import classNames from 'classnames';
8
8
  var _Symbol = function _Symbol(props) {
9
9
  var className = props.className,
10
10
  size = props.size,
11
- weight = props.weight,
12
- fill = props.fill,
11
+ _props$weight = props.weight,
12
+ weight = _props$weight === void 0 ? 300 : _props$weight,
13
+ _props$fill = props.fill,
14
+ fill = _props$fill === void 0 ? false : _props$fill,
13
15
  ariaLabel = props.ariaLabel,
14
16
  icon = props.icon,
15
17
  rest = _objectWithoutProperties(props, _excluded);
@@ -21,10 +23,6 @@ var _Symbol = function _Symbol(props) {
21
23
  }, rest), icon);
22
24
  };
23
25
  export { _Symbol as Symbol };
24
- _Symbol.defaultProps = {
25
- fill: false,
26
- weight: 300
27
- };
28
26
  _Symbol.propTypes = {
29
27
  /** Fills the icon with color */
30
28
  fill: bool,
package/lib/Symbol.js CHANGED
@@ -15,8 +15,10 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
15
15
  var _Symbol = exports.Symbol = function _Symbol(props) {
16
16
  var className = props.className,
17
17
  size = props.size,
18
- weight = props.weight,
19
- fill = props.fill,
18
+ _props$weight = props.weight,
19
+ weight = _props$weight === void 0 ? 300 : _props$weight,
20
+ _props$fill = props.fill,
21
+ fill = _props$fill === void 0 ? false : _props$fill,
20
22
  ariaLabel = props.ariaLabel,
21
23
  icon = props.icon,
22
24
  rest = _objectWithoutProperties(props, _excluded);
@@ -27,10 +29,6 @@ var _Symbol = exports.Symbol = function _Symbol(props) {
27
29
  "aria-hidden": !ariaLabel
28
30
  }, rest), icon);
29
31
  };
30
- _Symbol.defaultProps = {
31
- fill: false,
32
- weight: 300
33
- };
34
32
  _Symbol.propTypes = {
35
33
  /** Fills the icon with color */
36
34
  fill: _propTypes.bool,
package/lib/index.js CHANGED
@@ -18,4 +18,4 @@ Object.defineProperty(exports, "default", {
18
18
  });
19
19
  var _Symbol = _interopRequireWildcard(require("./Symbol"));
20
20
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
21
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-symbols-react",
3
- "version": "4.0.0",
3
+ "version": "5.0.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",
@@ -35,5 +35,5 @@
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
- "gitHead": "d78e3fec5da8d8ce82b4e95c9f2960a3402902ef"
38
+ "gitHead": "c291894cefef43c0607f844862e87031452a0d94"
39
39
  }
package/src/Symbol.js CHANGED
@@ -3,7 +3,15 @@ import { string, bool, oneOf } from 'prop-types';
3
3
  import classNames from 'classnames';
4
4
 
5
5
  export const Symbol = props => {
6
- const { className, size, weight, fill, ariaLabel, icon, ...rest } = props;
6
+ const {
7
+ className,
8
+ size,
9
+ weight = 300,
10
+ fill = false,
11
+ ariaLabel,
12
+ icon,
13
+ ...rest
14
+ } = props;
7
15
 
8
16
  return (
9
17
  <span
@@ -23,11 +31,6 @@ export const Symbol = props => {
23
31
  );
24
32
  };
25
33
 
26
- Symbol.defaultProps = {
27
- fill: false,
28
- weight: 300,
29
- };
30
-
31
34
  Symbol.propTypes = {
32
35
  /** Fills the icon with color */
33
36
  fill: bool,