@sb1/ffe-lists-react 6.0.7 → 7.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.
@@ -5,23 +5,24 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
5
5
  import React from 'react';
6
6
  import { bool, node, string } from 'prop-types';
7
7
  import classNames from 'classnames';
8
- import HakeIkon from "@sb1/ffe-icons-react/es/hake-ikon";
9
- import KryssIkon from "@sb1/ffe-icons-react/es/kryss-ikon";
8
+ import _Symbol from '@sb1/ffe-symbols-react';
10
9
  var CheckListItem = function CheckListItem(props) {
11
10
  var className = props.className,
12
11
  isCross = props.isCross,
13
12
  rest = _objectWithoutProperties(props, _excluded);
14
13
  return /*#__PURE__*/React.createElement("li", _extends({
15
14
  className: classNames('ffe-check-list__item', className)
16
- }, rest), isCross ? /*#__PURE__*/React.createElement(KryssIkon, {
15
+ }, rest), isCross ? /*#__PURE__*/React.createElement(_Symbol, {
17
16
  className: "ffe-check-list__icon ffe-check-list__icon--cross",
18
- role: "img",
19
- title: "kryss"
20
- }) : /*#__PURE__*/React.createElement(HakeIkon, {
17
+ ariaLabel: "kryss",
18
+ weight: 400,
19
+ size: "md"
20
+ }, "close") : /*#__PURE__*/React.createElement(_Symbol, {
21
21
  className: "ffe-check-list__icon ffe-check-list__icon--check",
22
- role: "img",
23
- title: "hake"
24
- }), rest.children);
22
+ size: "md",
23
+ weight: 400,
24
+ ariaLabel: "hake"
25
+ }, "check"), rest.children);
25
26
  };
26
27
  CheckListItem.propTypes = {
27
28
  children: node,
package/lib/BulletList.js CHANGED
@@ -30,5 +30,4 @@ BulletList.propTypes = {
30
30
  /** Condensed modifier. Use in condensed designs */
31
31
  condensed: _propTypes.bool
32
32
  };
33
- var _default = BulletList;
34
- exports.default = _default;
33
+ var _default = exports.default = BulletList;
@@ -24,5 +24,4 @@ BulletListItem.propTypes = {
24
24
  /** Any extra classes */
25
25
  className: _propTypes.string
26
26
  };
27
- var _default = BulletListItem;
28
- exports.default = _default;
27
+ var _default = exports.default = BulletListItem;
package/lib/CheckList.js CHANGED
@@ -33,5 +33,4 @@ CheckList.propTypes = {
33
33
  CheckList.defaultProps = {
34
34
  columns: 1
35
35
  };
36
- var _default = CheckList;
37
- exports.default = _default;
36
+ var _default = exports.default = CheckList;
@@ -7,8 +7,7 @@ exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _propTypes = require("prop-types");
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
- var _hakeIkon = _interopRequireDefault(require("@sb1/ffe-icons-react/lib/hake-ikon"));
11
- var _kryssIkon = _interopRequireDefault(require("@sb1/ffe-icons-react/lib/kryss-ikon"));
10
+ var _ffeSymbolsReact = _interopRequireDefault(require("@sb1/ffe-symbols-react"));
12
11
  var _excluded = ["className", "isCross"];
13
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
13
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -20,15 +19,17 @@ var CheckListItem = function CheckListItem(props) {
20
19
  rest = _objectWithoutProperties(props, _excluded);
21
20
  return /*#__PURE__*/_react.default.createElement("li", _extends({
22
21
  className: (0, _classnames.default)('ffe-check-list__item', className)
23
- }, rest), isCross ? /*#__PURE__*/_react.default.createElement(_kryssIkon.default, {
22
+ }, rest), isCross ? /*#__PURE__*/_react.default.createElement(_ffeSymbolsReact.default, {
24
23
  className: "ffe-check-list__icon ffe-check-list__icon--cross",
25
- role: "img",
26
- title: "kryss"
27
- }) : /*#__PURE__*/_react.default.createElement(_hakeIkon.default, {
24
+ ariaLabel: "kryss",
25
+ weight: 400,
26
+ size: "md"
27
+ }, "close") : /*#__PURE__*/_react.default.createElement(_ffeSymbolsReact.default, {
28
28
  className: "ffe-check-list__icon ffe-check-list__icon--check",
29
- role: "img",
30
- title: "hake"
31
- }), rest.children);
29
+ size: "md",
30
+ weight: 400,
31
+ ariaLabel: "hake"
32
+ }, "check"), rest.children);
32
33
  };
