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
@@ -13,24 +13,30 @@ var _ScreenHeader = require("../../atoms/ScreenHeader");
13
13
 
14
14
  var _bags = _interopRequireDefault(require("../../../assets/images/generalImage/bags.svg"));
15
15
 
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+
16
18
  var AddProvidersAndProducts = function AddProvidersAndProducts(_ref) {
17
19
  var image = _ref.image,
18
20
  altText = _ref.altText,
19
21
  onClick = _ref.onClick,
20
22
  className = _ref.className;
21
- return /*#__PURE__*/React.createElement(_styles.Container, {
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
22
24
  className: className,
23
- onClick: onClick
24
- }, /*#__PURE__*/React.createElement("div", {
25
- className: "add-bags"
26
- }, image && /*#__PURE__*/React.createElement("img", {
27
- src: image,
28
- alt: altText
29
- })), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
30
- headerType: "header-and-paragraph",
31
- text: "Comienza agregando Proveedores",
32
- Paragraph: "O tambien puedes comenzar agregando tu productos"
33
- })));
25
+ onClick: onClick,
26
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
27
+ className: "add-bags",
28
+ children: image && /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
29
+ src: image,
30
+ alt: altText
31
+ })
32
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
33
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
34
+ headerType: "header-and-paragraph",
35
+ text: "Comienza agregando Proveedores",
36
+ Paragraph: "O tambien puedes comenzar agregando tu productos"
37
+ })
38
+ })]
39
+ });
34
40
  };
35
41
 
36
42
  exports.AddProvidersAndProducts = AddProvidersAndProducts;
@@ -7,12 +7,16 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = exports.AssignedWorkDefault = 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 _assignedImage = _interopRequireDefault(require("../../../assets/images/componentAssigned/assignedImage1.svg"));
13
15
 
14
16
  var _assignedImage2 = _interopRequireDefault(require("../../../assets/images/componentAssigned/assignedImage2.svg"));
15
17
 
18
+ var _jsxRuntime = require("react/jsx-runtime");
19
+
16
20
  var status = ["-", "Pr", "Rc", "As", "P", "QF", "AF", "AA", "AP", "AC", "RA", "RF", "RP", "RC", "Ex"];
17
21
  var _default = {
18
22
  title: "Components/molecules/AssignedWork",
@@ -29,7 +33,7 @@ var _default = {
29
33
  exports.default = _default;
30
34
 
31
35
  var Template = function Template(args) {
32
- return /*#__PURE__*/React.createElement(_index.AssignedWork, args);
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.AssignedWork, (0, _objectSpread2.default)({}, args));
33
37
  };
34
38
 
35
39
  var AssignedWorkDefault = Template.bind({});
@@ -17,39 +17,45 @@ var _flag = _interopRequireDefault(require("../../../assets/images/componentAssi
17
17
 
18
18
  var _index2 = require("../../atoms/Avatar/index");
19
19
 
20
+ var _jsxRuntime = require("react/jsx-runtime");
21
+
20
22
  var AssignedWork = function AssignedWork(_ref) {
21
23
  var statusType = _ref.statusType,
22
24
  assignedImage = _ref.assignedImage;
23
- return /*#__PURE__*/React.createElement(_styles.Container, {
24
- className: "status-".concat(statusType)
25
- }, /*#__PURE__*/React.createElement("div", {
26
- className: "header-flag"
27
- }, /*#__PURE__*/React.createElement(_index.ScreenHeader, {
28
- headerType: "header-and-paragraph",
29
- text: "Producto recibido",
30
- Paragraph: "Actualizar producto 23441, descripci\xF3n e im\xE1genes"
31
- }), /*#__PURE__*/React.createElement("img", {
32
- className: "flag",
33
- src: _flag.default
34
- })), /*#__PURE__*/React.createElement("div", {
35
- className: "clock-assigned"
36
- }, /*#__PURE__*/React.createElement("div", {
37
- className: "clock-header"
38
- }, /*#__PURE__*/React.createElement("img", {
39
- className: "clock",
40
- src: _clock.default
41
- }), /*#__PURE__*/React.createElement(_index.ScreenHeader, {
42
- headerType: "date-header",
43
- text: "12/04/2021"
44
- })), /*#__PURE__*/React.createElement("div", {
45
- className: "assigned"
46
- }, assignedImage.reverse().map(function (assigned, index) {
47
- return index < 2 && /*#__PURE__*/React.createElement(_index2.Avatar, {
48
- key: index,
49
- image: assigned.image,
50
- imageType: "big-image"
51
- });
52
- }))));
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
26
+ className: "status-".concat(statusType),
27
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
28
+ className: "header-flag",
29
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
30
+ headerType: "header-and-paragraph",
31
+ text: "Producto recibido",
32
+ Paragraph: "Actualizar producto 23441, descripci\xF3n e im\xE1genes"
33
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
34
+ className: "flag",
35
+ src: _flag.default
36
+ })]
37
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
38
+ className: "clock-assigned",
39
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
40
+ className: "clock-header",
41
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
42
+ className: "clock",
43
+ src: _clock.default
44
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
45
+ headerType: "date-header",
46
+ text: "12/04/2021"
47
+ })]
48
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
49
+ className: "assigned",
50
+ children: assignedImage.reverse().map(function (assigned, index) {
51
+ return index < 2 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Avatar, {
52
+ image: assigned.image,
53
+ imageType: "big-image"
54
+ }, index);
55
+ })
56
+ })]
57
+ })]
58
+ });
53
59
  };
