diff --git a/commitlint.config.js b/commitlint.config.js index 36ea8c1c84..606c61e9c0 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -27,7 +27,6 @@ module.exports = { 'ffe-collapse-react', 'ffe-datepicker', 'ffe-datepicker-react', - 'ffe-details-list-react', 'ffe-dropdown-react', 'ffe-feedback', 'ffe-feedback-react', diff --git a/component-overview/examples/details-list/DetailList.jsx b/component-overview/examples/details-list/DetailList.jsx deleted file mode 100644 index 9691a60774..0000000000 --- a/component-overview/examples/details-list/DetailList.jsx +++ /dev/null @@ -1,32 +0,0 @@ -import { DetailList, Detail, DetailContent } from '@sb1/ffe-details-list-react'; -import { TertiaryButton } from '@sb1/ffe-buttons-react'; - - - - 4 000,- - - - - 4 000,- - - f}>ENDRE - - - - - 30 000 km - - Kilometerstanden kan ikke overstige 80 100 km før 17.02.2017 - - - - - 30 000 km - - Kilometerstanden kan ikke overstige 80 100 km før 17.02.2017 - - - f}>ENDRE - - - diff --git a/component-overview/package.json b/component-overview/package.json index 2f9a166c02..0915da6980 100644 --- a/component-overview/package.json +++ b/component-overview/package.json @@ -53,7 +53,6 @@ "@sb1/ffe-core-react": "^8.1.5", "@sb1/ffe-datepicker": "^12.0.50", "@sb1/ffe-datepicker-react": "^8.0.17", - "@sb1/ffe-details-list-react": "^5.0.8", "@sb1/ffe-dropdown-react": "^7.0.10", "@sb1/ffe-feedback": "^1.2.21", "@sb1/ffe-feedback-react": "^3.3.12", diff --git a/packages/ffe-details-list-react/CHANGELOG.md b/packages/ffe-details-list-react/CHANGELOG.md deleted file mode 100644 index f9a43b2266..0000000000 --- a/packages/ffe-details-list-react/CHANGELOG.md +++ /dev/null @@ -1,802 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [5.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@5.0.7...@sb1/ffe-details-list-react@5.0.8) (2024-06-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - - - -## [5.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@5.0.6...@sb1/ffe-details-list-react@5.0.7) (2024-06-11) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - - - -## [5.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@5.0.5...@sb1/ffe-details-list-react@5.0.6) (2024-06-10) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - - - -## [5.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@5.0.4...@sb1/ffe-details-list-react@5.0.5) (2024-06-05) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - - - -## [5.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@5.0.3...@sb1/ffe-details-list-react@5.0.4) (2024-06-05) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [5.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@5.0.2...@sb1/ffe-details-list-react@5.0.3) (2024-06-04) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [5.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@5.0.1...@sb1/ffe-details-list-react@5.0.2) (2024-05-29) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [5.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@5.0.0...@sb1/ffe-details-list-react@5.0.1) (2024-05-21) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -# [5.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.27...@sb1/ffe-details-list-react@5.0.0) (2024-05-18) - -### Features - -- **ffe-details-list-react:** rewrite to ts ([70173fd](https://github.com/SpareBank1/designsystem/commit/70173fd0bad620060426d7dc605cb3bcb785cbfe)) - -### BREAKING CHANGES - -- **ffe-details-list-react:** remove manual types - -## [4.0.27](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.26...@sb1/ffe-details-list-react@4.0.27) (2024-05-13) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.26](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.25...@sb1/ffe-details-list-react@4.0.26) (2024-05-09) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.25](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.24...@sb1/ffe-details-list-react@4.0.25) (2024-05-07) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.24](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.23...@sb1/ffe-details-list-react@4.0.24) (2024-05-03) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.23](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.22...@sb1/ffe-details-list-react@4.0.23) (2024-05-03) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.22](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.21...@sb1/ffe-details-list-react@4.0.22) (2024-04-29) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.21](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.20...@sb1/ffe-details-list-react@4.0.21) (2024-04-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.20](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.19...@sb1/ffe-details-list-react@4.0.20) (2024-03-14) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.19](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.18...@sb1/ffe-details-list-react@4.0.19) (2024-03-08) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.18](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.17...@sb1/ffe-details-list-react@4.0.18) (2024-02-28) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.17](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.16...@sb1/ffe-details-list-react@4.0.17) (2024-02-26) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.16](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.15...@sb1/ffe-details-list-react@4.0.16) (2024-02-12) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.15](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.14...@sb1/ffe-details-list-react@4.0.15) (2024-02-05) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.14](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.13...@sb1/ffe-details-list-react@4.0.14) (2024-02-05) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.13](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.12...@sb1/ffe-details-list-react@4.0.13) (2024-01-16) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.11...@sb1/ffe-details-list-react@4.0.12) (2023-12-06) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.10...@sb1/ffe-details-list-react@4.0.11) (2023-12-05) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.9...@sb1/ffe-details-list-react@4.0.10) (2023-10-19) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.8...@sb1/ffe-details-list-react@4.0.9) (2023-10-11) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.7...@sb1/ffe-details-list-react@4.0.8) (2023-09-15) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.6...@sb1/ffe-details-list-react@4.0.7) (2023-06-12) - -### Bug Fixes - -- **ffe-details-list-react:** eksporterer typer ([9300eea](https://github.com/SpareBank1/designsystem/commit/9300eeaa4e7bb1dcf10a5b84f1bcf7c7a1014bcc)) -- **ffe-details-list-react:** remove bottomPadding from grid ([ece75f8](https://github.com/SpareBank1/designsystem/commit/ece75f8c74fc4ba79379d189793c013d2aacb038)) - -## [4.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.5...@sb1/ffe-details-list-react@4.0.6) (2023-05-11) - -### Bug Fixes - -- **ffe-details-list-react:** removed bottomPadding prod from GridCol ([3add437](https://github.com/SpareBank1/designsystem/commit/3add43741b38f339ce61c80f9cf053bf541b9fec)) - -## [4.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.4...@sb1/ffe-details-list-react@4.0.5) (2023-04-28) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.3...@sb1/ffe-details-list-react@4.0.4) (2023-04-27) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.2...@sb1/ffe-details-list-react@4.0.3) (2023-02-08) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.1...@sb1/ffe-details-list-react@4.0.2) (2023-01-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [4.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@4.0.0...@sb1/ffe-details-list-react@4.0.1) (2022-12-19) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -# [4.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.1.2...@sb1/ffe-details-list-react@4.0.0) (2022-12-05) - -### Features - -- **ffe-details-list-react:** update internal dependencies ([412398b](https://github.com/SpareBank1/designsystem/commit/412398bebb5b83cdc77a91f3fc21c686a0cd5e62)) - -### BREAKING CHANGES - -- **ffe-details-list-react:** Makes the styling packages @sb1/ffe-grid and - @sb1/ffe-grid-react required dependencies and removes these as peer - dependencies. - -## [3.1.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.1.1...@sb1/ffe-details-list-react@3.1.2) (2022-11-28) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.1.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.1.0...@sb1/ffe-details-list-react@3.1.1) (2022-11-28) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -# [3.1.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.78...@sb1/ffe-details-list-react@3.1.0) (2022-10-31) - -### Features - -- **ffe-details-list-react:** add types ([a6dc656](https://github.com/SpareBank1/designsystem/commit/a6dc656d079ca29d3b20f923543213cda9211e52)) - -## [3.0.78](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.77...@sb1/ffe-details-list-react@3.0.78) (2022-10-28) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.77](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.76...@sb1/ffe-details-list-react@3.0.77) (2022-10-21) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.76](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.75...@sb1/ffe-details-list-react@3.0.76) (2022-10-20) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.75](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.74...@sb1/ffe-details-list-react@3.0.75) (2022-10-19) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.74](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.73...@sb1/ffe-details-list-react@3.0.74) (2022-10-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.73](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.72...@sb1/ffe-details-list-react@3.0.73) (2022-10-14) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.72](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.71...@sb1/ffe-details-list-react@3.0.72) (2022-10-04) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.71](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.70...@sb1/ffe-details-list-react@3.0.71) (2022-10-04) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.70](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.69...@sb1/ffe-details-list-react@3.0.70) (2022-09-28) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.69](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.68...@sb1/ffe-details-list-react@3.0.69) (2022-09-09) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.68](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.67...@sb1/ffe-details-list-react@3.0.68) (2022-08-31) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.67](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.66...@sb1/ffe-details-list-react@3.0.67) (2022-08-08) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.66](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.65...@sb1/ffe-details-list-react@3.0.66) (2022-08-05) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.65](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.64...@sb1/ffe-details-list-react@3.0.65) (2022-06-07) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.64](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.63...@sb1/ffe-details-list-react@3.0.64) (2022-06-02) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.63](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.62...@sb1/ffe-details-list-react@3.0.63) (2022-05-30) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.62](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.61...@sb1/ffe-details-list-react@3.0.62) (2022-05-19) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.61](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.60...@sb1/ffe-details-list-react@3.0.61) (2022-03-31) - -### Bug Fixes - -- **ffe-details-list-react:** update README ([ba40a2b](https://github.com/SpareBank1/designsystem/commit/ba40a2b6a400f5470f0665c52396747eeed2fcbe)) - -## [3.0.60](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.59...@sb1/ffe-details-list-react@3.0.60) (2022-03-21) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.59](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.58...@sb1/ffe-details-list-react@3.0.59) (2022-03-11) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.58](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.57...@sb1/ffe-details-list-react@3.0.58) (2022-03-09) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.57](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.56...@sb1/ffe-details-list-react@3.0.57) (2022-02-28) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.56](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.55...@sb1/ffe-details-list-react@3.0.56) (2022-02-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.55](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.54...@sb1/ffe-details-list-react@3.0.55) (2022-01-27) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.54](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.53...@sb1/ffe-details-list-react@3.0.54) (2022-01-27) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.53](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.52...@sb1/ffe-details-list-react@3.0.53) (2022-01-25) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.52](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.51...@sb1/ffe-details-list-react@3.0.52) (2021-12-17) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.51](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.50...@sb1/ffe-details-list-react@3.0.51) (2021-12-10) - -### Bug Fixes - -- **ffe-details-list-react:** use buildtool for transpiling ([907b90f](https://github.com/SpareBank1/designsystem/commit/907b90f3eff054045a245b969a326b0f717a74a8)), closes [#1294](https://github.com/SpareBank1/designsystem/issues/1294) - -## [3.0.50](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.49...@sb1/ffe-details-list-react@3.0.50) (2021-11-30) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.49](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.48...@sb1/ffe-details-list-react@3.0.49) (2021-11-19) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.48](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.47...@sb1/ffe-details-list-react@3.0.48) (2021-11-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.47](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.46...@sb1/ffe-details-list-react@3.0.47) (2021-11-04) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.46](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.45...@sb1/ffe-details-list-react@3.0.46) (2021-11-02) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.45](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.44...@sb1/ffe-details-list-react@3.0.45) (2021-11-01) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.44](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.43...@sb1/ffe-details-list-react@3.0.44) (2021-11-01) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.43](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.42...@sb1/ffe-details-list-react@3.0.43) (2021-10-29) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.42](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.41...@sb1/ffe-details-list-react@3.0.42) (2021-10-29) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.41](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.40...@sb1/ffe-details-list-react@3.0.41) (2021-10-20) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.40](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.39...@sb1/ffe-details-list-react@3.0.40) (2021-10-08) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.39](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.38...@sb1/ffe-details-list-react@3.0.39) (2021-10-06) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.38](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.37...@sb1/ffe-details-list-react@3.0.38) (2021-09-24) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.37](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.36...@sb1/ffe-details-list-react@3.0.37) (2021-09-17) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.36](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.35...@sb1/ffe-details-list-react@3.0.36) (2021-09-10) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.35](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.33...@sb1/ffe-details-list-react@3.0.35) (2021-09-06) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.34](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.33...@sb1/ffe-details-list-react@3.0.34) (2021-09-06) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.33](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.32...@sb1/ffe-details-list-react@3.0.33) (2021-06-17) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.32](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.31...@sb1/ffe-details-list-react@3.0.32) (2021-04-14) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.31](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.30...@sb1/ffe-details-list-react@3.0.31) (2021-03-26) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.30](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.29...@sb1/ffe-details-list-react@3.0.30) (2021-03-25) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.29](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.28...@sb1/ffe-details-list-react@3.0.29) (2021-03-17) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.28](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.27...@sb1/ffe-details-list-react@3.0.28) (2021-03-15) - -### Bug Fixes - -- **ffe-details-list-react:** broadens version of peer dependencies ([3f97fa8](https://github.com/SpareBank1/designsystem/commit/3f97fa8236eba39e84dfb8383efd3df70ac96d1e)) - -## [3.0.27](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.26...@sb1/ffe-details-list-react@3.0.27) (2021-03-08) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.26](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.25...@sb1/ffe-details-list-react@3.0.26) (2021-02-03) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.25](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.24...@sb1/ffe-details-list-react@3.0.25) (2021-02-03) - -### Bug Fixes - -- packages/ffe-details-list-react/package.json to reduce vulnerabilities ([6c91bbe](https://github.com/SpareBank1/designsystem/commit/6c91bbe9b8dcee3b66098e9261f67e1c002493ed)) - -## [3.0.24](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.23...@sb1/ffe-details-list-react@3.0.24) (2021-02-02) - -### Bug Fixes - -- **ffe-details-list-react:** reduce vulnerabilities ([fd25b14](https://github.com/SpareBank1/designsystem/commit/fd25b147d6df730d23d6006b333874ddb4310e2b)) - -## [3.0.23](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.22...@sb1/ffe-details-list-react@3.0.23) (2021-02-02) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.22](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.21...@sb1/ffe-details-list-react@3.0.22) (2021-01-11) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.21](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.20...@sb1/ffe-details-list-react@3.0.21) (2020-12-03) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.20](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.19...@sb1/ffe-details-list-react@3.0.20) (2020-11-20) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.19](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.18...@sb1/ffe-details-list-react@3.0.19) (2020-11-05) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.18](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.17...@sb1/ffe-details-list-react@3.0.18) (2020-08-25) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.17](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.16...@sb1/ffe-details-list-react@3.0.17) (2020-03-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.16](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.15...@sb1/ffe-details-list-react@3.0.16) (2020-03-16) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.15](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.14...@sb1/ffe-details-list-react@3.0.15) (2020-03-13) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.14](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.13...@sb1/ffe-details-list-react@3.0.14) (2020-02-26) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.13](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.12...@sb1/ffe-details-list-react@3.0.13) (2020-02-26) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.10...@sb1/ffe-details-list-react@3.0.12) (2020-02-26) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.10...@sb1/ffe-details-list-react@3.0.11) (2020-02-25) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.9...@sb1/ffe-details-list-react@3.0.10) (2020-02-10) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.8...@sb1/ffe-details-list-react@3.0.9) (2019-12-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.7...@sb1/ffe-details-list-react@3.0.8) (2019-12-16) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.6...@sb1/ffe-details-list-react@3.0.7) (2019-11-25) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.5...@sb1/ffe-details-list-react@3.0.6) (2019-10-31) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.4...@sb1/ffe-details-list-react@3.0.5) (2019-10-21) - -### Bug Fixes - -- **ffe-details-list-react:** Remove screen type from media queries, see [#719](https://github.com/SpareBank1/designsystem/issues/719) ([a2447f7](https://github.com/SpareBank1/designsystem/commit/a2447f7cec7f7393bd4f188294faf2fb1dffa54e)) - -## [3.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.3...@sb1/ffe-details-list-react@3.0.4) (2019-10-16) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.2...@sb1/ffe-details-list-react@3.0.3) (2019-10-14) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.1...@sb1/ffe-details-list-react@3.0.2) (2019-09-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [3.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@3.0.0...@sb1/ffe-details-list-react@3.0.1) (2019-09-16) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -# [3.0.0](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.25...@sb1/ffe-details-list-react@3.0.0) (2019-08-27) - -### chore - -- bump React to 16.9 to allow for using hooks etc ([e3901f1](https://github.com/SpareBank1/designsystem/commit/e3901f1)) - -### BREAKING CHANGES - -- peerDep of React is raised to 16.9. While this in itself - isn't a breaking change, it allows for the use of hooks in later releases. - Such changes would just be a minor version, or even a patch, but without - this major version bump it would result in a runtime error for consumers. - -## [2.0.25](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.24...@sb1/ffe-details-list-react@2.0.25) (2019-06-28) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [2.0.24](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.23...@sb1/ffe-details-list-react@2.0.24) (2019-04-26) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [2.0.23](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.22...@sb1/ffe-details-list-react@2.0.23) (2019-04-25) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [2.0.22](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.21...@sb1/ffe-details-list-react@2.0.22) (2019-04-24) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [2.0.21](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.20...@sb1/ffe-details-list-react@2.0.21) (2019-01-23) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [2.0.20](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.19...@sb1/ffe-details-list-react@2.0.20) (2018-12-11) - -### Bug Fixes - -- Build tree shakeable packages ([fb4a9ea](https://github.com/SpareBank1/designsystem/commit/fb4a9ea)) - -## [2.0.19](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.18...@sb1/ffe-details-list-react@2.0.19) (2018-11-26) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [2.0.18](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.17...@sb1/ffe-details-list-react@2.0.18) (2018-11-08) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [2.0.17](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.16...@sb1/ffe-details-list-react@2.0.17) (2018-10-25) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [2.0.16](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.15...@sb1/ffe-details-list-react@2.0.16) (2018-10-16) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - -## [2.0.15](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.14...@sb1/ffe-details-list-react@2.0.15) (2018-10-05) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.14](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.13...@sb1/ffe-details-list-react@2.0.14) (2018-09-19) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.13](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.12...@sb1/ffe-details-list-react@2.0.13) (2018-08-23) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.12](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.11...@sb1/ffe-details-list-react@2.0.12) (2018-08-09) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.11](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.10...@sb1/ffe-details-list-react@2.0.11) (2018-08-01) - -### Bug Fixes - -- **ffe-details-list-react:** Use correct grid padding ([f4745ff](https://github.com/SpareBank1/designsystem/commit/f4745ff)), closes [#356](https://github.com/SpareBank1/designsystem/issues/356) - - - -## [2.0.10](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.9...@sb1/ffe-details-list-react@2.0.10) (2018-06-26) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.9](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.8...@sb1/ffe-details-list-react@2.0.9) (2018-06-19) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.8](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.7...@sb1/ffe-details-list-react@2.0.8) (2018-06-18) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.7](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.6...@sb1/ffe-details-list-react@2.0.7) (2018-05-29) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.6](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.5...@sb1/ffe-details-list-react@2.0.6) (2018-04-25) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.5](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.4...@sb1/ffe-details-list-react@2.0.5) (2018-04-12) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.4](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.3...@sb1/ffe-details-list-react@2.0.4) (2018-03-27) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.3](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.2...@sb1/ffe-details-list-react@2.0.3) (2018-03-22) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.2](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.0...@sb1/ffe-details-list-react@2.0.2) (2018-03-07) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -## [2.0.1](https://github.com/SpareBank1/designsystem/compare/@sb1/ffe-details-list-react@2.0.0...@sb1/ffe-details-list-react@2.0.1) (2018-03-02) - -**Note:** Version bump only for package @sb1/ffe-details-list-react - - - -# 2.0.0 (2018-02-25) - -### Bug Fixes - -- **ffe-details-list-react:** Visual adjustments ([c9ae584](https://github.com/SpareBank1/designsystem/commit/c9ae584)) - -### Chores - -- add [@sb1](https://github.com/sb1)/ scope to all packages ([37efbb4](https://github.com/SpareBank1/designsystem/commit/37efbb4)) - -### BREAKING CHANGES - -- All packages have been renamed to add the @sb1 scope. - -See links [1] and [2] to read more about package scopes. - -Unfortunately this requires you update both your dependencies in -`package.json` and all `import` or `require` statements in your code. -Also, you unfortunately have to upgrade all FFE packages at once due to -dependency between packages. If you are on the latest version prior to -this breaking change the upgrade should be a matter of updating -`package.json` with new package names and versions, and updating your -imports. - -To help find the proper package versions you can either browse to the -packages you need or check out the list of Git tags either on -Github [3] or by cloning the repository and running the `git tag` -command. All package versions get a tag in the format -_package@version_. - -Update your `package.json` with the latest package version and add the -@sb1 scope to the package name: - -```diff -- "ffe-core": "11.0.2", -+ "@sb1/ffe-core": "11.0.2", -``` - -Scoped packages all get put in a subdirectory in `node_modules/`. In our -case packages will be put in the `node_modules/@sb1/` directory. If your -build depends on file paths (for instance for copying fonts) you need to -update that path to include the scope. - -The directory structure also means you have to update your imports, both -in Less and in JavaScript. - -Using `less-plugin-npm-import`: - -```diff -- @import 'npm://ffe-core/less/ffe'; -+ @import 'npm://@sb1/ffe-core/less/ffe'; -``` - -Using Webpack: - -```diff -- @import '~ffe-core/less/ffe'; -+ @import '~@sb1/ffe-core/less/ffe'; -``` - -Using plain old paths: - -```diff -- @import '../path/to/node_modules/ffe-core/less/ffe'; -+ @import '../path/to/node_modules/@sb1/ffe-core/less/ffe'; -``` - -JavaScript `import`: - -```diff -- import { ActionButton } from 'ffe-buttons-react'; -+ import { ActionButton } from '@sb1/ffe-buttons-react'; -``` - -JavaScript `require`: - -```diff -- const { ActionButton } = require('ffe-buttons-react').default; -+ const { ActionButton } = require('@sb1/ffe-buttons-react').default; -``` - -[1]: https://docs.npmjs.com/misc/scope -[2]: https://docs.npmjs.com/getting-started/scoped-packages -[3]: https://github.com/sparebank1/designsystem/tags - - - -## [1.0.6](https://github.com/SpareBank1/designsystem/compare/ffe-details-list-react@1.0.5...ffe-details-list-react@1.0.6) (2018-02-23) - -**Note:** Version bump only for package ffe-details-list-react - - - -## [1.0.5](https://github.com/SpareBank1/designsystem/compare/ffe-details-list-react@1.0.4...ffe-details-list-react@1.0.5) (2018-02-22) - -**Note:** Version bump only for package ffe-details-list-react - - - -## [1.0.4](https://github.com/SpareBank1/designsystem/compare/ffe-details-list-react@1.0.3...ffe-details-list-react@1.0.4) (2018-02-21) - -### Bug Fixes - -- **ffe-details-list-react:** Visual adjustments - - - -## [1.0.3](https://github.com/SpareBank1/designsystem/compare/ffe-details-list-react@1.0.2...ffe-details-list-react@1.0.3) (2018-02-20) - -**Note:** Version bump only for package ffe-details-list-react - - - -## [1.0.2](https://github.com/SpareBank1/designsystem/compare/ffe-details-list-react@1.0.1...ffe-details-list-react@1.0.2) (2018-02-15) - -**Note:** Version bump only for package ffe-details-list-react - - - -## 1.0.1 (2018-02-15) - -**Note:** Version bump only for package ffe-details-list-react - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# 1.0.0 - -- Initial release diff --git a/packages/ffe-details-list-react/README.md b/packages/ffe-details-list-react/README.md deleted file mode 100644 index 0557657138..0000000000 --- a/packages/ffe-details-list-react/README.md +++ /dev/null @@ -1,36 +0,0 @@ -# @sb1/ffe-details-list-react - -## Install - -``` -npm install --save @sb1/ffe-details-list-react -``` - -## Usage - -Full documentation on details list usage is available at https://design.sparebank1.no/komponenter/detaljliste/. - -Included less file to your imports: - -```css -@import 'node_modules/@sb1/ffe-details-list-react/less/ffe-details-list-react'; -``` - -This React component does not depend on the `@sb1/ffe-details-list` package, -which is deprecated and removed from the source code. The component uses the -`@sb1/ffe-grid`-package to attain the same design and behavior. This way, the -components can be used in connection to other `ffe-grid`-based components. - -## Development - -To start a local development server, run the following from the designsystem root folder: - -```bash -npm install -npm run build -npm start -``` - -A local instance of `component-overview` with live reloading will run at http://localhost:1234/. - -Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem. diff --git a/packages/ffe-details-list-react/less/ffe-details-list-react.less b/packages/ffe-details-list-react/less/ffe-details-list-react.less deleted file mode 100644 index a9138b8a83..0000000000 --- a/packages/ffe-details-list-react/less/ffe-details-list-react.less +++ /dev/null @@ -1,14 +0,0 @@ -.ffe-details-list-react__content { - @media (min-width: @breakpoint-md) { - padding-bottom: 15px; - padding-top: 15px; - } - - &--action { - align-items: flex-start; - - @media (min-width: @breakpoint-md) { - align-items: flex-end; - } - } -} diff --git a/packages/ffe-details-list-react/package.json b/packages/ffe-details-list-react/package.json deleted file mode 100644 index 5467c34f2f..0000000000 --- a/packages/ffe-details-list-react/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@sb1/ffe-details-list-react", - "version": "5.0.8", - "license": "MIT", - "author": "SpareBank 1", - "files": [ - "lib", - "es", - "less", - "types" - ], - "main": "lib/index.js", - "module": "es/index.js", - "types": "types/index.d.ts", - "sideEffects": false, - "repository": { - "type": "git", - "url": "ssh://git@github.com:SpareBank1/designsystem.git" - }, - "scripts": { - "build": "ffe-buildtool tsc", - "build:es": "ffe-buildtool tsc --es", - "lint": "eslint src --ext ts,tsx", - "lint:fix": "eslint src --fix --ext ts,tsx", - "test": "ffe-buildtool jest", - "test:watch": "ffe-buildtool jest --watch" - }, - "dependencies": { - "@sb1/ffe-grid": "^14.3.4", - "@sb1/ffe-grid-react": "^14.1.4", - "classnames": "^2.3.1" - }, - "devDependencies": { - "@sb1/ffe-buildtool": "^0.6.4", - "react": "^16.9.0", - "react-dom": "^16.9.0" - }, - "peerDependencies": { - "react": ">=16.9.0" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/packages/ffe-details-list-react/src/Detail.tsx b/packages/ffe-details-list-react/src/Detail.tsx deleted file mode 100644 index 83358985d0..0000000000 --- a/packages/ffe-details-list-react/src/Detail.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import React from 'react'; -import { GridCol, GridRow } from '@sb1/ffe-grid-react'; - -export interface DetailProps { - /** - * A set of `DetailsContent` components to render for this row - */ - children: React.ReactNode; - /** - * A label for the data - */ - label: string; -} - -export const Detail: React.FC = ({ children, label }) => { - const childCount = React.Children.count(children); - - return ( - <> - - -
{label}
-
- {React.Children.map(children, (child, index) => - // @ts-ignore - React.cloneElement(child, { childCount, index }), - )} -
- - -
-
-
- - ); -}; diff --git a/packages/ffe-details-list-react/src/DetailContent.tsx b/packages/ffe-details-list-react/src/DetailContent.tsx deleted file mode 100644 index 0a41f94743..0000000000 --- a/packages/ffe-details-list-react/src/DetailContent.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import React from 'react'; -import classNames from 'classnames'; - -import { GridCol } from '@sb1/ffe-grid-react'; - -const getColCount = (total: number, current: number) => { - if (total === 1) { - return 7; - } - if (total < 3 && current === total - 1) { - return 4; - } - return 2; -}; - -export interface DetailContentProps - extends Omit, 'ref'> { - /** - * Internal prop used for knowing the total amount of columns, provided by `Detail` - * @ignore - */ - childCount: number; - /** - * Internal prop used for knowing which column is being rendered, provided by `Detail` - * @ignore - */ - index: number; - /** - * Indicate if this should be rendered as a call to action and moved to the end of the row - * @ignore - */ - cta: boolean; -} - -export const DetailContent: React.FC = ({ - childCount, - children, - index, - className, - cta, - ...rest -}) => { - return ( - - {children} - - ); -}; diff --git a/packages/ffe-details-list-react/src/DetailList.spec.tsx b/packages/ffe-details-list-react/src/DetailList.spec.tsx deleted file mode 100644 index 00ffaa9a36..0000000000 --- a/packages/ffe-details-list-react/src/DetailList.spec.tsx +++ /dev/null @@ -1,103 +0,0 @@ -import React from 'react'; -import { DetailContent, DetailContentProps } from './DetailContent'; -import { render, screen } from '@testing-library/react'; - -describe('', () => { - const TEST_ID = 'test-id'; - - const defaultProps = { - childCount: 1, - children: 'Content', - index: 0, - cta: false, - }; - - const renderDetailContent = (props: Partial) => - render( - , - ); - - it('adds correct class based on cta prop', () => { - const { rerender } = render( - , - ); - const detailContent = screen.getByTestId(TEST_ID); - expect( - detailContent.classList.contains( - 'ffe-details-list-react__content--action', - ), - ).toBeFalsy(); - - rerender( - , - ); - expect( - detailContent.classList.contains( - 'ffe-details-list-react__content--action', - ), - ).toBeTruthy(); - }); - - it('adds any extra classes if provided', () => { - renderDetailContent({ className: 'where-they-at-doe' }); - const detailContent = screen.getByTestId(TEST_ID); - expect(detailContent.classList.contains('where-they-at-doe')).toBe( - true, - ); - }); - - describe('correct column count when', () => { - it('is exactly one DetailContent', () => { - renderDetailContent({ childCount: 1 }); - const detailContent = screen.getByTestId(TEST_ID); - expect(detailContent.getAttribute('class')).toContain( - 'ffe-grid__col--lg-7 ffe-grid__col--lg-offset-0 ffe-grid__col--md-8 ffe-grid__col--md-offset-2 ffe-grid__col--sm-12', - ); - }); - - it('are two DetailContents, and this DetailContent is the first one', () => { - renderDetailContent({ childCount: 2, index: 0 }); - const detailContent = screen.getByTestId(TEST_ID); - - expect(detailContent.getAttribute('class')).toContain( - 'ffe-grid__col--lg-2 ffe-grid__col--lg-offset-0 ffe-grid__col--md-8 ffe-grid__col--md-offset-2 ffe-grid__col--sm-12', - ); - }); - - it('are two DetailContents, and this DetailContent is the last one', () => { - renderDetailContent({ childCount: 2, index: 1 }); - const detailContent = screen.getByTestId(TEST_ID); - expect(detailContent.getAttribute('class')).toContain( - 'ffe-grid__col--lg-4 ffe-grid__col--lg-offset-0 ffe-grid__col--md-8 ffe-grid__col--md-offset-2 ffe-grid__col--sm-12', - ); - }); - - it('are three DetailsContents', () => { - renderDetailContent({ childCount: 3, index: 1 }); - const detailContent = screen.getByTestId(TEST_ID); - expect(detailContent.getAttribute('class')).toContain( - 'ffe-grid__col--lg-2 ffe-grid__col--lg-offset-0 ffe-grid__col--md-8 ffe-grid__col--md-offset-2 ffe-grid__col--sm-12', - ); - }); - - it('are four DetailsContents', () => { - renderDetailContent({ childCount: 4, index: 1 }); - const detailContent = screen.getByTestId(TEST_ID); - expect(detailContent.getAttribute('class')).toContain( - 'ffe-grid__col--lg-2 ffe-grid__col--lg-offset-0 ffe-grid__col--md-8 ffe-grid__col--md-offset-2 ffe-grid__col--sm-12', - ); - }); - }); -}); diff --git a/packages/ffe-details-list-react/src/DetailList.tsx b/packages/ffe-details-list-react/src/DetailList.tsx deleted file mode 100644 index 89eac333a6..0000000000 --- a/packages/ffe-details-list-react/src/DetailList.tsx +++ /dev/null @@ -1,13 +0,0 @@ -import React from 'react'; -import { Grid } from '@sb1/ffe-grid-react'; - -export interface DetailListProps { - /** - * A set of `Detail` components where each will be rendered as a row item - */ - children: React.ReactNode; -} - -export const DetailList: React.FC = ({ children }) => { - return {children}; -}; diff --git a/packages/ffe-details-list-react/src/index.ts b/packages/ffe-details-list-react/src/index.ts deleted file mode 100644 index e10ab86b65..0000000000 --- a/packages/ffe-details-list-react/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { DetailList, DetailListProps } from './DetailList'; -export { Detail, DetailProps } from './Detail'; -export { DetailContent, DetailContentProps } from './DetailContent'; diff --git a/packages/ffe-details-list-react/tsconfig.cjs.json b/packages/ffe-details-list-react/tsconfig.cjs.json deleted file mode 100644 index 6579fd2246..0000000000 --- a/packages/ffe-details-list-react/tsconfig.cjs.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./lib", - "module": "commonjs" - }, - "include": ["src/**/*"], - "exclude": ["node_modules", "src/**/*.spec.ts*"] -} diff --git a/packages/ffe-details-list-react/tsconfig.esm.json b/packages/ffe-details-list-react/tsconfig.esm.json deleted file mode 100644 index 8e577796bf..0000000000 --- a/packages/ffe-details-list-react/tsconfig.esm.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./es", - "module": "esnext" - }, - "include": ["src/**/*"], - "exclude": ["node_modules", "src/**/*.spec.ts*"] -} diff --git a/packages/ffe-details-list-react/tsconfig.types.json b/packages/ffe-details-list-react/tsconfig.types.json deleted file mode 100644 index 3499c0be03..0000000000 --- a/packages/ffe-details-list-react/tsconfig.types.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": { - "outDir": "./types", - "declaration": true, - "emitDeclarationOnly": true - }, - "include": ["src/**/*"], - "exclude": ["node_modules", "src/**/*.spec.ts*"] -}