@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.esm.js CHANGED
@@ -40448,7 +40448,9 @@ var fallbackValues$C = {
40448
40448
  {
40449
40449
  title: <React Component(s)>,
40450
40450
  id: <String> "identifier of section",
40451
- disabled: boolean,
40451
+ disabled: boolean, (displays section and grayed out radio but disables interaction)
40452
+ hideRadioButton: boolean, (keeps section displayed but hides radio and disables open/close function),
40453
+ hidden: boolean, (hides section entirely)
40452
40454
  dataQa: string,
40453
40455
  content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work)
40454
40456
  }
@@ -40568,7 +40570,7 @@ var RadioSection = function RadioSection(_ref) {
40568
40570
  return !section.hidden;
40569
40571
  }).map(function (section) {
40570
40572
  return /*#__PURE__*/React.createElement(Motion, {
40571
- tabIndex: "0",
40573
+ tabIndex: section.hideRadioButton ? "-1" : "0",
40572
40574
  onKeyDown: function onKeyDown(e) {
40573
40575
  return handleKeyDown(section.id, e);
40574
40576
  },
@@ -41106,13 +41108,10 @@ var fontWeight$8 = {
41106
41108
  "default": FONT_WEIGHT_REGULAR,
41107
41109
  footer: FONT_WEIGHT_SEMIBOLD
41108
41110
  };
41111
+ 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";
41109
41112
  var modalLinkHoverFocus$2 = {
41110
- "default": "outline: none; text-decoration: underline;",
41111
- footer: "outline: none; text-decoration: underline;"
41112
- };
41113
- var accessibilityColor = {
41114
- "default": "#3181E3",
41115
- footer: "#3181E3"
41113
+ "default": standardInteractionStyles,
41114
+ footer: standardInteractionStyles
41116
41115
  };
41117
41116
  var fallbackValues$F = {
41118
41117
  backgroundColor: backgroundColor$9,
@@ -41121,8 +41120,7 @@ var fallbackValues$F = {
41121
41120
  fontSize: fontSize$c,
41122
41121
  lineHeight: lineHeight$6,
41123
41122
  fontWeight: fontWeight$8,
41124
- modalLinkHoverFocus: modalLinkHoverFocus$2,
41125
- accessibilityColor: accessibilityColor
41123
+ modalLinkHoverFocus: modalLinkHoverFocus$2
41126
41124
  };
41127
41125
 
41128
41126
  var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
@@ -41172,7 +41170,7 @@ var TermsAndConditionsModal = function TermsAndConditionsModal(_ref) {
41172
41170
  color: themeValues.linkColor,
41173
41171
  weight: themeValues.fontWeight,
41174
41172
  hoverStyles: themeValues.modalLinkHoverFocus,
41175
- extraStyles: "cursor: pointer; \n &:focus { \n outline: 3px solid ".concat(themeValues.accessibilityColor, "; \n outline-offset: 2px; \n }")
41173
+ extraStyles: "display: inline-block; width: fit-content;"
41176
41174
  }, link));
41177
41175
  };
41178
41176