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,282 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const mentionLinkStyles = css `
|
|
4
|
+
a[data-mention-id] {
|
|
5
|
+
font-weight: bold !important;
|
|
6
|
+
color: ${({ $primaryColor, theme }) => $primaryColor || theme.colors.primary1} !important;
|
|
7
|
+
text-decoration: none;
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
const Container = styled.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: ${({ $versionFeed }) => ($versionFeed ? '12px' : '0')};
|
|
13
|
+
width: ${({ width }) => width ? width : "100%"};
|
|
14
|
+
height: ${({ height }) => height ? height : "auto"};
|
|
15
|
+
`;
|
|
16
|
+
const Box = styled.div `
|
|
17
|
+
width: ${({ width }) => width ? width : "100%"};
|
|
18
|
+
height: ${({ height }) => height ? height : "auto"};
|
|
19
|
+
display: flex;
|
|
20
|
+
padding: 16px;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
align-items: flex-start;
|
|
24
|
+
border-radius: 0px 16px 16px 16px;
|
|
25
|
+
background-color: ${({ darkMode }) => darkMode ? '#272727' : '#f2f2f2'} ;
|
|
26
|
+
`;
|
|
27
|
+
const UserDataContainer = styled.div `
|
|
28
|
+
display:flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 34px;
|
|
32
|
+
margin-bottom: 8px;
|
|
33
|
+
`;
|
|
34
|
+
const Username = styled.h2 `
|
|
35
|
+
color: ${({ theme, darkMode }) => darkMode ? theme.colors.shadeWhite : theme.colors.neutralsGrey1};
|
|
36
|
+
font-family: Poppins, sans-serif;
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
font-style: normal;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
line-height: 110%;
|
|
41
|
+
margin-bottom: 2px;
|
|
42
|
+
`;
|
|
43
|
+
const FirstChildUserData = styled.div `
|
|
44
|
+
display:flex;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
`;
|
|
47
|
+
const UserDataLastChild = styled.div `
|
|
48
|
+
display: flex;
|
|
49
|
+
color: ${({ theme, darkMode }) => darkMode ? theme.colors.neutralsGrey4 : theme.colors.neutralsGrey3};
|
|
50
|
+
font-family: Poppins, sans-serif;
|
|
51
|
+
font-size: 12px;
|
|
52
|
+
font-style: normal;
|
|
53
|
+
font-weight: 400;
|
|
54
|
+
line-height: normal;
|
|
55
|
+
`;
|
|
56
|
+
const MenuMoreContainer = styled.div `
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
height: 36px;
|
|
59
|
+
width: 36px;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
margin-top: 5px;
|
|
64
|
+
|
|
65
|
+
&:hover {
|
|
66
|
+
background-color: ${({ darkMode }) => darkMode ? '#323232' : '#f2f2f2'};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
`;
|
|
70
|
+
styled.div `
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
gap: 4px;
|
|
74
|
+
color: #444;
|
|
75
|
+
font-family: Poppins, sans-serif;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-style: normal;
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
line-height: 110%;
|
|
80
|
+
`;
|
|
81
|
+
styled.div `
|
|
82
|
+
& > *:last-child {
|
|
83
|
+
border-radius: 50%;
|
|
84
|
+
background-color: #757575;
|
|
85
|
+
border: 3px solid #757575;
|
|
86
|
+
width: 14px;
|
|
87
|
+
height: 14px;
|
|
88
|
+
}
|
|
89
|
+
`;
|
|
90
|
+
const RelationContainer = styled.div `
|
|
91
|
+
display: flex;
|
|
92
|
+
padding: 2px 8px;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
align-items: center;
|
|
95
|
+
gap: 8px;
|
|
96
|
+
margin: 8px 0px;
|
|
97
|
+
border-radius: 4px;
|
|
98
|
+
background: #9CA3AF;
|
|
99
|
+
color: #FFFFFF;
|
|
100
|
+
font-family: Poppins, sans-serif;
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
font-style: normal;
|
|
103
|
+
font-weight: 500;
|
|
104
|
+
line-height: normal;
|
|
105
|
+
`;
|
|
106
|
+
const InteractiveButtonsContainer = styled.div `
|
|
107
|
+
display:flex;
|
|
108
|
+
flex-wrap: wrap; /* Permite que os itens quebrem para a próxima linha */
|
|
109
|
+
gap:4px;
|
|
110
|
+
margin-top: 4px;
|
|
111
|
+
margin-left: 40px;
|
|
112
|
+
align-items: center;
|
|
113
|
+
color: #444;
|
|
114
|
+
font-family: Poppins, sans-serif;
|
|
115
|
+
font-size: 12px;
|
|
116
|
+
font-style: normal;
|
|
117
|
+
font-weight: 700;
|
|
118
|
+
line-height: normal;
|
|
119
|
+
|
|
120
|
+
& > *:last-child {
|
|
121
|
+
/* height:24px; */
|
|
122
|
+
transform: rotate(90deg);
|
|
123
|
+
}
|
|
124
|
+
`;
|
|
125
|
+
const FlexButtonContainer = styled.div `
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
padding: 8px;
|
|
131
|
+
border-radius: 100px;
|
|
132
|
+
|
|
133
|
+
&:hover {
|
|
134
|
+
background-color: ${({ theme, darkMode }) => darkMode ? '#272727' : theme.colors.neutralsGrey9};
|
|
135
|
+
}
|
|
136
|
+
svg {
|
|
137
|
+
:hover {
|
|
138
|
+
/* fill:${({ theme }) => theme.colors.neutralsGrey9}; */
|
|
139
|
+
/* background-color: ${({ theme, darkMode }) => darkMode ? 'red' : theme.colors.neutralsGrey9}; */
|
|
140
|
+
}
|
|
141
|
+
:active {
|
|
142
|
+
/* stroke:${({ theme }) => theme.colors.neutralsGrey1};
|
|
143
|
+
background-color: ${({ theme }) => theme.colors.neutralsGrey9}; */
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
`;
|
|
147
|
+
const Text = styled.div `
|
|
148
|
+
color: ${({ theme, darkMode }) => darkMode ? theme.colors.neutralsGrey5 : theme.colors.neutralsGrey2};
|
|
149
|
+
font-family: Poppins, sans-serif;
|
|
150
|
+
font-weight: 400;
|
|
151
|
+
word-break: break-word;
|
|
152
|
+
line-height: 140%;
|
|
153
|
+
font-size: 16px;
|
|
154
|
+
font-style: normal;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
display: -webkit-box;
|
|
157
|
+
-webkit-line-clamp: 5;
|
|
158
|
+
-webkit-box-orient: vertical;
|
|
159
|
+
margin: 0;
|
|
160
|
+
|
|
161
|
+
${mentionLinkStyles}
|
|
162
|
+
`;
|
|
163
|
+
const TextContainer = styled.div `
|
|
164
|
+
`;
|
|
165
|
+
const ShowMore = styled.span `
|
|
166
|
+
color: ${({ theme, darkMode }) => darkMode ? theme.colors.neutralsGrey5 : theme.colors.neutralsGrey2};
|
|
167
|
+
font-family: Poppins, sans-serif;
|
|
168
|
+
font-size: 14px;
|
|
169
|
+
font-style: normal;
|
|
170
|
+
font-weight: 600;
|
|
171
|
+
line-height: 140%;
|
|
172
|
+
cursor: pointer;
|
|
173
|
+
display: ${({ isVisible }) => (isVisible ? 'inline' : 'none')};
|
|
174
|
+
`;
|
|
175
|
+
const FeedBody = styled.div `
|
|
176
|
+
flex: 1;
|
|
177
|
+
`;
|
|
178
|
+
const FeedBubble = styled.div `
|
|
179
|
+
background: #f8f8f8;
|
|
180
|
+
border-radius: 16px;
|
|
181
|
+
border-top-left-radius: 4px;
|
|
182
|
+
padding: 14px;
|
|
183
|
+
transition: background-color 0.2s ease;
|
|
184
|
+
width: 100%;
|
|
185
|
+
|
|
186
|
+
&:hover {
|
|
187
|
+
background: #f5f5f5;
|
|
188
|
+
}
|
|
189
|
+
`;
|
|
190
|
+
const FeedHeader = styled.div `
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: flex-start;
|
|
193
|
+
justify-content: space-between;
|
|
194
|
+
margin-bottom: 6px;
|
|
195
|
+
gap: 8px;
|
|
196
|
+
`;
|
|
197
|
+
const FeedAuthor = styled.p `
|
|
198
|
+
margin: 0;
|
|
199
|
+
font-family: Poppins, sans-serif;
|
|
200
|
+
font-weight: 600;
|
|
201
|
+
font-size: 14px;
|
|
202
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
203
|
+
`;
|
|
204
|
+
const FeedTime = styled.p `
|
|
205
|
+
margin: 2px 0 0;
|
|
206
|
+
font-family: Poppins, sans-serif;
|
|
207
|
+
font-weight: 400;
|
|
208
|
+
font-size: 11px;
|
|
209
|
+
color: ${({ theme }) => theme.colors.neutralsGrey3};
|
|
210
|
+
`;
|
|
211
|
+
const FeedRelationText = styled.span `
|
|
212
|
+
margin: 0 0 6px;
|
|
213
|
+
font-family: Poppins, sans-serif;
|
|
214
|
+
font-size: 12px;
|
|
215
|
+
font-weight: 400;
|
|
216
|
+
color: #FFFFFF;
|
|
217
|
+
background-color: #9CA3AF;
|
|
218
|
+
border-radius: 4px;
|
|
219
|
+
padding: 2px 8px;
|
|
220
|
+
`;
|
|
221
|
+
const LikeBadge = styled.div `
|
|
222
|
+
display: flex;
|
|
223
|
+
align-items: center;
|
|
224
|
+
gap: 6px;
|
|
225
|
+
padding: 4px 10px;
|
|
226
|
+
border-radius: 8px;
|
|
227
|
+
flex-shrink: 0;
|
|
228
|
+
background: ${({ $primaryColor }) => `${$primaryColor}1a`};
|
|
229
|
+
color: ${({ $primaryColor }) => $primaryColor};
|
|
230
|
+
font-family: Poppins, sans-serif;
|
|
231
|
+
font-weight: 600;
|
|
232
|
+
font-size: 12px;
|
|
233
|
+
`;
|
|
234
|
+
const FeedText = styled.div `
|
|
235
|
+
color: ${({ theme }) => theme.colors.neutralsGrey2};
|
|
236
|
+
font-family: Poppins, sans-serif;
|
|
237
|
+
font-weight: 400;
|
|
238
|
+
word-break: break-word;
|
|
239
|
+
line-height: 1.5;
|
|
240
|
+
font-size: 14px;
|
|
241
|
+
overflow: hidden;
|
|
242
|
+
display: -webkit-box;
|
|
243
|
+
-webkit-line-clamp: 5;
|
|
244
|
+
-webkit-box-orient: vertical;
|
|
245
|
+
margin: 0;
|
|
246
|
+
|
|
247
|
+
${mentionLinkStyles}
|
|
248
|
+
`;
|
|
249
|
+
const FeedActions = styled.div `
|
|
250
|
+
display: flex;
|
|
251
|
+
flex-wrap: wrap;
|
|
252
|
+
gap: 16px;
|
|
253
|
+
margin-top: 8px;
|
|
254
|
+
margin-left: 12px;
|
|
255
|
+
align-items: center;
|
|
256
|
+
|
|
257
|
+
& > *:last-child {
|
|
258
|
+
transform: rotate(90deg);
|
|
259
|
+
}
|
|
260
|
+
`;
|
|
261
|
+
const FeedAction = styled.button `
|
|
262
|
+
border: 0;
|
|
263
|
+
background: transparent;
|
|
264
|
+
padding: 0;
|
|
265
|
+
cursor: pointer;
|
|
266
|
+
font-family: Poppins, sans-serif;
|
|
267
|
+
font-weight: 600;
|
|
268
|
+
font-size: 12px;
|
|
269
|
+
color: ${({ theme, $primaryColor, $highlight }) => $highlight ? $primaryColor : theme.colors.neutralsGrey3};
|
|
270
|
+
transition: color 0.2s ease;
|
|
271
|
+
|
|
272
|
+
&:hover {
|
|
273
|
+
color: ${({ $primaryColor }) => $primaryColor};
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&:disabled {
|
|
277
|
+
cursor: not-allowed;
|
|
278
|
+
opacity: 0.6;
|
|
279
|
+
}
|
|
280
|
+
`;
|
|
281
|
+
|
|
282
|
+
export { Box, Container, FeedAction, FeedActions, FeedAuthor, FeedBody, FeedBubble, FeedHeader, FeedRelationText, FeedText, FeedTime, FirstChildUserData, FlexButtonContainer, InteractiveButtonsContainer, LikeBadge, MenuMoreContainer, RelationContainer, ShowMore, Text, TextContainer, UserDataContainer, UserDataLastChild, Username };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { Container, FeedBody, FeedBubble, FeedHeader, FeedAuthor, FeedTime, LikeBadge, FeedRelationText, Box, UserDataContainer, FirstChildUserData, Username, UserDataLastChild, RelationContainer, TextContainer, FeedText, Text, ShowMore, FeedActions, FeedAction, InteractiveButtonsContainer, FlexButtonContainer, MenuMoreContainer } from './CommentaryBoxV2.styles.js';
|
|
3
|
+
import Avatar from '../avatar/index.js';
|
|
4
|
+
import { EditIcon, TrashIconNew, IconLikeFilled, IconLikeLine } from '../../shared/icons.js';
|
|
5
|
+
import MiniButton from '../mini-button/index.js';
|
|
6
|
+
import MenuMore from '../menu-more/index.js';
|
|
7
|
+
import { buildStringWithLinkHTML } from '../../utilityFunctions/buildStringWithHTML.js';
|
|
8
|
+
import { createUUID } from '../../utilityFunctions/createUUID.js';
|
|
9
|
+
import { useState, useEffect, useLayoutEffect } from 'react';
|
|
10
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
11
|
+
import { ThemeProvider } from 'styled-components';
|
|
12
|
+
import { InputEdit } from './utilitiesComponents/inputEdit/index.js';
|
|
13
|
+
import { Tooltip } from '@mui/material';
|
|
14
|
+
import { ThumbsUp } from 'lucide-react';
|
|
15
|
+
|
|
16
|
+
const DEFAULT_PRIMARY_COLOR = '#FF8A15';
|
|
17
|
+
const CommentaryBoxV2 = ({ userName, imgProfile, userCompany, userOffice, showMoreText, relationToPhaseText, showLessText, showLikeButton, styles, actionLike, actionUnlike, answerButtonText, likeButtonText, commentTextWithMention, editText, deleteText, isAuthor, isOwnerPost, howLongAgo, commentId, commentUuid, commentText, actionAnswer, onClickUserInfo, actionEditComment, actionDeleteComment, isMainComment, hasActionToClickOnAvatar, showOptions, limitInput = 800, saveButtonText, cancelButtonText, orText, groupUuid, limitMessageExceeded, placeHolderText, getSearchUsers, likes, loggedInUser, showInterconnectionLine = false, darkMode, isLiked, totalLikes = 0, showAnswersButton, versionFeed, configColor = DEFAULT_PRIMARY_COLOR, unlikedButtonText }) => {
|
|
18
|
+
const iDCommentPosted = commentId ? commentId.toString() : `IDCommentPosted-${createUUID()}`;
|
|
19
|
+
const [isModeEdit, setIsModeEdit] = useState(false);
|
|
20
|
+
const [loadingLike, setLoadingLike] = useState(false);
|
|
21
|
+
const itsLiked = likes?.length > 0 ? likes?.some((like) => like.user_uuid === loggedInUser.id) : isLiked;
|
|
22
|
+
const likesCount = likes?.length > 0 ? likes?.length : totalLikes;
|
|
23
|
+
const likeId = likes?.find((like) => like.user_uuid === loggedInUser.id || like.user?.uuid === loggedInUser.id)?.id || null;
|
|
24
|
+
const edit = {
|
|
25
|
+
description: editText,
|
|
26
|
+
startIcon: jsx(EditIcon, { fill: darkMode ? '#FFFFFF' : "#222" }),
|
|
27
|
+
onClick: () => setIsModeEdit(true),
|
|
28
|
+
color: darkMode ? '#FFFFFF' : "#222"
|
|
29
|
+
};
|
|
30
|
+
const exclude = {
|
|
31
|
+
description: deleteText,
|
|
32
|
+
startIcon: jsx(TrashIconNew, { fill: darkMode ? '#FF4D3E' : "#C1341A" }),
|
|
33
|
+
onClick: () => actionDeleteComment(commentUuid),
|
|
34
|
+
color: darkMode ? '#FF4D3E' : '#C1341A'
|
|
35
|
+
};
|
|
36
|
+
const authorOptions = [edit, exclude];
|
|
37
|
+
const ownerPost = [exclude];
|
|
38
|
+
const handleLike = async () => {
|
|
39
|
+
try {
|
|
40
|
+
setLoadingLike(true);
|
|
41
|
+
await actionLike(commentId);
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
console.log('error:', error);
|
|
45
|
+
}
|
|
46
|
+
finally {
|
|
47
|
+
setLoadingLike(false);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const handleUnlike = async () => {
|
|
51
|
+
try {
|
|
52
|
+
setLoadingLike(true);
|
|
53
|
+
await actionUnlike(likeId ? likeId : commentId.toString());
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
console.log('error:', error);
|
|
57
|
+
}
|
|
58
|
+
finally {
|
|
59
|
+
setLoadingLike(false);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
63
|
+
const toggleExpand = () => {
|
|
64
|
+
setIsExpanded(!isExpanded);
|
|
65
|
+
};
|
|
66
|
+
const [isEllipsisVisible, setIsEllipsisVisible] = useState(false);
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
const textContainer = document.getElementById(iDCommentPosted);
|
|
69
|
+
if (textContainer) {
|
|
70
|
+
setIsEllipsisVisible(textContainer.scrollHeight > textContainer.clientHeight);
|
|
71
|
+
}
|
|
72
|
+
}, [commentText]);
|
|
73
|
+
useLayoutEffect(() => {
|
|
74
|
+
const handleResize = () => {
|
|
75
|
+
const textContainer = document.getElementById(iDCommentPosted);
|
|
76
|
+
if (textContainer) {
|
|
77
|
+
setIsEllipsisVisible(textContainer.scrollHeight > textContainer.clientHeight);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
window.addEventListener('resize', handleResize);
|
|
81
|
+
handleResize();
|
|
82
|
+
return () => {
|
|
83
|
+
window.removeEventListener('resize', handleResize);
|
|
84
|
+
};
|
|
85
|
+
}, []);
|
|
86
|
+
const renderMenuMore = () => {
|
|
87
|
+
if (!showOptions)
|
|
88
|
+
return jsx("div", {});
|
|
89
|
+
if (isAuthor) {
|
|
90
|
+
return (jsx(MenuMoreContainer, { darkMode: darkMode, children: jsx(MenuMore, { isDarkMode: darkMode, options: authorOptions, style: {}, closeAfterClick: true, isHover: false }) }));
|
|
91
|
+
}
|
|
92
|
+
if (isOwnerPost) {
|
|
93
|
+
return (jsx(MenuMoreContainer, { darkMode: darkMode, children: jsx(MenuMore, { isDarkMode: darkMode, options: ownerPost, style: {}, closeAfterClick: true, isHover: false }) }));
|
|
94
|
+
}
|
|
95
|
+
return (jsx(MenuMoreContainer, { darkMode: darkMode, children: jsx(MenuMore, { isDarkMode: darkMode, options: [], isHover: false }) }));
|
|
96
|
+
};
|
|
97
|
+
const renderCommentContent = () => (jsxs(TextContainer, { id: "textContainerId", children: [versionFeed ? (jsx(FeedText, { "$primaryColor": configColor, style: isExpanded ? { display: 'block' } : { display: '-webkit-box' }, id: iDCommentPosted, dangerouslySetInnerHTML: {
|
|
98
|
+
__html: buildStringWithLinkHTML(commentTextWithMention ? commentTextWithMention : commentText)
|
|
99
|
+
} })) : (jsx(Text, { "$primaryColor": configColor, style: isExpanded ? { display: 'block' } : { display: '-webkit-box' }, id: iDCommentPosted, dangerouslySetInnerHTML: {
|
|
100
|
+
__html: buildStringWithLinkHTML(commentTextWithMention ? commentTextWithMention : commentText)
|
|
101
|
+
}, darkMode: darkMode })), jsx(ShowMore, { darkMode: darkMode, isVisible: isEllipsisVisible, onClick: toggleExpand, children: isExpanded ? showLessText : showMoreText })] }));
|
|
102
|
+
const renderFeedActions = () => (jsxs(FeedActions, { children: [showLikeButton && (jsx(FeedAction, { "$primaryColor": configColor, type: "button", onClick: itsLiked ? handleUnlike : handleLike, disabled: loadingLike, children: itsLiked ? unlikedButtonText : likeButtonText })), showAnswersButton && (jsx(FeedAction, { "$primaryColor": configColor, type: "button", onClick: actionAnswer, children: answerButtonText })), renderMenuMore()] }));
|
|
103
|
+
const renderDefaultActions = () => (jsxs(InteractiveButtonsContainer, { style: isMainComment ? { marginLeft: '55px' } : {}, children: [showLikeButton && (jsxs(Fragment, { children: [jsx(Tooltip, { title: itsLiked ? 'Remover curtida' : 'Curtir', placement: 'bottom', arrow: true, slotProps: {
|
|
104
|
+
popper: {
|
|
105
|
+
modifiers: [
|
|
106
|
+
{
|
|
107
|
+
name: 'offset',
|
|
108
|
+
options: {
|
|
109
|
+
offset: [0, 0]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
tooltip: {
|
|
115
|
+
sx: {
|
|
116
|
+
backgroundColor: darkMode ? '#323232' : '#FFFFFF',
|
|
117
|
+
fontFamily: 'Poppins, sans-serif',
|
|
118
|
+
fontWeight: 400,
|
|
119
|
+
fontSize: '14px',
|
|
120
|
+
lineHeight: 1.3,
|
|
121
|
+
textAlign: 'center',
|
|
122
|
+
color: darkMode ? '#FFFFFF' : '#757575',
|
|
123
|
+
border: darkMode ? '1px solid #323232' : '1px solid #BDBDBD',
|
|
124
|
+
boxShadow: '0px 25px 18px -20px #22222233'
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
arrow: {
|
|
128
|
+
sx: {
|
|
129
|
+
":before": {
|
|
130
|
+
border: darkMode ? '1px solid #323232' : '1px solid #BDBDBD'
|
|
131
|
+
},
|
|
132
|
+
color: darkMode ? '#323232' : '#FFFFFF'
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}, children: jsx(FlexButtonContainer, { onClick: itsLiked ? handleUnlike : handleLike, style: {
|
|
136
|
+
cursor: loadingLike ? 'not-allowed !important' : 'pointer',
|
|
137
|
+
pointerEvents: loadingLike ? 'none' : 'auto'
|
|
138
|
+
}, darkMode: darkMode, children: itsLiked ?
|
|
139
|
+
jsx(IconLikeFilled, { customColor_1: darkMode ? '#151515' : '#FFFFFF' })
|
|
140
|
+
:
|
|
141
|
+
jsx(IconLikeLine, { fill: darkMode ? "#EBEBEB" : "#444" }) }) }), jsx("span", { style: { color: itsLiked ? '#F26818' : (darkMode ? "#EBEBEB" : "#444"),
|
|
142
|
+
fontFamily: 'Poppins, sans-serif',
|
|
143
|
+
fontSize: '14px',
|
|
144
|
+
fontWeight: 700
|
|
145
|
+
}, children: likesCount })] })), showAnswersButton &&
|
|
146
|
+
jsx(MiniButton, { darkMode: darkMode, variant: "terciary", onClick: actionAnswer, label: answerButtonText, styles: { color: darkMode ? '#EBEBEB' : '#444444' } }), renderMenuMore()] }));
|
|
147
|
+
return (jsxs(ThemeProvider, { theme: FRSTTheme, children: [jsxs(Container, { style: { ...styles }, "$versionFeed": versionFeed, children: [jsxs("div", { style: { position: 'relative' }, children: [jsx(Avatar, { size: versionFeed ? '40px' : isMainComment ? '48px' : '32px', src: imgProfile, onClick: onClickUserInfo, style: { cursor: hasActionToClickOnAvatar ? 'pointer' : 'default', marginRight: versionFeed ? '0' : '6px' } }), showInterconnectionLine && (jsx("div", { style: {
|
|
148
|
+
height: '100%',
|
|
149
|
+
width: '2px',
|
|
150
|
+
position: 'absolute',
|
|
151
|
+
left: '16px',
|
|
152
|
+
top: '40px',
|
|
153
|
+
backgroundColor: '#D1D5DB'
|
|
154
|
+
} }))] }), isModeEdit ? (versionFeed ? (jsx(FeedBody, { children: jsx(InputEdit, { placeHolderText: placeHolderText, commentText: buildStringWithLinkHTML(commentText), commentTextWithMention: commentTextWithMention && buildStringWithLinkHTML(commentTextWithMention), editButtonText: saveButtonText, onClickEditButton: actionEditComment, limitInput: limitInput, cancelButtonText: cancelButtonText, orText: orText, limitMessageExceeded: limitMessageExceeded, commentId: commentId, setIsModeEdit: setIsModeEdit, group_uuid: groupUuid, getSearchUsers: getSearchUsers, darkMode: darkMode, configColor: configColor }) })) : (jsx(InputEdit, { placeHolderText: placeHolderText, commentText: buildStringWithLinkHTML(commentText), commentTextWithMention: commentTextWithMention && buildStringWithLinkHTML(commentTextWithMention), editButtonText: saveButtonText, onClickEditButton: actionEditComment, limitInput: limitInput, cancelButtonText: cancelButtonText, orText: orText, limitMessageExceeded: limitMessageExceeded, commentId: commentId, setIsModeEdit: setIsModeEdit, group_uuid: groupUuid, getSearchUsers: getSearchUsers, darkMode: darkMode, configColor: configColor }))) : versionFeed ? (jsxs(FeedBody, { children: [jsxs(FeedBubble, { id: `comment_${commentUuid}`, children: [jsxs(FeedHeader, { children: [jsxs("div", { children: [jsx(FeedAuthor, { children: userName }), jsxs(FeedTime, { children: [userOffice && userOffice, " ", userCompany && `• ${userCompany}`, " ", howLongAgo && `• ${howLongAgo}`] })] }), likesCount > 0 ? (jsxs(LikeBadge, { "$primaryColor": configColor, children: [jsx(ThumbsUp, { size: 12, fill: configColor, color: configColor }), likesCount] })) : null] }), relationToPhaseText ? (jsx(FeedRelationText, { children: relationToPhaseText })) : null, renderCommentContent()] }), !isModeEdit && renderFeedActions()] })) : (jsxs(Box, { id: `comment_${commentUuid}`, darkMode: darkMode, children: [jsxs(UserDataContainer, { children: [jsx(FirstChildUserData, { children: jsx(Username, { darkMode: darkMode, children: userName }) }), jsxs(UserDataLastChild, { darkMode: darkMode, children: [userOffice && userOffice, " ", userCompany && `• ${userCompany}`, " ", howLongAgo && `• ${howLongAgo}`] })] }), relationToPhaseText && jsx(RelationContainer, { children: relationToPhaseText }), renderCommentContent()] }))] }), !isModeEdit && !versionFeed && renderDefaultActions()] }));
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export { CommentaryBoxV2 };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import Loading from '../../../DS/loading/index.js';
|
|
3
|
+
import InputComment from '../../../input-comment/index.js';
|
|
4
|
+
import MiniButton from '../../../mini-button/index.js';
|
|
5
|
+
import { useState, useRef } from 'react';
|
|
6
|
+
import { Container, InputContainer, ButtonsContainer, SpanText, SaveButton } from './inputEdit.styles.js';
|
|
7
|
+
|
|
8
|
+
const InputEdit = ({ placeHolderText, commentText, commentTextWithMention, getSearchUsers, onClickEditButton, limitInput, editButtonText, cancelButtonText, orText, limitMessageExceeded, commentId, group_uuid, setIsModeEdit, darkMode, configColor = '#FF8A15' }) => {
|
|
9
|
+
const [comment, setComment] = useState(commentText);
|
|
10
|
+
const [CaptureFormattedValue, setCaptureFormattedValue] = useState(commentTextWithMention);
|
|
11
|
+
const [captureMentions, setCaptureMentions] = useState([]);
|
|
12
|
+
const [users, setUsers] = useState([]);
|
|
13
|
+
const [isLoading, setIsLoading] = useState(false);
|
|
14
|
+
const inputRef = useRef(null);
|
|
15
|
+
const handlePublish = async () => {
|
|
16
|
+
setIsLoading(true);
|
|
17
|
+
await onClickEditButton({
|
|
18
|
+
commentId,
|
|
19
|
+
content: comment,
|
|
20
|
+
contentMention: CaptureFormattedValue,
|
|
21
|
+
mentions: captureMentions
|
|
22
|
+
});
|
|
23
|
+
setIsLoading(false);
|
|
24
|
+
setIsModeEdit(false);
|
|
25
|
+
setComment('');
|
|
26
|
+
setCaptureFormattedValue('');
|
|
27
|
+
setCaptureMentions([]);
|
|
28
|
+
};
|
|
29
|
+
let timeout;
|
|
30
|
+
const setCommentData = (value) => {
|
|
31
|
+
clearTimeout(timeout);
|
|
32
|
+
timeout = setTimeout(() => {
|
|
33
|
+
setComment(value);
|
|
34
|
+
}, 300);
|
|
35
|
+
};
|
|
36
|
+
const handleSearchUsers = async (value) => {
|
|
37
|
+
const response = await getSearchUsers(value);
|
|
38
|
+
setUsers(response?.data?.results || response);
|
|
39
|
+
};
|
|
40
|
+
return (jsxs(Container, { children: [jsx(InputContainer, { ref: inputRef, style: { width: '100%' }, children: jsx(InputComment, { styles: { width: '100%' }, onChange: (e) => {
|
|
41
|
+
handleSearchUsers(e);
|
|
42
|
+
}, value: comment, placeholder: placeHolderText, limit: limitInput, showCharacterCounter: true, onContentUnformat: (unformattedValue) => setCommentData(unformattedValue), onContentFormat: (formattedValue) => setCaptureFormattedValue(formattedValue), onSendMentions: (mentions) => setCaptureMentions(mentions), users: users, group_uuid: group_uuid, limitMessageExceeded: limitMessageExceeded, initialText: CaptureFormattedValue || comment, darkMode: darkMode, showEmojiPicker: darkMode, configColor: configColor }) }), jsxs(ButtonsContainer, { children: [jsx(MiniButton, { darkMode: darkMode, label: cancelButtonText, onClick: () => setIsModeEdit(false), variant: 'secondary' }), jsx(SpanText, { darkMode: darkMode, children: orText }), jsx(SaveButton, { type: "button", "$primaryColor": configColor, disabled: comment.length <= 0 || comment.length > limitInput || isLoading, onClick: () => handlePublish(), children: editButtonText })] }), isLoading && jsx(Loading, {})] }));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { InputEdit };
|
package/dist/esm/src/components/commentaryBoxV2/utilitiesComponents/inputEdit/inputEdit.styles.js
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
flex-direction:column;
|
|
12
|
+
width:100%;
|
|
13
|
+
`;
|
|
14
|
+
const SpanText = styled.p `
|
|
15
|
+
color: ${({ darkMode }) => darkMode ? '#EBEBEB' : '#000'};
|
|
16
|
+
font-family: Poppins, sans-serif;
|
|
17
|
+
font-size: 16px;
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: 400;
|
|
20
|
+
line-height: 110%;
|
|
21
|
+
`;
|
|
22
|
+
const ButtonsContainer = styled.div `
|
|
23
|
+
width:175px;
|
|
24
|
+
display:flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
margin-left:auto;
|
|
28
|
+
`;
|
|
29
|
+
const SaveButton = styled.button `
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: row;
|
|
32
|
+
align-items: center;
|
|
33
|
+
padding: 4px 16px;
|
|
34
|
+
gap: 8px;
|
|
35
|
+
width: fit-content;
|
|
36
|
+
height: 32px;
|
|
37
|
+
background: ${({ $primaryColor, disabled }) => (disabled ? '#BDBDBD' : $primaryColor)};
|
|
38
|
+
border: 0;
|
|
39
|
+
border-radius: 8px;
|
|
40
|
+
cursor: ${({ disabled }) => (disabled ? 'default' : 'pointer')};
|
|
41
|
+
font-family: Poppins, sans-serif;
|
|
42
|
+
font-style: normal;
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
font-size: 16px;
|
|
45
|
+
line-height: 19px;
|
|
46
|
+
color: #ffffff;
|
|
47
|
+
user-select: none;
|
|
48
|
+
|
|
49
|
+
&:hover:not(:disabled) {
|
|
50
|
+
filter: brightness(0.9);
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
|
|
54
|
+
export { ButtonsContainer, Container, InputContainer, SaveButton, SpanText };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import '../../shared/global.css.js';
|
|
4
|
+
import { ThemeProvider } from 'styled-components';
|
|
5
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
6
|
+
import ScrollContainer from '../scroll-container/index.js';
|
|
7
|
+
import CardResultConquista from '../cards/cardResultConquista/index.js';
|
|
8
|
+
|
|
9
|
+
function ConquistaCarrossel({ onSelected, objectCards, marginsArrowButton, sizeArrowButton, horizontalMarginInternScroll, positionArrowButton, marginTopArrrowButton, textMoreDetails, }) {
|
|
10
|
+
useState(-1);
|
|
11
|
+
const [Refresh, setRefresh] = useState(0);
|
|
12
|
+
const [btnViewMore, setBtnViewMore] = useState('');
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
let temp = Refresh;
|
|
15
|
+
setRefresh(temp + 1);
|
|
16
|
+
}, [objectCards]);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
setBtnViewMore(textMoreDetails);
|
|
19
|
+
}, [textMoreDetails]);
|
|
20
|
+
function renderCard(item, index) {
|
|
21
|
+
return (jsx(CardResultConquista, { textMoreDetails: btnViewMore ? btnViewMore : 'Mais detalhes', description: item.description, problemId: item.problemId, statusCard: item.statusCard, userArea: item.userArea, userName: item.userName, userAvatar: item.userAvatar, onClick: () => onSelected(item.problemId), style: { marginRight: '24px', whiteSpace: 'pre-wrap' }, onClickAvatar: item.onClickUserInfo, onClickName: item.onClickUserInfo, textVisitProfile: item.textVisitProfile }, index));
|
|
22
|
+
}
|
|
23
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsx(ScrollContainer, { stepMove: 380, isVisibleControlsButtons: true, sizeArrowButton: sizeArrowButton, marginsArrowButton: marginsArrowButton, horizontalMarginInternScroll: horizontalMarginInternScroll, positionArrowButton: positionArrowButton ? positionArrowButton : '', marginTopArrrowButton: marginTopArrrowButton ? marginTopArrrowButton : '20px', refreshResize: Refresh, children: objectCards.map(renderCard) }) }));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { ConquistaCarrossel as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const WrapperButton = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
width: fit-content;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
gap: 6px;
|
|
9
|
+
`;
|
|
10
|
+
const Counter = styled.div `
|
|
11
|
+
font-family: 'PT Sans';
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: ${({ isLiked }) => isLiked ? '700' : '400'};
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
line-height: 120%;
|
|
16
|
+
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
text-align: right;
|
|
20
|
+
|
|
21
|
+
color: ${({ theme, active }) => active ? theme.colors.linkOnfocus : theme.colors.neutralsGrey2};
|
|
22
|
+
|
|
23
|
+
text-decoration: ${({ active }) => active ? 'underline' : 'none'};
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
export { Counter, WrapperButton };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import '../../shared/global.css.js';
|
|
4
|
+
import { ThemeProvider } from 'styled-components';
|
|
5
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
6
|
+
import { WrapperButton, Counter } from './counterLikeStyles.js';
|
|
7
|
+
import { IconLikeFilled, IconLikeLine } from '../../shared/icons.js';
|
|
8
|
+
|
|
9
|
+
function CounterLike({ onClick, total, styles }) {
|
|
10
|
+
const [actionArea, setActionArea] = useState(false);
|
|
11
|
+
const [counter, setCounter] = useState(0);
|
|
12
|
+
const [isPressed, setIsPressed] = useState(false);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
setCounter(total);
|
|
15
|
+
}, [total]);
|
|
16
|
+
const handleClick = () => {
|
|
17
|
+
setIsPressed(true);
|
|
18
|
+
onClick();
|
|
19
|
+
setTimeout(() => {
|
|
20
|
+
setIsPressed(false);
|
|
21
|
+
}, 1000);
|
|
22
|
+
};
|
|
23
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(WrapperButton, { onClick: () => handleClick(), onMouseOver: () => setActionArea(true), onMouseOut: () => setActionArea(false), style: { ...styles }, children: [jsx(Fragment, { children: isPressed ?
|
|
24
|
+
jsx(IconLikeFilled, {})
|
|
25
|
+
: jsx(IconLikeLine, { fill: actionArea ? '#F26818' : '#444444' }) }), counter >= 1 && jsx(Counter, { active: actionArea, isLiked: isPressed, children: counter })] }) }));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { CounterLike as default };
|