@thecb/components 9.0.0-beta.0 → 9.0.0-beta.2
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
|
@@ -115,7 +115,7 @@ const FormInput = ({
|
|
|
115
115
|
autocompleteValue = "",
|
|
116
116
|
extraStyles,
|
|
117
117
|
removeFromValue, // regex of characters to remove before setting value
|
|
118
|
-
dataQa
|
|
118
|
+
dataQa,
|
|
119
119
|
...props
|
|
120
120
|
}) => {
|
|
121
121
|
const [showPassword, setShowPassword] = useState(false);
|
|
@@ -219,7 +219,7 @@ const FormInput = ({
|
|
|
219
219
|
themeValues={themeValues}
|
|
220
220
|
$customHeight={customHeight}
|
|
221
221
|
$extraStyles={extraStyles}
|
|
222
|
-
data-qa={dataQa}
|
|
222
|
+
data-qa={dataQa || labelTextWhenNoError}
|
|
223
223
|
autoComplete={autocompleteValue}
|
|
224
224
|
{...props}
|
|
225
225
|
/>
|
|
@@ -245,7 +245,7 @@ const FormInput = ({
|
|
|
245
245
|
background={background}
|
|
246
246
|
$customHeight={customHeight}
|
|
247
247
|
$extraStyles={extraStyles}
|
|
248
|
-
data-qa={dataQa}
|
|
248
|
+
data-qa={dataQa || labelTextWhenNoError}
|
|
249
249
|
autoComplete={autocompleteValue}
|
|
250
250
|
{...props}
|
|
251
251
|
/>
|
|
@@ -256,7 +256,7 @@ const FormInput = ({
|
|
|
256
256
|
justify="space-between"
|
|
257
257
|
aria-live="polite"
|
|
258
258
|
aria-atomic={true}
|
|
259
|
-
data-qa={`${labelTextWhenNoError}
|
|
259
|
+
data-qa={`${labelTextWhenNoError} error message`}
|
|
260
260
|
>
|
|
261
261
|
{(field.hasErrors && field.dirty) || (field.hasErrors && showErrors) ? (
|
|
262
262
|
<Text
|
|
@@ -3,6 +3,7 @@ import { required, hasLength } from "redux-freeform";
|
|
|
3
3
|
import StateProvinceDropdown from "../../atoms/state-province-dropdown";
|
|
4
4
|
import Checkbox from "../../atoms/checkbox";
|
|
5
5
|
import CountryDropdown from "../../atoms/country-dropdown";
|
|
6
|
+
import { noop } from "../../../util/general";
|
|
6
7
|
import { zipFormat } from "../../../util/formats";
|
|
7
8
|
import {
|
|
8
9
|
FormInput,
|