@thecb/components 9.5.0-beta.5 → 9.5.0-beta.6

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
@@ -48766,7 +48766,7 @@ var RadioGroup = function RadioGroup(_ref) {
48766
48766
  var headingBackgroundColor$1 = "".concat(WHITE);
48767
48767
  var headingDisabledColor = "".concat(ATHENS_GREY);
48768
48768
  var bodyBackgroundColor$1 = "#eeeeee";
48769
- var borderColor$6 = "".concat(GREY_CHATEAU);
48769
+ var borderColor$6 = "".concat(GHOST_GREY);
48770
48770
  var focusStyles = "outline: none;";
48771
48771
  var fallbackValues$Q = {
48772
48772
  headingBackgroundColor: headingBackgroundColor$1,
@@ -48776,19 +48776,6 @@ var fallbackValues$Q = {
48776
48776
  focusStyles: focusStyles
48777
48777
  };
48778
48778
 
48779
- var headingBackgroundColor$2 = "".concat(WHITE);
48780
- var headingDisabledColor$1 = "".concat(ATHENS_GREY);
48781
- var bodyBackgroundColor$2 = "#eeeeee";
48782
- var borderColor$7 = "".concat(GREY_CHATEAU);
48783
- var focusStyles$1 = "outline: none;";
48784
- var fallbackValues$R = {
48785
- headingBackgroundColor: headingBackgroundColor$2,
48786
- headingDisabledColor: headingDisabledColor$1,
48787
- bodyBackgroundColor: bodyBackgroundColor$2,
48788
- borderColor: borderColor$7,
48789
- focusStyles: focusStyles$1
48790
- };
48791
-
48792
48779
  var idString = function idString(section) {
48793
48780
  return typeof section.title === "string" ? createIdFromString(section.title) : section.id;
48794
48781
  };
@@ -48812,6 +48799,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48812
48799
  setFocused = _ref.setFocused,
48813
48800
  sectionRefs = _ref.sectionRefs,
48814
48801
  ariaLabelledBy = _ref.ariaLabelledBy,
48802
+ isLastGroupedItemInSection = _ref.isLastGroupedItemInSection,
48815
48803
  _ref$onKeyDown = _ref.onKeyDown,
48816
48804
  onKeyDown = _ref$onKeyDown === void 0 ? noop : _ref$onKeyDown;
48817
48805
  var wrapper = {
@@ -48835,7 +48823,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48835
48823
  }
48836
48824
  }
48837
48825
  };
48838
- var borderStyles = "\n border-width: 0 0 1px 0;\n border-color: ".concat(themeValues.borderColor, ";\n border-style: solid;\n border-radius: 0px;\n transform-origin: 100% 0;\n\n &:last-child {\n border-width: 0;\n }\n ");
48826
+ var borderStyles = "\n border-width: 0 0 1px 0;\n border-color: ".concat(isLastGroupedItemInSection ? MANATEE_GREY : themeValues.borderColor, ";\n border-style: solid;\n border-radius: 0px;\n transform-origin: 100% 0;\n\n &:last-child {\n border-width: 0;\n }\n ");
48839
48827
  var RightIcon = styled__default.img.withConfig({
48840
48828
  displayName: "InnerRadioSection__RightIcon",
48841
48829
  componentId: "sc-1wtp6qc-0"
@@ -48886,7 +48874,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48886
48874
  key: "header-".concat(section.id),
48887
48875
  borderSize: "0px",
48888
48876
  borderColor: themeValues.borderColor,
48889
- borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
48877
+ borderWidthOverride: openSection === section.id && !!section.content && section.id !== openSection ? "0px 0px 1px 0px" : "",
48890
48878
  extraStyles: !section.disabled ? "cursor: pointer;" : ""
48891
48879
  }, /*#__PURE__*/React__default.createElement(Cluster, {
48892
48880
  justify: "space-between",
@@ -48943,10 +48931,9 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48943
48931
  animate: "open",
48944
48932
  exit: "closed",
48945
48933
  variants: wrapper,
48946
- extraStyles: "transform-origin: 100% 0;"
48934
+ extraStyles: "transform-origin: 100% 0; border-top: 1px solid ".concat(themeValues.borderColor)
48947
48935
  }, section.content))));
