@thecb/components 7.9.4-beta.4 → 7.9.4-beta.5

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": "7.9.4-beta.4",
3
+ "version": "7.9.4-beta.5",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -2,7 +2,6 @@ import React, { useState } from "react";
2
2
  import Checkbox from "../../atoms/checkbox";
3
3
  import { Box, Stack, Cluster } from "../../atoms/layouts";
4
4
  import Text from "../../atoms/text";
5
- import Paragraph from "../../atoms/paragraph";
6
5
  import TermsAndConditionsModal from "../terms-and-conditions-modal";
7
6
  import {
8
7
  ATHENS_GREY,
@@ -25,7 +24,7 @@ const TermsAndConditionsControlV2 = ({
25
24
  displayInline = true,
26
25
  modalVariant = "default",
27
26
  containerBackground = ATHENS_GREY,
28
- checkboxMargin = "0 0.5rem 0 0",
27
+ checkboxMargin = "4px 8px 4px 4px",
29
28
  modalTitle = "Terms and Conditions"
30
29
  }) => {
31
30
  const [showTerms, toggleShowTerms] = useState(false);
@@ -38,11 +37,10 @@ const TermsAndConditionsControlV2 = ({
38
37
  background={displayInline ? "transparent" : containerBackground}
39
38
  boxShadow={displayInline ? "none" : standardBoxShadow}
40
39
  borderRadius={displayInline ? "0" : "4px"}
41
- extraStyles={`margin: 4px 0 0 4px;`}
42
40
  >
43
41
  <Stack childGap="0.25rem">
44
42
  {html && <Box padding="0">{html}</Box>}
45
- <Cluster justify="flex-start" align="flex-start" nowrap>
43
+ <Cluster justify="flex-start" align="center" nowrap>
46
44
  {showCheckbox && (
47
45
  <Checkbox
48
46
  name={id}