@thecb/components 8.4.10-beta.3 → 8.4.10-beta.5

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
@@ -24229,7 +24229,8 @@ var FormSelect = function FormSelect(_ref) {
24229
24229
  smoothScroll: smoothScroll
24230
24230
  }), /*#__PURE__*/React__default.createElement(Stack, {
24231
24231
  direction: "row",
24232
- justify: "space-between"
24232
+ justify: "space-between",
24233
+ "aria-live": "polite"
24233
24234
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
24234
24235
  color: ERROR_COLOR,
24235
24236
  variant: "pXS",
@@ -26013,7 +26014,7 @@ var FormInput = function FormInput(_ref15) {
26013
26014
  themeValues: themeValues,
26014
26015
  $customHeight: customHeight,
26015
26016
  $extraStyles: extraStyles,
26016
- autocomplete: autocomplete
26017
+ autoComplete: autocomplete
26017
26018
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26018
26019
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26019
26020
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26032,10 +26033,11 @@ var FormInput = function FormInput(_ref15) {
26032
26033
  background: background,
26033
26034
  $customHeight: customHeight,
26034
26035
  $extraStyles: extraStyles,
26035
- autocomplete: autocomplete
26036
+ autoComplete: autocomplete
26036
26037
  }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26037
26038
  direction: "row",
26038
- justify: "space-between"
26039
+ justify: "space-between",
26040
+ "aria-live": "polite"
26039
26041
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
26040
26042
  color: ERROR_COLOR,
26041
26043
  variant: "pXS",
@@ -27108,24 +27110,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27108
27110
  themeValues = _ref5.themeValues,
27109
27111
  index = _ref5.index,
27110
27112
  _ref5$handleChange = _ref5.handleChange,
27111
- handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange,
27112
- field = _ref5.field,
27113
- config = _ref5.config;
27114
-
27115
- var getDefaultChecked = function getDefaultChecked(value, idx) {
27116
- var selectionExistsInConfig = config.map(function (c) {
27117
- return c.value;
27118
- }).includes(field.rawValue);
27119
-
27120
- if (selectionExistsInConfig) {
27121
- // if exists, selection comes from the redux-freeform state
27122
- return field.rawValue === value;
27123
- } // fallback to first option as default selection
27124
-
27125
-
27126
- return idx === 0;
27127
- };
27128
-
27113
+ handleChange = _ref5$handleChange === void 0 ? noop : _ref5$handleChange;
27129
27114
  return /*#__PURE__*/React__default.createElement(InputAndLabelContainer, {
27130
27115
  align: "center",
27131
27116
  childGap: "0.5rem",
@@ -27143,7 +27128,7 @@ var RadioButtonWithLabel = function RadioButtonWithLabel(_ref5) {
27143
27128
  setValue(e.target.value);
27144
27129
  handleChange(e);
27145
27130
  },
27146
- defaultChecked: getDefaultChecked(value, index)
27131
+ defaultChecked: index === 0
27147
27132
  }), /*#__PURE__*/React__default.createElement(Text$1, {
27148
27133
  as: "label",
27149
27134
  htmlFor: id,
@@ -41345,7 +41330,7 @@ var EmailForm = function EmailForm(_ref) {
41345
41330
  return e.key === "Enter" && handleSubmit(e);
41346
41331
  },
41347
41332
  isEmail: true,
41348
- autocomplete: "email"
41333
+ autoComplete: "email"
41349
41334
  }), showWalletCheckbox && /*#__PURE__*/React__default.createElement(Checkbox$1, {
41350
41335
  name: "email checkbox",
41351
41336
  title: "Save email address to wallet",
@@ -49399,8 +49384,6 @@ var RadioGroup = function RadioGroup(_ref) {
49399
49384
  groupName: groupName,
49400
49385
  setValue: setValue,
49401
49386
  handleChange: handleChange,
49402
- field: field,
49403
- config: config,
49404
49387
  "aria-invalid": field.dirty && field.hasErrors
49405
49388
  }));
49406
49389
  })));