sag_components 2.0.0-beta285 → 2.0.0-beta287
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 +6 -0
- package/dist/index.esm.js +31 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +31 -14
- package/dist/index.js.map +1 -1
- package/dist/types/components/DownloadProgress/DownloadProgress.d.ts +6 -0
- package/dist/types/components/DownloadProgress/DownloadProgress.stories.d.ts +21 -10
- package/dist/types/components/DownloadProgress/DownloadProgress.style.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -34208,7 +34208,7 @@ const Header$3 = styled__default["default"].div`
|
|
|
34208
34208
|
align-items: flex-start;
|
|
34209
34209
|
}
|
|
34210
34210
|
`;
|
|
34211
|
-
const CloseButton$
|
|
34211
|
+
const CloseButton$2 = styled__default["default"].button`
|
|
34212
34212
|
position: absolute;
|
|
34213
34213
|
top: -10px;
|
|
34214
34214
|
right: 0px;
|
|
@@ -34409,7 +34409,7 @@ const InsightsCarousel = _ref => {
|
|
|
34409
34409
|
$titleColor: titleColor
|
|
34410
34410
|
}, /*#__PURE__*/React__default["default"].cloneElement(icon, {
|
|
34411
34411
|
fill: iconColor
|
|
34412
|
-
}), title), /*#__PURE__*/React__default["default"].createElement(CloseButton$
|
|
34412
|
+
}), title), /*#__PURE__*/React__default["default"].createElement(CloseButton$2, {
|
|
34413
34413
|
onClick: () => onClose?.({
|
|
34414
34414
|
label: "closeCarousel"
|
|
34415
34415
|
}),
|
|
@@ -34546,14 +34546,13 @@ ProgressBar.defaultProps = {
|
|
|
34546
34546
|
|
|
34547
34547
|
const DownloadProgressMainContainer = styled__default["default"].div`
|
|
34548
34548
|
font-family: "Poppins", sans-serif;
|
|
34549
|
-
font-
|
|
34550
|
-
font-size: 12px;
|
|
34549
|
+
font-size: 14px;
|
|
34551
34550
|
font-weight: 400;
|
|
34552
34551
|
color: #212121;
|
|
34553
34552
|
line-height: 14px;
|
|
34554
34553
|
position: relative;
|
|
34555
34554
|
margin: 0;
|
|
34556
|
-
padding: 10px;
|
|
34555
|
+
padding: 15px 20px 10px;
|
|
34557
34556
|
background: #ffffff;
|
|
34558
34557
|
border-radius: 12px;
|
|
34559
34558
|
box-shadow: ${props => props.showShadow ? '0px 0px 20px 0px rgba(0, 0, 0, 0.2)' : ''};
|
|
@@ -34561,14 +34560,13 @@ const DownloadProgressMainContainer = styled__default["default"].div`
|
|
|
34561
34560
|
const DownloadProgressContentContainer = styled__default["default"].div`
|
|
34562
34561
|
display: flex;
|
|
34563
34562
|
align-items: center;
|
|
34564
|
-
margin: 0 10px;
|
|
34565
34563
|
gap: 10px;
|
|
34566
34564
|
`;
|
|
34567
|
-
const DownloadProgressTitle = styled__default["default"].
|
|
34565
|
+
const DownloadProgressTitle = styled__default["default"].h4`
|
|
34568
34566
|
font-weight: 400;
|
|
34569
|
-
margin: 10px;
|
|
34567
|
+
margin: 0 30px 10px 0;
|
|
34570
34568
|
`;
|
|
34571
|
-
const DownloadProgressStatusMessage = styled__default["default"].
|
|
34569
|
+
const DownloadProgressStatusMessage = styled__default["default"].h5`
|
|
34572
34570
|
margin: 3px 0;
|
|
34573
34571
|
&.DownloadProgressStatusMessage_succeeded{
|
|
34574
34572
|
font-weight: 500;
|
|
@@ -34582,11 +34580,19 @@ const DownloadProgressStatusMessage = styled__default["default"].h3`
|
|
|
34582
34580
|
font-weight: 400;
|
|
34583
34581
|
text-decoration: underline;
|
|
34584
34582
|
&:hover {
|
|
34585
|
-
|
|
34586
|
-
|
|
34587
|
-
|
|
34583
|
+
background-Color: #f1f1f1;
|
|
34584
|
+
cursor: pointer;
|
|
34585
|
+
}
|
|
34588
34586
|
}
|
|
34589
34587
|
`;
|
|
34588
|
+
const CloseButton$1 = styled__default["default"].button`
|
|
34589
|
+
position: absolute;
|
|
34590
|
+
top: 15px;
|
|
34591
|
+
right: 20px;
|
|
34592
|
+
background: none;
|
|
34593
|
+
border: none;
|
|
34594
|
+
cursor: pointer;
|
|
34595
|
+
`;
|
|
34590
34596
|
|
|
34591
34597
|
const DownloadProgress = props => {
|
|
34592
34598
|
const {
|
|
@@ -34595,11 +34601,13 @@ const DownloadProgress = props => {
|
|
|
34595
34601
|
failedMessage,
|
|
34596
34602
|
downloadStatus,
|
|
34597
34603
|
showShadow,
|
|
34604
|
+
showCloseButton,
|
|
34598
34605
|
progressPercent,
|
|
34599
34606
|
refreshInterval,
|
|
34600
34607
|
progressBarColor,
|
|
34601
34608
|
onTryAgainClick,
|
|
34602
|
-
className
|
|
34609
|
+
className,
|
|
34610
|
+
onCloseClick
|
|
34603
34611
|
} = props;
|
|
34604
34612
|
const [DownloadStatus, setDownloadStatus] = React$1.useState(downloadStatus);
|
|
34605
34613
|
React$1.useEffect(() => {
|
|
@@ -34657,7 +34665,12 @@ const DownloadProgress = props => {
|
|
|
34657
34665
|
showShadow: showShadow
|
|
34658
34666
|
}, /*#__PURE__*/React__default["default"].createElement(DownloadProgressTitle, {
|
|
34659
34667
|
className: "DownloadProgressTitle"
|
|
34660
|
-
}, title
|
|
34668
|
+
}, title, showCloseButton && /*#__PURE__*/React__default["default"].createElement(CloseButton$1, {
|
|
34669
|
+
onClick: onCloseClick
|
|
34670
|
+
}, /*#__PURE__*/React__default["default"].createElement(CloseXIcon, {
|
|
34671
|
+
width: "11",
|
|
34672
|
+
height: "11"
|
|
34673
|
+
}))), displayProgressContent());
|
|
34661
34674
|
};
|
|
34662
34675
|
DownloadProgress.propTypes = {
|
|
34663
34676
|
title: PropTypes.string,
|
|
@@ -34665,6 +34678,8 @@ DownloadProgress.propTypes = {
|
|
|
34665
34678
|
failedMessage: PropTypes.string,
|
|
34666
34679
|
downloadStatus: PropTypes.string,
|
|
34667
34680
|
showShadow: PropTypes.bool,
|
|
34681
|
+
showCloseButton: PropTypes.bool,
|
|
34682
|
+
onCloseClick: PropTypes.func,
|
|
34668
34683
|
progressPercent: PropTypes.number,
|
|
34669
34684
|
refreshInterval: PropTypes.number,
|
|
34670
34685
|
progressBarColor: PropTypes.string,
|
|
@@ -34677,6 +34692,8 @@ DownloadProgress.defaultProps = {
|
|
|
34677
34692
|
failedMessage: 'Something went wrong',
|
|
34678
34693
|
downloadStatus: 'inProgress',
|
|
34679
34694
|
showShadow: true,
|
|
34695
|
+
showCloseButton: false,
|
|
34696
|
+
onCloseClick: () => {},
|
|
34680
34697
|
progressPercent: 0,
|
|
34681
34698
|
refreshInterval: 100,
|
|
34682
34699
|
progressBarColor: '#92CF17',
|