@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.cjs.js CHANGED
@@ -15099,7 +15099,8 @@ var AutopayOnIcon = function AutopayOnIcon(_ref) {
15099
15099
  xmlns: "http://www.w3.org/2000/svg",
15100
15100
  width: "12",
15101
15101
  height: "13",
15102
- viewBox: "0 0 12 13"
15102
+ viewBox: "0 0 12 13",
15103
+ "aria-hidden": "true"
15103
15104
  }, /*#__PURE__*/React__default.createElement("g", {
15104
15105
  fill: "none",
15105
15106
  fillRule: "evenodd",
@@ -46144,7 +46145,8 @@ var IconsModule = function IconsModule(_ref) {
46144
46145
  Icon = iconsMap[icon];
46145
46146
  }
46146
46147
  return /*#__PURE__*/React__default.createElement(Box, {
46147
- padding: "0 1rem 0 0"
46148
+ padding: "0 1rem 0 0",
46149
+ "aria-hidden": "true"
46148
46150
  }, /*#__PURE__*/React__default.createElement(Cluster, {
46149
46151
  justify: "center",
46150
46152
  align: "center"
@@ -46228,7 +46230,6 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46228
46230
  } : navigateToSettings,
46229
46231
  isLoading: deactivatingSchedule
46230
46232
  };
46231
- var modalLinkHoverFocus = "\n outline: none;\n cursor: pointer;\n text-decoration: underline;\n text-decoration-color: #317D4F;\n ";
46232
46233
  var hoverStyles = "text-decoration: underline;";
46233
46234
  var activeStyles = "text-decoration: underline;";
46234
46235
  var renderAutoPayControl = function renderAutoPayControl() {
@@ -46263,28 +46264,25 @@ var AutopayModalModule = function AutopayModalModule(_ref) {
46263
46264
  {
46264
46265
  return /*#__PURE__*/React__default.createElement(Box, {
46265
46266
  padding: "0",
46267
+ role: "button",
46268
+ tabIndex: "0",
46266
46269
  onClick: onClick || function () {
46267
46270
  toggleModal(true);
46268
46271
  },
46272
+ onKeyDown: onKeyPress || function (e) {
46273
+ e.key === "Enter" && toggleModal(true);
46274
+ },
46269
46275
  hoverStyles: hoverStyles,
46270
46276
  activeStyles: activeStyles,
46271
- extraStyles: "cursor: pointer;"
46277
+ extraStyles: "cursor: pointer; margin-bottom: 5px;",
46278
+ dataQa: "".concat(shortPlan, " On")
46272
46279
  }, /*#__PURE__*/React__default.createElement(Cluster, {
46273
46280
  justify: isMobile ? "flex-start" : "flex-end",
46274
46281
  align: "center"
46275
46282
  }, /*#__PURE__*/React__default.createElement(AutopayOnIcon, null), /*#__PURE__*/React__default.createElement(Text$1, {
46276
46283
  variant: "pS",
46277
- onClick: onClick || function () {
46278
- return toggleModal(true);
46279
- },
46280
- onKeyPress: onKeyPress || function (e) {
46281
- e.key === "Enter" && toggleModal(true);
46282
- },
46283
- tabIndex: "0",
46284
- dataQa: "".concat(shortPlan, " On"),
46285
46284
  color: SEA_GREEN,
46286
46285
  weight: FONT_WEIGHT_REGULAR,
46287
- hoverStyles: modalLinkHoverFocus,
46288
46286
  extraStyles: "padding-left: 0.25rem;",
46289
46287
  disabled: disableActions
46290
46288
  }, "".concat(shortPlan, " ").concat(nextAutopayDate))));