@thecb/components 11.11.2 → 11.11.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
@@ -15091,7 +15091,8 @@ var AutopayOnIcon = function AutopayOnIcon(_ref) {
15091
15091
  xmlns: "http://www.w3.org/2000/svg",
15092
15092
  width: "12",
15093
15093
  height: "13",
15094
- viewBox: "0 0 12 13"
15094
+ viewBox: "0 0 12 13",
15095
+ "aria-hidden": "true"
15095
15096
  }, /*#__PURE__*/React__default.createElement("g", {
15096
15097
  fill: "none",
15097
15098
  fillRule: "evenodd",
@@ -46136,7 +46137,8 @@ var IconsModule = function IconsModule(_ref) {
46136
46137
  Icon = iconsMap[icon];
46137
46138
  }
46138
46139
  return /*#__PURE__*/React__default.createElement(Box, {
46139
- padding: "0 1rem 0 0"
46140
+ padding: "0 1rem 0 0",
46141
+ "aria-hidden": "true"
46140
46142
  }, /*#__PURE__*/React__default.createElement(Cluster, {
46141
46143
  justify: "center",
46142
46144
  align: "center"
@@ -46220,7 +46222,6 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46220
46222
  } : navigateToSettings,
46221
46223
  isLoading: deactivatingSchedule
46222
46224
  };
46223
- var modalLinkHoverFocus = "\n outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;\n ";
46224
46225
  var hoverStyles = "text-decoration: underline;";
46225
46226
  var activeStyles = "text-decoration: underline;";
46226
46227
  var renderAutoPayControl = function renderAutoPayControl() {
@@ -46255,28 +46256,25 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46255
46256
  {
46256
46257
  return /*#__PURE__*/React__default.createElement(Box, {
46257
46258
  padding: "0",
46259
+ role: "button",
46260
+ tabIndex: "0",
46258
46261
  onClick: onClick || function () {
46259
46262
  toggleModal(true);
46260
46263
  },
46264
+ onKeyDown: onKeyPress || function (e) {
46265
+ e.key === "Enter" && toggleModal(true);
46266
+ },
46261
46267
  hoverStyles: hoverStyles,
46262
46268
  activeStyles: activeStyles,
46263
- extraStyles: "cursor: pointer;"
46269
+ extraStyles: "cursor: pointer; margin-bottom: 5px;",
46270
+ dataQa: "".concat(shortPlan, " On")
46264
46271
  }, /*#__PURE__*/React__default.createElement(Cluster, {
46265
46272
  justify: isMobile ? "flex-start" : "flex-end",
46266
46273
  align: "center"
46267
46274
  }, /*#__PURE__*/React__default.createElement(AutopayOnIcon, null), /*#__PURE__*/React__default.createElement(Text$1, {
46268
46275
  variant: "pS",
46269
- onClick: onClick || function () {
46270
- return toggleModal(true);
46271
- },
46272
- onKeyPress: onKeyPress || function (e) {
46273
- e.key === "Enter" && toggleModal(true);
46274
- },
46275
- tabIndex: "0",
46276
- dataQa: "".concat(shortPlan, " On"),
46277
46276
  color: SEA_GREEN,
46278
46277
  weight: FONT_WEIGHT_REGULAR,
46279
- hoverStyles: modalLinkHoverFocus,
46280
46278
  extraStyles: "padding-left: 0.25rem;",
46281
46279
  disabled: disableActions
46282
46280
  }, "".concat(shortPlan, " ").concat(nextAutopayDate))));