33
34
  CheckListItem.propTypes = {
34
35
  children: _propTypes.node,
@@ -40,5 +41,4 @@ CheckListItem.propTypes = {
40
41
  CheckListItem.defaultProps = {
41
42
  isCross: false
42
43
  };
43
- var _default = CheckListItem;
44
- exports.default = _default;
44
+ var _default = exports.default = CheckListItem;
@@ -40,5 +40,4 @@ DescriptionList.propTypes = {
40
40
  /** Displays dts and dds inline*/
41
41
  horizontal: _propTypes.bool
42
42
  };
43
- var _default = DescriptionList;
44
- exports.default = _default;
43
+ var _default = exports.default = DescriptionList;
@@ -24,5 +24,4 @@ DescriptionListDescription.propTypes = {
24
24
  /** Any extra classes */
25
25
  className: _propTypes.string
26
26
  };
27
- var _default = DescriptionListDescription;
28
- exports.default = _default;
27
+ var _default = exports.default = DescriptionListDescription;
@@ -39,5 +39,4 @@ DescriptionListMultiCol.propTypes = {
39
39
  /** Any extra classes */
40
40
  className: _propTypes.string
41
41
  };
42
- var _default = DescriptionListMultiCol;
43
- exports.default = _default;
42
+ var _default = exports.default = DescriptionListMultiCol;
@@ -24,5 +24,4 @@ DescriptionListTerm.propTypes = {
24
24
  /** Any extra classes */
25
25
  className: _propTypes.string
26
26
  };
27
- var _default = DescriptionListTerm;
28
- exports.default = _default;
27
+ var _default = exports.default = DescriptionListTerm;
@@ -30,5 +30,4 @@ NumberedList.propTypes = {
30
30
  /** Condensed modifier. Use in condensed designs */
31
31
  condensed: _propTypes.bool
32
32
  };
33
- var _default = NumberedList;
34
- exports.default = _default;
33
+ var _default = exports.default = NumberedList;
@@ -24,5 +24,4 @@ NumberedListItem.propTypes = {
24
24
  /** Any extra classes */
25
25
  className: _propTypes.string
26
26
  };
27
- var _default = NumberedListItem;
28
- exports.default = _default;
27
+ var _default = exports.default = NumberedListItem;
@@ -26,5 +26,4 @@ StylizedNumberedList.propTypes = {
26
26
  /** Any extra classes */
27
27
  className: _propTypes.string
28
28
  };
29
- var _default = StylizedNumberedList;
30
- exports.default = _default;
29
+ var _default = exports.default = StylizedNumberedList;
@@ -24,5 +24,4 @@ StylizedNumberedListItem.propTypes = {
24
24
  /** Any extra classes */
25
25
  className: _propTypes.string
26
26
  };
27
- var _default = StylizedNumberedListItem;
28
- exports.default = _default;
27
+ var _default = exports.default = StylizedNumberedListItem;
package/lib/index.js CHANGED
@@ -89,5 +89,4 @@ var _DescriptionListMultiCol = _interopRequireDefault(require("./DescriptionList
89
89
  var _DescriptionListTerm = _interopRequireDefault(require("./DescriptionListTerm"));
90
90
  var _DescriptionListDescription = _interopRequireDefault(require("./DescriptionListDescription"));
91
91
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
92
- var _default = _BulletList.default;
93
- exports.default = _default;
92
+ var _default = exports.default = _BulletList.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-lists-react",
3
- "version": "6.0.7",
3
+ "version": "7.0.0",
4
4
  "description": "React implementation of ffe-lists",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -25,8 +25,8 @@
25
25
  "test:watch": "ffe-buildtool jest --watch"
26
26
  },
27
27
  "dependencies": {
28
- "@sb1/ffe-icons-react": "^7.3.5",
29
- "@sb1/ffe-lists": "^12.1.0",
28
+ "@sb1/ffe-lists": "^13.0.0",
29
+ "@sb1/ffe-symbols-react": "^2.0.2",
30
30
  "classnames": "^2.3.1",
31
31
  "prop-types": "^15.7.2"
32
32
  },
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "2717d62c2fe4125c7160d0253f4bcc56fde9e06e"
44
+ "gitHead": "45731cae0e1ac73920dc71426a4f9028ab431570"
45
45
  }