frst-components 0.36.9 → 0.38.0
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/README.md +52 -52
- package/dist/esm/index.js +154 -0
- package/dist/esm/node_modules/style-inject/dist/style-inject.es.js +28 -0
- package/dist/esm/public/customIcons/CircledAlert.js +7 -0
- package/dist/esm/public/customIcons/CircledCheck.js +7 -0
- package/dist/esm/public/customIcons/DefaultProfile.js +7 -0
- package/dist/esm/public/customIcons/ExcludeVoteIcon.js +7 -0
- package/dist/esm/public/customIcons/LanguageIcon.js +7 -0
- package/dist/esm/public/customIcons/SmallTrash.js +7 -0
- package/dist/esm/public/customIcons/SwitchVoteIcon.js +7 -0
- package/dist/esm/public/customIcons/TagAlert.js +7 -0
- package/dist/esm/public/customIcons/VoteCurrentIcon.js +7 -0
- package/dist/esm/public/customIcons/VoteIcon.js +7 -0
- package/dist/esm/public/customIcons/WarningIcon.js +7 -0
- package/dist/esm/public/customIcons/newVoteIcon.js +7 -0
- package/dist/esm/public/img/Nonotification.png.js +3 -0
- package/dist/esm/public/img/TargetIcon.png.js +3 -0
- package/dist/esm/src/components/DS/CardJourney/index.js +12 -0
- package/dist/esm/src/components/DS/CardJourney/style.js +123 -0
- package/dist/esm/src/components/DS/ConfirmationModal/ComfirmModalDownload/ComfirmModalDownload.js +20 -0
- package/dist/esm/src/components/DS/ConfirmationModal/ConfirmationModal.js +10 -0
- package/dist/esm/src/components/DS/ConfirmationModal/styles.js +56 -0
- package/dist/esm/src/components/DS/LightTooltip/index.js +24 -0
- package/dist/esm/src/components/DS/admButton/admButton.styles.js +52 -0
- package/dist/esm/src/components/DS/admButton/index.js +17 -0
- package/dist/esm/src/components/DS/cardPeople/cardPeople.styles.js +71 -0
- package/dist/esm/src/components/DS/cardPeople/index.js +63 -0
- package/dist/esm/src/components/DS/cardUser/cardUser.styles.js +70 -0
- package/dist/esm/src/components/DS/cardUser/index.js +14 -0
- package/dist/esm/src/components/DS/dropdown-Multiselect/index.js +186 -0
- package/dist/esm/src/components/DS/dropdown-Multiselect/styles/multiselectStyles.js +214 -0
- package/dist/esm/src/components/DS/dropdown-Multiselect/styles/primereact.css.js +6 -0
- package/dist/esm/src/components/DS/dropdown-Multiselect/styles/stylesMulti.css.js +6 -0
- package/dist/esm/src/components/DS/groups-table/groupTableStyles.js +95 -0
- package/dist/esm/src/components/DS/groups-table/index.js +113 -0
- package/dist/esm/src/components/DS/hypotesisAndImpediment/UpDownButtons/index.js +8 -0
- package/dist/esm/src/components/DS/hypotesisAndImpediment/UpDownButtons/upDownButtons.styles.js +43 -0
- package/dist/esm/src/components/DS/hypotesisAndImpediment/Voting/index.js +40 -0
- package/dist/esm/src/components/DS/hypotesisAndImpediment/Voting/voting.styles.js +126 -0
- package/dist/esm/src/components/DS/hypotesisAndImpediment/hypothesisAndImpediment.style.js +115 -0
- package/dist/esm/src/components/DS/hypotesisAndImpediment/index.js +161 -0
- package/dist/esm/src/components/DS/impedimentosTab/addImpedimentoModal/index.js +35 -0
- package/dist/esm/src/components/DS/impedimentosTab/addImpedimentoModal/styles.js +14 -0
- package/dist/esm/src/components/DS/impedimentosTab/dropDown/index.js +20 -0
- package/dist/esm/src/components/DS/impedimentosTab/dropDown/styles.js +38 -0
- package/dist/esm/src/components/DS/impedimentosTab/index.js +180 -0
- package/dist/esm/src/components/DS/impedimentosTab/styles.js +178 -0
- package/dist/esm/src/components/DS/loading/index.js +45 -0
- package/dist/esm/src/components/DS/loading/loadingStyle.js +39 -0
- package/dist/esm/src/components/DS/modal/index.js +55 -0
- package/dist/esm/src/components/DS/modal/styles.js +86 -0
- package/dist/esm/src/components/DS/newCards/articles/index.js +12 -0
- package/dist/esm/src/components/DS/newCards/articles/styles.js +92 -0
- package/dist/esm/src/components/DS/newCards/challenge/index.js +82 -0
- package/dist/esm/src/components/DS/newCards/challenge/styles.js +198 -0
- package/dist/esm/src/components/DS/newCards/channels/index.js +10 -0
- package/dist/esm/src/components/DS/newCards/channels/styles.js +46 -0
- package/dist/esm/src/components/DS/newCards/content/index.js +16 -0
- package/dist/esm/src/components/DS/newCards/content/styles.js +103 -0
- package/dist/esm/src/components/DS/newCards/mentoring/index.js +38 -0
- package/dist/esm/src/components/DS/newCards/mentoring/styles.js +37 -0
- package/dist/esm/src/components/DS/newCards/people/index.js +120 -0
- package/dist/esm/src/components/DS/newCards/people/styles.js +75 -0
- package/dist/esm/src/components/DS/newCards/trail/index.js +10 -0
- package/dist/esm/src/components/DS/newCards/trail/styles.js +60 -0
- package/dist/esm/src/components/DS/onboarding-progress-menu/index.js +56 -0
- package/dist/esm/src/components/DS/onboarding-progress-menu/onboardingProgressMenuStyles.js +98 -0
- package/dist/esm/src/components/DS/progressGoalBar/index.js +29 -0
- package/dist/esm/src/components/DS/progressGoalBar/progressGoalBarStyles.js +183 -0
- package/dist/esm/src/components/DS/progressGoalBar/progressTexts.js +17 -0
- package/dist/esm/src/components/DS/progressGoalBar/useProgressGoalBar.js +232 -0
- package/dist/esm/src/components/DS/resourceInfoDrop/index.js +53 -0
- package/dist/esm/src/components/DS/resourceInfoDrop/styles.js +142 -0
- package/dist/esm/src/components/DS/resultFilterTabs/dropDownResult/index.js +20 -0
- package/dist/esm/src/components/DS/resultFilterTabs/dropDownResult/styles.js +38 -0
- package/dist/esm/src/components/DS/resultFilterTabs/index.js +162 -0
- package/dist/esm/src/components/DS/resultFilterTabs/resultFilterTabsStyles.js +167 -0
- package/dist/esm/src/components/DS/resultFilterTabs/rsuite.min.css.js +6 -0
- package/dist/esm/src/components/DS/scroll-container-v2/ButtonControl/buttonControlStyles.js +65 -0
- package/dist/esm/src/components/DS/scroll-container-v2/ButtonControl/index.js +19 -0
- package/dist/esm/src/components/DS/scroll-container-v2/ButtonControl/useLongPress.js +26 -0
- package/dist/esm/src/components/DS/scroll-container-v2/index.js +29 -0
- package/dist/esm/src/components/DS/scroll-container-v2/scrollContainerStyles.js +51 -0
- package/dist/esm/src/components/DS/scroll-container-v2/useScroll.js +85 -0
- package/dist/esm/src/components/DS/select/Select.js +50 -0
- package/dist/esm/src/components/DS/select/SelectContext.js +6 -0
- package/dist/esm/src/components/DS/select/SelectItem.js +46 -0
- package/dist/esm/src/components/DS/select/index.js +9 -0
- package/dist/esm/src/components/DS/select/styles/StylesSelect.js +107 -0
- package/dist/esm/src/components/DS/steps-progress/index.js +27 -0
- package/dist/esm/src/components/DS/steps-progress/stepsProgressStyles.js +85 -0
- package/dist/esm/src/components/DS/toast/index.js +35 -0
- package/dist/esm/src/components/DS/toast/toast.styles.js +68 -0
- package/dist/esm/src/components/DS/toast-v2/index.js +76 -0
- package/dist/esm/src/components/DS/toast-v2/toast-v2.styles.js +18 -0
- package/dist/esm/src/components/DS/tooltip/index.js +98 -0
- package/dist/esm/src/components/DS/tooltip/styles.js +146 -0
- package/dist/esm/src/components/EBR/buttons-group/index.js +17 -0
- package/dist/esm/src/components/EBR/buttons-group/styles.js +9 -0
- package/dist/esm/src/components/EBR/group-statistics/groupStatisticsStyles.js +56 -0
- package/dist/esm/src/components/EBR/group-statistics/index.js +61 -0
- package/dist/esm/src/components/EBR/objective-step/index.js +8 -0
- package/dist/esm/src/components/EBR/objective-step/objectiveStepStyles.js +36 -0
- package/dist/esm/src/components/EBR/rating/index.js +78 -0
- package/dist/esm/src/components/EBR/rating/ratingStyles.js +25 -0
- package/dist/esm/src/components/EBR/specialist-contact/index.js +11 -0
- package/dist/esm/src/components/EBR/specialist-contact/specialistContactStyles.js +91 -0
- package/dist/esm/src/components/EBR/stepper/stepper.js +8 -0
- package/dist/esm/src/components/EBR/stepper/stepperItem.js +13 -0
- package/dist/esm/src/components/EBR/stepper/styles.js +137 -0
- package/dist/esm/src/components/EBR/trail-list/index.js +57 -0
- package/dist/esm/src/components/EBR/trail-list/trailListStyles.js +51 -0
- package/dist/esm/src/components/FI/ThreadComments/index.js +45 -0
- package/dist/esm/src/components/FI/ThreadComments/threadComments.styles.js +51 -0
- package/dist/esm/src/components/FI/ThreadComments/utilitiesComponents/commentaryBoxReply/index.js +20 -0
- package/dist/esm/src/components/FI/ThreadComments/utilitiesComponents/inputReply/index.js +67 -0
- package/dist/esm/src/components/FI/ThreadComments/utilitiesComponents/inputReply/inputReply.styles.js +39 -0
- package/dist/esm/src/components/FI/bannerProblemFeed/bannerProblemFeedStyles.js +156 -0
- package/dist/esm/src/components/FI/bannerProblemFeed/index.js +161 -0
- package/dist/esm/src/components/FI/bannerSRG/bannerSRGStyle.js +217 -0
- package/dist/esm/src/components/FI/bannerSRG/index.js +15 -0
- package/dist/esm/src/components/FI/feedInteraction/feedInteractionStyles.js +137 -0
- package/dist/esm/src/components/FI/feedInteraction/index.js +88 -0
- package/dist/esm/src/components/FI/feedInteractionV2/feedInteractionStyles.js +52 -0
- package/dist/esm/src/components/FI/feedInteractionV2/index.js +22 -0
- package/dist/esm/src/components/FI/feedInteractionV3/feedInteractionV3Styles.js +49 -0
- package/dist/esm/src/components/FI/feedInteractionV3/index.js +29 -0
- package/dist/esm/src/components/FI/inputCommentPost-it/index.js +118 -0
- package/dist/esm/src/components/FI/inputCommentPost-it/inputCommentPost-It.utils.js +20 -0
- package/dist/esm/src/components/FI/inputCommentPost-it/inputCommentPost-ItStyles.js +190 -0
- package/dist/esm/src/components/FI/interactionsModal/InteractionsModalStyles.js +152 -0
- package/dist/esm/src/components/FI/interactionsModal/index.js +43 -0
- package/dist/esm/src/components/FI/modal-invite/index.js +146 -0
- package/dist/esm/src/components/FI/modal-invite/modalInviteStyles.js +115 -0
- package/dist/esm/src/components/FI/notificationCard/index.js +41 -0
- package/dist/esm/src/components/FI/notificationCard/notificationCardStyles.js +84 -0
- package/dist/esm/src/components/FI/notificationPopOver/index.js +59 -0
- package/dist/esm/src/components/FI/notificationPopOver/notificationPopOverStyles.js +112 -0
- package/dist/esm/src/components/FI/postFeed/index.js +53 -0
- package/dist/esm/src/components/FI/postFeed/postFeedStyles.js +181 -0
- package/dist/esm/src/components/FI/searchBox/SearchBoxStyles.js +23 -0
- package/dist/esm/src/components/FI/searchBox/index.js +11 -0
- package/dist/esm/src/components/FI/sessionFilters/index.js +72 -0
- package/dist/esm/src/components/FI/sessionFilters/sessionFiltersStyle.js +80 -0
- package/dist/esm/src/components/FI/smallSRGBanner/frstFundo.png.js +3 -0
- package/dist/esm/src/components/FI/smallSRGBanner/g12.png.js +3 -0
- package/dist/esm/src/components/FI/smallSRGBanner/index.js +12 -0
- package/dist/esm/src/components/FI/smallSRGBanner/smallSRGBannerStyles.js +61 -0
- package/dist/esm/src/components/IJ/ContentCycle/ContentCycleStyles.js +146 -0
- package/dist/esm/src/components/IJ/ContentCycle/index.js +21 -0
- package/dist/esm/src/components/IJ/ListContentCycle/ListContentCycleStyles.js +12 -0
- package/dist/esm/src/components/IJ/ListContentCycle/index.js +11 -0
- package/dist/esm/src/components/IJ/StepLearningCycle/StepLearningCycleStyle.js +94 -0
- package/dist/esm/src/components/IJ/StepLearningCycle/index.js +117 -0
- package/dist/esm/src/components/IJ/favorite/favoriteStyles.js +17 -0
- package/dist/esm/src/components/IJ/favorite/index.js +36 -0
- package/dist/esm/src/components/IJ/learningCycleCard/components/menu/index.js +49 -0
- package/dist/esm/src/components/IJ/learningCycleCard/components/menu/menuStyle.js +28 -0
- package/dist/esm/src/components/IJ/learningCycleCard/index.js +36 -0
- package/dist/esm/src/components/IJ/learningCycleCard/learningCycleCardStyle.js +153 -0
- package/dist/esm/src/components/IJ/listSelector/index.js +39 -0
- package/dist/esm/src/components/IJ/listSelector/listSelectorStyles.js +46 -0
- package/dist/esm/src/components/IJ/pagination/index.js +82 -0
- package/dist/esm/src/components/IJ/pagination/paginationStyles.js +59 -0
- package/dist/esm/src/components/IJ/participantCard/index.js +37 -0
- package/dist/esm/src/components/IJ/participantCard/participantCardStyle.js +273 -0
- package/dist/esm/src/components/IJ/participantCardOld/index.js +58 -0
- package/dist/esm/src/components/IJ/participantCardOld/participantCardStyle.js +293 -0
- package/dist/esm/src/components/IJ/thumbListContent/index.js +28 -0
- package/dist/esm/src/components/IJ/thumbListContent/thumbListContentStyles.js +250 -0
- package/dist/esm/src/components/IncrementarIdeia/icrementarIdeiaStyles.js +115 -0
- package/dist/esm/src/components/IncrementarIdeia/index.js +98 -0
- package/dist/esm/src/components/IncrementarIdeia/useAutosizeTextArea.js +13 -0
- package/dist/esm/src/components/LXP/AccordionList/AccordionList.styles.js +101 -0
- package/dist/esm/src/components/LXP/AccordionList/index.js +26 -0
- package/dist/esm/src/components/LXP/accordionTrack/accordionTrack.js +179 -0
- package/dist/esm/src/components/LXP/accordionTrack/accordionTrackList.js +187 -0
- package/dist/esm/src/components/LXP/accordionTrack/accordionTrackStyle.js +194 -0
- package/dist/esm/src/components/LXP/accordionTrack/contentCourses.js +8 -0
- package/dist/esm/src/components/LXP/accordionTrack/contentCoursesTrails.js +189 -0
- package/dist/esm/src/components/LXP/accordionTrack/vectorDown.js +13 -0
- package/dist/esm/src/components/LXP/accordionTrack/vectorUp.js +13 -0
- package/dist/esm/src/components/LXP/avatarAssociatedChannel/avatarAssociatedChannelStyles.js +83 -0
- package/dist/esm/src/components/LXP/avatarAssociatedChannel/index.js +11 -0
- package/dist/esm/src/components/LXP/avatarChannel/avatarChannelStyles.js +106 -0
- package/dist/esm/src/components/LXP/avatarChannel/index.js +32 -0
- package/dist/esm/src/components/LXP/bannerLxp/bannerLxp.js +150 -0
- package/dist/esm/src/components/LXP/bannerLxp/index.js +124 -0
- package/dist/esm/src/components/LXP/buttonContent/buttonContentStyle.js +63 -0
- package/dist/esm/src/components/LXP/buttonContent/index.js +11 -0
- package/dist/esm/src/components/LXP/calendarLxp/calendar.css.js +6 -0
- package/dist/esm/src/components/LXP/calendarLxp/calendarLxp.module.css.js +7 -0
- package/dist/esm/src/components/LXP/calendarLxp/defaultRanges.js +79 -0
- package/dist/esm/src/components/LXP/calendarLxp/index.js +26 -0
- package/dist/esm/src/components/LXP/colorpicker/colorpickerStyles.js +43 -0
- package/dist/esm/src/components/LXP/colorpicker/index.js +20 -0
- package/dist/esm/src/components/LXP/contentSwitcher/contentSwitcherStyle.js +94 -0
- package/dist/esm/src/components/LXP/contentSwitcher/index.js +10 -0
- package/dist/esm/src/components/LXP/contentThumbnails/contentThumbnailsStyle.js +184 -0
- package/dist/esm/src/components/LXP/contentThumbnails/index.js +77 -0
- package/dist/esm/src/components/LXP/contentThumbnails/vectorDown.js +13 -0
- package/dist/esm/src/components/LXP/contentThumbnails/vectorUp.js +13 -0
- package/dist/esm/src/components/LXP/fileUpload/fileUploadStyles.js +88 -0
- package/dist/esm/src/components/LXP/fileUpload/index.js +21 -0
- package/dist/esm/src/components/LXP/headerContent/headerContent.js +218 -0
- package/dist/esm/src/components/LXP/headerContent/index.js +45 -0
- package/dist/esm/src/components/LXP/login/index.js +157 -0
- package/dist/esm/src/components/LXP/login/loginStyle.js +271 -0
- package/dist/esm/src/components/LXP/manageLerningCicles/index.js +40 -0
- package/dist/esm/src/components/LXP/manageLerningCicles/manageLearningCicles.Style.js +84 -0
- package/dist/esm/src/components/LXP/modalNewFeatures/ModalNewFeatures.style.js +204 -0
- package/dist/esm/src/components/LXP/modalNewFeatures/index.js +41 -0
- package/dist/esm/src/components/LXP/participantThumbnails/index.js +20 -0
- package/dist/esm/src/components/LXP/participantThumbnails/participantThumbnails.js +94 -0
- package/dist/esm/src/components/LXP/participantThumbnailsList/index.js +35 -0
- package/dist/esm/src/components/LXP/popOver/index.js +68 -0
- package/dist/esm/src/components/LXP/popOver/popOverStyle.js +130 -0
- package/dist/esm/src/components/LXP/popOverLXP-antigo/index.js +23 -0
- package/dist/esm/src/components/LXP/popOverLXP-antigo/popOverLXPStyles.js +123 -0
- package/dist/esm/src/components/LXP/progressBar/index.js +11 -0
- package/dist/esm/src/components/LXP/progressBar/progressStyle.js +32 -0
- package/dist/esm/src/components/LXP/searchResults/index.js +15 -0
- package/dist/esm/src/components/LXP/searchResults/searchResultsStyles.js +63 -0
- package/dist/esm/src/components/LXP/selectLXP/SelectLXP.js +128 -0
- package/dist/esm/src/components/LXP/selectLXP/SelectLXPContext.js +6 -0
- package/dist/esm/src/components/LXP/selectLXP/SelectLXPItem.js +40 -0
- package/dist/esm/src/components/LXP/selectLXP/index.js +9 -0
- package/dist/esm/src/components/LXP/star-metric/index.js +13 -0
- package/dist/esm/src/components/LXP/star-metric/starMetricStyles.js +13 -0
- package/dist/esm/src/components/LXP/thumbnails/headerVectorElipses.js +13 -0
- package/dist/esm/src/components/LXP/thumbnails/loadingThumbnails.js +9 -0
- package/dist/esm/src/components/LXP/thumbnails/thumbnails.js +119 -0
- package/dist/esm/src/components/LXP/thumbnails/thumbnailsDraggable.js +13 -0
- package/dist/esm/src/components/LXP/thumbnails/thumbnailsStyle.js +188 -0
- package/dist/esm/src/components/LXP/thumbnails/vectorCross.js +13 -0
- package/dist/esm/src/components/LXP/thumbnails/vectorEllipse.js +13 -0
- package/dist/esm/src/components/LXP/tooltip/index.js +11 -0
- package/dist/esm/src/components/LXP/tooltip/tooltipStyle.js +131 -0
- package/dist/esm/src/components/LXP/video/index.js +10 -0
- package/dist/esm/src/components/LogoFRST/index.js +13 -0
- package/dist/esm/src/components/LogoFRST/logoFRST.module.css.js +7 -0
- package/dist/esm/src/components/ModalConfirme/index.js +10 -0
- package/dist/esm/src/components/ModalConfirme/styles.js +51 -0
- package/dist/esm/src/components/accordion-tabs/accordionTabsStyles.js +100 -0
- package/dist/esm/src/components/accordion-tabs/index.js +34 -0
- package/dist/esm/src/components/actioExperience/actioExperience.styles.js +163 -0
- package/dist/esm/src/components/actioExperience/icons.js +19 -0
- package/dist/esm/src/components/actioExperience/index.js +20 -0
- package/dist/esm/src/components/audio-player/audioPlayerStyles.js +329 -0
- package/dist/esm/src/components/audio-player/index.js +110 -0
- package/dist/esm/src/components/avatar/avatarStyles.js +24 -0
- package/dist/esm/src/components/avatar/index.js +17 -0
- package/dist/esm/src/components/brainstorming-votar/index.js +10 -0
- package/dist/esm/src/components/brainstorming-votar/votarStyles.js +85 -0
- package/dist/esm/src/components/buttons/buttonStyle.js +389 -0
- package/dist/esm/src/components/buttons/index.js +31 -0
- package/dist/esm/src/components/calendar/calendarStyle.js +185 -0
- package/dist/esm/src/components/calendar/index.js +60 -0
- package/dist/esm/src/components/card-trail/cardTrailStyle.js +29 -0
- package/dist/esm/src/components/card-trail/index.js +50 -0
- package/dist/esm/src/components/card-trail/moduleStyle.js +92 -0
- package/dist/esm/src/components/card-trail-carousel/index.js +15 -0
- package/dist/esm/src/components/cardLT/AvatarWithInfo/avatarWithInfo.module.css.js +7 -0
- package/dist/esm/src/components/cardLT/AvatarWithInfo/index.js +16 -0
- package/dist/esm/src/components/cardLT/AvatarWithInfo/vector.js +13 -0
- package/dist/esm/src/components/cardLT/BannerProblem/BannerProblem.module.css.js +7 -0
- package/dist/esm/src/components/cardLT/BannerProblem/index.js +312 -0
- package/dist/esm/src/components/cardLT/BannerProblem/styles.js +30 -0
- package/dist/esm/src/components/cardLT/MessageBox/MessageBox.module.css.js +7 -0
- package/dist/esm/src/components/cardLT/MessageBox/icons/errorIcon.js +13 -0
- package/dist/esm/src/components/cardLT/MessageBox/icons/successIcon.js +13 -0
- package/dist/esm/src/components/cardLT/MessageBox/icons/warningIcon.js +13 -0
- package/dist/esm/src/components/cardLT/MessageBox/index.js +59 -0
- package/dist/esm/src/components/cardLT/Rating/Rating.module.css.js +7 -0
- package/dist/esm/src/components/cardLT/Rating/index.js +26 -0
- package/dist/esm/src/components/cardLT/Rating/starIcon.js +13 -0
- package/dist/esm/src/components/cardLT/RatingCurtidas/RatingCurtidas.module.css.js +7 -0
- package/dist/esm/src/components/cardLT/RatingCurtidas/index.js +15 -0
- package/dist/esm/src/components/cardLT/RocketButton/RocketButtonIcon.js +13 -0
- package/dist/esm/src/components/cardLT/RocketButton/index.js +26 -0
- package/dist/esm/src/components/cardLT/StepsMission/Planet.module.css.js +7 -0
- package/dist/esm/src/components/cardLT/StepsMission/StepMission.js +108 -0
- package/dist/esm/src/components/cardLT/StepsMission/Steps.js +68 -0
- package/dist/esm/src/components/cardLT/TextIcon/TextIcon.module.css.js +7 -0
- package/dist/esm/src/components/cardLT/TextIcon/index.js +14 -0
- package/dist/esm/src/components/cards/base/index.js +8 -0
- package/dist/esm/src/components/cards/cardDefinicaoFase/cardDefinicaoFase.module.css.js +7 -0
- package/dist/esm/src/components/cards/cardDefinicaoFase/index.js +30 -0
- package/dist/esm/src/components/cards/cardFaseDesafios/index.js +30 -0
- package/dist/esm/src/components/cards/cardFaseDesafios/styles.js +160 -0
- package/dist/esm/src/components/cards/cardProblem/cardProblem.module.css.js +7 -0
- package/dist/esm/src/components/cards/cardProblem/index.js +144 -0
- package/dist/esm/src/components/cards/cardProblemGestor/cardProblemaGestor.module.css.js +7 -0
- package/dist/esm/src/components/cards/cardProblemGestor/index.js +26 -0
- package/dist/esm/src/components/cards/cardResultConquista/Icons/Aprendizado.png.js +3 -0
- package/dist/esm/src/components/cards/cardResultConquista/Icons/AprendizadoPressed.png.js +3 -0
- package/dist/esm/src/components/cards/cardResultConquista/Icons/Conquista.png.js +3 -0
- package/dist/esm/src/components/cards/cardResultConquista/Icons/ConquistaPressed.png.js +3 -0
- package/dist/esm/src/components/cards/cardResultConquista/cardResultConquista.module.css.js +7 -0
- package/dist/esm/src/components/cards/cardResultConquista/index.js +40 -0
- package/dist/esm/src/components/cards/user/index.js +85 -0
- package/dist/esm/src/components/challenge-cards/challengeCardStyles.js +246 -0
- package/dist/esm/src/components/challenge-cards/dropdownMenuStyle.js +85 -0
- package/dist/esm/src/components/challenge-cards/index.js +174 -0
- package/dist/esm/src/components/checkmark/checkmarkStyles.js +24 -0
- package/dist/esm/src/components/checkmark/index.js +32 -0
- package/dist/esm/src/components/comment-post/commentPostStyles.js +23 -0
- package/dist/esm/src/components/comment-post/index.js +16 -0
- package/dist/esm/src/components/commentary-box/commentaryBox.utils.js +24 -0
- package/dist/esm/src/components/commentary-box/commentaryBoxStyles.js +240 -0
- package/dist/esm/src/components/commentary-box/index.js +104 -0
- package/dist/esm/src/components/commentaryBoxV2/CommentaryBoxV2.styles.js +282 -0
- package/dist/esm/src/components/commentaryBoxV2/index.js +157 -0
- package/dist/esm/src/components/commentaryBoxV2/utilitiesComponents/inputEdit/index.js +45 -0
- package/dist/esm/src/components/commentaryBoxV2/utilitiesComponents/inputEdit/inputEdit.styles.js +54 -0
- package/dist/esm/src/components/conquistaCarrossel/index.js +26 -0
- package/dist/esm/src/components/counter-like/counterLikeStyles.js +26 -0
- package/dist/esm/src/components/counter-like/index.js +28 -0
- package/dist/esm/src/components/criar-ideia/criarIdeiaStyles.js +144 -0
- package/dist/esm/src/components/criar-ideia/index.js +58 -0
- package/dist/esm/src/components/criar-ideia/useAutosizeTextArea.js +13 -0
- package/dist/esm/src/components/demo/stepController/StepControllerStyle.js +47 -0
- package/dist/esm/src/components/demo/stepController/index.js +12 -0
- package/dist/esm/src/components/dropdown-profile-menu/dropdownProfileMenuStyle.js +162 -0
- package/dist/esm/src/components/dropdown-profile-menu/index.js +84 -0
- package/dist/esm/src/components/emoji-picker/emojiPickerStyles.js +61 -0
- package/dist/esm/src/components/emoji-picker/index.js +87 -0
- package/dist/esm/src/components/exclusive-class/exclusiveClassStyles.js +32 -0
- package/dist/esm/src/components/exclusive-class/index.js +13 -0
- package/dist/esm/src/components/expand-button/expandButtonStyle.js +47 -0
- package/dist/esm/src/components/expand-button/index.js +23 -0
- package/dist/esm/src/components/field-search-dropdown/fieldSearchStyle.js +139 -0
- package/dist/esm/src/components/field-search-dropdown/index.js +105 -0
- package/dist/esm/src/components/filter-accordion-checkbox/filterAccordionCheckbox.utils.js +7 -0
- package/dist/esm/src/components/filter-accordion-checkbox/index.js +135 -0
- package/dist/esm/src/components/filtro-galeria-desafio/index.js +59 -0
- package/dist/esm/src/components/filtro-galeria-desafio/styles/MultiSelectDemo.js +245 -0
- package/dist/esm/src/components/filtro-galeria-desafio/styles/icons/arrowCarrosselDown.png.js +3 -0
- package/dist/esm/src/components/filtro-galeria-desafio/styles/icons/arrow_carrossel_down.png.js +3 -0
- package/dist/esm/src/components/filtro-galeria-desafio/styles/primeflex.css.js +6 -0
- package/dist/esm/src/components/filtro-galeria-desafio/styles/primereact.css.js +6 -0
- package/dist/esm/src/components/filtro-galeria-desafio/styles/theme.css.js +6 -0
- package/dist/esm/src/components/form-elements/checkbox/checkboxStyle.js +36 -0
- package/dist/esm/src/components/form-elements/checkbox/index.js +16 -0
- package/dist/esm/src/components/form-elements/helperTextBox/helperTextBox.js +9 -0
- package/dist/esm/src/components/form-elements/helperTextBox/styles.js +20 -0
- package/dist/esm/src/components/form-elements/table/index.js +37 -0
- package/dist/esm/src/components/form-elements/table/parts/TableBody/index.js +22 -0
- package/dist/esm/src/components/form-elements/table/parts/TableBody/tableStyle.js +50 -0
- package/dist/esm/src/components/form-elements/table/parts/TableHead/index.js +11 -0
- package/dist/esm/src/components/form-elements/table/parts/TableHead/tableStyle.js +24 -0
- package/dist/esm/src/components/form-elements/table/tableStyle.js +49 -0
- package/dist/esm/src/components/form-elements/table-actions/index.js +82 -0
- package/dist/esm/src/components/form-elements/table-actions/parts/CollaboratorAvatar/collaboratorAvatarStyle.js +12 -0
- package/dist/esm/src/components/form-elements/table-actions/parts/CollaboratorAvatar/index.js +23 -0
- package/dist/esm/src/components/form-elements/table-actions/parts/DateLimit/dateLimitStyle.js +28 -0
- package/dist/esm/src/components/form-elements/table-actions/parts/DateLimit/index.js +8 -0
- package/dist/esm/src/components/form-elements/table-actions/parts/EmptyState/emptyStateStyle.js +57 -0
- package/dist/esm/src/components/form-elements/table-actions/parts/EmptyState/index.js +22 -0
- package/dist/esm/src/components/form-elements/table-actions/parts/TagStatus/index.js +8 -0
- package/dist/esm/src/components/form-elements/table-actions/parts/TagStatus/tagStatusStyle.js +58 -0
- package/dist/esm/src/components/form-elements/table-actions/tableActionsStyle.js +110 -0
- package/dist/esm/src/components/form-elements/textarea/index.js +8 -0
- package/dist/esm/src/components/form-elements/textfield/index.js +42 -0
- package/dist/esm/src/components/form-elements/textfield/textFieldStyle.js +169 -0
- package/dist/esm/src/components/global-menu/globalMenuStyles.js +385 -0
- package/dist/esm/src/components/global-menu/index.js +181 -0
- package/dist/esm/src/components/header-improvement-idea/headerImprovementIdeaStyles.js +18 -0
- package/dist/esm/src/components/header-improvement-idea/index.js +24 -0
- package/dist/esm/src/components/header-user/headerUserStyles.js +50 -0
- package/dist/esm/src/components/header-user/index.js +13 -0
- package/dist/esm/src/components/headerChallenge/headerChallengeStyle.js +104 -0
- package/dist/esm/src/components/headerChallenge/index.js +9 -0
- package/dist/esm/src/components/hypothesisComponent/hypothesisComponent.style.js +220 -0
- package/dist/esm/src/components/hypothesisComponent/index.js +145 -0
- package/dist/esm/src/components/hypothesisComponent/types.js +8 -0
- package/dist/esm/src/components/input-comment/index.js +69 -0
- package/dist/esm/src/components/input-comment/inputCommentStyles.js +142 -0
- package/dist/esm/src/components/input-comment/mentions.js +18 -0
- package/dist/esm/src/components/input-comment/mentionsStyle.js +126 -0
- package/dist/esm/src/components/input-comment/useInputHook.js +375 -0
- package/dist/esm/src/components/input-comment/useMentions.js +39 -0
- package/dist/esm/src/components/input-comment-v2/index.js +81 -0
- package/dist/esm/src/components/input-comment-v2/inputCommentStyles.js +101 -0
- package/dist/esm/src/components/item-lateral-menu/index.js +34 -0
- package/dist/esm/src/components/item-lateral-menu/itemLateralMenuStyles.js +110 -0
- package/dist/esm/src/components/item-menu-global/index.js +11 -0
- package/dist/esm/src/components/item-menu-global/itemMenuGlobalStyles.js +74 -0
- package/dist/esm/src/components/lateral-menu/index.js +21 -0
- package/dist/esm/src/components/lateral-menu/lateralMenuStyles.js +65 -0
- package/dist/esm/src/components/learning-steps/index.js +23 -0
- package/dist/esm/src/components/learning-steps/learningStepsStyles.js +39 -0
- package/dist/esm/src/components/menu-more/index.js +31 -0
- package/dist/esm/src/components/menu-more/menuMoreStyles.js +136 -0
- package/dist/esm/src/components/mini-button/index.js +15 -0
- package/dist/esm/src/components/mini-button/miniButtonStyle.js +108 -0
- package/dist/esm/src/components/modal/modalBase/index.js +31 -0
- package/dist/esm/src/components/modal/modalBase/modalBase.module.css.js +7 -0
- package/dist/esm/src/components/modal/modalLXP/Modal.js +24 -0
- package/dist/esm/src/components/modal/modalLXP/modal.module.css.js +7 -0
- package/dist/esm/src/components/modal/modalLearningTech/index.js +17 -0
- package/dist/esm/src/components/modal/modalLearningTech/modalLearningTech.module.css.js +7 -0
- package/dist/esm/src/components/modal/modalShowUsers/index.js +11 -0
- package/dist/esm/src/components/modal/modalShowUsers/styles.js +122 -0
- package/dist/esm/src/components/modal/modalVideo/index.js +56 -0
- package/dist/esm/src/components/modal/modalVideo/modalVideo.module.css.js +7 -0
- package/dist/esm/src/components/modal/modalWelcome/index.js +43 -0
- package/dist/esm/src/components/modal/modalWelcome/styles.js +38 -0
- package/dist/esm/src/components/modal/statusProblema/index.js +33 -0
- package/dist/esm/src/components/modal/statusProblema/problemaFRST.png.js +3 -0
- package/dist/esm/src/components/modal/statusProblema/statusProblema.module.css.js +7 -0
- package/dist/esm/src/components/quantidadeDesafios/index.js +73 -0
- package/dist/esm/src/components/quantidadeDesafios/quantidadeDesafios.js +95 -0
- package/dist/esm/src/components/quantidadeDesafios/stats.js +8 -0
- package/dist/esm/src/components/quantidadeDesafios/statsWithResult.js +8 -0
- package/dist/esm/src/components/scroll-container/index.js +90 -0
- package/dist/esm/src/components/scroll-container/scrollContainer.utils.js +7 -0
- package/dist/esm/src/components/scroll-container/scrollContainerStyles.js +85 -0
- package/dist/esm/src/components/search-field/index.js +19 -0
- package/dist/esm/src/components/search-field/searchFieldStyles.js +87 -0
- package/dist/esm/src/components/show-more/index.js +20 -0
- package/dist/esm/src/components/show-more/showMoreStyles.js +26 -0
- package/dist/esm/src/components/speech-bubble/index.js +11 -0
- package/dist/esm/src/components/speech-bubble/speechBubbleStyles.js +100 -0
- package/dist/esm/src/components/step-card/index.js +13 -0
- package/dist/esm/src/components/step-card/stepCardStyles.js +90 -0
- package/dist/esm/src/components/tag/index.js +22 -0
- package/dist/esm/src/components/totalizer-card/index.js +16 -0
- package/dist/esm/src/components/totalizer-card/totalizerCardStyles.js +84 -0
- package/dist/esm/src/components/users-challenge/index.js +13 -0
- package/dist/esm/src/components/users-challenge/styles.js +125 -0
- package/dist/esm/src/components/users-challenge/variant-feed/index.js +34 -0
- package/dist/esm/src/components/users-challenge/variant-feed/styles.js +125 -0
- package/dist/esm/src/components/users-challenge/variant-form/index.js +23 -0
- package/dist/esm/src/components/users-challenge/variant-form/styles.js +125 -0
- package/dist/esm/src/components/users-challenge/variant-lxp/index.js +21 -0
- package/dist/esm/src/components/users-challenge/variant-lxp/styles.js +122 -0
- package/dist/esm/src/components/users-challenge/variant-vitrine/index.js +34 -0
- package/dist/esm/src/components/users-challenge/variant-vitrine/styles.js +123 -0
- package/dist/esm/src/shared/global.css.js +6 -0
- package/dist/esm/src/shared/globalComponentsStyle.js +83 -0
- package/dist/esm/src/shared/icons.js +531 -0
- package/dist/esm/src/theme/index.js +7 -0
- package/dist/esm/src/theme/tokens.js +235 -0
- package/dist/esm/src/utilityFunctions/abbreviateMiddleSurnames.js +23 -0
- package/dist/esm/src/utilityFunctions/buildStringWithHTML.js +10 -0
- package/dist/esm/src/utilityFunctions/createUUID.js +11 -0
- package/dist/index.js +15175 -15175
- package/dist/src/components/mini-button/index.d.ts +1 -1
- package/dist/src/components/mini-button/index.d.ts.map +1 -1
- package/package.json +120 -116
- package/public/customIcons/CheckIcon.tsx +16 -16
- package/public/customIcons/CircledAlert.tsx +21 -21
- package/public/customIcons/CircledCheck.tsx +20 -20
- package/public/customIcons/CloseIcon.tsx +23 -23
- package/public/customIcons/DefaultProfile.tsx +15 -15
- package/public/customIcons/ExcludeVoteIcon.tsx +40 -40
- package/public/customIcons/FrstLogoChallengeIcon.tsx +20 -20
- package/public/customIcons/FrstLogoIcon.tsx +8 -8
- package/public/customIcons/LanguageIcon.tsx +24 -24
- package/public/customIcons/SmallTrash.tsx +20 -20
- package/public/customIcons/SwitchVoteIcon.tsx +22 -22
- package/public/customIcons/TagAlert.tsx +10 -10
- package/public/customIcons/VoteCurrentIcon.tsx +22 -22
- package/public/customIcons/VoteIcon.tsx +41 -41
- package/public/customIcons/WarningIcon.tsx +21 -21
- package/public/customIcons/index.ts +15 -15
- package/public/customIcons/newVoteIcon.tsx +36 -36
- package/public/index.html +43 -43
- package/public/locales/en-US.json +33 -33
- package/public/locales/es.json +34 -34
- package/public/locales/pt-BR.json +41 -41
- package/public/manifest.json +15 -15
- package/public/robots.txt +3 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const WrapperStars = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
flex-direction: ${({ orientation }) => orientation == 'vertical' ? 'column' : 'row'};
|
|
9
|
+
width: auto;
|
|
10
|
+
`;
|
|
11
|
+
const Raiting = styled.p `
|
|
12
|
+
display: flex;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
font-family: Work Sans;
|
|
16
|
+
font-size: 24px;
|
|
17
|
+
line-height: 100%;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
line-height: 28px;
|
|
20
|
+
color: #222;
|
|
21
|
+
padding-top: 3px;
|
|
22
|
+
margin-left: 16.5px;
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
export { Raiting, WrapperStars };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { Wrapper, Title, WrapperSpecialist, AvatarImg, TextSpecialist, Name, Email, Phone, WrapperButtons } from './specialistContactStyles.js';
|
|
3
|
+
import { WhatAppBordered, MailBordered } from '../../../shared/icons.js';
|
|
4
|
+
import Button from '../../buttons/index.js';
|
|
5
|
+
|
|
6
|
+
function SpecialistContact({ title, avatar, name, email, telephone, mobileVersion, handleActionConversation, textButtonConversation, handleActionSendEmail, textButtonSendEmail }) {
|
|
7
|
+
const src = 'https://i.gyazo.com/499dda909b1ebfe0375d1efa2d5d00a8.png';
|
|
8
|
+
return (jsxs(Wrapper, { mobileVersion: mobileVersion, children: [jsx(Title, { mobileVersion: mobileVersion, children: title }), jsxs(WrapperSpecialist, { mobileVersion: mobileVersion, children: [jsx(AvatarImg, { src: avatar ? avatar : src }), jsxs(TextSpecialist, { mobileVersion: mobileVersion, children: [jsxs(Name, { mobileVersion: mobileVersion, children: [" ", name, " "] }), jsxs(Email, { mobileVersion: mobileVersion, children: [" ", email, " "] }), jsxs(Phone, { mobileVersion: mobileVersion, children: [" ", telephone, " "] })] })] }), jsxs(WrapperButtons, { children: [jsx(Button, { variant: 'primary', label: textButtonConversation ? textButtonConversation : 'Iniciar conversa', handleClick: () => handleActionConversation(), startIcon: !mobileVersion && jsx(WhatAppBordered, {}), sizeIcon: '22px' }), jsx(Button, { variant: 'primary', label: textButtonSendEmail ? textButtonSendEmail : 'Enviar e-mail', handleClick: () => handleActionSendEmail(), startIcon: !mobileVersion && jsx(MailBordered, {}), sizeIcon: '22px' })] })] }));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { SpecialistContact as default };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Wrapper = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
max-width: ${({ mobileVersion }) => mobileVersion ? '343px' : '400px'};
|
|
7
|
+
`;
|
|
8
|
+
const Title = styled.p `
|
|
9
|
+
font-family: 'Work Sans';
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-weight: 700;
|
|
12
|
+
font-size: 24px;
|
|
13
|
+
line-height: 130%;
|
|
14
|
+
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: ${({ mobileVersion }) => mobileVersion ? 'start' : 'center'};
|
|
17
|
+
letter-spacing: 0.01em;
|
|
18
|
+
color: #222;
|
|
19
|
+
`;
|
|
20
|
+
const AvatarImg = styled.img `
|
|
21
|
+
width: 80px;
|
|
22
|
+
height: 80px;
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
object-fit: cover;
|
|
25
|
+
`;
|
|
26
|
+
const WrapperSpecialist = styled.div `
|
|
27
|
+
display: flex;
|
|
28
|
+
margin-top: ${({ mobileVersion }) => mobileVersion ? '32px' : '48px'};
|
|
29
|
+
flex-direction:${({ mobileVersion }) => mobileVersion ? 'column' : 'row'};
|
|
30
|
+
align-items: ${({ mobileVersion }) => mobileVersion ? 'center' : 'start'};
|
|
31
|
+
`;
|
|
32
|
+
const TextSpecialist = styled.div `
|
|
33
|
+
margin-left: ${({ mobileVersion }) => mobileVersion ? '0px' : '24px'};
|
|
34
|
+
`;
|
|
35
|
+
const Phone = styled.p `
|
|
36
|
+
font-family: 'Work Sans';
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
line-height: 19px;
|
|
41
|
+
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content:${({ mobileVersion }) => mobileVersion ? 'center' : 'start'};
|
|
45
|
+
text-align: center;
|
|
46
|
+
letter-spacing: 0.25px;
|
|
47
|
+
|
|
48
|
+
color: #222222;
|
|
49
|
+
margin-bottom: 8px;
|
|
50
|
+
`;
|
|
51
|
+
const Email = styled.p `
|
|
52
|
+
font-family: 'Work Sans';
|
|
53
|
+
font-style: normal;
|
|
54
|
+
font-weight: 400;
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
line-height: 19px;
|
|
57
|
+
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
text-align: start;
|
|
61
|
+
justify-content:${({ mobileVersion }) => mobileVersion ? 'center' : 'start'};
|
|
62
|
+
|
|
63
|
+
letter-spacing: 0.25px;
|
|
64
|
+
|
|
65
|
+
color: #222222;
|
|
66
|
+
margin-bottom: 8px;
|
|
67
|
+
`;
|
|
68
|
+
const Name = styled.p `
|
|
69
|
+
font-family: 'Work Sans';
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: 600;
|
|
72
|
+
font-size: 20px;
|
|
73
|
+
line-height: 23px;
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
justify-content:${({ mobileVersion }) => mobileVersion ? 'center' : 'start'};
|
|
77
|
+
text-align: center;
|
|
78
|
+
letter-spacing: 0.25px;
|
|
79
|
+
color: #222;
|
|
80
|
+
margin-bottom: 8px;
|
|
81
|
+
margin-top:${({ mobileVersion }) => mobileVersion ? '24px' : '0px'};
|
|
82
|
+
`;
|
|
83
|
+
const WrapperButtons = styled.div `
|
|
84
|
+
display:flex;
|
|
85
|
+
justify-content: space-between;
|
|
86
|
+
width: 100%;
|
|
87
|
+
margin-top: 45px;
|
|
88
|
+
gap: 16px;
|
|
89
|
+
`;
|
|
90
|
+
|
|
91
|
+
export { AvatarImg, Email, Name, Phone, TextSpecialist, Title, Wrapper, WrapperButtons, WrapperSpecialist };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { ProgressContainer, Progress } from './styles.js';
|
|
3
|
+
|
|
4
|
+
function Stepper({ children, }) {
|
|
5
|
+
return (jsx(Fragment, { children: jsx(ProgressContainer, { children: jsx(Progress, { children: children && children }) }) }));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { Stepper as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { ProgressItem, ProgressItemTitle, ProgressItemSubtitle } from './styles.js';
|
|
3
|
+
import Button from '../../buttons/index.js';
|
|
4
|
+
|
|
5
|
+
function StepperItem({ title, subtitle, buttonText, active = false, onClick }) {
|
|
6
|
+
return (jsx(ProgressItem, { active: active, children: active
|
|
7
|
+
?
|
|
8
|
+
jsxs(Fragment, { children: [jsx(ProgressItemTitle, { active: active, children: title }), jsx(ProgressItemSubtitle, { active: active, children: subtitle }), jsx(Button, { handleClick: onClick, label: buttonText || 'Agendar reunião', variant: "primary" })] })
|
|
9
|
+
:
|
|
10
|
+
jsx(ProgressItemTitle, { children: title }) }));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { StepperItem as default };
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
styled.div `
|
|
4
|
+
width: 100%;
|
|
5
|
+
width: 1280px;
|
|
6
|
+
height: 587px;
|
|
7
|
+
background: #F2F2F2;
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
`;
|
|
14
|
+
const ProgressContainer = styled.div `
|
|
15
|
+
position: relative;
|
|
16
|
+
padding-left: 75px;
|
|
17
|
+
`;
|
|
18
|
+
const Progress = styled.ul `
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: flex-start;
|
|
23
|
+
list-style: none;
|
|
24
|
+
align-items: flex-start;
|
|
25
|
+
`;
|
|
26
|
+
const ProgressItem = styled.li `
|
|
27
|
+
width: 100%;
|
|
28
|
+
min-height: 78px;
|
|
29
|
+
height: auto;
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
justify-content: flex-start;
|
|
34
|
+
position: relative;
|
|
35
|
+
counter-increment: list;
|
|
36
|
+
|
|
37
|
+
${({ active }) => active === true && `
|
|
38
|
+
padding-bottom: 50px;
|
|
39
|
+
|
|
40
|
+
@media (max-width: 768px) {
|
|
41
|
+
padding-bottom: 50px;
|
|
42
|
+
}
|
|
43
|
+
`}
|
|
44
|
+
|
|
45
|
+
&:first-child {
|
|
46
|
+
&::before {
|
|
47
|
+
top: 10px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:last-child {
|
|
52
|
+
min-height: 46px;
|
|
53
|
+
|
|
54
|
+
&::before {
|
|
55
|
+
top: -30px;
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:before {
|
|
61
|
+
content: "";
|
|
62
|
+
position: absolute;
|
|
63
|
+
left: -79px;
|
|
64
|
+
top: 2px;
|
|
65
|
+
height: 100%;
|
|
66
|
+
background-color: #6A3F86;
|
|
67
|
+
width: 14px;
|
|
68
|
+
z-index: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:after {
|
|
72
|
+
content: counter(list);
|
|
73
|
+
position: absolute;
|
|
74
|
+
z-index: 1;
|
|
75
|
+
left: -95px;
|
|
76
|
+
width: 40px;
|
|
77
|
+
height: 40px;
|
|
78
|
+
border-radius: 50%;
|
|
79
|
+
background: transparent;
|
|
80
|
+
color: ${({ active }) => active === true ? '#FFFFFF' : '#757575'};;
|
|
81
|
+
text-align: center;
|
|
82
|
+
border: 3.5px solid #9C9C9C;
|
|
83
|
+
background-color: #fff;
|
|
84
|
+
top: 0;
|
|
85
|
+
|
|
86
|
+
display: flex;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
align-items: center;
|
|
89
|
+
|
|
90
|
+
font-family: 'Work Sans';
|
|
91
|
+
font-style: normal;
|
|
92
|
+
font-weight: 600;
|
|
93
|
+
font-size: 24px;
|
|
94
|
+
line-height: 28px;
|
|
95
|
+
|
|
96
|
+
${({ active }) => active === true && `
|
|
97
|
+
background-color: #FF4D0D;
|
|
98
|
+
border-color: #FF4D0D;
|
|
99
|
+
-webkit-box-shadow: 0px 0px 0px 15px rgba(255,77,13,0.5);
|
|
100
|
+
box-shadow: 0px 0px 0px 15px rgba(255,77,13,0.5);
|
|
101
|
+
`}
|
|
102
|
+
}
|
|
103
|
+
`;
|
|
104
|
+
const ProgressItemTitle = styled.p `
|
|
105
|
+
font-family: 'Work Sans';
|
|
106
|
+
font-style: normal;
|
|
107
|
+
font-weight: 500;
|
|
108
|
+
font-size: 20px;
|
|
109
|
+
line-height: 23px;
|
|
110
|
+
color: #757575;
|
|
111
|
+
|
|
112
|
+
height: 46px;
|
|
113
|
+
display: flex;
|
|
114
|
+
justify-content: center;
|
|
115
|
+
align-items: center;
|
|
116
|
+
|
|
117
|
+
${({ active }) => active === true && `
|
|
118
|
+
color: #222222;
|
|
119
|
+
height: auto;
|
|
120
|
+
margin: 11px 0 8px 0;
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
`}
|
|
123
|
+
`;
|
|
124
|
+
const ProgressItemSubtitle = styled.p `
|
|
125
|
+
font-family: 'Work Sans';
|
|
126
|
+
font-style: normal;
|
|
127
|
+
font-weight: 500;
|
|
128
|
+
font-size: 16px;
|
|
129
|
+
line-height: 19px;
|
|
130
|
+
color: #222222;
|
|
131
|
+
|
|
132
|
+
${({ active }) => active === true && `
|
|
133
|
+
margin-bottom: 24px;
|
|
134
|
+
`}
|
|
135
|
+
`;
|
|
136
|
+
|
|
137
|
+
export { Progress, ProgressContainer, ProgressItem, ProgressItemSubtitle, ProgressItemTitle };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { ThemeProvider } from 'styled-components';
|
|
4
|
+
import { FRSTTheme } from '../../../theme/index.js';
|
|
5
|
+
import { Wrapper, Title, WrapperList, ItemList, IconList, TextList } from './trailListStyles.js';
|
|
6
|
+
import { MessageCheckLine } from '../../../shared/icons.js';
|
|
7
|
+
|
|
8
|
+
function TrailList({ title, trails, style }) {
|
|
9
|
+
const [trailsList, setTrailsList] = useState(trails);
|
|
10
|
+
const [windowSize, setWindowSize] = useState([0, 0]);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
function updateSize() {
|
|
13
|
+
setWindowSize([window.innerWidth, window.innerHeight]);
|
|
14
|
+
}
|
|
15
|
+
window.addEventListener('resize', updateSize);
|
|
16
|
+
updateSize();
|
|
17
|
+
return () => window.removeEventListener('resize', updateSize);
|
|
18
|
+
}, []);
|
|
19
|
+
const renderTrails = () => {
|
|
20
|
+
return (trailsList.map((item, index) => {
|
|
21
|
+
return jsxs(ItemList, { isMobile: windowSize[0] < 400, children: [jsxs(IconList, { children: [" ", jsx(MessageCheckLine, {}), " "] }), jsxs(TextList, { children: [" ", item, " "] })] }, index);
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
setTrailsList(trails);
|
|
26
|
+
}, [trails]);
|
|
27
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(Wrapper, { style: { ...style }, children: [jsx(Title, { children: title }), jsx(WrapperList, { children: (trailsList && trailsList.length > 0 && trailsList.length <= 2) ?
|
|
28
|
+
jsx("div", { style: {
|
|
29
|
+
display: 'flex',
|
|
30
|
+
flexDirection: 'column'
|
|
31
|
+
}, children: renderTrails() })
|
|
32
|
+
:
|
|
33
|
+
(trailsList && trailsList.length > 0 && trailsList.length <= 3) ?
|
|
34
|
+
jsx("div", { style: {
|
|
35
|
+
display: 'grid',
|
|
36
|
+
columnGap: '80px',
|
|
37
|
+
gridTemplateColumns: windowSize[0] > 900 ? '1fr 1fr' : '1fr'
|
|
38
|
+
}, children: renderTrails() })
|
|
39
|
+
:
|
|
40
|
+
(trailsList && trailsList.length > 0 && trailsList.length <= 5) ?
|
|
41
|
+
jsx("div", { style: {
|
|
42
|
+
display: 'grid',
|
|
43
|
+
columnGap: '80px',
|
|
44
|
+
gridTemplateColumns: windowSize[0] > 1400 ? '1fr 1fr 1fr' :
|
|
45
|
+
windowSize[0] > 900 ? '1fr 1fr' : '1fr'
|
|
46
|
+
}, children: renderTrails() })
|
|
47
|
+
:
|
|
48
|
+
(trailsList && trailsList.length > 0 && trailsList.length > 5) &&
|
|
49
|
+
jsx("div", { style: {
|
|
50
|
+
display: 'grid',
|
|
51
|
+
columnGap: '80px',
|
|
52
|
+
gridTemplateColumns: windowSize[0] > 1400 ? '1fr 1fr 1fr' :
|
|
53
|
+
windowSize[0] > 900 ? '1fr 1fr' : '1fr'
|
|
54
|
+
}, children: renderTrails() }) })] }) }));
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { TrailList as default };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Wrapper = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
width: 100%;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
`;
|
|
8
|
+
const Title = styled.p `
|
|
9
|
+
font-family: 'Work Sans';
|
|
10
|
+
font-style: normal;
|
|
11
|
+
font-weight: 700;
|
|
12
|
+
font-size: 24px;
|
|
13
|
+
line-height: 130%;
|
|
14
|
+
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
letter-spacing: 0.01em;
|
|
18
|
+
|
|
19
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
20
|
+
|
|
21
|
+
margin-bottom: 30px;
|
|
22
|
+
`;
|
|
23
|
+
const WrapperList = styled.div `
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
`;
|
|
27
|
+
const ItemList = styled.div `
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
align-items: flex-start;
|
|
31
|
+
|
|
32
|
+
min-width: ${({ isMobile }) => isMobile ? '0x' : '374px'};
|
|
33
|
+
margin-bottom: 16px;
|
|
34
|
+
`;
|
|
35
|
+
const TextList = styled.span `
|
|
36
|
+
font-family: 'Work Sans';
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
font-size: 16px;
|
|
40
|
+
line-height: 130%;
|
|
41
|
+
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
letter-spacing: 0.01em;
|
|
45
|
+
margin-left: 12px;
|
|
46
|
+
`;
|
|
47
|
+
const IconList = styled.span `
|
|
48
|
+
margin-top: 2px;
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
export { IconList, ItemList, TextList, Title, Wrapper, WrapperList };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { CommentaryBoxV2 } from '../../commentaryBoxV2/index.js';
|
|
3
|
+
import { useState, useEffect } from 'react';
|
|
4
|
+
import { Container, CommentarysContainer, ViewReplysButtonContainer, RepplysContainer } from './threadComments.styles.js';
|
|
5
|
+
import { CommentaryBoxReply } from './utilitiesComponents/commentaryBoxReply/index.js';
|
|
6
|
+
import { InputReply } from './utilitiesComponents/inputReply/index.js';
|
|
7
|
+
|
|
8
|
+
const ThreadComments = ({ mainComment, listReplyComments, placeHolderText, onClickPublishButton, showReplysButtonText, publishButtonText, limitInputs, answerButtonText, loggedInUser, group_uuid, getSearchUsers, showMoreButtonText, showLessButtonText, styles, relationToPhaseText, limitMessageExceeded, size = 5, showMoreReplysButtonText, isGoalOwner, editText, deleteText, onClickDelete, onClickEdit, cancelButtonText, saveButtonText, orText, onClickLike, onClickUnlike, likeButtonText, toViewText, answersText, answerText, darkMode, toHideText, hideRepliesText, showLikeButton = true, showAnswersButton = true, versionFeed = false, primaryColor = '#FF8A15', unlikedButtonText }) => {
|
|
9
|
+
const threadOpenByDefault = mainComment?.thread_open;
|
|
10
|
+
const [showAnswers, setShowAnswers] = useState(false);
|
|
11
|
+
const [showReplysOnClickCounter, setReplysOnClickCounter] = useState(0);
|
|
12
|
+
const [showReplyInput, setShowReplyInput] = useState(false);
|
|
13
|
+
const [visibleReplies, setVisibleReplies] = useState(0);
|
|
14
|
+
const handleLoadMoreReplies = () => {
|
|
15
|
+
if (showReplysOnClickCounter === 0) {
|
|
16
|
+
setVisibleReplies((prevVisibleReplies) => prevVisibleReplies + size);
|
|
17
|
+
}
|
|
18
|
+
setReplysOnClickCounter((prevShowReplysOnClickCounter) => prevShowReplysOnClickCounter + 1);
|
|
19
|
+
if (showReplysOnClickCounter >= 1) {
|
|
20
|
+
setVisibleReplies(listReplyComments?.length);
|
|
21
|
+
}
|
|
22
|
+
setShowAnswers(true);
|
|
23
|
+
};
|
|
24
|
+
const handleHideReplies = () => {
|
|
25
|
+
setVisibleReplies(0);
|
|
26
|
+
setReplysOnClickCounter(0);
|
|
27
|
+
setShowAnswers(false);
|
|
28
|
+
};
|
|
29
|
+
const handleHiddenInput = () => {
|
|
30
|
+
setShowReplyInput(false);
|
|
31
|
+
};
|
|
32
|
+
const handleCommentReply = () => {
|
|
33
|
+
setShowReplyInput(true);
|
|
34
|
+
};
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (threadOpenByDefault) {
|
|
37
|
+
setShowAnswers(true);
|
|
38
|
+
setVisibleReplies(listReplyComments?.length);
|
|
39
|
+
}
|
|
40
|
+
}, [threadOpenByDefault]);
|
|
41
|
+
const isMainCommentUser = mainComment.user?.uuid === loggedInUser?.id;
|
|
42
|
+
return (jsx(Container, { style: styles, children: jsxs(CommentarysContainer, { children: [jsxs("div", { children: [jsx(CommentaryBoxV2, { loggedInUser: loggedInUser, hasActionToClickOnAvatar: false, imgProfile: mainComment.user?.avatar, userId: mainComment.user?.uuid, userName: mainComment.user?.name, userOffice: mainComment.user?.role_name, userCompany: mainComment.user?.company_name, commentId: mainComment.id, commentText: mainComment.text, howLongAgo: mainComment.howLongAgo, showMoreText: showMoreButtonText, showLessText: showLessButtonText, answerButtonText: answerButtonText, actionAnswer: handleCommentReply, actionDeleteComment: onClickDelete, actionEditComment: onClickEdit, relationToPhaseText: relationToPhaseText, commentTextWithMention: mainComment.mentionText, isMainComment: true, isAuthor: isMainCommentUser, isOwnerPost: isGoalOwner, deleteText: deleteText, editText: editText, showOptions: isMainCommentUser || isGoalOwner, commentUuid: mainComment.uuid, limitInput: limitInputs, groupUuid: group_uuid, cancelButtonText: cancelButtonText, saveButtonText: saveButtonText, orText: orText, limitMessageExceeded: limitMessageExceeded, placeHolderText: placeHolderText, getSearchUsers: getSearchUsers, actionLike: onClickLike, actionUnlike: onClickUnlike, showLikeButton: showLikeButton, likeButtonText: likeButtonText, likes: mainComment.likes, darkMode: darkMode, isLiked: mainComment?.isLiked, totalLikes: mainComment?.totalLikes, showAnswersButton: showAnswersButton, versionFeed: versionFeed, configColor: primaryColor, unlikedButtonText: unlikedButtonText }), listReplyComments.length > visibleReplies && (jsx(ViewReplysButtonContainer, { id: "text-viwMsg", darkMode: darkMode, children: jsx("span", { onClick: handleLoadMoreReplies, children: showReplysOnClickCounter === 0 ? showReplysButtonText : showMoreReplysButtonText }) })), showAnswers && visibleReplies && hideRepliesText && (jsx(ViewReplysButtonContainer, { id: "text-viwMsg", darkMode: darkMode, children: jsx("span", { onClick: handleHideReplies, children: hideRepliesText }) })), showReplyInput && (jsx(InputReply, { styles: { marginLeft: '60px' }, imgProfile: loggedInUser?.avatar, idInput: `idInput-${mainComment.id}`, placeHolderText: placeHolderText, publishButtonText: publishButtonText, limitInput: limitInputs, onClickPublishButton: onClickPublishButton, getSearchUsers: getSearchUsers, replyMentionedUser: mainComment.user, parentId: Number(mainComment.id), handleHiddenInput: handleHiddenInput, group_uuid: group_uuid, limitMessageExceeded: limitMessageExceeded, darkMode: darkMode, configColor: primaryColor }))] }), showAnswers && visibleReplies && (jsx(RepplysContainer, { style: { marginTop: '6px' }, children: listReplyComments.slice(0, visibleReplies).map((replyComment) => (jsx("div", { children: jsx(CommentaryBoxReply, { replies: replyComment?.replies, commentData: replyComment, answerButtonText: answerButtonText, showMoreButtonText: showMoreButtonText, showLessButtonText: showLessButtonText, isAuthor: replyComment.user?.uuid === loggedInUser?.id, isOwnerPost: mainComment.user?.uuid === loggedInUser?.id || isGoalOwner, deleteText: deleteText, editText: editText, onClickDelete: onClickDelete, limitInput: limitInputs, groupUuid: group_uuid, cancelButtonText: cancelButtonText, saveButtonText: saveButtonText, orText: orText, limitMessageExceeded: limitMessageExceeded, onClickEdit: onClickEdit, placeHolderText: placeHolderText, getSearchUsers: getSearchUsers, onClickLike: onClickLike, onClickUnlike: onClickUnlike, likeButtonText: likeButtonText, likes: replyComment.likes, loggedInUser: loggedInUser, isGoalOwner: isGoalOwner, group_uuid: group_uuid, publishButtonText: publishButtonText, onClickPublishButton: onClickPublishButton, mainCommentUser: replyComment.user, showReplysButtonText: showReplysButtonText, toViewText: toViewText, answersText: answersText, answerText: answerText, threadOpenByDefault: !!threadOpenByDefault, darkMode: darkMode, toHideText: toHideText, versionFeed: versionFeed, configColor: primaryColor, unlikedButtonText: unlikedButtonText }) }, replyComment.id))) }))] }) }));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { ThreadComments };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Container = styled.div `
|
|
4
|
+
background-color: inerit;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
width:100%;
|
|
9
|
+
`;
|
|
10
|
+
const CommentarysContainer = styled.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
width:100%;
|
|
14
|
+
`;
|
|
15
|
+
styled.div `
|
|
16
|
+
display:flex;
|
|
17
|
+
flex-direction:column;
|
|
18
|
+
`;
|
|
19
|
+
const ViewReplysButtonContainer = styled.div `
|
|
20
|
+
color: ${({ darkMode }) => darkMode ? '#EBEBEB' : '#444444'};
|
|
21
|
+
font-family: Poppins, sans-serif;
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
font-weight: 400;
|
|
25
|
+
line-height: 110%;
|
|
26
|
+
position: relative;
|
|
27
|
+
left: 59px;
|
|
28
|
+
margin-top: 6px;
|
|
29
|
+
span{
|
|
30
|
+
cursor:pointer;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@media screen and (max-width:768px){
|
|
34
|
+
color: ${({ darkMode }) => darkMode ? '#EBEBEB' : '#444444'};
|
|
35
|
+
font-family: Poppins, sans-serif;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-weight: 400;
|
|
39
|
+
line-height: 110%;
|
|
40
|
+
position: relative;
|
|
41
|
+
left: 59px;
|
|
42
|
+
margin-top: 6px;
|
|
43
|
+
max-width: 150px !important;
|
|
44
|
+
}
|
|
45
|
+
`;
|
|
46
|
+
const RepplysContainer = styled.div `
|
|
47
|
+
width: ${({ width }) => (width ? `${width}px` : 'auto')};
|
|
48
|
+
margin-left:60px;
|
|
49
|
+
`;
|
|
50
|
+
|
|
51
|
+
export { CommentarysContainer, Container, RepplysContainer, ViewReplysButtonContainer };
|
package/dist/esm/src/components/FI/ThreadComments/utilitiesComponents/commentaryBoxReply/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { CommentaryBoxV2 } from '../../../../commentaryBoxV2/index.js';
|
|
4
|
+
import { InputReply } from '../inputReply/index.js';
|
|
5
|
+
import { ViewReplysButtonContainer } from '../../threadComments.styles.js';
|
|
6
|
+
|
|
7
|
+
const CommentaryBoxReply = ({ commentData, showMoreButtonText, showLessButtonText, answerButtonText, isAuthor, isOwnerPost, deleteText, editText, onClickDelete, onClickEdit, limitInput, cancelButtonText, saveButtonText, orText, limitMessageExceeded, placeHolderText, getSearchUsers, onClickLike, onClickUnlike, likeButtonText, loggedInUser, likes, replies = [], isGoalOwner, group_uuid, publishButtonText, onClickPublishButton, mainCommentUser, answersText, toViewText, answerText, threadOpenByDefault, darkMode, toHideText, versionFeed = false, configColor = '#FF8A15', unlikedButtonText }) => {
|
|
8
|
+
const [showAnswers, setShowAnswers] = useState(threadOpenByDefault);
|
|
9
|
+
const [showReplyInput, setShowReplyInput] = useState(false);
|
|
10
|
+
const handleLoadMoreReplies = () => {
|
|
11
|
+
setShowAnswers(true);
|
|
12
|
+
};
|
|
13
|
+
const handleHideReplies = () => {
|
|
14
|
+
setShowAnswers(false);
|
|
15
|
+
};
|
|
16
|
+
return (jsxs("div", { children: [jsx(CommentaryBoxV2, { hasActionToClickOnAvatar: false, imgProfile: commentData.user?.avatar, loggedInUser: loggedInUser, userName: commentData.user?.name, userOffice: commentData.user?.role_name, userCompany: commentData.user?.company_name, commentId: commentData.id, commentText: commentData.text, commentUuid: commentData.uuid, howLongAgo: commentData.howLongAgo, showMoreText: showMoreButtonText, actionAnswer: () => setShowReplyInput(true), showLessText: showLessButtonText, answerButtonText: answerButtonText, styles: { marginTop: '16px' }, commentTextWithMention: commentData.mentionText, isAuthor: isAuthor, isOwnerPost: isOwnerPost, deleteText: deleteText, editText: editText, showOptions: isAuthor || isOwnerPost, actionDeleteComment: onClickDelete, limitInput: limitInput, cancelButtonText: cancelButtonText, saveButtonText: saveButtonText, orText: orText, limitMessageExceeded: limitMessageExceeded, actionEditComment: onClickEdit, placeHolderText: placeHolderText, getSearchUsers: getSearchUsers, likes: likes, actionLike: onClickLike, actionUnlike: onClickUnlike, showLikeButton: true, likeButtonText: likeButtonText, showInterconnectionLine: replies.length > 0 && showAnswers, darkMode: darkMode, isLiked: commentData?.isLiked, totalLikes: commentData?.totalLikes, versionFeed: versionFeed, configColor: configColor, unlikedButtonText: unlikedButtonText }), replies.length > 0 && !showAnswers && (jsx(ViewReplysButtonContainer, { style: { left: '44px' }, darkMode: darkMode, children: jsx("span", { onClick: handleLoadMoreReplies, children: `${toViewText} ${replies.length} ${replies.length === 1 ? answerText : answersText}` }) })), replies.length > 0 && showAnswers && toHideText && (jsx(ViewReplysButtonContainer, { style: { left: '44px' }, darkMode: darkMode, children: jsx("span", { onClick: handleHideReplies, children: `${toHideText} ${replies.length} ${replies.length === 1 ? answerText : answersText}` }) })), showReplyInput && (jsx(InputReply, { imgProfile: loggedInUser?.avatar, styles: { width: '100%' }, idInput: `idInput-${commentData.id}`, placeHolderText: placeHolderText, publishButtonText: publishButtonText, limitInput: limitInput, onClickPublishButton: onClickPublishButton, replyMentionedUser: mainCommentUser, getSearchUsers: getSearchUsers, parentId: Number(commentData.id), handleHiddenInput: () => setShowReplyInput(false), group_uuid: group_uuid, limitMessageExceeded: limitMessageExceeded, darkMode: darkMode, configColor: configColor })), showAnswers &&
|
|
17
|
+
replies?.map((reply, index) => (jsx(Fragment, { children: jsx(CommentaryBoxV2, { styles: { marginTop: '16px' }, userName: reply.user?.name, userOffice: reply.user?.role_name, userCompany: reply.user?.company_name, commentUuid: reply.uuid, commentId: reply.id, commentText: reply.text, commentTextWithMention: reply.mentionText, howLongAgo: reply.howLongAgo, placeHolderText: placeHolderText, cancelButtonText: cancelButtonText, saveButtonText: saveButtonText, likeButtonText: likeButtonText, editText: editText, deleteText: deleteText, orText: orText, limitInput: limitInput, showMoreText: showMoreButtonText, showLessText: showLessButtonText, hasActionToClickOnAvatar: false, likes: reply.likes, loggedInUser: loggedInUser, limitMessageExceeded: limitMessageExceeded, showLikeButton: true, actionLike: onClickLike, actionUnlike: onClickUnlike, getSearchUsers: getSearchUsers, actionEditComment: onClickEdit, actionDeleteComment: onClickDelete, isAuthor: reply.user?.uuid === loggedInUser?.id, isOwnerPost: isAuthor || isOwnerPost || isGoalOwner, showOptions: isAuthor || isOwnerPost || reply.user?.uuid === loggedInUser?.id || isGoalOwner, imgProfile: reply.user?.avatar, showInterconnectionLine: replies.length != index + 1, darkMode: darkMode, isLiked: reply?.isLiked, totalLikes: reply?.totalLikes, versionFeed: versionFeed, configColor: configColor, unlikedButtonText: unlikedButtonText }, reply.id) })))] }));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { CommentaryBoxReply };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import Loading from '../../../../DS/loading/index.js';
|
|
3
|
+
import Avatar from '../../../../avatar/index.js';
|
|
4
|
+
import InputComment from '../../../../input-comment/index.js';
|
|
5
|
+
import { useState, useRef, useEffect } from 'react';
|
|
6
|
+
import { Container, InputContainer, PublishButton } from './inputReply.styles.js';
|
|
7
|
+
|
|
8
|
+
const InputReply = ({ placeHolderText, getSearchUsers, onClickPublishButton, parentId, limitInput, publishButtonText, replyMentionedUser, imgProfile, styles, handleHiddenInput, group_uuid, limitMessageExceeded, darkMode, configColor = '#FF8A15' }) => {
|
|
9
|
+
const [comment, setComment] = useState('');
|
|
10
|
+
const [CaptureFormattedValue, setCaptureFormattedValue] = useState('');
|
|
11
|
+
const [captureMentions, setCaptureMentions] = useState([]);
|
|
12
|
+
const [users, setUsers] = useState([]);
|
|
13
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
14
|
+
const inputRef = useRef(null);
|
|
15
|
+
const user = {
|
|
16
|
+
user_uuid: replyMentionedUser.uuid,
|
|
17
|
+
name: replyMentionedUser.name,
|
|
18
|
+
profile: {
|
|
19
|
+
avatar: replyMentionedUser.avatar,
|
|
20
|
+
company_name: replyMentionedUser.company_name,
|
|
21
|
+
role_name: replyMentionedUser.role_name
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
const [userMentionedOnReplied, setUserMentionedOnReply] = useState(false);
|
|
25
|
+
const handleClickOutside = (event) => {
|
|
26
|
+
if (inputRef.current && !inputRef.current.contains(event.target) && comment.length === 0) {
|
|
27
|
+
handleHiddenInput();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
32
|
+
return () => {
|
|
33
|
+
document.removeEventListener('mousedown', handleClickOutside);
|
|
34
|
+
};
|
|
35
|
+
}, [comment, handleHiddenInput]);
|
|
36
|
+
const handlePublish = async () => {
|
|
37
|
+
setIsLoading(true);
|
|
38
|
+
await onClickPublishButton({
|
|
39
|
+
comment,
|
|
40
|
+
contentMention: CaptureFormattedValue,
|
|
41
|
+
mentions: captureMentions,
|
|
42
|
+
parentId
|
|
43
|
+
});
|
|
44
|
+
setIsLoading(false);
|
|
45
|
+
handleHiddenInput();
|
|
46
|
+
setComment('');
|
|
47
|
+
setCaptureFormattedValue('');
|
|
48
|
+
setCaptureMentions([]);
|
|
49
|
+
};
|
|
50
|
+
let timeout;
|
|
51
|
+
const setCommentData = (value) => {
|
|
52
|
+
setUserMentionedOnReply(true);
|
|
53
|
+
clearTimeout(timeout);
|
|
54
|
+
timeout = setTimeout(() => {
|
|
55
|
+
setComment(value);
|
|
56
|
+
}, 300);
|
|
57
|
+
};
|
|
58
|
+
const handleSearchUsers = async (value) => {
|
|
59
|
+
const response = await getSearchUsers(value);
|
|
60
|
+
setUsers(response?.data?.results || response);
|
|
61
|
+
};
|
|
62
|
+
return (jsxs(Container, { style: { ...styles }, children: [jsx(Avatar, { src: imgProfile, size: "32px", style: { marginTop: '16px', marginRight: '8px' } }), jsxs(InputContainer, { ref: inputRef, style: { width: '100%', marginTop: '16px' }, children: [jsx(InputComment, { styles: { width: '100%' }, className: "userComment", onChange: (e) => {
|
|
63
|
+
handleSearchUsers(e);
|
|
64
|
+
}, value: comment, placeholder: placeHolderText, limit: limitInput, showCharacterCounter: true, onContentUnformat: (unformattedValue) => setCommentData(unformattedValue), onContentFormat: (formattedValue) => setCaptureFormattedValue(formattedValue), onSendMentions: (mentions) => setCaptureMentions(mentions), users: users, replyMentionedUser: !userMentionedOnReplied && user, group_uuid: group_uuid, limitMessageExceeded: limitMessageExceeded, darkMode: darkMode, showEmojiPicker: darkMode, configColor: configColor }), jsx(PublishButton, { type: "button", "$primaryColor": configColor, disabled: comment.length <= 0 || comment.length > limitInput || isLoading, onClick: () => handlePublish(), children: publishButtonText }), isLoading && jsx(Loading, {})] })] }));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export { InputReply };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const InputContainer = styled.div `
|
|
4
|
+
display:flex;
|
|
5
|
+
flex-direction:column;
|
|
6
|
+
position:relative;
|
|
7
|
+
`;
|
|
8
|
+
const Container = styled.div `
|
|
9
|
+
display:flex;
|
|
10
|
+
justify-content:center;
|
|
11
|
+
`;
|
|
12
|
+
const PublishButton = styled.button `
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: row;
|
|
15
|
+
align-items: center;
|
|
16
|
+
padding: 4px 16px;
|
|
17
|
+
gap: 8px;
|
|
18
|
+
width: fit-content;
|
|
19
|
+
height: 32px;
|
|
20
|
+
margin-left: auto;
|
|
21
|
+
margin-top: 14px;
|
|
22
|
+
background: ${({ $primaryColor, disabled }) => (disabled ? '#BDBDBD' : $primaryColor)};
|
|
23
|
+
border: 0;
|
|
24
|
+
border-radius: 8px;
|
|
25
|
+
cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};
|
|
26
|
+
font-family: Poppins, sans-serif;
|
|
27
|
+
font-style: normal;
|
|
28
|
+
font-weight: 700;
|
|
29
|
+
font-size: 16px;
|
|
30
|
+
line-height: 19px;
|
|
31
|
+
color: #ffffff;
|
|
32
|
+
user-select: none;
|
|
33
|
+
|
|
34
|
+
&:hover:not(:disabled) {
|
|
35
|
+
filter: brightness(0.9);
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
export { Container, InputContainer, PublishButton };
|