contentoh-components-library 21.0.19 → 21.0.22

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 (154) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/components/atoms/ActivedFilter/ActivedFilter.stories.js +7 -1
  3. package/dist/components/atoms/ActivedFilter/index.js +12 -4
  4. package/dist/components/atoms/AsignationOption/AsignationOptions.stories.js +7 -1
  5. package/dist/components/atoms/AsignationOption/index.js +28 -20
  6. package/dist/components/atoms/AtomList/AtomList.stories.js +7 -1
  7. package/dist/components/atoms/AtomList/index.js +14 -9
  8. package/dist/components/atoms/Avatar/AsignationImage.stories.js +7 -1
  9. package/dist/components/atoms/Avatar/index.js +11 -8
  10. package/dist/components/atoms/Card/Card.stories.js +7 -1
  11. package/dist/components/atoms/Card/index.js +8 -4
  12. package/dist/components/atoms/CheckBox/CheckBox.stories.js +7 -1
  13. package/dist/components/atoms/CheckBox/index.js +16 -12
  14. package/dist/components/atoms/CustomerTypeImage/CustomerTypeImage.stories.js +7 -1
  15. package/dist/components/atoms/CustomerTypeImage/index.js +8 -6
  16. package/dist/components/atoms/DropDownButton/DropDownButton.stories.js +7 -1
  17. package/dist/components/atoms/DropDownButton/index.js +9 -6
  18. package/dist/components/atoms/EditField/EditField.stories.js +7 -1
  19. package/dist/components/atoms/EditField/index.js +17 -10
  20. package/dist/components/atoms/FeatureTag/FeatureTag.stories.js +7 -1
  21. package/dist/components/atoms/FeatureTag/index.js +11 -5
  22. package/dist/components/atoms/GeneralButton/GeneralButton.stories.js +7 -1
  23. package/dist/components/atoms/GeneralButton/index.js +8 -6
  24. package/dist/components/atoms/GeneralInput/GeneralInput.stories.js +7 -1
  25. package/dist/components/atoms/GeneralInput/index.js +24 -20
  26. package/dist/components/atoms/GeneralTextBox/GeneralTextBox.stories.js +7 -1
  27. package/dist/components/atoms/GeneralTextBox/index.js +12 -7
  28. package/dist/components/atoms/GenericModal/GenericModal.stories.js +46 -59
  29. package/dist/components/atoms/GenericModal/index.js +12 -7
  30. package/dist/components/atoms/GradientPanel/GradientPanel.stories.js +85 -80
  31. package/dist/components/atoms/GradientPanel/index.js +11 -7
  32. package/dist/components/atoms/Graphic/Graphic.stories.js +7 -1
  33. package/dist/components/atoms/Graphic/index.js +9 -5
  34. package/dist/components/atoms/LoadImageMenu/LoadImageMenu.stories.js +7 -1
  35. package/dist/components/atoms/LoadImageMenu/index.js +33 -22
  36. package/dist/components/atoms/LogoImage/LogoImage.stories.js +7 -1
  37. package/dist/components/atoms/LogoImage/index.js +8 -6
  38. package/dist/components/atoms/MenuNotification/MenuNotification.stories.js +7 -1
  39. package/dist/components/atoms/MenuNotification/index.js +21 -15
  40. package/dist/components/atoms/MenuProfile/MenuProfile.stories.js +7 -1
  41. package/dist/components/atoms/MenuProfile/index.js +25 -15
  42. package/dist/components/atoms/Notification/Notification.stories.js +5 -1
  43. package/dist/components/atoms/Notification/index.js +15 -9
  44. package/dist/components/atoms/PriorityFlag/PriorityFlag.stories.js +7 -1
  45. package/dist/components/atoms/PriorityFlag/index.js +8 -4
  46. package/dist/components/atoms/ProductImage/ProductImage.stories.js +7 -1
  47. package/dist/components/atoms/ProductImage/index.js +11 -8
  48. package/dist/components/atoms/ProductPercentCard/Percent.stories.js +7 -1
  49. package/dist/components/atoms/ProductPercentCard/index.js +21 -14
  50. package/dist/components/atoms/ProgressBar/ProgressBar.stories.js +7 -1
  51. package/dist/components/atoms/ProgressBar/index.js +8 -3
  52. package/dist/components/atoms/ScreenHeader/ScreenHeader.stories.js +7 -1
  53. package/dist/components/atoms/ScreenHeader/index.js +9 -3
  54. package/dist/components/atoms/SideMenuButton/SideMenuButton.stories.js +5 -1
  55. package/dist/components/atoms/SideMenuButton/index.js +10 -4
  56. package/dist/components/atoms/StatusTag/StatusTag.stories.js +7 -1
  57. package/dist/components/atoms/StatusTag/index.js +8 -3
  58. package/dist/components/atoms/TabSection/TabSection.stories.js +7 -1
  59. package/dist/components/atoms/TabSection/index.js +8 -3
  60. package/dist/components/atoms/ValidationPanel/ValidationPanel.stories.js +7 -1
  61. package/dist/components/atoms/ValidationPanel/index.js +39 -27
  62. package/dist/components/molecules/AddProvidersAndProducts/AddProvidersAndProducts.stories.js +5 -1
  63. package/dist/components/molecules/AddProvidersAndProducts/index.js +18 -12
  64. package/dist/components/molecules/AssignedWork/AssignedWork.stories.js +5 -1
  65. package/dist/components/molecules/AssignedWork/index.js +36 -30
  66. package/dist/components/molecules/AvatarAndValidation/AvatarAndValidation.stories.js +7 -1
  67. package/dist/components/molecules/AvatarAndValidation/index.js +20 -15
  68. package/dist/components/molecules/CarouselImagesLogin/CarouselImagesLogin.stories.js +5 -1
  69. package/dist/components/molecules/CarouselImagesLogin/index.js +60 -58
  70. package/dist/components/molecules/EditionActiveImage/EditionActiveImage.stories.js +7 -1
  71. package/dist/components/molecules/EditionActiveImage/index.js +14 -10
  72. package/dist/components/molecules/FeaturesBar/FeaturesBar.stories.js +7 -1
  73. package/dist/components/molecules/FeaturesBar/index.js +11 -9
  74. package/dist/components/molecules/GalleryElement/GalleryElement.stories.js +7 -1
  75. package/dist/components/molecules/GalleryElement/index.js +37 -29
  76. package/dist/components/molecules/GalleryHeader/GalleryHeader.stories.js +7 -1
  77. package/dist/components/molecules/GalleryHeader/index.js +23 -5
  78. package/dist/components/molecules/HeaderTop/HeaderTop.stories.js +7 -1
  79. package/dist/components/molecules/HeaderTop/index.js +10 -7
  80. package/dist/components/molecules/ImageSelector/ImageSelector.stories.js +7 -1
  81. package/dist/components/molecules/ImageSelector/index.js +15 -13
  82. package/dist/components/molecules/Login/Login.stories.js +28 -0
  83. package/dist/components/molecules/Login/index.js +79 -0
  84. package/dist/components/molecules/Login/styles.js +20 -0
  85. package/dist/components/molecules/LoginPasswordStrength/LoginPasswordStrength.stories.js +7 -1
  86. package/dist/components/molecules/LoginPasswordStrength/index.js +60 -38
  87. package/dist/components/molecules/ParentComponent/ParentComponent.stories.js +10 -2
  88. package/dist/components/molecules/ParentComponent/index.js +9 -5
  89. package/dist/components/molecules/PayMethod/PayMethod.stories.js +7 -1
  90. package/dist/components/molecules/PayMethod/index.js +38 -33
  91. package/dist/components/molecules/PlanSelection/PlanSelection.stories.js +7 -1
  92. package/dist/components/molecules/PlanSelection/index.js +14 -11
  93. package/dist/components/molecules/ProductNameHeader/ProductNameHeader.stories.js +7 -1
  94. package/dist/components/molecules/ProductNameHeader/index.js +18 -14
  95. package/dist/components/molecules/ProductNotification/ProductNotification.stories.js +7 -1
  96. package/dist/components/molecules/ProductNotification/index.js +12 -9
  97. package/dist/components/molecules/ProfileHeader/ProfileHeader.stories.js +5 -1
  98. package/dist/components/molecules/ProfileHeader/index.js +21 -15
  99. package/dist/components/molecules/SidebarNotification/SidebarNotification.stories.js +5 -1
  100. package/dist/components/molecules/SidebarNotification/index.js +43 -37
  101. package/dist/components/molecules/StatusAsignationInfo/StatusAsignationInfo.stories.js +7 -1
  102. package/dist/components/molecules/StatusAsignationInfo/index.js +86 -70
  103. package/dist/components/molecules/TableHeader/TableHeader.stories.js +7 -1
  104. package/dist/components/molecules/TableHeader/index.js +12 -8
  105. package/dist/components/molecules/TableRow/TableRow.stories.js +7 -1
  106. package/dist/components/molecules/TableRow/index.js +11 -7
  107. package/dist/components/molecules/TabsMenu/TabsMenu.stories.js +7 -1
  108. package/dist/components/molecules/TabsMenu/index.js +13 -10
  109. package/dist/components/molecules/TagAndInput/TagAndInput.stories.js +7 -1
  110. package/dist/components/molecules/TagAndInput/index.js +13 -11
  111. package/dist/components/organisms/FullProductNameHeader/FullProductNameHeader.stories.js +7 -1
  112. package/dist/components/organisms/FullProductNameHeader/index.js +20 -15
  113. package/dist/components/organisms/FullTabsMenu/FullTabsMenu.stories.js +7 -1
  114. package/dist/components/organisms/FullTabsMenu/index.js +14 -10
  115. package/dist/components/organisms/Fullplan/FullPlan.stories.js +7 -1
  116. package/dist/components/organisms/Fullplan/index.js +23 -15
  117. package/dist/components/organisms/ImageDataTable/ImageDataTable.stories.js +7 -1
  118. package/dist/components/organisms/ImageDataTable/index.js +15 -13
  119. package/dist/components/organisms/ImagePreviewer/ImagePreviewer.stories.js +7 -1
  120. package/dist/components/organisms/ImagePreviewer/index.js +12 -8
  121. package/dist/components/organisms/ImagesGroup/index.js +5 -1
  122. package/dist/components/organisms/InputGroup/InputGroup.stories.js +7 -1
  123. package/dist/components/organisms/InputGroup/index.js +27 -25
  124. package/dist/components/organisms/ProductImageModal/ProductImageModal.stories.js +7 -1
  125. package/dist/components/organisms/ProductImageModal/index.js +47 -38
  126. package/dist/components/pages/ChangePasswordLogin/ChangePasswordLogin.stories.js +5 -1
  127. package/dist/components/pages/ChangePasswordLogin/index.js +36 -33
  128. package/dist/components/pages/CustomerLogin/CustomerLogin.stories.js +52 -47
  129. package/dist/components/pages/CustomerLogin/index.js +18 -12
  130. package/dist/components/pages/CustomerPayMethod/CustomerPayMethod.stories.js +36 -28
  131. package/dist/components/pages/CustomerPayMethod/index.js +18 -12
  132. package/dist/components/pages/CustomerType/CustomerType.stories.js +21 -22
  133. package/dist/components/pages/CustomerType/index.js +18 -12
  134. package/dist/components/pages/EmailResetPassword/EmailResetPassword.stories.js +5 -1
  135. package/dist/components/pages/EmailResetPassword/index.js +49 -39
  136. package/dist/components/pages/OnboardPlan/OnboardPlan.stories.js +12 -9
  137. package/dist/components/pages/OnboardPlan/index.js +18 -12
  138. package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +5 -1
  139. package/dist/components/pages/RegistrationLoginFirstStep/index.js +155 -104
  140. package/dist/components/pages/RegistrationLoginSecondStep/RegistrationLoginSecondStep.stories.js +5 -1
  141. package/dist/components/pages/RegistrationLoginSecondStep/index.js +74 -63
  142. package/dist/components/pages/RegistrationLoginThirdStep/RegistrationLoginThirdStep.stories.js +5 -1
  143. package/dist/components/pages/RegistrationLoginThirdStep/index.js +79 -65
  144. package/dist/components/pages/RetailerPlan/RetailerPlan.stories.js +13 -10
  145. package/dist/components/pages/RetailerPlan/index.js +18 -12
  146. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +7 -1
  147. package/dist/components/pages/RetailerProductEdition/index.js +54 -49
  148. package/dist/components/pages/VerificationCodeResetPassword/VerificationCodeResetPassword.stories.js +5 -1
  149. package/dist/components/pages/VerificationCodeResetPassword/index.js +62 -51
  150. package/package.json +9 -2
  151. package/src/components/molecules/CarouselImagesLogin/index.js +34 -37
  152. package/src/components/molecules/Login/Login.stories.js +11 -0
  153. package/src/components/molecules/Login/index.js +57 -0
  154. package/src/components/molecules/Login/styles.js +73 -0
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.default = exports.PlanSelectionDefault = void 0;
7
9
 
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
8
12
  var _index = require("./index");
