contentoh-components-library 21.0.31 → 21.0.34

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 (213) hide show
  1. package/.env.development +5 -16
  2. package/.env.production +3 -14
  3. package/CHANGELOG.md +33 -31
  4. package/dist/assets/images/carouselImagesLogin/login2.svg +117 -0
  5. package/dist/assets/images/carouselImagesLogin/login3.svg +147 -0
  6. package/dist/assets/images/carouselImagesLogin/loginImage.svg +301 -0
  7. package/dist/components/atoms/AsignationOption/index.js +5 -9
  8. package/dist/components/atoms/AsignationOption/styles.js +1 -1
  9. package/dist/components/atoms/CheckBox/index.js +2 -4
  10. package/dist/components/atoms/GeneralButton/index.js +0 -5
  11. package/dist/components/atoms/GeneralButton/styles.js +2 -4
  12. package/dist/components/atoms/GeneralInput/index.js +24 -73
  13. package/dist/components/atoms/GeneralInput/styles.js +1 -7
  14. package/dist/components/atoms/GenericModal/index.js +2 -4
  15. package/dist/components/atoms/GenericModal/styles.js +1 -1
  16. package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
  17. package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
  18. package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
  19. package/dist/components/atoms/Loading/Loading.stories.js +28 -0
  20. package/dist/components/atoms/Loading/index.js +2 -1
  21. package/dist/components/atoms/Loading/styles.js +4 -8
  22. package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
  23. package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
  24. package/dist/components/{molecules/RetailerSelector → atoms/MenuCommercialRetailers}/styles.js +1 -1
  25. package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
  26. package/dist/components/atoms/MenuProductImage/index.js +88 -0
  27. package/dist/components/atoms/MenuProductImage/styles.js +20 -0
  28. package/dist/components/atoms/PriorityFlag/index.js +1 -1
  29. package/dist/components/atoms/ProductImage/styles.js +1 -1
  30. package/dist/components/atoms/ProgressBar/index.js +2 -2
  31. package/dist/components/atoms/ProgressBar/styles.js +5 -3
  32. package/dist/components/atoms/ScreenHeader/index.js +1 -1
  33. package/dist/components/atoms/ScreenHeader/styles.js +1 -1
  34. package/dist/components/atoms/StatusTag/index.js +2 -37
  35. package/dist/components/atoms/StatusTag/styles.js +1 -1
  36. package/dist/components/atoms/ValidationPanel/index.js +3 -4
  37. package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +22 -0
  38. package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -0
  39. package/dist/components/atoms/{Commentary → VerticalSideMenuMainPage}/styles.js +1 -6
  40. package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
  41. package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
  42. package/dist/components/{atoms/CharCounter → molecules/ApproveRejetPanel}/styles.js +1 -3
  43. package/dist/components/molecules/AvatarAndValidation/index.js +7 -17
  44. package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
  45. package/dist/components/molecules/CarouselImagesLogin/index.js +40 -42
  46. package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +28 -0
  47. package/dist/components/molecules/EmailResetPasswordLogin/index.js +155 -0
  48. package/dist/components/molecules/EmailResetPasswordLogin/styles.js +20 -0
  49. package/dist/components/molecules/FeaturesBar/index.js +1 -1
  50. package/dist/components/molecules/GalleryElement/index.js +21 -80
  51. package/dist/components/molecules/GalleryElement/styles.js +1 -1
  52. package/dist/components/molecules/GalleryHeader/index.js +6 -28
  53. package/dist/components/molecules/GalleryHeader/styles.js +1 -1
  54. package/dist/components/molecules/ImageSelector/index.js +4 -2
  55. package/dist/components/molecules/ProductNameHeader/index.js +2 -1
  56. package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +28 -0
  57. package/dist/components/molecules/RegistrationFirstStep/index.js +336 -0
  58. package/dist/components/molecules/RegistrationFirstStep/styles.js +20 -0
  59. package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +28 -0
  60. package/dist/components/molecules/RegistrationSecondStep/index.js +156 -0
  61. package/dist/components/molecules/RegistrationSecondStep/styles.js +20 -0
  62. package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +28 -0
  63. package/dist/components/molecules/RegistrationThirdStep/index.js +161 -0
  64. package/dist/components/molecules/RegistrationThirdStep/styles.js +20 -0
  65. package/dist/components/{atoms/CharCounter/CharCounter.stories.js → molecules/SignInLogin/SignInLogin.stories.js} +7 -10
  66. package/dist/components/molecules/SignInLogin/index.js +292 -0
  67. package/dist/components/molecules/SignInLogin/styles.js +20 -0
  68. package/dist/components/molecules/StatusAsignationInfo/index.js +25 -46
  69. package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
  70. package/dist/components/molecules/TableHeader/index.js +5 -12
  71. package/dist/components/molecules/TableHeader/styles.js +1 -1
  72. package/dist/components/molecules/TagAndInput/index.js +2 -26
  73. package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
  74. package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +104 -0
  75. package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +20 -0
  76. package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +69 -0
  77. package/dist/components/{atoms/InputFormatter/Wysiwyg.stories.js → organisms/ChangePassword/ChangePassword.stories.js} +7 -9
  78. package/dist/components/organisms/ChangePassword/index.js +113 -0
  79. package/dist/components/organisms/ChangePassword/styles.js +18 -0
  80. package/dist/components/organisms/FullProductNameHeader/index.js +8 -32
  81. package/dist/components/organisms/FullTabsMenu/index.js +5 -18
  82. package/dist/components/organisms/ImageDataTable/index.js +14 -90
  83. package/dist/components/organisms/InputGroup/index.js +13 -34
  84. package/dist/components/organisms/InputGroup/styles.js +1 -1
  85. package/dist/components/organisms/ProductImageModal/index.js +11 -15
  86. package/dist/components/organisms/ProductImageModal/styles.js +1 -1
  87. package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +347 -109
  88. package/dist/components/pages/RetailerProductEdition/index.js +59 -1589
  89. package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
  90. package/dist/global-files/data.js +53 -212
  91. package/dist/global-files/global-styles.css +0 -1
  92. package/dist/global-files/variables.js +0 -1
  93. package/dist/index.js +260 -31
  94. package/package.json +14 -12
  95. package/src/components/atoms/AsignationOption/index.js +5 -7
  96. package/src/components/atoms/AsignationOption/styles.js +1 -9
  97. package/src/components/atoms/CheckBox/index.js +2 -8
  98. package/src/components/atoms/GeneralButton/index.js +2 -9
  99. package/src/components/atoms/GeneralButton/styles.js +0 -23
  100. package/src/components/atoms/GeneralInput/index.js +21 -71
  101. package/src/components/atoms/GeneralInput/styles.js +1 -11
  102. package/src/components/atoms/GenericModal/index.js +2 -2
  103. package/src/components/atoms/GenericModal/styles.js +2 -10
  104. package/src/components/atoms/Loading/Loading.stories.js +10 -0
  105. package/src/components/atoms/Loading/index.js +5 -4
  106. package/src/components/atoms/Loading/styles.js +43 -43
  107. package/src/components/atoms/PriorityFlag/index.js +1 -1
  108. package/src/components/atoms/ProductImage/styles.js +1 -1
  109. package/src/components/atoms/ProgressBar/index.js +2 -2
  110. package/src/components/atoms/ProgressBar/styles.js +3 -54
  111. package/src/components/atoms/ScreenHeader/index.js +3 -7
  112. package/src/components/atoms/ScreenHeader/styles.js +2 -9
  113. package/src/components/atoms/StatusTag/index.js +2 -30
  114. package/src/components/atoms/StatusTag/styles.js +3 -15
  115. package/src/components/atoms/ValidationPanel/index.js +3 -3
  116. package/src/components/molecules/AvatarAndValidation/index.js +6 -24
  117. package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
  118. package/src/components/molecules/CarouselImagesLogin/index.js +34 -37
  119. package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +11 -0
  120. package/src/components/molecules/EmailResetPasswordLogin/index.js +86 -0
  121. package/src/components/molecules/EmailResetPasswordLogin/styles.js +23 -0
  122. package/src/components/molecules/FeaturesBar/index.js +7 -10
  123. package/src/components/molecules/GalleryElement/index.js +36 -75
  124. package/src/components/molecules/GalleryElement/styles.js +11 -38
  125. package/src/components/molecules/GalleryHeader/index.js +8 -14
  126. package/src/components/molecules/GalleryHeader/styles.js +0 -16
  127. package/src/components/molecules/ImageSelector/index.js +3 -2
  128. package/src/components/molecules/ProductNameHeader/index.js +2 -1
  129. package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +11 -0
  130. package/src/components/molecules/RegistrationFirstStep/index.js +242 -0
  131. package/src/components/molecules/RegistrationFirstStep/styles.js +81 -0
  132. package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +11 -0
  133. package/src/components/molecules/RegistrationSecondStep/index.js +97 -0
  134. package/src/components/molecules/RegistrationSecondStep/styles.js +59 -0
  135. package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +11 -0
  136. package/src/components/molecules/RegistrationThirdStep/index.js +109 -0
  137. package/src/components/molecules/RegistrationThirdStep/styles.js +44 -0
  138. package/src/components/molecules/SignInLogin/SignInLogin.stories.js +11 -0
  139. package/src/components/molecules/SignInLogin/index.js +206 -0
  140. package/src/components/molecules/SignInLogin/styles.js +78 -0
  141. package/src/components/molecules/StatusAsignationInfo/index.js +38 -62
  142. package/src/components/molecules/StatusAsignationInfo/styles.js +2 -12
  143. package/src/components/molecules/TableHeader/index.js +3 -16
  144. package/src/components/molecules/TableHeader/styles.js +0 -5
  145. package/src/components/molecules/TagAndInput/index.js +0 -24
  146. package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
  147. package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +78 -0
  148. package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +49 -0
  149. package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +56 -0
  150. package/src/components/organisms/ChangePassword/ChangePassword.stories.js +11 -0
  151. package/src/components/organisms/ChangePassword/index.js +63 -0
  152. package/src/components/organisms/ChangePassword/styles.js +16 -0
  153. package/src/components/organisms/FullProductNameHeader/index.js +7 -28
  154. package/src/components/organisms/FullTabsMenu/index.js +3 -15
  155. package/src/components/organisms/ImageDataTable/index.js +11 -89
  156. package/src/components/organisms/InputGroup/index.js +11 -46
  157. package/src/components/organisms/InputGroup/styles.js +0 -3
  158. package/src/components/organisms/ProductImageModal/index.js +12 -20
  159. package/src/components/organisms/ProductImageModal/styles.js +0 -3
  160. package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +343 -117
  161. package/src/components/pages/RetailerProductEdition/index.js +46 -1225
  162. package/src/components/pages/RetailerProductEdition/styles.js +4 -67
  163. package/src/global-files/data.js +57 -156
  164. package/src/global-files/global-styles.css +0 -1
  165. package/src/global-files/variables.js +0 -1
  166. package/src/index.js +33 -1
  167. package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
  168. package/dist/assets/images/modalsSVGs/attributesSent.svg +0 -208
  169. package/dist/assets/images/modalsSVGs/descriptionSent.svg +0 -237
  170. package/dist/assets/images/modalsSVGs/providerSent.svg +0 -445
  171. package/dist/assets/images/modalsSVGs/uploadingImages.svg +0 -148
  172. package/dist/components/atoms/CharCounter/index.js +0 -22
  173. package/dist/components/atoms/Commentary/Commentary.stories.js +0 -1
  174. package/dist/components/atoms/Commentary/index.js +0 -23
  175. package/dist/components/atoms/Input/index.js +0 -26
  176. package/dist/components/atoms/Input/style.js +0 -26
  177. package/dist/components/atoms/InputFormatter/index.js +0 -185
  178. package/dist/components/atoms/InputFormatter/styles.js +0 -33
  179. package/dist/components/atoms/LabelToInput/index.js +0 -53
  180. package/dist/components/atoms/LabelToInput/style.js +0 -22
  181. package/dist/components/atoms/Percent/Percent.stories.js +0 -39
  182. package/dist/components/atoms/Percent/index.js +0 -39
  183. package/dist/components/atoms/Percent/styles.js +0 -20
  184. package/dist/components/atoms/Select/index.js +0 -39
  185. package/dist/components/atoms/Select/style.js +0 -32
  186. package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -48
  187. package/dist/components/molecules/RetailerSelector/index.js +0 -74
  188. package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
  189. package/dist/components/molecules/TextAndGradient/index.js +0 -36
  190. package/dist/components/molecules/TextAndGradient/styles.js +0 -18
  191. package/src/assets/images/generalButton/downloadIcon.svg +0 -3
  192. package/src/assets/images/modalsSVGs/attributesSent.svg +0 -208
  193. package/src/assets/images/modalsSVGs/descriptionSent.svg +0 -237
  194. package/src/assets/images/modalsSVGs/providerSent.svg +0 -445
  195. package/src/assets/images/modalsSVGs/uploadingImages.svg +0 -148
  196. package/src/components/atoms/CharCounter/CharCounter.stories.js +0 -11
  197. package/src/components/atoms/CharCounter/index.js +0 -13
  198. package/src/components/atoms/CharCounter/styles.js +0 -10
  199. package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
  200. package/src/components/atoms/Commentary/index.js +0 -9
  201. package/src/components/atoms/Commentary/styles.js +0 -16
  202. package/src/components/atoms/Input/index.js +0 -15
  203. package/src/components/atoms/Input/style.js +0 -31
  204. package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +0 -12
  205. package/src/components/atoms/InputFormatter/index.js +0 -141
  206. package/src/components/atoms/InputFormatter/styles.js +0 -40
  207. package/src/components/atoms/LabelToInput/index.js +0 -26
  208. package/src/components/atoms/LabelToInput/style.js +0 -41
  209. package/src/components/atoms/Select/index.js +0 -35
  210. package/src/components/atoms/Select/style.js +0 -76
  211. package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -35
  212. package/src/components/molecules/RetailerSelector/index.js +0 -63
  213. package/src/components/molecules/RetailerSelector/styles.js +0 -18
