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,32 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const WrapperCard = styled.div `
|
|
4
|
+
width: 343px;
|
|
5
|
+
min-height: 136px;
|
|
6
|
+
background-color: ${({ theme }) => theme.colors.neutralsGrey4};
|
|
7
|
+
border: 1px solid ${({ theme }) => theme.colors.borderPrimary};
|
|
8
|
+
border-radius: 8px;
|
|
9
|
+
|
|
10
|
+
&:hover {
|
|
11
|
+
background-color: ${({ theme }) => theme.colors.shadeWhite};
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
const WrapperTitle = styled.div `
|
|
15
|
+
margin-top: 26px;
|
|
16
|
+
margin-left: 26px;
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
`;
|
|
20
|
+
const TitleCard = styled.p `
|
|
21
|
+
${({ theme }) => theme.fonts.textMessageComponentsBodyBold};
|
|
22
|
+
`;
|
|
23
|
+
const WrapperButton = styled.div `
|
|
24
|
+
margin-top: 26px;
|
|
25
|
+
margin-left: 26px;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
${({ theme }) => theme.fonts.textMessageComponentsBodyBold};
|
|
29
|
+
color: ${({ theme }) => theme.colors.linkOnfocus} !important;
|
|
30
|
+
`;
|
|
31
|
+
|
|
32
|
+
export { TitleCard, WrapperButton, WrapperCard, WrapperTitle };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import '../../shared/global.css.js';
|
|
3
|
+
import { ThemeProvider } from 'styled-components';
|
|
4
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
5
|
+
import { WrapperCard, WrapperTitle, TitleCard, WrapperButton } from './exclusiveClassStyles.js';
|
|
6
|
+
import { PeopleIcon, EditIcon } from '../../shared/icons.js';
|
|
7
|
+
import Button from '../buttons/index.js';
|
|
8
|
+
|
|
9
|
+
function ExclusiveClassCard({ titleClass, labelButton, className, handleClick }) {
|
|
10
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(WrapperCard, { children: [jsxs(WrapperTitle, { children: [jsx(PeopleIcon, {}), jsx(TitleCard, { style: { marginLeft: '14.67px' }, children: titleClass })] }), jsx(WrapperButton, { style: { display: 'flex', justifyContent: 'end', marginRight: '26px' }, children: jsx(Button, { label: labelButton, startIcon: jsx(EditIcon, {}), variant: "link", handleClick: handleClick }) })] }) }));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { ExclusiveClassCard as default };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Button = styled.div `
|
|
4
|
+
font-family: 'PT Sans';
|
|
5
|
+
font-style: normal;
|
|
6
|
+
font-weight: 700;
|
|
7
|
+
font-size: 16px;
|
|
8
|
+
width: fit-content;
|
|
9
|
+
color: ${({ theme, disabled }) => disabled ? theme.colors.borderPrimary : theme.colors.neutralsGrey2};
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
user-select:none;
|
|
12
|
+
gap: 9px;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
svg {
|
|
15
|
+
path {
|
|
16
|
+
stroke: ${({ theme, disabled }) => disabled ? theme.colors.borderPrimary : theme.colors.neutralsGrey2};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
color: ${({ theme, disabled }) => disabled ? theme.colors.borderPrimary : theme.colors.messageError1};
|
|
22
|
+
svg {
|
|
23
|
+
path {
|
|
24
|
+
stroke: ${({ theme, disabled }) => disabled ? theme.colors.borderPrimary : theme.colors.messageError1};
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
&:active {
|
|
29
|
+
color: ${({ theme, disabled }) => disabled ? theme.colors.borderPrimary : theme.colors.secondary5};
|
|
30
|
+
text-decoration: underline;
|
|
31
|
+
svg {
|
|
32
|
+
path {
|
|
33
|
+
stroke: ${({ theme, disabled }) => disabled ? theme.colors.borderPrimary : theme.colors.secondary5};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
`;
|
|
40
|
+
const Label = styled.div `
|
|
41
|
+
width: ${({ active }) => active ? '100%' : '0px'};
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
white-space: nowrap;
|
|
44
|
+
transition: width 0.5s ease-in-out;
|
|
45
|
+
`;
|
|
46
|
+
|
|
47
|
+
export { Button, Label };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import '../../shared/global.css.js';
|
|
4
|
+
import { ThemeProvider } from 'styled-components';
|
|
5
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
6
|
+
import { Button, Label } from './expandButtonStyle.js';
|
|
7
|
+
|
|
8
|
+
function ExpandButton({ label, disabled, onClick, styles, startIcon }) {
|
|
9
|
+
const [actionArea, setActionArea] = useState(false);
|
|
10
|
+
const [timeoutId, setTimeoutId] = useState(null);
|
|
11
|
+
return (jsx(ThemeProvider, { theme: { ...FRSTTheme }, children: jsxs(Button, { onClick: (e) => !disabled && onClick(e), disabled: disabled, style: { ...styles }, onMouseOut: () => {
|
|
12
|
+
clearTimeout(timeoutId); // Cancela o timeout anterior
|
|
13
|
+
const newTimeoutId = setTimeout(() => {
|
|
14
|
+
setActionArea(false);
|
|
15
|
+
}, 5000);
|
|
16
|
+
setTimeoutId(newTimeoutId); // Armazena o ID do novo timeout
|
|
17
|
+
}, onMouseOver: () => {
|
|
18
|
+
clearTimeout(timeoutId); // Cancela o timeout anterior
|
|
19
|
+
setActionArea(true);
|
|
20
|
+
}, children: [jsx("div", { style: { width: '20px' }, children: startIcon }), jsx(Label, { active: actionArea, children: label })] }) }));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { ExpandButton as default };
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Container = styled.div `
|
|
4
|
+
height: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
`;
|
|
9
|
+
styled.label `
|
|
10
|
+
font-family: 'Work Sans';
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
line-height: 21px;
|
|
15
|
+
|
|
16
|
+
margin-bottom: 16px;
|
|
17
|
+
|
|
18
|
+
color: ${({ theme }) => theme.colors.shadeBlack};
|
|
19
|
+
|
|
20
|
+
color: ${({ theme, isHover }) => isHover && theme.colors.linkOnfocus};
|
|
21
|
+
|
|
22
|
+
color: ${({ isOnFocus }) => isOnFocus && '#663366'}
|
|
23
|
+
`;
|
|
24
|
+
const ContainerIcon = styled.div `
|
|
25
|
+
z-index: 10;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
min-height: 20px;
|
|
28
|
+
min-width: 40px;
|
|
29
|
+
padding-left: 15px;
|
|
30
|
+
padding-right: 10px;
|
|
31
|
+
padding-top: 3px;
|
|
32
|
+
`;
|
|
33
|
+
const InputSearchWrapper = styled.div `
|
|
34
|
+
height: 48px;
|
|
35
|
+
background-color: ${({ isOnFocus }) => isOnFocus ? '#757575' : '#444'};
|
|
36
|
+
|
|
37
|
+
border-radius: 8px;
|
|
38
|
+
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
width: ${({ isMobile }) => isMobile ? '0px !important' : 'auto'};
|
|
43
|
+
border: ${({ isMobile }) => !isMobile ? '1px' : '0px'} solid ${({ isHover, theme }) => isHover ? theme.colors.shadeBlack : '#000'};
|
|
44
|
+
transition: width 1s ease-in-out;
|
|
45
|
+
`;
|
|
46
|
+
const InputText = styled.input `
|
|
47
|
+
margin-left:10px;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
height: 48px;
|
|
51
|
+
width: 100%;
|
|
52
|
+
border: none;
|
|
53
|
+
background: transparent;
|
|
54
|
+
|
|
55
|
+
font-family: 'PT Sans';
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: 400;
|
|
58
|
+
font-size: 14px;
|
|
59
|
+
line-height: 18px;
|
|
60
|
+
color: ${({ theme }) => theme.colors.shadeWhite};
|
|
61
|
+
|
|
62
|
+
&::placeholder {
|
|
63
|
+
font-family: 'PT Sans';
|
|
64
|
+
font-style: normal;
|
|
65
|
+
font-weight: 400;
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
line-height: 18px;
|
|
68
|
+
color: ${({ theme }) => theme.colors.shadeWhite};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[disabled] {
|
|
72
|
+
cursor: not-allowed;
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
75
|
+
const WrapperResults = styled.div `
|
|
76
|
+
position: absolute;
|
|
77
|
+
top: 48px;
|
|
78
|
+
display: ${({ isVisibleResults }) => isVisibleResults ? 'flex' : 'none'};
|
|
79
|
+
height: auto;
|
|
80
|
+
width: 100%;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
align-items: center;
|
|
83
|
+
border-radius: 8px;
|
|
84
|
+
background: ${({ theme }) => theme.colors.shadeWhite};
|
|
85
|
+
border: 1px solid #BDBDBD;
|
|
86
|
+
box-shadow: 0px 25px 18px -20px rgba(34, 34, 34, 0.2);
|
|
87
|
+
z-index: 10000;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
`;
|
|
90
|
+
const ItemResult = styled.div `
|
|
91
|
+
width: 100%;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
&:hover {
|
|
94
|
+
background: ${({ theme }) => theme.colors.neutralsGrey9};
|
|
95
|
+
}
|
|
96
|
+
`;
|
|
97
|
+
const TextItem = styled.span `
|
|
98
|
+
font-family: 'PT Sans';
|
|
99
|
+
font-style: normal;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
font-size: 16px;
|
|
102
|
+
line-height: 21px;
|
|
103
|
+
|
|
104
|
+
display: flex;
|
|
105
|
+
align-items: center;
|
|
106
|
+
gap: 8px;
|
|
107
|
+
color: #000000;
|
|
108
|
+
|
|
109
|
+
height: 42px;
|
|
110
|
+
|
|
111
|
+
padding-left: 16px;
|
|
112
|
+
margin-left: 5px;
|
|
113
|
+
margin-right: 5px;
|
|
114
|
+
border-bottom: 1px solid ${({ isLastItem, theme }) => isLastItem ? 'transparent' : theme.colors.neutralsGrey7};
|
|
115
|
+
|
|
116
|
+
`;
|
|
117
|
+
const ItemSeeAll = styled.div `
|
|
118
|
+
width: 100%;
|
|
119
|
+
display: flex;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
align-items: center;
|
|
122
|
+
text-align: center;
|
|
123
|
+
|
|
124
|
+
cursor: pointer;
|
|
125
|
+
|
|
126
|
+
font-family: 'PT Sans';
|
|
127
|
+
font-style: normal;
|
|
128
|
+
font-weight: 700;
|
|
129
|
+
font-size: 16px;
|
|
130
|
+
line-height: 21px;
|
|
131
|
+
|
|
132
|
+
padding: 16px;
|
|
133
|
+
color: ${({ theme }) => theme.colors.linkOnfocus};
|
|
134
|
+
&:hover {
|
|
135
|
+
background: ${({ theme }) => theme.colors.neutralsGrey9};
|
|
136
|
+
}
|
|
137
|
+
`;
|
|
138
|
+
|
|
139
|
+
export { Container, ContainerIcon, InputSearchWrapper, InputText, ItemResult, ItemSeeAll, TextItem, WrapperResults };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { jsx, jsxs } 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 { Container, InputSearchWrapper, ContainerIcon, InputText, WrapperResults, ItemResult, TextItem, ItemSeeAll } from './fieldSearchStyle.js';
|
|
7
|
+
import { SearchIcon, Clock } from '../../shared/icons.js';
|
|
8
|
+
|
|
9
|
+
function FieldSearch({ variant, placeholder, onChange, listResults, hasOptionSeeAll, value, seeAll, style, loading, textLoading, enableAnimationField, isMobileVersion, setFieldSearchIsOpen, fieldSearchIsOpen, onFilter, historicResults, labeledResultList, isLabeledResult }) {
|
|
10
|
+
const [actionAreaInput, setActionAreaInput] = useState(false);
|
|
11
|
+
const [inputOnFocus, setInputOnFocus] = useState(false);
|
|
12
|
+
const [isMobile, setIsMobile] = useState(isMobileVersion);
|
|
13
|
+
const [openSearchFieldMobile, setOpenSearchFieldMobile] = useState(fieldSearchIsOpen);
|
|
14
|
+
const [isOpenDrop, setIsOpenDrop] = useState(false);
|
|
15
|
+
const [ValueSearch, setValueSearch] = useState('');
|
|
16
|
+
const [Loading, setLoading] = useState(loading);
|
|
17
|
+
const [resultList, setResultList] = useState([]);
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
if (listResults && listResults.length > 0) {
|
|
20
|
+
setResultList(listResults);
|
|
21
|
+
setIsOpenDrop(true);
|
|
22
|
+
}
|
|
23
|
+
if (labeledResultList && labeledResultList.length > 0) {
|
|
24
|
+
setResultList(labeledResultList);
|
|
25
|
+
setIsOpenDrop(true);
|
|
26
|
+
}
|
|
27
|
+
}, [listResults, labeledResultList]);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
setLoading(loading);
|
|
30
|
+
}, [loading]);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
setFieldSearchIsOpen(openSearchFieldMobile);
|
|
33
|
+
}, []);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (fieldSearchIsOpen !== openSearchFieldMobile)
|
|
36
|
+
setOpenSearchFieldMobile(fieldSearchIsOpen);
|
|
37
|
+
}, [fieldSearchIsOpen]);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
setIsOpenDrop(false);
|
|
40
|
+
setFieldSearchIsOpen(openSearchFieldMobile);
|
|
41
|
+
}, [openSearchFieldMobile]);
|
|
42
|
+
// Handle Open list results
|
|
43
|
+
const handleFocusUp = () => {
|
|
44
|
+
setInputOnFocus(true);
|
|
45
|
+
setIsOpenDrop(true);
|
|
46
|
+
if (historicResults) {
|
|
47
|
+
setIsOpenDrop(historicResults.length > 0);
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
setIsOpenDrop(ValueSearch && ValueSearch.length > 0 && resultList && resultList.length > 0);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const handleFocusDown = () => {
|
|
54
|
+
setIsOpenDrop(actionAreaInput);
|
|
55
|
+
};
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
const delayDebounceFn = setTimeout(() => {
|
|
58
|
+
onFilter(ValueSearch);
|
|
59
|
+
setIsOpenDrop(ValueSearch && ValueSearch.length > 0 && resultList && resultList.length > 0);
|
|
60
|
+
}, 500);
|
|
61
|
+
return () => clearTimeout(delayDebounceFn);
|
|
62
|
+
}, [ValueSearch]);
|
|
63
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsx("div", { style: { position: 'relative' }, id: 'bar-search-global-menu', children: variant == 'LXP' ?
|
|
64
|
+
jsxs(Container, { onMouseOver: () => setActionAreaInput(true), onMouseOut: () => setActionAreaInput(false), onFocus: () => handleFocusUp(), onBlur: () => handleFocusDown(), children: [jsxs(InputSearchWrapper, { isHover: actionAreaInput, isOnFocus: inputOnFocus, isMobile: !openSearchFieldMobile, style: { ...style }, children: [jsx(ContainerIcon, { onClick: () => isMobile && setOpenSearchFieldMobile(!openSearchFieldMobile), children: jsx(SearchIcon, { fill: '#fff' }) }), jsx(InputText, { placeholder: placeholder, onChange: (e) => {
|
|
65
|
+
setIsOpenDrop(false);
|
|
66
|
+
setValueSearch(e.target.value);
|
|
67
|
+
}, value: ValueSearch })] }), Loading &&
|
|
68
|
+
jsx(WrapperResults, { style: { ...style, marginTop: 8 }, isVisibleResults: true, children: jsx(ItemResult, { style: { cursor: 'default' }, children: jsx(TextItem, { isLastItem: true, style: { color: '#999' }, children: textLoading ? textLoading : 'Carregando...' }) }) }), labeledResultList && labeledResultList.length > 0 && inputOnFocus && isLabeledResult &&
|
|
69
|
+
jsxs(WrapperResults, { style: { ...style, marginTop: 8 }, isVisibleResults: isOpenDrop, onMouseOver: () => setActionAreaInput(true), onMouseOut: () => setActionAreaInput(false), children: [ValueSearch.length === 0 && inputOnFocus && historicResults && historicResults.length > 0 &&
|
|
70
|
+
historicResults.map(item => {
|
|
71
|
+
return jsx(ItemResult, { onClick: () => {
|
|
72
|
+
setIsOpenDrop(false);
|
|
73
|
+
return item.onClick(item.id);
|
|
74
|
+
}, children: jsxs(TextItem, { isLastItem: false , children: [jsx(Clock, {}), " ", item.label] }) }, item.id);
|
|
75
|
+
}), ValueSearch.length > 0 &&
|
|
76
|
+
resultList.map((item, index) => (jsxs("div", { style: { width: '100%', marginTop: 16 }, children: [jsx("span", { style: { fontFamily: 'PT Sans', fontSize: 14, fontWeight: 400, color: '#757575', paddingLeft: 16, marginLeft: 5, marginRight: 5 }, children: item.label }), item.listResult.map(item => (jsx(ItemResult, { onClick: () => {
|
|
77
|
+
setIsOpenDrop(false);
|
|
78
|
+
return item.onClick(item.id);
|
|
79
|
+
}, children: jsx(TextItem, { isLastItem: false , children: item.label }) }, item.id)))] }, index))), hasOptionSeeAll && labeledResultList.length > 0 && ValueSearch.length > 0 &&
|
|
80
|
+
jsx(ItemSeeAll, { onClick: (e) => {
|
|
81
|
+
setIsOpenDrop(false);
|
|
82
|
+
return seeAll.onClick(e);
|
|
83
|
+
}, children: seeAll.label })] }), listResults && listResults.length > 0 && inputOnFocus && !isLabeledResult &&
|
|
84
|
+
jsxs(WrapperResults, { style: { ...style, marginTop: 8 }, isVisibleResults: isOpenDrop, onMouseOver: () => setActionAreaInput(true), onMouseOut: () => setActionAreaInput(false), children: [ValueSearch.length === 0 && inputOnFocus && historicResults && historicResults.length > 0 &&
|
|
85
|
+
historicResults.map(item => {
|
|
86
|
+
return jsx(ItemResult, { onClick: () => {
|
|
87
|
+
setIsOpenDrop(false);
|
|
88
|
+
return item.onClick(item.id);
|
|
89
|
+
}, children: jsxs(TextItem, { isLastItem: false , children: [jsx(Clock, {}), " ", item.label] }) }, item.id);
|
|
90
|
+
}), ValueSearch.length > 0 &&
|
|
91
|
+
resultList.map(item => {
|
|
92
|
+
return jsx(ItemResult, { onClick: () => {
|
|
93
|
+
setIsOpenDrop(false);
|
|
94
|
+
return item.onClick(item.id);
|
|
95
|
+
}, children: jsxs(TextItem, { isLastItem: false , children: [" ", item.label] }) }, item.id);
|
|
96
|
+
}), hasOptionSeeAll && listResults.length > 0 && ValueSearch.length > 0 &&
|
|
97
|
+
jsx(ItemSeeAll, { onClick: (e) => {
|
|
98
|
+
setIsOpenDrop(false);
|
|
99
|
+
return seeAll.onClick(e);
|
|
100
|
+
}, children: seeAll.label })] })] })
|
|
101
|
+
:
|
|
102
|
+
jsx(Container, { onMouseOver: () => setActionAreaInput(true), onMouseOut: () => setActionAreaInput(false), onFocus: () => setInputOnFocus(true), onBlur: () => setInputOnFocus(false), children: jsxs(InputSearchWrapper, { isHover: actionAreaInput, isOnFocus: inputOnFocus, style: { ...style }, children: [jsxs(ContainerIcon, { children: [" ", jsx(SearchIcon, { fill: '#fff' }), " "] }), jsx(InputText, { placeholder: placeholder, onChange: onChange, value: value })] }) }) }) }));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export { FieldSearch as default };
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useEffect, useLayoutEffect } from 'react';
|
|
3
|
+
import '../../shared/global.css.js';
|
|
4
|
+
import { ThemeProvider } from 'styled-components';
|
|
5
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
6
|
+
import { randID } from './filterAccordionCheckbox.utils.js';
|
|
7
|
+
import AccordionTabs from '../accordion-tabs/index.js';
|
|
8
|
+
import Checkbox from '../form-elements/checkbox/index.js';
|
|
9
|
+
|
|
10
|
+
function FilterAccordionCheckbox({ generalTitle, object, onSelected }) {
|
|
11
|
+
const [activeTab, setActiveTab] = useState('-1');
|
|
12
|
+
const [contentTabActiveShow, setContentTabActiveShow] = useState(jsx("div", {}));
|
|
13
|
+
const [tabs, setTabs] = useState([]);
|
|
14
|
+
useState([]);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
let tabsForAccordion = object.map((element) => {
|
|
17
|
+
return {
|
|
18
|
+
id: randID(),
|
|
19
|
+
description: element.description,
|
|
20
|
+
title: element.category,
|
|
21
|
+
totalCounter: 0,
|
|
22
|
+
group: includeStatusCheck(element.group ? element.group : [])
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
setTabs(tabsForAccordion);
|
|
26
|
+
}, []);
|
|
27
|
+
useLayoutEffect(() => {
|
|
28
|
+
renderNewContent(tabs);
|
|
29
|
+
}, [activeTab, tabs]);
|
|
30
|
+
const handleActiveTab = (newActive) => {
|
|
31
|
+
if (newActive == activeTab)
|
|
32
|
+
setActiveTab("-1");
|
|
33
|
+
else
|
|
34
|
+
setActiveTab(newActive);
|
|
35
|
+
};
|
|
36
|
+
function handleCheck(idCheck) {
|
|
37
|
+
let copyObjectTab = tabs;
|
|
38
|
+
for (let indexTab in tabs) {
|
|
39
|
+
for (let indexChecks in (tabs[indexTab].group)) {
|
|
40
|
+
if (tabs[indexTab].group[indexChecks].id == idCheck) {
|
|
41
|
+
copyObjectTab[indexTab].group[indexChecks].isChecked = !(copyObjectTab[indexTab].group[indexChecks].isChecked);
|
|
42
|
+
// Handle counter in tab title
|
|
43
|
+
if (copyObjectTab[indexTab].group[indexChecks].isChecked)
|
|
44
|
+
copyObjectTab[indexTab].totalCounter += 1;
|
|
45
|
+
else
|
|
46
|
+
copyObjectTab[indexTab].totalCounter -= 1;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
setTabs(copyObjectTab);
|
|
51
|
+
renderNewContent(copyObjectTab);
|
|
52
|
+
onSelected(buildReturnSelecteds(copyObjectTab));
|
|
53
|
+
}
|
|
54
|
+
const handleClean = () => {
|
|
55
|
+
let copyObjectTab = tabs;
|
|
56
|
+
for (let indexTab in tabs) {
|
|
57
|
+
for (let indexChecks in (tabs[indexTab].group)) {
|
|
58
|
+
copyObjectTab[indexTab].group[indexChecks].isChecked = false;
|
|
59
|
+
copyObjectTab[indexTab].totalCounter = 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
setTabs(copyObjectTab);
|
|
63
|
+
renderNewContent(copyObjectTab);
|
|
64
|
+
onSelected(buildReturnSelecteds(copyObjectTab));
|
|
65
|
+
};
|
|
66
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsx(AccordionTabs, { hasCounterTab: true, titleAccordion: generalTitle, titleTabs: tabs, activeTabID: activeTab, handleActiveTab: (e) => handleActiveTab(e), hasCleanButton: true, textCleanButton: "Excluir filtros", handleActionClean: () => handleClean(), typeAccordion: "horizontal", typeButtonTab: "transparent", children: contentTabActiveShow }) }));
|
|
67
|
+
function includeStatusCheck(group) {
|
|
68
|
+
let newGroupWithStatusCheck = [];
|
|
69
|
+
for (let element of group) {
|
|
70
|
+
element.isChecked = false;
|
|
71
|
+
newGroupWithStatusCheck.push(element);
|
|
72
|
+
}
|
|
73
|
+
return newGroupWithStatusCheck;
|
|
74
|
+
}
|
|
75
|
+
function buildReturnSelecteds(copyObjectTab) {
|
|
76
|
+
let resultSelected = [];
|
|
77
|
+
let counter = 0;
|
|
78
|
+
copyObjectTab.forEach(tab => {
|
|
79
|
+
resultSelected[counter] = {
|
|
80
|
+
description: tab.title,
|
|
81
|
+
selected: []
|
|
82
|
+
};
|
|
83
|
+
if (tab.totalCounter > 0) {
|
|
84
|
+
tab.group.map((item) => {
|
|
85
|
+
if (item.isChecked)
|
|
86
|
+
resultSelected[counter].selected.push(item.id);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
counter++;
|
|
90
|
+
});
|
|
91
|
+
console.log(resultSelected);
|
|
92
|
+
return resultSelected;
|
|
93
|
+
}
|
|
94
|
+
function renderNewContent(copyObjectTab) {
|
|
95
|
+
let activeTabContent = copyObjectTab.filter((item) => item.id == activeTab);
|
|
96
|
+
{
|
|
97
|
+
activeTabContent &&
|
|
98
|
+
activeTabContent[0] &&
|
|
99
|
+
activeTabContent[0].group &&
|
|
100
|
+
setContentTabActiveShow(buildCheckbox(activeTabContent[0].group));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function buildCheckbox(groupActive) {
|
|
104
|
+
let setGroupQuantity = 3;
|
|
105
|
+
if (groupActive.length > 12)
|
|
106
|
+
setGroupQuantity = 5;
|
|
107
|
+
let splitGroup = splitGroupInLots(groupActive, setGroupQuantity);
|
|
108
|
+
return (jsx("div", { style: { display: 'flex', flexDirection: 'row' }, children: splitGroup.map((container) => {
|
|
109
|
+
return jsx("div", { style: { display: 'flex', flexDirection: 'column', marginRight: '24px' }, children: container.map((item) => {
|
|
110
|
+
let myID = item.id;
|
|
111
|
+
let isCheck = item.isChecked;
|
|
112
|
+
return jsx(Checkbox, { label: item.description, isChecked: isCheck, handleCheck: () => handleCheck(myID) }, myID);
|
|
113
|
+
}) }, randID());
|
|
114
|
+
}) }));
|
|
115
|
+
}
|
|
116
|
+
function splitGroupInLots(group, qtdPerGroup) {
|
|
117
|
+
let newGroup = [];
|
|
118
|
+
let totalItems = group.length;
|
|
119
|
+
let totalColumns = Math.ceil(totalItems / qtdPerGroup);
|
|
120
|
+
let counterLinear = 0;
|
|
121
|
+
for (let i = 0; i < totalColumns; i++) {
|
|
122
|
+
if (!newGroup[i])
|
|
123
|
+
newGroup[i] = [];
|
|
124
|
+
for (let j = 0; j < qtdPerGroup; j++) {
|
|
125
|
+
if (group[counterLinear]) {
|
|
126
|
+
newGroup[i][j] = group[counterLinear];
|
|
127
|
+
counterLinear++;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return newGroup;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export { FilterAccordionCheckbox as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useEffect, useMemo } from 'react';
|
|
3
|
+
import { MultiSelect } from 'primereact/multiselect';
|
|
4
|
+
import { containerFiltro, countSelect, textCountSelectNumber, FiltroPrimeReact, searchAndButton } from './styles/MultiSelectDemo.js';
|
|
5
|
+
import './styles/theme.css.js';
|
|
6
|
+
import './styles/primereact.css.js';
|
|
7
|
+
import './styles/primeflex.css.js';
|
|
8
|
+
import Button from '../buttons/index.js';
|
|
9
|
+
import SearchField from '../search-field/index.js';
|
|
10
|
+
|
|
11
|
+
function FiltroGaleriaDesafios({ placeholderSelect, handleValueSelect, optionLabel, listItems, isDisabled, maxListItems, textButtonClear, textBusca, valueSelect = [] }) {
|
|
12
|
+
/// TODO: Não está implementado Lazyloading nesse componente.
|
|
13
|
+
// const [lazyItems, setLazyItems] = useState([])
|
|
14
|
+
// const [lazyLoading, setLazyLoading] = useState(false)
|
|
15
|
+
// useEffect(() => {
|
|
16
|
+
// setLazyItems(Array.from({ length: 100000 }))
|
|
17
|
+
// setLazyLoading(false)
|
|
18
|
+
// }, [])
|
|
19
|
+
///
|
|
20
|
+
const [selectedListItems, setSelectedListItems] = useState([]);
|
|
21
|
+
const [textFilter, setTextFilter] = useState('');
|
|
22
|
+
const [listItemsFilter, setListItemsFilter] = useState(listItems);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
if (valueSelect.length > 0) {
|
|
25
|
+
setSelectedListItems(valueSelect);
|
|
26
|
+
}
|
|
27
|
+
}, [valueSelect]);
|
|
28
|
+
useMemo(() => {
|
|
29
|
+
handleValueSelect(selectedListItems);
|
|
30
|
+
}, [selectedListItems]);
|
|
31
|
+
const listFilterSearch = useMemo(() => {
|
|
32
|
+
return listItemsFilter.filter((resp) => resp.name.toLowerCase().includes(textFilter));
|
|
33
|
+
}, [textFilter]);
|
|
34
|
+
const handleTemplateHeader = () => {
|
|
35
|
+
const selectedItems = selectedListItems;
|
|
36
|
+
const lengthList = selectedItems ? selectedItems.length : 0;
|
|
37
|
+
return listItems.length >= maxListItems ? (jsxs(searchAndButton, { children: [jsx("div", { children: jsx(SearchField, { placeholder: textBusca, className: null, handleClickButton: null, isButton: true, hasSearchIcon: true, onChange: (e) => {
|
|
38
|
+
setTextFilter(e.target.value);
|
|
39
|
+
} }) }), lengthList >= 2 ? (jsx(Button, { style: { marginTop: "1rem" }, variant: 'link', label: textButtonClear, disabled: false, handleClick: () => {
|
|
40
|
+
setSelectedListItems([]);
|
|
41
|
+
} })) : (jsx("div", {}))] })) : lengthList >= 1 ? (jsx(searchAndButton, { children: jsx(Button, { variant: 'link', label: textButtonClear, disabled: false, handleClick: () => {
|
|
42
|
+
setSelectedListItems([]);
|
|
43
|
+
} }) })) : (jsx("div", {}));
|
|
44
|
+
};
|
|
45
|
+
const handleDropdownIcon = () => {
|
|
46
|
+
return jsx("i", { className: "pi pi-chevron-down", style: { color: '#f26818' } });
|
|
47
|
+
};
|
|
48
|
+
const handleRemoveIcon = () => {
|
|
49
|
+
return jsx("i", { className: "pi pi-spin pi-spinner", style: { color: 'red' } });
|
|
50
|
+
};
|
|
51
|
+
const selectedItems = selectedListItems;
|
|
52
|
+
const length = selectedItems ? selectedItems.length : 0;
|
|
53
|
+
return (jsx(Fragment, { children: jsxs(containerFiltro, { children: [length >= 1 && (jsx(countSelect, { children: jsx(textCountSelectNumber, { children: length }) })), jsx(FiltroPrimeReact, { children: jsx(MultiSelect, { appendTo: document ? document?.body : null, value: selectedListItems, options: listFilterSearch, onChange: (e) => setSelectedListItems(e.value), optionLabel: optionLabel, placeholder: placeholderSelect ? placeholderSelect : 'Por favor escolha', className: "multiselect-custom",
|
|
54
|
+
// panelStyle={selectItemsCss}
|
|
55
|
+
// selectedItemTemplate={selectedCountriesTemplate()}
|
|
56
|
+
selectedItemsLabel: placeholderSelect, disabled: isDisabled, maxSelectedLabels: 0, filter: false, showSelectAll: false, panelHeaderTemplate: handleTemplateHeader(), removeIcon: handleRemoveIcon, dropdownIcon: handleDropdownIcon }) })] }) }));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { FiltroGaleriaDesafios as default };
|