9
13
 
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
10
16
  var _default = {
11
17
  title: "Components/molecules/PlanSelection",
12
18
  component: _index.PlanSelection
@@ -14,7 +20,7 @@ var _default = {
14
20
  exports.default = _default;
15
21
 
16
22
  var Template = function Template(args) {
17
- return /*#__PURE__*/React.createElement(_index.PlanSelection, args);
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.PlanSelection, (0, _objectSpread2.default)({}, args));
18
24
  };
19
25
 
20
26
  var PlanSelectionDefault = Template.bind({});
@@ -9,6 +9,8 @@ var _styles = require("./styles");
9
9
 
10
10
  var _index = require("../../atoms/GeneralTextBox/index");
11
11
 
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+
12
14
  var PlanSelection = function PlanSelection(_ref) {
13
15
  var planSelection = _ref.planSelection,
14
16
  setbuttonActive = _ref.setbuttonActive;
@@ -22,17 +24,18 @@ var PlanSelection = function PlanSelection(_ref) {
22
24
  setbuttonActive(true);
23
25
  };
24
26
 
25
- return /*#__PURE__*/React.createElement(_styles.Container, null, planSelection === null || planSelection === void 0 ? void 0 : planSelection.map(function (plan, index) {
26
- return /*#__PURE__*/React.createElement(_index.GeneralTextBox, {
27
- className: "button-plan",
28
- onClick: function onClick(e) {
29
- return setActivePlan(e);
30
- },
31
- key: index,
32
- number: plan === null || plan === void 0 ? void 0 : plan.number,
33
- name: plan === null || plan === void 0 ? void 0 : plan.name
34
- });
35
- }));
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
28
+ children: planSelection === null || planSelection === void 0 ? void 0 : planSelection.map(function (plan, index) {
29
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GeneralTextBox, {
30
+ className: "button-plan",
31
+ onClick: function onClick(e) {
32
+ return setActivePlan(e);
33
+ },
34
+ number: plan === null || plan === void 0 ? void 0 : plan.number,
35
+ name: plan === null || plan === void 0 ? void 0 : plan.name
36
+ }, index);
37
+ })
38
+ });
36
39
  };