54
60
 
55
61
  exports.AssignedWork = AssignedWork;
@@ -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.AvatarAndValidationDefault = 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/AvatarAndValidation",
12
18
  component: _index.AvatarAndValidation
@@ -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.AvatarAndValidation, args);
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.AvatarAndValidation, (0, _objectSpread2.default)({}, args));
18
24
  };
19
25
 
20
26
  var AvatarAndValidationDefault = Template.bind({});
@@ -21,6 +21,8 @@ var _GeneralButton = require("../../atoms/GeneralButton");
21
21
 
22
22
  var _ValidationPanel = require("../../atoms/ValidationPanel");
23
23
 
24
+ var _jsxRuntime = require("react/jsx-runtime");
25
+
24
26
  //Components
25
27
  var AvatarAndValidation = function AvatarAndValidation(_ref) {
26
28
  var avatarData = _ref.avatarData,
@@ -48,21 +50,24 @@ var AvatarAndValidation = function AvatarAndValidation(_ref) {
48
50
  document.addEventListener("click", closeValidationPanel, false);
49
51
  }
50
52
  }, [showValidationPanel]);
51
- return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("div", {
52
- className: "buttons-container"
53
- }, /*#__PURE__*/React.createElement(_Avatar.Avatar, {
54
- image: avatarData === null || avatarData === void 0 ? void 0 : avatarData.image,
55
- altText: avatarData === null || avatarData === void 0 ? void 0 : avatarData.altText
56
- }), /*#__PURE__*/React.createElement(_DropDownButton.DropDownButton, null), /*#__PURE__*/React.createElement(_GeneralButton.Button, {
57
- buttonType: "circular-button ".concat(buttonType),
58
- onClick: function onClick() {
59
- return setShowValidationPanel(true);
60
- }
61
- })), showValidationPanel && /*#__PURE__*/React.createElement(_ValidationPanel.ValidationPanel, {
62
- id: "validation-panel",
63
- setOptionClicked: setButtonType,
64
- setShowValidationPanel: setShowValidationPanel
65
- }));
53
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
54
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
55
+ className: "buttons-container",
56
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
57
+ image: avatarData === null || avatarData === void 0 ? void 0 : avatarData.image,
58
+ altText: avatarData === null || avatarData === void 0 ? void 0 : avatarData.altText
59
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DropDownButton.DropDownButton, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
60
+ buttonType: "circular-button ".concat(buttonType),
61
+ onClick: function onClick() {
62
+ return setShowValidationPanel(true);
63
+ }
64
+ })]
65
+ }), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
66
+ id: "validation-panel",
67
+ setOptionClicked: setButtonType,
68
+ setShowValidationPanel: setShowValidationPanel
69
+ })]
70
+ });
66
71
  };
67
72
 
