@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.esm.js CHANGED
@@ -48758,7 +48758,7 @@ var RadioGroup = function RadioGroup(_ref) {
48758
48758
  var headingBackgroundColor$1 = "".concat(WHITE);
48759
48759
  var headingDisabledColor = "".concat(ATHENS_GREY);
48760
48760
  var bodyBackgroundColor$1 = "#eeeeee";
48761
- var borderColor$6 = "".concat(GREY_CHATEAU);
48761
+ var borderColor$6 = "".concat(GHOST_GREY);
48762
48762
  var focusStyles = "outline: none;";
48763
48763
  var fallbackValues$Q = {
48764
48764
  headingBackgroundColor: headingBackgroundColor$1,
@@ -48768,19 +48768,6 @@ var fallbackValues$Q = {
48768
48768
  focusStyles: focusStyles
48769
48769
  };
48770
48770
 
48771
- var headingBackgroundColor$2 = "".concat(WHITE);
48772
- var headingDisabledColor$1 = "".concat(ATHENS_GREY);
48773
- var bodyBackgroundColor$2 = "#eeeeee";
48774
- var borderColor$7 = "".concat(GREY_CHATEAU);
48775
- var focusStyles$1 = "outline: none;";
48776
- var fallbackValues$R = {
48777
- headingBackgroundColor: headingBackgroundColor$2,
48778
- headingDisabledColor: headingDisabledColor$1,
48779
- bodyBackgroundColor: bodyBackgroundColor$2,
48780
- borderColor: borderColor$7,
48781
- focusStyles: focusStyles$1
48782
- };
48783
-
48784
48771
  var idString = function idString(section) {
48785
48772
  return typeof section.title === "string" ? createIdFromString(section.title) : section.id;
48786
48773
  };
@@ -48804,6 +48791,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48804
48791
  setFocused = _ref.setFocused,
48805
48792
  sectionRefs = _ref.sectionRefs,
48806
48793
  ariaLabelledBy = _ref.ariaLabelledBy,
48794
+ isLastGroupedItemInSection = _ref.isLastGroupedItemInSection,
48807
48795
  _ref$onKeyDown = _ref.onKeyDown,
48808
48796
  onKeyDown = _ref$onKeyDown === void 0 ? noop : _ref$onKeyDown;
48809
48797
  var wrapper = {
@@ -48827,7 +48815,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48827
48815
  }
48828
48816
  }
48829
48817
  };
48830
- 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 ");
48818
+ 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 ");
48831
48819
  var RightIcon = styled.img.withConfig({
48832
48820
  displayName: "InnerRadioSection__RightIcon",
48833
48821
  componentId: "sc-1wtp6qc-0"
@@ -48878,7 +48866,7 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48878
48866
  key: "header-".concat(section.id),
48879
48867
  borderSize: "0px",
48880
48868
  borderColor: themeValues.borderColor,
48881
- borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
48869
+ borderWidthOverride: openSection === section.id && !!section.content && section.id !== openSection ? "0px 0px 1px 0px" : "",
48882
48870
  extraStyles: !section.disabled ? "cursor: pointer;" : ""
48883
48871
  }, /*#__PURE__*/React.createElement(Cluster, {
48884
48872
  justify: "space-between",
@@ -48935,10 +48923,9 @@ var InnerRadioSection = function InnerRadioSection(_ref) {
48935
48923
  animate: "open",
48936
48924
  exit: "closed",
48937
48925
  variants: wrapper,
48938
- extraStyles: "transform-origin: 100% 0;"
48926
+ extraStyles: "transform-origin: 100% 0; border-top: 1px solid ".concat(themeValues.borderColor)
48939
48927
  }, section.content))));
48940
48928
  };
48941
- var InnerRadioSection$1 = themeComponent(InnerRadioSection, "InnerRadioSection", fallbackValues$R);
48942
48929
 
48943
48930
  var _excluded$z = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
48944
48931
 
