@sb1/ffe-accordion-react 9.2.3 → 9.2.7

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/es/Accordion.js CHANGED
@@ -1,3 +1,5 @@
1
+ var _excluded = ["children", "headingLevel", "className"];
2
+
1
3
  function _extends() { _extends = Object.assign || 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); }
2
4
 
3
5
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -8,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
10
 
9
11
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10
12
 
11
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
13
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12
14
 
13
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
16
 
@@ -28,7 +30,7 @@ var Accordion = function Accordion(_ref) {
28
30
  var children = _ref.children,
29
31
  headingLevel = _ref.headingLevel,
30
32
  className = _ref.className,
31
- rest = _objectWithoutProperties(_ref, ["children", "headingLevel", "className"]);
33
+ rest = _objectWithoutProperties(_ref, _excluded);
32
34
 
33
35
  var _useState = useState(false),
34
36
  _useState2 = _slicedToArray(_useState, 2),
@@ -1,3 +1,6 @@
1
+ var _excluded = ["children", "heading", "defaultOpen", "isOpen", "className", "onToggleOpen", "ariaLabel"],
2
+ _excluded2 = ["headingLevel", "onFocus", "onBlur", "forwardedRef"];
3
+
1
4
  function _extends() { _extends = Object.assign || 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); }
2
5
 
3
6
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -8,7 +11,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
11
 
9
12
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10
13
 
11
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
14
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12
15
 
13
16
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
17
 
@@ -32,7 +35,7 @@ var AccordionItem = function AccordionItem(_ref) {
32
35
  _ref$onToggleOpen = _ref.onToggleOpen,
33
36
  onToggleOpen = _ref$onToggleOpen === void 0 ? Function.prototype : _ref$onToggleOpen,
34
37
  ariaLabel = _ref.ariaLabel,
35
- accordionProps = _objectWithoutProperties(_ref, ["children", "heading", "defaultOpen", "isOpen", "className", "onToggleOpen", "ariaLabel"]);
38
+ accordionProps = _objectWithoutProperties(_ref, _excluded);
36
39
 
37
40
  var _useState = useState(defaultOpen),
38
41
  _useState2 = _slicedToArray(_useState, 2),
@@ -66,7 +69,7 @@ var AccordionItem = function AccordionItem(_ref) {
66
69
  onFocus = accordionProps.onFocus,
67
70
  onBlur = accordionProps.onBlur,
68
71
  forwardedRef = accordionProps.forwardedRef,
69
- rest = _objectWithoutProperties(accordionProps, ["headingLevel", "onFocus", "onBlur", "forwardedRef"]);
72
+ rest = _objectWithoutProperties(accordionProps, _excluded2);
70
73
 
71
74
  var collapseHidden = !isExpanded && !isAnimating;
72
75
  return /*#__PURE__*/React.createElement("div", _extends({
package/lib/Accordion.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -13,11 +13,13 @@ var _propTypes = require("prop-types");
13
13
 
14
14
  var _classnames = _interopRequireDefault(require("classnames"));
15
15
 
16
+ var _excluded = ["children", "headingLevel", "className"];
17
+
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
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); }
19
21
 
20
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
22
+ 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; }
21
23
 
22
24
  function _extends() { _extends = Object.assign || 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); }
23
25
 
@@ -29,7 +31,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
29
31
 
30
32
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
31
33
 
32
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
34
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
33
35
 
34
36
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
37
 
@@ -46,7 +48,7 @@ var Accordion = function Accordion(_ref) {
46
48
  var children = _ref.children,
47
49
  headingLevel = _ref.headingLevel,
48
50
  className = _ref.className,
49
- rest = _objectWithoutProperties(_ref, ["children", "headingLevel", "className"]);
51
+ rest = _objectWithoutProperties(_ref, _excluded);
50
52
 
51
53
  var _useState = (0, _react.useState)(false),
52
54
  _useState2 = _slicedToArray(_useState, 2),
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
@@ -19,11 +19,14 @@ var _ffeCollapseReact = _interopRequireDefault(require("@sb1/ffe-collapse-react"
19
19
 
20
20
  var _classnames = _interopRequireDefault(require("classnames"));
21
21
 
22
+ var _excluded = ["children", "heading", "defaultOpen", "isOpen", "className", "onToggleOpen", "ariaLabel"],
23
+ _excluded2 = ["headingLevel", "onFocus", "onBlur", "forwardedRef"];
24
+
22
25
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
26
 
24
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
27
+ 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); }
25
28
 
26
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (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; }
29
+ 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; }
27
30
 
28
31
  function _extends() { _extends = Object.assign || 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); }
29
32
 
@@ -35,7 +38,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
35
38
 
36
39
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
37
40
 
38
- function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
41
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
39
42
 
40
43
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
44
 