@@ -7,6 +7,8 @@ Object.defineProperty(exports, "__esModule", {
7
7
  });
8
8
  exports.GalleryElement = void 0;
9
9
 
10
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/defineProperty"));
11
+
10
12
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
11
13
 
12
14
  var _styles = require("./styles");
@@ -21,8 +23,6 @@ var _ValidationPanel = require("../../atoms/ValidationPanel");
21
23
 
22
24
  var _react = require("react");
23
25
 
24
- var _Select = _interopRequireDefault(require("../../atoms/Select"));
25
-
26
26
  var _jsxRuntime = require("react/jsx-runtime");
27
27
 
28
28
  var GalleryElement = function GalleryElement(_ref) {
@@ -33,15 +33,7 @@ var GalleryElement = function GalleryElement(_ref) {
33
33
  gridLayout = _ref$gridLayout === void 0 ? false : _ref$gridLayout,
34
34
  _ref$id = _ref.id,
35
35
  id = _ref$id === void 0 ? "chk-default" : _ref$id,
36
- label = _ref.label,
37
- index = _ref.index,
38
- imageInputs = _ref.imageInputs,
39
- imageType = _ref.imageType,
40
- imagePackagingType = _ref.imagePackagingType,
41
- changeImage = _ref.changeImage,
42
- selectedImages = _ref.selectedImages,
43
- setSelectedImages = _ref.setSelectedImages,
44
- setCheckAll = _ref.setCheckAll;
36
+ label = _ref.label;
45
37
 
46
38
  var _useState = (0, _react.useState)(validation),
47
39
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
@@ -60,22 +52,6 @@ var GalleryElement = function GalleryElement(_ref) {
60
52
  }
61
53
  };
62
54
 
63
- var checkOnChange = function checkOnChange(e) {
64
- var chkGlobal = document.getElementById("check-all-images");
65
- var checkboxList = document.querySelectorAll("[id^='gallery-element-']");
66
- var temp = selectedImages.slice();
67
- e.target.checked ? temp.push(image) : temp = temp.filter(function (img) {
68
- return image.id !== img.id;
69
- });
70
- var counter = 0;
71
- checkboxList === null || checkboxList === void 0 ? void 0 : checkboxList.forEach(function (chk) {
72
- return chk.checked && counter++;
73
- });
74
- chkGlobal.checked = checkboxList.length === counter;
75
- setCheckAll(checkboxList.length === counter);
76
- setSelectedImages(temp);
77
- };
78
-
79
55
  (0, _react.useEffect)(function () {
80
56
  if (showValidationPanel) {
81
57
  document.addEventListener("click", closeValidationPanel, false);
@@ -83,71 +59,36 @@ var GalleryElement = function GalleryElement(_ref) {
83
59
  }, [showValidationPanel]);
84
60
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
85
61
  className: gridLayout ? "grid-gallery" : "row-gallery",
86
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
62
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
87
63
  className: "buttons-container",
88
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, {
64
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, (0, _defineProperty2.default)({
89
65
  id: id,
90
- label: label,
91
- onChange: function onChange(e) {
92
- return checkOnChange(e);
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);
93
71
  }
94
- })
72
+ }), showValidationPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ValidationPanel.ValidationPanel, {
73
+ id: "validation-panel",
74
+ setOptionClicked: setStatusValidation,
75
+ setShowValidationPanel: setShowValidationPanel
76
+ })]
95
77
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
96
78
  className: "image-container",
