sag_components 2.0.0-beta149 → 2.0.0-beta150
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.d.ts +2 -1
- package/dist/index.esm.js +9 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/types/components/OverlayDropdown/OverlayDropdown.d.ts +2 -1
- package/dist/types/components/OverlayDropdown/OverlayDropdown.stories.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -52401,17 +52401,18 @@ const DropdownList = styled__default["default"].ul`
|
|
|
52401
52401
|
`}
|
|
52402
52402
|
`;
|
|
52403
52403
|
const SectionDiv = styled__default["default"].div`
|
|
52404
|
-
${({
|
|
52405
|
-
$showBorder
|
|
52404
|
+
${({
|
|
52405
|
+
$showBorder,
|
|
52406
|
+
margin
|
|
52406
52407
|
}) => {
|
|
52407
52408
|
switch ($showBorder) {
|
|
52408
52409
|
case 'Template Offer':
|
|
52409
52410
|
return styled.css`border-top: 1px solid #e6e2e2ff;
|
|
52410
|
-
|
|
52411
|
+
margin-top: ${margin};`;
|
|
52411
52412
|
case 'Last defined by you':
|
|
52412
52413
|
return styled.css`border-bottom: 1px solid #e6e2e2ff;
|
|
52413
|
-
|
|
52414
|
-
|
|
52414
|
+
padding-bottom: 8px;
|
|
52415
|
+
margin-bottom: ${margin};`;
|
|
52415
52416
|
default:
|
|
52416
52417
|
return styled.css`border-top: none`;
|
|
52417
52418
|
}
|
|
@@ -52725,6 +52726,7 @@ const OverlayDropdown = _ref => {
|
|
|
52725
52726
|
placeHolder,
|
|
52726
52727
|
labelColor,
|
|
52727
52728
|
placeHolderColor,
|
|
52729
|
+
margin = '8px',
|
|
52728
52730
|
...props
|
|
52729
52731
|
} = _ref;
|
|
52730
52732
|
const [open, setOpen] = React$1.useState(false);
|
|
@@ -52772,7 +52774,7 @@ const OverlayDropdown = _ref => {
|
|
|
52772
52774
|
setDropdownPosition('below');
|
|
52773
52775
|
}
|
|
52774
52776
|
}
|
|
52775
|
-
}, [open, dropdownMaxHeight]);
|
|
52777
|
+
}, [open, dropdownMaxHeight, margin]);
|
|
52776
52778
|
|
|
52777
52779
|
// Combine original data with "Last defined by you" group
|
|
52778
52780
|
const getDataWithLastDefined = () => {
|
|
@@ -52971,6 +52973,7 @@ const OverlayDropdown = _ref => {
|
|
|
52971
52973
|
position: dropdownPosition
|
|
52972
52974
|
}, dataToRender.map((group, groupIndex) => group.items?.length > 0 && /*#__PURE__*/React__default["default"].createElement(SectionDiv, {
|
|
52973
52975
|
$showBorder: group.overlayName,
|
|
52976
|
+
margin: margin,
|
|
52974
52977
|
key: group.overlayCode
|
|
52975
52978
|
}, ['Template Offer', 'Last defined by you'].includes(group.overlayName) && /*#__PURE__*/React__default["default"].createElement(SectionTitle, null, group.overlayName), group.items.map(item => /*#__PURE__*/React__default["default"].createElement(DropdownItem, {
|
|
52976
52979
|
key: item.value,
|