contentoh-components-library 21.0.8 → 21.0.12
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/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 -1569
- 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/dist/index.js +65 -0
- package/package.json +5 -19
- 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/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/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/src/index.js +6 -0
- package/dist/assets/fonts/avenirnext/AvenirNextLTPro-Bold.otf +0 -0
- package/dist/assets/fonts/avenirnext/AvenirNextLTPro-It.otf +0 -0
- package/dist/assets/fonts/avenirnext/AvenirNextLTPro-Regular.otf +0 -0
- package/dist/assets/fonts/lato/Lato-Bold.ttf +0 -0
- package/dist/assets/fonts/lato/Lato-Italic.ttf +0 -0
- package/dist/assets/fonts/lato/Lato-Light.ttf +0 -0
- package/dist/assets/fonts/lato/Lato-Regular.ttf +0 -0
- package/dist/assets/fonts/lato/Lato-Thin.ttf +0 -0
- package/dist/assets/fonts/lato/OFL.txt +0 -93
- package/dist/assets/fonts/raleway/Raleway-Black.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-Bold.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-ExtraBold.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-Italic.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-Medium.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-Regular.ttf +0 -0
- package/dist/assets/fonts/raleway/Raleway-SemiBold.ttf +0 -0
- package/dist/assets/images/activedFilter/removeFilter.svg +0 -3
- package/dist/assets/images/arrow/arrowIcon.svg +0 -3
- package/dist/assets/images/arrow/polygon.svg +0 -3
- package/dist/assets/images/asignationOptions/availableIcon.svg +0 -3
- package/dist/assets/images/asignationOptions/removeAsigned.svg +0 -4
- package/dist/assets/images/asignationOptions/requestToProvider.svg +0 -3
- package/dist/assets/images/asignationOptions/requestToTeam.svg +0 -3
- package/dist/assets/images/card/masterCardIcon.svg +0 -5
- package/dist/assets/images/checkBox/checked.svg +0 -3
- package/dist/assets/images/checkBox/unchecked.svg +0 -3
- package/dist/assets/images/componentAssigned/assignedImage1.svg +0 -9
- package/dist/assets/images/componentAssigned/assignedImage2.svg +0 -9
- package/dist/assets/images/componentAssigned/clock.svg +0 -4
- package/dist/assets/images/componentAssigned/flag.svg +0 -3
- package/dist/assets/images/defaultImages/defaultProductImage.png +0 -0
- package/dist/assets/images/defaultImages/defaultProfileImage.svg +0 -13
- package/dist/assets/images/defaultImages/defaultUpdate.png +0 -0
- package/dist/assets/images/dropDownButton/dropDownArrowButton.svg +0 -3
- package/dist/assets/images/editField/editField.svg +0 -3
- package/dist/assets/images/flags/highPriority.svg +0 -3
- package/dist/assets/images/flags/lowPriority.svg +0 -3
- package/dist/assets/images/flags/mediumPriority.svg +0 -3
- package/dist/assets/images/flags/noPriority.svg +0 -3
- package/dist/assets/images/generalButton/acceptIcon.svg +0 -3
- package/dist/assets/images/generalButton/closeIcon.svg +0 -4
- package/dist/assets/images/generalButton/deleteIcon.svg +0 -13
- package/dist/assets/images/generalButton/deleteIconHover.svg +0 -13
- package/dist/assets/images/generalButton/downloadIcon.svg +0 -3
- package/dist/assets/images/generalButton/gridLayout.svg +0 -3
- package/dist/assets/images/generalButton/nullIcon.svg +0 -3
- package/dist/assets/images/generalButton/openModal.svg +0 -3
- package/dist/assets/images/generalButton/rejectIcon.svg +0 -3
- package/dist/assets/images/generalButton/rowLayout.svg +0 -3
- package/dist/assets/images/generalButton/saveIcon.svg +0 -3
- package/dist/assets/images/generalButton/saveIconHover.svg +0 -3
- package/dist/assets/images/generalImage/assigned.svg +0 -14
- package/dist/assets/images/generalImage/bags.svg +0 -25
- package/dist/assets/images/generalImage/clock.svg +0 -4
- package/dist/assets/images/generalImage/flag.svg +0 -3
- package/dist/assets/images/genericModal/genericModalCheck.svg +0 -3
- package/dist/assets/images/genericModal/genericModalClose.svg +0 -3
- package/dist/assets/images/genericModal/genericModalDown.svg +0 -3
- package/dist/assets/images/genericModal/genericModalUp.svg +0 -3
- package/dist/assets/images/genericModal/genericModalWarning.svg +0 -12
- package/dist/assets/images/logo/logoLogin.svg +0 -15
- package/dist/assets/images/menuNotification/menuNotificationComment.svg +0 -3
- package/dist/assets/images/menuNotification/menuNotificationProduct.svg +0 -3
- package/dist/assets/images/menuProfile/logOut.svg +0 -3
- package/dist/assets/images/menuProfile/myAccount.svg +0 -3
- package/dist/assets/images/menuProfile/settings.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/assets/images/productImage/openModal.svg +0 -3
- package/dist/assets/images/productNotification/productNotification.svg +0 -3
- package/dist/assets/images/profileHeader/profilePicture.svg +0 -9
- package/dist/assets/images/providerAndCadena/Cadena.svg +0 -188
- package/dist/assets/images/providerAndCadena/LoginContentoh.svg +0 -15
- package/dist/assets/images/providerAndCadena/Proveedor.svg +0 -231
- package/dist/assets/images/sideMenuButton/contenoh.svg +0 -5
- package/dist/assets/images/sideMenuButton/dashboard.svg +0 -5
- package/dist/assets/images/sideMenuButton/products.svg +0 -10
- package/dist/assets/images/sideMenuButton/providers.svg +0 -10
- package/dist/assets/images/sideMenuButton/tasks.svg +0 -3
- 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
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.InputFormatter = void 0;
|
|
9
|
-
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
-
|
|
12
|
-
var _reactQuill = _interopRequireDefault(require("react-quill"));
|
|
13
|
-
|
|
14
|
-
require("react-quill/dist/quill.snow.css");
|
|
15
|
-
|
|
16
|
-
var _react = require("react");
|
|
17
|
-
|
|
18
|
-
var _styles = require("./styles");
|
|
19
|
-
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
|
|
22
|
-
var InputFormatter = function InputFormatter(_ref) {
|
|
23
|
-
var _ref$mainValue = _ref.mainValue,
|
|
24
|
-
mainValue = _ref$mainValue === void 0 ? "" : _ref$mainValue,
|
|
25
|
-
inputId = _ref.inputId,
|
|
26
|
-
articleId = _ref.articleId,
|
|
27
|
-
updatedDescriptions = _ref.updatedDescriptions,
|
|
28
|
-
setUpdatedDescriptions = _ref.setUpdatedDescriptions,
|
|
29
|
-
addTextAreaToArray = _ref.addTextAreaToArray,
|
|
30
|
-
name = _ref.name,
|
|
31
|
-
isRequired = _ref.isRequired,
|
|
32
|
-
maxChar = _ref.maxChar;
|
|
33
|
-
|
|
34
|
-
var _useState = (0, _react.useState)(mainValue),
|
|
35
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
36
|
-
inputValue = _useState2[0],
|
|
37
|
-
setInputValue = _useState2[1];
|
|
38
|
-
|
|
39
|
-
var _useState3 = (0, _react.useState)(false),
|
|
40
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
41
|
-
selection = _useState4[0],
|
|
42
|
-
setSelection = _useState4[1];
|
|
43
|
-
|
|
44
|
-
var _useState5 = (0, _react.useState)({
|
|
45
|
-
left: 0,
|
|
46
|
-
top: 0
|
|
47
|
-
}),
|
|
48
|
-
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
49
|
-
position = _useState6[0],
|
|
50
|
-
setPosition = _useState6[1];
|
|
51
|
-
|
|
52
|
-
var _useState7 = (0, _react.useState)(0),
|
|
53
|
-
_useState8 = (0, _slicedToArray2.default)(_useState7, 2),
|
|
54
|
-
charsCounter = _useState8[0],
|
|
55
|
-
setCharsCounter = _useState8[1];
|
|
56
|
-
|
|
57
|
-
var _useState9 = (0, _react.useState)({}),
|
|
58
|
-
_useState10 = (0, _slicedToArray2.default)(_useState9, 2),
|
|
59
|
-
quillState = _useState10[0],
|
|
60
|
-
setQuillState = _useState10[1];
|
|
61
|
-
|
|
62
|
-
var maxLength = maxChar ? maxChar : 999;
|
|
63
|
-
|
|
64
|
-
var getValue = function getValue(value) {
|
|
65
|
-
var temp = value.replace(/\n/gm, "<br>");
|
|
66
|
-
return temp;
|
|
67
|
-
}; //const quillRef = useRef();
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
var setQuill = function setQuill(ref) {
|
|
71
|
-
if (!ref || ref === null) return;
|
|
72
|
-
if (typeof ref.getEditor !== "function") return;
|
|
73
|
-
setQuillState(ref.getEditor());
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
var valueFormater = function valueFormater(value) {
|
|
77
|
-
return value.replace(/<\/p><p>/gm, "\n").replace(/<\/?br>|<\/?p>/gm, "");
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
var _onChange = function onChange(valueInput, delta, user, h) {
|
|
81
|
-
var value = "";
|
|
82
|
-
|
|
83
|
-
try {
|
|
84
|
-
if (h.getLength() - 1 <= maxLength) {
|
|
85
|
-
setInputValue(function (val) {
|
|
86
|
-
return val = valueInput.replace(/<\/?span.*?>/gm, "");
|
|
87
|
-
});
|
|
88
|
-
value = valueInput;
|
|
89
|
-
} else {
|
|
90
|
-
quillState.deleteText(maxLength, quillState.getLength());
|
|
91
|
-
setInputValue(function (val) {
|
|
92
|
-
return val = quillState.getText();
|
|
93
|
-
});
|
|
94
|
-
value = quillState.getText();
|
|
95
|
-
}
|
|
96
|
-
} catch (error) {
|
|
97
|
-
console.log(error);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
setCharsCounter(h.getLength() - 1);
|
|
101
|
-
value = valueFormater(value);
|
|
102
|
-
var idInput = inputId;
|
|
103
|
-
var dataSave = updatedDescriptions.slice();
|
|
104
|
-
|
|
105
|
-
if (dataSave.length > 0) {
|
|
106
|
-
if (dataSave.filter(function (e) {
|
|
107
|
-
return e.attributeId === idInput;
|
|
108
|
-
}).length > 0) {
|
|
109
|
-
dataSave.forEach(function (e) {
|
|
110
|
-
if (e.attributeId === idInput) {
|
|
111
|
-
e.value = value;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
} else {
|
|
115
|
-
dataSave.push({
|
|
116
|
-
articleId: articleId,
|
|
117
|
-
attributeId: idInput,
|
|
118
|
-
value: value
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
} else {
|
|
122
|
-
dataSave.push({
|
|
123
|
-
articleId: articleId,
|
|
124
|
-
attributeId: idInput,
|
|
125
|
-
value: value
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
setUpdatedDescriptions(dataSave);
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
var getSelection = function getSelection(range, a, b) {
|
|
133
|
-
//getBounds(index,length)
|
|
134
|
-
var selected = b.getSelection();
|
|
135
|
-
var bounds = b.getBounds((selected === null || selected === void 0 ? void 0 : selected.index) || 0, (selected === null || selected === void 0 ? void 0 : selected.length) || 0);
|
|
136
|
-
|
|
137
|
-
if (a === "user") {
|
|
138
|
-
setPosition({
|
|
139
|
-
left: bounds.left,
|
|
140
|
-
top: bounds.top
|
|
141
|
-
});
|
|
142
|
-
setSelection((selected === null || selected === void 0 ? void 0 : selected.length) > 0);
|
|
143
|
-
}
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
147
|
-
isRequired: isRequired && (inputValue.replace(/<.*?>/gm, "").length === 0 || !inputValue),
|
|
148
|
-
selection: selection,
|
|
149
|
-
position: position,
|
|
150
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactQuill.default, {
|
|
151
|
-
id: inputId + "",
|
|
152
|
-
ref: function ref(el) {
|
|
153
|
-
return setQuill(el);
|
|
154
|
-
},
|
|
155
|
-
value: getValue(inputValue) //disabled={!props.enableInputs}
|
|
156
|
-
,
|
|
157
|
-
modules: {
|
|
158
|
-
toolbar: ["bold"]
|
|
159
|
-
},
|
|
160
|
-
onKeyPress: function onKeyPress(e) {
|
|
161
|
-
if (charsCounter >= maxLength && e.key !== "Backspace") {
|
|
162
|
-
e.preventDefault();
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
onKeyDown: function onKeyDown(e) {
|
|
166
|
-
var keysArray = ["Backspace", "Meta", "ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown"];
|
|
167
|
-
|
|
168
|
-
if (charsCounter >= maxLength && keysArray.every(function (key) {
|
|
169
|
-
return e.key !== key;
|
|
170
|
-
})) {
|
|
171
|
-
e.preventDefault();
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
onChange: function onChange(valueInput, user, range, h) {
|
|
175
|
-
_onChange(valueInput, user, range, h);
|
|
176
|
-
},
|
|
177
|
-
onChangeSelection: getSelection
|
|
178
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("p", {
|
|
179
|
-
className: "description-limit",
|
|
180
|
-
children: [charsCounter, "/", maxLength]
|
|
181
|
-
})]
|
|
182
|
-
});
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
exports.InputFormatter = InputFormatter;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .quill {\n border: 1px solid\n ", ";\n position: relative;\n border-radius: 2px;\n\n .ql-toolbar {\n background-color: ", ";\n position: absolute;\n z-index: 10;\n border: 1px solid ", ";\n width: 45px;\n height: 45px;\n border-radius: 4px;\n visibility: ", ";\n top: ", "px;\n left: ", "px;\n }\n\n .ql-container {\n border: none;\n font-family: ", ";\n color: ", ";\n strong {\n font-family: ", ";\n }\n }\n }\n .description-limit {\n font-size: 12px;\n font-family: ", ";\n color: ", ";\n text-align: right;\n }\n"])), function (_ref) {
|
|
19
|
-
var focus = _ref.focus,
|
|
20
|
-
isRequired = _ref.isRequired;
|
|
21
|
-
return focus ? _variables.GlobalColors.magenta_s2 : isRequired ? "red" : _variables.GlobalColors.s3;
|
|
22
|
-
}, _variables.GlobalColors.s2, _variables.GlobalColors.s3, function (_ref2) {
|
|
23
|
-
var selection = _ref2.selection;
|
|
24
|
-
return selection ? "visible" : "hidden";
|
|
25
|
-
}, function (_ref3) {
|
|
26
|
-
var position = _ref3.position;
|
|
27
|
-
return position.top;
|
|
28
|
-
}, function (_ref4) {
|
|
29
|
-
var position = _ref4.position;
|
|
30
|
-
return position.left;
|
|
31
|
-
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.FontFamily.Raleway_900, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
32
|
-
|
|
33
|
-
exports.Container = Container;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports.default = LabelToInput;
|
|
11
|
-
|
|
12
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
13
|
-
|
|
14
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
15
|
-
|
|
16
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
|
-
var _style = require("./style");
|
|
19
|
-
|
|
20
|
-
var _Input = _interopRequireDefault(require("../Input"));
|
|
21
|
-
|
|
22
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
|
|
24
|
-
function LabelToInput(props) {
|
|
25
|
-
var _useState = (0, _react.useState)(false),
|
|
26
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
27
|
-
isActive = _useState2[0],
|
|
28
|
-
setIsActive = _useState2[1];
|
|
29
|
-
|
|
30
|
-
var _useState3 = (0, _react.useState)(""),
|
|
31
|
-
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
32
|
-
defaultValue = _useState4[0],
|
|
33
|
-
setDefaultValue = _useState4[1];
|
|
34
|
-
|
|
35
|
-
(0, _react.useEffect)(function () {
|
|
36
|
-
setDefaultValue(props.defaultValue === "" ? "-" : props.defaultValue);
|
|
37
|
-
}, [props.defaultValue]);
|
|
38
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.MainContainer, {
|
|
39
|
-
width: props.width,
|
|
40
|
-
error: !isActive && props.error,
|
|
41
|
-
children: !isActive ? /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
42
|
-
onClick: function onClick() {
|
|
43
|
-
return setIsActive(true);
|
|
44
|
-
},
|
|
45
|
-
children: defaultValue
|
|
46
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
47
|
-
onBlur: function onBlur() {
|
|
48
|
-
props.onBlur && props.onBlur();
|
|
49
|
-
setIsActive(false);
|
|
50
|
-
}
|
|
51
|
-
}))
|
|
52
|
-
});
|
|
53
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.MainContainer = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var MainContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n width: fit-content;\n height: 20px;\n box-sizing: border-box;\n border-radius: 2px;\n margin-left: auto;\n white-space: nowrap;\n overflow-x: auto;\n overflow-y: hidden;\n\n & > p {\n font-family: ", ";\n font-weight: 400;\n font-size: 11px;\n line-height: 19px;\n color: ", ";\n background-color: ", ";\n padding: 1px 3px;\n border-radius: 3px;\n min-width: 50px;\n height: 21px;\n text-align: center;\n }\n border: ", ";\n ::-webkit-scrollbar {\n width: 3px;\n height: 3px;\n }\n ::-webkit-scrollbar-track {\n background: #f1f1f1;\n }\n ::-webkit-scrollbar-thumb {\n background: #d4d1d7;\n border-radius: 3px;\n }\n"])), _variables.FontFamily.AvenirNext, _variables.GlobalColors.s5, _variables.GlobalColors.s2, function (props) {
|
|
19
|
-
return props.error && "1px solid red";
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
exports.MainContainer = MainContainer;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Loading = void 0;
|
|
7
|
-
|
|
8
|
-
var _styles = require("./styles");
|
|
9
|
-
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
|
|
12
|
-
var Loading = function Loading() {
|
|
13
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
|
14
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Loader, {
|
|
15
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
16
|
-
className: "first"
|
|
17
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
18
|
-
className: "second"
|
|
19
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
20
|
-
className: "third"
|
|
21
|
-
})]
|
|
22
|
-
})
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
exports.Loading = Loading;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Loader = exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _templateObject, _templateObject2;
|
|
15
|
-
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n"])));
|
|
17
|
-
|
|
18
|
-
exports.Container = Container;
|
|
19
|
-
|
|
20
|
-
var Loader = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n width: 100%;\n span {\n display: inline-block;\n border-radius: 100%;\n margin: 35px 5px;\n opacity: 1;\n }\n .first {\n background-color: #ff75cf;\n }\n .second {\n background-color: #e33aa9;\n }\n .third {\n background-color: #b12d84;\n }\n span:nth-child(1) {\n width: 16px;\n height: 16px;\n animation: opacitychange 1s ease-in-out infinite;\n }\n span:nth-child(2) {\n width: 18px;\n height: 18px;\n\n animation: opacitychange 1s ease-in-out 0.33s infinite;\n }\n span:nth-child(3) {\n width: 20px;\n height: 20px;\n\n animation: opacitychange 1s ease-in-out 0.66s infinite;\n }\n @keyframes opacitychange {\n 0%,\n 100% {\n opacity: 0;\n }\n 60% {\n opacity: 1;\n }\n }\n"])));
|
|
21
|
-
|
|
22
|
-
exports.Loader = Loader;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.PercentDefault = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
var status = ["-", "Pr", "Rc", "As", "P", "QF", "AF", "AA", "AP", "AC", "RA", "RF", "RP", "RC", "Ex"];
|
|
17
|
-
var _default = {
|
|
18
|
-
title: "Components/atoms/Percent",
|
|
19
|
-
component: _index.Percent,
|
|
20
|
-
argTypes: {
|
|
21
|
-
statusType: {
|
|
22
|
-
options: status,
|
|
23
|
-
control: {
|
|
24
|
-
type: "select"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.default = _default;
|
|
30
|
-
|
|
31
|
-
var Template = function Template(args) {
|
|
32
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.Percent, (0, _objectSpread2.default)({}, args));
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
var PercentDefault = Template.bind({});
|
|
36
|
-
exports.PercentDefault = PercentDefault;
|
|
37
|
-
PercentDefault.args = {
|
|
38
|
-
statusType: "-"
|
|
39
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Percent = void 0;
|
|
9
|
-
|
|
10
|
-
var _styles = require("./styles");
|
|
11
|
-
|
|
12
|
-
var _polygon = _interopRequireDefault(require("../../../assets/images/arrow/polygon.svg"));
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
var Percent = function Percent(_ref) {
|
|
17
|
-
var statusType = _ref.statusType;
|
|
18
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
19
|
-
className: "status-".concat(statusType),
|
|
20
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
21
|
-
className: "text",
|
|
22
|
-
children: "Productos en proceso"
|
|
23
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
24
|
-
className: "percent-text",
|
|
25
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
26
|
-
className: "number",
|
|
27
|
-
children: "20"
|
|
28
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
29
|
-
src: _polygon.default,
|
|
30
|
-
alt: ""
|
|
31
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
32
|
-
className: "span",
|
|
33
|
-
children: "1%"
|
|
34
|
-
})]
|
|
35
|
-
})]
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
exports.Percent = Percent;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.Container = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _variables = require("../../../global-files/variables");
|
|
15
|
-
|
|
16
|
-
var _templateObject;
|
|
17
|
-
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 7px;\n width: 97px;\n height: 83px;\n text-align: center;\n padding: 15px;\n\n &.status-Pr,\n &.status-Rc {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n &.status-- {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-As,\n &.status-P,\n &.status-QF {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-AF,\n &.status-AA,\n &.status-AP,\n &.status-AC {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n &.status-RA,\n &.status-RF,\n &.status-RP,\n &.status-RC {\n border: 1px solid #d74ded;\n .span {\n color: #d74ded;\n }\n }\n\n &.status-Ex {\n border: 1px solid ", ";\n .span {\n color: ", ";\n }\n }\n\n .text {\n color: ", ";\n font-size: 12px;\n font-family: ", ";\n line-height: 14px;\n }\n .percent-text {\n display: flex;\n .number {\n font-family: ", ";\n font-size: 28px;\n color: ", ";\n }\n .span{\n padding-top: 8px;\n font-size: 18px;\n }\n }\n"])), _variables.GlobalColors.reception, _variables.GlobalColors.reception, _variables.GlobalColors.s3, _variables.GlobalColors.s3, _variables.GlobalColors.in_progress, _variables.GlobalColors.in_progress, _variables.GlobalColors.finished, _variables.GlobalColors.finished, _variables.GlobalColors.exported, _variables.GlobalColors.exported, _variables.GlobalColors.s4, _variables.FontFamily.Raleway, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4);
|
|
19
|
-
|
|
20
|
-
exports.Container = Container;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = Select;
|
|
7
|
-
|
|
8
|
-
var _style = require("./style");
|
|
9
|
-
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
|
|
12
|
-
function Select(props) {
|
|
13
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.Container, {
|
|
14
|
-
width: props.width,
|
|
15
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_style.SelectCustom, {
|
|
16
|
-
id: props.id,
|
|
17
|
-
width: props.width,
|
|
18
|
-
onChange: props.onChange,
|
|
19
|
-
defaultValue: props.valueSelected ? props.valueSelected : "",
|
|
20
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("option", {
|
|
21
|
-
value: "",
|
|
22
|
-
disabled: true,
|
|
23
|
-
children: props.placeholder
|
|
24
|
-
}), props.options && props.options.map(function (item, i) {
|
|
25
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("option", {
|
|
26
|
-
className: item.required ? "option-required" : "" //className={ ? "option-required" : ""}
|
|
27
|
-
,
|
|
28
|
-
value: item.value ? item.value : item // selected={
|
|
29
|
-
// item.value
|
|
30
|
-
// ? item.value == props.valueSelected && "selected"
|
|
31
|
-
// : item === props.valueSelected && "selected"
|
|
32
|
-
// }
|
|
33
|
-
,
|
|
34
|
-
children: [item.name ? item.name : item, " ", item !== null && item !== void 0 && item.required ? "*" : ""]
|
|
35
|
-
}, "select-" + item.value ? item.value : item + "-" + i);
|
|
36
|
-
})]
|
|
37
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_style.BackgroundEnd, {})]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.SelectCustom = exports.Container = exports.BackgroundEnd = void 0;
|
|
9
|
-
|
|
10
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
11
|
-
|
|
12
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
13
|
-
|
|
14
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
15
|
-
|
|
16
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n display: flex;\n align-items: center;\n cursor: pointer;\n height: 21px;\n line-height: 3;\n width: ", ";\n overflow: hidden;\n border-radius: 0.25em;\n &::after {\n border-left: 1px solid #e33aa9;\n border-top: 1px solid #e33aa9;\n width: 4px;\n content: \"\";\n height: 4px;\n position: absolute;\n right: 7px;\n -webkit-transform: rotate(-135deg);\n -ms-transform: rotate(-135deg);\n transform: rotate(-135deg);\n top: 35%;\n }\n &::before {\n border-left: 1px solid #e33aa9;\n width: 1px;\n content: \"\";\n height: 15px;\n right: 15px;\n position: absolute;\n z-index: 2;\n }\n"])), function (_ref) {
|
|
17
|
-
var width = _ref.width;
|
|
18
|
-
return width || "100%";
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
exports.Container = Container;
|
|
22
|
-
|
|
23
|
-
var BackgroundEnd = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n left: calc(100% - 18px);\n height: 100%;\n width: 18px;\n background-color: #fafafa;\n"])));
|
|
24
|
-
|
|
25
|
-
exports.BackgroundEnd = BackgroundEnd;
|
|
26
|
-
|
|
27
|
-
var SelectCustom = _styledComponents.default.select(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n background: #fafafa;\n -webkit-appearance: none;\n -moz-appearance: none;\n -ms-appearance: none;\n appearance: none;\n outline: 0;\n box-shadow: none;\n border: 0 !important;\n background-image: none;\n width: ", ";\n cursor: pointer;\n height: 21px;\n font-family: Avenir Next;\n font-style: normal;\n font-weight: normal;\n font-size: 12px;\n line-height: 21px;\n padding: 0 5px;\n box-sizing: border-box;\n &::-ms-expand {\n display: none;\n }\n option {\n &:disabled {\n color: #d4d1d7;\n }\n &:invalid {\n color: gray;\n }\n }\n"])), function (_ref2) {
|
|
28
|
-
var width = _ref2.width;
|
|
29
|
-
return width || "100%";
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
exports.SelectCustom = SelectCustom;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = exports.RetailerSelectorDefault = void 0;
|
|
9
|
-
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
|
-
var _index = require("./index");
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
|
-
var _default = {
|
|
17
|
-
title: "Components/molecules/RetailerSelector",
|
|
18
|
-
component: _index.RetailerSelector
|
|
19
|
-
};
|
|
20
|
-
exports.default = _default;
|
|
21
|
-
|
|
22
|
-
var Template = function Template(args) {
|
|
23
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index.RetailerSelector, (0, _objectSpread2.default)({}, args));
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var RetailerSelectorDefault = Template.bind({});
|
|
27
|
-
exports.RetailerSelectorDefault = RetailerSelectorDefault;
|
|
28
|
-
RetailerSelectorDefault.args = {
|
|
29
|
-
retailers: [{
|
|
30
|
-
id: 2,
|
|
31
|
-
name: "Walmart Mercancías Generales",
|
|
32
|
-
country: "México",
|
|
33
|
-
id_region: 1,
|
|
34
|
-
active: 1
|
|
35
|
-
}, {
|
|
36
|
-
id: 3,
|
|
37
|
-
name: "Sam´s Club",
|
|
38
|
-
country: "México",
|
|
39
|
-
id_region: 1,
|
|
40
|
-
active: 1
|
|
41
|
-
}, {
|
|
42
|
-
id: 14,
|
|
43
|
-
name: "Maskota y Petsy",
|
|
44
|
-
country: "México",
|
|
45
|
-
id_region: 1,
|
|
46
|
-
active: 1
|
|
47
|
-
}]
|
|
48
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.RetailerSelector = void 0;
|
|
9
|
-
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
|
|
11
|
-
|
|
12
|
-
var _styles = require("./styles");
|
|
13
|
-
|
|
14
|
-
var _Avatar = require("../../atoms/Avatar");
|
|
15
|
-
|
|
16
|
-
var _react = require("react");
|
|
17
|
-
|
|
18
|
-
var _AsignationOption = require("../../atoms/AsignationOption");
|
|
19
|
-
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
|
|
22
|
-
var RetailerSelector = function RetailerSelector(_ref) {
|
|
23
|
-
var retailers = _ref.retailers,
|
|
24
|
-
activeRetailer = _ref.activeRetailer,
|
|
25
|
-
setActiveRetailer = _ref.setActiveRetailer;
|
|
26
|
-
|
|
27
|
-
var _useState = (0, _react.useState)(false),
|
|
28
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
29
|
-
retailersPanel = _useState2[0],
|
|
30
|
-
setRetailersPanel = _useState2[1];
|
|
31
|
-
|
|
32
|
-
var closeRetailersPanel = function closeRetailersPanel(e) {
|
|
33
|
-
if (!e.target.closest("#retailers-assignation") && retailersPanel) {
|
|
34
|
-
document.removeEventListener("click", closeRetailersPanel, false);
|
|
35
|
-
setRetailersPanel(false);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
(0, _react.useEffect)(function () {
|
|
40
|
-
if (retailersPanel) {
|
|
41
|
-
document.addEventListener("click", closeRetailersPanel, false);
|
|
42
|
-
}
|
|
43
|
-
}, [retailersPanel]);
|
|
44
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
|
|
45
|
-
id: "retailers-assignation",
|
|
46
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Avatar.Avatar, {
|
|
47
|
-
image: activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.image,
|
|
48
|
-
altText: activeRetailer === null || activeRetailer === void 0 ? void 0 : activeRetailer.name,
|
|
49
|
-
imageType: "medium-image",
|
|
50
|
-
onClick: function onClick() {
|
|
51
|
-
retailers.length > 1 && setRetailersPanel(!retailersPanel);
|
|
52
|
-
if (retailersPanel) document.removeEventListener("click", closeRetailersPanel, false);
|
|
53
|
-
}
|
|
54
|
-
}), retailersPanel && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
55
|
-
className: "retailers-panel",
|
|
56
|
-
children: retailers.map(function (retailer, index) {
|
|
57
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AsignationOption.AsignationOption, {
|
|
58
|
-
profileImage: retailer === null || retailer === void 0 ? void 0 : retailer.image,
|
|
59
|
-
imageType: "medium-image",
|
|
60
|
-
asignationType: null,
|
|
61
|
-
name: retailer === null || retailer === void 0 ? void 0 : retailer.name,
|
|
62
|
-
team: retailer === null || retailer === void 0 ? void 0 : retailer.team,
|
|
63
|
-
onClick: function onClick() {
|
|
64
|
-
setActiveRetailer(retailer);
|
|
65
|
-
document.removeEventListener("click", closeRetailersPanel, false);
|
|
66
|
-
setRetailersPanel(false);
|
|
67
|
-
}
|
|
68
|
-
}, "".concat(index, "-").concat(retailer === null || retailer === void 0 ? void 0 : retailer.name));
|
|
69
|
-
})
|
|
70
|
-
})]
|
|
71
|
-
});
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
exports.RetailerSelector = RetailerSelector;
|