@thecb/components 12.0.0-beta.1 → 12.0.0-beta.11

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.
@@ -65,6 +65,7 @@ const RegistrationForm = ({
65
65
  onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
66
66
  autocompleteValue="given-name"
67
67
  dataQa="First name"
68
+ isRequired
68
69
  />
69
70
  <FormInput
70
71
  labelTextWhenNoError="Last name"
@@ -75,6 +76,7 @@ const RegistrationForm = ({
75
76
  onKeyDown={e => e.key === "Enter" && handleSubmit(e)}
76
77
  autocompleteValue="family-name"
77
78
  dataQa="Last name"
79
+ isRequired
78
80
  />
79
81
  <FormInput
80
82
  labelTextWhenNoError="Email address"
@@ -87,6 +89,7 @@ const RegistrationForm = ({
87
89
  isEmail
88
90
  autocompleteValue="email"
89
91
  dataQa="Email address"
92
+ isRequired
90
93
  />
91
94
  <FormInput
92
95
  labelTextWhenNoError="Password"
@@ -98,6 +101,7 @@ const RegistrationForm = ({
98
101
  type="password"
99
102
  autocompleteValue="new-password"
100
103
  dataQa="Password"
104
+ isRequired
101
105
  />
102
106
  <FormInput
103
107
  labelTextWhenNoError="Confirm password"
@@ -109,6 +113,7 @@ const RegistrationForm = ({
109
113
  type="password"
110
114
  autocompleteValue="new-password"
111
115
  dataQa="Confirm password"
116
+ isRequired
112
117
  />
113
118
  <Box padding={isMobile ? "0" : "0.5rem 0 0"}>
114
119
  <PasswordRequirements password={fields.password} isMobile={isMobile} />
@@ -29,7 +29,8 @@ const TermsAndConditionsControlV2 = ({
29
29
  containerBackground = ATHENS_GREY,
30
30
  checkboxMargin = "4px 8px 4px 4px",
31
31
  modalTitle = "Terms and Conditions",
32
- initialFocusSelector = ""
32
+ initialFocusSelector = "",
33
+ isRequired = false
33
34
  }) => {
34
35
  const [showTerms, toggleShowTerms] = useState(false);
35
36
  const standardBoxShadow = generateShadows().standard.base;
@@ -61,6 +62,7 @@ const TermsAndConditionsControlV2 = ({
61
62
  checkboxMargin={checkboxMargin}
62
63
  extraStyles={`align-self: flex-start;`}
63
64
  labelledById={TermsAndConditionsTitleDivId}
65
+ isRequired={isRequired}
64
66
  />
65
67
  )}
66
68
  <Stack childGap="0.25rem" fullHeight>