97
79
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ProductImage.ProductImage, {
98
80
  img: image === null || image === void 0 ? void 0 : image.src,
99
81
  altText: image === null || image === void 0 ? void 0 : image.altText,
100
- imageType: "catalogue-image-".concat(gridLayout ? "big" : "small", "-size")
82
+ imageType: gridLayout ? "catalogue-image-big-size" : "catalogue-image-small-size"
101
83
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
102
84
  className: "information-container",
103
85
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
104
86
  children: image === null || image === void 0 ? void 0 : image.name
105
- }), !gridLayout && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
106
- children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
107
- children: [image.width, "x", image.height]
108
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
109
- children: image.ext
110
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
111
- width: "100%",
112
- placeholder: "Tipo de toma",
113
- options: imageInputs,
114
- valueSelected: image.image_id,
115
- onChange: function onChange(e) {
116
- changeImage({
117
- action: "changeImageInfo",
118
- attribute: "image_id",
119
- value: +e.target.value,
120
- index: index
121
- });
122
- }
123
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
124
- width: "100%",
125
- placeholder: "Tipo de imagen",
126
- options: imageType,
127
- valueSelected: image.image_type,
128
- onChange: function onChange(e) {
129
- changeImage({
130
- action: "changeImageInfo",
131
- attribute: "image_type",
132
- value: +e.target.value,
133
- index: index
134
- });
135
- }
136
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Select.default, {
137
- width: "100%",
138
- placeholder: "Tipo de empaque",
139
- options: imagePackagingType,
140
- valueSelected: image.packing_type,
141
- onChange: function onChange(e) {
142
- changeImage({
143
- action: "changeImageInfo",
144
- attribute: "packing_type",
145
- value: +e.target.value,
146
- index: index
147
- });
148
- }
149
- })]
150
- })]
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
+ }))]
151
92
  })]
