@thecb/components 7.9.4-beta.4 → 7.9.4-beta.6
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
|
@@ -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 = "
|
|
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
|
-
<Stack childGap="0
|
|
41
|
+
<Stack childGap="0">
|
|
44
42
|
{html && <Box padding="0">{html}</Box>}
|
|
45
|
-
<Cluster justify="flex-start" align="
|
|
43
|
+
<Cluster justify="flex-start" align="center" nowrap>
|
|
46
44
|
{showCheckbox && (
|
|
47
45
|
<Checkbox
|
|
48
46
|
name={id}
|
|
@@ -50,6 +48,7 @@ const TermsAndConditionsControlV2 = ({
|
|
|
50
48
|
checked={isChecked}
|
|
51
49
|
onChange={onCheck}
|
|
52
50
|
checkboxMargin={checkboxMargin}
|
|
51
|
+
extraStyles={`align-self: flex-start;`}
|
|
53
52
|
/>
|
|
54
53
|
)}
|
|
55
54
|
<Stack childGap="0.25rem" fullHeight>
|