From c725ba865902910101805b7e5bc10521a5c28d1c Mon Sep 17 00:00:00 2001 From: johnnadeluy Date: Fri, 1 Nov 2024 15:36:36 +0100 Subject: [PATCH 1/5] Bump @statisticsnorway/ssb-component-library from 2.3.0 to 2.3.1 --- package-lock.json | 8 +++--- package.json | 2 +- src/components/Header/Header.jsx | 2 +- .../Components/ComponentsInfo/LinksInfo.jsx | 25 ++++++++++++++----- 4 files changed, 25 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index de2816cf..7c57dcc8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "dependencies": { "@babel/runtime": "~7.26.0", - "@statisticsnorway/ssb-component-library": "~2.3.0", + "@statisticsnorway/ssb-component-library": "~2.3.1", "bootstrap": "~5.3.3", "core-js": "~3.39.0", "gh-pages": "~6.2.0", @@ -3279,9 +3279,9 @@ } }, "node_modules/@statisticsnorway/ssb-component-library": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/@statisticsnorway/ssb-component-library/-/ssb-component-library-2.3.0.tgz", - "integrity": "sha512-32JvWEwDctWL7oZODAOumAhY237Itmn9iCte+CMZp+d6zPV+QrUT9BUv5G47B9pS07tta744EUsXjtVL4ShnQA==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/@statisticsnorway/ssb-component-library/-/ssb-component-library-2.3.1.tgz", + "integrity": "sha512-UZspVGSgED5Q5v5jbam9OPsaj/hBibVX1slFy2YnogAAHbuU6txH4ydfSkyaFFWFkFkrHRG/c9V4vUvzfHnNSQ==", "dependencies": { "prismjs": "~1.29.0", "react-feather": "~2.0.10", diff --git a/package.json b/package.json index 8bdffbce..dcfb9049 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "dependencies": { "@babel/runtime": "~7.26.0", - "@statisticsnorway/ssb-component-library": "~2.3.0", + "@statisticsnorway/ssb-component-library": "~2.3.1", "bootstrap": "~5.3.3", "core-js": "~3.39.0", "gh-pages": "~6.2.0", diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx index 64ba8ee9..6c0c3327 100644 --- a/src/components/Header/Header.jsx +++ b/src/components/Header/Header.jsx @@ -19,7 +19,7 @@ const Header = () => { const history = useHistory(); const location = useLocation(); const [menuIsOpen, toggleMenu] = useState(false); - const version = 'v2.2.16'; + const version = 'v2.3.1'; return (
diff --git a/src/pages/Components/ComponentsInfo/LinksInfo.jsx b/src/pages/Components/ComponentsInfo/LinksInfo.jsx index 463cdb33..56b91e6b 100644 --- a/src/pages/Components/ComponentsInfo/LinksInfo.jsx +++ b/src/pages/Components/ComponentsInfo/LinksInfo.jsx @@ -127,17 +127,22 @@ const profiledLinksIconHtml = ` `; const headerLinks = ` -This is an header link -This is an header link +This is a header link +This is a header link with heading 3 +This is a header link `; const headerLinksHtml = ` - This is an header link + This is a header link + + + + - This is an header link + This is a header link `; @@ -395,13 +400,16 @@ const LinksInfo = () => {
- This is an header link + This is a header link +
+
+ This is a header link with heading 3
This is a long header link that will go over several lines
- This is an header link + This is a header link
@@ -526,6 +534,11 @@ const LinksInfo = () => { string Optional container class + + headingSize + 1, 2, 3, 4, 5 or 6 + Changes header element size for header links + href string From 03001365f3cc82232f8731db4088e174686d7cbe Mon Sep 17 00:00:00 2001 From: johnnadeluy Date: Fri, 1 Nov 2024 15:37:23 +0100 Subject: [PATCH 2/5] Bump @statisticsnorway/ssb-component-library from 2.3.0 to 2.3.1 --- .../Components/ComponentsInfo/LinksInfo.jsx | 25 +++++-------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/src/pages/Components/ComponentsInfo/LinksInfo.jsx b/src/pages/Components/ComponentsInfo/LinksInfo.jsx index 56b91e6b..463cdb33 100644 --- a/src/pages/Components/ComponentsInfo/LinksInfo.jsx +++ b/src/pages/Components/ComponentsInfo/LinksInfo.jsx @@ -127,22 +127,17 @@ const profiledLinksIconHtml = ` `; const headerLinks = ` -This is a header link -This is a header link with heading 3 -This is a header link +This is an header link +This is an header link `; const headerLinksHtml = ` - This is a header link - - - - + This is an header link - This is a header link + This is an header link `; @@ -400,16 +395,13 @@ const LinksInfo = () => {
- This is a header link -
-
- This is a header link with heading 3 + This is an header link
This is a long header link that will go over several lines
- This is a header link + This is an header link
@@ -534,11 +526,6 @@ const LinksInfo = () => { string Optional container class - - headingSize - 1, 2, 3, 4, 5 or 6 - Changes header element size for header links - href string From 00708e6337ea21418426e412af8973d1c99499ae Mon Sep 17 00:00:00 2001 From: johnnadeluy Date: Fri, 1 Nov 2024 15:37:36 +0100 Subject: [PATCH 3/5] Update Link component with new prop headingSize and provide examples MIM-2054 --- .../Components/ComponentsInfo/LinksInfo.jsx | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/src/pages/Components/ComponentsInfo/LinksInfo.jsx b/src/pages/Components/ComponentsInfo/LinksInfo.jsx index 463cdb33..56b91e6b 100644 --- a/src/pages/Components/ComponentsInfo/LinksInfo.jsx +++ b/src/pages/Components/ComponentsInfo/LinksInfo.jsx @@ -127,17 +127,22 @@ const profiledLinksIconHtml = ` `; const headerLinks = ` -This is an header link -This is an header link +This is a header link +This is a header link with heading 3 +This is a header link `; const headerLinksHtml = ` - This is an header link + This is a header link + + + + - This is an header link + This is a header link `; @@ -395,13 +400,16 @@ const LinksInfo = () => {
- This is an header link + This is a header link +
+
+ This is a header link with heading 3
This is a long header link that will go over several lines
- This is an header link + This is a header link
@@ -526,6 +534,11 @@ const LinksInfo = () => { string Optional container class + + headingSize + 1, 2, 3, 4, 5 or 6 + Changes header element size for header links + href string From 4d96f47b7968f012def8542946f0678bb87c68e7 Mon Sep 17 00:00:00 2001 From: johnnadeluy Date: Mon, 4 Nov 2024 09:02:04 +0100 Subject: [PATCH 4/5] Fix indentation for header link example --- src/pages/Components/ComponentsInfo/LinksInfo.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Components/ComponentsInfo/LinksInfo.jsx b/src/pages/Components/ComponentsInfo/LinksInfo.jsx index 56b91e6b..bcc1e7aa 100644 --- a/src/pages/Components/ComponentsInfo/LinksInfo.jsx +++ b/src/pages/Components/ComponentsInfo/LinksInfo.jsx @@ -138,7 +138,7 @@ const headerLinksHtml = ` - + From 2c6fc0489235bb1a7374df1b0c17d341a8f4ff80 Mon Sep 17 00:00:00 2001 From: johnnadeluy Date: Mon, 4 Nov 2024 12:41:31 +0100 Subject: [PATCH 5/5] Bump @statisticsnorway/ssb-component-library from 2.3.2. to 2.3.3. --- package-lock.json | 8 ++++---- package.json | 2 +- src/components/Header/Header.jsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7c57dcc8..ab9f03f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "dependencies": { "@babel/runtime": "~7.26.0", - "@statisticsnorway/ssb-component-library": "~2.3.1", + "@statisticsnorway/ssb-component-library": "~2.3.3", "bootstrap": "~5.3.3", "core-js": "~3.39.0", "gh-pages": "~6.2.0", @@ -3279,9 +3279,9 @@ } }, "node_modules/@statisticsnorway/ssb-component-library": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/@statisticsnorway/ssb-component-library/-/ssb-component-library-2.3.1.tgz", - "integrity": "sha512-UZspVGSgED5Q5v5jbam9OPsaj/hBibVX1slFy2YnogAAHbuU6txH4ydfSkyaFFWFkFkrHRG/c9V4vUvzfHnNSQ==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/@statisticsnorway/ssb-component-library/-/ssb-component-library-2.3.3.tgz", + "integrity": "sha512-mQ8xF9YIBeddaVpiIuRexjjCvmpmzcd/rdZ0Le3KO++9zoUoNPKZ4/PKPUGEoOgnDcGktpuNPNp0S5CXyvZd2w==", "dependencies": { "prismjs": "~1.29.0", "react-feather": "~2.0.10", diff --git a/package.json b/package.json index dcfb9049..fed9c9e0 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "dependencies": { "@babel/runtime": "~7.26.0", - "@statisticsnorway/ssb-component-library": "~2.3.1", + "@statisticsnorway/ssb-component-library": "~2.3.3", "bootstrap": "~5.3.3", "core-js": "~3.39.0", "gh-pages": "~6.2.0", diff --git a/src/components/Header/Header.jsx b/src/components/Header/Header.jsx index 6c0c3327..b756a7b4 100644 --- a/src/components/Header/Header.jsx +++ b/src/components/Header/Header.jsx @@ -19,7 +19,7 @@ const Header = () => { const history = useHistory(); const location = useLocation(); const [menuIsOpen, toggleMenu] = useState(false); - const version = 'v2.3.1'; + const version = 'v2.3.3'; return (