@salesgenterp/ui-components 0.4.315 → 0.4.317
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.js +11 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1777,7 +1777,7 @@ var FormRadiogroup = function FormRadiogroup(props) {
|
|
|
1777
1777
|
fontColor: props.fontColor,
|
|
1778
1778
|
control: /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(material.FormLabel, null, label), /*#__PURE__*/React__default.createElement(RadiogroupField, {
|
|
1779
1779
|
size: "small",
|
|
1780
|
-
value: field.value,
|
|
1780
|
+
value: field.value || null,
|
|
1781
1781
|
onChange: function onChange(event, value) {
|
|
1782
1782
|
field.onChange(value);
|
|
1783
1783
|
onChangeField && onChangeField(value);
|
|
@@ -2367,7 +2367,8 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
2367
2367
|
onClick: onCancel
|
|
2368
2368
|
}, "Cancel"))))
|
|
2369
2369
|
}, /*#__PURE__*/React__default.createElement(DataLoader, {
|
|
2370
|
-
loading: dataLoading
|
|
2370
|
+
loading: dataLoading,
|
|
2371
|
+
skeleton: true
|
|
2371
2372
|
}, /*#__PURE__*/React__default.createElement(InfoContainer, null, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2372
2373
|
container: true,
|
|
2373
2374
|
spacing: 2
|
|
@@ -2413,7 +2414,8 @@ var PaymentModal = function PaymentModal(_ref) {
|
|
|
2413
2414
|
xs: 12
|
|
2414
2415
|
}, /*#__PURE__*/React__default.createElement(DataLoader, {
|
|
2415
2416
|
loading: cardLoading === API_STATUSES.LOADING,
|
|
2416
|
-
error: cardLoading === API_STATUSES.ERROR
|
|
2417
|
+
error: cardLoading === API_STATUSES.ERROR,
|
|
2418
|
+
skeleton: true
|
|
2417
2419
|
}, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2418
2420
|
container: true,
|
|
2419
2421
|
spacing: 2
|
|
@@ -2486,6 +2488,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
2486
2488
|
defaultStoreId = _ref.defaultStoreId,
|
|
2487
2489
|
storeIdList = _ref.storeIdList,
|
|
2488
2490
|
isNightMode = _ref.isNightMode,
|
|
2491
|
+
hideBannerSection = _ref.hideBannerSection,
|
|
2489
2492
|
exploreCategoryImage = _ref.exploreCategoryImage,
|
|
2490
2493
|
sectionLeftImageSection = _ref.sectionLeftImageSection,
|
|
2491
2494
|
sectionRightImageSection = _ref.sectionRightImageSection,
|
|
@@ -2758,7 +2761,7 @@ var Dashboard = function Dashboard(_ref) {
|
|
|
2758
2761
|
}, (totalIcons === null || totalIcons === void 0 ? void 0 : (_totalIcons$find = totalIcons.find(function (icons) {
|
|
2759
2762
|
return (icons === null || icons === void 0 ? void 0 : icons.name) === (data === null || data === void 0 ? void 0 : data.name);
|
|
2760
2763
|
})) === null || _totalIcons$find === void 0 ? void 0 : _totalIcons$find.icon) || (isAmount ? /*#__PURE__*/React__default.createElement(md.MdMonetizationOn, null) : /*#__PURE__*/React__default.createElement(gr.GrStackOverflow, null))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("p", null, data === null || data === void 0 ? void 0 : data.name), /*#__PURE__*/React__default.createElement("h3", null, "" + (isAmount ? renderMoney(data === null || data === void 0 ? void 0 : data.value) : data === null || data === void 0 ? void 0 : data.value)))));
|
|
2761
|
-
}))), /*#__PURE__*/React__default.createElement(BannerContainer, null, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2764
|
+
}))), !hideBannerSection && /*#__PURE__*/React__default.createElement(BannerContainer, null, /*#__PURE__*/React__default.createElement(material.Grid, {
|
|
2762
2765
|
container: true,
|
|
2763
2766
|
spacing: 3,
|
|
2764
2767
|
alignItems: "center"
|
|
@@ -4414,6 +4417,7 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4414
4417
|
onChangePath = _ref.onChangePath,
|
|
4415
4418
|
maxWidth = _ref.maxWidth,
|
|
4416
4419
|
logoUrl = _ref.logoUrl,
|
|
4420
|
+
hideBannerSection = _ref.hideBannerSection,
|
|
4417
4421
|
sectionLeftImageSection = _ref.sectionLeftImageSection,
|
|
4418
4422
|
exploreCategoryImage = _ref.exploreCategoryImage,
|
|
4419
4423
|
sectionRightImageSection = _ref.sectionRightImageSection,
|
|
@@ -4552,6 +4556,7 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4552
4556
|
storeIdList: storeIdList,
|
|
4553
4557
|
defaultStoreId: defaultStoreId,
|
|
4554
4558
|
isNightMode: isNightMode,
|
|
4559
|
+
hideBannerSection: hideBannerSection,
|
|
4555
4560
|
exploreCategoryImage: exploreCategoryImage,
|
|
4556
4561
|
sectionLeftImageSection: sectionLeftImageSection,
|
|
4557
4562
|
sectionRightImageSection: sectionRightImageSection,
|
|
@@ -4699,7 +4704,8 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4699
4704
|
}
|
|
4700
4705
|
}
|
|
4701
4706
|
}, isNightMode ? /*#__PURE__*/React__default.createElement(md.MdDarkMode, null) : /*#__PURE__*/React__default.createElement(md.MdOutlineDarkMode, null)))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(DataLoader, {
|
|
4702
|
-
loading: dataLoading
|
|
4707
|
+
loading: dataLoading,
|
|
4708
|
+
skeleton: true
|
|
4703
4709
|
}, apiEndPoint && token && renderListItemComponent())))))));
|
|
4704
4710
|
};
|
|
4705
4711
|
var Root$5 = styled__default(material.Box)(_templateObject$n || (_templateObject$n = _taggedTemplateLiteralLoose(["\n // background-image: url(", ");\n // background-position: center;\n // background-repeat: no-repeat;\n // background-size: cover;\n padding: 1.4rem;\n background-color: ", ";\n"])), function (props) {
|