@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.esm.js CHANGED
@@ -25948,8 +25948,7 @@ var FormInput = function FormInput(_ref15) {
25948
25948
  autocompleteValue = _ref15$autocompleteVa === void 0 ? "" : _ref15$autocompleteVa,
25949
25949
  extraStyles = _ref15.extraStyles,
25950
25950
  removeFromValue = _ref15.removeFromValue,
25951
- _ref15$dataQa = _ref15.dataQa,
25952
- dataQa = _ref15$dataQa === void 0 ? "Form Input" : _ref15$dataQa,
25951
+ dataQa = _ref15.dataQa,
25953
25952
  props = _objectWithoutProperties(_ref15, _excluded2);
25954
25953
 
25955
25954
  var _useState = useState(false),
@@ -26035,7 +26034,7 @@ var FormInput = function FormInput(_ref15) {
26035
26034
  themeValues: themeValues,
26036
26035
  $customHeight: customHeight,
26037
26036
  $extraStyles: extraStyles,
26038
- "data-qa": dataQa,
26037
+ "data-qa": dataQa || labelTextWhenNoError,
26039
26038
  autoComplete: autocompleteValue
26040
26039
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26041
26040
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
@@ -26054,14 +26053,14 @@ var FormInput = function FormInput(_ref15) {
26054
26053
  background: background,
26055
26054
  $customHeight: customHeight,
26056
26055
  $extraStyles: extraStyles,
26057
- "data-qa": dataQa,
26056
+ "data-qa": dataQa || labelTextWhenNoError,
26058
26057
  autoComplete: autocompleteValue
26059
26058
  }, props))), /*#__PURE__*/React.createElement(Stack, {
26060
26059
  direction: "row",
26061
26060
  justify: "space-between",
26062
26061
  "aria-live": "polite",
26063
26062
  "aria-atomic": true,
26064
- "data-qa": "".concat(labelTextWhenNoError, " errors")
26063
+ "data-qa": "".concat(labelTextWhenNoError, " error message")
26065
26064
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React.createElement(Text$1, {
26066
26065
  color: ERROR_COLOR,
26067
26066
  variant: "pXS",
@@ -40353,7 +40352,7 @@ var AddressForm = function AddressForm(_ref) {
40353
40352
  clearOnDismount = _ref.clearOnDismount,
40354
40353
  showErrors = _ref.showErrors,
40355
40354
  _ref$handleSubmit = _ref.handleSubmit,
40356
- handleSubmit = _ref$handleSubmit === void 0 ? noop : _ref$handleSubmit,
40355
+ handleSubmit = _ref$handleSubmit === void 0 ? noop$1 : _ref$handleSubmit,
40357
40356
  showWalletCheckbox = _ref.showWalletCheckbox,
40358
40357
  saveToWallet = _ref.saveToWallet,
40359
40358
  walletCheckboxMarked = _ref.walletCheckboxMarked;