@thecb/components 9.4.0-beta.0 → 9.5.0-beta.0
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 +244 -168
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +244 -168
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/atoms/searchable-select/SearchableSelect.js +14 -20
- package/src/components/atoms/searchable-select/SearchableSelect.stories.js +2 -2
- package/src/components/molecules/radio-section/InnerRadioSection.js +207 -0
- package/src/components/molecules/radio-section/InnerRadioSection.theme.js +15 -0
- package/src/components/molecules/radio-section/RadioSection.js +78 -204
- package/src/components/molecules/radio-section/RadioSection.stories.js +85 -15
package/dist/index.cjs.js
CHANGED
|
@@ -27883,9 +27883,7 @@ var SearchableSelect = function SearchableSelect(_ref) {
|
|
|
27883
27883
|
}), /*#__PURE__*/React__default.createElement(Box, {
|
|
27884
27884
|
padding: "0 0 0.5rem",
|
|
27885
27885
|
extraStyles: "overflow-y: scroll; max-height: 250px;"
|
|
27886
|
-
}, /*#__PURE__*/React__default.createElement(Stack, null, itemList.
|
|
27887
|
-
return a.name.toLowerCase().localeCompare(b.name.toLowerCase());
|
|
27888
|
-
}).map(function (value) {
|
|
27886
|
+
}, /*#__PURE__*/React__default.createElement(Stack, null, itemList.map(function (value) {
|
|
27889
27887
|
var _selectedItems$find;
|
|
27890
27888
|
return /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
|
27891
27889
|
key: value.name,
|
|
@@ -48776,31 +48774,203 @@ var fallbackValues$Q = {
|
|
|
48776
48774
|
focusStyles: focusStyles
|
|
48777
48775
|
};
|
|
48778
48776
|
|
|
48779
|
-
var
|
|
48780
|
-
|
|
48781
|
-
|
|
48782
|
-
|
|
48783
|
-
|
|
48784
|
-
|
|
48785
|
-
|
|
48786
|
-
|
|
48787
|
-
|
|
48788
|
-
|
|
48789
|
-
|
|
48790
|
-
|
|
48791
|
-
}
|
|
48792
|
-
|
|
48793
|
-
Also takes an "openSection" which should equal the id of the section that should be open
|
|
48794
|
-
And a toggleOpenSection. RadioSection will call this function with the id of the section
|
|
48795
|
-
that it is in. It is up to the user to store the open section value in state up from the component
|
|
48796
|
-
using a useState() hook, or reducer.
|
|
48777
|
+
var headingBackgroundColor$2 = "".concat(WHITE);
|
|
48778
|
+
var headingDisabledColor$1 = "".concat(ATHENS_GREY);
|
|
48779
|
+
var bodyBackgroundColor$2 = "#eeeeee";
|
|
48780
|
+
var borderColor$7 = "".concat(GREY_CHATEAU);
|
|
48781
|
+
var focusStyles$1 = "outline: none;";
|
|
48782
|
+
var fallbackValues$R = {
|
|
48783
|
+
headingBackgroundColor: headingBackgroundColor$2,
|
|
48784
|
+
headingDisabledColor: headingDisabledColor$1,
|
|
48785
|
+
bodyBackgroundColor: bodyBackgroundColor$2,
|
|
48786
|
+
borderColor: borderColor$7,
|
|
48787
|
+
focusStyles: focusStyles$1
|
|
48788
|
+
};
|
|
48797
48789
|
|
|
48798
|
-
|
|
48799
|
-
|
|
48790
|
+
var idString = function idString(section) {
|
|
48791
|
+
return typeof section.title === "string" ? createIdFromString(section.title) : section.id;
|
|
48792
|
+
};
|
|
48793
|
+
var InnerRadioSection = function InnerRadioSection(_ref) {
|
|
48794
|
+
var themeValues = _ref.themeValues,
|
|
48795
|
+
isMobile = _ref.isMobile,
|
|
48796
|
+
supportsTouch = _ref.supportsTouch,
|
|
48797
|
+
section = _ref.section,
|
|
48798
|
+
sectionIndex = _ref.sectionIndex,
|
|
48799
|
+
_ref$openSection = _ref.openSection,
|
|
48800
|
+
openSection = _ref$openSection === void 0 ? "" : _ref$openSection,
|
|
48801
|
+
toggleOpenSection = _ref.toggleOpenSection,
|
|
48802
|
+
_ref$staggeredAnimati = _ref.staggeredAnimation,
|
|
48803
|
+
staggeredAnimation = _ref$staggeredAnimati === void 0 ? false : _ref$staggeredAnimati,
|
|
48804
|
+
_ref$initiallyOpen = _ref.initiallyOpen,
|
|
48805
|
+
initiallyOpen = _ref$initiallyOpen === void 0 ? true : _ref$initiallyOpen,
|
|
48806
|
+
_ref$openHeight = _ref.openHeight,
|
|
48807
|
+
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
48808
|
+
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48809
|
+
focused = _ref.focused,
|
|
48810
|
+
setFocused = _ref.setFocused,
|
|
48811
|
+
sectionRefs = _ref.sectionRefs,
|
|
48812
|
+
ariaLabelledBy = _ref.ariaLabelledBy,
|
|
48813
|
+
_ref$onKeyDown = _ref.onKeyDown,
|
|
48814
|
+
onKeyDown = _ref$onKeyDown === void 0 ? noop : _ref$onKeyDown;
|
|
48815
|
+
var wrapper = {
|
|
48816
|
+
open: {
|
|
48817
|
+
height: openHeight,
|
|
48818
|
+
opacity: 1,
|
|
48819
|
+
transition: {
|
|
48820
|
+
duration: 0.3,
|
|
48821
|
+
ease: [0.04, 0.62, 0.23, 0.98],
|
|
48822
|
+
staggerChildren: staggeredAnimation ? 0.15 : 0
|
|
48823
|
+
}
|
|
48824
|
+
},
|
|
48825
|
+
closed: {
|
|
48826
|
+
height: 0,
|
|
48827
|
+
opacity: 0,
|
|
48828
|
+
transition: {
|
|
48829
|
+
duration: 0.3,
|
|
48830
|
+
ease: [0.04, 0.62, 0.23, 0.98],
|
|
48831
|
+
staggerChildren: staggeredAnimation ? 0.15 : 0,
|
|
48832
|
+
staggerDirection: -1
|
|
48833
|
+
}
|
|
48834
|
+
}
|
|
48835
|
+
};
|
|
48836
|
+
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 ");
|
|
48837
|
+
var RightIcon = styled__default.img.withConfig({
|
|
48838
|
+
displayName: "InnerRadioSection__RightIcon",
|
|
48839
|
+
componentId: "sc-1wtp6qc-0"
|
|
48840
|
+
})(["height:", ";width:", ";", " transition:opacity 0.3s ease;"], function (_ref2) {
|
|
48841
|
+
var isMobile = _ref2.isMobile;
|
|
48842
|
+
return isMobile ? "14px" : "18px";
|
|
48843
|
+
}, function (_ref3) {
|
|
48844
|
+
var isMobile = _ref3.isMobile;
|
|
48845
|
+
return isMobile ? "22px" : "28px";
|
|
48846
|
+
}, function (_ref4) {
|
|
48847
|
+
var fade = _ref4.fade;
|
|
48848
|
+
return fade && "opacity: 0.4;";
|
|
48849
|
+
});
|
|
48850
|
+
return /*#__PURE__*/React__default.createElement(Motion, {
|
|
48851
|
+
tabIndex: section.hideRadioButton || section.disabled ? "-1" : "0",
|
|
48852
|
+
ref: sectionRefs.current[sectionIndex],
|
|
48853
|
+
onBlur: function onBlur() {
|
|
48854
|
+
return !section.disabled && setFocused(null);
|
|
48855
|
+
},
|
|
48856
|
+
onFocus: function onFocus() {
|
|
48857
|
+
return !section.disabled && setFocused(section.id);
|
|
48858
|
+
},
|
|
48859
|
+
onKeyDown: onKeyDown,
|
|
48860
|
+
hoverStyles: themeValues.focusStyles,
|
|
48861
|
+
animate: openSection === section.id ? "open" : "closed",
|
|
48862
|
+
initial: initiallyOpen ? "open" : "closed",
|
|
48863
|
+
key: "item-".concat(section.id),
|
|
48864
|
+
extraStyles: borderStyles,
|
|
48865
|
+
role: "radio",
|
|
48866
|
+
"aria-checked": openSection === section.id,
|
|
48867
|
+
"aria-disabled": section.disabled,
|
|
48868
|
+
"aria-required": section.required,
|
|
48869
|
+
"aria-labelledby": ariaLabelledBy,
|
|
48870
|
+
"aria-describedby": ariaDescribedBy
|
|
48871
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48872
|
+
childGap: "0"
|
|
48873
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
48874
|
+
padding: section.hideRadioButton ? "1.5rem" : "1.25rem 1.5rem",
|
|
48875
|
+
background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
|
|
48876
|
+
onClick: isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
48877
|
+
return toggleOpenSection(section.id);
|
|
48878
|
+
},
|
|
48879
|
+
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
48880
|
+
return toggleOpenSection(section.id);
|
|
48881
|
+
} : noop,
|
|
48882
|
+
key: "header-".concat(section.id),
|
|
48883
|
+
borderSize: "0px",
|
|
48884
|
+
borderColor: themeValues.borderColor,
|
|
48885
|
+
borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
|
|
48886
|
+
extraStyles: !section.disabled ? "cursor: pointer;" : "",
|
|
48887
|
+
dataQa: section.dataQa ? section.dataQa : section.id
|
|
48888
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48889
|
+
justify: "space-between",
|
|
48890
|
+
align: "center",
|
|
48891
|
+
childGap: "1px",
|
|
48892
|
+
nowrap: true
|
|
48893
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48894
|
+
justify: "flex-start",
|
|
48895
|
+
align: "center",
|
|
48896
|
+
nowrap: true
|
|
48897
|
+
}, !section.hideRadioButton && /*#__PURE__*/React__default.createElement(Box, {
|
|
48898
|
+
padding: "0"
|
|
48899
|
+
}, /*#__PURE__*/React__default.createElement(RadioButton$2, {
|
|
48900
|
+
id: "radio-input-".concat(idString(section)),
|
|
48901
|
+
name: idString(section),
|
|
48902
|
+
ariaDescribedBy: ariaDescribedBy,
|
|
48903
|
+
radioOn: openSection === section.id,
|
|
48904
|
+
radioFocused: focused === section.id,
|
|
48905
|
+
toggleRadio: section.disabled ? noop : function () {
|
|
48906
|
+
return toggleOpenSection(section.id);
|
|
48907
|
+
},
|
|
48908
|
+
tabIndex: "-1",
|
|
48909
|
+
isRequired: section.required
|
|
48910
|
+
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48911
|
+
align: "center"
|
|
48912
|
+
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|
|
48913
|
+
padding: section.titleIcon ? "0 0 0 8px" : "0"
|
|
48914
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48915
|
+
as: "label",
|
|
48916
|
+
htmlFor: "radio-input-".concat(idString(section)),
|
|
48917
|
+
color: CHARADE_GREY
|
|
48918
|
+
}, section.title))), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48919
|
+
id: "right-icons-".concat(idString(section)),
|
|
48920
|
+
childGap: "0.5rem",
|
|
48921
|
+
"aria-label": section.rightIconsLabel || null,
|
|
48922
|
+
role: section.rightIconsRole || null
|
|
48923
|
+
}, section.rightIcons.map(function (icon) {
|
|
48924
|
+
return /*#__PURE__*/React__default.createElement(RightIcon, {
|
|
48925
|
+
src: icon.img,
|
|
48926
|
+
key: icon.img,
|
|
48927
|
+
fade: !icon.enabled,
|
|
48928
|
+
isMobile: isMobile,
|
|
48929
|
+
alt: icon.altText,
|
|
48930
|
+
"aria-disabled": !icon.enabled
|
|
48931
|
+
});
|
|
48932
|
+
})), section.rightTitleContent && /*#__PURE__*/React__default.createElement(React.Fragment, null, section.rightTitleContent))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
48933
|
+
initial: false
|
|
48934
|
+
}, openSection === section.id && /*#__PURE__*/React__default.createElement(Motion, {
|
|
48935
|
+
key: "content-".concat(section.id),
|
|
48936
|
+
padding: "0",
|
|
48937
|
+
background: themeValues.bodyBackgroundColor,
|
|
48938
|
+
layoutTransition: true,
|
|
48939
|
+
initial: "closed",
|
|
48940
|
+
animate: "open",
|
|
48941
|
+
exit: "closed",
|
|
48942
|
+
variants: wrapper,
|
|
48943
|
+
extraStyles: "transform-origin: 100% 0;"
|
|
48944
|
+
}, section.content))));
|
|
48945
|
+
};
|
|
48946
|
+
var InnerRadioSection$1 = themeComponent(InnerRadioSection, "InnerRadioSection", fallbackValues$R);
|
|
48800
48947
|
|
|
48948
|
+
var _excluded$z = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
48949
|
+
/**
|
|
48950
|
+
- The RadioSection component takes either a flat array (via the 'sections'
|
|
48951
|
+
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.
|
|
48952
|
+
- Each 'section' object should look like:
|
|
48953
|
+
{
|
|
48954
|
+
title: <React Component(s)>,
|
|
48955
|
+
id: <String> "identifier of section",
|
|
48956
|
+
disabled: boolean, (displays section and grayed out radio but disables interaction)
|
|
48957
|
+
hideRadioButton: boolean, (keeps section displayed but hides radio and disables open/close function),
|
|
48958
|
+
hidden: boolean, (hides section entirely)
|
|
48959
|
+
dataQa: string,
|
|
48960
|
+
content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work),
|
|
48961
|
+
rightTitleContent: <React Component(s)> (rendered on the very right of the title section, use to supplement "rightIcons" with text, as in expired CC status, or render other custom content)
|
|
48962
|
+
}
|
|
48963
|
+
- It also takes an "openSection" which should equal the id of the section that
|
|
48964
|
+
should be open, along with "toggleOpenSection"
|
|
48965
|
+
- RadioSection will call "toggleOpenSection" with the id of the section
|
|
48966
|
+
that it is in.
|
|
48967
|
+
- It is up to the engineer to store the open section value in state up from the
|
|
48968
|
+
component using a useState() hook or a reducer.
|
|
48969
|
+
- The section itself comes with some motion to open/close. To add more motion
|
|
48970
|
+
to the content, wrap your content with a Motion layout primitive and provide appropriate props.
|
|
48801
48971
|
*/
|
|
48802
48972
|
|
|
48803
|
-
var idString = function idString(section) {
|
|
48973
|
+
var idString$1 = function idString(section) {
|
|
48804
48974
|
return typeof section.title === "string" ? createIdFromString(section.title) : section.id;
|
|
48805
48975
|
};
|
|
48806
48976
|
var RadioSection = function RadioSection(_ref) {
|
|
@@ -48813,9 +48983,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48813
48983
|
openSection = _ref$openSection === void 0 ? "" : _ref$openSection,
|
|
48814
48984
|
toggleOpenSection = _ref.toggleOpenSection,
|
|
48815
48985
|
_ref$staggeredAnimati = _ref.staggeredAnimation,
|
|
48816
|
-
staggeredAnimation = _ref$staggeredAnimati === void 0 ? false : _ref$staggeredAnimati,
|
|
48817
48986
|
_ref$initiallyOpen = _ref.initiallyOpen,
|
|
48818
|
-
initiallyOpen = _ref$initiallyOpen === void 0 ? true : _ref$initiallyOpen,
|
|
48819
48987
|
_ref$openHeight = _ref.openHeight,
|
|
48820
48988
|
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
48821
48989
|
_ref$containerStyles = _ref.containerStyles,
|
|
@@ -48823,6 +48991,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48823
48991
|
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48824
48992
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48825
48993
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
48994
|
+
groupedSections = _ref.groupedSections,
|
|
48826
48995
|
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
48827
48996
|
var _useState = React.useState(null),
|
|
48828
48997
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48853,41 +49022,6 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48853
49022
|
toggleOpenSection((_sections$nextIndex2 = sections[nextIndex]) === null || _sections$nextIndex2 === void 0 ? void 0 : _sections$nextIndex2.id);
|
|
48854
49023
|
}
|
|
48855
49024
|
};
|
|
48856
|
-
var wrapper = {
|
|
48857
|
-
open: {
|
|
48858
|
-
height: openHeight,
|
|
48859
|
-
opacity: 1,
|
|
48860
|
-
transition: {
|
|
48861
|
-
duration: 0.3,
|
|
48862
|
-
ease: [0.04, 0.62, 0.23, 0.98],
|
|
48863
|
-
staggerChildren: staggeredAnimation ? 0.15 : 0
|
|
48864
|
-
}
|
|
48865
|
-
},
|
|
48866
|
-
closed: {
|
|
48867
|
-
height: 0,
|
|
48868
|
-
opacity: 0,
|
|
48869
|
-
transition: {
|
|
48870
|
-
duration: 0.3,
|
|
48871
|
-
ease: [0.04, 0.62, 0.23, 0.98],
|
|
48872
|
-
staggerChildren: staggeredAnimation ? 0.15 : 0,
|
|
48873
|
-
staggerDirection: -1
|
|
48874
|
-
}
|
|
48875
|
-
}
|
|
48876
|
-
};
|
|
48877
|
-
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 ");
|
|
48878
|
-
var RightIcon = styled__default.img.withConfig({
|
|
48879
|
-
displayName: "RadioSection__RightIcon",
|
|
48880
|
-
componentId: "sc-uema02-0"
|
|
48881
|
-
})(["height:", ";width:", ";", " transition:opacity 0.3s ease;"], function (_ref2) {
|
|
48882
|
-
var isMobile = _ref2.isMobile;
|
|
48883
|
-
return isMobile ? "14px" : "18px";
|
|
48884
|
-
}, function (_ref3) {
|
|
48885
|
-
var isMobile = _ref3.isMobile;
|
|
48886
|
-
return isMobile ? "22px" : "28px";
|
|
48887
|
-
}, function (_ref4) {
|
|
48888
|
-
var fade = _ref4.fade;
|
|
48889
|
-
return fade && "opacity: 0.4;";
|
|
48890
|
-
});
|
|
48891
49025
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
48892
49026
|
padding: "1px",
|
|
48893
49027
|
border: "1px solid ".concat(themeValues.borderColor),
|
|
@@ -48897,106 +49031,48 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48897
49031
|
childGap: "0",
|
|
48898
49032
|
role: "radiogroup",
|
|
48899
49033
|
"aria-required": isSectionRequired
|
|
48900
|
-
}, rest), sections.filter(function (section) {
|
|
49034
|
+
}, rest), !!sections && sections.filter(function (section) {
|
|
48901
49035
|
return !section.hidden;
|
|
48902
49036
|
}).map(function (section, i) {
|
|
48903
|
-
return /*#__PURE__*/React__default.createElement(
|
|
48904
|
-
|
|
48905
|
-
|
|
48906
|
-
|
|
48907
|
-
|
|
48908
|
-
|
|
48909
|
-
|
|
48910
|
-
|
|
48911
|
-
|
|
49037
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
49038
|
+
key: "radio-section-".concat(sections.indexOf(section))
|
|
49039
|
+
}, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
|
|
49040
|
+
sectionIndex: i,
|
|
49041
|
+
section: section,
|
|
49042
|
+
sectionRefs: sectionRefs,
|
|
49043
|
+
focused: focused,
|
|
49044
|
+
setFocused: setFocused,
|
|
49045
|
+
openHeight: openHeight,
|
|
49046
|
+
openSection: openSection,
|
|
49047
|
+
toggleOpenSection: toggleOpenSection,
|
|
48912
49048
|
onKeyDown: function onKeyDown(e) {
|
|
48913
49049
|
return !section.disabled && handleKeyDown(section.id, e, i);
|
|
48914
49050
|
},
|
|
48915
|
-
|
|
48916
|
-
|
|
48917
|
-
|
|
48918
|
-
|
|
48919
|
-
|
|
48920
|
-
|
|
48921
|
-
|
|
48922
|
-
|
|
48923
|
-
|
|
48924
|
-
|
|
48925
|
-
|
|
48926
|
-
|
|
48927
|
-
|
|
48928
|
-
|
|
48929
|
-
|
|
48930
|
-
|
|
48931
|
-
|
|
48932
|
-
|
|
48933
|
-
|
|
48934
|
-
|
|
48935
|
-
|
|
48936
|
-
|
|
48937
|
-
|
|
48938
|
-
|
|
48939
|
-
|
|
48940
|
-
borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
|
|
48941
|
-
extraStyles: !section.disabled ? "cursor: pointer;" : "",
|
|
48942
|
-
dataQa: section.dataQa ? section.dataQa : section.id
|
|
48943
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48944
|
-
justify: "space-between",
|
|
48945
|
-
align: "center",
|
|
48946
|
-
childGap: "1px",
|
|
48947
|
-
nowrap: true
|
|
48948
|
-
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48949
|
-
justify: "flex-start",
|
|
48950
|
-
align: "center",
|
|
48951
|
-
nowrap: true
|
|
48952
|
-
}, !section.hideRadioButton && /*#__PURE__*/React__default.createElement(Box, {
|
|
48953
|
-
padding: "0"
|
|
48954
|
-
}, /*#__PURE__*/React__default.createElement(RadioButton$2, {
|
|
48955
|
-
id: "radio-input-".concat(idString(section)),
|
|
48956
|
-
name: idString(section),
|
|
48957
|
-
ariaDescribedBy: ariaDescribedBy,
|
|
48958
|
-
radioOn: openSection === section.id,
|
|
48959
|
-
radioFocused: focused === section.id,
|
|
48960
|
-
toggleRadio: section.disabled ? noop : function () {
|
|
48961
|
-
return toggleOpenSection(section.id);
|
|
48962
|
-
},
|
|
48963
|
-
tabIndex: "-1",
|
|
48964
|
-
isRequired: section.required
|
|
48965
|
-
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48966
|
-
align: "center"
|
|
48967
|
-
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|
|
48968
|
-
padding: section.titleIcon ? "0 0 0 8px" : "0"
|
|
48969
|
-
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48970
|
-
as: "label",
|
|
48971
|
-
htmlFor: "radio-input-".concat(idString(section)),
|
|
48972
|
-
color: CHARADE_GREY
|
|
48973
|
-
}, section.title))), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48974
|
-
id: "right-icons-".concat(idString(section)),
|
|
48975
|
-
childGap: "0.5rem",
|
|
48976
|
-
"aria-label": section.rightIconsLabel || null,
|
|
48977
|
-
role: section.rightIconsRole || null
|
|
48978
|
-
}, section.rightIcons.map(function (icon) {
|
|
48979
|
-
return /*#__PURE__*/React__default.createElement(RightIcon, {
|
|
48980
|
-
src: icon.img,
|
|
48981
|
-
key: icon.img,
|
|
48982
|
-
fade: !icon.enabled,
|
|
48983
|
-
isMobile: isMobile,
|
|
48984
|
-
alt: icon.altText,
|
|
48985
|
-
"aria-disabled": !icon.enabled
|
|
48986
|
-
});
|
|
48987
|
-
})), section.rightTitleContent && /*#__PURE__*/React__default.createElement(React.Fragment, null, section.rightTitleContent))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
48988
|
-
initial: false
|
|
48989
|
-
}, openSection === section.id && /*#__PURE__*/React__default.createElement(Motion, {
|
|
48990
|
-
key: "content-".concat(section.id),
|
|
48991
|
-
padding: "0",
|
|
48992
|
-
background: themeValues.bodyBackgroundColor,
|
|
48993
|
-
layoutTransition: true,
|
|
48994
|
-
initial: "closed",
|
|
48995
|
-
animate: "open",
|
|
48996
|
-
exit: "closed",
|
|
48997
|
-
variants: wrapper,
|
|
48998
|
-
extraStyles: "transform-origin: 100% 0;"
|
|
48999
|
-
}, section.content))));
|
|
49051
|
+
ariaLabelledBy: section.id,
|
|
49052
|
+
ariaDescribedBy: "right-icons-".concat(idString$1(section))
|
|
49053
|
+
}));
|
|
49054
|
+
}), !!groupedSections && groupedSections.map(function (sectionGroup) {
|
|
49055
|
+
return sectionGroup.filter(function (unfilteredSection) {
|
|
49056
|
+
return !unfilteredSection.hidden;
|
|
49057
|
+
}).map(function (section, i) {
|
|
49058
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
49059
|
+
key: "radio-section-".concat(groupedSections.indexOf(sectionGroup), "-").concat(sectionGroup.indexOf(section), "}")
|
|
49060
|
+
}, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
|
|
49061
|
+
sectionIndex: i,
|
|
49062
|
+
section: section,
|
|
49063
|
+
sectionRefs: sectionRefs,
|
|
49064
|
+
focused: focused,
|
|
49065
|
+
setFocused: setFocused,
|
|
49066
|
+
openHeight: openHeight,
|
|
49067
|
+
ariaLabelledBy: section.id,
|
|
49068
|
+
ariaDescribedBy: "right-icons-".concat(idString$1(section)),
|
|
49069
|
+
openSection: openSection,
|
|
49070
|
+
toggleOpenSection: toggleOpenSection
|
|
49071
|
+
}), sectionGroup.indexOf(section) === sectionGroup.length - 1 && groupedSections.indexOf(sectionGroup) !== groupedSections.length - 1 && /*#__PURE__*/React__default.createElement(SolidDivider$1, {
|
|
49072
|
+
borderSize: "2px",
|
|
49073
|
+
color: MANATEE_GREY
|
|
49074
|
+
}));
|
|
49075
|
+
});
|
|
49000
49076
|
})));
|
|
49001
49077
|
};
|
|
49002
49078
|
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$Q);
|
|
@@ -49281,7 +49357,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
49281
49357
|
var activeTabBackground = "#FFFFFF";
|
|
49282
49358
|
var activeTabAccent = "#15749D";
|
|
49283
49359
|
var activeTabHover = "#B8D5E1";
|
|
49284
|
-
var fallbackValues$
|
|
49360
|
+
var fallbackValues$S = {
|
|
49285
49361
|
activeTabBackground: activeTabBackground,
|
|
49286
49362
|
activeTabAccent: activeTabAccent,
|
|
49287
49363
|
activeTabHover: activeTabHover
|
|
@@ -49349,12 +49425,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
49349
49425
|
}, tab.content);
|
|
49350
49426
|
}))));
|
|
49351
49427
|
};
|
|
49352
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
49428
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$S);
|
|
49353
49429
|
|
|
49354
49430
|
var activeTabBackground$1 = "#FFFFFF";
|
|
49355
49431
|
var activeTabAccent$1 = "#15749D";
|
|
49356
49432
|
var activeTabHover$1 = "#B8D5E1";
|
|
49357
|
-
var fallbackValues$
|
|
49433
|
+
var fallbackValues$T = {
|
|
49358
49434
|
activeTabBackground: activeTabBackground$1,
|
|
49359
49435
|
activeTabAccent: activeTabAccent$1,
|
|
49360
49436
|
activeTabHover: activeTabHover$1
|
|
@@ -49409,7 +49485,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
49409
49485
|
}, text)))));
|
|
49410
49486
|
})));
|
|
49411
49487
|
};
|
|
49412
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
49488
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$T);
|
|
49413
49489
|
|
|
49414
49490
|
var Timeout = function Timeout(_ref) {
|
|
49415
49491
|
var onLogout = _ref.onLogout;
|
|
@@ -49494,7 +49570,7 @@ var fontColor$1 = WHITE;
|
|
|
49494
49570
|
var textAlign$1 = "left";
|
|
49495
49571
|
var headerBackgroundColor$1 = BRIGHT_GREY;
|
|
49496
49572
|
var imageBackgroundColor$1 = MATISSE_BLUE;
|
|
49497
|
-
var fallbackValues$
|
|
49573
|
+
var fallbackValues$U = {
|
|
49498
49574
|
fontWeight: fontWeight$9,
|
|
49499
49575
|
fontColor: fontColor$1,
|
|
49500
49576
|
textAlign: textAlign$1,
|
|
@@ -49539,7 +49615,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
49539
49615
|
src: welcomeImage
|
|
49540
49616
|
})))));
|
|
49541
49617
|
};
|
|
49542
|
-
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
49618
|
+
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$U));
|
|
49543
49619
|
|
|
49544
49620
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
49545
49621
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -49594,7 +49670,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
49594
49670
|
};
|
|
49595
49671
|
|
|
49596
49672
|
var pageBackground = "#FBFCFD";
|
|
49597
|
-
var fallbackValues$
|
|
49673
|
+
var fallbackValues$V = {
|
|
49598
49674
|
pageBackground: pageBackground
|
|
49599
49675
|
};
|
|
49600
49676
|
|
|
@@ -49642,7 +49718,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
49642
49718
|
padding: "0"
|
|
49643
49719
|
})));
|
|
49644
49720
|
};
|
|
49645
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
49721
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$V));
|
|
49646
49722
|
|
|
49647
49723
|
var CenterStack = function CenterStack(_ref) {
|
|
49648
49724
|
var header = _ref.header,
|
|
@@ -49685,7 +49761,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
49685
49761
|
padding: "0"
|
|
49686
49762
|
})));
|
|
49687
49763
|
};
|
|
49688
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
49764
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$V));
|
|
49689
49765
|
|
|
49690
49766
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
49691
49767
|
var header = _ref.header,
|
|
@@ -49729,7 +49805,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
49729
49805
|
padding: "0"
|
|
49730
49806
|
})));
|
|
49731
49807
|
};
|
|
49732
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
49808
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$V));
|
|
49733
49809
|
|
|
49734
49810
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
49735
49811
|
var header = _ref.header,
|
|
@@ -49782,7 +49858,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
49782
49858
|
padding: "0"
|
|
49783
49859
|
})));
|
|
49784
49860
|
};
|
|
49785
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
49861
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$V));
|
|
49786
49862
|
|
|
49787
49863
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
49788
49864
|
var header = _ref.header,
|
|
@@ -49852,7 +49928,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
49852
49928
|
key: "footer-box"
|
|
49853
49929
|
})));
|
|
49854
49930
|
};
|
|
49855
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
49931
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$V));
|
|
49856
49932
|
|
|
49857
49933
|
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
49858
49934
|
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|