37
40
 
38
41
  exports.PlanSelection = PlanSelection;
@@ -1,14 +1,20 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.default = exports.ProductNameHeaderDefault = void 0;
7
9
 
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
8
12
  var _index = require("./index");
9
13
 
10
14
  var _variables = require("../../../global-files/variables");
11
15
 
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+
12
18
  var _default = {
13
19
  title: "Components/molecules/ProductNameHeader",
14
20
  component: _index.ProductNameHeader,
@@ -44,7 +50,7 @@ var _default = {
44
50
  exports.default = _default;
45
51
 
46
52
  var Template = function Template(args) {
47
- return /*#__PURE__*/React.createElement(_index.ProductNameHeader, args);
53
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProductNameHeader, (0, _objectSpread2.default)({}, args));
48
54
  };
49
55
 
50
56
  var ProductNameHeaderDefault = Template.bind({});
@@ -15,6 +15,8 @@ var _index3 = require("../../atoms/ProgressBar/index");
15
15
 
16
16
  var _index4 = require("../../atoms/PriorityFlag/index");
17
17
 
18
+ var _jsxRuntime = require("react/jsx-runtime");
19
+
18
20
  var ProductNameHeader = function ProductNameHeader(_ref) {
19
21
  var productName = _ref.productName,
20
22
  statusType = _ref.statusType,
@@ -22,20 +24,22 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
22
24
  backgroundColor = _ref.backgroundColor,
23
25
  priority = _ref.priority,
24
26
  date = _ref.date;
25
- return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement(_index.ScreenHeader, {
26
- headerType: "product-name-header",
27
- text: productName
28
- }), /*#__PURE__*/React.createElement(_index2.StatusTag, {
29
- statusType: statusType
30
- }), /*#__PURE__*/React.createElement(_index3.ProgressBar, {
31
- percent: percent,
32
- backgroundColor: backgroundColor
33
- }), /*#__PURE__*/React.createElement(_index4.PriorityFlag, {
34
- priority: priority
35
- }), /*#__PURE__*/React.createElement(_index.ScreenHeader, {
36
- headerType: "date-header",
37
- text: date
38
- }));
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
28
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
29
+ headerType: "product-name-header",
30
+ text: productName
31
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
32
+ statusType: statusType
33
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.ProgressBar, {
34
+ percent: percent,
35
+ backgroundColor: backgroundColor
36
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.PriorityFlag, {
37
+ priority: priority
38
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
39
+ headerType: "date-header",
40
+ text: date
41
+ })]
42
+ });
39
43
  };
