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

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.3",
3
+ "version": "7.9.4-beta.4",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -25,7 +25,8 @@ const TermsAndConditionsControlV2 = ({
25
25
  displayInline = true,
26
26
  modalVariant = "default",
27
27
  containerBackground = ATHENS_GREY,
28
- checkboxMargin = "0 0.5rem 0 0"
28
+ checkboxMargin = "0 0.5rem 0 0",
29
+ modalTitle = "Terms and Conditions"
29
30
  }) => {
30
31
  const [showTerms, toggleShowTerms] = useState(false);
31
32
  const standardBoxShadow = generateShadows().standard.base;
@@ -37,6 +38,7 @@ const TermsAndConditionsControlV2 = ({
37
38
  background={displayInline ? "transparent" : containerBackground}
38
39
  boxShadow={displayInline ? "none" : standardBoxShadow}
39
40
  borderRadius={displayInline ? "0" : "4px"}
41
+ extraStyles={`margin: 4px 0 0 4px;`}
40
42
  >
41
43
  <Stack childGap="0.25rem">
42
44
  {html && <Box padding="0">{html}</Box>}
@@ -50,11 +52,14 @@ const TermsAndConditionsControlV2 = ({
50
52
  checkboxMargin={checkboxMargin}
51
53
  />
52
54
  )}
53
- <Stack childGap="0.25rem">
54
- <Cluster justify="flex-start" align="center" nowrap>
55
- {description && (
56
- <Text color={CHARADE_GREY}>{description}&nbsp;</Text>
57
- )}
55
+ <Stack childGap="0.25rem" fullHeight>
56
+ <Cluster
57
+ justify="flex-start"
58
+ align="center"
59
+ nowrap
60
+ extraStyles={`padding-right: 2px; > div > * { margin: 4px 2px; };`}
61
+ >
62
+ {description && <Text color={CHARADE_GREY}>{description}</Text>}
58
63
  {terms && (
59
64
  <TermsAndConditionsModal
60
65
  link={linkText}
@@ -62,6 +67,7 @@ const TermsAndConditionsControlV2 = ({
62
67
  isOpen={showTerms}
63
68
  toggleOpen={toggleShowTerms}
64
69
  linkVariant={modalVariant}
70
+ title={modalTitle}
65
71
  />
66
72
  )}
67
73
  </Cluster>