48948
48936
  };
48949
- var InnerRadioSection$1 = themeComponent(InnerRadioSection, "InnerRadioSection", fallbackValues$R);
48950
48937
 
48951
48938
  var _excluded$z = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
48952
48939
 
@@ -49040,7 +49027,8 @@ var RadioSection = function RadioSection(_ref) {
49040
49027
  }).map(function (section, i) {
49041
49028
  return /*#__PURE__*/React__default.createElement(React.Fragment, {
49042
49029
  key: "radio-section-".concat(sections.indexOf(section))
49043
- }, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
49030
+ }, /*#__PURE__*/React__default.createElement(InnerRadioSection, {
49031
+ themeValues: themeValues,
49044
49032
  sectionIndex: i,
49045
49033
  section: section,
49046
49034
  sectionRefs: sectionRefs,
@@ -49053,7 +49041,8 @@ var RadioSection = function RadioSection(_ref) {
49053
49041
  return !section.disabled && handleKeyDown(section.id, e, i);
49054
49042
  },
49055
49043
  ariaLabelledBy: section.id,
49056
- ariaDescribedBy: "right-icons-".concat(idString$1(section))
49044
+ ariaDescribedBy: "right-icons-".concat(idString$1(section)),
49045
+ isLastGroupedItemInSection: false
49057
49046
  }));
49058
49047
  }), !!groupedSections && groupedSections.map(function (sectionGroup, sectionGroupIndex) {
49059
49048
  return sectionGroup.filter(function (unfilteredSection) {
@@ -49061,7 +49050,8 @@ var RadioSection = function RadioSection(_ref) {
49061
49050
  }).map(function (section, sectionIndex) {
49062
49051
  return /*#__PURE__*/React__default.createElement(React.Fragment, {
49063
49052
  key: "key-".concat(sectionGroupIndex, "-").concat(sectionIndex)
49064
- }, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
49053
+ }, /*#__PURE__*/React__default.createElement(InnerRadioSection, {
49054
+ themeValues: themeValues,
49065
49055
  sectionIndex: "".concat(sectionGroupIndex, "-").concat(sectionIndex),
49066
49056
  section: section,
49067
49057
  sectionRefs: sectionRefs,
@@ -49071,10 +49061,11 @@ var RadioSection = function RadioSection(_ref) {
49071
49061
  ariaLabelledBy: section.id,
49072
49062
  ariaDescribedBy: "right-icons-".concat(idString$1(section)),
49073
49063
  openSection: openSection,
49074
- toggleOpenSection: toggleOpenSection
49064
+ toggleOpenSection: toggleOpenSection,
49065
+ isLastGroupedItemInSection: sectionGroup.indexOf(section) === sectionGroup.length - 1
49075
49066
  }), sectionGroup.indexOf(section) === sectionGroup.length - 1 && groupedSections.indexOf(sectionGroup) !== groupedSections.length - 1 && /*#__PURE__*/React__default.createElement(SolidDivider$1, {
49076
- borderSize: "2px",
49077
- color: themeValues.borderColor
49067
+ borderSize: "1px",
49068
+ borderColor: MANATEE_GREY
49078
49069
  }));
49079
49070
  });
49080
49071
  })));
@@ -49361,7 +49352,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
49361
49352
  var activeTabBackground = "#FFFFFF";
49362
49353
  var activeTabAccent = "#15749D";
49363
49354
  var activeTabHover = "#B8D5E1";