40
44
 
41
45
  exports.ProductNameHeader = ProductNameHeader;
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.default = exports.ProductNotificationDefault = void 0;
7
9
 
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
8
12
  var _index = require("./index");
9
13
 
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
10
16
  var _default = {
11
17
  title: "Components/molecules/ProductNotification",
12
18
  component: _index.ProductNotification
@@ -14,7 +20,7 @@ var _default = {
14
20
  exports.default = _default;
15
21
 
16
22
  var Template = function Template(args) {
17
- return /*#__PURE__*/React.createElement(_index.ProductNotification, args);
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProductNotification, (0, _objectSpread2.default)({}, args));
18
24
  };
19
25
 
20
26
  var ProductNotificationDefault = Template.bind({});
@@ -19,6 +19,8 @@ var _MenuNotification = require("../../atoms/MenuNotification");
19
19
 
20
20
  var _productNotification = _interopRequireDefault(require("../../../assets/images/productNotification/productNotification.svg"));
21
21
 
22
+ var _jsxRuntime = require("react/jsx-runtime");
23
+
22
24
  var ProductNotification = function ProductNotification(_ref) {
23
25
  var notification = _ref.notification;
24
26
 
@@ -49,7 +51,7 @@ var ProductNotification = function ProductNotification(_ref) {
49
51
  notificationType: "productAssignation",
50
52
  label: "Agregaron comentario en producto 123"
51
53
  }];
52
- return /*#__PURE__*/React.createElement(_styles.Container, {
54
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
53
55
  onClick: function onClick(e) {
54
56
  e.stopPropagation();
55
57
  setShowMenu(!showMenu);
@@ -58,14 +60,15 @@ var ProductNotification = function ProductNotification(_ref) {
58
60
  document.removeEventListener("click", closeMenu, false);
59
61
  }
60
62
  },
61
- className: notification && "new-notification"
62
- }, /*#__PURE__*/React.createElement(_index.Avatar, {
63
- image: _productNotification.default,
64
- imageType: "big-image",
65
- altText: "Notification Picture"
66
- }), showMenu && /*#__PURE__*/React.createElement(_MenuNotification.MenuNotification, {
67
- content: content
68
- }));
63
+ className: notification && "new-notification",
64
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Avatar, {
65
+ image: _productNotification.default,
66
+ imageType: "big-image",
67
+ altText: "Notification Picture"
68
+ }), showMenu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuNotification.MenuNotification, {
69
+ content: content
70
+ })]
71
+ });
69
72
  };
