sag_components 2.0.0-beta11 → 2.0.0-beta3
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 +71 -51
- package/dist/index.esm.js +77 -97
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +77 -97
- package/dist/index.js.map +1 -1
- package/dist/types/components/BannerEventBoxList/BannerEventBoxList.d.ts +3 -0
- package/dist/types/components/CollapseHeader/CollapseHeader.d.ts +1 -13
- package/dist/types/components/DropdownNew/DropdownNew.d.ts +1 -1
- package/dist/types/components/FilterPanel/FilterPanel.d.ts +1 -23
- package/dist/types/components/QuickFilter/QuickFilter.d.ts +66 -14
- package/dist/types/components/Tooltip/Tooltip.d.ts +1 -1
- package/package.json +1 -1
- package/dist/types/components/QuickFilterDropdownSingle/SagIconButton/SagIconButton.d.ts +0 -45
- package/dist/types/components/QuickFilterDropdownSingle/SagIconButton/SagIconButton.stories.d.ts +0 -178
- package/dist/types/components/QuickFilterDropdownSingle/SagIconButton/SagIconButton.style.d.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -43481,7 +43481,7 @@ const Tooltip$1 = props => {
|
|
|
43481
43481
|
};
|
|
43482
43482
|
Tooltip$1.propTypes = {
|
|
43483
43483
|
children: PropTypes.node,
|
|
43484
|
-
content: PropTypes.
|
|
43484
|
+
content: PropTypes.string,
|
|
43485
43485
|
direction: PropTypes.string,
|
|
43486
43486
|
delay: PropTypes.string,
|
|
43487
43487
|
topFactor: PropTypes.number
|
|
@@ -44316,18 +44316,19 @@ const InfoIcon = _ref => {
|
|
|
44316
44316
|
}));
|
|
44317
44317
|
};
|
|
44318
44318
|
|
|
44319
|
-
const LinkButton =
|
|
44320
|
-
|
|
44321
|
-
|
|
44322
|
-
|
|
44323
|
-
|
|
44324
|
-
|
|
44325
|
-
|
|
44326
|
-
|
|
44327
|
-
|
|
44328
|
-
|
|
44329
|
-
|
|
44330
|
-
|
|
44319
|
+
const LinkButton = _ref => {
|
|
44320
|
+
let {
|
|
44321
|
+
text = '',
|
|
44322
|
+
type = 'primary',
|
|
44323
|
+
size = 'small',
|
|
44324
|
+
height = '',
|
|
44325
|
+
width = '',
|
|
44326
|
+
disabled = false,
|
|
44327
|
+
textColor = '',
|
|
44328
|
+
onClick,
|
|
44329
|
+
leftIcon = 'none',
|
|
44330
|
+
rightIcon = 'none'
|
|
44331
|
+
} = _ref;
|
|
44331
44332
|
// const {
|
|
44332
44333
|
// text,
|
|
44333
44334
|
// type,
|
|
@@ -51345,7 +51346,7 @@ DropdownNew.propTypes = {
|
|
|
51345
51346
|
width: PropTypes.string,
|
|
51346
51347
|
disabled: PropTypes.bool,
|
|
51347
51348
|
error: PropTypes.bool,
|
|
51348
|
-
errorMessage:
|
|
51349
|
+
errorMessage: "",
|
|
51349
51350
|
options: PropTypes.arrayOf(PropTypes.shape({
|
|
51350
51351
|
id: PropTypes.string,
|
|
51351
51352
|
label: PropTypes.string
|
|
@@ -53467,38 +53468,16 @@ FilterPanel.propTypes = {
|
|
|
53467
53468
|
availableMonths: PropTypes.arrayOf(PropTypes.string),
|
|
53468
53469
|
availableYears: PropTypes.arrayOf(PropTypes.string),
|
|
53469
53470
|
fieldsData: PropTypes.arrayOf(PropTypes.shape({
|
|
53470
|
-
disabled: PropTypes.bool,
|
|
53471
|
-
required: PropTypes.bool,
|
|
53472
|
-
inputType: PropTypes.string,
|
|
53473
|
-
placeHolder: PropTypes.string,
|
|
53474
|
-
xIconShow: PropTypes.bool,
|
|
53475
|
-
label: PropTypes.string,
|
|
53476
|
-
labelEmptyValue: PropTypes.string,
|
|
53477
53471
|
name: PropTypes.string,
|
|
53478
|
-
periodPickerSelectedValue: PropTypes.string,
|
|
53479
|
-
selectedValue: PropTypes.arrayOf(PropTypes.shape({
|
|
53480
|
-
value: PropTypes.string,
|
|
53481
|
-
label: PropTypes.string
|
|
53482
|
-
})),
|
|
53483
|
-
orderBy: PropTypes.string,
|
|
53484
|
-
elementType: PropTypes.string,
|
|
53485
53472
|
value: PropTypes.number,
|
|
53486
|
-
color: PropTypes.string
|
|
53487
|
-
defaultValueYears: PropTypes.shape({
|
|
53488
|
-
value: PropTypes.string,
|
|
53489
|
-
label: PropTypes.string
|
|
53490
|
-
}),
|
|
53491
|
-
dropdownOptions: PropTypes.arrayOf(PropTypes.shape({
|
|
53492
|
-
value: PropTypes.string,
|
|
53493
|
-
label: PropTypes.string
|
|
53494
|
-
}))
|
|
53473
|
+
color: PropTypes.string
|
|
53495
53474
|
})),
|
|
53496
53475
|
width: PropTypes.string,
|
|
53497
53476
|
height: PropTypes.string,
|
|
53498
53477
|
okButtonBackgroundColor: PropTypes.string,
|
|
53499
53478
|
okButtonHoverColor: PropTypes.string,
|
|
53500
53479
|
resetButtonHoverColor: PropTypes.string,
|
|
53501
|
-
borderColor:
|
|
53480
|
+
borderColor: '#066768',
|
|
53502
53481
|
onOkClick: PropTypes.func,
|
|
53503
53482
|
onResetClick: PropTypes.func,
|
|
53504
53483
|
onItemValueChanged: PropTypes.func,
|
|
@@ -54205,7 +54184,9 @@ const ReportTable = props => {
|
|
|
54205
54184
|
disabled: currentPage === totalPages
|
|
54206
54185
|
}))))), isLoading && enablePagination && /*#__PURE__*/React__default["default"].createElement(LoaderWrapper$1, {
|
|
54207
54186
|
id: "LoaderWrapper"
|
|
54208
|
-
}, /*#__PURE__*/React__default["default"].createElement(Loader$1,
|
|
54187
|
+
}, /*#__PURE__*/React__default["default"].createElement(Loader$1, {
|
|
54188
|
+
loaderColor: "#1B30AA"
|
|
54189
|
+
})), !disableInfo ? /*#__PURE__*/React__default["default"].createElement(InfoBlock, null, /*#__PURE__*/React__default["default"].createElement(InfoIcon, {
|
|
54209
54190
|
color: "#1B30AA"
|
|
54210
54191
|
}), /*#__PURE__*/React__default["default"].createElement(InfoText, null, "Download table to get the full data")) : "");
|
|
54211
54192
|
};
|
|
@@ -54837,6 +54818,7 @@ const BannerEventBoxList = props => {
|
|
|
54837
54818
|
linkText,
|
|
54838
54819
|
disableToggle,
|
|
54839
54820
|
bannerWidth,
|
|
54821
|
+
loaderColor,
|
|
54840
54822
|
showDraft
|
|
54841
54823
|
} = props;
|
|
54842
54824
|
const [IsItemOpen, setIsItemOpen] = React.useState(false);
|
|
@@ -54866,7 +54848,9 @@ const BannerEventBoxList = props => {
|
|
|
54866
54848
|
onClick: () => handleToggle()
|
|
54867
54849
|
}, showLoader ? /*#__PURE__*/React__default["default"].createElement(LoaderWrapper, {
|
|
54868
54850
|
id: "LoaderWrapper"
|
|
54869
|
-
}, /*#__PURE__*/React__default["default"].createElement("span", null, "Processing Data"), /*#__PURE__*/React__default["default"].createElement(Loader,
|
|
54851
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", null, "Processing Data"), /*#__PURE__*/React__default["default"].createElement(Loader, {
|
|
54852
|
+
loaderColor: loaderColor
|
|
54853
|
+
})) : /*#__PURE__*/React__default["default"].createElement(MainDetails, null, !cardsContent && /*#__PURE__*/React__default["default"].createElement(BannerIcon, null, bannersIcon()), showEventDetails ? /*#__PURE__*/React__default["default"].createElement(SubDetails, null, eventName, ' ', eventName !== '' && eventType !== '' && /*#__PURE__*/React__default["default"].createElement(ProductName, null, "|"), ' ', eventType, count && /*#__PURE__*/React__default["default"].createElement(ProductName, null, ': ', count, ' ', count > 1 ? 'Products' : 'Product')) : ' '), /*#__PURE__*/React__default["default"].createElement(ToggleContainer, null, IsItemOpen ? /*#__PURE__*/React__default["default"].createElement(LinkButton, {
|
|
54870
54854
|
disabled: disableToggle,
|
|
54871
54855
|
text: linkText,
|
|
54872
54856
|
leftIcon: "info",
|
|
@@ -54916,6 +54900,7 @@ BannerEventBoxList.propTypes = {
|
|
|
54916
54900
|
disableToggle: PropTypes.bool,
|
|
54917
54901
|
children: PropTypes.node,
|
|
54918
54902
|
bannerWidth: PropTypes.string,
|
|
54903
|
+
loaderColor: PropTypes.string,
|
|
54919
54904
|
showDraft: PropTypes.bool
|
|
54920
54905
|
};
|
|
54921
54906
|
BannerEventBoxList.defaultProps = {
|
|
@@ -54967,6 +54952,7 @@ BannerEventBoxList.defaultProps = {
|
|
|
54967
54952
|
disableToggle: true,
|
|
54968
54953
|
children: null,
|
|
54969
54954
|
bannerWidth: 'auto',
|
|
54955
|
+
loaderColor: '#212121',
|
|
54970
54956
|
showDraft: false
|
|
54971
54957
|
};
|
|
54972
54958
|
|
|
@@ -65660,7 +65646,7 @@ CollapseHeader.propTypes = {
|
|
|
65660
65646
|
data: PropTypes.shape({
|
|
65661
65647
|
eventType: PropTypes.string,
|
|
65662
65648
|
retailer: PropTypes.string,
|
|
65663
|
-
eventDescription:
|
|
65649
|
+
eventDescription: "Large Selling Event Description",
|
|
65664
65650
|
objectivesDescription: PropTypes.string,
|
|
65665
65651
|
eventDatesValue: PropTypes.string,
|
|
65666
65652
|
externalEventDescription: PropTypes.string,
|
|
@@ -66575,20 +66561,20 @@ const QuickFilterMain = dt.div`
|
|
|
66575
66561
|
|
|
66576
66562
|
const QuickFilter = _ref => {
|
|
66577
66563
|
let {
|
|
66578
|
-
hoverColor
|
|
66579
|
-
multipleSelection
|
|
66580
|
-
xIconShow
|
|
66581
|
-
disabled
|
|
66582
|
-
error
|
|
66583
|
-
errorMessage
|
|
66584
|
-
label
|
|
66585
|
-
labelColor
|
|
66586
|
-
placeHolder
|
|
66587
|
-
width
|
|
66588
|
-
checkBoxColor
|
|
66589
|
-
onChange
|
|
66590
|
-
options
|
|
66591
|
-
selectedValue
|
|
66564
|
+
hoverColor,
|
|
66565
|
+
multipleSelection,
|
|
66566
|
+
xIconShow,
|
|
66567
|
+
disabled,
|
|
66568
|
+
error,
|
|
66569
|
+
errorMessage,
|
|
66570
|
+
label,
|
|
66571
|
+
labelColor,
|
|
66572
|
+
placeHolder,
|
|
66573
|
+
width,
|
|
66574
|
+
checkBoxColor,
|
|
66575
|
+
onChange,
|
|
66576
|
+
options,
|
|
66577
|
+
selectedValue
|
|
66592
66578
|
} = _ref;
|
|
66593
66579
|
return /*#__PURE__*/React__default["default"].createElement(QuickFilterMain, {
|
|
66594
66580
|
width: width,
|
|
@@ -66623,48 +66609,42 @@ const QuickFilter = _ref => {
|
|
|
66623
66609
|
xIconShow: xIconShow
|
|
66624
66610
|
}));
|
|
66625
66611
|
};
|
|
66626
|
-
|
|
66627
|
-
|
|
66628
|
-
|
|
66629
|
-
|
|
66630
|
-
|
|
66631
|
-
|
|
66632
|
-
|
|
66633
|
-
|
|
66634
|
-
|
|
66635
|
-
|
|
66636
|
-
|
|
66637
|
-
|
|
66638
|
-
|
|
66639
|
-
|
|
66640
|
-
|
|
66641
|
-
|
|
66642
|
-
|
|
66643
|
-
|
|
66644
|
-
|
|
66645
|
-
|
|
66646
|
-
|
|
66647
|
-
|
|
66648
|
-
|
|
66649
|
-
|
|
66650
|
-
|
|
66651
|
-
|
|
66652
|
-
|
|
66653
|
-
|
|
66654
|
-
|
|
66655
|
-
|
|
66656
|
-
|
|
66657
|
-
|
|
66658
|
-
|
|
66659
|
-
|
|
66660
|
-
|
|
66661
|
-
|
|
66662
|
-
// width: "auto",
|
|
66663
|
-
// checkBoxColor: "#229E38",
|
|
66664
|
-
// onChange: () => {},
|
|
66665
|
-
// options: [],
|
|
66666
|
-
// selectedValue: [],
|
|
66667
|
-
// };
|
|
66612
|
+
QuickFilter.propTypes = {
|
|
66613
|
+
hoverColor: PropTypes.string,
|
|
66614
|
+
multipleSelection: PropTypes.bool,
|
|
66615
|
+
disabled: PropTypes.bool,
|
|
66616
|
+
error: PropTypes.bool,
|
|
66617
|
+
errorMessage: "",
|
|
66618
|
+
label: PropTypes.string,
|
|
66619
|
+
labelColor: PropTypes.string,
|
|
66620
|
+
placeHolder: PropTypes.string,
|
|
66621
|
+
width: PropTypes.string,
|
|
66622
|
+
checkBoxColor: PropTypes.string,
|
|
66623
|
+
onChange: PropTypes.func,
|
|
66624
|
+
options: PropTypes.arrayOf(PropTypes.shape({
|
|
66625
|
+
id: PropTypes.string,
|
|
66626
|
+
label: PropTypes.string
|
|
66627
|
+
})),
|
|
66628
|
+
selectedValue: PropTypes.arrayOf(PropTypes.shape({
|
|
66629
|
+
id: PropTypes.string,
|
|
66630
|
+
label: PropTypes.string
|
|
66631
|
+
}))
|
|
66632
|
+
};
|
|
66633
|
+
QuickFilter.defaultProps = {
|
|
66634
|
+
hoverColor: "#066768",
|
|
66635
|
+
multipleSelection: false,
|
|
66636
|
+
disabled: false,
|
|
66637
|
+
error: false,
|
|
66638
|
+
errorMessage: "",
|
|
66639
|
+
label: "Unit Type:",
|
|
66640
|
+
labelColor: "#066768",
|
|
66641
|
+
placeHolder: "Select From List",
|
|
66642
|
+
width: "auto",
|
|
66643
|
+
checkBoxColor: "#229E38",
|
|
66644
|
+
onChange: () => {},
|
|
66645
|
+
options: [],
|
|
66646
|
+
selectedValue: []
|
|
66647
|
+
};
|
|
66668
66648
|
|
|
66669
66649
|
var classnames = {exports: {}};
|
|
66670
66650
|
|