@salesgenterp/ui-components 0.4.379 → 0.4.381
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 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +11 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1041,7 +1041,7 @@ var _templateObject$5;
|
|
|
1041
1041
|
var APIStaticPage = function APIStaticPage(_ref) {
|
|
1042
1042
|
var _ref$colors = _ref.colors,
|
|
1043
1043
|
colors = _ref$colors === void 0 ? {
|
|
1044
|
-
primaryColor: '#
|
|
1044
|
+
primaryColor: '#424242'
|
|
1045
1045
|
} : _ref$colors,
|
|
1046
1046
|
maxWidth = _ref.maxWidth,
|
|
1047
1047
|
mapSrc = _ref.mapSrc,
|
|
@@ -1080,6 +1080,7 @@ var APIStaticPage = function APIStaticPage(_ref) {
|
|
|
1080
1080
|
_response3 = pageData;
|
|
1081
1081
|
}
|
|
1082
1082
|
setStaticPage(_response3);
|
|
1083
|
+
setContactUsForm(false);
|
|
1083
1084
|
var _temp = function (_response, _response$title, _response2, _response2$urlAlias) {
|
|
1084
1085
|
if (((_response = _response3) === null || _response === void 0 ? void 0 : (_response$title = _response.title) === null || _response$title === void 0 ? void 0 : _response$title.toLowerCase()) === 'contact us' || ((_response2 = _response3) === null || _response2 === void 0 ? void 0 : (_response2$urlAlias = _response2.urlAlias) === null || _response2$urlAlias === void 0 ? void 0 : _response2$urlAlias.toLowerCase()) === 'contact-us') {
|
|
1085
1086
|
return Promise.resolve(API({
|
|
@@ -4492,7 +4493,7 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4492
4493
|
serviceApiEndPoint = _ref.serviceApiEndPoint,
|
|
4493
4494
|
token = _ref.token,
|
|
4494
4495
|
_ref$primaryColor = _ref.primaryColor,
|
|
4495
|
-
primaryColor = _ref$primaryColor === void 0 ? '#
|
|
4496
|
+
primaryColor = _ref$primaryColor === void 0 ? '#424242' : _ref$primaryColor,
|
|
4496
4497
|
secondaryColor = _ref.secondaryColor,
|
|
4497
4498
|
backgroundColor = _ref.backgroundColor,
|
|
4498
4499
|
fontColor = _ref.fontColor,
|
|
@@ -4543,7 +4544,7 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4543
4544
|
defaultStoreId = _useState6[0],
|
|
4544
4545
|
setDefaultStoreId = _useState6[1];
|
|
4545
4546
|
var _useState7 = React.useState({
|
|
4546
|
-
primaryColor: primaryColor || '#
|
|
4547
|
+
primaryColor: primaryColor || '#424242',
|
|
4547
4548
|
secondaryColor: secondaryColor || '#FFFFFF',
|
|
4548
4549
|
backgroundColor: backgroundColor || '#F5F5F5',
|
|
4549
4550
|
fontColor: fontColor || '#391111'
|
|
@@ -4971,7 +4972,7 @@ var BrandList = function BrandList(_ref) {
|
|
|
4971
4972
|
var apiEndPoint = _ref.apiEndPoint,
|
|
4972
4973
|
_ref$colors = _ref.colors,
|
|
4973
4974
|
colors = _ref$colors === void 0 ? {
|
|
4974
|
-
primaryColor: '#
|
|
4975
|
+
primaryColor: '#424242'
|
|
4975
4976
|
} : _ref$colors,
|
|
4976
4977
|
_ref$size = _ref.size,
|
|
4977
4978
|
size = _ref$size === void 0 ? 20 : _ref$size,
|
|
@@ -5103,7 +5104,7 @@ var BrandStock = function BrandStock(_ref) {
|
|
|
5103
5104
|
apiEndPoint = _ref.apiEndPoint,
|
|
5104
5105
|
_ref$colors = _ref.colors,
|
|
5105
5106
|
colors = _ref$colors === void 0 ? {
|
|
5106
|
-
primaryColor: '#
|
|
5107
|
+
primaryColor: '#424242'
|
|
5107
5108
|
} : _ref$colors;
|
|
5108
5109
|
var _useState = React.useState(_extends({}, storeData)),
|
|
5109
5110
|
data = _useState[0],
|
|
@@ -7813,7 +7814,7 @@ var HomeBanner = function HomeBanner(_ref) {
|
|
|
7813
7814
|
token = _ref.token,
|
|
7814
7815
|
_ref$colors = _ref.colors,
|
|
7815
7816
|
colors = _ref$colors === void 0 ? {
|
|
7816
|
-
primaryColor: '#
|
|
7817
|
+
primaryColor: '#424242'
|
|
7817
7818
|
} : _ref$colors,
|
|
7818
7819
|
_ref$businessTypeId = _ref.businessTypeId,
|
|
7819
7820
|
businessTypeId = _ref$businessTypeId === void 0 ? 1 : _ref$businessTypeId,
|
|
@@ -9119,7 +9120,7 @@ var QuickOrder = function QuickOrder(_ref) {
|
|
|
9119
9120
|
var _storeData$map;
|
|
9120
9121
|
var _ref$colors = _ref.colors,
|
|
9121
9122
|
colors = _ref$colors === void 0 ? {
|
|
9122
|
-
primaryColor: '#
|
|
9123
|
+
primaryColor: '#424242'
|
|
9123
9124
|
} : _ref$colors,
|
|
9124
9125
|
apiEndPoint = _ref.apiEndPoint,
|
|
9125
9126
|
token = _ref.token,
|
|
@@ -9298,7 +9299,7 @@ var StaticPage = function StaticPage(_ref) {
|
|
|
9298
9299
|
var _data$content;
|
|
9299
9300
|
var _ref$colors = _ref.colors,
|
|
9300
9301
|
colors = _ref$colors === void 0 ? {
|
|
9301
|
-
primaryColor: '#
|
|
9302
|
+
primaryColor: '#424242'
|
|
9302
9303
|
} : _ref$colors,
|
|
9303
9304
|
data = _ref.data,
|
|
9304
9305
|
maxWidth = _ref.maxWidth,
|
|
@@ -9498,7 +9499,7 @@ var SwitchUser = function SwitchUser(_ref) {
|
|
|
9498
9499
|
token = _ref.token,
|
|
9499
9500
|
_ref$colors = _ref.colors,
|
|
9500
9501
|
colors = _ref$colors === void 0 ? {
|
|
9501
|
-
primaryColor: '#
|
|
9502
|
+
primaryColor: '#424242'
|
|
9502
9503
|
} : _ref$colors,
|
|
9503
9504
|
onSelectCustomer = _ref.onSelectCustomer;
|
|
9504
9505
|
var _useState = React.useState([]),
|
|
@@ -9591,7 +9592,7 @@ var ThankYou = function ThankYou(_ref) {
|
|
|
9591
9592
|
id = _ref$id === void 0 ? 0 : _ref$id,
|
|
9592
9593
|
_ref$colors = _ref.colors,
|
|
9593
9594
|
colors = _ref$colors === void 0 ? {
|
|
9594
|
-
primaryColor: '#
|
|
9595
|
+
primaryColor: '#424242'
|
|
9595
9596
|
} : _ref$colors,
|
|
9596
9597
|
onContinue = _ref.onContinue;
|
|
9597
9598
|
return /*#__PURE__*/React__default.createElement(styled.ThemeProvider, {
|