@thecb/components 9.5.0-beta.4 → 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 +31 -39
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +31 -39
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/radio-section/InnerRadioSection.js +10 -10
- package/src/components/molecules/radio-section/RadioSection.js +15 -5
- package/src/components/molecules/radio-section/RadioSection.stories.js +11 -4
- package/src/components/molecules/radio-section/RadioSection.theme.js +2 -2
- package/src/components/molecules/radio-section/InnerRadioSection.theme.js +0 -15
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(
|
|
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,12 +48931,12 @@ 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"];
|
|
48939
|
+
|
|
48952
48940
|
/**
|
|
48953
48941
|
- The RadioSection component takes either a flat array (via the 'sections'
|
|
48954
48942
|
prop) of section objects or a multidimensional array (via the 'groupedSections' prop) of section objects. Note that if using a multidimensional array, the nesting cannot exceed 2 levels deep.
|
|
@@ -49039,7 +49027,8 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49039
49027
|
}).map(function (section, i) {
|
|
49040
49028
|
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
49041
49029
|
key: "radio-section-".concat(sections.indexOf(section))
|
|
49042
|
-
}, /*#__PURE__*/React__default.createElement(InnerRadioSection
|
|
49030
|
+
}, /*#__PURE__*/React__default.createElement(InnerRadioSection, {
|
|
49031
|
+
themeValues: themeValues,
|
|
49043
49032
|
sectionIndex: i,
|
|
49044
49033
|
section: section,
|
|
49045
49034
|
sectionRefs: sectionRefs,
|
|
@@ -49052,16 +49041,18 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49052
49041
|
return !section.disabled && handleKeyDown(section.id, e, i);
|
|
49053
49042
|
},
|
|
49054
49043
|
ariaLabelledBy: section.id,
|
|
49055
|
-
ariaDescribedBy: "right-icons-".concat(idString$1(section))
|
|
49044
|
+
ariaDescribedBy: "right-icons-".concat(idString$1(section)),
|
|
49045
|
+
isLastGroupedItemInSection: false
|
|
49056
49046
|
}));
|
|
49057
|
-
}), !!groupedSections && groupedSections.map(function (sectionGroup,
|
|
49047
|
+
}), !!groupedSections && groupedSections.map(function (sectionGroup, sectionGroupIndex) {
|
|
49058
49048
|
return sectionGroup.filter(function (unfilteredSection) {
|
|
49059
49049
|
return !unfilteredSection.hidden;
|
|
49060
49050
|
}).map(function (section, sectionIndex) {
|
|
49061
49051
|
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
49062
|
-
key: "key-".concat(
|
|
49063
|
-
}, /*#__PURE__*/React__default.createElement(InnerRadioSection
|
|
49064
|
-
|
|
49052
|
+
key: "key-".concat(sectionGroupIndex, "-").concat(sectionIndex)
|
|
49053
|
+
}, /*#__PURE__*/React__default.createElement(InnerRadioSection, {
|
|
49054
|
+
themeValues: themeValues,
|
|
49055
|
+
sectionIndex: "".concat(sectionGroupIndex, "-").concat(sectionIndex),
|
|
49065
49056
|
section: section,
|
|
49066
49057
|
sectionRefs: sectionRefs,
|
|
49067
49058
|
focused: focused,
|
|
@@ -49070,10 +49061,11 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
49070
49061
|
ariaLabelledBy: section.id,
|
|
49071
49062
|
ariaDescribedBy: "right-icons-".concat(idString$1(section)),
|
|
49072
49063
|
openSection: openSection,
|
|
49073
|
-
toggleOpenSection: toggleOpenSection
|
|
49064
|
+
toggleOpenSection: toggleOpenSection,
|
|
49065
|
+
isLastGroupedItemInSection: sectionGroup.indexOf(section) === sectionGroup.length - 1
|
|
49074
49066
|
}), sectionGroup.indexOf(section) === sectionGroup.length - 1 && groupedSections.indexOf(sectionGroup) !== groupedSections.length - 1 && /*#__PURE__*/React__default.createElement(SolidDivider$1, {
|
|
49075
|
-
borderSize: "
|
|
49076
|
-
|
|
49067
|
+
borderSize: "1px",
|
|
49068
|
+
borderColor: MANATEE_GREY
|
|
49077
49069
|
}));
|
|
49078
49070
|
});
|
|
49079
49071
|
})));
|
|
@@ -49360,7 +49352,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
49360
49352
|
var activeTabBackground = "#FFFFFF";
|
|
49361
49353
|
var activeTabAccent = "#15749D";
|
|
49362
49354
|
var activeTabHover = "#B8D5E1";
|
|
49363
|
-
var fallbackValues$
|
|
49355
|
+
var fallbackValues$R = {
|
|
49364
49356
|
activeTabBackground: activeTabBackground,
|
|
49365
49357
|
activeTabAccent: activeTabAccent,
|
|
49366
49358
|
activeTabHover: activeTabHover
|
|
@@ -49428,12 +49420,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
49428
49420
|
}, tab.content);
|
|
49429
49421
|
}))));
|
|
49430
49422
|
};
|
|
49431
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
49423
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$R);
|
|
49432
49424
|
|
|
49433
49425
|
var activeTabBackground$1 = "#FFFFFF";
|
|
49434
49426
|
var activeTabAccent$1 = "#15749D";
|
|
49435
49427
|
var activeTabHover$1 = "#B8D5E1";
|
|
49436
|
-
var fallbackValues$
|
|
49428
|
+
var fallbackValues$S = {
|
|
49437
49429
|
activeTabBackground: activeTabBackground$1,
|
|
49438
49430
|
activeTabAccent: activeTabAccent$1,
|
|
49439
49431
|
activeTabHover: activeTabHover$1
|
|
@@ -49488,7 +49480,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
49488
49480
|
}, text)))));
|
|
49489
49481
|
})));
|
|
49490
49482
|
};
|
|
49491
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
49483
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$S);
|
|
49492
49484
|
|
|
49493
49485
|
var Timeout = function Timeout(_ref) {
|
|
49494
49486
|
var onLogout = _ref.onLogout;
|
|
@@ -49573,7 +49565,7 @@ var fontColor$1 = WHITE;
|
|
|
49573
49565
|
var textAlign$1 = "left";
|
|
49574
49566
|
var headerBackgroundColor$1 = BRIGHT_GREY;
|
|
49575
49567
|
var imageBackgroundColor$1 = MATISSE_BLUE;
|
|
49576
|
-
var fallbackValues$
|
|
49568
|
+
var fallbackValues$T = {
|
|
49577
49569
|
fontWeight: fontWeight$9,
|
|
49578
49570
|
fontColor: fontColor$1,
|
|
49579
49571
|
textAlign: textAlign$1,
|
|
@@ -49618,7 +49610,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
49618
49610
|
src: welcomeImage
|
|
49619
49611
|
})))));
|
|
49620
49612
|
};
|
|
49621
|
-
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
49613
|
+
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$T));
|
|
49622
49614
|
|
|
49623
49615
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
49624
49616
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -49673,7 +49665,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
49673
49665
|
};
|
|
49674
49666
|
|
|
49675
49667
|
var pageBackground = "#FBFCFD";
|
|
49676
|
-
var fallbackValues$
|
|
49668
|
+
var fallbackValues$U = {
|
|
49677
49669
|
pageBackground: pageBackground
|
|
49678
49670
|
};
|
|
49679
49671
|
|
|
@@ -49721,7 +49713,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
49721
49713
|
padding: "0"
|
|
49722
49714
|
})));
|
|
49723
49715
|
};
|
|
49724
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
49716
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$U));
|
|
49725
49717
|
|
|
49726
49718
|
var CenterStack = function CenterStack(_ref) {
|
|
49727
49719
|
var header = _ref.header,
|
|
@@ -49764,7 +49756,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
49764
49756
|
padding: "0"
|
|
49765
49757
|
})));
|
|
49766
49758
|
};
|
|
49767
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
49759
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$U));
|
|
49768
49760
|
|
|
49769
49761
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
49770
49762
|
var header = _ref.header,
|
|
@@ -49808,7 +49800,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
49808
49800
|
padding: "0"
|
|
49809
49801
|
})));
|
|
49810
49802
|
};
|
|
49811
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
49803
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$U));
|
|
49812
49804
|
|
|
49813
49805
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
49814
49806
|
var header = _ref.header,
|
|
@@ -49861,7 +49853,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
49861
49853
|
padding: "0"
|
|
49862
49854
|
})));
|
|
49863
49855
|
};
|
|
49864
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
49856
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$U));
|
|
49865
49857
|
|
|
49866
49858
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
49867
49859
|
var header = _ref.header,
|
|
@@ -49931,7 +49923,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
49931
49923
|
key: "footer-box"
|
|
49932
49924
|
})));
|
|
49933
49925
|
};
|
|
49934
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
49926
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$U));
|
|
49935
49927
|
|
|
49936
49928
|
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
49937
49929
|
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|