152
93
  })]
153
94
  });
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n &.grid-gallery {\n position: relative;\n width: 179px;\n border-radius: 3px;\n overflow: hidden;\n\n .buttons-container {\n position: absolute;\n top: 5px;\n left: 5px;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .image-container {\n border: 1px solid #f0eef2;\n\n .information-container {\n background-color: ", ";\n display: flex;\n justify-content: space-between;\n padding: 0 2px;\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 11px;\n line-height: 17px;\n }\n }\n }\n }\n\n &.row-gallery {\n display: flex;\n align-items: center;\n padding-right: 10px;\n\n .buttons-container {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .image-container {\n display: flex;\n align-items: center;\n flex: 1;\n .information-container {\n display: flex;\n flex: 1;\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 14px;\n line-height: 17px;\n text-align: center;\n\n &.highlighted-data {\n font-family: ", ";\n color: ", ";\n background-color: ", ";\n border-radius: 3px;\n font-weight: 600;\n font-size: 11px;\n line-height: 18px;\n padding: 0 10px;\n }\n\n &:nth-child(1) {\n //min-width: calc(20% - 76px);\n //flex: 1 0 20%;\n min-width: 22%;\n }\n\n &:nth-child(2),\n &:nth-child(3) {\n text-align: center;\n }\n &:nth-child(2) {\n max-width: 90px;\n min-width: 90px;\n }\n &:nth-child(3) {\n max-width: 60px;\n min-width: 60px;\n }\n /* &:nth-child(4) {\n max-width: 90px;\n min-width: 90px;\n }\n &:nth-child(5) {\n max-width: 80px;\n min-width: 80px;\n } */\n }\n\n & > * {\n flex: 1;\n padding: 5px;\n }\n }\n }\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s2);
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n &.grid-gallery {\n position: relative;\n width: 179px;\n border-radius: 3px;\n overflow: hidden;\n\n .buttons-container {\n position: absolute;\n top: 0;\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 5px;\n }\n\n .image-container {\n border: 1px solid #f0eef2;\n\n .information-container {\n background-color: ", ";\n display: flex;\n justify-content: space-between;\n padding: 0 2px;\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 11px;\n line-height: 17px;\n }\n }\n }\n }\n\n &.row-gallery {\n display: flex;\n align-items: center;\n\n .buttons-container {\n position: relative;\n width: 58px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n }\n\n .image-container {\n display: flex;\n align-items: center;\n .information-container {\n display: flex;\n\n p {\n font-family: ", ";\n color: ", ";\n font-size: 14px;\n line-height: 17px;\n\n & + p {\n margin-left: 18px;\n }\n\n &.highlighted-data {\n font-family: ", ";\n color: ", ";\n background-color: ", ";\n border-radius: 3px;\n font-weight: 600;\n font-size: 11px;\n line-height: 18px;\n padding: 0 10px;\n }\n }\n }\n }\n\n & > * + * {\n margin-left: 18px;\n }\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.Lato, _variables.GlobalColors.s4, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s2);
19
19
 
20
20
  exports.Container = Container;
@@ -11,48 +11,26 @@ var _CheckBox = require("../../atoms/CheckBox");
11
11
 
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
 
14
- var GalleryHeader = function GalleryHeader(_ref) {
15
- var setCheckAll = _ref.setCheckAll,
16
- setSelectedImages = _ref.setSelectedImages;
17
-
18
- var checkAll = function checkAll(e) {
19
- var checkboxList = document.querySelectorAll("[id^='gallery-element-']");
20
- checkboxList.forEach(function (chk) {
21
- return chk.checked = e.target.checked;
22
- });
23
- setCheckAll(e.target.checked);
24
- if (!e.target.checked) setSelectedImages([]);
25
- };
26
-
14
+ var GalleryHeader = function GalleryHeader() {
27
15
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
28
16
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
29
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, {
30
- id: "check-all-images",
31
- onChange: function onChange(e) {
32
- return checkAll(e);
33
- }
34
- })
17
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBox.CheckBox, {})
18
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
19
+ className: "value-header",
20
+ children: "Val."
35
21
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
36
22
  className: "image-header",
37
23
  children: "Image"
38
24
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
39
- className: "image-name",
40
25
  children: "Nombre"
41
26
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
42
- className: "image-size",
43
27
  children: "Tama\xF1o"
44
28
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
45
- className: "image-format",
46
29
  children: "Formato"
47
30
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
48
- className: "",
49
- children: "Tipo de toma"
50
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
51
- className: "",
52
31
  children: "Tipo de imagen"
53
32
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
54
- className: "",
55
- children: "Tipo de empaque"
33
+ children: "Identificador"
56
34
  })]
57
35
  });
