@thecb/components 8.4.10-beta.2 → 8.4.10-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/dist/index.cjs.js +4 -22
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -22
- package/dist/index.esm.js.map +1 -1
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +49322 -0
- package/package.json +1 -1
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/form-select/FormSelect.js +1 -1
- package/src/components/atoms/icons/.DS_Store +0 -0
- package/src/components/atoms/radio-button-with-label/RadioButtonWithLabel.js +33 -49
- package/src/components/molecules/radio-group/RadioGroup.js +0 -2
- package/src/components/molecules/radio-group/RadioGroup.stories.js +1 -1
package/package.json
CHANGED
package/src/.DS_Store
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -84,7 +84,7 @@ const FormSelect = ({
|
|
|
84
84
|
autocompleteValue={autocompleteValue}
|
|
85
85
|
smoothScroll={smoothScroll}
|
|
86
86
|
/>
|
|
87
|
-
<Stack direction="row" justify="space-between">
|
|
87
|
+
<Stack direction="row" justify="space-between" aria-live="polite">
|
|
88
88
|
{(field.hasErrors && field.dirty) || (field.hasErrors && showErrors) ? (
|
|
89
89
|
<Text
|
|
90
90
|
color={ERROR_COLOR}
|
|
Binary file
|
|
@@ -57,45 +57,30 @@ const RadioButtonWithLabel = ({
|
|
|
57
57
|
ariaInvalid,
|
|
58
58
|
themeValues,
|
|
59
59
|
index,
|
|
60
|
-
handleChange = noop
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
style={{ marginTop: 0 }}
|
|
85
|
-
type="radio"
|
|
86
|
-
name={groupName}
|
|
87
|
-
id={id}
|
|
88
|
-
value={value}
|
|
89
|
-
onChange={e => {
|
|
90
|
-
setValue(e.target.value);
|
|
91
|
-
handleChange(e);
|
|
92
|
-
}}
|
|
93
|
-
defaultChecked={getDefaultChecked(value, index)}
|
|
94
|
-
/>
|
|
95
|
-
<Text
|
|
96
|
-
as="label"
|
|
97
|
-
htmlFor={id}
|
|
98
|
-
extraStyles={`
|
|
60
|
+
handleChange = noop // optional, for custom event handling in ingesting app
|
|
61
|
+
}) => (
|
|
62
|
+
<InputAndLabelContainer
|
|
63
|
+
align="center"
|
|
64
|
+
childGap="0.5rem"
|
|
65
|
+
activeColor={themeValues.activeColor}
|
|
66
|
+
>
|
|
67
|
+
<HiddenRadioInput
|
|
68
|
+
aria-invalid={ariaInvalid}
|
|
69
|
+
style={{ marginTop: 0 }}
|
|
70
|
+
type="radio"
|
|
71
|
+
name={groupName}
|
|
72
|
+
id={id}
|
|
73
|
+
value={value}
|
|
74
|
+
onChange={e => {
|
|
75
|
+
setValue(e.target.value);
|
|
76
|
+
handleChange(e);
|
|
77
|
+
}}
|
|
78
|
+
defaultChecked={index === 0}
|
|
79
|
+
/>
|
|
80
|
+
<Text
|
|
81
|
+
as="label"
|
|
82
|
+
htmlFor={id}
|
|
83
|
+
extraStyles={`
|
|
99
84
|
font-size: 1rem;
|
|
100
85
|
display: flex;
|
|
101
86
|
width: 100%;
|
|
@@ -103,16 +88,15 @@ const RadioButtonWithLabel = ({
|
|
|
103
88
|
cursor: pointer;
|
|
104
89
|
}
|
|
105
90
|
`}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
};
|
|
91
|
+
>
|
|
92
|
+
<Circle
|
|
93
|
+
activeColor={themeValues.activeColor}
|
|
94
|
+
inactiveBorderColor={themeValues.inactiveBorderColor}
|
|
95
|
+
/>
|
|
96
|
+
{labelText}
|
|
97
|
+
</Text>
|
|
98
|
+
</InputAndLabelContainer>
|
|
99
|
+
);
|
|
116
100
|
|
|
117
101
|
export default themeComponent(
|
|
118
102
|
RadioButtonWithLabel,
|