contentoh-components-library 21.1.46 → 21.1.49

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.
Files changed (29) hide show
  1. package/dist/components/atoms/GeneralInput/index.js +0 -1
  2. package/dist/components/atoms/StatusTag/index.js +2 -17
  3. package/dist/components/atoms/StatusTag/styles.js +1 -1
  4. package/dist/components/molecules/HeaderTop/index.js +4 -1
  5. package/dist/components/molecules/RetailerSelector/index.js +34 -0
  6. package/dist/components/molecules/StatusAsignationInfo/index.js +3 -2
  7. package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
  8. package/dist/components/organisms/FullTabsMenu/index.js +4 -2
  9. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +119 -87
  10. package/dist/components/pages/ProviderProductEdition/index.js +380 -328
  11. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +75 -33
  12. package/dist/components/pages/RetailerProductEdition/index.js +211 -197
  13. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  14. package/dist/global-files/data.js +10 -9
  15. package/package.json +2 -2
  16. package/src/components/atoms/GeneralInput/index.js +0 -1
  17. package/src/components/atoms/StatusTag/index.js +2 -12
  18. package/src/components/atoms/StatusTag/styles.js +11 -11
  19. package/src/components/molecules/HeaderTop/index.js +6 -1
  20. package/src/components/molecules/RetailerSelector/index.js +16 -0
  21. package/src/components/molecules/StatusAsignationInfo/index.js +3 -2
  22. package/src/components/organisms/FullProductNameHeader/index.js +1 -1
  23. package/src/components/organisms/FullTabsMenu/index.js +2 -0
  24. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +116 -92
  25. package/src/components/pages/ProviderProductEdition/index.js +218 -208
  26. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +77 -31
  27. package/src/components/pages/RetailerProductEdition/index.js +141 -165
  28. package/src/components/pages/RetailerProductEdition/styles.js +1 -1
  29. package/src/global-files/data.js +10 -9
@@ -195,18 +195,19 @@ export const fetchUsers = async (auth) => {
195
195
  export const getNewStatus = (statusArray) => {
196
196
  let lookupString = "";
197
197
  statusArray.forEach((element) => (lookupString += element + "/"));
198
- if (lookupString.includes("RF")) return "RF";
198
+ if (lookupString.includes("RC")) return "RC";
199
199
  if (lookupString.includes("RA")) return "RA";
200
200
  if (lookupString.includes("RP")) return "RP";
201
- if (lookupString.includes("RC")) return "RC";
202
- if (lookupString.includes("UNASSIGNED")) return "IN_PROGRESS";
203
- if (lookupString.includes("IN_PROGRESS")) return "IN_PROGRESS";
204
- if (lookupString.includes("QF")) return "QF";
205
- if (lookupString.includes("AF")) return "AF";
201
+ if (lookupString.includes("RCA")) return "RCA";
202
+ if (lookupString.includes("UNASSIGNED")) return "CA";
203
+ if (lookupString.includes("CA")) return "CA";
204
+ if (lookupString.includes("IE")) return "IE";
205
+ if (lookupString.includes("AC")) return "AC";
206
206
  if (lookupString.includes("AA")) return "AA";
207
207
  if (lookupString.includes("AP")) return "AP";
208
- if (lookupString.includes("AC")) return "AC";
209
- if (lookupString.includes("RECEIVED")) return "RECEIVED";
208
+ if (lookupString.includes("ACA")) return "ACA";
209
+ if (lookupString.includes("R")) return "R";
210
210
  if (lookupString.includes("NA")) return "NA";
211
- return new Error("Status not found");
211
+ console.log("Status not found");
212
+ return "NA";
212
213
  };