sag_components 2.0.0-beta285 → 2.0.0-beta286
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 +50 -34
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +50 -34
- 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
|
@@ -24643,26 +24643,25 @@ const IconContainer$2 = styled.div`
|
|
|
24643
24643
|
cursor: pointer;
|
|
24644
24644
|
`;
|
|
24645
24645
|
|
|
24646
|
-
const QuickFilterDropdownMultiSelection =
|
|
24647
|
-
|
|
24648
|
-
|
|
24649
|
-
|
|
24650
|
-
|
|
24651
|
-
|
|
24652
|
-
|
|
24653
|
-
|
|
24654
|
-
|
|
24655
|
-
|
|
24656
|
-
|
|
24657
|
-
|
|
24658
|
-
|
|
24659
|
-
|
|
24660
|
-
|
|
24661
|
-
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
|
|
24665
|
-
} = _ref;
|
|
24646
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24647
|
+
label,
|
|
24648
|
+
labelEmptyValue,
|
|
24649
|
+
options,
|
|
24650
|
+
selectedValue,
|
|
24651
|
+
placeHolder,
|
|
24652
|
+
onChange,
|
|
24653
|
+
required,
|
|
24654
|
+
disabled,
|
|
24655
|
+
width,
|
|
24656
|
+
height,
|
|
24657
|
+
error,
|
|
24658
|
+
errorMessage,
|
|
24659
|
+
labelColor,
|
|
24660
|
+
xIconShow,
|
|
24661
|
+
checkBoxColor,
|
|
24662
|
+
showLabelOnTop,
|
|
24663
|
+
dropdownHeight
|
|
24664
|
+
}) => {
|
|
24666
24665
|
const [isFocused, setIsFocused] = useState(false);
|
|
24667
24666
|
const [showOptions, setShowOptions] = useState(false);
|
|
24668
24667
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -34198,7 +34197,7 @@ const Header$3 = styled.div`
|
|
|
34198
34197
|
align-items: flex-start;
|
|
34199
34198
|
}
|
|
34200
34199
|
`;
|
|
34201
|
-
const CloseButton$
|
|
34200
|
+
const CloseButton$2 = styled.button`
|
|
34202
34201
|
position: absolute;
|
|
34203
34202
|
top: -10px;
|
|
34204
34203
|
right: 0px;
|
|
@@ -34399,7 +34398,7 @@ const InsightsCarousel = _ref => {
|
|
|
34399
34398
|
$titleColor: titleColor
|
|
34400
34399
|
}, /*#__PURE__*/React$1.cloneElement(icon, {
|
|
34401
34400
|
fill: iconColor
|
|
34402
|
-
}), title), /*#__PURE__*/React$1.createElement(CloseButton$
|
|
34401
|
+
}), title), /*#__PURE__*/React$1.createElement(CloseButton$2, {
|
|
34403
34402
|
onClick: () => onClose?.({
|
|
34404
34403
|
label: "closeCarousel"
|
|
34405
34404
|
}),
|
|
@@ -34536,14 +34535,13 @@ ProgressBar.defaultProps = {
|
|
|
34536
34535
|
|
|
34537
34536
|
const DownloadProgressMainContainer = styled.div`
|
|
34538
34537
|
font-family: "Poppins", sans-serif;
|
|
34539
|
-
font-
|
|
34540
|
-
font-size: 12px;
|
|
34538
|
+
font-size: 14px;
|
|
34541
34539
|
font-weight: 400;
|
|
34542
34540
|
color: #212121;
|
|
34543
34541
|
line-height: 14px;
|
|
34544
34542
|
position: relative;
|
|
34545
34543
|
margin: 0;
|
|
34546
|
-
padding: 10px;
|
|
34544
|
+
padding: 15px 20px 10px;
|
|
34547
34545
|
background: #ffffff;
|
|
34548
34546
|
border-radius: 12px;
|
|
34549
34547
|
box-shadow: ${props => props.showShadow ? '0px 0px 20px 0px rgba(0, 0, 0, 0.2)' : ''};
|
|
@@ -34551,14 +34549,13 @@ const DownloadProgressMainContainer = styled.div`
|
|
|
34551
34549
|
const DownloadProgressContentContainer = styled.div`
|
|
34552
34550
|
display: flex;
|
|
34553
34551
|
align-items: center;
|
|
34554
|
-
margin: 0 10px;
|
|
34555
34552
|
gap: 10px;
|
|
34556
34553
|
`;
|
|
34557
|
-
const DownloadProgressTitle = styled.
|
|
34554
|
+
const DownloadProgressTitle = styled.h4`
|
|
34558
34555
|
font-weight: 400;
|
|
34559
|
-
margin: 10px;
|
|
34556
|
+
margin: 0 0 10px;
|
|
34560
34557
|
`;
|
|
34561
|
-
const DownloadProgressStatusMessage = styled.
|
|
34558
|
+
const DownloadProgressStatusMessage = styled.h5`
|
|
34562
34559
|
margin: 3px 0;
|
|
34563
34560
|
&.DownloadProgressStatusMessage_succeeded{
|
|
34564
34561
|
font-weight: 500;
|
|
@@ -34572,11 +34569,19 @@ const DownloadProgressStatusMessage = styled.h3`
|
|
|
34572
34569
|
font-weight: 400;
|
|
34573
34570
|
text-decoration: underline;
|
|
34574
34571
|
&:hover {
|
|
34575
|
-
|
|
34576
|
-
|
|
34577
|
-
|
|
34572
|
+
background-Color: #f1f1f1;
|
|
34573
|
+
cursor: pointer;
|
|
34574
|
+
}
|
|
34578
34575
|
}
|
|
34579
34576
|
`;
|
|
34577
|
+
const CloseButton$1 = styled.button`
|
|
34578
|
+
position: absolute;
|
|
34579
|
+
top: 15px;
|
|
34580
|
+
right: 20px;
|
|
34581
|
+
background: none;
|
|
34582
|
+
border: none;
|
|
34583
|
+
cursor: pointer;
|
|
34584
|
+
`;
|
|
34580
34585
|
|
|
34581
34586
|
const DownloadProgress = props => {
|
|
34582
34587
|
const {
|
|
@@ -34585,11 +34590,13 @@ const DownloadProgress = props => {
|
|
|
34585
34590
|
failedMessage,
|
|
34586
34591
|
downloadStatus,
|
|
34587
34592
|
showShadow,
|
|
34593
|
+
showCloseButton,
|
|
34588
34594
|
progressPercent,
|
|
34589
34595
|
refreshInterval,
|
|
34590
34596
|
progressBarColor,
|
|
34591
34597
|
onTryAgainClick,
|
|
34592
|
-
className
|
|
34598
|
+
className,
|
|
34599
|
+
onCloseClick
|
|
34593
34600
|
} = props;
|
|
34594
34601
|
const [DownloadStatus, setDownloadStatus] = useState(downloadStatus);
|
|
34595
34602
|
useEffect(() => {
|
|
@@ -34647,7 +34654,12 @@ const DownloadProgress = props => {
|
|
|
34647
34654
|
showShadow: showShadow
|
|
34648
34655
|
}, /*#__PURE__*/React$1.createElement(DownloadProgressTitle, {
|
|
34649
34656
|
className: "DownloadProgressTitle"
|
|
34650
|
-
}, title
|
|
34657
|
+
}, title, showCloseButton && /*#__PURE__*/React$1.createElement(CloseButton$1, {
|
|
34658
|
+
onClick: onCloseClick
|
|
34659
|
+
}, /*#__PURE__*/React$1.createElement(CloseXIcon, {
|
|
34660
|
+
width: "12",
|
|
34661
|
+
height: "12"
|
|
34662
|
+
}))), displayProgressContent());
|
|
34651
34663
|
};
|
|
34652
34664
|
DownloadProgress.propTypes = {
|
|
34653
34665
|
title: PropTypes.string,
|
|
@@ -34655,6 +34667,8 @@ DownloadProgress.propTypes = {
|
|
|
34655
34667
|
failedMessage: PropTypes.string,
|
|
34656
34668
|
downloadStatus: PropTypes.string,
|
|
34657
34669
|
showShadow: PropTypes.bool,
|
|
34670
|
+
showCloseButton: PropTypes.bool,
|
|
34671
|
+
onCloseClick: PropTypes.func,
|
|
34658
34672
|
progressPercent: PropTypes.number,
|
|
34659
34673
|
refreshInterval: PropTypes.number,
|
|
34660
34674
|
progressBarColor: PropTypes.string,
|
|
@@ -34667,6 +34681,8 @@ DownloadProgress.defaultProps = {
|
|
|
34667
34681
|
failedMessage: 'Something went wrong',
|
|
34668
34682
|
downloadStatus: 'inProgress',
|
|
34669
34683
|
showShadow: true,
|
|
34684
|
+
showCloseButton: false,
|
|
34685
|
+
onCloseClick: () => {},
|
|
34670
34686
|
progressPercent: 0,
|
|
34671
34687
|
refreshInterval: 100,
|
|
34672
34688
|
progressBarColor: '#92CF17',
|