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.d.ts
CHANGED
|
@@ -1250,6 +1250,8 @@ declare namespace DownloadProgress {
|
|
|
1250
1250
|
const failedMessage: PropTypes.Requireable<string>;
|
|
1251
1251
|
const downloadStatus: PropTypes.Requireable<string>;
|
|
1252
1252
|
const showShadow: PropTypes.Requireable<boolean>;
|
|
1253
|
+
const showCloseButton: PropTypes.Requireable<boolean>;
|
|
1254
|
+
const onCloseClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1253
1255
|
const progressPercent: PropTypes.Requireable<number>;
|
|
1254
1256
|
const refreshInterval: PropTypes.Requireable<number>;
|
|
1255
1257
|
const progressBarColor: PropTypes.Requireable<string>;
|
|
@@ -1267,6 +1269,10 @@ declare namespace DownloadProgress {
|
|
|
1267
1269
|
export { downloadStatus_1 as downloadStatus };
|
|
1268
1270
|
const showShadow_1: boolean;
|
|
1269
1271
|
export { showShadow_1 as showShadow };
|
|
1272
|
+
const showCloseButton_1: boolean;
|
|
1273
|
+
export { showCloseButton_1 as showCloseButton };
|
|
1274
|
+
export function onCloseClick_1(): void;
|
|
1275
|
+
export { onCloseClick_1 as onCloseClick };
|
|
1270
1276
|
const progressPercent_1: number;
|
|
1271
1277
|
export { progressPercent_1 as progressPercent };
|
|
1272
1278
|
const refreshInterval_1: number;
|
package/dist/index.esm.js
CHANGED
|
@@ -34198,7 +34198,7 @@ const Header$3 = styled.div`
|
|
|
34198
34198
|
align-items: flex-start;
|
|
34199
34199
|
}
|
|
34200
34200
|
`;
|
|
34201
|
-
const CloseButton$
|
|
34201
|
+
const CloseButton$2 = styled.button`
|
|
34202
34202
|
position: absolute;
|
|
34203
34203
|
top: -10px;
|
|
34204
34204
|
right: 0px;
|
|
@@ -34399,7 +34399,7 @@ const InsightsCarousel = _ref => {
|
|
|
34399
34399
|
$titleColor: titleColor
|
|
34400
34400
|
}, /*#__PURE__*/React$1.cloneElement(icon, {
|
|
34401
34401
|
fill: iconColor
|
|
34402
|
-
}), title), /*#__PURE__*/React$1.createElement(CloseButton$
|
|
34402
|
+
}), title), /*#__PURE__*/React$1.createElement(CloseButton$2, {
|
|
34403
34403
|
onClick: () => onClose?.({
|
|
34404
34404
|
label: "closeCarousel"
|
|
34405
34405
|
}),
|
|
@@ -34536,14 +34536,13 @@ ProgressBar.defaultProps = {
|
|
|
34536
34536
|
|
|
34537
34537
|
const DownloadProgressMainContainer = styled.div`
|
|
34538
34538
|
font-family: "Poppins", sans-serif;
|
|
34539
|
-
font-
|
|
34540
|
-
font-size: 12px;
|
|
34539
|
+
font-size: 14px;
|
|
34541
34540
|
font-weight: 400;
|
|
34542
34541
|
color: #212121;
|
|
34543
34542
|
line-height: 14px;
|
|
34544
34543
|
position: relative;
|
|
34545
34544
|
margin: 0;
|
|
34546
|
-
padding: 10px;
|
|
34545
|
+
padding: 15px 20px 10px;
|
|
34547
34546
|
background: #ffffff;
|
|
34548
34547
|
border-radius: 12px;
|
|
34549
34548
|
box-shadow: ${props => props.showShadow ? '0px 0px 20px 0px rgba(0, 0, 0, 0.2)' : ''};
|
|
@@ -34551,14 +34550,13 @@ const DownloadProgressMainContainer = styled.div`
|
|
|
34551
34550
|
const DownloadProgressContentContainer = styled.div`
|
|
34552
34551
|
display: flex;
|
|
34553
34552
|
align-items: center;
|
|
34554
|
-
margin: 0 10px;
|
|
34555
34553
|
gap: 10px;
|
|
34556
34554
|
`;
|
|
34557
|
-
const DownloadProgressTitle = styled.
|
|
34555
|
+
const DownloadProgressTitle = styled.h4`
|
|
34558
34556
|
font-weight: 400;
|
|
34559
|
-
margin: 10px;
|
|
34557
|
+
margin: 0 30px 10px 0;
|
|
34560
34558
|
`;
|
|
34561
|
-
const DownloadProgressStatusMessage = styled.
|
|
34559
|
+
const DownloadProgressStatusMessage = styled.h5`
|
|
34562
34560
|
margin: 3px 0;
|
|
34563
34561
|
&.DownloadProgressStatusMessage_succeeded{
|
|
34564
34562
|
font-weight: 500;
|
|
@@ -34572,11 +34570,19 @@ const DownloadProgressStatusMessage = styled.h3`
|
|
|
34572
34570
|
font-weight: 400;
|
|
34573
34571
|
text-decoration: underline;
|
|
34574
34572
|
&:hover {
|
|
34575
|
-
|
|
34576
|
-
|
|
34577
|
-
|
|
34573
|
+
background-Color: #f1f1f1;
|
|
34574
|
+
cursor: pointer;
|
|
34575
|
+
}
|
|
34578
34576
|
}
|
|
34579
34577
|
`;
|
|
34578
|
+
const CloseButton$1 = styled.button`
|
|
34579
|
+
position: absolute;
|
|
34580
|
+
top: 15px;
|
|
34581
|
+
right: 20px;
|
|
34582
|
+
background: none;
|
|
34583
|
+
border: none;
|
|
34584
|
+
cursor: pointer;
|
|
34585
|
+
`;
|
|
34580
34586
|
|
|
34581
34587
|
const DownloadProgress = props => {
|
|
34582
34588
|
const {
|
|
@@ -34585,11 +34591,13 @@ const DownloadProgress = props => {
|
|
|
34585
34591
|
failedMessage,
|
|
34586
34592
|
downloadStatus,
|
|
34587
34593
|
showShadow,
|
|
34594
|
+
showCloseButton,
|
|
34588
34595
|
progressPercent,
|
|
34589
34596
|
refreshInterval,
|
|
34590
34597
|
progressBarColor,
|
|
34591
34598
|
onTryAgainClick,
|
|
34592
|
-
className
|
|
34599
|
+
className,
|
|
34600
|
+
onCloseClick
|
|
34593
34601
|
} = props;
|
|
34594
34602
|
const [DownloadStatus, setDownloadStatus] = useState(downloadStatus);
|
|
34595
34603
|
useEffect(() => {
|
|
@@ -34647,7 +34655,12 @@ const DownloadProgress = props => {
|
|
|
34647
34655
|
showShadow: showShadow
|
|
34648
34656
|
}, /*#__PURE__*/React$1.createElement(DownloadProgressTitle, {
|
|
34649
34657
|
className: "DownloadProgressTitle"
|
|
34650
|
-
}, title
|
|
34658
|
+
}, title, showCloseButton && /*#__PURE__*/React$1.createElement(CloseButton$1, {
|
|
34659
|
+
onClick: onCloseClick
|
|
34660
|
+
}, /*#__PURE__*/React$1.createElement(CloseXIcon, {
|
|
34661
|
+
width: "11",
|
|
34662
|
+
height: "11"
|
|
34663
|
+
}))), displayProgressContent());
|
|
34651
34664
|
};
|
|
34652
34665
|
DownloadProgress.propTypes = {
|
|
34653
34666
|
title: PropTypes.string,
|
|
@@ -34655,6 +34668,8 @@ DownloadProgress.propTypes = {
|
|
|
34655
34668
|
failedMessage: PropTypes.string,
|
|
34656
34669
|
downloadStatus: PropTypes.string,
|
|
34657
34670
|
showShadow: PropTypes.bool,
|
|
34671
|
+
showCloseButton: PropTypes.bool,
|
|
34672
|
+
onCloseClick: PropTypes.func,
|
|
34658
34673
|
progressPercent: PropTypes.number,
|
|
34659
34674
|
refreshInterval: PropTypes.number,
|
|
34660
34675
|
progressBarColor: PropTypes.string,
|
|
@@ -34667,6 +34682,8 @@ DownloadProgress.defaultProps = {
|
|
|
34667
34682
|
failedMessage: 'Something went wrong',
|
|
34668
34683
|
downloadStatus: 'inProgress',
|
|
34669
34684
|
showShadow: true,
|
|
34685
|
+
showCloseButton: false,
|
|
34686
|
+
onCloseClick: () => {},
|
|
34670
34687
|
progressPercent: 0,
|
|
34671
34688
|
refreshInterval: 100,
|
|
34672
34689
|
progressBarColor: '#92CF17',
|