68
73
  exports.AvatarAndValidation = AvatarAndValidation;
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.default = exports.CarouselImagesLoginDefault = 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 _loginImage = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/loginImage.svg"));
@@ -15,6 +17,8 @@ var _login = _interopRequireDefault(require("../../../assets/images/carouselImag
15
17
 
16
18
  var _login2 = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login3.svg"));
17
19
 
20
+ var _jsxRuntime = require("react/jsx-runtime");
21
+
18
22
  var _default = {
19
23
  title: "Components/molecules/CarouselImagesLogin",
20
24
  component: _index.CarouselImagesLogin
@@ -22,7 +26,7 @@ var _default = {
22
26
  exports.default = _default;
23
27
 
24
28
  var Template = function Template(args) {
25
- return /*#__PURE__*/React.createElement(_index.CarouselImagesLogin, args);
29
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.CarouselImagesLogin, (0, _objectSpread2.default)({}, args));
26
30
  };
27
31
 
28
32
  var CarouselImagesLoginDefault = Template.bind({});
@@ -13,6 +13,8 @@ var _variables = require("../../../global-files/variables");
13
13
 
14
14
  var _react = require("react");
15
15
 
16
+ var _jsxRuntime = require("react/jsx-runtime");
17
+
16
18
  var CarouselImagesLogin = function CarouselImagesLogin(_ref) {
17
19
  var _ref$panelImg = _ref.panelImg,
18
20
  panelImg = _ref$panelImg === void 0 ? [] : _ref$panelImg,
@@ -20,71 +22,71 @@ var CarouselImagesLogin = function CarouselImagesLogin(_ref) {
20
22
  panelColor = _ref.panelColor;
21
23
 
22
24
  var carouselStart = function carouselStart() {
23
- addEventListener("DOMContentLoaded", function () {
24
- var images = panelImg;
25
- var i = 1;
26
- var img1 = document.querySelector("#img1");
27
- var img2 = document.querySelector("#img2");
28
- var divIndicadores = document.querySelector("#indicadores");
29
-
30
- for (var index = 0; index < images.length; index++) {
31
- var div = document.createElement("div");
32
- div.classList.add("circles");
33
- div.id = index;
34
- divIndicadores.appendChild(div);
25
+ var images = panelImg;
26
+ var i = 1;
27
+ var img1 = document.querySelector("#img1");
28
+ var img2 = document.querySelector("#img2");
29
+ var divIndicadores = document.querySelector("#indicadores");
30
+
31
+ for (var index = 0; index < images.length; index++) {
32
+ var div = document.createElement("div");
33
+ div.classList.add("circles");
34
+ div.id = index;
35
+ divIndicadores.appendChild(div);
36
+ }
37
+
38
+ img1.src = images[0];
39
+ var circulos = document.querySelectorAll(".circles");
40
+ circulos[0].classList.add("resaltado");
41
+
42
+ var slideshow = function slideshow() {
43
+ img2.src = images[i];
44
+ var circulo_actual = Array.from(circulos).find(function (el) {
45
+ return el.id == i;
46
+ });
47
+ Array.from(circulos).forEach(function (cir) {
48
+ return cir.classList.remove("resaltado");
49
+ });
50
+ circulo_actual.classList.add("resaltado");
51
+ img1.classList.add("right");
52
+ img2.classList.add("active");
53
+ i++;
54
+
55
+ if (i == images.length) {
56
+ i = 0;
35
57
  }
36
58
 
37
- img1.src = images[0];
38
- var circulos = document.querySelectorAll(".circles");
39
- circulos[0].classList.add("resaltado");
40
-
41
- var slideshow = function slideshow() {
42
- img2.src = images[i];
43
- var circulo_actual = Array.from(circulos).find(function (el) {
44
- return el.id == i;
45
- });
46
- Array.from(circulos).forEach(function (cir) {
47
- return cir.classList.remove("resaltado");
48
- });
49
- circulo_actual.classList.add("resaltado");
50
- img1.classList.add("right");
51
- img2.classList.add("active");
52
- i++;
53
-
54
- if (i == images.length) {
55
- i = 0;
56
- }
57
-
58
- setTimeout(function () {
59
- img1.src = img2.src;
60
- img2.classList.remove("active");
61
- img1.classList.remove("right");
62
- }, 1000);
63
- };
64
-
65
- setInterval(slideshow, 4000);
66
- });
59
+ setTimeout(function () {
60
+ img1.src = img2.src;
61
+ img2.classList.remove("active");
62
+ img1.classList.remove("right");
63
+ }, 1000);
64
+ };
65
+
66
+ setInterval(slideshow, 4000);
67
67
  };
68
68
 
69
69
  (0, _react.useEffect)(function () {
70
70
  carouselStart();
71
71
  }, []);
72
- return /*#__PURE__*/React.createElement(_styles.Container, {
73
- panelColor: panelColor
74
- }, /*#__PURE__*/React.createElement("div", {
75
- id: "slideshow"
76
- }, /*#__PURE__*/React.createElement("img", {
77
- id: "img1"
78
- }), /*#__PURE__*/React.createElement("img", {
79
- id: "img2"
80
- })), /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
81
- fontFamily: _variables.FontFamily.Raleway,
82
- color: _variables.GlobalColors.white,
83
- headerType: "product-name-header",
84
- text: panelText
85
- }), /*#__PURE__*/React.createElement("div", {
86
- id: "indicadores"
87
- }));
72
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
73
+ panelColor: panelColor,
74
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
75
+ id: "slideshow",
76
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
77
+ id: "img1"
78
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
79
+ id: "img2"
80
+ })]
81
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
82
+ fontFamily: _variables.FontFamily.Raleway,
83
+ color: _variables.GlobalColors.white,
84
+ headerType: "product-name-header",
85
+ text: panelText
86
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
87
+ id: "indicadores"
88
+ })]
89
+ });
88
90
  };
