@thecb/components 9.0.4-beta.2 → 9.0.4-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.esm.js CHANGED
@@ -18756,7 +18756,7 @@ var Alert = function Alert(_ref) {
18756
18756
  _ref$contentFullHeigh = _ref.contentFullHeight,
18757
18757
  contentFullHeight = _ref$contentFullHeigh === void 0 ? false : _ref$contentFullHeigh,
18758
18758
  _ref$ariaRole = _ref.ariaRole,
18759
- ariaRole = _ref$ariaRole === void 0 ? "group" : _ref$ariaRole,
18759
+ ariaRole = _ref$ariaRole === void 0 ? null : _ref$ariaRole,
18760
18760
  _ref$ariaAtomic = _ref.ariaAtomic,
18761
18761
  ariaAtomic = _ref$ariaAtomic === void 0 ? true : _ref$ariaAtomic,
18762
18762
  _ref$ariaLive = _ref.ariaLive,
@@ -18806,7 +18806,7 @@ var Alert = function Alert(_ref) {
18806
18806
  minHeight: "100%",
18807
18807
  onClick: onLinkClick
18808
18808
  }, /*#__PURE__*/React.createElement(IconQuit, null))))));
18809
- return /*#__PURE__*/React.createElement(Box, {
18809
+ return /*#__PURE__*/React.createElement(Box, _extends({
18810
18810
  padding: padding,
18811
18811
  width: "100%",
18812
18812
  minHeight: height && parseInt(height) < 100 ? height : "100px",
@@ -18816,11 +18816,14 @@ var Alert = function Alert(_ref) {
18816
18816
  borderColor: themeValues.border,
18817
18817
  borderSize: noBorder ? "0px" : "1px",
18818
18818
  boxShadow: enableBoxShadow ? (_generateShadows = generateShadows()) === null || _generateShadows === void 0 ? void 0 : (_generateShadows$inse = _generateShadows.inset) === null || _generateShadows$inse === void 0 ? void 0 : _generateShadows$inse.base : "",
18819
- extraStyles: extraStyles,
18820
- role: ariaRole,
18821
- "aria-atomic": ariaAtomic,
18819
+ extraStyles: extraStyles
18820
+ }, ariaAtomic !== null ? {
18821
+ "aria-atomic": ariaAtomic
18822
+ } : {}, ariaLive !== null ? {
18822
18823
  "aria-live": ariaLive
18823
- }, maxContentWidth ? /*#__PURE__*/React.createElement(Center, {
18824
+ } : {}, ariaRole !== null ? {
18825
+ role: ariaRole
18826
+ } : {}), maxContentWidth ? /*#__PURE__*/React.createElement(Center, {
18824
18827
  maxWidth: maxContentWidth
18825
18828
  }, content) : content);
18826
18829
  };
@@ -26047,8 +26050,7 @@ var FormInput = function FormInput(_ref15) {
26047
26050
  $customHeight: customHeight,
26048
26051
  $extraStyles: extraStyles,
26049
26052
  "data-qa": dataQa || labelTextWhenNoError,
26050
- autoComplete: autocompleteValue,
26051
- "aria-busy": true
26053
+ autoComplete: autocompleteValue
26052
26054
  }, props)) : /*#__PURE__*/React.createElement(InputField, _extends({
26053
26055
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26054
26056
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26067,8 +26069,7 @@ var FormInput = function FormInput(_ref15) {
26067
26069
  $customHeight: customHeight,
26068
26070
  $extraStyles: extraStyles,
26069
26071
  "data-qa": dataQa || labelTextWhenNoError,
26070
- autoComplete: autocompleteValue,
26071
- "aria-busy": true
26072
+ autoComplete: autocompleteValue
26072
26073
  }, props))), /*#__PURE__*/React.createElement("div", {
26073
26074
  role: "status",
26074
26075
  "aria-atomic": true
@@ -46756,8 +46757,7 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
46756
46757
  }, "Amount owed:", " ", /*#__PURE__*/React.createElement(Text$1, {
46757
46758
  variant: "p",
46758
46759
  weight: "600"
46759
- }, displayCurrency(li.amount))),
46760
- "aria-busy": true
46760
+ }, displayCurrency(li.amount)))
46761
46761
  });
46762
46762
  })));
46763
46763
  };