49364
- var fallbackValues$S = {
49355
+ var fallbackValues$R = {
49365
49356
  activeTabBackground: activeTabBackground,
49366
49357
  activeTabAccent: activeTabAccent,
49367
49358
  activeTabHover: activeTabHover
@@ -49429,12 +49420,12 @@ var Tabs = function Tabs(_ref) {
49429
49420
  }, tab.content);
49430
49421
  }))));
49431
49422
  };
49432
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$S);
49423
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$R);
49433
49424
 
49434
49425
  var activeTabBackground$1 = "#FFFFFF";
49435
49426
  var activeTabAccent$1 = "#15749D";
49436
49427
  var activeTabHover$1 = "#B8D5E1";
49437
- var fallbackValues$T = {
49428
+ var fallbackValues$S = {
49438
49429
  activeTabBackground: activeTabBackground$1,
49439
49430
  activeTabAccent: activeTabAccent$1,
49440
49431
  activeTabHover: activeTabHover$1
@@ -49489,7 +49480,7 @@ var TabSidebar = function TabSidebar(_ref) {
49489
49480
  }, text)))));
49490
49481
  })));
49491
49482
  };
49492
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$T);
49483
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$S);
49493
49484
 
49494
49485
  var Timeout = function Timeout(_ref) {
49495
49486
  var onLogout = _ref.onLogout;
@@ -49574,7 +49565,7 @@ var fontColor$1 = WHITE;
49574
49565
  var textAlign$1 = "left";
49575
49566
  var headerBackgroundColor$1 = BRIGHT_GREY;
49576
49567
  var imageBackgroundColor$1 = MATISSE_BLUE;
49577
- var fallbackValues$U = {
49568
+ var fallbackValues$T = {
49578
49569
  fontWeight: fontWeight$9,
49579
49570
  fontColor: fontColor$1,
49580
49571
  textAlign: textAlign$1,
@@ -49619,7 +49610,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
49619
49610
  src: welcomeImage
49620
49611
  })))));
49621
49612
  };
49622
- var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$U));
49613
+ var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$T));
49623
49614
 
49624
49615
  var WorkflowTile = function WorkflowTile(_ref) {
49625
49616
  var _ref$workflowName = _ref.workflowName,
@@ -49674,7 +49665,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
49674
49665
  };
49675
49666
 
49676
49667
  var pageBackground = "#FBFCFD";
49677
- var fallbackValues$V = {
49668
+ var fallbackValues$U = {
49678
49669
  pageBackground: pageBackground
49679
49670
  };
49680
49671
 
@@ -49722,7 +49713,7 @@ var CenterSingle = function CenterSingle(_ref) {
49722
49713
  padding: "0"
49723
49714
  })));
49724
49715
  };
49725
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$V));
49716
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$U));
49726
49717
 
49727
49718
  var CenterStack = function CenterStack(_ref) {
49728
49719
  var header = _ref.header,
@@ -49765,7 +49756,7 @@ var CenterStack = function CenterStack(_ref) {
49765
49756
  padding: "0"
49766
49757
  })));
49767
49758
  };
49768
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$V));
49759
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$U));
49769
49760
 
49770
49761
  var CenterSingle$2 = function CenterSingle(_ref) {
49771
49762
  var header = _ref.header,
@@ -49809,7 +49800,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
49809
49800
  padding: "0"
49810
49801
  })));
49811
49802
  };
49812
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$V));
49803
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$U));
49813
49804
 
49814
49805
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
49815
49806
  var header = _ref.header,
@@ -49862,7 +49853,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
49862
49853
  padding: "0"
49863
49854
  })));
49864
49855
  };
49865
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$V));
49856
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$U));
49866
49857
 
49867
49858
  var SidebarStackContent = function SidebarStackContent(_ref) {
49868
49859
  var header = _ref.header,
@@ -49932,7 +49923,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
49932
49923
  key: "footer-box"
49933
49924
  })));
49934
49925
  };
49935
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$V));
49926
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$U));
49936
49927
 
49937
49928
  var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
49938
49929
  var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};