89
91
 
90
92
  exports.CarouselImagesLogin = CarouselImagesLogin;
@@ -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.EditionActiveImageDefault = void 0;
7
9
 
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
8
12
  var _ = require(".");
9
13
 
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
10
16
  var _default = {
11
17
  title: "Components/molecules/EditionActiveImage",
12
18
  component: _.EditionActiveImage
@@ -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(_.EditionActiveImage, args);
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.EditionActiveImage, (0, _objectSpread2.default)({}, args));
18
24
  };
19
25
 
20
26
  var EditionActiveImageDefault = Template.bind({});
@@ -11,20 +11,24 @@ var _index = require("../../atoms/ProductImage/index");
11
11
 
12
12
  var _index2 = require("../../atoms/GeneralButton/index");
13
13
 
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
14
16
  var EditionActiveImage = function EditionActiveImage(_ref) {
15
17
  var img = _ref.img,
16
18
  altText = _ref.altText,
17
19
  setShowModal = _ref.setShowModal;
18
- return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement(_index.ProductImage, {
19
- img: img,
20
- imageType: "main-image",
21
- altText: altText
22
- }), /*#__PURE__*/React.createElement(_index2.Button, {
23
- buttonType: "open-modal-button",
24
- onClick: function onClick() {
25
- return setShowModal(true);
26
- }
27
- }));
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
21
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProductImage, {
22
+ img: img,
23
+ imageType: "main-image",
24
+ altText: altText
25
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Button, {
26
+ buttonType: "open-modal-button",
27
+ onClick: function onClick() {
28
+ return setShowModal(true);
29
+ }
30
+ })]
31
+ });
28
32
  };
29
33
 
30
34
  exports.EditionActiveImage = EditionActiveImage;
@@ -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.FeaturesBarDefault = void 0;
7
9
 
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
8
12
  var _ = require(".");
9
13
 
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
10
16
  var _default = {
11
17
  title: "Components/molecules/FeaturesBar",
12
18
  component: _.FeaturesBar
@@ -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(_.FeaturesBar, args);
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_.FeaturesBar, (0, _objectSpread2.default)({}, args));
18
24
  };
19
25
 
20
26
  var FeaturesBarDefault = Template.bind({});
@@ -15,6 +15,8 @@ var _index = require("../../atoms/FeatureTag/index");
15
15
 
16
16
  var _react = require("react");
17
17
 
18
+ var _jsxRuntime = require("react/jsx-runtime");
19
+
18
20
  var FeaturesBar = function FeaturesBar(_ref) {
19
21
  var features = _ref.features;
20
22
 
@@ -28,15 +30,15 @@ var FeaturesBar = function FeaturesBar(_ref) {
28
30
 
29
31
  setIsIE(((_window$navigator$use = window.navigator.userAgentString) === null || _window$navigator$use === void 0 ? void 0 : _window$navigator$use.indexOf("MSIE")) > -1 || ((_window$navigator$use2 = window.navigator.userAgentString) === null || _window$navigator$use2 === void 0 ? void 0 : _window$navigator$use2.indexOf("rv:")) > -1);
30
32
  }, []);
31
- return /*#__PURE__*/React.createElement(_styles.Container, {
32
- className: isIE ? "IEClass" : "gapClass"
33
- }, features !== undefined && features.map(function (feature, index) {
34
- return /*#__PURE__*/React.createElement(_index.FeatureTag, {
35
- key: index,
36
- feature: feature.feature,
37
- value: feature.value
38
- });
39
- }));
33
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
34
+ className: isIE ? "IEClass" : "gapClass",
35
+ children: features !== undefined && features.map(function (feature, index) {
36
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.FeatureTag, {
37
+ feature: feature.feature,
38
+ value: feature.value
39
+ }, index);
40
+ })
41
+ });
40
42
  };
