@salesgenterp/ui-components 0.4.99 → 0.4.100
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 +16 -14
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -14
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -4720,27 +4720,29 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4720
4720
|
var _ref$apiEndPoint = _ref.apiEndPoint,
|
|
4721
4721
|
apiEndPoint = _ref$apiEndPoint === void 0 ? 'https://dev.salesgent.xyz/api' : _ref$apiEndPoint,
|
|
4722
4722
|
_ref$token = _ref.token,
|
|
4723
|
-
token = _ref$token === void 0 ? 'eyJhbGciOiJIUzI1NiJ9.
|
|
4723
|
+
token = _ref$token === void 0 ? ' eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJzYWxlc2dlbnRlcnBAZ21haWwuY29tIiwidGllciI6MiwidXNlclR5cGUiOiJDdXN0b21lciIsInRva2VuVHlwZSI6ImFjY2VzcyIsInN0b3JlSWQiOjIsImV4cCI6MTY2NTU5MzE1OSwidXNlcklkIjoyNDU1LCJpYXQiOjE2NjU1NTcxNTksInJlc2V0UGFzc3dvcmRSZXF1aXJlZCI6ZmFsc2V9.vTRwPVz1WBuDCgUD78xccyldfdg7GL_jR_v0IdRC3IM' : _ref$token,
|
|
4724
4724
|
_ref$primaryColor = _ref.primaryColor,
|
|
4725
4725
|
primaryColor = _ref$primaryColor === void 0 ? '#BF262D' : _ref$primaryColor,
|
|
4726
|
-
secondaryColor = _ref.secondaryColor,
|
|
4727
|
-
|
|
4726
|
+
_ref$secondaryColor = _ref.secondaryColor,
|
|
4727
|
+
secondaryColor = _ref$secondaryColor === void 0 ? '#26232F' : _ref$secondaryColor,
|
|
4728
|
+
_ref$backgroundColor = _ref.backgroundColor,
|
|
4729
|
+
backgroundColor = _ref$backgroundColor === void 0 ? '#1F1B1B' : _ref$backgroundColor,
|
|
4728
4730
|
_ref$fontColor = _ref.fontColor,
|
|
4729
|
-
fontColor = _ref$fontColor === void 0 ? '#
|
|
4731
|
+
fontColor = _ref$fontColor === void 0 ? '#fff' : _ref$fontColor,
|
|
4730
4732
|
backgroundImage = _ref.backgroundImage;
|
|
4731
4733
|
var serviceApiEndPoint = 'https://dev.salesgent.xyz/api'.replace('/api', '/services/pdf');
|
|
4732
4734
|
var _useState = useState(true),
|
|
4733
4735
|
open = _useState[0],
|
|
4734
4736
|
setOpen = _useState[1];
|
|
4735
|
-
var _useState2 = useState(
|
|
4737
|
+
var _useState2 = useState(true),
|
|
4736
4738
|
isNightMode = _useState2[0],
|
|
4737
4739
|
setIsNightMode = _useState2[1];
|
|
4738
4740
|
var _useState3 = useState({
|
|
4739
4741
|
primaryColor: primaryColor || '#BF262D',
|
|
4740
|
-
secondaryColor: secondaryColor || '#
|
|
4741
|
-
backgroundColor: backgroundColor || '#
|
|
4742
|
-
fontColor: fontColor || '#
|
|
4743
|
-
backgroundImage: backgroundImage || '/images/
|
|
4742
|
+
secondaryColor: secondaryColor || '#26232F',
|
|
4743
|
+
backgroundColor: backgroundColor || '#1F1B1B',
|
|
4744
|
+
fontColor: fontColor || '#fff',
|
|
4745
|
+
backgroundImage: backgroundImage || '/images/backgroundDark.png'
|
|
4744
4746
|
}),
|
|
4745
4747
|
colors = _useState3[0],
|
|
4746
4748
|
setColors = _useState3[1];
|
|
@@ -4754,11 +4756,11 @@ var AccountDetails = function AccountDetails(_ref) {
|
|
|
4754
4756
|
return !prev;
|
|
4755
4757
|
});
|
|
4756
4758
|
isNightMode ? setColors({
|
|
4757
|
-
primaryColor:
|
|
4758
|
-
secondaryColor:
|
|
4759
|
-
backgroundColor:
|
|
4760
|
-
fontColor:
|
|
4761
|
-
backgroundImage:
|
|
4759
|
+
primaryColor: '#BF262D',
|
|
4760
|
+
secondaryColor: '#ACAAAE',
|
|
4761
|
+
backgroundColor: '#BCBDBF',
|
|
4762
|
+
fontColor: '#000000D9',
|
|
4763
|
+
backgroundImage: '/images/backgroundLight.png'
|
|
4762
4764
|
}) : setColors({
|
|
4763
4765
|
primaryColor: primaryColor || '#BF262D',
|
|
4764
4766
|
secondaryColor: secondaryColor || '#26232F',
|