58
36
  };
@@ -15,6 +15,6 @@ var _variables = require("../../../global-files/variables");
15
15
 
16
16
  var _templateObject;
17
17
 
18
- var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: 10px;\n padding-left: 0;\n align-items: center;\n\n p {\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n font-size: 14px;\n line-height: 21px;\n letter-spacing: -0.015em;\n color: ", ";\n flex: 1;\n text-align: center;\n\n &.value-header {\n max-width: 60px;\n }\n\n &.image-header {\n max-width: 60px;\n }\n\n &.image-name {\n min-width: 20%;\n }\n\n &.image-format {\n max-width: 60px;\n }\n\n &.image-size {\n max-width: 90px;\n }\n\n &.image-identifier {\n max-width: 80px;\n }\n }\n"])), _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5);
18
+ var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n padding: 10px;\n padding-left: 0;\n align-items: center;\n\n p {\n font-family: ", ";\n font-style: normal;\n font-weight: 600;\n font-size: 14px;\n line-height: 21px;\n letter-spacing: -0.015em;\n color: ", ";\n flex: 1;\n text-align: center;\n\n &.value-header {\n max-width: 60px;\n }\n\n &.image-header {\n max-width: 60px;\n }\n }\n"])), _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5);
19
19
 
20
20
  exports.Container = Container;
@@ -9,6 +9,8 @@ var _styles = require("./styles");
9
9
 
10
10
  var _index = require("../../atoms/ProductImage/index");
11
11
 
12
+ var _data = require("../../../global-files/data");
13
+
12
14
  var _jsxRuntime = require("react/jsx-runtime");
13
15
 
