@thecb/components 5.2.2 → 5.3.3

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
@@ -40456,7 +40456,9 @@ var fallbackValues$C = {
40456
40456
  {
40457
40457
  title: <React Component(s)>,
40458
40458
  id: <String> "identifier of section",
40459
- disabled: boolean,
40459
+ disabled: boolean, (displays section and grayed out radio but disables interaction)
40460
+ hideRadioButton: boolean, (keeps section displayed but hides radio and disables open/close function),
40461
+ hidden: boolean, (hides section entirely)
40460
40462
  dataQa: string,
40461
40463
  content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work)
40462
40464
  }
@@ -40576,7 +40578,7 @@ var RadioSection = function RadioSection(_ref) {
40576
40578
  return !section.hidden;
40577
40579
  }).map(function (section) {
40578
40580
  return /*#__PURE__*/React__default.createElement(Motion, {
40579
- tabIndex: "0",
40581
+ tabIndex: section.hideRadioButton ? "-1" : "0",
40580
40582
  onKeyDown: function onKeyDown(e) {
40581
40583
  return handleKeyDown(section.id, e);
40582
40584
  },
@@ -41114,13 +41116,10 @@ var fontWeight$8 = {
41114
41116
  "default": FONT_WEIGHT_REGULAR,
41115
41117
  footer: FONT_WEIGHT_SEMIBOLD
41116
41118
  };
41119
+ var standardInteractionStyles = "\n &:hover {\n outline: none; \n text-decoration: underline;\n }\n &:focus {\n outline: 3px solid #3181E3;\n outline-offset: 2px;\n }\n";
41117
41120
  var modalLinkHoverFocus$2 = {
41118
- "default": "outline: none; text-decoration: underline;",
41119
- footer: "outline: none; text-decoration: underline;"
41120
- };
41121
- var accessibilityColor = {
41122
- "default": "#3181E3",
41123
- footer: "#3181E3"
41121
+ "default": standardInteractionStyles,
41122
+ footer: standardInteractionStyles
41124
41123
  };
41125
41124
  var fallbackValues$F = {
41126
41125
  backgroundColor: backgroundColor$9,
@@ -41129,8 +41128,7 @@ var fallbackValues$F = {
41129
41128
  fontSize: fontSize$c,
41130
41129
  lineHeight: lineHeight$6,
41131
41130
  fontWeight: fontWeight$8,
41132
- modalLinkHoverFocus: modalLinkHoverFocus$2,
41133
- accessibilityColor: accessibilityColor
41131
+ modalLinkHoverFocus: modalLinkHoverFocus$2
41134
41132
  };
41135
41133
 
41136
41134
  var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
@@ -41180,7 +41178,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
41180
41178
  color: themeValues.linkColor,
41181
41179
  weight: themeValues.fontWeight,
41182
41180
  hoverStyles: themeValues.modalLinkHoverFocus,
41183
- extraStyles: "cursor: pointer; \n &:focus { \n outline: 3px solid ".concat(themeValues.accessibilityColor, "; \n outline-offset: 2px; \n }")
41181
+ extraStyles: "display: inline-block; width: fit-content;"
41184
41182
  }, link));
41185
41183
  };
41186
41184