@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.
- package/dist/index.cjs.js +144 -124
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +144 -124
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/card-type/CardType.js +1 -5
- package/src/components/atoms/checkbox/Checkbox.js +11 -6
- package/src/components/atoms/form-layouts/FormInput.js +2 -0
- package/src/components/atoms/formatted-bank-account/FormattedBankAccount.js +11 -5
- package/src/components/atoms/formatted-credit-card/FormattedCreditCard.js +30 -30
- package/src/components/atoms/icons/AutopayOnIcon.js +1 -0
- package/src/components/atoms/link/InternalLink.js +3 -1
- package/src/components/molecules/editable-list/EditableList.js +22 -9
- package/src/components/molecules/link-card/LinkCard.js +13 -14
- package/src/components/molecules/link-card/LinkCard.stories.js +11 -14
- package/src/components/molecules/link-card/LinkCard.styled.js +18 -28
- package/src/components/molecules/link-card/LinkCard.theme.js +4 -6
- package/src/components/molecules/link-card/index.d.ts +1 -3
- package/src/components/molecules/obligation/modules/AutopayModalModule.js +10 -17
- package/src/components/molecules/obligation/modules/IconModule.js +1 -1
- package/src/components/molecules/radio-section/radio-button/RadioButton.js +1 -1
- package/src/components/molecules/registration-form/RegistrationForm.js +5 -0
- package/src/components/molecules/terms-and-conditions/TermsAndConditionsControlV2.js +3 -1
|
@@ -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>
|