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.
- package/.env.development +5 -16
- package/.env.production +3 -14
- package/CHANGELOG.md +33 -31
- package/dist/assets/images/carouselImagesLogin/login2.svg +117 -0
- package/dist/assets/images/carouselImagesLogin/login3.svg +147 -0
- package/dist/assets/images/carouselImagesLogin/loginImage.svg +301 -0
- package/dist/components/atoms/AsignationOption/index.js +5 -9
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/atoms/CheckBox/index.js +2 -4
- package/dist/components/atoms/GeneralButton/index.js +0 -5
- package/dist/components/atoms/GeneralButton/styles.js +2 -4
- package/dist/components/atoms/GeneralInput/index.js +24 -73
- package/dist/components/atoms/GeneralInput/styles.js +1 -7
- package/dist/components/atoms/GenericModal/index.js +2 -4
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/ListCommercialRetailers/ListCommercialRetailers.stories.js +36 -0
- package/dist/components/atoms/ListCommercialRetailers/index.js +64 -0
- package/dist/components/atoms/ListCommercialRetailers/styles.js +20 -0
- package/dist/components/atoms/Loading/Loading.stories.js +28 -0
- package/dist/components/atoms/Loading/index.js +2 -1
- package/dist/components/atoms/Loading/styles.js +4 -8
- package/dist/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +37 -0
- package/dist/components/atoms/MenuCommercialRetailers/index.js +25 -0
- package/dist/components/{molecules/RetailerSelector → atoms/MenuCommercialRetailers}/styles.js +1 -1
- package/dist/components/atoms/MenuProductImage/MenuProductImage.stories.js +28 -0
- package/dist/components/atoms/MenuProductImage/index.js +88 -0
- package/dist/components/atoms/MenuProductImage/styles.js +20 -0
- package/dist/components/atoms/PriorityFlag/index.js +1 -1
- package/dist/components/atoms/ProductImage/styles.js +1 -1
- package/dist/components/atoms/ProgressBar/index.js +2 -2
- package/dist/components/atoms/ProgressBar/styles.js +5 -3
- package/dist/components/atoms/ScreenHeader/index.js +1 -1
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/StatusTag/index.js +2 -37
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/ValidationPanel/index.js +3 -4
- package/dist/components/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +22 -0
- package/dist/components/atoms/VerticalSideMenuMainPage/index.js +49 -0
- package/dist/components/atoms/{Commentary → VerticalSideMenuMainPage}/styles.js +1 -6
- package/dist/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +25 -0
- package/dist/components/molecules/ApproveRejetPanel/index.js +49 -0
- package/dist/components/{atoms/CharCounter → molecules/ApproveRejetPanel}/styles.js +1 -3
- package/dist/components/molecules/AvatarAndValidation/index.js +7 -17
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/index.js +40 -42
- package/dist/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/EmailResetPasswordLogin/index.js +155 -0
- package/dist/components/molecules/EmailResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/FeaturesBar/index.js +1 -1
- package/dist/components/molecules/GalleryElement/index.js +21 -80
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/index.js +6 -28
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/ImageSelector/index.js +4 -2
- package/dist/components/molecules/ProductNameHeader/index.js +2 -1
- package/dist/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationFirstStep/index.js +336 -0
- package/dist/components/molecules/RegistrationFirstStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationSecondStep/index.js +156 -0
- package/dist/components/molecules/RegistrationSecondStep/styles.js +20 -0
- package/dist/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +28 -0
- package/dist/components/molecules/RegistrationThirdStep/index.js +161 -0
- package/dist/components/molecules/RegistrationThirdStep/styles.js +20 -0
- package/dist/components/{atoms/CharCounter/CharCounter.stories.js → molecules/SignInLogin/SignInLogin.stories.js} +7 -10
- package/dist/components/molecules/SignInLogin/index.js +292 -0
- package/dist/components/molecules/SignInLogin/styles.js +20 -0
- package/dist/components/molecules/StatusAsignationInfo/index.js +25 -46
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/index.js +5 -12
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TagAndInput/index.js +2 -26
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +28 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/index.js +104 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/styles.js +20 -0
- package/dist/components/molecules/VerificationCodeResetPasswordLogin/utils.js +69 -0
- package/dist/components/{atoms/InputFormatter/Wysiwyg.stories.js → organisms/ChangePassword/ChangePassword.stories.js} +7 -9
- package/dist/components/organisms/ChangePassword/index.js +113 -0
- package/dist/components/organisms/ChangePassword/styles.js +18 -0
- package/dist/components/organisms/FullProductNameHeader/index.js +8 -32
- package/dist/components/organisms/FullTabsMenu/index.js +5 -18
- package/dist/components/organisms/ImageDataTable/index.js +14 -90
- package/dist/components/organisms/InputGroup/index.js +13 -34
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/index.js +11 -15
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +347 -109
- package/dist/components/pages/RetailerProductEdition/index.js +59 -1589
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/global-files/data.js +53 -212
- package/dist/global-files/global-styles.css +0 -1
- package/dist/global-files/variables.js +0 -1
- package/dist/index.js +260 -31
- package/package.json +14 -12
- package/src/components/atoms/AsignationOption/index.js +5 -7
- package/src/components/atoms/AsignationOption/styles.js +1 -9
- package/src/components/atoms/CheckBox/index.js +2 -8
- package/src/components/atoms/GeneralButton/index.js +2 -9
- package/src/components/atoms/GeneralButton/styles.js +0 -23
- package/src/components/atoms/GeneralInput/index.js +21 -71
- package/src/components/atoms/GeneralInput/styles.js +1 -11
- package/src/components/atoms/GenericModal/index.js +2 -2
- package/src/components/atoms/GenericModal/styles.js +2 -10
- package/src/components/atoms/Loading/Loading.stories.js +10 -0
- package/src/components/atoms/Loading/index.js +5 -4
- package/src/components/atoms/Loading/styles.js +43 -43
- package/src/components/atoms/PriorityFlag/index.js +1 -1
- package/src/components/atoms/ProductImage/styles.js +1 -1
- package/src/components/atoms/ProgressBar/index.js +2 -2
- package/src/components/atoms/ProgressBar/styles.js +3 -54
- package/src/components/atoms/ScreenHeader/index.js +3 -7
- package/src/components/atoms/ScreenHeader/styles.js +2 -9
- package/src/components/atoms/StatusTag/index.js +2 -30
- package/src/components/atoms/StatusTag/styles.js +3 -15
- package/src/components/atoms/ValidationPanel/index.js +3 -3
- package/src/components/molecules/AvatarAndValidation/index.js +6 -24
- package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/src/components/molecules/CarouselImagesLogin/index.js +34 -37
- package/src/components/molecules/EmailResetPasswordLogin/EmailResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/EmailResetPasswordLogin/index.js +86 -0
- package/src/components/molecules/EmailResetPasswordLogin/styles.js +23 -0
- package/src/components/molecules/FeaturesBar/index.js +7 -10
- package/src/components/molecules/GalleryElement/index.js +36 -75
- package/src/components/molecules/GalleryElement/styles.js +11 -38
- package/src/components/molecules/GalleryHeader/index.js +8 -14
- package/src/components/molecules/GalleryHeader/styles.js +0 -16
- package/src/components/molecules/ImageSelector/index.js +3 -2
- package/src/components/molecules/ProductNameHeader/index.js +2 -1
- package/src/components/molecules/RegistrationFirstStep/RegistrationFirstStep.stories.js +11 -0
- package/src/components/molecules/RegistrationFirstStep/index.js +242 -0
- package/src/components/molecules/RegistrationFirstStep/styles.js +81 -0
- package/src/components/molecules/RegistrationSecondStep/RegistrationSecondStep.stories.js +11 -0
- package/src/components/molecules/RegistrationSecondStep/index.js +97 -0
- package/src/components/molecules/RegistrationSecondStep/styles.js +59 -0
- package/src/components/molecules/RegistrationThirdStep/RegistrationThirdStep.stories.js +11 -0
- package/src/components/molecules/RegistrationThirdStep/index.js +109 -0
- package/src/components/molecules/RegistrationThirdStep/styles.js +44 -0
- package/src/components/molecules/SignInLogin/SignInLogin.stories.js +11 -0
- package/src/components/molecules/SignInLogin/index.js +206 -0
- package/src/components/molecules/SignInLogin/styles.js +78 -0
- package/src/components/molecules/StatusAsignationInfo/index.js +38 -62
- package/src/components/molecules/StatusAsignationInfo/styles.js +2 -12
- package/src/components/molecules/TableHeader/index.js +3 -16
- package/src/components/molecules/TableHeader/styles.js +0 -5
- package/src/components/molecules/TagAndInput/index.js +0 -24
- package/src/components/molecules/VerificationCodeResetPasswordLogin/VerificationCodeResetPasswordLogin.stories.js +11 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/index.js +78 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/styles.js +49 -0
- package/src/components/molecules/VerificationCodeResetPasswordLogin/utils.js +56 -0
- package/src/components/organisms/ChangePassword/ChangePassword.stories.js +11 -0
- package/src/components/organisms/ChangePassword/index.js +63 -0
- package/src/components/organisms/ChangePassword/styles.js +16 -0
- package/src/components/organisms/FullProductNameHeader/index.js +7 -28
- package/src/components/organisms/FullTabsMenu/index.js +3 -15
- package/src/components/organisms/ImageDataTable/index.js +11 -89
- package/src/components/organisms/InputGroup/index.js +11 -46
- package/src/components/organisms/InputGroup/styles.js +0 -3
- package/src/components/organisms/ProductImageModal/index.js +12 -20
- package/src/components/organisms/ProductImageModal/styles.js +0 -3
- package/src/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +343 -117
- package/src/components/pages/RetailerProductEdition/index.js +46 -1225
- package/src/components/pages/RetailerProductEdition/styles.js +4 -67
- package/src/global-files/data.js +57 -156
- package/src/global-files/global-styles.css +0 -1
- package/src/global-files/variables.js +0 -1
- package/src/index.js +33 -1
- package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
- package/dist/assets/images/modalsSVGs/attributesSent.svg +0 -208
- package/dist/assets/images/modalsSVGs/descriptionSent.svg +0 -237
- package/dist/assets/images/modalsSVGs/providerSent.svg +0 -445
- package/dist/assets/images/modalsSVGs/uploadingImages.svg +0 -148
- package/dist/components/atoms/CharCounter/index.js +0 -22
- package/dist/components/atoms/Commentary/Commentary.stories.js +0 -1
- package/dist/components/atoms/Commentary/index.js +0 -23
- package/dist/components/atoms/Input/index.js +0 -26
- package/dist/components/atoms/Input/style.js +0 -26
- package/dist/components/atoms/InputFormatter/index.js +0 -185
- package/dist/components/atoms/InputFormatter/styles.js +0 -33
- package/dist/components/atoms/LabelToInput/index.js +0 -53
- package/dist/components/atoms/LabelToInput/style.js +0 -22
- package/dist/components/atoms/Percent/Percent.stories.js +0 -39
- package/dist/components/atoms/Percent/index.js +0 -39
- package/dist/components/atoms/Percent/styles.js +0 -20
- package/dist/components/atoms/Select/index.js +0 -39
- package/dist/components/atoms/Select/style.js +0 -32
- package/dist/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -48
- package/dist/components/molecules/RetailerSelector/index.js +0 -74
- package/dist/components/molecules/TextAndGradient/TextAndGradient.stories.js +0 -31
- package/dist/components/molecules/TextAndGradient/index.js +0 -36
- package/dist/components/molecules/TextAndGradient/styles.js +0 -18
- package/src/assets/images/generalButton/downloadIcon.svg +0 -3
- package/src/assets/images/modalsSVGs/attributesSent.svg +0 -208
- package/src/assets/images/modalsSVGs/descriptionSent.svg +0 -237
- package/src/assets/images/modalsSVGs/providerSent.svg +0 -445
- package/src/assets/images/modalsSVGs/uploadingImages.svg +0 -148
- package/src/components/atoms/CharCounter/CharCounter.stories.js +0 -11
- package/src/components/atoms/CharCounter/index.js +0 -13
- package/src/components/atoms/CharCounter/styles.js +0 -10
- package/src/components/atoms/Commentary/Commentary.stories.js +0 -0
- package/src/components/atoms/Commentary/index.js +0 -9
- package/src/components/atoms/Commentary/styles.js +0 -16
- package/src/components/atoms/Input/index.js +0 -15
- package/src/components/atoms/Input/style.js +0 -31
- package/src/components/atoms/InputFormatter/Wysiwyg.stories.js +0 -12
- package/src/components/atoms/InputFormatter/index.js +0 -141
- package/src/components/atoms/InputFormatter/styles.js +0 -40
- package/src/components/atoms/LabelToInput/index.js +0 -26
- package/src/components/atoms/LabelToInput/style.js +0 -41
- package/src/components/atoms/Select/index.js +0 -35
- package/src/components/atoms/Select/style.js +0 -76
- package/src/components/molecules/RetailerSelector/RetailerSelector.stories.js +0 -35
- package/src/components/molecules/RetailerSelector/index.js +0 -63
- package/src/components/molecules/RetailerSelector/styles.js +0 -18
package/dist/index.js
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
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
|
|
|
9
|
+
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
10
|
+
|
|
11
|
+
var _App = _interopRequireDefault(require("./App.jsx"));
|
|
12
|
+
|
|
13
|
+
var _awsAmplify = _interopRequireDefault(require("aws-amplify"));
|
|
14
|
+
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
+
|
|
7
17
|
var _index = require("./components/atoms/ActivedFilter/index");
|
|
8
18
|
|
|
9
19
|
Object.keys(_index).forEach(function (key) {
|
|
@@ -160,7 +170,7 @@ Object.keys(_index12).forEach(function (key) {
|
|
|
160
170
|
});
|
|
161
171
|
});
|
|
162
172
|
|
|
163
|
-
var _index13 = require("./components/atoms/
|
|
173
|
+
var _index13 = require("./components/atoms/Loading/index");
|
|
164
174
|
|
|
165
175
|
Object.keys(_index13).forEach(function (key) {
|
|
166
176
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -173,7 +183,7 @@ Object.keys(_index13).forEach(function (key) {
|
|
|
173
183
|
});
|
|
174
184
|
});
|
|
175
185
|
|
|
176
|
-
var _index14 = require("./components/atoms/
|
|
186
|
+
var _index14 = require("./components/atoms/PriorityFlag/index");
|
|
177
187
|
|
|
178
188
|
Object.keys(_index14).forEach(function (key) {
|
|
179
189
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -186,7 +196,7 @@ Object.keys(_index14).forEach(function (key) {
|
|
|
186
196
|
});
|
|
187
197
|
});
|
|
188
198
|
|
|
189
|
-
var _index15 = require("./components/atoms/
|
|
199
|
+
var _index15 = require("./components/atoms/ProductImage/index");
|
|
190
200
|
|
|
191
201
|
Object.keys(_index15).forEach(function (key) {
|
|
192
202
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -199,7 +209,7 @@ Object.keys(_index15).forEach(function (key) {
|
|
|
199
209
|
});
|
|
200
210
|
});
|
|
201
211
|
|
|
202
|
-
var _index16 = require("./components/atoms/
|
|
212
|
+
var _index16 = require("./components/atoms/ProgressBar/index");
|
|
203
213
|
|
|
204
214
|
Object.keys(_index16).forEach(function (key) {
|
|
205
215
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -212,7 +222,7 @@ Object.keys(_index16).forEach(function (key) {
|
|
|
212
222
|
});
|
|
213
223
|
});
|
|
214
224
|
|
|
215
|
-
var _index17 = require("./components/atoms/
|
|
225
|
+
var _index17 = require("./components/atoms/ScreenHeader/index");
|
|
216
226
|
|
|
217
227
|
Object.keys(_index17).forEach(function (key) {
|
|
218
228
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -225,7 +235,7 @@ Object.keys(_index17).forEach(function (key) {
|
|
|
225
235
|
});
|
|
226
236
|
});
|
|
227
237
|
|
|
228
|
-
var _index18 = require("./components/atoms/
|
|
238
|
+
var _index18 = require("./components/atoms/SideMenuButton/index");
|
|
229
239
|
|
|
230
240
|
Object.keys(_index18).forEach(function (key) {
|
|
231
241
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -238,7 +248,7 @@ Object.keys(_index18).forEach(function (key) {
|
|
|
238
248
|
});
|
|
239
249
|
});
|
|
240
250
|
|
|
241
|
-
var _index19 = require("./components/atoms/
|
|
251
|
+
var _index19 = require("./components/atoms/StatusTag/index");
|
|
242
252
|
|
|
243
253
|
Object.keys(_index19).forEach(function (key) {
|
|
244
254
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -251,7 +261,7 @@ Object.keys(_index19).forEach(function (key) {
|
|
|
251
261
|
});
|
|
252
262
|
});
|
|
253
263
|
|
|
254
|
-
var _index20 = require("./components/atoms/
|
|
264
|
+
var _index20 = require("./components/atoms/TabSection/index");
|
|
255
265
|
|
|
256
266
|
Object.keys(_index20).forEach(function (key) {
|
|
257
267
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -264,7 +274,7 @@ Object.keys(_index20).forEach(function (key) {
|
|
|
264
274
|
});
|
|
265
275
|
});
|
|
266
276
|
|
|
267
|
-
var _index21 = require("./components/
|
|
277
|
+
var _index21 = require("./components/atoms/ValidationPanel/index");
|
|
268
278
|
|
|
269
279
|
Object.keys(_index21).forEach(function (key) {
|
|
270
280
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -277,7 +287,7 @@ Object.keys(_index21).forEach(function (key) {
|
|
|
277
287
|
});
|
|
278
288
|
});
|
|
279
289
|
|
|
280
|
-
var _index22 = require("./components/molecules/
|
|
290
|
+
var _index22 = require("./components/molecules/AvatarAndValidation/index");
|
|
281
291
|
|
|
282
292
|
Object.keys(_index22).forEach(function (key) {
|
|
283
293
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -290,7 +300,20 @@ Object.keys(_index22).forEach(function (key) {
|
|
|
290
300
|
});
|
|
291
301
|
});
|
|
292
302
|
|
|
293
|
-
var
|
|
303
|
+
var _CarouselImagesLogin = require("./components/molecules/CarouselImagesLogin");
|
|
304
|
+
|
|
305
|
+
Object.keys(_CarouselImagesLogin).forEach(function (key) {
|
|
306
|
+
if (key === "default" || key === "__esModule") return;
|
|
307
|
+
if (key in exports && exports[key] === _CarouselImagesLogin[key]) return;
|
|
308
|
+
Object.defineProperty(exports, key, {
|
|
309
|
+
enumerable: true,
|
|
310
|
+
get: function get() {
|
|
311
|
+
return _CarouselImagesLogin[key];
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
|
|
316
|
+
var _index23 = require("./components/molecules/EditionActiveImage/index");
|
|
294
317
|
|
|
295
318
|
Object.keys(_index23).forEach(function (key) {
|
|
296
319
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -303,7 +326,7 @@ Object.keys(_index23).forEach(function (key) {
|
|
|
303
326
|
});
|
|
304
327
|
});
|
|
305
328
|
|
|
306
|
-
var _index24 = require("./components/molecules/
|
|
329
|
+
var _index24 = require("./components/molecules/EmailResetPasswordLogin/index");
|
|
307
330
|
|
|
308
331
|
Object.keys(_index24).forEach(function (key) {
|
|
309
332
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -316,7 +339,7 @@ Object.keys(_index24).forEach(function (key) {
|
|
|
316
339
|
});
|
|
317
340
|
});
|
|
318
341
|
|
|
319
|
-
var _index25 = require("./components/molecules/
|
|
342
|
+
var _index25 = require("./components/molecules/FeaturesBar/index");
|
|
320
343
|
|
|
321
344
|
Object.keys(_index25).forEach(function (key) {
|
|
322
345
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -329,7 +352,7 @@ Object.keys(_index25).forEach(function (key) {
|
|
|
329
352
|
});
|
|
330
353
|
});
|
|
331
354
|
|
|
332
|
-
var _index26 = require("./components/molecules/
|
|
355
|
+
var _index26 = require("./components/molecules/GalleryElement/index");
|
|
333
356
|
|
|
334
357
|
Object.keys(_index26).forEach(function (key) {
|
|
335
358
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -342,7 +365,7 @@ Object.keys(_index26).forEach(function (key) {
|
|
|
342
365
|
});
|
|
343
366
|
});
|
|
344
367
|
|
|
345
|
-
var _index27 = require("./components/molecules/
|
|
368
|
+
var _index27 = require("./components/molecules/HeaderTop/index");
|
|
346
369
|
|
|
347
370
|
Object.keys(_index27).forEach(function (key) {
|
|
348
371
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -355,7 +378,7 @@ Object.keys(_index27).forEach(function (key) {
|
|
|
355
378
|
});
|
|
356
379
|
});
|
|
357
380
|
|
|
358
|
-
var _index28 = require("./components/molecules/
|
|
381
|
+
var _index28 = require("./components/molecules/ImageSelector/index");
|
|
359
382
|
|
|
360
383
|
Object.keys(_index28).forEach(function (key) {
|
|
361
384
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -368,7 +391,20 @@ Object.keys(_index28).forEach(function (key) {
|
|
|
368
391
|
});
|
|
369
392
|
});
|
|
370
393
|
|
|
371
|
-
var
|
|
394
|
+
var _LoginPasswordStrength = require("./components/molecules/LoginPasswordStrength");
|
|
395
|
+
|
|
396
|
+
Object.keys(_LoginPasswordStrength).forEach(function (key) {
|
|
397
|
+
if (key === "default" || key === "__esModule") return;
|
|
398
|
+
if (key in exports && exports[key] === _LoginPasswordStrength[key]) return;
|
|
399
|
+
Object.defineProperty(exports, key, {
|
|
400
|
+
enumerable: true,
|
|
401
|
+
get: function get() {
|
|
402
|
+
return _LoginPasswordStrength[key];
|
|
403
|
+
}
|
|
404
|
+
});
|
|
405
|
+
});
|
|
406
|
+
|
|
407
|
+
var _index29 = require("./components/molecules/PlanSelection/index");
|
|
372
408
|
|
|
373
409
|
Object.keys(_index29).forEach(function (key) {
|
|
374
410
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -381,7 +417,7 @@ Object.keys(_index29).forEach(function (key) {
|
|
|
381
417
|
});
|
|
382
418
|
});
|
|
383
419
|
|
|
384
|
-
var _index30 = require("./components/molecules/
|
|
420
|
+
var _index30 = require("./components/molecules/ProductNameHeader/index");
|
|
385
421
|
|
|
386
422
|
Object.keys(_index30).forEach(function (key) {
|
|
387
423
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -394,7 +430,7 @@ Object.keys(_index30).forEach(function (key) {
|
|
|
394
430
|
});
|
|
395
431
|
});
|
|
396
432
|
|
|
397
|
-
var _index31 = require("./components/molecules/
|
|
433
|
+
var _index31 = require("./components/molecules/RegistrationFirstStep/index");
|
|
398
434
|
|
|
399
435
|
Object.keys(_index31).forEach(function (key) {
|
|
400
436
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -407,7 +443,7 @@ Object.keys(_index31).forEach(function (key) {
|
|
|
407
443
|
});
|
|
408
444
|
});
|
|
409
445
|
|
|
410
|
-
var _index32 = require("./components/molecules/
|
|
446
|
+
var _index32 = require("./components/molecules/RegistrationSecondStep/index");
|
|
411
447
|
|
|
412
448
|
Object.keys(_index32).forEach(function (key) {
|
|
413
449
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -420,7 +456,7 @@ Object.keys(_index32).forEach(function (key) {
|
|
|
420
456
|
});
|
|
421
457
|
});
|
|
422
458
|
|
|
423
|
-
var _index33 = require("./components/molecules/
|
|
459
|
+
var _index33 = require("./components/molecules/RegistrationThirdStep/index");
|
|
424
460
|
|
|
425
461
|
Object.keys(_index33).forEach(function (key) {
|
|
426
462
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -433,7 +469,7 @@ Object.keys(_index33).forEach(function (key) {
|
|
|
433
469
|
});
|
|
434
470
|
});
|
|
435
471
|
|
|
436
|
-
var _index34 = require("./components/molecules/
|
|
472
|
+
var _index34 = require("./components/molecules/SignInLogin/index");
|
|
437
473
|
|
|
438
474
|
Object.keys(_index34).forEach(function (key) {
|
|
439
475
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -446,7 +482,7 @@ Object.keys(_index34).forEach(function (key) {
|
|
|
446
482
|
});
|
|
447
483
|
});
|
|
448
484
|
|
|
449
|
-
var _index35 = require("./components/
|
|
485
|
+
var _index35 = require("./components/molecules/StatusAsignationInfo/index");
|
|
450
486
|
|
|
451
487
|
Object.keys(_index35).forEach(function (key) {
|
|
452
488
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -459,7 +495,7 @@ Object.keys(_index35).forEach(function (key) {
|
|
|
459
495
|
});
|
|
460
496
|
});
|
|
461
497
|
|
|
462
|
-
var _index36 = require("./components/
|
|
498
|
+
var _index36 = require("./components/molecules/TableHeader/index");
|
|
463
499
|
|
|
464
500
|
Object.keys(_index36).forEach(function (key) {
|
|
465
501
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -472,7 +508,7 @@ Object.keys(_index36).forEach(function (key) {
|
|
|
472
508
|
});
|
|
473
509
|
});
|
|
474
510
|
|
|
475
|
-
var _index37 = require("./components/
|
|
511
|
+
var _index37 = require("./components/molecules/TableRow/index");
|
|
476
512
|
|
|
477
513
|
Object.keys(_index37).forEach(function (key) {
|
|
478
514
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -485,7 +521,7 @@ Object.keys(_index37).forEach(function (key) {
|
|
|
485
521
|
});
|
|
486
522
|
});
|
|
487
523
|
|
|
488
|
-
var _index38 = require("./components/
|
|
524
|
+
var _index38 = require("./components/molecules/TabsMenu/index");
|
|
489
525
|
|
|
490
526
|
Object.keys(_index38).forEach(function (key) {
|
|
491
527
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -498,7 +534,7 @@ Object.keys(_index38).forEach(function (key) {
|
|
|
498
534
|
});
|
|
499
535
|
});
|
|
500
536
|
|
|
501
|
-
var _index39 = require("./components/
|
|
537
|
+
var _index39 = require("./components/molecules/TagAndInput/index");
|
|
502
538
|
|
|
503
539
|
Object.keys(_index39).forEach(function (key) {
|
|
504
540
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -511,7 +547,7 @@ Object.keys(_index39).forEach(function (key) {
|
|
|
511
547
|
});
|
|
512
548
|
});
|
|
513
549
|
|
|
514
|
-
var _index40 = require("./components/
|
|
550
|
+
var _index40 = require("./components/molecules/VerificationCodeResetPasswordLogin/index");
|
|
515
551
|
|
|
516
552
|
Object.keys(_index40).forEach(function (key) {
|
|
517
553
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -524,7 +560,7 @@ Object.keys(_index40).forEach(function (key) {
|
|
|
524
560
|
});
|
|
525
561
|
});
|
|
526
562
|
|
|
527
|
-
var _index41 = require("./components/organisms/
|
|
563
|
+
var _index41 = require("./components/organisms/ChangePassword/index");
|
|
528
564
|
|
|
529
565
|
Object.keys(_index41).forEach(function (key) {
|
|
530
566
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -537,7 +573,7 @@ Object.keys(_index41).forEach(function (key) {
|
|
|
537
573
|
});
|
|
538
574
|
});
|
|
539
575
|
|
|
540
|
-
var _index42 = require("./components/organisms/
|
|
576
|
+
var _index42 = require("./components/organisms/Fullplan/index");
|
|
541
577
|
|
|
542
578
|
Object.keys(_index42).forEach(function (key) {
|
|
543
579
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -550,6 +586,123 @@ Object.keys(_index42).forEach(function (key) {
|
|
|
550
586
|
});
|
|
551
587
|
});
|
|
552
588
|
|
|
589
|
+
var _index43 = require("./components/organisms/FullProductNameHeader/index");
|
|
590
|
+
|
|
591
|
+
Object.keys(_index43).forEach(function (key) {
|
|
592
|
+
if (key === "default" || key === "__esModule") return;
|
|
593
|
+
if (key in exports && exports[key] === _index43[key]) return;
|
|
594
|
+
Object.defineProperty(exports, key, {
|
|
595
|
+
enumerable: true,
|
|
596
|
+
get: function get() {
|
|
597
|
+
return _index43[key];
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
});
|
|
601
|
+
|
|
602
|
+
var _index44 = require("./components/organisms/FullTabsMenu/index");
|
|
603
|
+
|
|
604
|
+
Object.keys(_index44).forEach(function (key) {
|
|
605
|
+
if (key === "default" || key === "__esModule") return;
|
|
606
|
+
if (key in exports && exports[key] === _index44[key]) return;
|
|
607
|
+
Object.defineProperty(exports, key, {
|
|
608
|
+
enumerable: true,
|
|
609
|
+
get: function get() {
|
|
610
|
+
return _index44[key];
|
|
611
|
+
}
|
|
612
|
+
});
|
|
613
|
+
});
|
|
614
|
+
|
|
615
|
+
var _index45 = require("./components/organisms/ImageDataTable/index");
|
|
616
|
+
|
|
617
|
+
Object.keys(_index45).forEach(function (key) {
|
|
618
|
+
if (key === "default" || key === "__esModule") return;
|
|
619
|
+
if (key in exports && exports[key] === _index45[key]) return;
|
|
620
|
+
Object.defineProperty(exports, key, {
|
|
621
|
+
enumerable: true,
|
|
622
|
+
get: function get() {
|
|
623
|
+
return _index45[key];
|
|
624
|
+
}
|
|
625
|
+
});
|
|
626
|
+
});
|
|
627
|
+
|
|
628
|
+
var _index46 = require("./components/organisms/ImagePreviewer/index");
|
|
629
|
+
|
|
630
|
+
Object.keys(_index46).forEach(function (key) {
|
|
631
|
+
if (key === "default" || key === "__esModule") return;
|
|
632
|
+
if (key in exports && exports[key] === _index46[key]) return;
|
|
633
|
+
Object.defineProperty(exports, key, {
|
|
634
|
+
enumerable: true,
|
|
635
|
+
get: function get() {
|
|
636
|
+
return _index46[key];
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
});
|
|
640
|
+
|
|
641
|
+
var _index47 = require("./components/organisms/ImagesGroup/index");
|
|
642
|
+
|
|
643
|
+
Object.keys(_index47).forEach(function (key) {
|
|
644
|
+
if (key === "default" || key === "__esModule") return;
|
|
645
|
+
if (key in exports && exports[key] === _index47[key]) return;
|
|
646
|
+
Object.defineProperty(exports, key, {
|
|
647
|
+
enumerable: true,
|
|
648
|
+
get: function get() {
|
|
649
|
+
return _index47[key];
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
});
|
|
653
|
+
|
|
654
|
+
var _index48 = require("./components/organisms/InputGroup/index");
|
|
655
|
+
|
|
656
|
+
Object.keys(_index48).forEach(function (key) {
|
|
657
|
+
if (key === "default" || key === "__esModule") return;
|
|
658
|
+
if (key in exports && exports[key] === _index48[key]) return;
|
|
659
|
+
Object.defineProperty(exports, key, {
|
|
660
|
+
enumerable: true,
|
|
661
|
+
get: function get() {
|
|
662
|
+
return _index48[key];
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
});
|
|
666
|
+
|
|
667
|
+
var _index49 = require("./components/organisms/ProductImageModal/index");
|
|
668
|
+
|
|
669
|
+
Object.keys(_index49).forEach(function (key) {
|
|
670
|
+
if (key === "default" || key === "__esModule") return;
|
|
671
|
+
if (key in exports && exports[key] === _index49[key]) return;
|
|
672
|
+
Object.defineProperty(exports, key, {
|
|
673
|
+
enumerable: true,
|
|
674
|
+
get: function get() {
|
|
675
|
+
return _index49[key];
|
|
676
|
+
}
|
|
677
|
+
});
|
|
678
|
+
});
|
|
679
|
+
|
|
680
|
+
var _ChangePasswordLogin = require("./components/pages/ChangePasswordLogin");
|
|
681
|
+
|
|
682
|
+
Object.keys(_ChangePasswordLogin).forEach(function (key) {
|
|
683
|
+
if (key === "default" || key === "__esModule") return;
|
|
684
|
+
if (key in exports && exports[key] === _ChangePasswordLogin[key]) return;
|
|
685
|
+
Object.defineProperty(exports, key, {
|
|
686
|
+
enumerable: true,
|
|
687
|
+
get: function get() {
|
|
688
|
+
return _ChangePasswordLogin[key];
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
});
|
|
692
|
+
|
|
693
|
+
var _CustomerLogin = require("./components/pages/CustomerLogin");
|
|
694
|
+
|
|
695
|
+
Object.keys(_CustomerLogin).forEach(function (key) {
|
|
696
|
+
if (key === "default" || key === "__esModule") return;
|
|
697
|
+
if (key in exports && exports[key] === _CustomerLogin[key]) return;
|
|
698
|
+
Object.defineProperty(exports, key, {
|
|
699
|
+
enumerable: true,
|
|
700
|
+
get: function get() {
|
|
701
|
+
return _CustomerLogin[key];
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
});
|
|
705
|
+
|
|
553
706
|
var _CustomerType = require("./components/pages/CustomerType");
|
|
554
707
|
|
|
555
708
|
Object.keys(_CustomerType).forEach(function (key) {
|
|
@@ -563,6 +716,19 @@ Object.keys(_CustomerType).forEach(function (key) {
|
|
|
563
716
|
});
|
|
564
717
|
});
|
|
565
718
|
|
|
719
|
+
var _EmailResetPassword = require("./components/pages/EmailResetPassword");
|
|
720
|
+
|
|
721
|
+
Object.keys(_EmailResetPassword).forEach(function (key) {
|
|
722
|
+
if (key === "default" || key === "__esModule") return;
|
|
723
|
+
if (key in exports && exports[key] === _EmailResetPassword[key]) return;
|
|
724
|
+
Object.defineProperty(exports, key, {
|
|
725
|
+
enumerable: true,
|
|
726
|
+
get: function get() {
|
|
727
|
+
return _EmailResetPassword[key];
|
|
728
|
+
}
|
|
729
|
+
});
|
|
730
|
+
});
|
|
731
|
+
|
|
566
732
|
var _OnboardPlan = require("./components/pages/OnboardPlan");
|
|
567
733
|
|
|
568
734
|
Object.keys(_OnboardPlan).forEach(function (key) {
|
|
@@ -576,6 +742,45 @@ Object.keys(_OnboardPlan).forEach(function (key) {
|
|
|
576
742
|
});
|
|
577
743
|
});
|
|
578
744
|
|
|
745
|
+
var _RegistrationLoginFirstStep = require("./components/pages/RegistrationLoginFirstStep");
|
|
746
|
+
|
|
747
|
+
Object.keys(_RegistrationLoginFirstStep).forEach(function (key) {
|
|
748
|
+
if (key === "default" || key === "__esModule") return;
|
|
749
|
+
if (key in exports && exports[key] === _RegistrationLoginFirstStep[key]) return;
|
|
750
|
+
Object.defineProperty(exports, key, {
|
|
751
|
+
enumerable: true,
|
|
752
|
+
get: function get() {
|
|
753
|
+
return _RegistrationLoginFirstStep[key];
|
|
754
|
+
}
|
|
755
|
+
});
|
|
756
|
+
});
|
|
757
|
+
|
|
758
|
+
var _RegistrationLoginSecondStep = require("./components/pages/RegistrationLoginSecondStep");
|
|
759
|
+
|
|
760
|
+
Object.keys(_RegistrationLoginSecondStep).forEach(function (key) {
|
|
761
|
+
if (key === "default" || key === "__esModule") return;
|
|
762
|
+
if (key in exports && exports[key] === _RegistrationLoginSecondStep[key]) return;
|
|
763
|
+
Object.defineProperty(exports, key, {
|
|
764
|
+
enumerable: true,
|
|
765
|
+
get: function get() {
|
|
766
|
+
return _RegistrationLoginSecondStep[key];
|
|
767
|
+
}
|
|
768
|
+
});
|
|
769
|
+
});
|
|
770
|
+
|
|
771
|
+
var _RegistrationLoginThirdStep = require("./components/pages/RegistrationLoginThirdStep");
|
|
772
|
+
|
|
773
|
+
Object.keys(_RegistrationLoginThirdStep).forEach(function (key) {
|
|
774
|
+
if (key === "default" || key === "__esModule") return;
|
|
775
|
+
if (key in exports && exports[key] === _RegistrationLoginThirdStep[key]) return;
|
|
776
|
+
Object.defineProperty(exports, key, {
|
|
777
|
+
enumerable: true,
|
|
778
|
+
get: function get() {
|
|
779
|
+
return _RegistrationLoginThirdStep[key];
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
});
|
|
783
|
+
|
|
579
784
|
var _RetailerProductEdition = require("./components/pages/RetailerProductEdition");
|
|
580
785
|
|
|
581
786
|
Object.keys(_RetailerProductEdition).forEach(function (key) {
|
|
@@ -587,4 +792,28 @@ Object.keys(_RetailerProductEdition).forEach(function (key) {
|
|
|
587
792
|
return _RetailerProductEdition[key];
|
|
588
793
|
}
|
|
589
794
|
});
|
|
590
|
-
});
|
|
795
|
+
});
|
|
796
|
+
|
|
797
|
+
var _VerificationCodeResetPassword = require("./components/pages/VerificationCodeResetPassword");
|
|
798
|
+
|
|
799
|
+
Object.keys(_VerificationCodeResetPassword).forEach(function (key) {
|
|
800
|
+
if (key === "default" || key === "__esModule") return;
|
|
801
|
+
if (key in exports && exports[key] === _VerificationCodeResetPassword[key]) return;
|
|
802
|
+
Object.defineProperty(exports, key, {
|
|
803
|
+
enumerable: true,
|
|
804
|
+
get: function get() {
|
|
805
|
+
return _VerificationCodeResetPassword[key];
|
|
806
|
+
}
|
|
807
|
+
});
|
|
808
|
+
});
|
|
809
|
+
|
|
810
|
+
_reactDom.default.render( /*#__PURE__*/(0, _jsxRuntime.jsx)(_App.default, {}), document.getElementById("root"));
|
|
811
|
+
|
|
812
|
+
_awsAmplify.default.configure({
|
|
813
|
+
Auth: {
|
|
814
|
+
region: "us-east-1",
|
|
815
|
+
userPoolId: process.env.REACT_APP_USER_POOL_ID,
|
|
816
|
+
userPoolWebClientId: process.env.REACT_APP_USER_POOL_WEB_CLIENT_ID,
|
|
817
|
+
mandatorySignIn: true
|
|
818
|
+
}
|
|
819
|
+
}); //atoms
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.34",
|
|
4
4
|
"dependencies": {
|
|
5
|
+
"@aws-amplify/auth": "^4.5.3",
|
|
6
|
+
"@aws-amplify/datastore": "^3.11.0",
|
|
7
|
+
"@aws-amplify/ui-react": "^2.17.0",
|
|
5
8
|
"@babel/runtime": "^7.17.2",
|
|
6
9
|
"@storybook/addon-postcss": "^2.0.0",
|
|
7
10
|
"@testing-library/jest-dom": "^5.11.4",
|
|
8
11
|
"@testing-library/react": "^11.1.0",
|
|
9
12
|
"@testing-library/user-event": "^12.1.10",
|
|
10
|
-
"aws-
|
|
13
|
+
"aws-amplify": "^4.3.21",
|
|
14
|
+
"aws-sdk": "^2.959.0",
|
|
11
15
|
"axios": "^0.25.0",
|
|
12
16
|
"babel-preset-react-app": "^10.0.1",
|
|
13
17
|
"chart.js": "^3.7.1",
|
|
14
|
-
"draft-js": "^0.11.7",
|
|
15
|
-
"file-saver": "^2.0.5",
|
|
16
18
|
"js-base64": "^3.7.2",
|
|
17
19
|
"prop-types": "^15.7.2",
|
|
18
20
|
"react": "^17.0.2",
|
|
19
|
-
"react-chartjs-2": "^4.0
|
|
21
|
+
"react-chartjs-2": "^4.1.0",
|
|
20
22
|
"react-dom": "^17.0.2",
|
|
21
|
-
"react-draft-wysiwyg": "^1.14.7",
|
|
22
|
-
"react-dropzone": "^12.0.4",
|
|
23
23
|
"react-image-fallback": "^8.0.0",
|
|
24
|
-
"react-
|
|
24
|
+
"react-router-dom": "^6.3.0",
|
|
25
25
|
"styled-components": "^5.3.3",
|
|
26
|
-
"uuid": "^8.3.2",
|
|
27
26
|
"web-vitals": "^1.0.1"
|
|
28
27
|
},
|
|
29
28
|
"scripts": {
|
|
30
29
|
"start": "start-storybook -p 6006",
|
|
31
30
|
"build": "cross-env BABEL_ENV=production babel src -d dist",
|
|
32
|
-
"chromatic": "npx chromatic --project-token=d7bb0c8ba831"
|
|
31
|
+
"chromatic": "npx chromatic --project-token=d7bb0c8ba831",
|
|
32
|
+
"release": "auto shipit --base-branch=main"
|
|
33
33
|
},
|
|
34
34
|
"eslintConfig": {
|
|
35
35
|
"extends": [
|
|
@@ -67,21 +67,23 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@babel/cli": "^7.17.
|
|
70
|
+
"@babel/cli": "^7.17.10",
|
|
71
71
|
"@babel/core": "^7.16.0",
|
|
72
72
|
"@storybook/addon-actions": "^6.4.1",
|
|
73
73
|
"@storybook/addon-essentials": "^6.4.1",
|
|
74
74
|
"@storybook/addon-links": "^6.4.1",
|
|
75
75
|
"@storybook/react": "^6.4.1",
|
|
76
|
+
"auth": "^0.0.9",
|
|
76
77
|
"auto": "^10.36.5",
|
|
77
78
|
"babel-loader": "^8.2.3",
|
|
78
79
|
"chromatic": "^6.3.3",
|
|
80
|
+
"contentoh-components-library": "^21.0.26",
|
|
79
81
|
"cross-env": "^7.0.3",
|
|
80
82
|
"storybook-css-modules-preset": "^1.1.1"
|
|
81
83
|
},
|
|
82
84
|
"description": "contentoh components packed library.",
|
|
83
85
|
"main": "dist/index.js",
|
|
84
|
-
"repository": "
|
|
86
|
+
"repository": "git@github.com:Content-oh/components-library.git",
|
|
85
87
|
"author": "asael06 <asael.mb@hotmail.com>",
|
|
86
88
|
"license": "MIT"
|
|
87
89
|
}
|
|
@@ -9,15 +9,13 @@ import availableIcon from "../../../assets/images/asignationOptions/availableIco
|
|
|
9
9
|
export const AsignationOption = ({
|
|
10
10
|
profileImage,
|
|
11
11
|
asignationType = "available",
|
|
12
|
-
imageType = "profile-image",
|
|
13
12
|
name,
|
|
14
13
|
team,
|
|
15
14
|
onClick,
|
|
16
|
-
btnOnClick,
|
|
17
15
|
}) => {
|
|
18
16
|
const iconsAsignation = {
|
|
19
17
|
assigned: (
|
|
20
|
-
<button onClick={
|
|
18
|
+
<button onClick={onClick}>
|
|
21
19
|
<img src={removeAsigned} alt="remove asigned" />
|
|
22
20
|
</button>
|
|
23
21
|
),
|
|
@@ -27,17 +25,17 @@ export const AsignationOption = ({
|
|
|
27
25
|
};
|
|
28
26
|
|
|
29
27
|
return (
|
|
30
|
-
<Container
|
|
28
|
+
<Container>
|
|
31
29
|
<Avatar
|
|
32
|
-
imageType={
|
|
33
|
-
image={profileImage}
|
|
30
|
+
imageType={"profile-image"}
|
|
31
|
+
image={profileImage?.image}
|
|
34
32
|
altText={"profile image"}
|
|
35
33
|
/>
|
|
36
34
|
<div className="labels-container">
|
|
37
35
|
<p className="name-label">{name}</p>
|
|
38
36
|
<p className="team-label">{team}</p>
|
|
39
37
|
</div>
|
|
40
|
-
{
|
|
38
|
+
{iconsAsignation[asignationType]}
|
|
41
39
|
</Container>
|
|
42
40
|
);
|
|
43
41
|
};
|
|
@@ -5,12 +5,8 @@ export const Container = styled.div`
|
|
|
5
5
|
display: flex;
|
|
6
6
|
width: fit-content;
|
|
7
7
|
align-items: center;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
border-radius: 3px;
|
|
10
|
-
padding: 5px;
|
|
11
8
|
|
|
12
|
-
.profile-image
|
|
13
|
-
.medium-image {
|
|
9
|
+
.profile-image {
|
|
14
10
|
& + * {
|
|
15
11
|
margin-left: 15px;
|
|
16
12
|
}
|
|
@@ -47,10 +43,6 @@ export const Container = styled.div`
|
|
|
47
43
|
border: none;
|
|
48
44
|
}
|
|
49
45
|
|
|
50
|
-
&:hover {
|
|
51
|
-
background-color: ${GlobalColors.s3};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
46
|
& + * {
|
|
55
47
|
margin-top: 10px;
|
|
56
48
|
}
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { Container } from "./styles";
|
|
2
2
|
|
|
3
|
-
export const CheckBox = ({ id, label, onChange, isFilter
|
|
3
|
+
export const CheckBox = ({ id, label, onChange, isFilter }) => {
|
|
4
4
|
return (
|
|
5
5
|
<Container key={`check-${id}`}>
|
|
6
|
-
<input
|
|
7
|
-
type="checkbox"
|
|
8
|
-
name={id}
|
|
9
|
-
id={id}
|
|
10
|
-
onChange={onChange}
|
|
11
|
-
defaultChecked={defaultChecked}
|
|
12
|
-
/>
|
|
6
|
+
<input type="checkbox" name={id} id={id} onChange={onChange} />
|
|
13
7
|
<label htmlFor={id}>
|
|
14
8
|
{label && <p className={isFilter && "filter-text"}>{label}</p>}
|
|
15
9
|
</label>
|