70
73
 
71
74
  exports.ProductNotification = ProductNotification;
@@ -7,10 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = exports.ProfileHeaderDefault = void 0;
9
9
 
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
10
12
  var _index = require("./index");
11
13
 
12
14
  var _profilePicture = _interopRequireDefault(require("../../../assets/images/profileHeader/profilePicture.svg"));
13
15
 
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+
14
18
  var _default = {
15
19
  title: "Components/molecules/ProfileHeader",
16
20
  component: _index.ProfileHeader
@@ -18,7 +22,7 @@ var _default = {
18
22
  exports.default = _default;
19
23
 
20
24
  var Template = function Template(args) {
21
- return /*#__PURE__*/React.createElement(_index.ProfileHeader, args);
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProfileHeader, (0, _objectSpread2.default)({}, args));
22
26
  };
23
27
 
24
28
  var ProfileHeaderDefault = Template.bind({});
@@ -21,6 +21,8 @@ var _react = require("react");
21
21
 
22
22
  var _MenuProfile = require("../../atoms/MenuProfile");
23
23
 
24
+ var _jsxRuntime = require("react/jsx-runtime");
25
+
24
26
  var ProfileHeader = function ProfileHeader(_ref) {
25
27
  var customerProfileImg = _ref.customerProfileImg,
26
28
  customerName = _ref.customerName,
@@ -46,7 +48,7 @@ var ProfileHeader = function ProfileHeader(_ref) {
46
48
  var MenuInfo = {
47
49
  user: "Administrador"
48
50
  };
49
- return /*#__PURE__*/React.createElement(_styles.Container, {
51
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
50
52
  onClick: function onClick(e) {
51
53
  e.stopPropagation();
52
54
  setShowMenu(!showMenu);
@@ -54,20 +56,24 @@ var ProfileHeader = function ProfileHeader(_ref) {
54
56
  if (showMenu) {
55
57
  document.removeEventListener("click", closeMenu, false);
56
58
  }
57
- }
58
- }, /*#__PURE__*/React.createElement(_index2.Avatar, {
59
- image: customerProfileImg,
60
- imageType: "profile-image",
61
- altText: "Profile Picture"
62
- }), /*#__PURE__*/React.createElement("div", {
63
- className: "user-info"
64
- }, /*#__PURE__*/React.createElement(_index.ScreenHeader, {
65
- headerType: "retailer-name-header",
66
- text: customerName,
67
- color: _variables.GlobalColors.original_magenta
68
- }), customer && /*#__PURE__*/React.createElement("p", null, customer)), showMenu && /*#__PURE__*/React.createElement(_MenuProfile.MenuProfile, {
69
- user: MenuInfo.user
70
- }));
59
+ },
60
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Avatar, {
61
+ image: customerProfileImg,
62
+ imageType: "profile-image",
63
+ altText: "Profile Picture"
64
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
65
+ className: "user-info",
66
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
67
+ headerType: "retailer-name-header",
68
+ text: customerName,
69
+ color: _variables.GlobalColors.original_magenta
70
+ }), customer && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
71
+ children: customer
72
+ })]
73
+ }), showMenu && /*#__PURE__*/(0, _jsxRuntime.jsx)(_MenuProfile.MenuProfile, {
74
+ user: MenuInfo.user
75
+ })]
76
+ });
71
77
  };
