contentoh-components-library 21.1.76 → 21.1.79

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 (48) hide show
  1. package/dist/components/atoms/AsignationOption/index.js +2 -2
  2. package/dist/components/atoms/ProductPercentCard/Percent.stories.js +1 -1
  3. package/dist/components/atoms/ProductPercentCard/styles.js +1 -1
  4. package/dist/components/atoms/ProgressBar/styles.js +1 -1
  5. package/dist/components/atoms/StatusTag/StatusTag.stories.js +48 -0
  6. package/dist/components/atoms/StatusTag/index.js +58 -0
  7. package/dist/components/atoms/StatusTag/styles.js +20 -0
  8. package/dist/components/molecules/AssignedWork/AssignedWork.stories.js +1 -1
  9. package/dist/components/molecules/AssignedWork/styles.js +1 -1
  10. package/dist/components/molecules/ProductNameHeader/index.js +2 -2
  11. package/dist/components/molecules/StatusAsignationInfo/index.js +3 -3
  12. package/dist/components/organisms/FullProductNameHeader/index.js +1 -1
  13. package/dist/components/organisms/VersionSelector/index.js +13 -17
  14. package/dist/components/organisms/VersionSelector/styles.js +1 -1
  15. package/dist/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +6 -2
  16. package/dist/components/pages/ProviderProductEdition/index.js +433 -433
  17. package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +37 -0
  18. package/dist/components/pages/RegistrationLoginFirstStep/index.js +269 -0
  19. package/dist/components/pages/RegistrationLoginFirstStep/styles.js +20 -0
  20. package/dist/components/pages/RetailerProductEdition/index.js +206 -222
  21. package/dist/global-files/customHooks.js +19 -11
  22. package/dist/global-files/data.js +8 -8
  23. package/dist/index.js +14 -1
  24. package/package.json +1 -1
  25. package/src/components/atoms/AsignationOption/index.js +2 -2
  26. package/src/components/atoms/ProductPercentCard/Percent.stories.js +12 -11
  27. package/src/components/atoms/ProductPercentCard/styles.js +9 -9
  28. package/src/components/atoms/ProgressBar/styles.js +8 -7
  29. package/src/components/atoms/StatusTag/index.js +37 -0
  30. package/src/components/atoms/{Status → StatusTag}/styles.js +10 -7
  31. package/src/components/molecules/AssignedWork/AssignedWork.stories.js +8 -8
  32. package/src/components/molecules/AssignedWork/styles.js +10 -9
  33. package/src/components/molecules/ProductNameHeader/index.js +2 -2
  34. package/src/components/molecules/StatusAsignationInfo/index.js +1 -1
  35. package/src/components/organisms/FullProductNameHeader/index.js +2 -2
  36. package/src/components/organisms/VersionSelector/index.js +10 -3
  37. package/src/components/organisms/VersionSelector/styles.js +1 -0
  38. package/src/components/pages/ProviderProductEdition/ProviderProductEdition.stories.js +3 -2
  39. package/src/components/pages/ProviderProductEdition/index.js +250 -233
  40. package/src/components/pages/RetailerProductEdition/index.js +176 -151
  41. package/src/global-files/customHooks.js +14 -14
  42. package/src/global-files/data.js +8 -8
  43. package/src/index.js +2 -1
  44. package/dist/components/atoms/Status/Status.stories.js +0 -31
  45. package/dist/components/atoms/Status/index.js +0 -23
  46. package/dist/components/atoms/Status/styles.js +0 -20
  47. package/src/components/atoms/Status/Status.stories.js +0 -14
  48. package/src/components/atoms/Status/index.js +0 -9
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.Status = void 0;
7
-
8
- var _styles = require("./styles");
9
-
10
- var _jsxRuntime = require("react/jsx-runtime");
11
-
12
- var Status = function Status(_ref) {
13
- var statusType = _ref.statusType,
14
- ovalForm = _ref.ovalForm;
15
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
16
- className: "status-".concat(statusType, " ").concat(ovalForm && "oval-form"),
17
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
18
- children: statusType
19
- })
20
- });
21
- };
22
-
23
- exports.Status = Status;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.Container = void 0;
9
-
10
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
11
-
12
- var _styledComponents = _interopRequireDefault(require("styled-components"));
13
-
14
- var _variables = require("../../../global-files/variables");
15
-
16
- var _templateObject;
17
-
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: fit-content;\n padding: 0 10px;\n height: 20px;\n background-color: ", ";\n border-radius: 3px;\n\n p {\n text-align: center;\n color: ", ";\n font-family: ", ";\n font-size: 12px;\n line-height: 20px;\n }\n\n &.status-CA,\n &.status-IE {\n background-color: ", ";\n }\n\n &.status-R,\n &.status-AS {\n background-color: ", ";\n }\n\n &.status-AA,\n &.status-AP,\n &.status-AC,\n &.status-ACA {\n background-color: ", ";\n }\n\n &.status-RA,\n &.status-RC,\n &.status-RP,\n &.status-RCA {\n background-color: ", ";\n }\n\n &.status-Dat,\n &.status-Dsc,\n &.status-Imgs {\n background-color: ", ";\n }\n\n &.status-Ex {\n background-color: ", ";\n }\n\n &.status-DDI {\n background-color: ", ";\n }\n\n &.status-GLD {\n background-color: ", ";\n }\n\n &.status-TAB {\n background-color: ", ";\n }\n\n &.status-Pt {\n background-color: ", ";\n color: ", ";\n }\n\n &.oval-form {\n border-radius: 10px;\n }\n"])), _variables.GlobalColors.s3, _variables.GlobalColors.white, _variables.FontFamily.Lato, _variables.GlobalColors.in_progress, _variables.GlobalColors.reception, _variables.GlobalColors.finished, _variables.GlobalColors.rejected_status, _variables.GlobalColors.s4, _variables.GlobalColors.exported, _variables.GlobalColors.original_purpura, _variables.GlobalColors.in_progress, _variables.GlobalColors.deep_gray, _variables.GlobalColors.s2, _variables.GlobalColors.s4);
19
-
20
- exports.Container = Container;
@@ -1,14 +0,0 @@
1
- import { Status } from "./index";
2
-
3
- export default {
4
- title: "Components/atoms/Status",
5
- component: Status,
6
- };
7
-
8
- const Template = (args) => <Status {...args} />;
9
-
10
- export const StatusDefault = Template.bind({});
11
- StatusDefault.args = {
12
- statusType: "IE",
13
- ovalForm: false,
14
- };
@@ -1,9 +0,0 @@
1
- import { Container } from "./styles";
2
-
3
- export const Status = ({ statusType, ovalForm }) => {
4
- return (
5
- <Container className={`status-${statusType} ${ovalForm && "oval-form"}`}>
6
- <p>{statusType}</p>
7
- </Container>
8
- );
9
- };