@thecb/components 8.3.0 → 8.3.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "8.3.0",
3
+ "version": "8.3.1-beta.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -7,6 +7,7 @@ import ButtonWithAction from "../button-with-action";
7
7
 
8
8
  const ButtonWithLink = ({
9
9
  url = "/",
10
+ active = false,
10
11
  disabled = false,
11
12
  fileLink = false,
12
13
  extraStyles,
@@ -18,6 +19,7 @@ const ButtonWithLink = ({
18
19
  const ButtonWithLinkWrapper = ({
19
20
  children,
20
21
  url,
22
+ active,
21
23
  disabled,
22
24
  newTab,
23
25
  dataQa,
@@ -39,6 +41,7 @@ const ButtonWithLink = ({
39
41
  ) : (
40
42
  <InternalLink
41
43
  to={url}
44
+ active={active}
42
45
  tabIndex="-1"
43
46
  dataQa={dataQa}
44
47
  extraStyles={extraStyles}
@@ -51,6 +54,7 @@ const ButtonWithLink = ({
51
54
  return (
52
55
  <ButtonWithLinkWrapper
53
56
  url={url}
57
+ active={active}
54
58
  disabled={disabled}
55
59
  newTab={newTab}
56
60
  extraStyles={`${linkExtraStyles} text-decoration: none; &:hover {