72
78
 
73
79
  exports.ProfileHeader = ProfileHeader;
@@ -7,10 +7,14 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = exports.SidebarNotificationDefault = void 0;
9
9
 
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
10
12
  var _index = require("./index");
11
13
 
12
14
  var _defaultProfileImage = _interopRequireDefault(require("../../../assets/images/defaultImages/defaultProfileImage.svg"));
13
15
 
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+
14
18
  var _default = {
15
19
  title: "Components/molecules/SidebarNotification",
16
20
  component: _index.SidebarNotification,
@@ -31,7 +35,7 @@ var setShowSidebar = function setShowSidebar(value) {
31
35
  };
32
36
 
33
37
  var Template = function Template(args) {
34
- return /*#__PURE__*/React.createElement(_index.SidebarNotification, args);
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.SidebarNotification, (0, _objectSpread2.default)({}, args));
35
39
  };
36
40
 
37
41
  var SidebarNotificationDefault = Template.bind({});
@@ -23,6 +23,8 @@ var _Notification = require("../../atoms/Notification");
23
23
 
24
24
  var _react = require("react");
25
25
 
26
+ var _jsxRuntime = require("react/jsx-runtime");
27
+
26
28
  var SidebarNotification = function SidebarNotification(_ref) {
27
29
  var _ref$array = _ref.array,
28
30
  array = _ref$array === void 0 ? [] : _ref$array,
@@ -63,43 +65,47 @@ var SidebarNotification = function SidebarNotification(_ref) {
63
65
  return date;
64
66
  };
65
67
 
66
- return /*#__PURE__*/React.createElement(React.Fragment, null, showSidebar && /*#__PURE__*/React.createElement(_styles.Container, {
67
- id: "side-bar",
68
- ref: sidebar
69
- }, /*#__PURE__*/React.createElement("div", {
70
- className: "notification-header"
71
- }, /*#__PURE__*/React.createElement(_index2.Avatar, {
72
- image: _productNotification.default,
73
- imageType: "retailer-image",
74
- altText: "Notification Picture"
75
- }), /*#__PURE__*/React.createElement(_index.ScreenHeader, {
76
- headerType: "product-name-header",
77
- text: "Notificaciones",
78
- color: "#867586"
79
- }), /*#__PURE__*/React.createElement(_GeneralButton.Button, {
80
- buttonType: "close-button"
81
- })), /*#__PURE__*/React.createElement("div", {
82
- className: "scroll"
83
- }, array === null || array === void 0 ? void 0 : array.map(function (element, index) {
84
- var _element$notification;
85
-
86
- return /*#__PURE__*/React.createElement("div", {
87
- className: "date-notification",
88
- key: index + "-" + (element === null || element === void 0 ? void 0 : element.dates)
89
- }, /*#__PURE__*/React.createElement(_index.ScreenHeader, {
90
- headerType: "input-name-header",
91
- text: comparisonDate(element === null || element === void 0 ? void 0 : element.dates),
92
- color: "#6A5880",
93
- FontFamily: _variables.FontFamily.AvenirNext
94
- }), element === null || element === void 0 ? void 0 : (_element$notification = element.notifications) === null || _element$notification === void 0 ? void 0 : _element$notification.map(function (notification, index) {
95
- return /*#__PURE__*/React.createElement(_Notification.Notification, {
96
- key: index,
97
- profilePicture: notification === null || notification === void 0 ? void 0 : notification.profilePicture,
98
- notification: notification === null || notification === void 0 ? void 0 : notification.notification,
99
- newNotification: notification === null || notification === void 0 ? void 0 : notification.newNotification
100
- });
101
- }));
102
- }))), " ");
68
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
69
+ children: [showSidebar && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
70
+ id: "side-bar",
71
+ ref: sidebar,
72
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
73
+ className: "notification-header",
74
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Avatar, {
75
+ image: _productNotification.default,
76
+ imageType: "retailer-image",
77
+ altText: "Notification Picture"
78
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
79
+ headerType: "product-name-header",
80
+ text: "Notificaciones",
81
+ color: "#867586"
82
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
83
+ buttonType: "close-button"
84
+ })]
85
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
86
+ className: "scroll",
87
+ children: array === null || array === void 0 ? void 0 : array.map(function (element, index) {
88
+ var _element$notification;
89
+
90
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
91
+ className: "date-notification",
92
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
93
+ headerType: "input-name-header",
94
+ text: comparisonDate(element === null || element === void 0 ? void 0 : element.dates),
95
+ color: "#6A5880",
96
+ FontFamily: _variables.FontFamily.AvenirNext
97
+ }), element === null || element === void 0 ? void 0 : (_element$notification = element.notifications) === null || _element$notification === void 0 ? void 0 : _element$notification.map(function (notification, index) {
98
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Notification.Notification, {
99
+ profilePicture: notification === null || notification === void 0 ? void 0 : notification.profilePicture,
100
+ notification: notification === null || notification === void 0 ? void 0 : notification.notification,
101
+ newNotification: notification === null || notification === void 0 ? void 0 : notification.newNotification
102
+ }, index);
103
+ })]
104
+ }, index + "-" + (element === null || element === void 0 ? void 0 : element.dates));
105
+ })
106
+ })]
107
+ }), " "]
108
+ });
103
109
  };
