contentoh-components-library 21.0.11 → 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 -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/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
|
@@ -11,26 +11,19 @@ var _styles = require("./styles");
|
|
|
11
11
|
|
|
12
12
|
var _editField = _interopRequireDefault(require("../../../assets/images/editField/editField.svg"));
|
|
13
13
|
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
14
|
var EditField = function EditField(_ref) {
|
|
17
15
|
var placeHolder = _ref.placeHolder,
|
|
18
16
|
value = _ref.value;
|
|
19
|
-
return /*#__PURE__*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
alt: "save changes icon"
|
|
30
|
-
})
|
|
31
|
-
})
|
|
32
|
-
})]
|
|
33
|
-
});
|
|
17
|
+
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("input", {
|
|
18
|
+
type: "text",
|
|
19
|
+
placeHolder: placeHolder,
|
|
20
|
+
value: value
|
|
21
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
22
|
+
className: "button-container"
|
|
23
|
+
}, /*#__PURE__*/React.createElement("button", null, /*#__PURE__*/React.createElement("img", {
|
|
24
|
+
src: _editField.default,
|
|
25
|
+
alt: "save changes icon"
|
|
26
|
+
}))));
|
|
34
27
|
};
|
|
35
28
|
|
|
36
29
|
exports.EditField = EditField;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = exports.FeatureTagDefault = void 0;
|
|
9
7
|
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
8
|
var _index = require("./index");
|
|
13
9
|
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
10
|
var _default = {
|
|
17
11
|
title: "Components/atoms/FeatureTag",
|
|
18
12
|
label: "Feature Tag",
|
|
@@ -21,7 +15,7 @@ var _default = {
|
|
|
21
15
|
exports.default = _default;
|
|
22
16
|
|
|
23
17
|
var Template = function Template(args) {
|
|
24
|
-
return /*#__PURE__*/
|
|
18
|
+
return /*#__PURE__*/React.createElement(_index.FeatureTag, args);
|
|
25
19
|
};
|
|
26
20
|
|
|
27
21
|
var FeatureTagDefault = Template.bind({});
|
|
@@ -7,20 +7,14 @@ exports.FeatureTag = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
|
|
12
10
|
var FeatureTag = function FeatureTag(_ref) {
|
|
13
11
|
var feature = _ref.feature,
|
|
14
12
|
value = _ref.value;
|
|
15
|
-
return /*#__PURE__*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
className: "feature-value",
|
|
21
|
-
children: value
|
|
22
|
-
})]
|
|
23
|
-
});
|
|
13
|
+
return /*#__PURE__*/React.createElement(_styles.Container, null, /*#__PURE__*/React.createElement("p", {
|
|
14
|
+
className: "feature-name"
|
|
15
|
+
}, feature), /*#__PURE__*/React.createElement("p", {
|
|
16
|
+
className: "feature-value"
|
|
17
|
+
}, value));
|
|
24
18
|
};
|
|
25
19
|
|
|
26
20
|
exports.FeatureTag = FeatureTag;
|
|
@@ -1,20 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = exports.GeneralButton = void 0;
|
|
9
7
|
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
8
|
var _index = require("./index");
|
|
13
9
|
|
|
14
10
|
var _variables = require("../../../global-files/variables");
|
|
15
11
|
|
|
16
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
-
|
|
18
12
|
var _default = {
|
|
19
13
|
title: "Components/atoms/Button",
|
|
20
14
|
label: "Button Default",
|
|
@@ -42,7 +36,7 @@ var _default = {
|
|
|
42
36
|
exports.default = _default;
|
|
43
37
|
|
|
44
38
|
var Template = function Template(args) {
|
|
45
|
-
return /*#__PURE__*/
|
|
39
|
+
return /*#__PURE__*/React.createElement(_index.Button, args);
|
|
46
40
|
};
|
|
47
41
|
|
|
48
42
|
var GeneralButton = Template.bind({});
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
@@ -9,10 +7,6 @@ exports.Button = void 0;
|
|
|
9
7
|
|
|
10
8
|
var _styles = require("./styles");
|
|
11
9
|
|
|
12
|
-
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
10
|
var Button = function Button(_ref) {
|
|
17
11
|
var buttonType = _ref.buttonType,
|
|
18
12
|
label = _ref.label,
|
|
@@ -20,16 +14,15 @@ var Button = function Button(_ref) {
|
|
|
20
14
|
altText = _ref.altText,
|
|
21
15
|
buttonFont = _ref.buttonFont,
|
|
22
16
|
onClick = _ref.onClick;
|
|
23
|
-
return /*#__PURE__*/
|
|
17
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
24
18
|
className: buttonType,
|
|
25
19
|
buttonFont: buttonFont,
|
|
26
20
|
onClick: onClick,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, "button-".concat(buttonType));
|
|
21
|
+
key: "button-".concat(buttonType)
|
|
22
|
+
}, buttonType.includes("general") && label, image && /*#__PURE__*/React.createElement("img", {
|
|
23
|
+
src: image,
|
|
24
|
+
alt: altText
|
|
25
|
+
}));
|
|
33
26
|
};
|
|
34
27
|
|
|
35
28
|
exports.Button = Button;
|
|
@@ -37,14 +37,12 @@ var _deleteIcon = _interopRequireDefault(require("../../../assets/images/general
|
|
|
37
37
|
|
|
38
38
|
var _deleteIconHover = _interopRequireDefault(require("../../../assets/images/generalButton/deleteIconHover.svg"));
|
|
39
39
|
|
|
40
|
-
var _downloadIcon = _interopRequireDefault(require("../../../assets/images/generalButton/downloadIcon.svg"));
|
|
41
|
-
|
|
42
40
|
var _variables = require("../../../global-files/variables");
|
|
43
41
|
|
|
44
42
|
var _templateObject;
|
|
45
43
|
|
|
46
|
-
var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: #e33aa9;\n border: none;\n border-radius: 30px;\n color: #fff;\n font-family: ", ";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n padding: 10px 25px;\n cursor: pointer;\n\n &:hover {\n opacity: 0.7;\n }\n\n &.general-purple-button {\n background-color: #603888;\n }\n\n &.general-transparent-button {\n background-color: transparent;\n border: 1px solid #503d66;\n color: #503d66;\n }\n &.general-white-button {\n background-color: ", ";\n color: ", ";\n }\n\n &.general-green-button {\n background-color: #71de56;\n }\n\n &.circular-button {\n width: 25px;\n height: 25px;\n padding: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n &.accept-button {\n background-image: url(", ");\n }\n\n &.reject-button {\n background-image: url(", ");\n }\n\n &.null-button {\n background-image: url(", ");\n }\n\n &.save-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n\n &:hover {\n background-image: url(", ");\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n\n &.delete-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n background-size: 15px;\n\n &:hover {\n background-image: url(", ");\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n
|
|
44
|
+
var Container = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background-color: #e33aa9;\n border: none;\n border-radius: 30px;\n color: #fff;\n font-family: ", ";\n font-style: normal;\n font-weight: normal;\n font-size: 18px;\n line-height: 22px;\n padding: 10px 25px;\n cursor: pointer;\n\n &:hover {\n opacity: 0.7;\n }\n\n &.general-purple-button {\n background-color: #603888;\n }\n\n &.general-transparent-button {\n background-color: transparent;\n border: 1px solid #503d66;\n color: #503d66;\n }\n &.general-white-button {\n background-color: ", ";\n color: ", ";\n }\n\n &.general-green-button {\n background-color: #71de56;\n }\n\n &.circular-button {\n width: 25px;\n height: 25px;\n padding: 0;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n &.accept-button {\n background-image: url(", ");\n }\n\n &.reject-button {\n background-image: url(", ");\n }\n\n &.null-button {\n background-image: url(", ");\n }\n\n &.save-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n\n &:hover {\n background-image: url(", ");\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n\n &.delete-button {\n background-image: url(", ");\n border: 1px solid ", ";\n border-radius: 15px;\n background-size: 15px;\n\n &:hover {\n background-image: url(", ");\n background-color: ", ";\n border: 1px solid ", ";\n }\n }\n }\n\n &.general-arrow-button {\n background-image: url(", ");\n width: 27px;\n height: 27px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n }\n\n &.close-button {\n width: 52px;\n height: 52px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n background-image: url(", ");\n }\n\n &.open-modal-button {\n background-color: transparent;\n border: none;\n cursor: pointer;\n position: absolute;\n right: 10px;\n bottom: 10px;\n background-color: transparent;\n background-repeat: no-repeat;\n background-position: center;\n width: 21px;\n height: 21px;\n padding: 0;\n border-radius: 0;\n background-image: url(", ");\n }\n\n &.grid-layout,\n &.row-layout {\n background-color: transparent;\n background-repeat: no-repeat;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n &.grid-layout {\n background-image: url(", ");\n }\n\n &.row-layout {\n background-image: url(", ");\n }\n"])), function (props) {
|
|
47
45
|
return props.buttonFont;
|
|
48
|
-
}, _variables.GlobalColors.s1, _variables.GlobalColors.original_purpura, _acceptIcon.default, _rejectIcon.default, _nullIcon.default, _saveIcon.default, _variables.GlobalColors.s3, _saveIconHover.default, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2, _deleteIcon.default, _variables.GlobalColors.s3, _deleteIconHover.default, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2,
|
|
46
|
+
}, _variables.GlobalColors.s1, _variables.GlobalColors.original_purpura, _acceptIcon.default, _rejectIcon.default, _nullIcon.default, _saveIcon.default, _variables.GlobalColors.s3, _saveIconHover.default, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2, _deleteIcon.default, _variables.GlobalColors.s3, _deleteIconHover.default, _variables.GlobalColors.magenta_s2, _variables.GlobalColors.magenta_s2, _arrowIcon.default, _closeIcon.default, _openModal.default, _rowLayout.default, _gridLayout.default);
|
|
49
47
|
|
|
50
48
|
exports.Container = Container;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = exports.TextArea = exports.Input = void 0;
|
|
9
7
|
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
8
|
var _index = require("./index");
|
|
13
9
|
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
10
|
var _default = {
|
|
17
11
|
title: "Components/atoms/GeneralInput",
|
|
18
12
|
component: _index.GeneralInput,
|
|
@@ -28,7 +22,7 @@ var _default = {
|
|
|
28
22
|
exports.default = _default;
|
|
29
23
|
|
|
30
24
|
var Template = function Template(args) {
|
|
31
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/React.createElement(_index.GeneralInput, args);
|
|
32
26
|
};
|
|
33
27
|
|
|
34
28
|
var Input = Template.bind({});
|
|
@@ -13,116 +13,63 @@ var _react = require("react");
|
|
|
13
13
|
|
|
14
14
|
var _styles = require("./styles");
|
|
15
15
|
|
|
16
|
-
var _InputFormatter = require("../InputFormatter");
|
|
17
|
-
|
|
18
|
-
var _CheckBox = require("../CheckBox");
|
|
19
|
-
|
|
20
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
|
|
22
16
|
var GeneralInput = function GeneralInput(_ref) {
|
|
23
17
|
var inputType = _ref.inputType,
|
|
24
18
|
inputId = _ref.inputId,
|
|
19
|
+
inputCols = _ref.inputCols,
|
|
20
|
+
inputRows = _ref.inputRows,
|
|
25
21
|
inputName = _ref.inputName,
|
|
26
22
|
inputValue = _ref.inputValue,
|
|
27
23
|
inputPlaceholder = _ref.inputPlaceholder,
|
|
28
24
|
validateInput = _ref.validateInput,
|
|
29
25
|
position = _ref.position,
|
|
30
26
|
inputsArray = _ref.inputsArray,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
updatedDatasheets = _ref.updatedDatasheets,
|
|
34
|
-
setUpdatedDatasheets = _ref.setUpdatedDatasheets,
|
|
35
|
-
updatedDescriptions = _ref.updatedDescriptions,
|
|
36
|
-
setUpdatedDescriptions = _ref.setUpdatedDescriptions,
|
|
37
|
-
maxChar = _ref.maxChar,
|
|
38
|
-
isRequired = _ref.isRequired,
|
|
39
|
-
version = _ref.version;
|
|
27
|
+
maxLength = _ref.maxLength,
|
|
28
|
+
inputSize = _ref.inputSize;
|
|
40
29
|
|
|
41
30
|
var _useState = (0, _react.useState)({
|
|
42
|
-
value: inputValue
|
|
31
|
+
value: inputValue !== null && inputValue !== void 0 ? inputValue : ""
|
|
43
32
|
}),
|
|
44
33
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
45
34
|
textValue = _useState2[0],
|
|
46
35
|
setTextValue = _useState2[1];
|
|
47
36
|
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
setTextValue({
|
|
56
|
-
value: validateInput(evt, position, inputsArray)
|
|
57
|
-
});
|
|
58
|
-
} else {
|
|
59
|
-
setTextValue({
|
|
60
|
-
value: inputType === "checkbox" ? evt.target.checked : evt.target.value
|
|
61
|
-
});
|
|
62
|
-
var dataSave = updatedDatasheets.slice();
|
|
63
|
-
if (dataSave.length === 0) dataSave.push({
|
|
64
|
-
articleId: articleId,
|
|
65
|
-
versionId: version,
|
|
66
|
-
attributeId: inputId,
|
|
67
|
-
value: inputType === "checkbox" ? evt.target.checked : evt.target.value
|
|
68
|
-
});else if (dataSave.some(function (e) {
|
|
69
|
-
return e.attributeId === inputId;
|
|
70
|
-
})) {
|
|
71
|
-
dataSave.forEach(function (e) {
|
|
72
|
-
if (e.attributeId === inputId) {
|
|
73
|
-
e.value = inputType === "checkbox" ? evt.target.checked : evt.target.value;
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
} else {
|
|
77
|
-
dataSave.push({
|
|
78
|
-
articleId: articleId,
|
|
79
|
-
versionId: version,
|
|
80
|
-
attributeId: inputId,
|
|
81
|
-
value: inputType === "checkbox" ? evt.target.checked : evt.target.value
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
setUpdatedDatasheets(dataSave);
|
|
85
|
-
}
|
|
37
|
+
var onHandleChange = function onHandleChange(e) {
|
|
38
|
+
validateInput ? setTextValue({
|
|
39
|
+
value: validateInput(e, position, inputsArray)
|
|
40
|
+
}) : setTextValue(function (_ref2) {
|
|
41
|
+
var value = _ref2.value;
|
|
42
|
+
return value = e.target.value;
|
|
43
|
+
});
|
|
86
44
|
};
|
|
87
45
|
|
|
88
46
|
(0, _react.useEffect)(function () {
|
|
89
|
-
var
|
|
47
|
+
var input = document.querySelector("textarea#".concat(inputId));
|
|
90
48
|
|
|
91
|
-
|
|
49
|
+
if (input) {
|
|
50
|
+
input.style.cssText = "height:" + input.scrollHeight + "px";
|
|
51
|
+
}
|
|
92
52
|
}, [textValue]);
|
|
93
|
-
return /*#__PURE__*/
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputFormatter.InputFormatter, {
|
|
114
|
-
name: inputName,
|
|
115
|
-
inputId: inputId,
|
|
116
|
-
placeholder: inputPlaceholder,
|
|
117
|
-
mainValue: textValue.value,
|
|
118
|
-
onChange: onHandleChange,
|
|
119
|
-
articleId: articleId,
|
|
120
|
-
updatedDescriptions: updatedDescriptions,
|
|
121
|
-
setUpdatedDescriptions: setUpdatedDescriptions,
|
|
122
|
-
maxChar: maxChar,
|
|
123
|
-
isRequired: isRequired
|
|
124
|
-
})
|
|
125
|
-
});
|
|
53
|
+
return /*#__PURE__*/React.createElement(_styles.Container, null, inputType !== "textarea" ? /*#__PURE__*/React.createElement("input", {
|
|
54
|
+
type: inputType,
|
|
55
|
+
id: inputId,
|
|
56
|
+
size: inputSize,
|
|
57
|
+
className: "general-input",
|
|
58
|
+
placeholder: inputPlaceholder,
|
|
59
|
+
value: textValue.value,
|
|
60
|
+
onInput: function onInput(e) {
|
|
61
|
+
return onHandleChange(e);
|
|
62
|
+
},
|
|
63
|
+
maxLength: maxLength && maxLength
|
|
64
|
+
}) : /*#__PURE__*/React.createElement("textarea", {
|
|
65
|
+
name: inputName,
|
|
66
|
+
id: inputId,
|
|
67
|
+
cols: inputCols,
|
|
68
|
+
rows: inputRows,
|
|
69
|
+
placeholder: inputPlaceholder,
|
|
70
|
+
value: textValue.value,
|
|
71
|
+
onChange: onHandleChange
|
|
72
|
+
}));
|
|
126
73
|
};
|
|
127
74
|
|
|
128
75
|
exports.GeneralInput = GeneralInput;
|
|
@@ -15,12 +15,6 @@ var _variables = require("../../../global-files/variables");
|
|
|
15
15
|
|
|
16
16
|
var _templateObject;
|
|
17
17
|
|
|
18
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n
|
|
19
|
-
var isRequired = _ref.isRequired;
|
|
20
|
-
return isRequired ? "red" : "none";
|
|
21
|
-
}, function (_ref2) {
|
|
22
|
-
var isRequired = _ref2.isRequired;
|
|
23
|
-
return isRequired ? "red" : "".concat(_variables.GlobalColors.s2);
|
|
24
|
-
}, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2);
|
|
18
|
+
var Container = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n input,\n textarea {\n width: 100%;\n border: 1px solid ", ";\n font-family: ", ";\n color: ", ";\n font-weight: normal;\n font-size: 12px;\n line-height: 15px;\n padding: 10px;\n outline: none;\n border-radius: 2px;\n resize: none;\n &:focus {\n border: 1px solid ", ";\n }\n }\n"])), _variables.GlobalColors.s2, _variables.FontFamily.AvenirNext, _variables.GlobalColors.s4, _variables.GlobalColors.magenta_s2);
|
|
25
19
|
|
|
26
20
|
exports.Container = Container;
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = exports.GeneralTextBoxDefault = void 0;
|
|
9
7
|
|
|
10
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
|
|
11
|
-
|
|
12
8
|
var _index = require("./index");
|
|
13
9
|
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
|
|
16
10
|
var _default = {
|
|
17
11
|
title: "Components/atoms/GeneralTextBox",
|
|
18
12
|
component: _index.GeneralTextBox
|
|
@@ -20,7 +14,7 @@ var _default = {
|
|
|
20
14
|
exports.default = _default;
|
|
21
15
|
|
|
22
16
|
var Template = function Template(args) {
|
|
23
|
-
return /*#__PURE__*/
|
|
17
|
+
return /*#__PURE__*/React.createElement(_index.GeneralTextBox, args);
|
|
24
18
|
};
|
|
25
19
|
|
|
26
20
|
var GeneralTextBoxDefault = Template.bind({});
|
|
@@ -7,24 +7,19 @@ exports.GeneralTextBox = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _styles = require("./styles");
|
|
9
9
|
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
|
|
12
10
|
var GeneralTextBox = function GeneralTextBox(_ref) {
|
|
13
11
|
var number = _ref.number,
|
|
14
12
|
name = _ref.name,
|
|
15
13
|
onClick = _ref.onClick,
|
|
16
14
|
className = _ref.className;
|
|
17
|
-
return /*#__PURE__*/
|
|
15
|
+
return /*#__PURE__*/React.createElement(_styles.Container, {
|
|
18
16
|
className: className,
|
|
19
|
-
onClick: onClick
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
children: name
|
|
26
|
-
})]
|
|
27
|
-
});
|
|
17
|
+
onClick: onClick
|
|
18
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
19
|
+
className: "number-text"
|
|
20
|
+
}, number), /*#__PURE__*/React.createElement("p", {
|
|
21
|
+
className: "name-text"
|
|
22
|
+
}, name));
|
|
28
23
|
};
|
|
29
24
|
|
|
30
25
|
exports.GeneralTextBox = GeneralTextBox;
|
|
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.UploadImageDefault = exports.SendInvitationDefault = exports.ProductEditionDefault = exports.GenericModalDefault = exports.DeleteProductDefault = 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 _index2 = require("../ScreenHeader/index");
|
|
@@ -23,8 +21,6 @@ var _genericModalWarning = _interopRequireDefault(require("../../../assets/image
|
|
|
23
21
|
|
|
24
22
|
var _genericModalCheck = _interopRequireDefault(require("../../../assets/images/genericModal/genericModalCheck.svg"));
|
|
25
23
|
|
|
26
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
|
-
|
|
28
24
|
var _default = {
|
|
29
25
|
title: "Components/atoms/GenericModal",
|
|
30
26
|
component: _index.GenericModal
|
|
@@ -32,103 +28,117 @@ var _default = {
|
|
|
32
28
|
exports.default = _default;
|
|
33
29
|
|
|
34
30
|
var Template = function Template(args) {
|
|
35
|
-
return /*#__PURE__*/
|
|
31
|
+
return /*#__PURE__*/React.createElement(_index.GenericModal, args);
|
|
36
32
|
};
|
|
37
33
|
|
|
38
34
|
var GenericModalDefault = Template.bind({});
|
|
39
35
|
exports.GenericModalDefault = GenericModalDefault;
|
|
40
36
|
GenericModalDefault.args = {
|
|
41
|
-
componentsArray: [/*#__PURE__*/
|
|
37
|
+
componentsArray: [/*#__PURE__*/React.createElement("img", {
|
|
38
|
+
key: "1",
|
|
42
39
|
src: _genericModalWarning.default,
|
|
43
40
|
alt: "Warning icon"
|
|
44
|
-
}
|
|
41
|
+
}), /*#__PURE__*/React.createElement(_index2.ScreenHeader, {
|
|
45
42
|
fontFamily: _variables.FontFamily.Raleway_500,
|
|
46
43
|
headerType: "with-bold-text",
|
|
47
44
|
color: _variables.GlobalColors.white,
|
|
48
45
|
text: "¿Estás seguro que quieres ",
|
|
49
|
-
boldText: "cerrar sesión?"
|
|
50
|
-
|
|
46
|
+
boldText: "cerrar sesión?",
|
|
47
|
+
key: "2"
|
|
48
|
+
}), /*#__PURE__*/React.createElement(_index4.Button, {
|
|
49
|
+
key: "3",
|
|
51
50
|
buttonType: "general-white-button",
|
|
52
51
|
label: "Cancelar"
|
|
53
|
-
}
|
|
52
|
+
}), /*#__PURE__*/React.createElement(_index4.Button, {
|
|
54
53
|
buttonType: "general-button-default",
|
|
55
|
-
label: "Cerrar Sesión"
|
|
56
|
-
|
|
54
|
+
label: "Cerrar Sesión",
|
|
55
|
+
key: "4"
|
|
56
|
+
})],
|
|
57
57
|
buttonType: "log-out"
|
|
58
58
|
};
|
|
59
59
|
var DeleteProductDefault = Template.bind({});
|
|
60
60
|
exports.DeleteProductDefault = DeleteProductDefault;
|
|
61
61
|
DeleteProductDefault.args = {
|
|
62
|
-
componentsArray: [/*#__PURE__*/
|
|
62
|
+
componentsArray: [/*#__PURE__*/React.createElement("img", {
|
|
63
|
+
key: "1",
|
|
63
64
|
src: _genericModalWarning.default,
|
|
64
65
|
alt: "Warning icon"
|
|
65
|
-
}
|
|
66
|
+
}), /*#__PURE__*/React.createElement(_index2.ScreenHeader, {
|
|
66
67
|
fontFamily: _variables.FontFamily.Raleway_500,
|
|
67
68
|
headerType: "product-name-header",
|
|
68
69
|
color: _variables.GlobalColors.white,
|
|
69
|
-
text: "¿Estás seguro de eliminar estos productos?"
|
|
70
|
-
|
|
70
|
+
text: "¿Estás seguro de eliminar estos productos?",
|
|
71
|
+
key: "2"
|
|
72
|
+
}), /*#__PURE__*/React.createElement(_index2.ScreenHeader, {
|
|
71
73
|
fontFamily: _variables.FontFamily.Raleway_500,
|
|
72
74
|
headerType: "retailer-name-header",
|
|
73
75
|
color: _variables.GlobalColors.white,
|
|
74
|
-
text: "No podrás recuperar la información eliminada"
|
|
75
|
-
|
|
76
|
+
text: "No podrás recuperar la información eliminada",
|
|
77
|
+
key: "3"
|
|
78
|
+
}), /*#__PURE__*/React.createElement(_index4.Button, {
|
|
76
79
|
buttonType: "general-white-button",
|
|
77
|
-
label: "Cancelar"
|
|
78
|
-
|
|
80
|
+
label: "Cancelar",
|
|
81
|
+
key: "4"
|
|
82
|
+
}), /*#__PURE__*/React.createElement(_index4.Button, {
|
|
79
83
|
buttonType: "general-button-default",
|
|
80
|
-
label: "Confirmar"
|
|
81
|
-
|
|
84
|
+
label: "Confirmar",
|
|
85
|
+
key: "5"
|
|
86
|
+
})],
|
|
82
87
|
buttonType: "delete-product"
|
|
83
88
|
};
|
|
84
89
|
var ProductEditionDefault = Template.bind({});
|
|
85
90
|
exports.ProductEditionDefault = ProductEditionDefault;
|
|
86
91
|
ProductEditionDefault.args = {
|
|
87
|
-
componentsArray: [/*#__PURE__*/
|
|
92
|
+
componentsArray: [/*#__PURE__*/React.createElement(_index2.ScreenHeader, {
|
|
88
93
|
fontFamily: _variables.FontFamily.Raleway_500,
|
|
89
94
|
headerType: "product-name-header",
|
|
90
95
|
color: _variables.GlobalColors.white,
|
|
91
|
-
text: "¿Deseas salir de edicion de producto múltiple?"
|
|
92
|
-
|
|
96
|
+
text: "¿Deseas salir de edicion de producto múltiple?",
|
|
97
|
+
key: "1"
|
|
98
|
+
}), /*#__PURE__*/React.createElement(_index4.Button, {
|
|
93
99
|
buttonType: "general-white-button",
|
|
94
|
-
label: "Salir"
|
|
95
|
-
|
|
100
|
+
label: "Salir",
|
|
101
|
+
key: "2"
|
|
102
|
+
}), /*#__PURE__*/React.createElement(_index4.Button, {
|
|
96
103
|
buttonType: "general-button-default",
|
|
97
|
-
label: "Regresar"
|
|
98
|
-
|
|
104
|
+
label: "Regresar",
|
|
105
|
+
key: "3"
|
|
106
|
+
})],
|
|
99
107
|
buttonType: "product-edition"
|
|
100
108
|
};
|
|
101
109
|
var SendInvitationDefault = Template.bind({});
|
|
102
110
|
exports.SendInvitationDefault = SendInvitationDefault;
|
|
103
111
|
SendInvitationDefault.args = {
|
|
104
|
-
componentsArray: [/*#__PURE__*/
|
|
112
|
+
componentsArray: [/*#__PURE__*/React.createElement("img", {
|
|
113
|
+
key: "1",
|
|
105
114
|
src: _genericModalCheck.default,
|
|
106
115
|
alt: "Check icon"
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}), ", Completa los productos para poder exportar."]
|
|
111
|
-
}, "2")],
|
|
116
|
+
}), /*#__PURE__*/React.createElement("p", {
|
|
117
|
+
key: "2"
|
|
118
|
+
}, /*#__PURE__*/React.createElement("span", null, " Fichas t\xE9cnicas validadas con \xE9xito"), ", Completa los productos para poder exportar.")],
|
|
112
119
|
buttonType: "send-invitation"
|
|
113
120
|
};
|
|
114
121
|
var UploadImageDefault = Template.bind({});
|
|
115
122
|
exports.UploadImageDefault = UploadImageDefault;
|
|
116
123
|
UploadImageDefault.args = {
|
|
117
|
-
componentsArray: [/*#__PURE__*/
|
|
124
|
+
componentsArray: [/*#__PURE__*/React.createElement("img", {
|
|
125
|
+
key: "1",
|
|
118
126
|
className: "check",
|
|
119
127
|
src: _genericModalCheck.default,
|
|
120
128
|
alt: "Check icon"
|
|
121
|
-
}
|
|
129
|
+
}), /*#__PURE__*/React.createElement(_index2.ScreenHeader, {
|
|
122
130
|
fontFamily: _variables.FontFamily.Raleway_500,
|
|
123
131
|
headerType: "product-name-header",
|
|
124
132
|
color: _variables.GlobalColors.white,
|
|
125
|
-
text: "Imagen cargada con éxito,"
|
|
126
|
-
|
|
133
|
+
text: "Imagen cargada con éxito,",
|
|
134
|
+
key: "2"
|
|
135
|
+
}), /*#__PURE__*/React.createElement(_index2.ScreenHeader, {
|
|
127
136
|
fontFamily: _variables.FontFamily.AvenirNext,
|
|
128
137
|
headerType: "input-name-header",
|
|
129
138
|
color: _variables.GlobalColors.white,
|
|
130
|
-
text: "Por favor elige el tipo de empaque e imagen."
|
|
131
|
-
|
|
139
|
+
text: "Por favor elige el tipo de empaque e imagen.",
|
|
140
|
+
key: "3"
|
|
141
|
+
}), /*#__PURE__*/React.createElement(_index3.LoadImageMenu, {
|
|
132
142
|
tipo: "Tipo de empaque ",
|
|
133
143
|
product: "Producto expuesto",
|
|
134
144
|
content: [{
|
|
@@ -142,17 +152,20 @@ UploadImageDefault.args = {
|
|
|
142
152
|
}, {
|
|
143
153
|
label: "Si no es una imagen / no corresponde - X"
|
|
144
154
|
}],
|
|
145
|
-
id: "menu-packaging-type"
|
|
146
|
-
|
|
155
|
+
id: "menu-packaging-type",
|
|
156
|
+
key: "4"
|
|
157
|
+
}), /*#__PURE__*/React.createElement(_index3.LoadImageMenu, {
|
|
147
158
|
tipo: "Tipo de imagen ",
|
|
148
159
|
product: "Render",
|
|
149
160
|
content: [{
|
|
150
161
|
label: "fotografía del producto"
|
|
151
162
|
}],
|
|
152
|
-
id: "menu-image-type"
|
|
153
|
-
|
|
163
|
+
id: "menu-image-type",
|
|
164
|
+
key: "5"
|
|
165
|
+
}), /*#__PURE__*/React.createElement(_index4.Button, {
|
|
166
|
+
key: "6",
|
|
154
167
|
buttonType: "general-button-default",
|
|
155
168
|
label: "Guardar"
|
|
156
|
-
}
|
|
169
|
+
})],
|
|
157
170
|
buttonType: "upload-image"
|
|
158
171
|
};
|