@thecb/components 10.7.7 → 10.7.8

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": "10.7.7",
3
+ "version": "10.7.8",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -42,6 +42,7 @@ const Modal = ({
42
42
  cancelButtonVariant = "secondary",
43
43
  children = [],
44
44
  closeButtonText = "Close",
45
+ closeButtonVariant = "primary",
45
46
  continueAction = noop,
46
47
  continueButtonText = "Continue",
47
48
  continueButtonVariant = "primary",
@@ -202,6 +203,7 @@ const Modal = ({
202
203
  <CloseButton
203
204
  buttonExtraStyles={buttonExtraStyles}
204
205
  closeButtonText={closeButtonText}
206
+ closeButtonVariant={closeButtonVariant}
205
207
  hideModal={hideModal}
206
208
  isMobile={isMobile}
207
209
  key="close"
@@ -9,6 +9,7 @@ import ButtonWithAction from "../../../atoms/button-with-action/ButtonWithAction
9
9
  export const CloseButton = ({
10
10
  buttonExtraStyles = "",
11
11
  closeButtonText = "",
12
+ closeButtonVariant = "primary",
12
13
  hideModal = noop,
13
14
  isMobile = false
14
15
  }) => {
@@ -26,7 +27,7 @@ export const CloseButton = ({
26
27
  role="button"
27
28
  text={closeButtonText}
28
29
  textExtraStyles={`${fontSize}`}
29
- variant="primary"
30
+ variant={closeButtonVariant}
30
31
  />
31
32
  );
32
33
  };