104
110
 
105
111
  exports.SidebarNotification = SidebarNotification;
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+
3
5
  Object.defineProperty(exports, "__esModule", {
4
6
  value: true
5
7
  });
6
8
  exports.default = exports.StatusAsignationInfoDefault = void 0;
7
9
 
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
8
12
  var _index = require("./index");
9
13
 
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
10
16
  var _default = {
11
17
  title: "Components/molecules/StatusAsignationInfo",
12
18
  component: _index.StatusAsignationInfo
@@ -14,7 +20,7 @@ var _default = {
14
20
  exports.default = _default;
15
21
 
16
22
  var Template = function Template(args) {
17
- return /*#__PURE__*/React.createElement(_index.StatusAsignationInfo, args);
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.StatusAsignationInfo, (0, _objectSpread2.default)({}, args));
18
24
  };
19
25
 
20
26
  var StatusAsignationInfoDefault = Template.bind({});
@@ -23,6 +23,8 @@ var _react = require("react");
23
23
 
24
24
  var _index3 = require("../../atoms/AsignationOption/index");
25
25
 
26
+ var _jsxRuntime = require("react/jsx-runtime");
27
+
26
28
  var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
27
29
  var _ref$status = _ref.status,
28
30
  status = _ref$status === void 0 ? "-" : _ref$status,
@@ -59,76 +61,90 @@ var StatusAsignationInfo = function StatusAsignationInfo(_ref) {
59
61
  document.addEventListener("click", closeAsignations, false);
60
62
  }
61
63
  }, [showAsignationPanel]);