@@ -52,7 +55,7 @@ var AccordionItem = function AccordionItem(_ref) {
52
55
  _ref$onToggleOpen = _ref.onToggleOpen,
53
56
  onToggleOpen = _ref$onToggleOpen === void 0 ? Function.prototype : _ref$onToggleOpen,
54
57
  ariaLabel = _ref.ariaLabel,
55
- accordionProps = _objectWithoutProperties(_ref, ["children", "heading", "defaultOpen", "isOpen", "className", "onToggleOpen", "ariaLabel"]);
58
+ accordionProps = _objectWithoutProperties(_ref, _excluded);
56
59
 
57
60
  var _useState = (0, _react.useState)(defaultOpen),
58
61
  _useState2 = _slicedToArray(_useState, 2),
@@ -86,7 +89,7 @@ var AccordionItem = function AccordionItem(_ref) {
86
89
  onFocus = accordionProps.onFocus,
87
90
  onBlur = accordionProps.onBlur,
88
91
  forwardedRef = accordionProps.forwardedRef,
89
- rest = _objectWithoutProperties(accordionProps, ["headingLevel", "onFocus", "onBlur", "forwardedRef"]);
92
+ rest = _objectWithoutProperties(accordionProps, _excluded2);
90
93
 
91
94
  var collapseHidden = !isExpanded && !isAnimating;
92
95
  return /*#__PURE__*/_react.default.createElement("div", _extends({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-accordion-react",
3
- "version": "9.2.3",
3
+ "version": "9.2.7",
4
4
  "license": "MIT",
5
5
  "author": "SpareBank 1",
6
6
  "files": [
@@ -17,11 +17,8 @@
17
17
  "url": "ssh://git@github.com:SpareBank1/designsystem.git"
18
18
  },
19
19
  "scripts": {
20
- "build": "npm run build:cjs && npm run build:es && npm run build:types",
21
- "build:cjs": "babel -d lib/. --root-mode=upward --env-name=cjs --ignore=*.spec.js src/.",
22
- "build:es": "babel -d es/. --root-mode=upward --env-name=es --ignore=*.spec.js src/.",
23
- "build:types": "copyfiles -f src/index.d.ts types/",
24
- "lint": "eslint src/.",
20
+ "build": "ffe-buildtool babel",
21
+ "lint": "eslint src",
25
22
  "test": "jest",
26
23
  "test:watch": "jest --watch"
27
24
  },
@@ -29,13 +26,14 @@
29
26
  "setupTestFrameworkScriptFile": "../../test-setup.js"
30
27
  },
31
28
  "dependencies": {
32
- "@sb1/ffe-collapse-react": "^1.1.6",
33
- "@sb1/ffe-icons-react": "^7.2.18",
34
- "classnames": "^2.2.5",
35
- "prop-types": "^15.6.0",
36
- "uuid": "^8.0.0"
29
+ "@sb1/ffe-collapse-react": "^1.1.9",
30
+ "@sb1/ffe-icons-react": "^7.2.20",
31
+ "classnames": "^2.3.1",
32
+ "prop-types": "^15.7.2",
33
+ "uuid": "^8.3.2"
37
34
  },
38
35
  "devDependencies": {
36
+ "@sb1/ffe-buildtool": "^0.2.0",
39
37
  "enzyme": "^3.7.0",
40
38
  "enzyme-adapter-react-16": "^1.7.0",
41
39
  "jest": "^26.0.0",
@@ -49,5 +47,5 @@
49
47
  "publishConfig": {
50
48
  "access": "public"
51
49
  },
52
- "gitHead": "ad9d6ceb0d0a782eb9697d36e4d3678f7bca9c4d"
50
+ "gitHead": "8b55807a4d7a475c277e7b621b76cc28160191f7"
53
51
  }
package/CHANGELOG.md DELETED
@@ -1,816 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [9.2.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.2.2...@sb1/ffe-accordion-react@9.2.3) (2021-03-30)
7
-
8
-
9
- ### Performance Improvements
10
-
11
- * **ffe-accordion-react:** dont render collapsed content when closed ([b500738](https://github.com/SpareBank1/designsystem/commit/b500738fb54937f32cb64431e3c4d72114520766))
12
-
13
-
14
-
15
-
16
-
17
- ## [9.2.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.2.1...@sb1/ffe-accordion-react@9.2.2) (2021-03-15)
18
-
19
-
20
- ### Bug Fixes
21
-
22
- * **ffe-accordion-react:** broadens version of peer dependencies ([c3540a5](https://github.com/SpareBank1/designsystem/commit/c3540a59c6ae4702cff153f08a664113b1ebb6a4))
23
-
24
-
25
-
26
-
27
-
28
- ## [9.2.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.2.0...@sb1/ffe-accordion-react@9.2.1) (2021-03-08)
29
-
30
- **Note:** Version bump only for package @sb1/ffe-accordion-react
31
-
32
-
33
-
34
-
35
-
36
- # [9.2.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.1.6...@sb1/ffe-accordion-react@9.2.0) (2021-03-08)
37
-
38
-
39
- ### Features
40
-
41
- * **ffe-accordion-react:** possible to pass properties to button ([4bb3d34](https://github.com/SpareBank1/designsystem/commit/4bb3d3466fbe4817d22cf5f4039bc88f871a14ae))
42
-
43
-
44
-
45
-
46
-
47
- ## [9.1.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.1.5...@sb1/ffe-accordion-react@9.1.6) (2021-02-05)
48
-
49
- **Note:** Version bump only for package @sb1/ffe-accordion-react
50
-
51
-
52
-
53
-
54
-
55
- ## [9.1.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.1.4...@sb1/ffe-accordion-react@9.1.5) (2021-02-04)
56
-
57
- **Note:** Version bump only for package @sb1/ffe-accordion-react
58
-
59
-
60
-
61
-
62
-
63
- ## [9.1.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.1.3...@sb1/ffe-accordion-react@9.1.4) (2021-02-03)
64
-
65
- **Note:** Version bump only for package @sb1/ffe-accordion-react
66
-
67
-
68
-
69
-
70
-
71
- ## [9.1.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.1.2...@sb1/ffe-accordion-react@9.1.3) (2021-02-03)
72
-
73
-
74
- ### Bug Fixes
75
-
76
- * packages/ffe-accordion-react/package.json to reduce vulnerabilities ([88b1e26](https://github.com/SpareBank1/designsystem/commit/88b1e26a8280ad7811689d93f45f165ea135c79c))
77
-
78
-
79
-
80
-
81
-
82
- ## [9.1.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.1.1...@sb1/ffe-accordion-react@9.1.2) (2021-02-02)
83
-
84
-
85
- ### Bug Fixes
86
-
87
- * **ffe-accordion-react:** reduce vulnerabilities ([7bb8af5](https://github.com/SpareBank1/designsystem/commit/7bb8af5bf84c3cfcaba1f6087b0a6091efce21a7))
88
-
89
-
90
-
91
-
92
-
93
- ## [9.1.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.1.0...@sb1/ffe-accordion-react@9.1.1) (2021-01-27)
94
-
95
- **Note:** Version bump only for package @sb1/ffe-accordion-react
96
-
97
-
98
-
99
-
100
-
101
- # [9.1.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.0.3...@sb1/ffe-accordion-react@9.1.0) (2021-01-19)
102
-
103
-
104
- ### Features
105
-
106
- * **ffe-accordion-react:** Add isOpen as new prop on items ([401066d](https://github.com/SpareBank1/designsystem/commit/401066dacd0071fc685efff6fcf5fc5afb18c58c))
107
-
108
-
109
-
110
-
111
-
112
- ## [9.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.0.2...@sb1/ffe-accordion-react@9.0.3) (2020-11-18)
113
-
114
- **Note:** Version bump only for package @sb1/ffe-accordion-react
115
-
116
-
117
-
118
-
119
-
120
- ## [9.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.0.1...@sb1/ffe-accordion-react@9.0.2) (2020-11-10)
121
-
122
-
123
- ### Bug Fixes
124
-
125
- * **ffe-accordion-react:** fix ts types ([b6d0e76](https://github.com/SpareBank1/designsystem/commit/b6d0e766447b7dda1263384cf4152d822289d038))
126
- * **ffe-accordion-react:** hidden after animation is done ([dff60ae](https://github.com/SpareBank1/designsystem/commit/dff60aee86c077e06d3bd53d0e27f9b0000c065f))
127
-
128
-
129
-
130
-
131
-
132
- ## [9.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@9.0.0...@sb1/ffe-accordion-react@9.0.1) (2020-11-05)
133
-
134
-
135
- ### Bug Fixes
136
-
137
- * **ffe-accordion-react:** set type of button ([7612ac5](https://github.com/SpareBank1/designsystem/commit/7612ac50f4f3c3c13ea37b204e022ff38091052b))
138
-
139
-
140
-
141
-
142
-
143
- # [9.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@8.0.4...@sb1/ffe-accordion-react@9.0.0) (2020-11-04)
144
-
145
-
146
- ### Features
147
-
148
- * **ffe-accordion-react:** accessibility fixes ([ee40ce7](https://github.com/SpareBank1/designsystem/commit/ee40ce752ce6f9b344dded2068ea195c65d69cdb))
149
-
150
-
151
- ### BREAKING CHANGES
152
-
153
- * **ffe-accordion-react:** Changing the API of this component to make it more accessible
154
-
155
-
156
-
157
-
158
-
159
- ## [8.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@8.0.3...@sb1/ffe-accordion-react@8.0.4) (2020-09-15)
160
-
161
- **Note:** Version bump only for package @sb1/ffe-accordion-react
162
-
163
-
164
-
165
-
166
-
167
- ## [8.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@8.0.2...@sb1/ffe-accordion-react@8.0.3) (2020-08-27)
168
-
169
- **Note:** Version bump only for package @sb1/ffe-accordion-react
170
-
171
-
172
-
173
-
174
-
175
- ## [8.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@8.0.1...@sb1/ffe-accordion-react@8.0.2) (2020-08-12)
176
-
177
-
178
- ### Bug Fixes
179
-
180
- * **ffe-accordion-react:** a11y fixes ([837abf4](https://github.com/SpareBank1/designsystem/commit/837abf475adb0f248f26da85b8ec2ebb38bb6f77))
181
-
182
-
183
-
184
-
185
-
186
- ## [8.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@8.0.0...@sb1/ffe-accordion-react@8.0.1) (2020-08-04)
187
-
188
- **Note:** Version bump only for package @sb1/ffe-accordion-react
189
-
190
-
191
-
192
-
193
-
194
- # [8.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.20...@sb1/ffe-accordion-react@8.0.0) (2020-07-30)
195
-
196
-
197
- ### Bug Fixes
198
-
199
- * **ffe-accordion-react:** renamed title tag ([ee21117](https://github.com/SpareBank1/designsystem/commit/ee211179b4795e922128561140621876f69d3136))
200
-
201
-
202
- ### BREAKING CHANGES
203
-
204
- * **ffe-accordion-react:** title is an existing property on li-elements and could cause confusion (TypeScript isn't amused when we override it, either).
205
-
206
-
207
-
208
-
209
-
210
- ## [7.0.20](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.19...@sb1/ffe-accordion-react@7.0.20) (2020-06-29)
211
-
212
-
213
- ### Bug Fixes
214
-
215
- * **ffe-accordion-react:** added types ([2634cd5](https://github.com/SpareBank1/designsystem/commit/2634cd5598156808af7e2d353279113b873a5d61))
216
-
217
-
218
-
219
-
220
-
221
- ## [7.0.19](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.18...@sb1/ffe-accordion-react@7.0.19) (2020-06-24)
222
-
223
- **Note:** Version bump only for package @sb1/ffe-accordion-react
224
-
225
-
226
-
227
-
228
-
229
- ## [7.0.18](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.17...@sb1/ffe-accordion-react@7.0.18) (2020-05-27)
230
-
231
- **Note:** Version bump only for package @sb1/ffe-accordion-react
232
-
233
-
234
-
235
-
236
-
237
- ## [7.0.17](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.16...@sb1/ffe-accordion-react@7.0.17) (2020-05-19)
238
-
239
- **Note:** Version bump only for package @sb1/ffe-accordion-react
240
-
241
-
242
-
243
-
244
-
245
- ## [7.0.16](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.15...@sb1/ffe-accordion-react@7.0.16) (2020-03-31)
246
-
247
- **Note:** Version bump only for package @sb1/ffe-accordion-react
248
-
249
- ## [7.0.15](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.14...@sb1/ffe-accordion-react@7.0.15) (2020-03-18)
250
-
251
- **Note:** Version bump only for package @sb1/ffe-accordion-react
252
-
253
- ## [7.0.14](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.13...@sb1/ffe-accordion-react@7.0.14) (2020-03-17)
254
-
255
- **Note:** Version bump only for package @sb1/ffe-accordion-react
256
-
257
- ## [7.0.13](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.12...@sb1/ffe-accordion-react@7.0.13) (2020-03-16)
258
-
259
- **Note:** Version bump only for package @sb1/ffe-accordion-react
260
-
261
- ## [7.0.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.11...@sb1/ffe-accordion-react@7.0.12) (2020-03-13)
262
-
263
- **Note:** Version bump only for package @sb1/ffe-accordion-react
264
-
265
- ## [7.0.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.10...@sb1/ffe-accordion-react@7.0.11) (2020-03-10)
266
-
267
- **Note:** Version bump only for package @sb1/ffe-accordion-react
268
-
269
- ## [7.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.9...@sb1/ffe-accordion-react@7.0.10) (2020-03-06)
270
-
271
- **Note:** Version bump only for package @sb1/ffe-accordion-react
272
-
273
- ## [7.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.8...@sb1/ffe-accordion-react@7.0.9) (2020-02-26)
274
-
275
- **Note:** Version bump only for package @sb1/ffe-accordion-react
276
-
277
- ## [7.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.7...@sb1/ffe-accordion-react@7.0.8) (2020-02-26)
278
-
279
- ### Bug Fixes
280
-
281
- - **ffe-accordion-react:** update uuid to version 7.0.0 ([dcf4aee](https://github.com/SpareBank1/designsystem/commit/dcf4aee5cb3341f936343e54c469fc0208bb6f0b))
282
-
283
- ## [7.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.5...@sb1/ffe-accordion-react@7.0.7) (2020-02-26)
284
-
285
- **Note:** Version bump only for package @sb1/ffe-accordion-react
286
-
287
- ## [7.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.5...@sb1/ffe-accordion-react@7.0.6) (2020-02-25)
288
-
289
- **Note:** Version bump only for package @sb1/ffe-accordion-react
290
-
291
- ## [7.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.4...@sb1/ffe-accordion-react@7.0.5) (2019-11-20)
292
-
293
- **Note:** Version bump only for package @sb1/ffe-accordion-react
294
-
295
- ## [7.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.3...@sb1/ffe-accordion-react@7.0.4) (2019-10-28)
296
-
297
- **Note:** Version bump only for package @sb1/ffe-accordion-react
298
-
299
- ## [7.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.2...@sb1/ffe-accordion-react@7.0.3) (2019-10-03)
300
-
301
- **Note:** Version bump only for package @sb1/ffe-accordion-react
302
-
303
- ## [7.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.1...@sb1/ffe-accordion-react@7.0.2) (2019-08-28)
304
-
305
- **Note:** Version bump only for package @sb1/ffe-accordion-react
306
-
307
- ## [7.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@7.0.0...@sb1/ffe-accordion-react@7.0.1) (2019-08-28)
308
-
309
- ### Bug Fixes
310
-
311
- - **ffe-accordion-react:** use our own Collapse component ([04db7bc](https://github.com/SpareBank1/designsystem/commit/04db7bc))
312
-
313
- # [7.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.3.4...@sb1/ffe-accordion-react@7.0.0) (2019-08-27)
314
-
315
- ### chore
316
-
317
- - bump React to 16.9 to allow for using hooks etc ([e3901f1](https://github.com/SpareBank1/designsystem/commit/e3901f1))
318
-
319
- ### BREAKING CHANGES
320
-
321
- - peerDep of React is raised to 16.9. While this in itself
322
- isn't a breaking change, it allows for the use of hooks in later releases.
323
- Such changes would just be a minor version, or even a patch, but without
324
- this major version bump it would result in a runtime error for consumers.
325
-
326
- ## [6.3.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.3.3...@sb1/ffe-accordion-react@6.3.4) (2019-08-12)
327
-
328
- **Note:** Version bump only for package @sb1/ffe-accordion-react
329
-
330
- ## [6.3.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.3.2...@sb1/ffe-accordion-react@6.3.3) (2019-04-24)
331
-
332
- **Note:** Version bump only for package @sb1/ffe-accordion-react
333
-
334
- ## [6.3.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.3.1...@sb1/ffe-accordion-react@6.3.2) (2019-04-08)
335
-
336
- **Note:** Version bump only for package @sb1/ffe-accordion-react
337
-
338
- ## [6.3.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.3.0...@sb1/ffe-accordion-react@6.3.1) (2019-03-25)
339
-
340
- **Note:** Version bump only for package @sb1/ffe-accordion-react
341
-
342
- # [6.3.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.12...@sb1/ffe-accordion-react@6.3.0) (2019-03-14)
343
-
344
- ### Features
345
-
346
- - **ffe-accordion-react:** DIG-48762 - Added support for supplying id to AccordionItem ([1943cbf](https://github.com/SpareBank1/designsystem/commit/1943cbf))
347
-
348
- ## [6.2.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.11...@sb1/ffe-accordion-react@6.2.12) (2019-02-18)
349
-
350
- **Note:** Version bump only for package @sb1/ffe-accordion-react
351
-
352
- ## [6.2.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.10...@sb1/ffe-accordion-react@6.2.11) (2019-01-29)
353
-
354
- **Note:** Version bump only for package @sb1/ffe-accordion-react
355
-
356
- ## [6.2.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.9...@sb1/ffe-accordion-react@6.2.10) (2018-12-19)
357
-
358
- **Note:** Version bump only for package @sb1/ffe-accordion-react
359
-
360
- ## [6.2.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.8...@sb1/ffe-accordion-react@6.2.9) (2018-12-18)
361
-
362
- **Note:** Version bump only for package @sb1/ffe-accordion-react
363
-
364
- ## [6.2.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.7...@sb1/ffe-accordion-react@6.2.8) (2018-12-11)
365
-
366
- ### Bug Fixes
367
-
368
- - Build tree shakeable packages ([fb4a9ea](https://github.com/SpareBank1/designsystem/commit/fb4a9ea))
369
-
370
- ## [6.2.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.6...@sb1/ffe-accordion-react@6.2.7) (2018-12-04)
371
-
372
- **Note:** Version bump only for package @sb1/ffe-accordion-react
373
-
374
- ## [6.2.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.5...@sb1/ffe-accordion-react@6.2.6) (2018-11-26)
375
-
376
- **Note:** Version bump only for package @sb1/ffe-accordion-react
377
-
378
- ## [6.2.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.4...@sb1/ffe-accordion-react@6.2.5) (2018-11-16)
379
-
380
- **Note:** Version bump only for package @sb1/ffe-accordion-react
381
-
382
- ## [6.2.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.3...@sb1/ffe-accordion-react@6.2.4) (2018-11-13)
383
-
384
- **Note:** Version bump only for package @sb1/ffe-accordion-react
385
-
386
- ## [6.2.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.2...@sb1/ffe-accordion-react@6.2.3) (2018-11-08)
387
-
388
- **Note:** Version bump only for package @sb1/ffe-accordion-react
389
-
390
- ## [6.2.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.1...@sb1/ffe-accordion-react@6.2.2) (2018-10-17)
391
-
392
- **Note:** Version bump only for package @sb1/ffe-accordion-react
393
-
394
- ## [6.2.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.2.0...@sb1/ffe-accordion-react@6.2.1) (2018-10-15)
395
-
396
- **Note:** Version bump only for package @sb1/ffe-accordion-react
397
-
398
- # [6.2.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.1.1...@sb1/ffe-accordion-react@6.2.0) (2018-10-09)
399
-
400
- ### Features
401
-
402
- - **ffe-accordion-react:** Add classname prop for Accordion and AccordionItem ([79859cb](https://github.com/SpareBank1/designsystem/commit/79859cb))
403
-
404
- <a name="6.1.1"></a>
405
-
406
- ## [6.1.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.1.0...@sb1/ffe-accordion-react@6.1.1) (2018-09-24)
407
-
408
- ### Bug Fixes
409
-
410
- - **ffe-accordion-react:** fixed async issues with setState ([706dee5](https://github.com/SpareBank1/designsystem/commit/706dee5))
411
-
412
- <a name="6.1.0"></a>
413
-
414
- # [6.1.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.0.7...@sb1/ffe-accordion-react@6.1.0) (2018-09-06)
415
-
416
- ### Features
417
-
418
- - **ffe-accordion-react:** Use css transition ([8aae70c](https://github.com/SpareBank1/designsystem/commit/8aae70c))
419
- - **ffe-accordion-react:** Use new modifier class names ([8bf9c03](https://github.com/SpareBank1/designsystem/commit/8bf9c03))
420
-
421
- ### BREAKING CHANGES
422
-
423
- - **ffe-accordion-react:** Replaces `react-collapse` with `react-css-collapse`,
424
- which is internally used for toggling the accordion items with help of
425
- css transitions. Further, this change drops support for property
426
- `hasNestedCollapse`, which is a flag used by `react-collapse`.
427
-
428
- See https://www.npmjs.com/package/react-css-collapse
429
-
430
- <a name="6.0.7"></a>
431
-
432
- ## [6.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.0.6...@sb1/ffe-accordion-react@6.0.7) (2018-08-09)
433
-
434
- **Note:** Version bump only for package @sb1/ffe-accordion-react
435
-
436
- <a name="6.0.6"></a>
437
-
438
- ## [6.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.0.5...@sb1/ffe-accordion-react@6.0.6) (2018-06-14)
439
-
440
- **Note:** Version bump only for package @sb1/ffe-accordion-react
441
-
442
- <a name="6.0.5"></a>
443
-
444
- ## [6.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.0.4...@sb1/ffe-accordion-react@6.0.5) (2018-06-04)
445
-
446
- **Note:** Version bump only for package @sb1/ffe-accordion-react
447
-
448
- <a name="6.0.4"></a>
449
-
450
- ## [6.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.0.3...@sb1/ffe-accordion-react@6.0.4) (2018-06-04)
451
-
452
- **Note:** Version bump only for package @sb1/ffe-accordion-react
453
-
454
- <a name="6.0.3"></a>
455
-
456
- ## [6.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.0.2...@sb1/ffe-accordion-react@6.0.3) (2018-05-29)
457
-
458
- **Note:** Version bump only for package @sb1/ffe-accordion-react
459
-
460
- <a name="6.0.2"></a>
461
-
462
- ## [6.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.0.1...@sb1/ffe-accordion-react@6.0.2) (2018-05-04)
463
-
464
- **Note:** Version bump only for package @sb1/ffe-accordion-react
465
-
466
- <a name="6.0.1"></a>
467
-
468
- ## [6.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@6.0.0...@sb1/ffe-accordion-react@6.0.1) (2018-04-11)
469
-
470
- **Note:** Version bump only for package @sb1/ffe-accordion-react
471
-
472
- <a name="6.0.0"></a>
473
-
474
- # [6.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@5.0.5...@sb1/ffe-accordion-react@6.0.0) (2018-04-11)
475
-
476
- ### Features
477
-
478
- - **ffe-accordion-react:** Make AccordionItems controllable ([a2761e8](https://github.com/SpareBank1/designsystem/commit/a2761e8)), closes [#155](https://github.com/SpareBank1/designsystem/issues/155)
479
-
480
- ### BREAKING CHANGES
481
-
482
- - **ffe-accordion-react:** `AccordionItem`'s prop `isOpen` is renamed to
483
- `defaultOpen`, while a new `open` prop let's the consumer control the
484
- open state of the accordion. To migrate, simply rename all `isOpen`
485
- props to `defaultOpen`.
486
- - **ffe-accordion-react:** `AccordionItem`'s props `onOpen` and `onClose` replaced
487
- with `onToggleOpen(nextIsOpen)`.
488
-
489
- <a name="5.0.5"></a>
490
-
491
- ## [5.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@5.0.4...@sb1/ffe-accordion-react@5.0.5) (2018-04-06)
492
-
493
- **Note:** Version bump only for package @sb1/ffe-accordion-react
494
-
495
- <a name="5.0.4"></a>
496
-
497
- ## [5.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@5.0.3...@sb1/ffe-accordion-react@5.0.4) (2018-03-27)
498
-
499
- **Note:** Version bump only for package @sb1/ffe-accordion-react
500
-
501
- <a name="5.0.3"></a>
502
-
503
- ## [5.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@5.0.2...@sb1/ffe-accordion-react@5.0.3) (2018-03-13)
504
-
505
- **Note:** Version bump only for package @sb1/ffe-accordion-react
506
-
507
- <a name="5.0.2"></a>
508
-
509
- ## [5.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@5.0.0...@sb1/ffe-accordion-react@5.0.2) (2018-03-07)
510
-
511
- ### Bug Fixes
512
-
513
- - Correct peerDependencies after breaking change ([aab59ce](https://github.com/SpareBank1/designsystem/commit/aab59ce))
514
-
515
- <a name="5.0.1"></a>
516
-
517
- ## [5.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-accordion-react@5.0.0...@sb1/ffe-accordion-react@5.0.1) (2018-03-02)
518
-
519
- ### Bug Fixes
520
-
521
- - Correct peerDependencies after breaking change ([4318363](https://github.com/SpareBank1/designsystem/commit/4318363))
522
-
523
- <a name="5.0.0"></a>
524
-
525
- # 5.0.0 (2018-02-25)
526
-
527
- ### Bug Fixes
528
-
529
- - **ffe-accordion-react:** Create ID only once ([dc94925](https://github.com/SpareBank1/designsystem/commit/dc94925))
530
- - **ffe-accordion-react:** Remove "expandableContent" prop ([be8043d](https://github.com/SpareBank1/designsystem/commit/be8043d))
531
- - Treeshake ffe-icons ([6bc9d6f](https://github.com/SpareBank1/designsystem/commit/6bc9d6f))
532
- - Upgrade ffe-icons-react to v4 ([01bc161](https://github.com/SpareBank1/designsystem/commit/01bc161))
533
-
534
- ### Chores
535
-
536
- - add [@sb1](https://github.com/sb1)/ scope to all packages ([37efbb4](https://github.com/SpareBank1/designsystem/commit/37efbb4))
537
-
538
- ### BREAKING CHANGES
539
-
540
- - All packages have been renamed to add the @sb1 scope.
541
-
542
- See links [1] and [2] to read more about package scopes.
543
-
544
- Unfortunately this requires you update both your dependencies in
545
- `package.json` and all `import` or `require` statements in your code.
546
- Also, you unfortunately have to upgrade all FFE packages at once due to
547
- dependency between packages. If you are on the latest version prior to
548
- this breaking change the upgrade should be a matter of updating
549
- `package.json` with new package names and versions, and updating your
550
- imports.
551
-
552
- To help find the proper package versions you can either browse to the
553
- packages you need or check out the list of Git tags either on
554
- Github [3] or by cloning the repository and running the `git tag`
555
- command. All package versions get a tag in the format
556
- _package@version_.
557
-
558
- Update your `package.json` with the latest package version and add the
559
- @sb1 scope to the package name:
560
-
561
- ```diff
562
- - "ffe-core": "11.0.2",
563
- + "@sb1/ffe-core": "11.0.2",
564
- ```
565
-
566
- Scoped packages all get put in a subdirectory in `node_modules/`. In our
567
- case packages will be put in the `node_modules/@sb1/` directory. If your
568
- build depends on file paths (for instance for copying fonts) you need to
569
- update that path to include the scope.
570
-
571
- The directory structure also means you have to update your imports, both
572
- in Less and in JavaScript.
573
-
574
- Using `less-plugin-npm-import`:
575
-
576
- ```diff
577
- - @import 'npm://ffe-core/less/ffe';
578
- + @import 'npm://@sb1/ffe-core/less/ffe';
579
- ```
580
-
581
- Using Webpack:
582
-
583
- ```diff
584
- - @import '~ffe-core/less/ffe';
585
- + @import '~@sb1/ffe-core/less/ffe';
586
- ```
587
-
588
- Using plain old paths:
589
-
590
- ```diff
591
- - @import '../path/to/node_modules/ffe-core/less/ffe';
592
- + @import '../path/to/node_modules/@sb1/ffe-core/less/ffe';
593
- ```
594
-
595
- JavaScript `import`:
596
-
597
- ```diff
598
- - import { ActionButton } from 'ffe-buttons-react';
599
- + import { ActionButton } from '@sb1/ffe-buttons-react';
600
- ```
601
-
602
- JavaScript `require`:
603
-
604
- ```diff
605
- - const { ActionButton } = require('ffe-buttons-react').default;
606
- + const { ActionButton } = require('@sb1/ffe-buttons-react').default;
607
- ```
608
-
609
- [1]: https://docs.npmjs.com/misc/scope
610
- [2]: https://docs.npmjs.com/getting-started/scoped-packages
611
- [3]: https://github.com/sparebank1/designsystem/tags
612
-
613
- - **ffe-accordion-react:** Replace "expandedContent" with children- & title- prop
614
-
615
- This commit changes the structure of ffe-accordion-react by making
616
- the expandable content of the accordion item the children, while the heading of the item
617
- is now a new "title"-prop. This previous soulution was somewhat backwards,
618
- while this change will be more the React way of doing things.
619
-
620
- <a name="4.0.10"></a>
621
-
622
- ## [4.0.10](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.9...ffe-accordion-react@4.0.10) (2018-02-23)
623
-
624
- **Note:** Version bump only for package ffe-accordion-react
625
-
626
- <a name="4.0.9"></a>
627
-
628
- ## [4.0.9](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.8...ffe-accordion-react@4.0.9) (2018-02-22)
629
-
630
- **Note:** Version bump only for package ffe-accordion-react
631
-
632
- <a name="4.0.8"></a>
633
-
634
- ## [4.0.8](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.7...ffe-accordion-react@4.0.8) (2018-02-20)
635
-
636
- **Note:** Version bump only for package ffe-accordion-react
637
-
638
- <a name="4.0.7"></a>
639
-
640
- ## [4.0.7](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.6...ffe-accordion-react@4.0.7) (2018-02-15)
641
-
642
- **Note:** Version bump only for package ffe-accordion-react
643
-
644
- <a name="4.0.6"></a>
645
-
646
- ## [4.0.6](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.5...ffe-accordion-react@4.0.6) (2018-02-01)
647
-
648
- **Note:** Version bump only for package ffe-accordion-react
649
-
650
- <a name="4.0.5"></a>
651
-
652
- ## [4.0.5](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.4...ffe-accordion-react@4.0.5) (2018-01-31)
653
-
654
- ### Bug Fixes
655
-
656
- - Treeshake ffe-icons
657
-
658
- <a name="4.0.4"></a>
659
-
660
- ## [4.0.4](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.3...ffe-accordion-react@4.0.4) (2018-01-31)
661
-
662
- **Note:** Version bump only for package ffe-accordion-react
663
-
664
- <a name="4.0.3"></a>
665
-
666
- ## [4.0.3](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.2...ffe-accordion-react@4.0.3) (2018-01-19)
667
-
668
- **Note:** Version bump only for package ffe-accordion-react
669
-
670
- <a name="4.0.2"></a>
671
-
672
- ## [4.0.2](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.1...ffe-accordion-react@4.0.2) (2018-01-19)
673
-
674
- ### Bug Fixes
675
-
676
- - Upgrade ffe-icons-react to v4
677
-
678
- <a name="4.0.1"></a>
679
-
680
- ## [4.0.1](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@4.0.0...ffe-accordion-react@4.0.1) (2018-01-19)
681
-
682
- **Note:** Version bump only for package ffe-accordion-react
683
-
684
- <a name="4.0.0"></a>
685
-
686
- # [4.0.0](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@3.1.6...ffe-accordion-react@4.0.0) (2018-01-19)
687
-
688
- ### Bug Fixes
689
-
690
- - **ffe-accordion-react:** Remove "expandableContent" prop
691
-
692
- ### BREAKING CHANGES
693
-
694
- - **ffe-accordion-react:** Replace "expandedContent" with children- & title- prop
695
-
696
- This commit changes the structure of ffe-accordion-react by making
697
- the expandable content of the accordion item the children, while the heading of the item
698
- is now a new "title"-prop. This previous soulution was somewhat backwards,
699
- while this change will be more the React way of doing things.
700
-
701
- <a name="3.1.6"></a>
702
-
703
- ## [3.1.6](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@3.1.5...ffe-accordion-react@3.1.6) (2018-01-10)
704
-
705
- **Note:** Version bump only for package ffe-accordion-react
706
-
707
- <a name="3.1.5"></a>
708
-
709
- ## [3.1.5](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@3.1.4...ffe-accordion-react@3.1.5) (2018-01-09)
710
-
711
- **Note:** Version bump only for package ffe-accordion-react
712
-
713
- <a name="3.1.4"></a>
714
-
715
- ## [3.1.4](https://github.com/SpareBank1/designsystem/compare/ffe-accordion-react@3.1.3...ffe-accordion-react@3.1.4) (2018-01-05)
716
-
717
- **Note:** Version bump only for package ffe-accordion-react
718
-
719
- <a name="3.1.3"></a>
720
-
721
- ## 3.1.3 (2018-01-04)
722
-
723
- ### Bug Fixes
724
-
725
- - **ffe-accordion-react:** Create ID only once
726
-
727
- ## 3.1.2
728
-
729
- - Added documentation and refactored internally.
730
-
731
- ## 3.1.1
732
-
733
- - Removed button and replaced with div to fix bug in internet explorer
734
-
735
- # 3.1.0
736
-
737
- - Upgraded to react 16. Enzyme to 3.1.1 to support react 16. Added repository to remove warning.
738
- Upgraded ffe-accordian to remove warning.
739
-
740
- ## 3.0.1
741
-
742
- - Fix a propType error that would happen if isOpen was not set on AccordionItem. Collapse complained that
743
- `this.state.isOpen` was undefined, so it now defaults to the boolean `false`.
744
-
745
- # 3.0.0
746
-
747
- ### BREAKING CHANGES
748
-
749
- - Changing to use flex to align items instead of absolute positioning
750
-
751
- # 2.1.0
752
-
753
- Use `react-collapse` instead of ffe-expandable-react, since the latter is deprecated. Also add a new property
754
- `hasNestedCollapse`, which lets the consumer use another `react-collapse` element inside the accordion.
755
-
756
- ## 2.0.4
757
-
758
- Set `type="button"` for Button-toggler to prevent submit when accordion is used inside a form.
759
-
760
- ## .2.0.3
761
-
762
- - Use PropTypes from prop-types package
763
-
764
- ## 2.0.2
765
-
766
- Remove the `--white` modifier classes, since they are now the default.
767
-
768
- ## 2.0.1
769
-
770
- Bump ffe-accordion version.
771
-
772
- # 2.0.0
773
-
774
- ### BREAKING CHANGES
775
-
776
- Use `<button>` (instead of `<a>`) for the toggler to prevent unnecessary links.
777
- Add `ffe-accordion` as a peer dependency.
778
-
779
- ## 1.2.7
780
-
781
- Fixed bug in aria label id
782
-
783
- ## 1.2.6
784
-
785
- Update ffe-expandable-react to 1.0.5 or above
786
-
787
- ## 1.2.5
788
-
789
- Update eslint configuration
790
-
791
- ## 1.2.4
792
-
793
- This release fixes a few issues from v1.2.3.
794
-
795
- - Use `uuid` instead of `nfe-hash` for unique IDs.
796
- - Make `uuid` and `isOpen` optional props.
797
-
798
- ## 1.2.3
799
-
800
- Make accordion items have globally unique IDs.
801
-
802
- ## 1.2.2
803
-
804
- Updated ffe-expandable-react to use react-height to calculate panel height
805
-
806
- ## 1.2.1
807
-
808
- Updated ffe-expandable-react and ffe-icons-react to fix some bugs.
809
-
810
- # 1.2.0
811
-
812
- Added aria-label-tag to be able to set text screen-readers read.
813
-
814
- # 1.0.0
815
-
816
- Initial version
@@ -1,83 +0,0 @@
1
- import Accordion from './Accordion';
2
- import AccordionItem from './AccordionItem';
3
- import React from 'react';
4
- import { fireEvent, render, screen } from '@testing-library/react';
5
- describe('<Accordion />', function () {
6
- it('should render headings', function () {
7
- render( /*#__PURE__*/React.createElement(Accordion, {
8
- headingLevel: 3
9
- }, /*#__PURE__*/React.createElement(AccordionItem, {
10
- heading: "heading1"
11
- }, "content1"), /*#__PURE__*/React.createElement(AccordionItem, {
12
- heading: "heading2"
13
- }, "content2")));
14
- expect(screen.getByRole('heading', {
15
- name: /heading1/i,
16
- level: 3
17
- })).toBeInTheDocument();
18
- expect(screen.getByRole('heading', {
19
- name: /heading2/i,
20
- level: 3
21
- })).toBeInTheDocument();
22
- });
23
- it('should set up correct associations between heading and content', function () {
24
- render( /*#__PURE__*/React.createElement(Accordion, {
25
- headingLevel: 3
26
- }, /*#__PURE__*/React.createElement(AccordionItem, {
27
- defaultOpen: true,
28
- heading: "heading1"
29
- }, "content1"), /*#__PURE__*/React.createElement(AccordionItem, {
30
- defaultOpen: true,
31
- heading: "heading2"
32
- }, "content2")));
33
- var firstButton = screen.getByRole('button', {
34
- name: /heading1/i
35
- });
36
- var firstContent = screen.getByRole('region', {
37
- name: /heading1/i
38
- });
39
- expect(firstButton.getAttribute('aria-controls')).toEqual(firstContent.getAttribute('id'));
40
- expect(firstContent.getAttribute('aria-labelledby')).toEqual(firstButton.getAttribute('id'));
41
- var secondButton = screen.getByRole('button', {
42
- name: /heading2/i
43
- });
44
- var secondContent = screen.getByRole('region', {
45
- name: /heading2/i
46
- });
47
- expect(secondButton.getAttribute('aria-controls')).toEqual(secondContent.getAttribute('id'));
48
- expect(secondContent.getAttribute('aria-labelledby')).toEqual(secondButton.getAttribute('id'));
49
- });
50
- it('should expand sections', function () {
51
- render( /*#__PURE__*/React.createElement(Accordion, {
52
- headingLevel: 3
53
- }, /*#__PURE__*/React.createElement(AccordionItem, {
54
- heading: "heading1"
55
- }, "content1"), /*#__PURE__*/React.createElement(AccordionItem, {
56
- heading: "heading2"
57
- }, "content2")));
58
- var firstButton = screen.getByRole('button', {
59
- name: /heading1/i
60
- });
61
- var secondButton = screen.getByRole('button', {
62
- name: /heading2/i
63
- });
64
- expect(firstButton.getAttribute('aria-expanded')).toEqual('false');
65
- expect(secondButton.getAttribute('aria-expanded')).toEqual('false');
66
- expect(screen.queryByRole('region', {
67
- name: /heading1/i
68
- })).not.toBeInTheDocument();
69
- expect(screen.queryByRole('region', {
70
- name: /heading2/i
71
- })).not.toBeInTheDocument();
72
- fireEvent.click(firstButton);
73
- fireEvent.click(secondButton);
74
- expect(firstButton.getAttribute('aria-expanded')).toEqual('true');
75
- expect(secondButton.getAttribute('aria-expanded')).toEqual('true');
76
- expect(screen.getByRole('region', {
77
- name: /heading1/i
78
- })).toBeInTheDocument();
79
- expect(screen.getByRole('region', {
80
- name: /heading2/i
81
- })).toBeInTheDocument();
82
- });
83
- });
@@ -1,103 +0,0 @@
1
- "use strict";
2
-
3
- var _Accordion = _interopRequireDefault(require("./Accordion"));
4
-
5
- var _AccordionItem = _interopRequireDefault(require("./AccordionItem"));
6
-
7
- var _react = _interopRequireDefault(require("react"));
8
-
9
- var _react2 = require("@testing-library/react");
10
-
11
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
-
13
- describe('<Accordion />', function () {
14
- it('should render headings', function () {
15
- (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_Accordion.default, {
16
- headingLevel: 3
17
- }, /*#__PURE__*/_react.default.createElement(_AccordionItem.default, {
18
- heading: "heading1"
19
- }, "content1"), /*#__PURE__*/_react.default.createElement(_AccordionItem.default, {
20
- heading: "heading2"
21
- }, "content2")));
22
- expect(_react2.screen.getByRole('heading', {
23
- name: /heading1/i,
24
- level: 3
25
- })).toBeInTheDocument();
26
- expect(_react2.screen.getByRole('heading', {
27
- name: /heading2/i,
28
- level: 3
29
- })).toBeInTheDocument();
30
- });
31
- it('should set up correct associations between heading and content', function () {
32
- (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_Accordion.default, {
33
- headingLevel: 3
34
- }, /*#__PURE__*/_react.default.createElement(_AccordionItem.default, {
35
- defaultOpen: true,
36
- heading: "heading1"
37
- }, "content1"), /*#__PURE__*/_react.default.createElement(_AccordionItem.default, {
38
- defaultOpen: true,
39
- heading: "heading2"
40
- }, "content2")));
41
-
42
- var firstButton = _react2.screen.getByRole('button', {
43
- name: /heading1/i
44
- });
45
-
46
- var firstContent = _react2.screen.getByRole('region', {
47
- name: /heading1/i
48
- });
49
-
50
- expect(firstButton.getAttribute('aria-controls')).toEqual(firstContent.getAttribute('id'));
51
- expect(firstContent.getAttribute('aria-labelledby')).toEqual(firstButton.getAttribute('id'));
52
-
53
- var secondButton = _react2.screen.getByRole('button', {
54
- name: /heading2/i
55
- });
56
-
57
- var secondContent = _react2.screen.getByRole('region', {
58
- name: /heading2/i
59
- });
60
-
61
- expect(secondButton.getAttribute('aria-controls')).toEqual(secondContent.getAttribute('id'));
62
- expect(secondContent.getAttribute('aria-labelledby')).toEqual(secondButton.getAttribute('id'));
63
- });
64
- it('should expand sections', function () {
65
- (0, _react2.render)( /*#__PURE__*/_react.default.createElement(_Accordion.default, {
66
- headingLevel: 3
67
- }, /*#__PURE__*/_react.default.createElement(_AccordionItem.default, {
68
- heading: "heading1"
69
- }, "content1"), /*#__PURE__*/_react.default.createElement(_AccordionItem.default, {
70
- heading: "heading2"
71
- }, "content2")));
72
-
73
- var firstButton = _react2.screen.getByRole('button', {
74
- name: /heading1/i
75
- });
76
-
77
- var secondButton = _react2.screen.getByRole('button', {
78
- name: /heading2/i
79
- });
80
-
81
- expect(firstButton.getAttribute('aria-expanded')).toEqual('false');
82
- expect(secondButton.getAttribute('aria-expanded')).toEqual('false');
83
- expect(_react2.screen.queryByRole('region', {
84
- name: /heading1/i
85
- })).not.toBeInTheDocument();
86
- expect(_react2.screen.queryByRole('region', {
87
- name: /heading2/i
88
- })).not.toBeInTheDocument();
89
-
90
- _react2.fireEvent.click(firstButton);
91
-
92
- _react2.fireEvent.click(secondButton);
93
-
94
- expect(firstButton.getAttribute('aria-expanded')).toEqual('true');
95
- expect(secondButton.getAttribute('aria-expanded')).toEqual('true');
96
- expect(_react2.screen.getByRole('region', {
97
- name: /heading1/i
98
- })).toBeInTheDocument();
99
- expect(_react2.screen.getByRole('region', {
100
- name: /heading2/i
101
- })).toBeInTheDocument();
102
- });
103
- });