@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/dist/index.cjs.js CHANGED
@@ -25956,8 +25956,7 @@ var FormInput = function FormInput(_ref15) {
25956
25956
  autocompleteValue = _ref15$autocompleteVa === void 0 ? "" : _ref15$autocompleteVa,
25957
25957
  extraStyles = _ref15.extraStyles,
25958
25958
  removeFromValue = _ref15.removeFromValue,
25959
- _ref15$dataQa = _ref15.dataQa,
25960
- dataQa = _ref15$dataQa === void 0 ? "Form Input" : _ref15$dataQa,
25959
+ dataQa = _ref15.dataQa,
25961
25960
  props = _objectWithoutProperties(_ref15, _excluded2);
25962
25961
 
25963
25962
  var _useState = React.useState(false),
@@ -26043,7 +26042,7 @@ var FormInput = function FormInput(_ref15) {
26043
26042
  themeValues: themeValues,
26044
26043
  $customHeight: customHeight,
26045
26044
  $extraStyles: extraStyles,
26046
- "data-qa": dataQa,
26045
+ "data-qa": dataQa || labelTextWhenNoError,
26047
26046
  autoComplete: autocompleteValue
26048
26047
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26049
26048
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
@@ -26062,14 +26061,14 @@ var FormInput = function FormInput(_ref15) {
26062
26061
  background: background,
26063
26062
  $customHeight: customHeight,
26064
26063
  $extraStyles: extraStyles,
26065
- "data-qa": dataQa,
26064
+ "data-qa": dataQa || labelTextWhenNoError,
26066
26065
  autoComplete: autocompleteValue
26067
26066
  }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26068
26067
  direction: "row",
26069
26068
  justify: "space-between",
26070
26069
  "aria-live": "polite",
26071
26070
  "aria-atomic": true,
26072
- "data-qa": "".concat(labelTextWhenNoError, " errors")
26071
+ "data-qa": "".concat(labelTextWhenNoError, " error message")
26073
26072
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
26074
26073
  color: ERROR_COLOR,
26075
26074
  variant: "pXS",
@@ -40361,7 +40360,7 @@ var AddressForm = function AddressForm(_ref) {
40361
40360
  clearOnDismount = _ref.clearOnDismount,
40362
40361
  showErrors = _ref.showErrors,
40363
40362
  _ref$handleSubmit = _ref.handleSubmit,
40364
- handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40363
+ handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
40365
40364
  showWalletCheckbox = _ref.showWalletCheckbox,
40366
40365
  saveToWallet = _ref.saveToWallet,
40367
40366
  walletCheckboxMarked = _ref.walletCheckboxMarked;