62
- return /*#__PURE__*/React.createElement(_styles.Container, {
63
- id: id
64
- }, imagesSection && /*#__PURE__*/React.createElement("div", {
65
- className: "images-buttons"
66
- }, /*#__PURE__*/React.createElement(_GeneralButton.Button, {
67
- buttonType: "circular-button save-button",
68
- onClick: function onClick() {
69
- saveImages && saveImages();
70
- }
71
- }), /*#__PURE__*/React.createElement(_GeneralButton.Button, {
72
- buttonType: "circular-button delete-button",
73
- onClick: function onClick() {
74
- deleteImages && deleteImages();
75
- }
76
- }), /*#__PURE__*/React.createElement(_GeneralButton.Button, {
77
- buttonType: layout ? "grid-layout" : "row-layout",
78
- onClick: function onClick() {
79
- setLayout(!layout);
80
- setImageLayout && setImageLayout(!layout);
81
- }
82
- })), /*#__PURE__*/React.createElement(_index2.StatusTag, {
83
- statusType: status,
84
- ovalForm: true
85
- }), /*#__PURE__*/React.createElement(_Avatar.Avatar, {
86
- imageType: "small-image",
87
- image: src,
88
- altText: "user profile image",
89
- onClick: function onClick() {
90
- setShowAsignationPanel(true);
91
- }
92
- }), /*#__PURE__*/React.createElement(_index.ScreenHeader, {
93
- text: "Asig.",
94
- color: "#969696",
95
- fontFamily: "Avenir Next",
96
- headerType: "input-name-header"
97
- }), showAsignationPanel && /*#__PURE__*/React.createElement("div", {
98
- className: "asignation-panel"
99
- }, /*#__PURE__*/React.createElement("div", {
100
- className: "asignation-header"
101
- }, /*#__PURE__*/React.createElement("div", {
102
- className: "asignation-status"
103
- }, /*#__PURE__*/React.createElement("p", null, "Estatus"), /*#__PURE__*/React.createElement(_index2.StatusTag, {
104
- statusType: status,
105
- ovalForm: true
106
- })), /*#__PURE__*/React.createElement("div", {
107
- className: "asignation-percent"
108
- }, /*#__PURE__*/React.createElement("p", null, "Estatus"), /*#__PURE__*/React.createElement("p", {
109
- className: "percent"
110
- }, percent, "%"))), /*#__PURE__*/React.createElement("div", {
111
- className: "asignations-list"
112
- }, asignationsList !== undefined ? asignationsList.map(function (asigantion, index) {
113
- return /*#__PURE__*/React.createElement(_index3.AsignationOption, {
114
- profileImage: asignation.image,
115
- asignationType: asignation.asignationType,
116
- name: asignation.name,
117
- team: asigantion.team
118
- });
119
- }) : /*#__PURE__*/React.createElement("p", {
120
- className: "no-asignations"
121
- }, "Sin personas para asignar")), /*#__PURE__*/React.createElement("div", {
122
- className: "default-asignations-list"
123
- }, /*#__PURE__*/React.createElement(_index3.AsignationOption, {
124
- asignationType: "provider",
125
- name: "Solicitar a",
126
- team: "Proveedor"
127
- }), /*#__PURE__*/React.createElement(_index3.AsignationOption, {
128
- asignationType: "team",
129
- name: "Solicitar a",
130
- team: "Content-oh!"
131
- }))));
64
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
65
+ id: id,
66
+ children: [imagesSection && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
67
+ className: "images-buttons",
68
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
69
+ buttonType: "circular-button save-button",
70
+ onClick: function onClick() {
71
+ saveImages && saveImages();
72
+ }
73
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
74
+ buttonType: "circular-button delete-button",
75
+ onClick: function onClick() {
76
+ deleteImages && deleteImages();
77
+ }
78
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
79
+ buttonType: layout ? "grid-layout" : "row-layout",
80
+ onClick: function onClick() {
81
+ setLayout(!layout);
82
+ setImageLayout && setImageLayout(!layout);
83
+ }
84
+ })]
85
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
86
+ statusType: status,
87
+ ovalForm: true
88
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
89
+ imageType: "small-image",
90
+ image: src,
91
+ altText: "user profile image",
92
+ onClick: function onClick() {
93
+ setShowAsignationPanel(true);
94
+ }
95
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
96
+ text: "Asig.",
97
+ color: "#969696",
98
+ fontFamily: "Avenir Next",
99
+ headerType: "input-name-header"
100
+ }), showAsignationPanel && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
101
+ className: "asignation-panel",
102
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
103
+ className: "asignation-header",
104
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
105
+ className: "asignation-status",
106
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
107
+ children: "Estatus"
108
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.StatusTag, {
109
+ statusType: status,
110
+ ovalForm: true
111
+ })]
112
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
113
+ className: "asignation-percent",
114
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
115
+ children: "Estatus"
116
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
117
+ className: "percent",
118
+ children: [percent, "%"]
119
+ })]
120
+ })]
121
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
122
+ className: "asignations-list",
123
+ children: asignationsList !== undefined ? asignationsList.map(function (asigantion, index) {
124
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.AsignationOption, {
125
+ profileImage: asignation.image,
126
+ asignationType: asignation.asignationType,
127
+ name: asignation.name,
128
+ team: asigantion.team
129
+ });
130
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
131
+ className: "no-asignations",
132
+ children: "Sin personas para asignar"
133
+ })
134
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
135
+ className: "default-asignations-list",
136
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.AsignationOption, {
137
+ asignationType: "provider",
138
+ name: "Solicitar a",
139
+ team: "Proveedor"
140
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.AsignationOption, {
141
+ asignationType: "team",
142
+ name: "Solicitar a",
143
+ team: "Content-oh!"
144
+ })]
145
+ })]
146
+ })]
147
+ });
132
148
  };
133
149
 
134
150
  exports.StatusAsignationInfo = StatusAsignationInfo;