@thecb/components 9.0.3 → 9.0.4-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
@@ -18762,7 +18762,13 @@ var Alert = function Alert(_ref) {
18762
18762
  _ref$iconPadding = _ref.iconPadding,
18763
18763
  iconPadding = _ref$iconPadding === void 0 ? "0 0 0 1rem" : _ref$iconPadding,
18764
18764
  _ref$contentFullHeigh = _ref.contentFullHeight,
18765
- contentFullHeight = _ref$contentFullHeigh === void 0 ? false : _ref$contentFullHeigh;
18765
+ contentFullHeight = _ref$contentFullHeigh === void 0 ? false : _ref$contentFullHeigh,
18766
+ _ref$ariaRole = _ref.ariaRole,
18767
+ ariaRole = _ref$ariaRole === void 0 ? "group" : _ref$ariaRole,
18768
+ _ref$ariaAtomic = _ref.ariaAtomic,
18769
+ ariaAtomic = _ref$ariaAtomic === void 0 ? true : _ref$ariaAtomic,
18770
+ _ref$ariaLive = _ref.ariaLive,
18771
+ ariaLive = _ref$ariaLive === void 0 ? "polite" : _ref$ariaLive;
18766
18772
  var Icon = AlertIcons[variant];
18767
18773
  var contentPadding = maxContentWidth ? "".concat(padding, " 1rem") : innerContentPadding;
18768
18774
  var content = /*#__PURE__*/React__default.createElement(Sidebar, {
@@ -18819,8 +18825,9 @@ var Alert = function Alert(_ref) {
18819
18825
  borderSize: noBorder ? "0px" : "1px",
18820
18826
  boxShadow: enableBoxShadow ? (_generateShadows = generateShadows()) === null || _generateShadows === void 0 ? void 0 : (_generateShadows$inse = _generateShadows.inset) === null || _generateShadows$inse === void 0 ? void 0 : _generateShadows$inse.base : "",
18821
18827
  extraStyles: extraStyles,
18822
- role: "alert",
18823
- "aria-atomic": true
18828
+ role: ariaRole,
18829
+ "aria-atomic": ariaAtomic,
18830
+ "aria-live": ariaLive
18824
18831
  }, maxContentWidth ? /*#__PURE__*/React__default.createElement(Center, {
18825
18832
  maxWidth: maxContentWidth
18826
18833
  }, content) : content);
@@ -26048,7 +26055,8 @@ var FormInput = function FormInput(_ref15) {
26048
26055
  $customHeight: customHeight,
26049
26056
  $extraStyles: extraStyles,
26050
26057
  "data-qa": dataQa || labelTextWhenNoError,
26051
- autoComplete: autocompleteValue
26058
+ autoComplete: autocompleteValue,
26059
+ "aria-busy": true
26052
26060
  }, props)) : /*#__PURE__*/React__default.createElement(InputField, _extends({
26053
26061
  "aria-labelledby": createIdFromString(labelTextWhenNoError),
26054
26062
  "aria-describedby": createIdFromString(labelTextWhenNoError, "error message"),
@@ -26067,23 +26075,25 @@ var FormInput = function FormInput(_ref15) {
26067
26075
  $customHeight: customHeight,
26068
26076
  $extraStyles: extraStyles,
26069
26077
  "data-qa": dataQa || labelTextWhenNoError,
26070
- autoComplete: autocompleteValue
26071
- }, props))), /*#__PURE__*/React__default.createElement(Stack, {
26072
- direction: "row",
26073
- justify: "space-between",
26074
- "aria-live": "polite",
26078
+ autoComplete: autocompleteValue,
26079
+ "aria-busy": true
26080
+ }, props))), /*#__PURE__*/React__default.createElement("div", {
26081
+ role: "status",
26075
26082
  "aria-atomic": true
26083
+ }, /*#__PURE__*/React__default.createElement(Stack, {
26084
+ direction: "row",
26085
+ justify: "space-between"
26076
26086
  }, field.hasErrors && field.dirty || field.hasErrors && showErrors ? /*#__PURE__*/React__default.createElement(Text$1, {
26077
26087
  color: ERROR_COLOR,
26078
26088
  variant: "pXS",
26079
26089
  weight: themeValues.fontWeight,
26080
- extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
26090
+ extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
26081
26091
  id: createIdFromString(labelTextWhenNoError, "error message")
26082
26092
  }, errorMessages[field.errors[0]]) : /*#__PURE__*/React__default.createElement(Text$1, {
26083
26093
  extraStyles: "height: ".concat(themeValues.lineHeight, ";")
26084
26094
  }), !isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
26085
26095
  padding: "0 0 0 auto"
26086
- }, decorator)));
26096
+ }, decorator))));
26087
26097
  };
26088
26098
 
26089
26099
  var FormInput$1 = themeComponent(FormInput, "FormInput", fallbackValues$k, "default");
@@ -46754,7 +46764,8 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
46754
46764
  }, "Amount owed:", " ", /*#__PURE__*/React__default.createElement(Text$1, {
46755
46765
  variant: "p",
46756
46766
  weight: "600"
46757
- }, displayCurrency(li.amount)))
46767
+ }, displayCurrency(li.amount))),
46768
+ "aria-busy": true
46758
46769
  });
46759
46770
  })));
46760
46771
  };