frst-components 0.37.0 → 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,84 @@
|
|
|
1
|
+
import styled, { keyframes } from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const notificationContainer = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: flex-start;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
width: 375px;
|
|
8
|
+
height: auto;
|
|
9
|
+
padding: 16px;
|
|
10
|
+
gap: 16px;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
`;
|
|
13
|
+
const notificationInfo = styled.div `
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: flex-start;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
height: 100%;
|
|
19
|
+
`;
|
|
20
|
+
const notificationDescription = styled.div `
|
|
21
|
+
font-family: 'PT Sans';
|
|
22
|
+
font-size: 16px;
|
|
23
|
+
font-weight: 400;
|
|
24
|
+
color: ${({ theme }) => theme.colors.selectItens};
|
|
25
|
+
a {
|
|
26
|
+
color: ${({ theme }) => theme.colors.selectItens};
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
}
|
|
30
|
+
`;
|
|
31
|
+
const notificationDate = styled.div `
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: 8px;
|
|
36
|
+
margin-top: 8px;
|
|
37
|
+
|
|
38
|
+
font-family: 'PT Sans';
|
|
39
|
+
font-size: 14px;
|
|
40
|
+
font-weight: 400;
|
|
41
|
+
color: ${({ theme }) => theme.colors.neutralsGrey5};
|
|
42
|
+
`;
|
|
43
|
+
styled.div `
|
|
44
|
+
display: none;
|
|
45
|
+
position: absolute;
|
|
46
|
+
border: 1px solid black;
|
|
47
|
+
background-color: #fff;
|
|
48
|
+
padding: 10px;
|
|
49
|
+
z-index: 1000;
|
|
50
|
+
`;
|
|
51
|
+
const pulseAnimation = keyframes `
|
|
52
|
+
0% {
|
|
53
|
+
transform: scale(1);
|
|
54
|
+
}
|
|
55
|
+
50% {
|
|
56
|
+
transform: scale(1.1);
|
|
57
|
+
}
|
|
58
|
+
100% {
|
|
59
|
+
transform: scale(1);
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
const TrashIconContainer = styled.div `
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
padding: 5px;
|
|
67
|
+
margin-left: auto;
|
|
68
|
+
margin-top: auto;
|
|
69
|
+
border-radius: 50%;
|
|
70
|
+
&:hover {
|
|
71
|
+
background-color: ${({ isNewNotification }) => (isNewNotification ? '#585858' : '#494949')};
|
|
72
|
+
& > svg {
|
|
73
|
+
path {
|
|
74
|
+
fill: #f7f9fc !important;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
&:active {
|
|
79
|
+
background-color: ${({ isNewNotification }) => (isNewNotification ? '#686868' : '#595959')};
|
|
80
|
+
animation: ${pulseAnimation} 0.3s ease-in-out;
|
|
81
|
+
}
|
|
82
|
+
`;
|
|
83
|
+
|
|
84
|
+
export { TrashIconContainer, notificationContainer, notificationDate, notificationDescription, notificationInfo };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import Button from '../../buttons/index.js';
|
|
3
|
+
import { ThemeProvider } from 'styled-components';
|
|
4
|
+
import { FRSTTheme } from '../../../theme/index.js';
|
|
5
|
+
import NotificationCard from '../notificationCard/index.js';
|
|
6
|
+
import { notificationContainerMobile, notificationHeader, LoadingContainer, notificationCardList, emptyState, emptyStateInfo, PopoverCustom, notificationContainer } from './notificationPopOverStyles.js';
|
|
7
|
+
import { BackArrow, MoreDotsVertical } from '../../../shared/icons.js';
|
|
8
|
+
import imgEmptyState from '../../../../public/img/Nonotification.png.js';
|
|
9
|
+
import MenuMore from '../../menu-more/index.js';
|
|
10
|
+
import Loading from '../../DS/loading/index.js';
|
|
11
|
+
|
|
12
|
+
function NotificationPopOver(props) {
|
|
13
|
+
props.notificationList
|
|
14
|
+
? props.notificationList.filter((notification) => notification.isNewNotification)
|
|
15
|
+
: [];
|
|
16
|
+
const emptyStateImage = imgEmptyState;
|
|
17
|
+
const notificationsLength = props?.notificationList?.length;
|
|
18
|
+
const markAllAsReadOption = {
|
|
19
|
+
description: props.textMarkAllAsRead,
|
|
20
|
+
onClick: props.handleClickMarkRead,
|
|
21
|
+
color: props.notificationList ? '#FCFCFC' : '#9C9C9C',
|
|
22
|
+
disabled: !props.notificationList
|
|
23
|
+
};
|
|
24
|
+
const deleteAllNotificationsOption = {
|
|
25
|
+
description: props.textDeleteAll,
|
|
26
|
+
onClick: props.handleClickDeleteAll,
|
|
27
|
+
color: props.notificationList ? '#FF6868' : '#9C9C9C',
|
|
28
|
+
disabled: !props.notificationList
|
|
29
|
+
};
|
|
30
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: props.isMobile ? (jsxs("div", { style: { backgroundColor: '#E5E5E5' }, children: [jsx("div", { style: { padding: 16 }, children: jsx(Button, { variant: "link", startIcon: jsx(BackArrow, { fill: "currentColor" }), label: props.textBack, handleClick: () => props.handleClickBack() }) }), jsxs(notificationContainerMobile, { children: [jsxs(notificationHeader, { children: [jsx("span", { style: {
|
|
31
|
+
fontFamily: 'Work Sans',
|
|
32
|
+
fontSize: 20,
|
|
33
|
+
fontWeight: 500,
|
|
34
|
+
color: FRSTTheme['colors'].primary1
|
|
35
|
+
}, children: props.textNotification }), jsx(MenuMore, { options: [markAllAsReadOption, deleteAllNotificationsOption], isHover: false, closeAfterClick: true, isArrowInMenu: false, isPaddingInMenu: false, isDarkMode: true, iconButton: jsx(MoreDotsVertical, { fill: "#F7F9FC" }) })] }), !!props?.isLoading ? (jsx(LoadingContainer, { children: jsx(Loading, { sizeLoading: "large" }) })) : props.notificationList ? (jsx(notificationCardList, { children: props.notificationList.map((item, index) => {
|
|
36
|
+
return (jsx("div", { style: { borderBottom: `1px solid ${FRSTTheme['colors'].borderPrimary}` }, children: jsx(NotificationCard, { style: { width: '100%' }, onClickUserInfo: item.onClickUserInfo, textVisitProfile: item.textVisitProfile, notificationAvatar: item.notificationAvatar, notificationDescription: item.notificationDescription, notificationDate: item.notificationDate, notificationHour: item.notificationHour, textNew: item.textNew, isNewNotification: item.isNewNotification, handleClick: item.handleClick, handleClickDelete: item.handleClickDelete }, index) }));
|
|
37
|
+
}) })) : (jsx(emptyState, { children: jsxs(emptyStateInfo, { children: [jsx("img", { src: emptyStateImage, alt: "Empty notification list" }), jsx("span", { children: props.textEmptyState })] }) }))] })] })) : (jsx(PopoverCustom, { open: props.isOpen, anchorEl: props.anchor, anchorOrigin: {
|
|
38
|
+
vertical: 'bottom',
|
|
39
|
+
horizontal: 'center'
|
|
40
|
+
}, transformOrigin: {
|
|
41
|
+
vertical: 'top',
|
|
42
|
+
horizontal: 'center'
|
|
43
|
+
}, PaperProps: {
|
|
44
|
+
style: {
|
|
45
|
+
backgroundColor: 'transparent',
|
|
46
|
+
boxShadow: 'none',
|
|
47
|
+
borderRadius: 0
|
|
48
|
+
}
|
|
49
|
+
}, children: jsxs(notificationContainer, { children: [jsxs(notificationHeader, { onMouseOver: () => (props?.setOnAreaPopOver ? props?.setOnAreaPopOver(true) : {}), onMouseOut: () => (props?.setOnAreaPopOver ? props?.setOnAreaPopOver(false) : {}), children: [jsx("span", { style: {
|
|
50
|
+
fontFamily: 'Work Sans',
|
|
51
|
+
fontSize: 20,
|
|
52
|
+
fontWeight: 500,
|
|
53
|
+
color: FRSTTheme['colors'].primary1
|
|
54
|
+
}, children: props.textNotification }), jsx(MenuMore, { options: [markAllAsReadOption, deleteAllNotificationsOption], isHover: false, closeAfterClick: true, isArrowInMenu: false, isPaddingInMenu: false, isDarkMode: true, iconButton: jsx(MoreDotsVertical, { fill: "#F7F9FC" }) })] }), !!props?.isLoading ? (jsx(LoadingContainer, { children: jsx(Loading, { sizeLoading: "large" }) })) : props.notificationList ? (jsx(notificationCardList, { notificationsLength: notificationsLength, children: props.notificationList.map((item, index) => {
|
|
55
|
+
return (jsx("div", { style: { borderBottom: `1px solid #313131` }, onMouseOver: () => props?.setOnAreaPopOver ? props?.setOnAreaPopOver(true) : {}, onMouseOut: () => props?.setOnAreaPopOver ? props?.setOnAreaPopOver(false) : {}, children: jsx(NotificationCard, { onClickUserInfo: item.onClickUserInfo, textVisitProfile: item.textVisitProfile, notificationAvatar: item.notificationAvatar, notificationDescription: item.notificationDescription, notificationDate: item.notificationDate, notificationHour: item.notificationHour, textNew: item.textNew, isNewNotification: item.isNewNotification, handleClick: item.handleClick, handleClickDelete: item.handleClickDelete }, index) }, index));
|
|
56
|
+
}) })) : (jsx(emptyState, { children: jsxs(emptyStateInfo, { children: [jsx("img", { src: emptyStateImage, alt: "Empty notification list" }), jsx("span", { children: props.textEmptyState })] }) }))] }) })) }));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { NotificationPopOver as default };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { Popover } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
const PopoverCustom = styled(Popover) `
|
|
5
|
+
& > div:nth-child(3) {
|
|
6
|
+
border-radius: 7px !important;
|
|
7
|
+
box-shadow: 0px 25px 62px -19px rgba(0, 0, 0, 0.37) !important;
|
|
8
|
+
-webkit-box-shadow: 0px 25px 62px -19px rgba(0, 0, 0, 0.47);
|
|
9
|
+
-moz-box-shadow: 0px 25px 62px -19px rgba(0, 0, 0, 0.47);
|
|
10
|
+
}
|
|
11
|
+
margin-top:24px;
|
|
12
|
+
box-shadow: 0px 0px 10px 0px #00000033;
|
|
13
|
+
`;
|
|
14
|
+
const LoadingContainer = styled.div `
|
|
15
|
+
display: flex;
|
|
16
|
+
justify-content: center;
|
|
17
|
+
align-items: center;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
`;
|
|
21
|
+
const notificationContainer = styled.div `
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
align-items: flex-start;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
border-radius: 8px;
|
|
27
|
+
width: 376px;
|
|
28
|
+
height: 412px;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
background-color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
31
|
+
|
|
32
|
+
border: 1px solid ${({ theme }) => theme.colors.borderSecondary4} !important;
|
|
33
|
+
/* & > div:nth-child(2) > div:nth-child(3) {
|
|
34
|
+
display: none !important;
|
|
35
|
+
} */
|
|
36
|
+
`;
|
|
37
|
+
const notificationContainerMobile = styled.div `
|
|
38
|
+
display: flex;
|
|
39
|
+
justify-content: flex-start;
|
|
40
|
+
align-items: flex-start;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
border-top: 1px solid ${({ theme }) => theme.colors.borderPrimary};
|
|
46
|
+
background-color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
47
|
+
|
|
48
|
+
& > div:nth-child(2) {
|
|
49
|
+
max-height: 80vh !important;
|
|
50
|
+
overflow-y: scroll !important;
|
|
51
|
+
}
|
|
52
|
+
`;
|
|
53
|
+
const notificationHeader = styled.div `
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
align-items: center;
|
|
57
|
+
padding: 12px 16px;
|
|
58
|
+
border-bottom: 1px solid ${({ theme }) => theme.colors.borderPrimary};
|
|
59
|
+
width: 100%;
|
|
60
|
+
`;
|
|
61
|
+
const notificationCardList = styled.div `
|
|
62
|
+
height: 100%;
|
|
63
|
+
min-height: 300px;
|
|
64
|
+
min-width: 100%;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
overflow-y: ${(props) => props?.notificationsLength > 3 && 'scroll'};
|
|
67
|
+
width: 100%;
|
|
68
|
+
|
|
69
|
+
&::-webkit-scrollbar {
|
|
70
|
+
width: 7px;
|
|
71
|
+
height: 90%;
|
|
72
|
+
display: flex;
|
|
73
|
+
box-sizing: border-box;
|
|
74
|
+
margin-right: 5px !important;
|
|
75
|
+
}
|
|
76
|
+
&::-webkit-scrollbar-track {
|
|
77
|
+
background: ${({ theme }) => theme.colors.shadeWhite};
|
|
78
|
+
height: 30%;
|
|
79
|
+
}
|
|
80
|
+
::-webkit-scrollbar-thumb {
|
|
81
|
+
background: ${({ theme }) => theme.colors.borderPrimary};
|
|
82
|
+
height: 30%;
|
|
83
|
+
border-radius: 5px;
|
|
84
|
+
margin: 3px;
|
|
85
|
+
}
|
|
86
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
87
|
+
background: ${({ theme }) => theme.colors.borderPrimary};
|
|
88
|
+
height: 30%;
|
|
89
|
+
}
|
|
90
|
+
`;
|
|
91
|
+
const emptyState = styled.div `
|
|
92
|
+
display: flex;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
align-items: center;
|
|
95
|
+
width: 100%;
|
|
96
|
+
height: 100%;
|
|
97
|
+
`;
|
|
98
|
+
const emptyStateInfo = styled.div `
|
|
99
|
+
display: flex;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
align-items: center;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
gap: 24px;
|
|
104
|
+
|
|
105
|
+
text-align: center;
|
|
106
|
+
font-family: 'PT Sans';
|
|
107
|
+
font-size: 16px;
|
|
108
|
+
font-weight: 700;
|
|
109
|
+
color: ${({ theme }) => theme.colors.neutralsGrey3};
|
|
110
|
+
`;
|
|
111
|
+
|
|
112
|
+
export { LoadingContainer, PopoverCustom, emptyState, emptyStateInfo, notificationCardList, notificationContainer, notificationContainerMobile, notificationHeader };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import Avatar from '../../avatar/index.js';
|
|
3
|
+
import Button from '../../buttons/index.js';
|
|
4
|
+
import { ThemeProvider } from 'styled-components';
|
|
5
|
+
import { FRSTTheme } from '../../../theme/index.js';
|
|
6
|
+
import FeedInteraction from '../feedInteraction/index.js';
|
|
7
|
+
import { Wrapper, postContainer, postHeader, TooltipCard, TooltipText, buttonCheck, TooltipBox, postTitle, postImage, postDescription, postVideo } from './postFeedStyles.js';
|
|
8
|
+
import Markdown from 'markdown-to-jsx';
|
|
9
|
+
import { useState, useEffect } from 'react';
|
|
10
|
+
|
|
11
|
+
function PostFeed(props) {
|
|
12
|
+
const FRSTAvatar = 'https://api-deimos-cdn.frstfalconi.cloud/logo_first.png';
|
|
13
|
+
const [isVisibleComments, setIsVisibleComments] = useState(props.isVisibleComments);
|
|
14
|
+
const [actionArea, setActionArea] = useState(false);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
setIsVisibleComments(props.isVisibleComments);
|
|
17
|
+
}, [props.isVisibleComments]);
|
|
18
|
+
return (jsx(Wrapper, { isCompletePost: props.isCompletePost, children: jsxs(ThemeProvider, { theme: FRSTTheme, children: [jsxs(postContainer, { style: { ...props.style }, children: [jsxs(postHeader, { style: { width: '100%', justifyContent: 'space-between' }, children: [jsx("div", { style: { width: props?.fixPostButton && props?.fixPostButton?.isVisibleButton ? '105px' : '0px' } }), jsxs("div", { style: { display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center' }, children: [jsxs("div", { style: { marginRight: 16, paddingTop: '18px' }, children: [" ", jsx(Avatar, { src: FRSTAvatar, size: '40px' }), " "] }), jsx("span", { style: { fontFamily: 'Work Sans', fontWeight: 600, fontSize: 20, color: FRSTTheme['colors'].neutralsGrey1, paddingTop: '18px' }, children: " FRST Falconi " })] }), props?.fixPostButton && props?.fixPostButton?.isVisibleButton ?
|
|
19
|
+
jsxs(TooltipCard, { children: [jsx(TooltipText, { children: jsxs("div", { onClick: () => props?.fixPostButton?.actionClick(), onMouseOver: () => setActionArea(true), onMouseOut: () => setActionArea(false), style: {
|
|
20
|
+
width: '105px',
|
|
21
|
+
fontSize: '18px',
|
|
22
|
+
color: '#0645ad',
|
|
23
|
+
cursor: 'pointer',
|
|
24
|
+
justifySelf: 'end',
|
|
25
|
+
display: 'flex',
|
|
26
|
+
justifyContent: 'space-between',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
paddingRight: '22px',
|
|
29
|
+
marginTop: '-30px'
|
|
30
|
+
}, children: [jsx(IconPin, { fill: actionArea ? '#0645ad' : '#ff4d0d' }), jsx(buttonCheck, { children: props.fixPostButton?.textFixed })] }) }), jsx(TooltipBox, { children: jsx("p", { children: props.fixPostButton?.textTooltip }) })] })
|
|
31
|
+
: jsx("div", {})] }), jsxs(postTitle, { children: [" ", props.title, " "] }), props.postImage ?
|
|
32
|
+
jsx(postImage, { children: jsx("img", { src: props.postImage }) })
|
|
33
|
+
: null, jsx(postDescription, { style: { paddingLeft: '24px', paddingRight: '24px', width: '100%' }, children: jsx(Markdown, { children: props.description }) }), props.postVideoId ?
|
|
34
|
+
jsxs(postVideo, { children: [props.videoSource == 'youtube' &&
|
|
35
|
+
jsx("iframe", { src: `https://www.youtube.com/embed/${props.postVideoId}`, frameBorder: "0", allow: "autoplay; fullscreen; picture-in-picture", width: props.videoWidth ? props.videoWidth : '100%', height: props.videoHeight ? props.videoHeight : 430 }), props.videoSource == 'vimeo' &&
|
|
36
|
+
jsx("iframe", { src: `https://player.vimeo.com/video/${props.postVideoId}?autoplay=0`, width: props.videoWidth ? props.videoWidth : '100%', height: props.videoHeight ? props.videoHeight : 430, allow: "autoplay; fullscreen" })] })
|
|
37
|
+
: null, props.handlePostButtonClick ?
|
|
38
|
+
jsx("div", { style: { marginTop: 32, width: '100%', paddingLeft: '24px', paddingRight: '24px' }, children: jsx(Button, { variant: 'expandedPrimary', label: props.textPostButton, handleClick: props.handlePostButtonClick }) })
|
|
39
|
+
: null] }), jsx(FeedInteraction, { hideComments: isVisibleComments, isPostReview: true, userAvatar: props.userAvatar, id: props.postId, isLiked: props.isPostLiked, qtdComments: props.qtdComments, qtdLikes: props.qtdLikes, textAvaluation: props.textAvaluation, textAvaluationTitle: props.textAvaluationTitle, textComments: props.textComments, textDeslike: props.textDeslike, textLikes: props.textLikes,
|
|
40
|
+
// commentList={props.commentList}
|
|
41
|
+
// userCommentPlaceholder={props.userCommentPlaceholder}
|
|
42
|
+
textLoadMoreComments: props.textLoadMoreComments,
|
|
43
|
+
// textSaveCommentBtn={props.textSaveCommentBtn}
|
|
44
|
+
ratingPostReview: props.ratingPostReview, handleLikeClick: props.handleLikeClick, handlePostReviewChange: props.handlePostReviewChange,
|
|
45
|
+
// handleSaveCommentBtn={props.handleSaveCommentBtn}
|
|
46
|
+
// onCommentChange={props.onCommentChange}
|
|
47
|
+
isDisabledAvaluation: props.isDisabledAvaluation, isCommentV2: props?.isCommentV2, childrenCommentV2: props?.childrenCommentV2 })] }) }));
|
|
48
|
+
}
|
|
49
|
+
function IconPin({ fill }) {
|
|
50
|
+
return jsx(Fragment, { children: jsx("svg", { width: "18", height: "13", viewBox: "0 0 18 13", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsx("path", { d: "M17 1L6 12L1 7", stroke: "#0645AD", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }) });
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { PostFeed as default };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Wrapper = styled.div `
|
|
4
|
+
opacity: ${({ isCompletePost }) => isCompletePost ? '0' : '1'};
|
|
5
|
+
transition: opacity 0.5s ease-in-out;
|
|
6
|
+
`;
|
|
7
|
+
const postContainer = styled.div `
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
align-items: center;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
|
|
13
|
+
border: 1px solid ${({ theme }) => theme.colors.borderPrimary};
|
|
14
|
+
border-top-left-radius: 8px;
|
|
15
|
+
border-top-right-radius: 8px;
|
|
16
|
+
background-color: ${({ theme }) => theme.colors.shadeWhite};
|
|
17
|
+
padding-top: 24px;
|
|
18
|
+
padding-bottom: 24px;
|
|
19
|
+
|
|
20
|
+
&>img{
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
max-height: 100%;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
`;
|
|
26
|
+
const postHeader = styled.div `
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
align-items: center;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
`;
|
|
32
|
+
const postTitle = styled.span `
|
|
33
|
+
font-family: 'Work Sans';
|
|
34
|
+
font-weight: 600;
|
|
35
|
+
font-size: 24px;
|
|
36
|
+
text-align: center;
|
|
37
|
+
color: ${({ theme }) => theme.colors.primary1};
|
|
38
|
+
margin-top: 32px;
|
|
39
|
+
padding-left: 22px;
|
|
40
|
+
padding-right: 22px;
|
|
41
|
+
`;
|
|
42
|
+
const postDescription = styled.span `
|
|
43
|
+
font-family: 'PT Sans';
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
font-size: 16px;
|
|
46
|
+
text-align: left;
|
|
47
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
48
|
+
margin-top: 32px;
|
|
49
|
+
width: 100% !important;
|
|
50
|
+
`;
|
|
51
|
+
const postImage = styled.div `
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
|
|
56
|
+
margin-top: 32px;
|
|
57
|
+
width: 100%;
|
|
58
|
+
object-fit: cover;
|
|
59
|
+
|
|
60
|
+
& img{
|
|
61
|
+
max-width: 100%;
|
|
62
|
+
width: 100%;
|
|
63
|
+
max-height: 100%;
|
|
64
|
+
}
|
|
65
|
+
`;
|
|
66
|
+
const postVideo = styled.div `
|
|
67
|
+
display: flex;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
align-items: center;
|
|
70
|
+
|
|
71
|
+
margin-top: 32px;
|
|
72
|
+
width: 100%;
|
|
73
|
+
`;
|
|
74
|
+
const buttonCheck = styled.span `
|
|
75
|
+
font-family: 'PT Sans';
|
|
76
|
+
font-style: normal;
|
|
77
|
+
font-weight: 700;
|
|
78
|
+
font-size: 16px;
|
|
79
|
+
line-height: 110%;
|
|
80
|
+
/* identical to box height, or 18px */
|
|
81
|
+
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
|
|
85
|
+
/* link/onfocus */
|
|
86
|
+
|
|
87
|
+
color: #0645AD;
|
|
88
|
+
`;
|
|
89
|
+
const TooltipText = styled.div `
|
|
90
|
+
color: #757575;
|
|
91
|
+
text-align: center;
|
|
92
|
+
line-height: 44px;
|
|
93
|
+
border-radius: 3px;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
`;
|
|
96
|
+
const TooltipBox = styled.div `
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: calc(100% + 10px);
|
|
99
|
+
left: -10px;
|
|
100
|
+
visibility: hidden;
|
|
101
|
+
|
|
102
|
+
font-family: 'PT Sans';
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 400;
|
|
105
|
+
font-size: 15px;
|
|
106
|
+
line-height: 18px;
|
|
107
|
+
color: #757575;
|
|
108
|
+
|
|
109
|
+
background-color: #FFF;
|
|
110
|
+
width: 150px;
|
|
111
|
+
padding: 5px 5px;
|
|
112
|
+
border-radius: 4px;
|
|
113
|
+
border: 1px solid #BDBDBD;
|
|
114
|
+
-webkit-box-shadow: 10px 35px 40px -8px rgba(0,0,0,0.31);
|
|
115
|
+
-moz-box-shadow: 10px 35px 40px -8px rgba(0,0,0,0.31);
|
|
116
|
+
box-shadow: 10px 35px 40px -8px rgba(0,0,0,0.31);
|
|
117
|
+
|
|
118
|
+
&:after {
|
|
119
|
+
content: "";
|
|
120
|
+
width: 0;
|
|
121
|
+
height: 0;
|
|
122
|
+
left: 40px;
|
|
123
|
+
top: -7px;
|
|
124
|
+
position: absolute;
|
|
125
|
+
|
|
126
|
+
border: 7px solid #fff;
|
|
127
|
+
transform: rotate(135deg);
|
|
128
|
+
transition: border 0.3s ease-in-out;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&:before {
|
|
132
|
+
content: "";
|
|
133
|
+
width: 0;
|
|
134
|
+
height: 0;
|
|
135
|
+
left: 40px;
|
|
136
|
+
top: -8px;
|
|
137
|
+
position: absolute;
|
|
138
|
+
|
|
139
|
+
border: 7px solid #BDBDBD;
|
|
140
|
+
transform: rotate(135deg);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
`;
|
|
144
|
+
const TooltipCard = styled.div `
|
|
145
|
+
position: relative;
|
|
146
|
+
& ${TooltipText}:hover + ${TooltipBox} {
|
|
147
|
+
visibility: visible;
|
|
148
|
+
color: #757575;
|
|
149
|
+
background-color: #FFFFFF;
|
|
150
|
+
width: 230px;
|
|
151
|
+
padding: 8px 8px;
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
&:after {
|
|
155
|
+
content: "";
|
|
156
|
+
width: 0;
|
|
157
|
+
height: 0;
|
|
158
|
+
left: 40px;
|
|
159
|
+
top: -7px;
|
|
160
|
+
position: absolute;
|
|
161
|
+
|
|
162
|
+
border-color: transparent transparent #FFF #FFF;
|
|
163
|
+
transform: rotate(135deg);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&:before {
|
|
167
|
+
content: "";
|
|
168
|
+
width: 0;
|
|
169
|
+
height: 0;
|
|
170
|
+
left: 40px;
|
|
171
|
+
top: -8px;
|
|
172
|
+
position: absolute;
|
|
173
|
+
|
|
174
|
+
border-color: transparent transparent #BDBDBD #BDBDBD;
|
|
175
|
+
transform: rotate(135deg);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
}
|
|
179
|
+
`;
|
|
180
|
+
|
|
181
|
+
export { TooltipBox, TooltipCard, TooltipText, Wrapper, buttonCheck, postContainer, postDescription, postHeader, postImage, postTitle, postVideo };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Container = styled.div `
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-height: 127px;
|
|
6
|
+
background-color: ${({ theme }) => theme.colors.shadeWhite};
|
|
7
|
+
border: 1px solid ${({ theme }) => theme.colors.neutralsGrey5};
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
`;
|
|
10
|
+
const Typography = styled.div `
|
|
11
|
+
font-family: Work Sans;
|
|
12
|
+
font-size: 20px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
line-height: 23px;
|
|
15
|
+
color: ${({ theme }) => theme.colors.primary1};
|
|
16
|
+
margin-top: 16px;
|
|
17
|
+
margin-left: 16px;
|
|
18
|
+
`;
|
|
19
|
+
const ContainerSearch = styled.div `
|
|
20
|
+
margin: 24px 16px 16px 16px;
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
export { Container, ContainerSearch, Typography };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { ThemeProvider } from 'styled-components';
|
|
3
|
+
import { FRSTTheme } from '../../../theme/index.js';
|
|
4
|
+
import { Container, Typography, ContainerSearch } from './SearchBoxStyles.js';
|
|
5
|
+
import SearchField from '../../search-field/index.js';
|
|
6
|
+
|
|
7
|
+
function SearchBox(props) {
|
|
8
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(Container, { style: { ...props.style }, children: [jsx(Typography, { children: props.textTitle ? props.textTitle : props.textTitle }), jsx(ContainerSearch, { children: jsx(SearchField, { hasSearchIcon: true, textButton: props.textButton ? props.textButton : '', placeholder: props.textPlaceholder ? props.textPlaceholder : '', handleClickButton: props.handleClickSearchButton, onChange: props.onChange }) })] }) }));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { SearchBox as default };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { ThemeProvider } from 'styled-components';
|
|
3
|
+
import { FRSTTheme } from '../../../theme/index.js';
|
|
4
|
+
import { ContainerFilter, ButtonList, SelectedItens, LabelSelect, ButtonSessionFilters } from './sessionFiltersStyle.js';
|
|
5
|
+
import { Trash, Handshake, Mission, Lamp } from '../../../shared/icons.js';
|
|
6
|
+
import { useState, useEffect } from 'react';
|
|
7
|
+
import { Select, MenuItem, Checkbox, ListItemText } from '@mui/material';
|
|
8
|
+
|
|
9
|
+
const MenuProps = {
|
|
10
|
+
PaperProps: {
|
|
11
|
+
style: {
|
|
12
|
+
overflow: 'auto',
|
|
13
|
+
maxHeight: 255,
|
|
14
|
+
borderRadius: 8,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
function SessionFilters(props) {
|
|
19
|
+
const [selectedFilter, setSelectedFilter] = useState(props.selectedFilter);
|
|
20
|
+
const [selectFilterContent, setSelectFilterContent] = useState([]);
|
|
21
|
+
const [isVisibleSelect, setIsVisibleSelect] = useState(false);
|
|
22
|
+
const [isVisiblePlaceholderSelect, setIsVisiblePlaceholderSelect] = useState(true);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
setSelectedFilter(props.selectedFilter);
|
|
25
|
+
}, [props.selectedFilter]);
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
setIsVisiblePlaceholderSelect(props.isVisiblePlaceholderSelect);
|
|
28
|
+
}, [props.isVisiblePlaceholderSelect]);
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
setIsVisibleSelect(props.isVisibleSelect);
|
|
31
|
+
}, [props.isVisibleSelect]);
|
|
32
|
+
const selectItem = (item) => {
|
|
33
|
+
let index = selectFilterContent.indexOf(item.title);
|
|
34
|
+
let newArray = [].concat(selectFilterContent);
|
|
35
|
+
if (selectFilterContent.includes(item.title)) {
|
|
36
|
+
newArray.splice(index, 1);
|
|
37
|
+
setSelectFilterContent(currentValue => newArray);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
newArray.push(item.title);
|
|
41
|
+
setSelectFilterContent(currentValue => newArray);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
function FilterButton(props) {
|
|
45
|
+
return (jsx(Fragment, { children: props.variant === 'myBusiness' ?
|
|
46
|
+
jsxs(ButtonSessionFilters, { active: selectedFilter === props.id, onClick: props.handleClick, children: [jsx(Handshake, {}), props.label] })
|
|
47
|
+
: props.variant === 'mission' ?
|
|
48
|
+
jsxs(ButtonSessionFilters, { active: selectedFilter === props.id, onClick: props.handleClick, children: [jsx(Mission, {}), props.label] })
|
|
49
|
+
: props.variant === 'trail' ?
|
|
50
|
+
jsxs(ButtonSessionFilters, { active: selectedFilter === props.id, onClick: props.handleClick, children: [jsx(Lamp, {}), props.label] })
|
|
51
|
+
: null }));
|
|
52
|
+
}
|
|
53
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(ContainerFilter, { style: { ...props.style }, children: [props.labelFilters, jsx(ButtonList, { children: props.filterList.map((item, index) => {
|
|
54
|
+
return (jsx("div", { style: { marginRight: 24 }, children: FilterButton({ variant: item.variant, label: item.label, id: item.id, handleClick: item.handleClick }) }, index));
|
|
55
|
+
}) }), props.selectedFilterContentList ?
|
|
56
|
+
jsxs(Fragment, { children: [isVisibleSelect && jsx(Fragment, { children: props.labelSelectItens }), jsxs(SelectedItens, { children: [isVisibleSelect ?
|
|
57
|
+
jsxs(Fragment, { children: [isVisiblePlaceholderSelect && jsx(LabelSelect, { isVisible: true, children: props.textLabelSelect }), jsx(Select, { multiple: true, labelId: 'selectedFilterInfoLabel', id: 'selectedFilterInfo', value: selectFilterContent,
|
|
58
|
+
// renderValue={(selected) =>`${selected.length} ${selected.length > 1 ? props.textMultipleSelected : props.textSingleSelected}`}
|
|
59
|
+
renderValue: () => props.textSelectedItems, style: { height: 48, width: 384 }, MenuProps: MenuProps, onChange: props.handleSelectedFilterData(selectFilterContent), children: props.selectedFilterContentList.map((item) => (jsxs(MenuItem, { onClick: () => selectItem(item), defaultValue: item.title, style: { borderBottom: `1px solid ${FRSTTheme['colors'].neutralsGrey7}` }, children: [jsx(Checkbox, { checked: selectFilterContent.indexOf(item.title) > -1, sx: {
|
|
60
|
+
color: FRSTTheme['colors'].neutralsGrey5,
|
|
61
|
+
'&.Mui-checked': {
|
|
62
|
+
color: FRSTTheme['colors'].primary1,
|
|
63
|
+
},
|
|
64
|
+
} }), jsx(ListItemText, { style: { color: FRSTTheme['colors'].neutralsGrey1, fontSize: 16, fontWeight: 400 }, primary: item.title })] }, item.id))) })] })
|
|
65
|
+
:
|
|
66
|
+
jsx("div", {}), jsxs("div", { style: { color: FRSTTheme['colors'].linkOnfocus, marginRight: 24, cursor: 'pointer', display: 'flex', justifyContent: 'flex-end' },
|
|
67
|
+
// onClick={props.handleDeleteFilter}
|
|
68
|
+
onClick: () => setSelectFilterContent(currentValue => []), children: [jsx(Trash, { fill: FRSTTheme['colors'].linkOnfocus }), "\u00A0", props.textDeleteFilter] })] })] })
|
|
69
|
+
: null] }) }));
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { SessionFilters as default };
|