14
16
  var ImageSelector = function ImageSelector(_ref) {
@@ -22,11 +24,11 @@ var ImageSelector = function ImageSelector(_ref) {
22
24
  className: modalSelector && "modal-image-selector",
23
25
  children: images === null || images === void 0 ? void 0 : (_images$values = images.values) === null || _images$values === void 0 ? void 0 : _images$values.map(function (image, index) {
24
26
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ProductImage, {
25
- img: image.src,
27
+ img: (0, _data.getImage)(image, 85, 60).src,
26
28
  altText: image.altText,
27
29
  imageType: modalSelector ? "catalogue-modal-image" : "carousel-image",
28
30
  onClick: function onClick() {
29
- return setActiveImage(index);
31
+ return setActiveImage((0, _data.getImage)(image), 350, 295);
30
32
  }
31
33
  }, index);
32
34
  })
@@ -21,6 +21,7 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
21
21
  var productName = _ref.productName,
22
22
  statusType = _ref.statusType,
23
23
  percent = _ref.percent,
24
+ backgroundColor = _ref.backgroundColor,
24
25
  priority = _ref.priority,
25
26
  date = _ref.date;
26
27
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
@@ -31,7 +32,7 @@ var ProductNameHeader = function ProductNameHeader(_ref) {
31
32
  statusType: statusType
32
33
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index3.ProgressBar, {
33
34
  percent: percent,
34
- progressBarType: statusType
35
+ backgroundColor: backgroundColor
35
36
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index4.PriorityFlag, {
36
37
  priority: priority
37
38
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.ScreenHeader, {
@@ -0,0 +1,28 @@
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.default = exports.RegistrationFirstStepDefault = void 0;
9
+
10
+ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
+
12
+ var _index = require("./index");
13
+
14
+ var _jsxRuntime = require("react/jsx-runtime");
15
+
16
+ var _default = {
17
+ title: "Components/molecules/RegistrationFirstStep",
18
+ component: _index.RegistrationFirstStep
19
+ };
20
+ exports.default = _default;
21
+
22
+ var Template = function Template(args) {
23
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RegistrationFirstStep, (0, _objectSpread2.default)({}, args));
24
+ };
25
+
26
+ var RegistrationFirstStepDefault = Template.bind({});
27
+ exports.RegistrationFirstStepDefault = RegistrationFirstStepDefault;
28
+ RegistrationFirstStepDefault.args = {};
@@ -0,0 +1,336 @@
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.RegistrationFirstStep = void 0;
9
+
10
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
11
+
12
+ var _styles = require("./styles");
13
+
14
+ var _GradientPanel = require("../../atoms/GradientPanel");
15
+
16
+ var _react = require("react");
17
+
18
+ var _LogoImage = require("../../atoms/LogoImage");
19
+
20
+ var _ScreenHeader = require("../../atoms/ScreenHeader");
21
+
22
+ var _variables = require("../../../global-files/variables");
23
+
24
+ var _TagAndInput = require("../../molecules/TagAndInput");
25
+
26
+ var _GeneralButton = require("../../atoms/GeneralButton");
27
+
28
+ var _GeneralInput = require("../../atoms/GeneralInput");
29
+
30
+ var _jsxRuntime = require("react/jsx-runtime");
31
+
32
+ var RegistrationFirstStep = function RegistrationFirstStep(props) {
33
+ var _useState = (0, _react.useState)(false),
34
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
35
+ emptyName = _useState2[0],
36
+ setEmptyName = _useState2[1];
37
+
38
+ var _useState3 = (0, _react.useState)(false),
39
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
40
+ emptyLastName = _useState4[0],
41
+ setEmptyLastName = _useState4[1];
42
+
43
+ var _useState5 = (0, _react.useState)(false),
44
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
45
+ emptyEmail = _useState6[0],
46
+ setEmptyEmail = _useState6[1];
47
+
48
+ var _useState7 = (0, _react.useState)(false),
49
+ _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
50
+ emptyJob = _useState8[0],
51
+ setEmptyJob = _useState8[1];
52
+
53
+ var _useState9 = (0, _react.useState)(false),
54
+ _useState10 = (0, _slicedToArray2.default)(_useState9, 2),
55
+ emptyPhone = _useState10[0],
56
+ setEmptyPhone = _useState10[1];
57
+
58
+ var _useState11 = (0, _react.useState)(true),
59
+ _useState12 = (0, _slicedToArray2.default)(_useState11, 2),
60
+ emptyCountry = _useState12[0],
61
+ setEmptyCountry = _useState12[1];
62
+
63
+ var _useState13 = (0, _react.useState)(false),
64
+ _useState14 = (0, _slicedToArray2.default)(_useState13, 2),
65
+ showErrors = _useState14[0],
66
+ setShowErrors = _useState14[1];
67
+
68
+ var _useState15 = (0, _react.useState)(false),
69
+ _useState16 = (0, _slicedToArray2.default)(_useState15, 2),
70
+ regError = _useState16[0],
71
+ setRegError = _useState16[1];
72
+
73
+ var _useState17 = (0, _react.useState)(false),
74
+ _useState18 = (0, _slicedToArray2.default)(_useState17, 2),
75
+ phoneFormatError = _useState18[0],
76
+ setPhoneFormatError = _useState18[1];
77
+
78
+ var _useState19 = (0, _react.useState)(false),
79
+ _useState20 = (0, _slicedToArray2.default)(_useState19, 2),
80
+ emailFormatError = _useState20[0],
81
+ setEmailFormatError = _useState20[1];
82
+
83
+ (0, _react.useEffect)(function () {
84
+ JSON.parse(sessionStorage.getItem("nuevoRegistro")).name === "" && sessionStorage.removeItem("registrationError");
85
+ sessionStorage.getItem("registrationError") && setRegError(true);
86
+
87
+ if (sessionStorage.getItem("registrationError")) {
88
+ setEmptyName(false);
89
+ setEmptyLastName(false);
90
+ setEmptyEmail(false);
91
+ setEmptyJob(false);
92
+ setEmptyCountry(false);
93
+ setEmptyPhone(false);
94
+ }
95
+
96
+ sessionStorage.getItem("resetPasswordProcess") && sessionStorage.getItem("resetPasswordProcess");
97
+ }, []);
98
+ var paisesEsp = ["Argentina", "Colombia", "Costa Rica", "Ecuador", "El Salvador", "Honduras", "México", "Panamá", "Perú"];
99
+
100
+ var updateInfo = function updateInfo(e, newValue) {
101
+ var nuevoUsuario = JSON.parse(sessionStorage.getItem("nuevoRegistro"));
102
+
103
+ switch (e.target.id) {
104
+ case "nameInput":
105
+ nuevoUsuario.name = newValue;
106
+ newValue === "" ? setEmptyName(true) : setEmptyName(false);
107
+ break;
108
+
109
+ case "lastNameInput":
110
+ nuevoUsuario.lastName = newValue;
111
+ newValue === "" ? setEmptyLastName(true) : setEmptyLastName(false);
112
+ break;
113
+
114
+ case "emailInput":
115
+ nuevoUsuario.email = newValue;
116
+ newValue === "" ? setEmptyEmail(true) : setEmptyEmail(false);
117
+
118
+ if (!/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(newValue)) {
119
+ setEmailFormatError(true);
120
+ } else {
121
+ setEmailFormatError(false);
122
+ }
123
+
124
+ break;
125
+
126
+ case "jobInput":
127
+ nuevoUsuario.position = newValue;
128
+ newValue === "" ? setEmptyJob(true) : setEmptyJob(false);
129
+ break;
130
+
131
+ case "phoneInput":
132
+ Array.from(newValue).forEach(function (digit, i) {
133
+ newValue.charCodeAt(i) < 48 ? setPhoneFormatError(true) : setPhoneFormatError(false);
134
+ newValue.charCodeAt(i) > 57 ? setPhoneFormatError(true) : setPhoneFormatError(false);
135
+ });
136
+ nuevoUsuario.phone = "".concat(JSON.parse(sessionStorage.getItem("countryCodeSelect"))).concat(newValue);
137
+ newValue === "" ? setEmptyPhone(true) : setEmptyPhone(false);
138
+ break;
139
+
140
+ case "countrySelect":
141
+ nuevoUsuario.country = newValue;
142
+ newValue === "" || newValue === "Selecciona tu país" ? setEmptyCountry(true) : setEmptyCountry(false);
143
+ break;
144
+
145
+ case "countryCodeSelect":
146
+ sessionStorage.setItem("countryCode", JSON.stringify(newValue));
147
+ nuevoUsuario.phone = "".concat(JSON.parse(sessionStorage.getItem("countryCode"))).concat(document.querySelector("#phoneInput").value);
148
+ break;
149
+
150
+ default:
151
+ return;
152
+ }
153
+
154
+ sessionStorage.setItem("nuevoRegistro", JSON.stringify(nuevoUsuario));
155
+ };
156
+
157
+ var validateForm = function validateForm(evt) {
158
+ var valid = true;
159
+ evt.preventDefault();
160
+ setShowErrors(true);
161
+ emptyName && (valid = false);
162
+ emptyLastName && (valid = false);
163
+ emptyEmail && (valid = false);
164
+ emptyJob && (valid = false);
165
+ emptyPhone && (valid = false);
166
+ emptyCountry && (valid = false);
167
+ phoneFormatError && (valid = false);
168
+ emailFormatError && (valid = false);
169
+ !regError && valid && props.setPaso(function (paso) {
170
+ return props.paso + 1;
171
+ });
172
+ regError && valid && props.setPaso(4);
173
+ };
174
+
175
+ var loginRight = [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LogoImage.LogoImage, {}, "1"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
176
+ className: "credenciales",
177
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
178
+ fontFamily: _variables.FontFamily.AvenirNext,
179
+ color: _variables.GlobalColors.s5,
180
+ text: "Ingresa tus credenciales"
181
+ })
182
+ }, "2"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
183
+ className: "user",
184
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
185
+ className: "name-registration-user",
186
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
187
+ inputType: "text",
188
+ inputId: "nameInput",
189
+ label: "Nombre",
190
+ inputPlaceHolder: "Nombre",
191
+ defaultValue: JSON.parse(sessionStorage.getItem("nuevoRegistro")).name,
192
+ required: true,
193
+ onInput: function onInput(e) {
194
+ return updateInfo(e, e.target.value);
195
+ }
196
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
197
+ inputType: "text",
198
+ inputId: "lastNameInput",
199
+ label: "Apellido",
200
+ inputPlaceHolder: "Apellido"
201
+ })]
202
+ }), emptyName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
203
+ children: "Ingrese su nombre"
204
+ }), emptyLastName && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
205
+ children: "Ingrese sus apellidos"
206
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
207
+ inputType: "text",
208
+ inputId: "emailInput",
209
+ label: "Correo electrónico",
210
+ inputPlaceHolder: "username@contentoh.com"
211
+ }), emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
212
+ children: "Ingrese su correo"
213
+ }), invalidEmail && !emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
214
+ children: "Ingrese un correo v\xE1lido"
215
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
216
+ inputType: "text",
217
+ inputId: "jobInput",
218
+ label: "Puesto laboral",
219
+ inputPlaceHolder: "Puesto dentro de la empresa"
220
+ }), emptyJob && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
221
+ children: "Ingrese su puesto"
222
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
223
+ text: "Teléfono",
224
+ headerType: "input-name-header"
225
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
226
+ className: "phone-registration-user",
227
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
228
+ name: "select",
229
+ className: "phone-options",
230
+ id: "countryCodeSelect",
231
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
232
+ children: "+52"
233
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
234
+ children: "+54"
235
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
236
+ children: "+57"
237
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
238
+ children: "+506"
239
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
240
+ children: "+593"
241
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
242
+ children: "+503"
243
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
244
+ children: "+504"
245
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
246
+ children: "+507"
247
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
248
+ children: "+51"
249
+ })]
250
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralInput.GeneralInput, {
251
+ inputId: "phoneInput",
252
+ inputType: "text",
253
+ inputPlaceholder: "Teléfono"
254
+ })]
255
+ }), emptyPhone && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
256
+ children: "Ingrese su n\xFAmero de tel\xE9fono"
257
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
258
+ text: "País",
259
+ headerType: "input-name-header"
260
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("select", {
261
+ name: "select",
262
+ className: "country-options",
263
+ id: "countrySelect",
264
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
265
+ value: "value1",
266
+ selected: true,
267
+ children: "Selecciona tu pa\xEDs"
268
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
269
+ value: "value2",
270
+ children: "Argentina"
271
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
272
+ value: "value3",
273
+ children: "Colombia"
274
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
275
+ value: "value2",
276
+ children: "Ecuador"
277
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
278
+ value: "value3",
279
+ children: "El Salvador"
280
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
281
+ value: "value2",
282
+ children: "Honduras"
283
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
284
+ value: "value3",
285
+ children: "M\xE9xico"
286
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
287
+ value: "value2",
288
+ children: "Panam\xE1"
289
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
290
+ value: "value3",
291
+ children: "Per\xFA"
292
+ })]
293
+ }), emptyEmail && /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
294
+ children: "Seleccione su pa\xEDs"
295
+ })]
296
+ }, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
297
+ className: "button-end",
298
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeneralButton.Button, {
299
+ buttonType: "general-default-button",
300
+ label: "Enviar",
301
+ onClick: function onClick(e) {
302
+ return validate(e);
303
+ }
304
+ })
305
+ }, "4"), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
306
+ className: "progress-bar",
307
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
308
+ className: "progress-bar-first-step"
309
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
310
+ className: "progress-bar-registration"
311
+ })]
312
+ }, "5"), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ScreenHeader.ScreenHeader, {
313
+ text: "Paso 1",
314
+ headerType: "date-header",
315
+ color: _variables.GlobalColors.s4
316
+ }, "6"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
317
+ className: "new-login",
318
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
319
+ className: "pre-registro",
320
+ children: ["\xBFYa tienes una cuenta?", /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
321
+ children: " Inicia Sesi\xF3n"
322
+ })]
323
+ })
324
+ }, "7")];
325
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
326
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
327
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GradientPanel.GradientPanel, {
328
+ componentsArray: loginRight,
329
+ panelType: "home-login",
330
+ panelColor: _variables.GlobalColors.white
331
+ })
332
+ })
333
+ });
334
+ };
335
+
336
+ exports.RegistrationFirstStep = RegistrationFirstStep;
@@ -0,0 +1,20 @@
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 display: flex;\n width: 50%;\n height: 100vh;\n .user {\n .name-registration-user {\n display: flex;\n justify-content: space-between;\n input {\n width: 160px;\n }\n }\n .input-name-header {\n margin-bottom: 4px;\n margin-top: 12px;\n }\n .phone-registration-user {\n display: flex;\n justify-content: space-between;\n .phone-options {\n width: 80px;\n }\n input {\n width: 100%;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .country-options,\n .phone-options {\n width: 100%;\n border: 1px solid ", ";\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 2px;\n resize: none;\n &:focus {\n border: 1px solid ", ";\n }\n }\n }\n .button-end {\n text-align: end;\n .general-default-button {\n width: 160px;\n }\n & + * {\n margin-top: 10px;\n }\n }\n .progress-bar {\n width: 100%;\n height: 8px;\n display: flex;\n justify-content: space-between;\n .progress-bar-first-step {\n width: 33.33%;\n background-color: rgb(196, 196, 196);\n }\n .progress-bar-registration {\n background-color: rgb(226, 226, 226);\n width: 66.66%;\n }\n }\n .date-header {\n .new-login {\n & + * {\n margin-top: 20px;\n }\n }\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2);
19
+
20
+ exports.Container = Container;