contentoh-components-library 21.0.11 → 21.0.14
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 +3 -18
- package/.env.production +1 -16
- package/CHANGELOG.md +0 -40
- 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/ActivedFilter/ActivedFilter.stories.js +1 -7
- package/dist/components/atoms/ActivedFilter/index.js +4 -12
- package/dist/components/atoms/AsignationOption/AsignationOptions.stories.js +1 -7
- package/dist/components/atoms/AsignationOption/index.js +21 -33
- package/dist/components/atoms/AsignationOption/styles.js +1 -1
- package/dist/components/atoms/AtomList/AtomList.stories.js +1 -7
- package/dist/components/atoms/AtomList/index.js +9 -14
- package/dist/components/atoms/Avatar/AsignationImage.stories.js +1 -7
- package/dist/components/atoms/Avatar/index.js +8 -11
- package/dist/components/atoms/Card/Card.stories.js +1 -7
- package/dist/components/atoms/Card/index.js +4 -8
- package/dist/components/atoms/CheckBox/CheckBox.stories.js +1 -7
- package/dist/components/atoms/CheckBox/index.js +13 -19
- package/dist/components/atoms/CustomerTypeImage/CustomerTypeImage.stories.js +1 -7
- package/dist/components/atoms/CustomerTypeImage/index.js +6 -8
- package/dist/components/atoms/DropDownButton/DropDownButton.stories.js +1 -7
- package/dist/components/atoms/DropDownButton/index.js +6 -9
- package/dist/components/atoms/EditField/EditField.stories.js +1 -7
- package/dist/components/atoms/EditField/index.js +10 -17
- package/dist/components/atoms/FeatureTag/FeatureTag.stories.js +1 -7
- package/dist/components/atoms/FeatureTag/index.js +5 -11
- package/dist/components/atoms/GeneralButton/GeneralButton.stories.js +1 -7
- package/dist/components/atoms/GeneralButton/index.js +6 -13
- package/dist/components/atoms/GeneralButton/styles.js +2 -4
- package/dist/components/atoms/GeneralInput/GeneralInput.stories.js +1 -7
- package/dist/components/atoms/GeneralInput/index.js +36 -89
- package/dist/components/atoms/GeneralInput/styles.js +1 -7
- package/dist/components/atoms/GeneralTextBox/GeneralTextBox.stories.js +1 -7
- package/dist/components/atoms/GeneralTextBox/index.js +7 -12
- package/dist/components/atoms/GenericModal/GenericModal.stories.js +59 -46
- package/dist/components/atoms/GenericModal/index.js +8 -15
- package/dist/components/atoms/GenericModal/styles.js +1 -1
- package/dist/components/atoms/GradientPanel/GradientPanel.stories.js +80 -85
- package/dist/components/atoms/GradientPanel/index.js +7 -11
- package/dist/components/atoms/Graphic/Graphic.stories.js +1 -7
- package/dist/components/atoms/Graphic/index.js +5 -9
- 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/LoadImageMenu/LoadImageMenu.stories.js +1 -7
- package/dist/components/atoms/LoadImageMenu/index.js +22 -33
- package/dist/components/atoms/LogoImage/LogoImage.stories.js +1 -7
- package/dist/components/atoms/LogoImage/index.js +6 -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/MenuNotification/MenuNotification.stories.js +1 -7
- package/dist/components/atoms/MenuNotification/index.js +15 -21
- 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/MenuProfile/MenuProfile.stories.js +1 -7
- package/dist/components/atoms/MenuProfile/index.js +15 -25
- package/dist/components/atoms/Notification/Notification.stories.js +1 -5
- package/dist/components/atoms/Notification/index.js +9 -15
- package/dist/components/atoms/PriorityFlag/PriorityFlag.stories.js +1 -7
- package/dist/components/atoms/PriorityFlag/index.js +5 -9
- package/dist/components/atoms/ProductImage/ProductImage.stories.js +1 -7
- package/dist/components/atoms/ProductImage/index.js +8 -11
- package/dist/components/atoms/ProductImage/styles.js +1 -1
- package/dist/components/atoms/ProductPercentCard/Percent.stories.js +1 -7
- package/dist/components/atoms/ProductPercentCard/index.js +14 -21
- package/dist/components/atoms/ProgressBar/ProgressBar.stories.js +1 -7
- package/dist/components/atoms/ProgressBar/index.js +4 -9
- package/dist/components/atoms/ProgressBar/styles.js +5 -3
- package/dist/components/atoms/ScreenHeader/ScreenHeader.stories.js +1 -7
- package/dist/components/atoms/ScreenHeader/index.js +3 -9
- package/dist/components/atoms/ScreenHeader/styles.js +1 -1
- package/dist/components/atoms/SideMenuButton/SideMenuButton.stories.js +1 -5
- package/dist/components/atoms/SideMenuButton/index.js +4 -10
- package/dist/components/atoms/StatusTag/StatusTag.stories.js +1 -7
- package/dist/components/atoms/StatusTag/index.js +3 -43
- package/dist/components/atoms/StatusTag/styles.js +1 -1
- package/dist/components/atoms/TabSection/TabSection.stories.js +1 -7
- package/dist/components/atoms/TabSection/index.js +3 -8
- package/dist/components/atoms/ValidationPanel/ValidationPanel.stories.js +1 -7
- package/dist/components/atoms/ValidationPanel/index.js +28 -41
- 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/AddProvidersAndProducts/AddProvidersAndProducts.stories.js +1 -5
- package/dist/components/molecules/AddProvidersAndProducts/index.js +12 -18
- 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/AssignedWork/AssignedWork.stories.js +1 -5
- package/dist/components/molecules/AssignedWork/index.js +30 -36
- package/dist/components/molecules/AvatarAndValidation/AvatarAndValidation.stories.js +1 -7
- package/dist/components/molecules/AvatarAndValidation/index.js +17 -32
- package/dist/components/molecules/AvatarAndValidation/styles.js +1 -1
- package/dist/components/molecules/CarouselImagesLogin/CarouselImagesLogin.stories.js +1 -5
- package/dist/components/molecules/CarouselImagesLogin/index.js +16 -20
- package/dist/components/molecules/EditionActiveImage/EditionActiveImage.stories.js +1 -7
- package/dist/components/molecules/EditionActiveImage/index.js +10 -14
- package/dist/components/molecules/FeaturesBar/FeaturesBar.stories.js +1 -7
- package/dist/components/molecules/FeaturesBar/index.js +9 -11
- package/dist/components/molecules/GalleryElement/GalleryElement.stories.js +1 -7
- package/dist/components/molecules/GalleryElement/index.js +32 -99
- package/dist/components/molecules/GalleryElement/styles.js +1 -1
- package/dist/components/molecules/GalleryHeader/GalleryHeader.stories.js +1 -7
- package/dist/components/molecules/GalleryHeader/index.js +6 -46
- package/dist/components/molecules/GalleryHeader/styles.js +1 -1
- package/dist/components/molecules/HeaderTop/HeaderTop.stories.js +1 -7
- package/dist/components/molecules/HeaderTop/index.js +7 -10
- package/dist/components/molecules/ImageSelector/ImageSelector.stories.js +1 -7
- package/dist/components/molecules/ImageSelector/index.js +14 -14
- package/dist/components/molecules/LoginPasswordStrength/LoginPasswordStrength.stories.js +1 -7
- package/dist/components/molecules/LoginPasswordStrength/index.js +38 -60
- package/dist/components/molecules/ParentComponent/ParentComponent.stories.js +2 -10
- package/dist/components/molecules/ParentComponent/index.js +5 -9
- package/dist/components/molecules/PayMethod/PayMethod.stories.js +1 -7
- package/dist/components/molecules/PayMethod/index.js +33 -38
- package/dist/components/molecules/PlanSelection/PlanSelection.stories.js +1 -7
- package/dist/components/molecules/PlanSelection/index.js +11 -14
- package/dist/components/molecules/ProductNameHeader/ProductNameHeader.stories.js +1 -7
- package/dist/components/molecules/ProductNameHeader/index.js +15 -18
- package/dist/components/molecules/ProductNotification/ProductNotification.stories.js +1 -7
- package/dist/components/molecules/ProductNotification/index.js +9 -12
- package/dist/components/molecules/ProfileHeader/ProfileHeader.stories.js +1 -5
- package/dist/components/molecules/ProfileHeader/index.js +15 -21
- package/dist/components/molecules/SidebarNotification/SidebarNotification.stories.js +1 -5
- package/dist/components/molecules/SidebarNotification/index.js +37 -43
- package/dist/components/molecules/StatusAsignationInfo/StatusAsignationInfo.stories.js +1 -7
- package/dist/components/molecules/StatusAsignationInfo/index.js +76 -113
- package/dist/components/molecules/StatusAsignationInfo/styles.js +1 -1
- package/dist/components/molecules/TableHeader/TableHeader.stories.js +1 -7
- package/dist/components/molecules/TableHeader/index.js +10 -21
- package/dist/components/molecules/TableHeader/styles.js +1 -1
- package/dist/components/molecules/TableRow/TableRow.stories.js +1 -7
- package/dist/components/molecules/TableRow/index.js +7 -11
- package/dist/components/molecules/TabsMenu/TabsMenu.stories.js +1 -7
- package/dist/components/molecules/TabsMenu/index.js +10 -13
- package/dist/components/molecules/TagAndInput/TagAndInput.stories.js +1 -7
- package/dist/components/molecules/TagAndInput/index.js +12 -38
- package/dist/components/organisms/FullProductNameHeader/FullProductNameHeader.stories.js +1 -7
- package/dist/components/organisms/FullProductNameHeader/index.js +16 -45
- package/dist/components/organisms/FullTabsMenu/FullTabsMenu.stories.js +1 -7
- package/dist/components/organisms/FullTabsMenu/index.js +13 -30
- package/dist/components/organisms/Fullplan/FullPlan.stories.js +1 -7
- package/dist/components/organisms/Fullplan/index.js +15 -23
- package/dist/components/organisms/ImageDataTable/ImageDataTable.stories.js +1 -7
- package/dist/components/organisms/ImageDataTable/index.js +18 -96
- package/dist/components/organisms/ImagePreviewer/ImagePreviewer.stories.js +1 -7
- package/dist/components/organisms/ImagePreviewer/index.js +8 -12
- package/dist/components/organisms/ImagesGroup/index.js +1 -5
- package/dist/components/organisms/InputGroup/InputGroup.stories.js +1 -7
- package/dist/components/organisms/InputGroup/index.js +26 -49
- package/dist/components/organisms/InputGroup/styles.js +1 -1
- package/dist/components/organisms/ProductImageModal/ProductImageModal.stories.js +1 -7
- package/dist/components/organisms/ProductImageModal/index.js +41 -54
- package/dist/components/organisms/ProductImageModal/styles.js +1 -1
- package/dist/components/pages/ChangePasswordLogin/ChangePasswordLogin.stories.js +1 -5
- package/dist/components/pages/ChangePasswordLogin/index.js +33 -36
- package/dist/components/pages/CustomerLogin/CustomerLogin.stories.js +47 -52
- package/dist/components/pages/CustomerLogin/index.js +12 -18
- package/dist/components/pages/CustomerPayMethod/CustomerPayMethod.stories.js +28 -36
- package/dist/components/pages/CustomerPayMethod/index.js +12 -18
- package/dist/components/pages/CustomerType/CustomerType.stories.js +22 -21
- package/dist/components/pages/CustomerType/index.js +12 -18
- package/dist/components/pages/EmailResetPassword/EmailResetPassword.stories.js +1 -5
- package/dist/components/pages/EmailResetPassword/index.js +39 -49
- package/dist/components/pages/OnboardPlan/OnboardPlan.stories.js +9 -12
- package/dist/components/pages/OnboardPlan/index.js +12 -18
- package/dist/components/pages/RegistrationLoginFirstStep/RegistrationLoginFirstStep.stories.js +1 -5
- package/dist/components/pages/RegistrationLoginFirstStep/index.js +104 -155
- package/dist/components/pages/RegistrationLoginSecondStep/RegistrationLoginSecondStep.stories.js +1 -5
- package/dist/components/pages/RegistrationLoginSecondStep/index.js +63 -74
- package/dist/components/pages/RegistrationLoginThirdStep/RegistrationLoginThirdStep.stories.js +1 -5
- package/dist/components/pages/RegistrationLoginThirdStep/index.js +65 -79
- package/dist/components/pages/RetailerPlan/RetailerPlan.stories.js +10 -13
- package/dist/components/pages/RetailerPlan/index.js +12 -18
- package/dist/components/pages/RetailerProductEdition/RetailerProductEdition.stories.js +311 -98
- package/dist/components/pages/RetailerProductEdition/index.js +82 -1640
- package/dist/components/pages/RetailerProductEdition/styles.js +1 -1
- package/dist/components/pages/VerificationCodeResetPassword/VerificationCodeResetPassword.stories.js +1 -5
- package/dist/components/pages/VerificationCodeResetPassword/index.js +51 -62
- package/dist/global-files/data.js +53 -190
- package/dist/global-files/variables.js +0 -1
- package/package.json +5 -19
- package/src/assets/images/approveRejetPanel/approveRejetPanelCancel.svg +4 -0
- package/src/assets/images/approveRejetPanel/approveRejetPanelDelete.svg +14 -0
- package/src/assets/images/approveRejetPanel/approveRejetPanelExclude.svg +3 -0
- package/src/assets/images/approveRejetPanel/approveRejetPanelSave.svg +4 -0
- package/src/assets/images/listCommercialRetailers/listCommercialRetailers.svg +3 -0
- package/src/assets/images/menuProductImage/menuProductImage.svg +9 -0
- package/src/assets/images/menuProductImage/menuProductImageButton.svg +3 -0
- package/src/assets/images/registrationLoginFirstStep/countrySelectArgentina.svg +1 -0
- package/src/assets/images/registrationLoginFirstStep/countrySelectColombia.svg +1 -0
- package/src/assets/images/registrationLoginFirstStep/countrySelectCostaRica.svg +1 -0
- package/src/assets/images/registrationLoginFirstStep/countrySelectEcuador.svg +1 -0
- package/src/assets/images/registrationLoginFirstStep/countrySelectElSalvador.svg +2364 -0
- package/src/assets/images/registrationLoginFirstStep/countrySelectHonduras.svg +1 -0
- package/src/assets/images/registrationLoginFirstStep/countrySelectMexico.svg +373 -0
- package/src/assets/images/registrationLoginFirstStep/countrySelectPanam/303/241.svg +1 -0
- package/src/assets/images/registrationLoginFirstStep/countrySelectPer/303/272.svg +1 -0
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFAQS.svg +12 -0
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageFocusProduct.svg +11 -0
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageGroup.svg +3 -0
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageLogo.svg +12 -0
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageSpeedometer.svg +12 -0
- package/src/assets/images/verticalSideMenuMainPage/verticalSideMenuMainPageTask.svg +10 -0
- 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/ListCommercialRetailers/ListCommercialRetailers.stories.js +17 -0
- package/src/components/atoms/ListCommercialRetailers/index.js +45 -0
- package/src/components/atoms/ListCommercialRetailers/styles.js +36 -0
- package/src/components/atoms/MenuCommercialRetailers/MenuCommercialRetailers.stories.js +19 -0
- package/src/components/atoms/MenuCommercialRetailers/index.js +14 -0
- package/src/components/atoms/MenuCommercialRetailers/styles.js +24 -0
- package/src/components/atoms/MenuProductImage/MenuProductImage.stories.js +14 -0
- package/src/components/atoms/MenuProductImage/index.js +63 -0
- package/src/components/atoms/MenuProductImage/styles.js +66 -0
- 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/atoms/VerticalSideMenuMainPage/VerticalSideMenuMainPage.stories.js +12 -0
- package/src/components/atoms/VerticalSideMenuMainPage/index.js +23 -0
- package/src/components/atoms/VerticalSideMenuMainPage/styles.js +24 -0
- package/src/components/molecules/ApproveRejetPanel/ApproveRejetPanel.stories.js +14 -0
- package/src/components/molecules/ApproveRejetPanel/index.js +36 -0
- package/src/components/molecules/ApproveRejetPanel/styles.js +13 -0
- package/src/components/molecules/AvatarAndValidation/index.js +6 -24
- package/src/components/molecules/AvatarAndValidation/styles.js +1 -1
- 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/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/organisms/FullProductNameHeader/index.js +7 -28
- package/src/components/organisms/FullTabsMenu/index.js +4 -16
- 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 +315 -95
- package/src/components/pages/RetailerProductEdition/index.js +46 -1235
- package/src/components/pages/RetailerProductEdition/styles.js +4 -67
- package/src/global-files/data.js +57 -138
- package/src/global-files/global-styles.css +0 -1
- package/src/global-files/variables.js +0 -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/CharCounter.stories.js +0 -31
- 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/Wysiwyg.stories.js +0 -30
- 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/Loading/index.js +0 -26
- package/dist/components/atoms/Loading/styles.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/dist/global-files/fonts.css +0 -45
- package/dist/global-files/global-styles.css +0 -41
- 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/Loading/index.js +0 -12
- package/src/components/atoms/Loading/styles.js +0 -57
- 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
|
@@ -13,7 +13,7 @@ var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
|
13
13
|
|
|
14
14
|
var _templateObject;
|
|
15
15
|
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n
|
|
16
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n height: 100%;\n\n .data-container {\n display: flex;\n flex: 0%;\n height: calc(100% - ", "px);\n .image-data-panel {\n width: 340px;\n\n & + * {\n margin-left: 10px;\n }\n }\n\n .product-information {\n width: 100%;\n display: flex;\n flex-direction: column;\n\n .services-information-container {\n overflow: auto;\n }\n\n .image-services {\n display: grid;\n grid-template-columns: repeat(auto-fill, 179px);\n column-gap: 15px;\n row-gap: 15px;\n }\n }\n }\n"])), function (_ref) {
|
|
17
17
|
var headerTop = _ref.headerTop;
|
|
18
18
|
return headerTop;
|
|
19
19
|
});
|
package/dist/components/pages/VerificationCodeResetPassword/VerificationCodeResetPassword.stories.js
CHANGED
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.VerificationCodeResetPasswordDefault = void 0;
|
|
9
9
|
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
10
|
var _index = require("./index");
|
|
13
11
|
|
|
14
12
|
var _loginImage = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/loginImage.svg"));
|
|
@@ -17,8 +15,6 @@ var _login = _interopRequireDefault(require("../../../assets/images/carouselImag
|
|
|
17
15
|
|
|
18
16
|
var _login2 = _interopRequireDefault(require("../../../assets/images/carouselImagesLogin/login3.svg"));
|
|
19
17
|
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
|
|
22
18
|
var _default = {
|
|
23
19
|
title: "Components/pages/VerificationCodeResetPassword",
|
|
24
20
|
component: _index.VerificationCodeResetPassword
|
|
@@ -26,7 +22,7 @@ var _default = {
|
|
|
26
22
|
exports.default = _default;
|
|
27
23
|
|
|
28
24
|
var Template = function Template(args) {
|
|
29
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/React.createElement(_index.VerificationCodeResetPassword, args);
|
|
30
26
|
};
|
|
31
27
|
|
|
32
28
|
var VerificationCodeResetPasswordDefault = Template.bind({});
|
|
@@ -29,8 +29,6 @@ var _GeneralButton = require("../../atoms/GeneralButton");
|
|
|
29
29
|
|
|
30
30
|
var _utils = require("./utils");
|
|
31
31
|
|
|
32
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
33
|
-
|
|
34
32
|
var VerificationCodeResetPassword = function VerificationCodeResetPassword(_ref) {
|
|
35
33
|
var _ref$imageArrayCarous = _ref.imageArrayCarousel,
|
|
36
34
|
imageArrayCarousel = _ref$imageArrayCarous === void 0 ? [] : _ref$imageArrayCarous,
|
|
@@ -51,71 +49,62 @@ var VerificationCodeResetPassword = function VerificationCodeResetPassword(_ref)
|
|
|
51
49
|
(0, _react.useEffect)(function () {
|
|
52
50
|
setInputCodeVerificationAll(document.querySelectorAll("[id^='verificationCodeInput']"));
|
|
53
51
|
}, []);
|
|
54
|
-
var loginRight = [/*#__PURE__*/
|
|
52
|
+
var loginRight = [/*#__PURE__*/React.createElement(_LogoImage.LogoImage, {
|
|
53
|
+
key: "1"
|
|
54
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
55
55
|
className: "credenciales",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
56
|
+
key: "2"
|
|
57
|
+
}, /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
|
|
58
|
+
fontFamily: _variables.FontFamily.AvenirNext,
|
|
59
|
+
color: _variables.GlobalColors.s5,
|
|
60
|
+
text: "Ingresa tus credenciales"
|
|
61
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
62
62
|
className: "user",
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
children: "Ingrese su c\xF3digo de verificaci\xF3n"
|
|
81
|
-
})]
|
|
82
|
-
}, "3"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
63
|
+
key: "3"
|
|
64
|
+
}, /*#__PURE__*/React.createElement(_ScreenHeader.ScreenHeader, {
|
|
65
|
+
text: "Ingresa el código de verificación enviado a:",
|
|
66
|
+
headerType: "input-name-header"
|
|
67
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
68
|
+
className: "verification-code"
|
|
69
|
+
}, inputPositions.map(function (position) {
|
|
70
|
+
return /*#__PURE__*/React.createElement(_GeneralInput.GeneralInput, {
|
|
71
|
+
inputId: "verificationCodeInput".concat(position),
|
|
72
|
+
inputType: "text",
|
|
73
|
+
inputPlaceholder: "X",
|
|
74
|
+
validateInput: _utils.validateInput,
|
|
75
|
+
inputsArray: inputCodeVerificationAll,
|
|
76
|
+
position: position,
|
|
77
|
+
maxLength: "1"
|
|
78
|
+
});
|
|
79
|
+
})), emptyVerificationCode && /*#__PURE__*/React.createElement("label", null, "Ingrese su c\xF3digo de verificaci\xF3n")), /*#__PURE__*/React.createElement("div", {
|
|
83
80
|
className: "resend-code",
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
})
|
|
87
|
-
}, "4"), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
81
|
+
key: "4"
|
|
82
|
+
}, /*#__PURE__*/React.createElement("p", null, "Reenviar c\xF3digo de verificaci\xF3n")), /*#__PURE__*/React.createElement("div", {
|
|
88
83
|
className: "button-center",
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
}
|
|
84
|
+
key: "5"
|
|
85
|
+
}, /*#__PURE__*/React.createElement(_GeneralButton.Button, {
|
|
86
|
+
buttonType: "general-default-button",
|
|
87
|
+
label: "Enviar",
|
|
88
|
+
onClick: function onClick(e) {
|
|
89
|
+
return (0, _utils.validate)(inputCodeVerificationAll, setEmptyVerificationCode);
|
|
90
|
+
}
|
|
91
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
97
92
|
className: "reset-password",
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
componentsArray: loginRight,
|
|
114
|
-
panelType: "home-login",
|
|
115
|
-
panelColor: _variables.GlobalColors.white
|
|
116
|
-
})
|
|
117
|
-
})]
|
|
118
|
-
});
|
|
93
|
+
key: "6"
|
|
94
|
+
}, /*#__PURE__*/React.createElement("p", null, "Regresar..."))];
|
|
95
|
+
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
className: "home-retailer"
|
|
97
|
+
}, /*#__PURE__*/React.createElement(_CarouselImagesLogin.CarouselImagesLogin, {
|
|
98
|
+
panelImg: imageArrayCarousel,
|
|
99
|
+
panelText: textCarousel,
|
|
100
|
+
panelColor: backogroundColorCarousel
|
|
101
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
className: "home-login-retailer"
|
|
103
|
+
}, /*#__PURE__*/React.createElement(_GradientPanel.GradientPanel, {
|
|
104
|
+
componentsArray: loginRight,
|
|
105
|
+
panelType: "home-login",
|
|
106
|
+
panelColor: _variables.GlobalColors.white
|
|
107
|
+
})));
|
|
119
108
|
};
|
|
120
109
|
|
|
121
110
|
exports.VerificationCodeResetPassword = VerificationCodeResetPassword;
|
|
@@ -5,46 +5,66 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.getRetailerServices = exports.
|
|
8
|
+
exports.getRetailerServices = exports.getImage = void 0;
|
|
9
9
|
|
|
10
10
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
11
|
|
|
12
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
13
|
-
|
|
14
12
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/asyncToGenerator"));
|
|
15
13
|
|
|
16
14
|
var _axios = _interopRequireDefault(require("axios"));
|
|
17
15
|
|
|
18
16
|
var _jsBase = require("js-base64");
|
|
19
17
|
|
|
20
|
-
var
|
|
18
|
+
var _defaultUpdate = _interopRequireDefault(require("../assets/images/defaultImages/defaultUpdate.png"));
|
|
21
19
|
|
|
22
20
|
var getRetailerServices = /*#__PURE__*/function () {
|
|
23
|
-
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(
|
|
24
|
-
var _images$
|
|
21
|
+
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
22
|
+
var _images$attrForImgs, _images$attrForImgs$g;
|
|
25
23
|
|
|
26
|
-
var responseArray, datasheets, descriptions, images;
|
|
24
|
+
var responseArray, datasheets, descriptions, images, code;
|
|
27
25
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
28
26
|
while (1) {
|
|
29
27
|
switch (_context.prev = _context.next) {
|
|
30
28
|
case 0:
|
|
31
29
|
_context.next = 2;
|
|
32
|
-
return Promise.all([_axios.default.post("".concat(process.env.REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT, "?idCategory=
|
|
30
|
+
return Promise.all([_axios.default.post("".concat(process.env.REACT_APP_ARTICLE_DATA_DATASHEET_ENDPOINT, "?idCategory=846&articleId=238&version=2")), _axios.default.get("".concat(process.env.REACT_APP_ARTICLE_DATA_DESCRIPTION_ENDPOINT, "?idCategory=846&articleId=238&version=2")), _axios.default.post("".concat(process.env.REACT_APP_ARTICLE_DATA_IMAGES_ENDPOINT, "?idCategory=846&articleId=238&version=2"))]);
|
|
33
31
|
|
|
34
32
|
case 2:
|
|
35
33
|
responseArray = _context.sent;
|
|
36
34
|
datasheets = JSON.parse(responseArray[0].data.body).data;
|
|
37
35
|
descriptions = JSON.parse(responseArray[1].data.body).data;
|
|
38
36
|
images = JSON.parse(responseArray[2].data.body).data;
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
code = images === null || images === void 0 ? void 0 : (_images$attrForImgs = images.attrForImgs) === null || _images$attrForImgs === void 0 ? void 0 : (_images$attrForImgs$g = _images$attrForImgs.general[0]) === null || _images$attrForImgs$g === void 0 ? void 0 : _images$attrForImgs$g.value;
|
|
38
|
+
images === null || images === void 0 ? void 0 : images.values.map(function (value) {
|
|
39
|
+
value.imageName = images.inputs.filter(function (e) {
|
|
41
40
|
return e.id === value.image_id;
|
|
42
|
-
}).name;
|
|
43
|
-
|
|
41
|
+
})[0].name;
|
|
42
|
+
value.data = [{
|
|
43
|
+
feature: "Tipo de empaque",
|
|
44
|
+
value: images === null || images === void 0 ? void 0 : images.imagePackagingType[(value === null || value === void 0 ? void 0 : value.packing_type) - 1].name
|
|
45
|
+
}, {
|
|
46
|
+
feature: "Tipo de imagen",
|
|
47
|
+
value: images === null || images === void 0 ? void 0 : images.imageType.filter(function (e) {
|
|
48
|
+
return value.image_type == e.id;
|
|
49
|
+
})[0].name
|
|
50
|
+
}, {
|
|
51
|
+
feature: "Código de Fabricante",
|
|
52
|
+
value: code
|
|
53
|
+
}, {
|
|
54
|
+
feature: "Formato",
|
|
55
|
+
value: value.src.split(".")[1]
|
|
56
|
+
}, {
|
|
57
|
+
feature: "Tamaño de imagen",
|
|
58
|
+
value: "".concat(value.width, "x").concat(value.height)
|
|
59
|
+
}, {
|
|
60
|
+
feature: "Subfijo de imagen",
|
|
61
|
+
value: ""
|
|
62
|
+
}];
|
|
63
|
+
return value;
|
|
44
64
|
});
|
|
45
65
|
return _context.abrupt("return", [datasheets, descriptions, images]);
|
|
46
66
|
|
|
47
|
-
case
|
|
67
|
+
case 9:
|
|
48
68
|
case "end":
|
|
49
69
|
return _context.stop();
|
|
50
70
|
}
|
|
@@ -52,29 +72,35 @@ var getRetailerServices = /*#__PURE__*/function () {
|
|
|
52
72
|
}, _callee);
|
|
53
73
|
}));
|
|
54
74
|
|
|
55
|
-
return function getRetailerServices(
|
|
75
|
+
return function getRetailerServices() {
|
|
56
76
|
return _ref.apply(this, arguments);
|
|
57
77
|
};
|
|
58
78
|
}();
|
|
59
79
|
|
|
60
80
|
exports.getRetailerServices = getRetailerServices;
|
|
61
81
|
|
|
62
|
-
var getImage = function getImage(imageGeneral) {
|
|
63
|
-
var width = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 250;
|
|
64
|
-
var height = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 250;
|
|
65
|
-
|
|
82
|
+
var getImage = function getImage(imageGeneral, width, height) {
|
|
66
83
|
try {
|
|
67
84
|
var image = imageGeneral;
|
|
68
85
|
var ext = image.src.split(".");
|
|
69
86
|
var uuid = ext[0].split("-");
|
|
70
|
-
return
|
|
87
|
+
return {
|
|
88
|
+
id: image.id,
|
|
89
|
+
image_id: image.image_id,
|
|
90
|
+
packing_type: +image.packing_type,
|
|
91
|
+
image_type: +image.image_type,
|
|
92
|
+
name: image.name,
|
|
93
|
+
imageName: image.imageName,
|
|
94
|
+
data: image.data,
|
|
71
95
|
version: image.id_version,
|
|
96
|
+
width: image.width,
|
|
97
|
+
height: image.height,
|
|
72
98
|
ext: ext[ext.length - 1],
|
|
73
99
|
uuid: uuid.reduce(function (prevVal, currVal, idx) {
|
|
74
100
|
if (idx < 2) return "";else return idx === 2 ? currVal : prevVal + "-" + currVal;
|
|
75
|
-
}, "") || (
|
|
101
|
+
}, "") || uuidv4(),
|
|
76
102
|
srcDB: image.src,
|
|
77
|
-
src:
|
|
103
|
+
src: "https://d24s337exbt5zr.cloudfront.net/" + _jsBase.Base64.encode(JSON.stringify({
|
|
78
104
|
bucket: process.env.REACT_APP_IMAGES_BUCKET,
|
|
79
105
|
key: image.src,
|
|
80
106
|
edits: {
|
|
@@ -90,177 +116,14 @@ var getImage = function getImage(imageGeneral) {
|
|
|
90
116
|
}
|
|
91
117
|
}
|
|
92
118
|
}
|
|
93
|
-
}))
|
|
94
|
-
}
|
|
119
|
+
}))
|
|
120
|
+
};
|
|
95
121
|
} catch (err) {
|
|
96
122
|
console.log("err", err);
|
|
97
|
-
return
|
|
123
|
+
return {
|
|
124
|
+
src: _defaultUpdate.default
|
|
125
|
+
};
|
|
98
126
|
}
|
|
99
127
|
};
|
|
100
128
|
|
|
101
|
-
exports.getImage = getImage;
|
|
102
|
-
|
|
103
|
-
var getPercentage = /*#__PURE__*/function () {
|
|
104
|
-
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
|
105
|
-
var params,
|
|
106
|
-
func,
|
|
107
|
-
_args3 = arguments;
|
|
108
|
-
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
109
|
-
while (1) {
|
|
110
|
-
switch (_context3.prev = _context3.next) {
|
|
111
|
-
case 0:
|
|
112
|
-
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
|
113
|
-
|
|
114
|
-
func = /*#__PURE__*/function () {
|
|
115
|
-
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
|
116
|
-
var dataToSend;
|
|
117
|
-
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
118
|
-
while (1) {
|
|
119
|
-
switch (_context2.prev = _context2.next) {
|
|
120
|
-
case 0:
|
|
121
|
-
dataToSend = [];
|
|
122
|
-
params.data.forEach(function (product) {
|
|
123
|
-
params.data[0].retailers.forEach(function (retailer) {
|
|
124
|
-
dataToSend.push(product.article ? {
|
|
125
|
-
id_article: product.article.id_article,
|
|
126
|
-
id_category: product.article.id_category,
|
|
127
|
-
id_retailer: retailer.id,
|
|
128
|
-
version: product.version,
|
|
129
|
-
upc: product.article.upc,
|
|
130
|
-
name: product.article.name,
|
|
131
|
-
retailerName: retailer.name
|
|
132
|
-
} : {
|
|
133
|
-
id_article: product.product.id_article,
|
|
134
|
-
id_category: product.product.id_category,
|
|
135
|
-
id_retailer: retailer.id,
|
|
136
|
-
version: product.product.version,
|
|
137
|
-
upc: product.product.upc,
|
|
138
|
-
name: product.product.name,
|
|
139
|
-
retailerName: retailer.name
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
_context2.next = 4;
|
|
144
|
-
return _axios.default.post(process.env.REACT_APP_VALID_EXPORT_ENDPOINT, {
|
|
145
|
-
data: dataToSend
|
|
146
|
-
}, {
|
|
147
|
-
headers: {
|
|
148
|
-
Authorization: sessionStorage.getItem("jwt")
|
|
149
|
-
}
|
|
150
|
-
}).then(function (response) {
|
|
151
|
-
return response.data;
|
|
152
|
-
}).catch(function (err) {
|
|
153
|
-
return console.log(err, "Errror");
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
case 4:
|
|
157
|
-
return _context2.abrupt("return", _context2.sent);
|
|
158
|
-
|
|
159
|
-
case 5:
|
|
160
|
-
case "end":
|
|
161
|
-
return _context2.stop();
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}, _callee2);
|
|
165
|
-
}));
|
|
166
|
-
|
|
167
|
-
return function func() {
|
|
168
|
-
return _ref3.apply(this, arguments);
|
|
169
|
-
};
|
|
170
|
-
}();
|
|
171
|
-
|
|
172
|
-
_context3.next = 4;
|
|
173
|
-
return func();
|
|
174
|
-
|
|
175
|
-
case 4:
|
|
176
|
-
return _context3.abrupt("return", _context3.sent);
|
|
177
|
-
|
|
178
|
-
case 5:
|
|
179
|
-
case "end":
|
|
180
|
-
return _context3.stop();
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
}, _callee3);
|
|
184
|
-
}));
|
|
185
|
-
|
|
186
|
-
return function getPercentage() {
|
|
187
|
-
return _ref2.apply(this, arguments);
|
|
188
|
-
};
|
|
189
|
-
}();
|
|
190
|
-
|
|
191
|
-
exports.getPercentage = getPercentage;
|
|
192
|
-
|
|
193
|
-
var getProfilePicture = function getProfilePicture(userId, width, height) {
|
|
194
|
-
try {
|
|
195
|
-
return "https://d24s337exbt5zr.cloudfront.net/" + _jsBase.Base64.encode(JSON.stringify({
|
|
196
|
-
bucket: process.env.REACT_APP_IMAGES_PROFILE_BUCKET,
|
|
197
|
-
key: "id-".concat(userId, "/").concat(userId, ".png"),
|
|
198
|
-
edits: {
|
|
199
|
-
resize: {
|
|
200
|
-
width: width,
|
|
201
|
-
height: height,
|
|
202
|
-
fit: "contain",
|
|
203
|
-
background: {
|
|
204
|
-
r: 255,
|
|
205
|
-
g: 255,
|
|
206
|
-
b: 255,
|
|
207
|
-
alpha: 0
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}));
|
|
212
|
-
} catch (err) {
|
|
213
|
-
console.log("err", err);
|
|
214
|
-
return defaultUpdate;
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
exports.getProfilePicture = getProfilePicture;
|
|
219
|
-
|
|
220
|
-
var fetchUsers = /*#__PURE__*/function () {
|
|
221
|
-
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(auth) {
|
|
222
|
-
var usersPromises, usersGroups, header, usersResponse;
|
|
223
|
-
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
224
|
-
while (1) {
|
|
225
|
-
switch (_context4.prev = _context4.next) {
|
|
226
|
-
case 0:
|
|
227
|
-
usersPromises = [];
|
|
228
|
-
usersGroups = [];
|
|
229
|
-
header = {
|
|
230
|
-
headers: {
|
|
231
|
-
Authorization: auth
|
|
232
|
-
}
|
|
233
|
-
};
|
|
234
|
-
/**
|
|
235
|
-
* 7 will fetch all text specialists
|
|
236
|
-
* 8 will fetch all img specialists
|
|
237
|
-
* 4 will fetch all text facilitators
|
|
238
|
-
* 5 will fetch all img facilitators
|
|
239
|
-
* 6 will fetch all auditors
|
|
240
|
-
*/
|
|
241
|
-
|
|
242
|
-
usersPromises.push(_axios.default.get("".concat(process.env.REACT_APP_USER_ENDPOINT, "?fetchRole=7"), header), _axios.default.get("".concat(process.env.REACT_APP_USER_ENDPOINT, "?fetchRole=8"), header), _axios.default.get("".concat(process.env.REACT_APP_USER_ENDPOINT, "?fetchRole=4"), header), _axios.default.get("".concat(process.env.REACT_APP_USER_ENDPOINT, "?fetchRole=5"), header), _axios.default.get("".concat(process.env.REACT_APP_USER_ENDPOINT, "?fetchRole=6"), header));
|
|
243
|
-
_context4.next = 6;
|
|
244
|
-
return Promise.all(usersPromises);
|
|
245
|
-
|
|
246
|
-
case 6:
|
|
247
|
-
usersResponse = _context4.sent;
|
|
248
|
-
usersResponse.forEach(function (item, i) {
|
|
249
|
-
usersGroups.push(item.data.data);
|
|
250
|
-
});
|
|
251
|
-
return _context4.abrupt("return", usersGroups);
|
|
252
|
-
|
|
253
|
-
case 9:
|
|
254
|
-
case "end":
|
|
255
|
-
return _context4.stop();
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}, _callee4);
|
|
259
|
-
}));
|
|
260
|
-
|
|
261
|
-
return function fetchUsers(_x4) {
|
|
262
|
-
return _ref4.apply(this, arguments);
|
|
263
|
-
};
|
|
264
|
-
}();
|
|
265
|
-
|
|
266
|
-
exports.fetchUsers = fetchUsers;
|
|
129
|
+
exports.getImage = getImage;
|
package/package.json
CHANGED
|
@@ -1,29 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentoh-components-library",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.14",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@babel/runtime": "^7.17.2",
|
|
6
6
|
"@storybook/addon-postcss": "^2.0.0",
|
|
7
7
|
"@testing-library/jest-dom": "^5.11.4",
|
|
8
8
|
"@testing-library/react": "^11.1.0",
|
|
9
9
|
"@testing-library/user-event": "^12.1.10",
|
|
10
|
-
"aws-sdk": "^2.1088.0",
|
|
11
10
|
"axios": "^0.25.0",
|
|
12
11
|
"babel-preset-react-app": "^10.0.1",
|
|
13
12
|
"chart.js": "^3.7.1",
|
|
14
|
-
"draft-js": "^0.11.7",
|
|
15
|
-
"file-saver": "^2.0.5",
|
|
16
13
|
"js-base64": "^3.7.2",
|
|
17
14
|
"prop-types": "^15.7.2",
|
|
18
15
|
"react": "^17.0.2",
|
|
19
|
-
"react-chartjs-2": "^4.0
|
|
16
|
+
"react-chartjs-2": "^4.1.0",
|
|
20
17
|
"react-dom": "^17.0.2",
|
|
21
|
-
"react-draft-wysiwyg": "^1.14.7",
|
|
22
|
-
"react-dropzone": "^12.0.4",
|
|
23
18
|
"react-image-fallback": "^8.0.0",
|
|
24
|
-
"react-quill": "^1.3.5",
|
|
25
19
|
"styled-components": "^5.3.3",
|
|
26
|
-
"uuid": "^8.3.2",
|
|
27
20
|
"web-vitals": "^1.0.1"
|
|
28
21
|
},
|
|
29
22
|
"scripts": {
|
|
@@ -56,24 +49,17 @@
|
|
|
56
49
|
{
|
|
57
50
|
"absoluteRuntime": false
|
|
58
51
|
}
|
|
59
|
-
],
|
|
60
|
-
"@babel/preset-env",
|
|
61
|
-
[
|
|
62
|
-
"@babel/preset-react",
|
|
63
|
-
{
|
|
64
|
-
"runtime": "automatic"
|
|
65
|
-
}
|
|
66
52
|
]
|
|
67
53
|
]
|
|
68
54
|
},
|
|
69
55
|
"devDependencies": {
|
|
70
|
-
"@babel/cli": "^7.17.
|
|
56
|
+
"@babel/cli": "^7.17.0",
|
|
71
57
|
"@babel/core": "^7.16.0",
|
|
72
58
|
"@storybook/addon-actions": "^6.4.1",
|
|
73
59
|
"@storybook/addon-essentials": "^6.4.1",
|
|
74
60
|
"@storybook/addon-links": "^6.4.1",
|
|
75
61
|
"@storybook/react": "^6.4.1",
|
|
76
|
-
"auto": "^10.
|
|
62
|
+
"auto": "^10.32.6",
|
|
77
63
|
"babel-loader": "^8.2.3",
|
|
78
64
|
"chromatic": "^6.3.3",
|
|
79
65
|
"cross-env": "^7.0.3",
|
|
@@ -81,7 +67,7 @@
|
|
|
81
67
|
},
|
|
82
68
|
"description": "contentoh components packed library.",
|
|
83
69
|
"main": "dist/index.js",
|
|
84
|
-
"repository": "
|
|
70
|
+
"repository": "git@github.com:Content-oh/components-library.git",
|
|
85
71
|
"author": "asael06 <asael.mb@hotmail.com>",
|
|
86
72
|
"license": "MIT"
|
|
87
73
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M15 0C6.72867 0 0 6.72867 0 15C0 23.2713 6.72867 30 15 30C23.2713 30 30 23.2713 30 15C30 6.72867 23.2713 0 15 0Z" fill="#FC3030"/>
|
|
3
|
+
<path d="M15.4023 17.6258L19.8513 22.0748L22.0758 19.8503L17.6268 15.4013L22.0758 10.9523L19.8513 8.7278L15.4023 13.1768L10.9533 8.7278L8.72885 10.9523L13.1778 15.4013L8.72885 19.8503L10.9533 22.0748L15.4023 17.6258Z" fill="#FAFAFA"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.5" y="0.5" width="29" height="29" rx="14.5" stroke="#EDEDED"/>
|
|
3
|
+
<g clip-path="url(#clip0_320_8163)">
|
|
4
|
+
<path d="M21.5798 9.94227L21.2034 8.73157C21.0601 8.27045 20.6594 7.96062 20.2066 7.96062H17.0435V6.85543C17.0435 6.30305 16.625 5.85352 16.1104 5.85352H13.2137C12.6993 5.85352 12.2806 6.30305 12.2806 6.85543V7.96062H9.11766C8.6647 7.96062 8.26403 8.27045 8.12072 8.73157L7.74437 9.94227C7.65866 10.2179 7.7021 10.5231 7.86037 10.7588C8.01863 10.9946 8.2747 11.1354 8.54545 11.1354H8.93884L9.80469 22.6257C9.86907 23.4783 10.5432 24.1462 11.3398 24.1462H18.1601C18.9565 24.1462 19.6307 23.4783 19.695 22.6255L20.5608 11.1354H20.7787C21.0494 11.1354 21.3055 10.9946 21.4638 10.759C21.622 10.5233 21.6655 10.2179 21.5798 9.94227V9.94227ZM13.2794 6.92535H16.0447V7.96062H13.2794V6.92535ZM18.6995 22.5391C18.6769 22.8393 18.4399 23.0744 18.1601 23.0744H11.3398C11.0599 23.0744 10.823 22.8393 10.8003 22.5391L9.94085 11.1354H19.5588L18.6995 22.5391ZM8.75964 10.0635L9.06824 9.0707C9.07526 9.04781 9.09516 9.03246 9.11766 9.03246H20.2066C20.2291 9.03246 20.2489 9.04781 20.256 9.0707L20.5646 10.0635H8.75964Z" fill="#817393"/>
|
|
5
|
+
<path d="M17.1062 22.501C17.1151 22.5016 17.1238 22.5017 17.1326 22.5017C17.3965 22.5017 17.617 22.2798 17.6308 21.9937L18.0998 12.3329C18.1141 12.0374 17.9024 11.7852 17.6271 11.7698C17.351 11.754 17.1168 11.9815 17.1023 12.2771L16.6335 21.9379C16.6192 22.2335 16.8308 22.4857 17.1062 22.501V22.501Z" fill="#817393"/>
|
|
6
|
+
<path d="M11.7145 21.9949C11.729 22.2806 11.9493 22.5016 12.2127 22.5016C12.2218 22.5016 12.2311 22.5013 12.2404 22.5008C12.5157 22.4847 12.7267 22.2321 12.7118 21.9365L12.2206 12.2758C12.2056 11.9802 11.9703 11.7537 11.6948 11.7699C11.4195 11.7859 11.2084 12.0385 11.2234 12.3341L11.7145 21.9949Z" fill="#817393"/>
|
|
7
|
+
<path d="M14.6673 22.5016C14.9432 22.5016 15.1667 22.2617 15.1667 21.9657V12.305C15.1667 12.009 14.9432 11.769 14.6673 11.769C14.3915 11.769 14.168 12.009 14.168 12.305V21.9657C14.168 22.2617 14.3915 22.5016 14.6673 22.5016Z" fill="#817393"/>
|
|
8
|
+
</g>
|
|
9
|
+
<defs>
|
|
10
|
+
<clipPath id="clip0_320_8163">
|
|
11
|
+
<rect width="17.0455" height="18.2927" fill="white" transform="translate(6.13672 5.85352)"/>
|
|
12
|
+
</clipPath>
|
|
13
|
+
</defs>
|
|
14
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 15C0 6.72867 6.72867 0 15 0C23.2713 0 30 6.72867 30 15C30 23.2713 23.2713 30 15 30C6.72867 30 0 23.2713 0 15ZM7.53658 16.9742V13.8283L23.2661 13.8283V16.9742H7.53658Z" fill="#D4D1D7"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M15 0C6.72867 0 0 6.72867 0 15C0 23.2713 6.72867 30 15 30C23.2713 30 30 23.2713 30 15C30 6.72867 23.2713 0 15 0Z" fill="#71DE56"/>
|
|
3
|
+
<path d="M22.6028 11.8211L14.4778 19.946C14.234 20.1897 13.914 20.3124 13.5941 20.3124C13.2741 20.3124 12.9541 20.1897 12.7103 19.946L8.64792 15.8835C8.15903 15.3949 8.15903 14.6048 8.64792 14.1161C9.13658 13.6272 9.92645 13.6272 10.4153 14.1161L13.5941 17.2948L20.8354 10.0537C21.3241 9.56479 22.114 9.56479 22.6028 10.0537C23.0915 10.5423 23.0915 11.3322 22.6028 11.8211Z" fill="#F0EEF2"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="7" height="5" viewBox="0 0 7 5" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.09884 4.60084C6.2926 4.79759 6.60918 4.80001 6.80592 4.60624C7.00267 4.41248 7.00509 4.0959 6.81132 3.89916L6.09884 4.60084ZM3.50053 1.25L3.85677 0.899156L3.50053 0.537433L3.14429 0.899156L3.50053 1.25ZM0.189745 3.89916C-0.00402068 4.0959 -0.00160409 4.41248 0.195143 4.60624C0.39189 4.80001 0.708463 4.79759 0.902229 4.60084L0.189745 3.89916ZM6.81132 3.89916L3.85677 0.899156L3.14429 1.60084L6.09884 4.60084L6.81132 3.89916ZM3.14429 0.899156L0.189745 3.89916L0.902229 4.60084L3.85677 1.60084L3.14429 0.899156Z" fill="#E33AA9"/>
|
|
3
|
+
</svg>
|