41
43
 
42
44
  exports.FeaturesBar = FeaturesBar;
@@ -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.GalleryElementDefault = 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/GalleryElement",
12
18
  component: _index.GalleryElement,
@@ -20,7 +26,7 @@ var _default = {
20
26
  exports.default = _default;
21
27
 
22
28
  var Template = function Template(args) {
23
- return /*#__PURE__*/React.createElement(_index.GalleryElement, args);
29
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.GalleryElement, (0, _objectSpread2.default)({}, args));
24
30
  };
25
31
 
26
32
  var GalleryElementDefault = Template.bind({});
@@ -23,6 +23,8 @@ var _ValidationPanel = require("../../atoms/ValidationPanel");
23
23
 
24
24
  var _react = require("react");
25
25
 
26
+ var _jsxRuntime = require("react/jsx-runtime");
27
+
26
28
  var GalleryElement = function GalleryElement(_ref) {
27
29
  var _ref$validation = _ref.validation,
28
30
  validation = _ref$validation === void 0 ? "null-button" : _ref$validation,
@@ -55,35 +57,41 @@ var GalleryElement = function GalleryElement(_ref) {
55
57
  document.addEventListener("click", closeValidationPanel, false);
56
58
  }
57
59
  }, [showValidationPanel]);
58
- return /*#__PURE__*/React.createElement(_styles.Container, {
59
- className: gridLayout ? "grid-gallery" : "row-gallery"
60
- }, /*#__PURE__*/React.createElement("div", {
61
- className: "buttons-container"
62
- }, /*#__PURE__*/React.createElement(_CheckBox.CheckBox, (0, _defineProperty2.default)({
63
- id: id,
64
- label: id
65
- }, "label", label)), /*#__PURE__*/React.createElement(_GeneralButton.Button, {
66
- buttonType: "circular-button ".concat(statusValidation),
67
- onClick: function onClick() {
68
- return setShowValidationPanel(true);
69
- }
70
- }), showValidationPanel && /*#__PURE__*/React.createElement(_ValidationPanel.ValidationPanel, {
71
- id: "validation-panel",
72
- setOptionClicked: setStatusValidation,
73
- setShowValidationPanel: setShowValidationPanel
74
- })), /*#__PURE__*/React.createElement("div", {
75
- className: "image-container"
76
- }, /*#__PURE__*/React.createElement(_ProductImage.ProductImage, {
77
- img: image === null || image === void 0 ? void 0 : image.src,
78
- altText: image === null || image === void 0 ? void 0 : image.altText,
79
- imageType: gridLayout ? "catalogue-image-big-size" : "catalogue-image-small-size"
80
- }), /*#__PURE__*/React.createElement("div", {
81
- className: "information-container"
82
- }, /*#__PURE__*/React.createElement("p", null, image === null || image === void 0 ? void 0 : image.name), !gridLayout && (image === null || image === void 0 ? void 0 : image.data.map(function (element, index) {
83
- return index > 0 && /*#__PURE__*/React.createElement("p", {
84
- key: index
85
- }, element.value);
86
- })))));
60
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
61
+ className: gridLayout ? "grid-gallery" : "row-gallery",
62
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
63
+ className: "buttons-container",
64
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, (0, _defineProperty2.default)({
65
+ id: id,
66
+ label: id
67
+ }, "label", label)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
68
+ buttonType: "circular-button ".concat(statusValidation),
69
+ onClick: function onClick() {
70
+ return setShowValidationPanel(true);
71
+ }
72
+ }), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
73
+ id: "validation-panel",
74
+ setOptionClicked: setStatusValidation,
75
+ setShowValidationPanel: setShowValidationPanel
76
+ })]
77
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
78
+ className: "image-container",
79
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductImage.ProductImage, {
80
+ img: image === null || image === void 0 ? void 0 : image.src,
81
+ altText: image === null || image === void 0 ? void 0 : image.altText,
82
+ imageType: gridLayout ? "catalogue-image-big-size" : "catalogue-image-small-size"
83
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
84
+ className: "information-container",
85
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
86
+ children: image === null || image === void 0 ? void 0 : image.name
87
+ }), !gridLayout && (image === null || image === void 0 ? void 0 : image.data.map(function (element, index) {
88
+ return index > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
89
+ children: element.value
90
+ }, index);
91
+ }))]
92
+ })]
93
+ })]
94
+ });
87
95
  };
88
96
 
89
97
  exports.GalleryElement = GalleryElement;