@@ -49032,7 +49019,8 @@ var RadioSection = function RadioSection(_ref) {
49032
49019
  }).map(function (section, i) {
49033
49020
  return /*#__PURE__*/React.createElement(Fragment$1, {
49034
49021
  key: "radio-section-".concat(sections.indexOf(section))
49035
- }, /*#__PURE__*/React.createElement(InnerRadioSection$1, {
49022
+ }, /*#__PURE__*/React.createElement(InnerRadioSection, {
49023
+ themeValues: themeValues,
49036
49024
  sectionIndex: i,
49037
49025
  section: section,
49038
49026
  sectionRefs: sectionRefs,
@@ -49045,7 +49033,8 @@ var RadioSection = function RadioSection(_ref) {
49045
49033
  return !section.disabled && handleKeyDown(section.id, e, i);
49046
49034
  },
49047
49035
  ariaLabelledBy: section.id,
49048
- ariaDescribedBy: "right-icons-".concat(idString$1(section))
49036
+ ariaDescribedBy: "right-icons-".concat(idString$1(section)),
49037
+ isLastGroupedItemInSection: false
49049
49038
  }));
49050
49039
  }), !!groupedSections && groupedSections.map(function (sectionGroup, sectionGroupIndex) {
49051
49040
  return sectionGroup.filter(function (unfilteredSection) {
@@ -49053,7 +49042,8 @@ var RadioSection = function RadioSection(_ref) {
49053
49042
  }).map(function (section, sectionIndex) {
49054
49043
  return /*#__PURE__*/React.createElement(Fragment$1, {
49055
49044
  key: "key-".concat(sectionGroupIndex, "-").concat(sectionIndex)
49056
- }, /*#__PURE__*/React.createElement(InnerRadioSection$1, {
49045
+ }, /*#__PURE__*/React.createElement(InnerRadioSection, {
49046
+ themeValues: themeValues,
49057
49047
  sectionIndex: "".concat(sectionGroupIndex, "-").concat(sectionIndex),
49058
49048
  section: section,
49059
49049
  sectionRefs: sectionRefs,
@@ -49063,10 +49053,11 @@ var RadioSection = function RadioSection(_ref) {
49063
49053
  ariaLabelledBy: section.id,
49064
49054
  ariaDescribedBy: "right-icons-".concat(idString$1(section)),
49065
49055
  openSection: openSection,
49066
- toggleOpenSection: toggleOpenSection
49056
+ toggleOpenSection: toggleOpenSection,
49057
+ isLastGroupedItemInSection: sectionGroup.indexOf(section) === sectionGroup.length - 1
49067
49058
  }), sectionGroup.indexOf(section) === sectionGroup.length - 1 && groupedSections.indexOf(sectionGroup) !== groupedSections.length - 1 && /*#__PURE__*/React.createElement(SolidDivider$1, {
49068
- borderSize: "2px",
49069
- color: themeValues.borderColor
49059
+ borderSize: "1px",
49060
+ borderColor: MANATEE_GREY
49070
49061
  }));
49071
49062
  });
49072
49063
  })));
@@ -49353,7 +49344,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
49353
49344
  var activeTabBackground = "#FFFFFF";
49354
49345
  var activeTabAccent = "#15749D";
49355
49346
  var activeTabHover = "#B8D5E1";
49356
- var fallbackValues$S = {
49347
+ var fallbackValues$R = {
49357
49348
  activeTabBackground: activeTabBackground,
49358
49349
  activeTabAccent: activeTabAccent,
49359
49350
  activeTabHover: activeTabHover
@@ -49421,12 +49412,12 @@ var Tabs = function Tabs(_ref) {
49421
49412
  }, tab.content);
49422
49413
  }))));
49423
49414
  };
49424
- var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$S);
49415
+ var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$R);
49425
49416
 
49426
49417
  var activeTabBackground$1 = "#FFFFFF";
49427
49418
  var activeTabAccent$1 = "#15749D";
49428
49419
  var activeTabHover$1 = "#B8D5E1";
49429
- var fallbackValues$T = {
49420
+ var fallbackValues$S = {
49430
49421
  activeTabBackground: activeTabBackground$1,
49431
49422
  activeTabAccent: activeTabAccent$1,
49432
49423
  activeTabHover: activeTabHover$1
@@ -49481,7 +49472,7 @@ var TabSidebar = function TabSidebar(_ref) {
49481
49472
  }, text)))));
49482
49473
  })));
49483
49474
  };
49484
- var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$T);
49475
+ var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$S);
49485
49476
 
49486
49477
  var Timeout = function Timeout(_ref) {
49487
49478
  var onLogout = _ref.onLogout;
@@ -49566,7 +49557,7 @@ var fontColor$1 = WHITE;
49566
49557
  var textAlign$1 = "left";
49567
49558
  var headerBackgroundColor$1 = BRIGHT_GREY;
49568
49559
  var imageBackgroundColor$1 = MATISSE_BLUE;
49569
- var fallbackValues$U = {
49560
+ var fallbackValues$T = {
49570
49561
  fontWeight: fontWeight$9,
49571
49562
  fontColor: fontColor$1,
49572
49563
  textAlign: textAlign$1,
@@ -49611,7 +49602,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
49611
49602
  src: welcomeImage
49612
49603
  })))));
49613
49604
  };
49614
- var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$U));
49605
+ var WelcomeModule$1 = /*#__PURE__*/memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$T));
49615
49606
 
49616
49607
  var WorkflowTile = function WorkflowTile(_ref) {
49617
49608
  var _ref$workflowName = _ref.workflowName,
@@ -49666,7 +49657,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
49666
49657
  };
49667
49658
 
49668
49659
  var pageBackground = "#FBFCFD";
49669
- var fallbackValues$V = {
49660
+ var fallbackValues$U = {
49670
49661
  pageBackground: pageBackground
49671
49662
  };
49672
49663
 
@@ -49714,7 +49705,7 @@ var CenterSingle = function CenterSingle(_ref) {
49714
49705
  padding: "0"
49715
49706
  })));
49716
49707
  };
49717
- var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$V));
49708
+ var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$U));
49718
49709
 
49719
49710
  var CenterStack = function CenterStack(_ref) {
49720
49711
  var header = _ref.header,
@@ -49757,7 +49748,7 @@ var CenterStack = function CenterStack(_ref) {
49757
49748
  padding: "0"
49758
49749
  })));
49759
49750
  };
49760
- var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$V));
49751
+ var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$U));
49761
49752
 
49762
49753
  var CenterSingle$2 = function CenterSingle(_ref) {
49763
49754
  var header = _ref.header,
@@ -49801,7 +49792,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
49801
49792
  padding: "0"
49802
49793
  })));
49803
49794
  };
49804
- var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$V));
49795
+ var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$U));
49805
49796
 
49806
49797
  var SidebarSingleContent = function SidebarSingleContent(_ref) {
49807
49798
  var header = _ref.header,
@@ -49854,7 +49845,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
49854
49845
  padding: "0"
49855
49846
  })));
49856
49847
  };
49857
- var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$V));
49848
+ var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$U));
49858
49849
 
49859
49850
  var SidebarStackContent = function SidebarStackContent(_ref) {
49860
49851
  var header = _ref.header,
@@ -49924,7 +49915,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
49924
49915
  key: "footer-box"
49925
49916
  })));
49926
49917
  };
49927
- var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$V));
49918
+ var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$U));
49928
49919
 
49929
49920
  var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
49930
49921
  var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};