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.d.ts
CHANGED
|
@@ -1540,7 +1540,7 @@ declare function ModalDrawer({ open, onClose, children, widthPercent }: {
|
|
|
1540
1540
|
widthPercent?: number;
|
|
1541
1541
|
}): react_jsx_runtime.JSX.Element;
|
|
1542
1542
|
|
|
1543
|
-
declare function OverlayDropdown({ data, value, onSelectClick, disabled, isDarkerBackground, required, selectedColor, hoverColor, dropdownMaxHeight, width, height, label, labelEmptyValue, showLabelOnTop, placeHolder, labelColor, placeHolderColor, ...props }: {
|
|
1543
|
+
declare function OverlayDropdown({ data, value, onSelectClick, disabled, isDarkerBackground, required, selectedColor, hoverColor, dropdownMaxHeight, width, height, label, labelEmptyValue, showLabelOnTop, placeHolder, labelColor, placeHolderColor, margin, ...props }: {
|
|
1544
1544
|
[x: string]: any;
|
|
1545
1545
|
data?: any[];
|
|
1546
1546
|
value: any;
|
|
@@ -1559,6 +1559,7 @@ declare function OverlayDropdown({ data, value, onSelectClick, disabled, isDarke
|
|
|
1559
1559
|
placeHolder: any;
|
|
1560
1560
|
labelColor: any;
|
|
1561
1561
|
placeHolderColor: any;
|
|
1562
|
+
margin?: string;
|
|
1562
1563
|
}): react_jsx_runtime.JSX.Element;
|
|
1563
1564
|
|
|
1564
1565
|
declare function MessageBox({ isOpen, isDisabled, onClose, onConfirm, title, primaryText, secondaryText, width, height, color, hoverColor, secondaryColor, seperateSectionBorder, children, }: {
|
package/dist/index.esm.js
CHANGED
|
@@ -52391,17 +52391,18 @@ const DropdownList = styled.ul`
|
|
|
52391
52391
|
`}
|
|
52392
52392
|
`;
|
|
52393
52393
|
const SectionDiv = styled.div`
|
|
52394
|
-
${({
|
|
52395
|
-
$showBorder
|
|
52394
|
+
${({
|
|
52395
|
+
$showBorder,
|
|
52396
|
+
margin
|
|
52396
52397
|
}) => {
|
|
52397
52398
|
switch ($showBorder) {
|
|
52398
52399
|
case 'Template Offer':
|
|
52399
52400
|
return css`border-top: 1px solid #e6e2e2ff;
|
|
52400
|
-
|
|
52401
|
+
margin-top: ${margin};`;
|
|
52401
52402
|
case 'Last defined by you':
|
|
52402
52403
|
return css`border-bottom: 1px solid #e6e2e2ff;
|
|
52403
|
-
|
|
52404
|
-
|
|
52404
|
+
padding-bottom: 8px;
|
|
52405
|
+
margin-bottom: ${margin};`;
|
|
52405
52406
|
default:
|
|
52406
52407
|
return css`border-top: none`;
|
|
52407
52408
|
}
|
|
@@ -52715,6 +52716,7 @@ const OverlayDropdown = _ref => {
|
|
|
52715
52716
|
placeHolder,
|
|
52716
52717
|
labelColor,
|
|
52717
52718
|
placeHolderColor,
|
|
52719
|
+
margin = '8px',
|
|
52718
52720
|
...props
|
|
52719
52721
|
} = _ref;
|
|
52720
52722
|
const [open, setOpen] = useState(false);
|
|
@@ -52762,7 +52764,7 @@ const OverlayDropdown = _ref => {
|
|
|
52762
52764
|
setDropdownPosition('below');
|
|
52763
52765
|
}
|
|
52764
52766
|
}
|
|
52765
|
-
}, [open, dropdownMaxHeight]);
|
|
52767
|
+
}, [open, dropdownMaxHeight, margin]);
|
|
52766
52768
|
|
|
52767
52769
|
// Combine original data with "Last defined by you" group
|
|
52768
52770
|
const getDataWithLastDefined = () => {
|
|
@@ -52961,6 +52963,7 @@ const OverlayDropdown = _ref => {
|
|
|
52961
52963
|
position: dropdownPosition
|
|
52962
52964
|
}, dataToRender.map((group, groupIndex) => group.items?.length > 0 && /*#__PURE__*/React$1.createElement(SectionDiv, {
|
|
52963
52965
|
$showBorder: group.overlayName,
|
|
52966
|
+
margin: margin,
|
|
52964
52967
|
key: group.overlayCode
|
|
52965
52968
|
}, ['Template Offer', 'Last defined by you'].includes(group.overlayName) && /*#__PURE__*/React$1.createElement(SectionTitle, null, group.overlayName), group.items.map(item => /*#__PURE__*/React$1.createElement(DropdownItem, {
|
|
52966
52969
|
key: item.value,
|