@thecb/components 9.4.0-beta.0 → 9.5.0-beta.1
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 +250 -172
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +250 -172
- 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 +208 -0
- package/src/components/molecules/radio-section/InnerRadioSection.theme.js +15 -0
- package/src/components/molecules/radio-section/RadioSection.js +82 -210
- 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,205 @@ 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
|
+
onClick:
|
|
48872
|
+
// This needs to be associated with the same component that has the aria-checked property
|
|
48873
|
+
isMobile && supportsTouch || section.disabled ? noop : function () {
|
|
48874
|
+
return toggleOpenSection(section.id);
|
|
48875
|
+
},
|
|
48876
|
+
onTouchEnd: isMobile && supportsTouch && !section.disabled ? function () {
|
|
48877
|
+
return toggleOpenSection(section.id);
|
|
48878
|
+
} : noop
|
|
48879
|
+
}, /*#__PURE__*/React__default.createElement(Stack, {
|
|
48880
|
+
childGap: "0"
|
|
48881
|
+
}, /*#__PURE__*/React__default.createElement(Box, {
|
|
48882
|
+
padding: section.hideRadioButton ? "1.5rem" : "1.25rem 1.5rem",
|
|
48883
|
+
background: section.disabled ? themeValues.headingDisabledColor : themeValues.headingBackgroundColor,
|
|
48884
|
+
key: "header-".concat(section.id),
|
|
48885
|
+
borderSize: "0px",
|
|
48886
|
+
borderColor: themeValues.borderColor,
|
|
48887
|
+
borderWidthOverride: openSection === section.id && !!section.content ? "0px 0px 1px 0px" : "",
|
|
48888
|
+
extraStyles: !section.disabled ? "cursor: pointer;" : "",
|
|
48889
|
+
dataQa: section.dataQa ? section.dataQa : section.id
|
|
48890
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48891
|
+
justify: "space-between",
|
|
48892
|
+
align: "center",
|
|
48893
|
+
childGap: "1px",
|
|
48894
|
+
nowrap: true
|
|
48895
|
+
}, /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48896
|
+
justify: "flex-start",
|
|
48897
|
+
align: "center",
|
|
48898
|
+
nowrap: true
|
|
48899
|
+
}, !section.hideRadioButton && /*#__PURE__*/React__default.createElement(Box, {
|
|
48900
|
+
padding: "0"
|
|
48901
|
+
}, /*#__PURE__*/React__default.createElement(RadioButton$2, {
|
|
48902
|
+
id: "radio-input-".concat(idString(section)),
|
|
48903
|
+
name: idString(section),
|
|
48904
|
+
ariaDescribedBy: ariaDescribedBy,
|
|
48905
|
+
radioOn: openSection === section.id,
|
|
48906
|
+
radioFocused: focused === section.id,
|
|
48907
|
+
toggleRadio: section.disabled ? noop : function () {
|
|
48908
|
+
return toggleOpenSection(section.id);
|
|
48909
|
+
},
|
|
48910
|
+
tabIndex: "-1",
|
|
48911
|
+
isRequired: section.required
|
|
48912
|
+
})), section.titleIcon && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48913
|
+
align: "center"
|
|
48914
|
+
}, section.titleIcon), /*#__PURE__*/React__default.createElement(Box, {
|
|
48915
|
+
padding: section.titleIcon ? "0 0 0 8px" : "0"
|
|
48916
|
+
}, /*#__PURE__*/React__default.createElement(Text$1, {
|
|
48917
|
+
as: "label",
|
|
48918
|
+
htmlFor: "radio-input-".concat(idString(section)),
|
|
48919
|
+
color: CHARADE_GREY
|
|
48920
|
+
}, section.title))), section.rightIcons && /*#__PURE__*/React__default.createElement(Cluster, {
|
|
48921
|
+
id: "right-icons-".concat(idString(section)),
|
|
48922
|
+
childGap: "0.5rem",
|
|
48923
|
+
"aria-label": section.rightIconsLabel || null,
|
|
48924
|
+
role: section.rightIconsRole || null
|
|
48925
|
+
}, section.rightIcons.map(function (icon) {
|
|
48926
|
+
return /*#__PURE__*/React__default.createElement(RightIcon, {
|
|
48927
|
+
src: icon.img,
|
|
48928
|
+
key: icon.img,
|
|
48929
|
+
fade: !icon.enabled,
|
|
48930
|
+
isMobile: isMobile,
|
|
48931
|
+
alt: icon.altText,
|
|
48932
|
+
"aria-disabled": !icon.enabled
|
|
48933
|
+
});
|
|
48934
|
+
})), section.rightTitleContent && /*#__PURE__*/React__default.createElement(React.Fragment, null, section.rightTitleContent))), /*#__PURE__*/React__default.createElement(AnimatePresence, {
|
|
48935
|
+
initial: false
|
|
48936
|
+
}, openSection === section.id && /*#__PURE__*/React__default.createElement(Motion, {
|
|
48937
|
+
key: "content-".concat(section.id),
|
|
48938
|
+
padding: "0",
|
|
48939
|
+
background: themeValues.bodyBackgroundColor,
|
|
48940
|
+
layoutTransition: true,
|
|
48941
|
+
initial: "closed",
|
|
48942
|
+
animate: "open",
|
|
48943
|
+
exit: "closed",
|
|
48944
|
+
variants: wrapper,
|
|
48945
|
+
extraStyles: "transform-origin: 100% 0;"
|
|
48946
|
+
}, section.content))));
|
|
48947
|
+
};
|
|
48948
|
+
var InnerRadioSection$1 = themeComponent(InnerRadioSection, "InnerRadioSection", fallbackValues$R);
|
|
48800
48949
|
|
|
48950
|
+
var _excluded$z = ["themeValues", "isMobile", "supportsTouch", "sections", "openSection", "toggleOpenSection", "staggeredAnimation", "initiallyOpen", "openHeight", "containerStyles", "ariaDescribedBy", "isSectionRequired", "groupedSections"];
|
|
48951
|
+
/**
|
|
48952
|
+
- The RadioSection component takes either a flat array (via the 'sections'
|
|
48953
|
+
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.
|
|
48954
|
+
- Each 'section' object should look like:
|
|
48955
|
+
{
|
|
48956
|
+
title: <React Component(s)>,
|
|
48957
|
+
id: <String> "identifier of section",
|
|
48958
|
+
disabled: boolean, (displays section and grayed out radio but disables interaction)
|
|
48959
|
+
hideRadioButton: boolean, (keeps section displayed but hides radio and disables open/close function),
|
|
48960
|
+
hidden: boolean, (hides section entirely)
|
|
48961
|
+
dataQa: string,
|
|
48962
|
+
content: <React Component(s)> e.g.: <Box><Stack>cool content stuff</Stack></Box> (any collection of components will work),
|
|
48963
|
+
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)
|
|
48964
|
+
}
|
|
48965
|
+
- It also takes an "openSection" which should equal the id of the section that
|
|
48966
|
+
should be open, along with "toggleOpenSection"
|
|
48967
|
+
- RadioSection will call "toggleOpenSection" with the id of the section
|
|
48968
|
+
that it is in.
|
|
48969
|
+
- It is up to the engineer to store the open section value in state up from the
|
|
48970
|
+
component using a useState() hook or a reducer.
|
|
48971
|
+
- The section itself comes with some motion to open/close. To add more motion
|
|
48972
|
+
to the content, wrap your content with a Motion layout primitive and provide appropriate props.
|
|
48801
48973
|
*/
|
|
48802
48974
|
|
|
48803
|
-
var idString = function idString(section) {
|
|
48975
|
+
var idString$1 = function idString(section) {
|
|
48804
48976
|
return typeof section.title === "string" ? createIdFromString(section.title) : section.id;
|
|
48805
48977
|
};
|
|
48806
48978
|
var RadioSection = function RadioSection(_ref) {
|
|
@@ -48813,9 +48985,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48813
48985
|
openSection = _ref$openSection === void 0 ? "" : _ref$openSection,
|
|
48814
48986
|
toggleOpenSection = _ref.toggleOpenSection,
|
|
48815
48987
|
_ref$staggeredAnimati = _ref.staggeredAnimation,
|
|
48816
|
-
staggeredAnimation = _ref$staggeredAnimati === void 0 ? false : _ref$staggeredAnimati,
|
|
48817
48988
|
_ref$initiallyOpen = _ref.initiallyOpen,
|
|
48818
|
-
initiallyOpen = _ref$initiallyOpen === void 0 ? true : _ref$initiallyOpen,
|
|
48819
48989
|
_ref$openHeight = _ref.openHeight,
|
|
48820
48990
|
openHeight = _ref$openHeight === void 0 ? "auto" : _ref$openHeight,
|
|
48821
48991
|
_ref$containerStyles = _ref.containerStyles,
|
|
@@ -48823,6 +48993,7 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48823
48993
|
ariaDescribedBy = _ref.ariaDescribedBy,
|
|
48824
48994
|
_ref$isSectionRequire = _ref.isSectionRequired,
|
|
48825
48995
|
isSectionRequired = _ref$isSectionRequire === void 0 ? false : _ref$isSectionRequire,
|
|
48996
|
+
groupedSections = _ref.groupedSections,
|
|
48826
48997
|
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
48827
48998
|
var _useState = React.useState(null),
|
|
48828
48999
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -48853,150 +49024,57 @@ var RadioSection = function RadioSection(_ref) {
|
|
|
48853
49024
|
toggleOpenSection((_sections$nextIndex2 = sections[nextIndex]) === null || _sections$nextIndex2 === void 0 ? void 0 : _sections$nextIndex2.id);
|
|
48854
49025
|
}
|
|
48855
49026
|
};
|
|
48856
|
-
|
|
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
|
-
return /*#__PURE__*/React__default.createElement(Box, {
|
|
49027
|
+
return /*#__PURE__*/React__default.createElement(Box, _extends({
|
|
48892
49028
|
padding: "1px",
|
|
48893
49029
|
border: "1px solid ".concat(themeValues.borderColor),
|
|
48894
49030
|
borderRadius: "4px",
|
|
48895
|
-
extraStyles: containerStyles
|
|
48896
|
-
}, /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
48897
|
-
childGap: "0",
|
|
49031
|
+
extraStyles: containerStyles,
|
|
48898
49032
|
role: "radiogroup",
|
|
48899
49033
|
"aria-required": isSectionRequired
|
|
48900
|
-
}, rest),
|
|
49034
|
+
}, rest), /*#__PURE__*/React__default.createElement(Stack, _extends({
|
|
49035
|
+
childGap: "0"
|
|
49036
|
+
}, rest), !!sections && sections.filter(function (section) {
|
|
48901
49037
|
return !section.hidden;
|
|
48902
49038
|
}).map(function (section, i) {
|
|
48903
|
-
return /*#__PURE__*/React__default.createElement(
|
|
48904
|
-
|
|
48905
|
-
|
|
48906
|
-
|
|
48907
|
-
|
|
48908
|
-
|
|
48909
|
-
|
|
48910
|
-
|
|
48911
|
-
|
|
49039
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
49040
|
+
key: "radio-section-".concat(sections.indexOf(section))
|
|
49041
|
+
}, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
|
|
49042
|
+
sectionIndex: i,
|
|
49043
|
+
section: section,
|
|
49044
|
+
sectionRefs: sectionRefs,
|
|
49045
|
+
focused: focused,
|
|
49046
|
+
setFocused: setFocused,
|
|
49047
|
+
openHeight: openHeight,
|
|
49048
|
+
openSection: openSection,
|
|
49049
|
+
toggleOpenSection: toggleOpenSection,
|
|
48912
49050
|
onKeyDown: function onKeyDown(e) {
|
|
48913
49051
|
return !section.disabled && handleKeyDown(section.id, e, i);
|
|
48914
49052
|
},
|
|
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))));
|
|
49053
|
+
ariaLabelledBy: section.id,
|
|
49054
|
+
ariaDescribedBy: "right-icons-".concat(idString$1(section))
|
|
49055
|
+
}));
|
|
49056
|
+
}), !!groupedSections && groupedSections.map(function (sectionGroup) {
|
|
49057
|
+
return sectionGroup.filter(function (unfilteredSection) {
|
|
49058
|
+
return !unfilteredSection.hidden;
|
|
49059
|
+
}).map(function (section, i) {
|
|
49060
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, {
|
|
49061
|
+
key: "radio-section-".concat(groupedSections.indexOf(sectionGroup), "-").concat(sectionGroup.indexOf(section), "}")
|
|
49062
|
+
}, /*#__PURE__*/React__default.createElement(InnerRadioSection$1, {
|
|
49063
|
+
sectionIndex: i,
|
|
49064
|
+
section: section,
|
|
49065
|
+
sectionRefs: sectionRefs,
|
|
49066
|
+
focused: focused,
|
|
49067
|
+
setFocused: setFocused,
|
|
49068
|
+
openHeight: openHeight,
|
|
49069
|
+
ariaLabelledBy: section.id,
|
|
49070
|
+
ariaDescribedBy: "right-icons-".concat(idString$1(section)),
|
|
49071
|
+
openSection: openSection,
|
|
49072
|
+
toggleOpenSection: toggleOpenSection
|
|
49073
|
+
}), sectionGroup.indexOf(section) === sectionGroup.length - 1 && groupedSections.indexOf(sectionGroup) !== groupedSections.length - 1 && /*#__PURE__*/React__default.createElement(SolidDivider$1, {
|
|
49074
|
+
borderSize: "2px",
|
|
49075
|
+
color: MANATEE_GREY
|
|
49076
|
+
}));
|
|
49077
|
+
});
|
|
49000
49078
|
})));
|
|
49001
49079
|
};
|
|
49002
49080
|
var RadioSection$1 = themeComponent(RadioSection, "RadioSection", fallbackValues$Q);
|
|
@@ -49281,7 +49359,7 @@ var ResetPasswordSuccess = withWindowSize(ResetConfirmationForm$2);
|
|
|
49281
49359
|
var activeTabBackground = "#FFFFFF";
|
|
49282
49360
|
var activeTabAccent = "#15749D";
|
|
49283
49361
|
var activeTabHover = "#B8D5E1";
|
|
49284
|
-
var fallbackValues$
|
|
49362
|
+
var fallbackValues$S = {
|
|
49285
49363
|
activeTabBackground: activeTabBackground,
|
|
49286
49364
|
activeTabAccent: activeTabAccent,
|
|
49287
49365
|
activeTabHover: activeTabHover
|
|
@@ -49349,12 +49427,12 @@ var Tabs = function Tabs(_ref) {
|
|
|
49349
49427
|
}, tab.content);
|
|
49350
49428
|
}))));
|
|
49351
49429
|
};
|
|
49352
|
-
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$
|
|
49430
|
+
var Tabs$1 = themeComponent(Tabs, "NavigationTab", fallbackValues$S);
|
|
49353
49431
|
|
|
49354
49432
|
var activeTabBackground$1 = "#FFFFFF";
|
|
49355
49433
|
var activeTabAccent$1 = "#15749D";
|
|
49356
49434
|
var activeTabHover$1 = "#B8D5E1";
|
|
49357
|
-
var fallbackValues$
|
|
49435
|
+
var fallbackValues$T = {
|
|
49358
49436
|
activeTabBackground: activeTabBackground$1,
|
|
49359
49437
|
activeTabAccent: activeTabAccent$1,
|
|
49360
49438
|
activeTabHover: activeTabHover$1
|
|
@@ -49409,7 +49487,7 @@ var TabSidebar = function TabSidebar(_ref) {
|
|
|
49409
49487
|
}, text)))));
|
|
49410
49488
|
})));
|
|
49411
49489
|
};
|
|
49412
|
-
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$
|
|
49490
|
+
var TabSidebar$1 = themeComponent(TabSidebar, "ProfileTab", fallbackValues$T);
|
|
49413
49491
|
|
|
49414
49492
|
var Timeout = function Timeout(_ref) {
|
|
49415
49493
|
var onLogout = _ref.onLogout;
|
|
@@ -49494,7 +49572,7 @@ var fontColor$1 = WHITE;
|
|
|
49494
49572
|
var textAlign$1 = "left";
|
|
49495
49573
|
var headerBackgroundColor$1 = BRIGHT_GREY;
|
|
49496
49574
|
var imageBackgroundColor$1 = MATISSE_BLUE;
|
|
49497
|
-
var fallbackValues$
|
|
49575
|
+
var fallbackValues$U = {
|
|
49498
49576
|
fontWeight: fontWeight$9,
|
|
49499
49577
|
fontColor: fontColor$1,
|
|
49500
49578
|
textAlign: textAlign$1,
|
|
@@ -49539,7 +49617,7 @@ var WelcomeModule = function WelcomeModule(_ref) {
|
|
|
49539
49617
|
src: welcomeImage
|
|
49540
49618
|
})))));
|
|
49541
49619
|
};
|
|
49542
|
-
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$
|
|
49620
|
+
var WelcomeModule$1 = /*#__PURE__*/React.memo(themeComponent(WelcomeModule, "WelcomeModule", fallbackValues$U));
|
|
49543
49621
|
|
|
49544
49622
|
var WorkflowTile = function WorkflowTile(_ref) {
|
|
49545
49623
|
var _ref$workflowName = _ref.workflowName,
|
|
@@ -49594,7 +49672,7 @@ var WorkflowTile = function WorkflowTile(_ref) {
|
|
|
49594
49672
|
};
|
|
49595
49673
|
|
|
49596
49674
|
var pageBackground = "#FBFCFD";
|
|
49597
|
-
var fallbackValues$
|
|
49675
|
+
var fallbackValues$V = {
|
|
49598
49676
|
pageBackground: pageBackground
|
|
49599
49677
|
};
|
|
49600
49678
|
|
|
@@ -49642,7 +49720,7 @@ var CenterSingle = function CenterSingle(_ref) {
|
|
|
49642
49720
|
padding: "0"
|
|
49643
49721
|
})));
|
|
49644
49722
|
};
|
|
49645
|
-
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$
|
|
49723
|
+
var CenterSingle$1 = withWindowSize(themeComponent(CenterSingle, "Global", fallbackValues$V));
|
|
49646
49724
|
|
|
49647
49725
|
var CenterStack = function CenterStack(_ref) {
|
|
49648
49726
|
var header = _ref.header,
|
|
@@ -49685,7 +49763,7 @@ var CenterStack = function CenterStack(_ref) {
|
|
|
49685
49763
|
padding: "0"
|
|
49686
49764
|
})));
|
|
49687
49765
|
};
|
|
49688
|
-
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$
|
|
49766
|
+
var CenterStack$1 = withWindowSize(themeComponent(CenterStack, "Global", fallbackValues$V));
|
|
49689
49767
|
|
|
49690
49768
|
var CenterSingle$2 = function CenterSingle(_ref) {
|
|
49691
49769
|
var header = _ref.header,
|
|
@@ -49729,7 +49807,7 @@ var CenterSingle$2 = function CenterSingle(_ref) {
|
|
|
49729
49807
|
padding: "0"
|
|
49730
49808
|
})));
|
|
49731
49809
|
};
|
|
49732
|
-
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$
|
|
49810
|
+
var DefaultPageTemplate = withWindowSize(themeComponent(CenterSingle$2, "Global", fallbackValues$V));
|
|
49733
49811
|
|
|
49734
49812
|
var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
49735
49813
|
var header = _ref.header,
|
|
@@ -49782,7 +49860,7 @@ var SidebarSingleContent = function SidebarSingleContent(_ref) {
|
|
|
49782
49860
|
padding: "0"
|
|
49783
49861
|
})));
|
|
49784
49862
|
};
|
|
49785
|
-
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$
|
|
49863
|
+
var SidebarSingleContent$1 = withWindowSize(themeComponent(SidebarSingleContent, "Global", fallbackValues$V));
|
|
49786
49864
|
|
|
49787
49865
|
var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
49788
49866
|
var header = _ref.header,
|
|
@@ -49852,7 +49930,7 @@ var SidebarStackContent = function SidebarStackContent(_ref) {
|
|
|
49852
49930
|
key: "footer-box"
|
|
49853
49931
|
})));
|
|
49854
49932
|
};
|
|
49855
|
-
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$
|
|
49933
|
+
var SidebarStackContent$1 = withWindowSize(themeComponent(SidebarStackContent, "Global", fallbackValues$V));
|
|
49856
49934
|
|
|
49857
49935
|
var useFocusInvalidInput = function useFocusInvalidInput(hasErrors) {
|
|
49858
49936
|
var resetHasErrors = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|