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,181 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useRef, useEffect } from 'react';
|
|
3
|
+
import '../../shared/global.css.js';
|
|
4
|
+
import { ThemeProvider } from 'styled-components';
|
|
5
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
6
|
+
import { MenuContainer, MenuInner, HamburgerButton, WrapperLogo, WrapperMenu, WrapperRightInfo, WrapperIconNotification, WrapperIconNotificationText, WrapperIconNotificationMobile, Navigation, TextNotification, Help, TolltipTopbar, LanguageSelectorWrapper, LanguageTrigger, LanguageDropdown, LanguageOption, LanguageOptionDot, SubMenuContainer, MenuMobile as MenuMobile$1, ItemMenuMobile, footerMenuMobile, frstSocials, itemFrstSocials } from './globalMenuStyles.js';
|
|
7
|
+
import { LanguageIcon } from '../../../public/customIcons/LanguageIcon.js';
|
|
8
|
+
import { IconHamburgerMenu, FRSTLogo, IconNotification, HasNotificationIcon, HandWave, HelpIcon, BackArrow, ExitArrow, SiteIcon, LinkedinIcon, InstagramIcon, YoutubeIcon, SpotifyIcon, PodCastIcon } from '../../shared/icons.js';
|
|
9
|
+
import FieldSearch from '../field-search-dropdown/index.js';
|
|
10
|
+
import ItemGlobalMenu from '../item-menu-global/index.js';
|
|
11
|
+
import DropdownProfileMenu from '../dropdown-profile-menu/index.js';
|
|
12
|
+
import NotificationPopOver from '../FI/notificationPopOver/index.js';
|
|
13
|
+
|
|
14
|
+
function GlobalMenu({ variant, menu, customMenu, user, search, notification, languages, languageSelected, onChangeLanguage, style, textNotification, onClickSite, onClickLinkedin, onClickInstagram, onClickYoutube, onClickSpotify, onClickPodCast, onClickProfileMenuText, onClickExit, profileMenuText, showSearchField, marginTopSubMenu, hiddenProfileMenu, onClickLogo, onClickMenuHamburger, showHelp, onClickHelp, onClickNavigation, showProfile = true, InputField, hideNotification, showNavigation, FrstIconFormatted }) {
|
|
15
|
+
const [valueSearch, setValueSearch] = useState(search.value);
|
|
16
|
+
const [valueListSearch, setValueListSearch] = useState(search.listEntry);
|
|
17
|
+
const [loadingSearch, setLoadingSearch] = useState(search.loading);
|
|
18
|
+
const [isCompact, setIsCompact] = useState(false);
|
|
19
|
+
const [isVisibleMenuMobile, setIsVisibleMenuMobile] = useState(false);
|
|
20
|
+
const [openNotification, setOpenNotification] = useState(false);
|
|
21
|
+
const [openNotificationMobile, setOpenNotificationMobile] = useState(false);
|
|
22
|
+
const [anchorNotification, setAnchorNotification] = useState(null);
|
|
23
|
+
const [onAreaPopOver, setOnAreaPopOver] = useState(false);
|
|
24
|
+
const [SubMenu, setSubMenu] = useState([]);
|
|
25
|
+
const [SelectedItem, setSelectedItem] = useState();
|
|
26
|
+
const [hasNewNotification, setHasNewNotification] = useState(false);
|
|
27
|
+
const [updatedNotificationList, setUpdatedNotificationList] = useState([]);
|
|
28
|
+
const [showTooltipHelp, setShowTooltipHelp] = useState(false);
|
|
29
|
+
const [showLanguageDropdown, setShowLanguageDropdown] = useState(false);
|
|
30
|
+
const languageDropdownRef = useRef(null);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
setHasNewNotification(!!notification?.hasNewNotification);
|
|
33
|
+
}, [notification, notification?.hasNewNotification]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
setUpdatedNotificationList(notification?.notificationList);
|
|
36
|
+
}, [notification, notification?.notificationList]);
|
|
37
|
+
useEffect(() => {
|
|
38
|
+
setValueListSearch(search.listEntry);
|
|
39
|
+
}, [search.listEntry]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
setLoadingSearch(search.isloading);
|
|
42
|
+
}, [search.loading]);
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
function updateSize() {
|
|
45
|
+
setIsCompact(window.innerWidth < 1000);
|
|
46
|
+
setIsVisibleMenuMobile(false);
|
|
47
|
+
}
|
|
48
|
+
window.addEventListener('resize', updateSize);
|
|
49
|
+
updateSize();
|
|
50
|
+
return () => window.removeEventListener('resize', updateSize);
|
|
51
|
+
}, []);
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
setValueSearch(search.value);
|
|
54
|
+
setValueListSearch(search.listEntry);
|
|
55
|
+
setLoadingSearch(search.loading);
|
|
56
|
+
}, [search]);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
const handleClickOutside = (event) => {
|
|
59
|
+
if (languageDropdownRef.current && !languageDropdownRef.current.contains(event.target)) {
|
|
60
|
+
setShowLanguageDropdown(false);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
document.addEventListener('mousedown', handleClickOutside);
|
|
64
|
+
return () => document.removeEventListener('mousedown', handleClickOutside);
|
|
65
|
+
}, []);
|
|
66
|
+
const languageLabels = {
|
|
67
|
+
'pt-BR': 'Português (PT-BR)',
|
|
68
|
+
'pt-PT': 'Português (PT-PT)',
|
|
69
|
+
'en-US': 'Inglês (EN)',
|
|
70
|
+
'es': 'Espanhol (ES)'
|
|
71
|
+
};
|
|
72
|
+
const languageShortLabels = {
|
|
73
|
+
'pt-BR': 'PT-BR',
|
|
74
|
+
'pt-PT': 'PT-PT',
|
|
75
|
+
'en-US': 'EN',
|
|
76
|
+
'es': 'ES'
|
|
77
|
+
};
|
|
78
|
+
const handleChangeValueSearch = (value) => {
|
|
79
|
+
setValueSearch(value);
|
|
80
|
+
search.onChange(value);
|
|
81
|
+
};
|
|
82
|
+
const handleCloseNotification = () => {
|
|
83
|
+
setOpenNotification(!openNotification);
|
|
84
|
+
setOpenNotificationMobile(!openNotificationMobile);
|
|
85
|
+
};
|
|
86
|
+
const handleOpenNotification = (event) => {
|
|
87
|
+
setOpenNotification(!openNotification);
|
|
88
|
+
setOpenNotificationMobile(!openNotificationMobile);
|
|
89
|
+
setAnchorNotification(event.currentTarget);
|
|
90
|
+
notification?.handleClickOpenPopOverNotification();
|
|
91
|
+
};
|
|
92
|
+
const onClickNotification = (event) => {
|
|
93
|
+
if (!onAreaPopOver) {
|
|
94
|
+
setOpenNotification(!openNotification);
|
|
95
|
+
setOpenNotificationMobile(!openNotificationMobile);
|
|
96
|
+
setAnchorNotification(event.currentTarget);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
const handleClickItem = (item) => {
|
|
100
|
+
item.onClick();
|
|
101
|
+
setSelectedItem(item.id);
|
|
102
|
+
if (item.subMenu)
|
|
103
|
+
setSubMenu(item.subMenu);
|
|
104
|
+
else
|
|
105
|
+
setSubMenu([]);
|
|
106
|
+
};
|
|
107
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(Fragment, { children: [jsx(MenuMobile, { onClickExit: onClickExit, languageSelected: languageSelected, variant: variant || 'default', items: menu, isVisible: isVisibleMenuMobile, setVisible: (e) => setIsVisibleMenuMobile(e), onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsxs("div", { style: { width: '100%', display: 'flex', flexDirection: 'column' }, children: [jsx(MenuContainer, { "$variant": "default", style: style, children: jsxs(MenuInner, { children: [isCompact ? (jsx(HamburgerButton, { style: { marginLeft: 120 }, onClick: () => onClickMenuHamburger(), children: jsx(IconHamburgerMenu, {}) })) : (jsx(WrapperLogo, { onClick: () => onClickLogo(), children: FrstIconFormatted ? FrstIconFormatted : jsx(FRSTLogo, { height: "28", fill: FRSTTheme['colors'].primary1 }) })), jsx(WrapperMenu, { style: {
|
|
108
|
+
height: '100%',
|
|
109
|
+
alignItems: 'center',
|
|
110
|
+
justifyContent: InputField ? 'center' : undefined
|
|
111
|
+
}, children: showSearchField && (InputField ? (jsx(InputField, {})) : (jsx(FieldSearch, { variant: "LXP", value: valueSearch, onFilter: search.onFilter, onChange: (e) => handleChangeValueSearch(e.target.value), placeholder: search.label, loading: loadingSearch, textLoading: search.textLoading, fieldSearchIsOpen: true, setFieldSearchIsOpen: () => { }, isLabeledResult: search.isLabeledResult, listResults: search.isLabeledResult ? null : valueListSearch, labeledResultList: search.isLabeledResult ? valueListSearch : null, historicResults: search.historicResults, isMobileVersion: isCompact, hasOptionSeeAll: search.hasOptionSeeAll, seeAll: search.seeAll, style: { width: isCompact ? '180px' : '332px' } }))) }), jsxs(WrapperRightInfo, { children: [!isCompact && notification && !hideNotification && (jsxs(Fragment, { children: [customMenu?.map((item, index) => (jsx(ItemGlobalMenu, { label: item.label, variant: "LXP", type: "menu", pressed: item.id === SelectedItem || item.active, icon: item.iconBegin, handleOnClick: () => handleClickItem(item), customMenu: customMenu, style: {
|
|
112
|
+
paddingRight: '10px',
|
|
113
|
+
paddingLeft: '10px',
|
|
114
|
+
height: '100%',
|
|
115
|
+
flexDirection: 'inherit'
|
|
116
|
+
} }, item.id ? item.id : index))), jsxs(WrapperIconNotification, { onClick: onClickNotification, children: [jsxs("span", { style: { display: 'flex', alignItems: 'center' }, onClick: handleOpenNotification, children: [jsx(IconNotification, { fill: FRSTTheme['colors'].shadeWhite }), hasNewNotification ? (jsx("div", { style: { position: 'relative', bottom: '5px', right: '10px' }, children: jsx(HasNotificationIcon, {}) })) : null, jsx(WrapperIconNotificationText, { children: textNotification })] }), jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotification, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: false, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading })] })] })), isCompact && notification && !hideNotification && (jsx(WrapperIconNotificationMobile, { onClick: onClickNotification, children: jsxs("span", { style: {
|
|
117
|
+
display: 'inline-flex',
|
|
118
|
+
justifyContent: 'flex-start',
|
|
119
|
+
alignItems: 'center'
|
|
120
|
+
}, children: [jsx(IconNotification, { fill: FRSTTheme['colors'].shadeWhite }), hasNewNotification ? (jsx("div", { style: { marginLeft: '-12px' }, children: jsx(HasNotificationIcon, {}) })) : null] }) })), jsx(DropdownProfileMenu, { variant: "LXP", user: user, profileMenuText: profileMenuText, handleProfileMenuClick: onClickProfileMenuText, menuItems: user && user.menuItems, isMobileVersion: isCompact, hiddenProfileMenu: hiddenProfileMenu, showProfile: showProfile, style: {
|
|
121
|
+
marginLeft: isCompact ? '0px' : '5px',
|
|
122
|
+
marginRight: isCompact ? '0px' : '5px'
|
|
123
|
+
} }), showNavigation && (jsxs(Navigation, { onClick: onClickNavigation, children: [jsx(HandWave, {}), jsx(TextNotification, { children: "Ajuda" })] })), showHelp && (jsxs(Help, { onClick: onClickHelp, onMouseEnter: () => setShowTooltipHelp(true), onMouseLeave: () => setShowTooltipHelp(false), children: [jsx(HelpIcon, {}), !isCompact && jsx(TextNotification, { children: "Suporte" })] })), showTooltipHelp && (jsx("div", { id: "cardAjuda", style: { position: 'relative' }, children: jsx(TolltipTopbar, { children: "Clique aqui para tirar suas d\u00FAvidas com o nosso suporte." }) })), languages && languages.length > 0 && (jsxs(LanguageSelectorWrapper, { ref: languageDropdownRef, children: [jsxs(LanguageTrigger, { onClick: () => setShowLanguageDropdown((prev) => !prev), children: [jsx(LanguageIcon, { fill: "#fff", width: "20", height: "20" }), !isCompact && (jsx("span", { children: languageShortLabels[languageSelected] || languageSelected }))] }), jsx(LanguageDropdown, { "$isOpen": showLanguageDropdown, children: languages.map((lang) => (jsxs(LanguageOption, { "$isSelected": lang === languageSelected, onClick: () => {
|
|
124
|
+
onChangeLanguage && onChangeLanguage(lang);
|
|
125
|
+
setShowLanguageDropdown(false);
|
|
126
|
+
}, children: [jsx("span", { children: languageLabels[lang] || lang }), jsx(LanguageOptionDot, { "$isSelected": lang === languageSelected })] }, lang))) })] }))] })] }) }), SubMenu && SubMenu.length > 0 && (jsx(SubMenuContainer, { "$variant": "default", "$marginTop": marginTopSubMenu, style: style, children: jsx(MenuInner, { children: SubMenu.map((item, index) => (jsx(ItemGlobalMenu, { label: item.label, variant: "LXP", type: "submenu", handleOnClick: () => item.onClick('tes'), style: { paddingRight: '10px', paddingLeft: '10px' } }, item.id ? item.id : index))) }) }))] }), isCompact && openNotificationMobile && notification && (jsx(NotificationPopOver, { handleClickMarkRead: notification.handleClickMarkRead, isOpen: openNotificationMobile, anchor: anchorNotification, textEmptyState: notification.textEmptyState, notificationList: updatedNotificationList, textMarkAllAsRead: notification.textMarkAllAsRead, textNotification: notification.textNotification, isMobile: true, setOnAreaPopOver: (e) => setOnAreaPopOver(e), textBack: notification.textBack, handleClickBack: () => handleCloseNotification(), textDeleteAll: notification.textDeleteAll, handleClickDeleteAll: notification.handleClickDeleteAll, isLoading: notification?.isLoading }))] }) }));
|
|
127
|
+
}
|
|
128
|
+
function MenuMobile({ items, isVisible, setVisible, variant, languageSelected, onClickExit, onClickSite, onClickLinkedin, onClickInstagram, onClickYoutube, onClickSpotify, onClickPodCast, customMenu }) {
|
|
129
|
+
const [optionsSubMenu, setOptionsSubmenu] = useState({});
|
|
130
|
+
const [subMenuIsVisible, setSubMenuIsVisible] = useState(false);
|
|
131
|
+
const newOptionsSubMenu = (items) => {
|
|
132
|
+
setOptionsSubmenu(items);
|
|
133
|
+
setTimeout(() => setSubMenuIsVisible(true), 200);
|
|
134
|
+
};
|
|
135
|
+
return (jsxs(Fragment, { children: [jsx(SubMenuMobile, { onClickExit: onClickExit, items: optionsSubMenu, isVisible: subMenuIsVisible, setVisible: setSubMenuIsVisible, variant: variant, languageSelected: languageSelected, onClickSite: onClickSite, onClickLinkedin: onClickLinkedin, onClickInstagram: onClickInstagram, onClickYoutube: onClickYoutube, onClickSpotify: onClickSpotify, onClickPodCast: onClickPodCast, customMenu: customMenu }), jsx(MenuMobile$1, { "$isVisible": isVisible, children: variant === 'LXP' || variant === 'custom' ? (jsxs(Fragment, { children: [jsxs("div", { children: [jsx(ItemMenuMobile, { onClick: () => setVisible(false), children: jsxs("span", { children: [' ', jsx(BackArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Back' : 'Voltar'] }) }), items &&
|
|
136
|
+
items.length > 0 &&
|
|
137
|
+
items.map((item, index) => {
|
|
138
|
+
if (item.label == 'Criar conteúdo')
|
|
139
|
+
return;
|
|
140
|
+
if (item.onClick == null)
|
|
141
|
+
return (jsxs(ItemMenuMobile, { onClick: () => newOptionsSubMenu(item.subItens), children: ["\u00A0", item.label] }, index));
|
|
142
|
+
return (jsxs(ItemMenuMobile, { onClick: (e) => item.onClick(e), children: ["\u00A0", item.label] }, index));
|
|
143
|
+
}), jsx(ItemMenuMobile, { style: { borderBottom: 'none' }, onClick: () => onClickExit(), children: jsxs("span", { children: [' ', jsx(ExitArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Logout' : 'Sair'] }) })] }), jsxs(footerMenuMobile, { children: [jsx("span", { style: { marginTop: 24 }, children: languageSelected === 'en-US'
|
|
144
|
+
? 'Visit our channel and social networks'
|
|
145
|
+
: 'Visite nossos canais e redes sociais' }), jsxs(frstSocials, { children: [jsxs(itemFrstSocials, { onClick: onClickSite, children: [' ', jsx(SiteIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickLinkedin, children: [' ', jsx(LinkedinIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickInstagram, children: [' ', jsx(InstagramIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickYoutube, children: [' ', jsx(YoutubeIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickSpotify, children: [' ', jsx(SpotifyIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickPodCast, children: [' ', jsx(PodCastIcon, {}), ' '] })] })] })] })) : (jsxs(Fragment, { children: [jsxs("div", { children: [jsx(ItemMenuMobile, { style: { paddingBottom: 32 }, onClick: () => setVisible(false), children: jsxs("span", { children: [' ', jsx(BackArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Back' : 'Voltar'] }) }), items &&
|
|
146
|
+
items.length > 0 &&
|
|
147
|
+
items.map((item, index) => {
|
|
148
|
+
if (item.label == 'Criar conteúdo')
|
|
149
|
+
return;
|
|
150
|
+
if (item.onClick == null)
|
|
151
|
+
return (jsxs(ItemMenuMobile, { onClick: () => newOptionsSubMenu(item.subItens), children: [item.iconBegin, "\u00A0", item.label] }, index));
|
|
152
|
+
return (jsxs(ItemMenuMobile, { onClick: (e) => item.onClick(e), children: [item.iconBegin, "\u00A0", item.label] }, index));
|
|
153
|
+
}), customMenu?.map((item, index) => (jsxs(ItemMenuMobile, { onClick: (e) => item.onClick(e), children: [jsx("span", { style: { marginRight: customMenu ? 2 : 0 }, children: item.iconBegin }), "\u00A0", item.label] }, index)))] }), jsxs(footerMenuMobile, { children: [jsx(ItemMenuMobile, { style: {}, onClick: () => onClickExit(), children: jsxs("span", { children: [' ', jsx(ExitArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Logout' : 'Sair'] }) }), jsx("span", { style: { marginTop: 24 }, children: languageSelected === 'en-US'
|
|
154
|
+
? 'Visit our channel and social networks'
|
|
155
|
+
: 'Visite nossos canais e redes sociais' }), jsxs(frstSocials, { children: [jsxs(itemFrstSocials, { onClick: onClickSite, children: [' ', jsx(SiteIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickLinkedin, children: [' ', jsx(LinkedinIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickInstagram, children: [' ', jsx(InstagramIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickYoutube, children: [' ', jsx(YoutubeIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickSpotify, children: [' ', jsx(SpotifyIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickPodCast, children: [' ', jsx(PodCastIcon, {}), ' '] })] })] })] })) })] }));
|
|
156
|
+
}
|
|
157
|
+
function SubMenuMobile({ items, isVisible, setVisible, variant, languageSelected, onClickExit, onClickSite, onClickLinkedin, onClickInstagram, onClickYoutube, onClickSpotify, onClickPodCast, customMenu }) {
|
|
158
|
+
const [options, setOptions] = useState(items);
|
|
159
|
+
useEffect(() => {
|
|
160
|
+
setOptions(items);
|
|
161
|
+
}, [items]);
|
|
162
|
+
return (jsx(MenuMobile$1, { "$isVisible": isVisible, style: { zIndex: '10002' }, children: variant === 'LXP' ? (jsxs(Fragment, { children: [jsx("div", { children: options &&
|
|
163
|
+
options.length > 0 &&
|
|
164
|
+
options.map((item, index) => {
|
|
165
|
+
if (item.label == 'Criar conteúdo')
|
|
166
|
+
return;
|
|
167
|
+
return (jsx(ItemMenuMobile, { onClick: (e) => item.onClick(e), children: item.label }, index));
|
|
168
|
+
}) }), jsx(ItemMenuMobile, { onClick: () => setVisible(false), style: { borderTop: '1px solid #444' }, children: languageSelected === 'en-US' ? 'Back' : 'Voltar' })] })) : (jsxs(Fragment, { children: [jsxs("div", { children: [jsx(ItemMenuMobile, { style: { paddingBottom: 32 }, onClick: () => setVisible(false), children: jsxs("span", { children: [' ', jsx(BackArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Back' : 'Voltar'] }) }), options &&
|
|
169
|
+
options.length > 0 &&
|
|
170
|
+
options.map((item, index) => {
|
|
171
|
+
if (item.label == 'Criar conteúdo')
|
|
172
|
+
return;
|
|
173
|
+
if (item.onClick == null)
|
|
174
|
+
return (jsxs(ItemMenuMobile, { onClick: (e) => item.onClick(e), children: [item.iconBegin, "\u00A0", item.label] }, index));
|
|
175
|
+
return (jsxs(ItemMenuMobile, { onClick: (e) => item.onClick(e), children: [item.iconBegin, "\u00A0", item.label] }, index));
|
|
176
|
+
}), customMenu?.map((item, index) => (jsxs(ItemMenuMobile, { onClick: (e) => item.onClick(e), children: [item.iconBegin, "\u00A0", item.label] }, index)))] }), jsxs(footerMenuMobile, { children: [jsx(ItemMenuMobile, { style: {}, onClick: () => onClickExit(), children: jsxs("span", { children: [' ', jsx(ExitArrow, { fill: "white" }), " \u00A0 ", languageSelected === 'en-US' ? 'Logout' : 'Sair'] }) }), jsx("span", { style: { marginTop: 24 }, children: languageSelected === 'en-US'
|
|
177
|
+
? 'Visit our channel and social networks'
|
|
178
|
+
: 'Visite nossos canais e redes sociais' }), jsxs(frstSocials, { children: [jsxs(itemFrstSocials, { onClick: onClickSite, children: [' ', jsx(SiteIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickLinkedin, children: [' ', jsx(LinkedinIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickInstagram, children: [' ', jsx(InstagramIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickYoutube, children: [' ', jsx(YoutubeIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickSpotify, children: [' ', jsx(SpotifyIcon, {}), ' '] }), jsxs(itemFrstSocials, { onClick: onClickPodCast, children: [' ', jsx(PodCastIcon, {}), ' '] })] })] })] })) }));
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export { MenuMobile, SubMenuMobile, GlobalMenu as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Wrapper = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
width: 100%;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
align-items: center;
|
|
9
|
+
`;
|
|
10
|
+
const WrapperActions = styled.div `
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
align-items: center;
|
|
15
|
+
margin-left: 12px;
|
|
16
|
+
`;
|
|
17
|
+
|
|
18
|
+
export { Wrapper, WrapperActions };
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { Wrapper, WrapperActions } from './headerImprovementIdeaStyles.js';
|
|
7
|
+
import HeaderUser from '../header-user/index.js';
|
|
8
|
+
import MenuMore from '../menu-more/index.js';
|
|
9
|
+
import CounterLike from '../counter-like/index.js';
|
|
10
|
+
|
|
11
|
+
function HeaderImprovementIdea({ user, like, menuMore, styles }) {
|
|
12
|
+
const [userState, setUserState] = useState(user);
|
|
13
|
+
const [likeState, setLikeState] = useState(like);
|
|
14
|
+
const [menuMoreState, setMenuMoreState] = useState(menuMore);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
setUserState(user);
|
|
17
|
+
setLikeState(like);
|
|
18
|
+
setMenuMoreState(menuMore);
|
|
19
|
+
}, [user, like, menuMore]);
|
|
20
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(Wrapper, { style: { ...styles }, children: [jsx(HeaderUser, { avatar: user?.avatar, name: user?.name, text: user?.text, onClick: user?.onClick }), jsxs(WrapperActions, { children: [jsx(CounterLike, { total: like?.total, onClick: () => like?.onClick() }), menuMore && menuMore?.length > 0 &&
|
|
21
|
+
jsx(MenuMore, { options: menuMore })] })] }) }));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { HeaderImprovementIdea as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Wrapper = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
gap: 8px;
|
|
7
|
+
user-select: none;
|
|
8
|
+
`;
|
|
9
|
+
const Name = styled.div `
|
|
10
|
+
font-family: 'PT Sans';
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
font-size: ${({ $large }) => $large ? '20px' : '16px'};
|
|
14
|
+
line-height: 110%;
|
|
15
|
+
|
|
16
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
17
|
+
`;
|
|
18
|
+
const Text = styled.div `
|
|
19
|
+
font-family: 'PT Sans';
|
|
20
|
+
font-style: normal;
|
|
21
|
+
font-weight: 400;
|
|
22
|
+
font-size: ${({ $large }) => $large ? '16px' : '12px'};
|
|
23
|
+
line-height: 16px;
|
|
24
|
+
|
|
25
|
+
color: ${({ theme }) => theme.colors.neutralsGrey3};
|
|
26
|
+
`;
|
|
27
|
+
const WrapperText = styled.div `
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
width: fit-content;
|
|
31
|
+
`;
|
|
32
|
+
const WrapperHandle = styled.div `
|
|
33
|
+
display: flex;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
align-items: center;
|
|
36
|
+
height: ${({ $large }) => $large ? '32px' : '20px'};
|
|
37
|
+
width: ${({ $large }) => $large ? '32px' : '20px'};
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
background: rgba(255, 255, 255, 0.5);
|
|
40
|
+
margin-left: 8px;
|
|
41
|
+
margin-bottom: 3px;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
padding: ${({ $large }) => $large ? '7px' : '5px'};
|
|
44
|
+
|
|
45
|
+
&:hover{
|
|
46
|
+
background: rgba(255, 255, 255, 0.7);
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
|
|
50
|
+
export { Name, Text, Wrapper, WrapperHandle, WrapperText };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } 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 { Wrapper, WrapperText, Name, WrapperHandle, Text } from './headerUserStyles.js';
|
|
6
|
+
import Avatar from '../avatar/index.js';
|
|
7
|
+
import { EditIcon, TrashIconNew } from '../../shared/icons.js';
|
|
8
|
+
|
|
9
|
+
function HeaderUser({ avatar, name, text, onClick, large, showHandleButtons, onClickEdit, onClickDelete, }) {
|
|
10
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(Wrapper, { onClick: () => !!(onClick) ? onClick() : {}, children: [jsx(Avatar, { size: large ? '56px' : '32px', src: avatar?.src, alt: avatar?.alt }), jsxs(WrapperText, { style: { justifyContent: 'space-around' }, children: [jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center' }, children: [jsx(Name, { "$large": large, children: name }), showHandleButtons ? jsxs(Fragment, { children: [jsx(WrapperHandle, { onClick: () => onClickEdit ? onClickEdit() : {}, "$large": large, children: jsx(EditIcon, { fill: '#444444' }) }), jsx(WrapperHandle, { onClick: () => onClickDelete ? onClickDelete() : {}, "$large": large, children: jsx(TrashIconNew, { fill: '#444444' }) })] }) : null] }), jsx(Text, { "$large": large, children: text })] })] }) }));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { HeaderUser as default };
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Div = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
height: 300px;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
padding: 50px 50px 50px 124px;
|
|
10
|
+
margin: 0;
|
|
11
|
+
background-image: ${props => `url(${props.desktopBackgroundProps})`};
|
|
12
|
+
background-position: bottom 0px right 0px;
|
|
13
|
+
background-repeat: no-repeat;
|
|
14
|
+
h1 {
|
|
15
|
+
font-size: 3.25rem;
|
|
16
|
+
line-height: 67.6px;
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
background-image: linear-gradient(to right, rgb(255, 98, 0), rgb(255, 176, 0));
|
|
19
|
+
background: linear-gradient(-45deg, rgb(255, 98, 0), rgb(255, 176, 0), rgb(255, 98, 0), rgb(255, 176, 0));
|
|
20
|
+
background-size: 400% 400%;
|
|
21
|
+
animation: gradient 10s ease infinite;
|
|
22
|
+
-webkit-background-clip: text;
|
|
23
|
+
-webkit-text-fill-color: transparent;
|
|
24
|
+
@keyframes gradient {
|
|
25
|
+
0% {
|
|
26
|
+
background-position: 0% 50%;
|
|
27
|
+
}
|
|
28
|
+
50% {
|
|
29
|
+
background-position: 100% 50%;
|
|
30
|
+
}
|
|
31
|
+
100% {
|
|
32
|
+
background-position: 0% 50%;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
@media (max-width: 1880px) {
|
|
37
|
+
background-position: bottom 0px right -220px;
|
|
38
|
+
h1 {
|
|
39
|
+
font-size: 3.0rem;
|
|
40
|
+
line-height: 60px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
@media (max-width: 1650px) {
|
|
44
|
+
padding: 50px 50px 50px 130px;
|
|
45
|
+
background-position: bottom 0px right -280px;
|
|
46
|
+
h1 {
|
|
47
|
+
font-size: 2.4rem;
|
|
48
|
+
line-height: 50px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
@media (max-width: 1400px) {
|
|
52
|
+
padding: 50px 50px 50px 40px;
|
|
53
|
+
}
|
|
54
|
+
@media (max-width: 1350px) {
|
|
55
|
+
height: 250px;
|
|
56
|
+
background-size:contain;
|
|
57
|
+
background-position: bottom 0px right -220px;
|
|
58
|
+
}
|
|
59
|
+
@media (max-width: 1230px) {
|
|
60
|
+
background-size:contain;
|
|
61
|
+
background-position: bottom 0px right -250px;
|
|
62
|
+
h1 {
|
|
63
|
+
font-size: 1.8rem;
|
|
64
|
+
line-height: 36px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
@media (max-width: 1100px) {
|
|
68
|
+
height: 200px;
|
|
69
|
+
background-size:contain;
|
|
70
|
+
background-position: bottom 0px right -220px;
|
|
71
|
+
}
|
|
72
|
+
@media (max-width: 860px) {
|
|
73
|
+
background-position: bottom 0px right -250px;
|
|
74
|
+
h1 {
|
|
75
|
+
font-size: 1.4rem;
|
|
76
|
+
line-height: 30px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
@media (max-width: 750px) {
|
|
80
|
+
background-image: ${props => `url(${props.mobileBackgroundProps})`};
|
|
81
|
+
background-position: top -20px right 0px;
|
|
82
|
+
h1 {
|
|
83
|
+
max-width: 345px;
|
|
84
|
+
font-size: 1.5rem;
|
|
85
|
+
line-height: 31.2px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
@media (max-width: 520px) {
|
|
89
|
+
padding: 10px;
|
|
90
|
+
background-size:unset;
|
|
91
|
+
height: 200px;
|
|
92
|
+
h1 {
|
|
93
|
+
max-width: 260px;
|
|
94
|
+
font-size: 16px;
|
|
95
|
+
line-height: 21.11px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
@media (max-width: 410px) {
|
|
99
|
+
background-position: top 0px right -20px;
|
|
100
|
+
height: 180px
|
|
101
|
+
}
|
|
102
|
+
`;
|
|
103
|
+
|
|
104
|
+
export { Div };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import '../../shared/global.css.js';
|
|
3
|
+
import { Div } from './headerChallengeStyle.js';
|
|
4
|
+
|
|
5
|
+
function HeaderChallenge({ firstLine, secondLine, desktopBackground, mobileBackground }) {
|
|
6
|
+
return (jsx(Div, { desktopBackgroundProps: desktopBackground, mobileBackgroundProps: mobileBackground, children: jsxs("h1", { children: [firstLine, jsx("br", {}), " ", secondLine] }) }));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { HeaderChallenge as default };
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const MainContainer = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
width: 100%;
|
|
8
|
+
color: #222222;
|
|
9
|
+
`;
|
|
10
|
+
const Container = styled.div `
|
|
11
|
+
width: 100%;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
font-family: PT Sans;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
border-radius: 8px;
|
|
18
|
+
padding: 0 0 0 16px;
|
|
19
|
+
min-height: 52px;
|
|
20
|
+
|
|
21
|
+
${({ type }) => {
|
|
22
|
+
switch (type) {
|
|
23
|
+
case 'prioritize':
|
|
24
|
+
return css `
|
|
25
|
+
background: #fdae15;
|
|
26
|
+
`;
|
|
27
|
+
case 'raised':
|
|
28
|
+
return css `
|
|
29
|
+
background: #f8d784;
|
|
30
|
+
`;
|
|
31
|
+
case 'suggested':
|
|
32
|
+
return css `
|
|
33
|
+
background: #cddaef;
|
|
34
|
+
`;
|
|
35
|
+
default:
|
|
36
|
+
return '';
|
|
37
|
+
}
|
|
38
|
+
}}
|
|
39
|
+
`;
|
|
40
|
+
const Title = styled.span `
|
|
41
|
+
font-weight: 700;
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
`;
|
|
44
|
+
styled.span `
|
|
45
|
+
font-weight: 700;
|
|
46
|
+
`;
|
|
47
|
+
const Separator = styled.div `
|
|
48
|
+
font-weight: bold;
|
|
49
|
+
margin: 0 8px;
|
|
50
|
+
`;
|
|
51
|
+
const Description = styled.span `
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
padding: 8px 0 8px;
|
|
54
|
+
width: 100%;
|
|
55
|
+
`;
|
|
56
|
+
const SplitContainer = styled.div `
|
|
57
|
+
display: flex;
|
|
58
|
+
justify-content: flex-start;
|
|
59
|
+
align-items: center;
|
|
60
|
+
`;
|
|
61
|
+
const SplitContainerDescription = styled.div `
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: flex-start;
|
|
64
|
+
align-items: center;
|
|
65
|
+
height: 100%;
|
|
66
|
+
width: 100%
|
|
67
|
+
`;
|
|
68
|
+
styled.div `
|
|
69
|
+
display: flex;
|
|
70
|
+
align-items: center;
|
|
71
|
+
justify-content: flex-start;
|
|
72
|
+
position: relative;
|
|
73
|
+
`;
|
|
74
|
+
styled.div `
|
|
75
|
+
position: absolute;
|
|
76
|
+
`;
|
|
77
|
+
const VoteButtonContainer = styled.span `
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
width: 150px;
|
|
82
|
+
background: #f9cd5e;
|
|
83
|
+
cursor: pointer;
|
|
84
|
+
${({ height }) => height > 0 &&
|
|
85
|
+
css `
|
|
86
|
+
height: ${height}px;
|
|
87
|
+
`}
|
|
88
|
+
|
|
89
|
+
${({ type }) => {
|
|
90
|
+
switch (type) {
|
|
91
|
+
case 'prioritize':
|
|
92
|
+
return css `
|
|
93
|
+
background: #dc9100;
|
|
94
|
+
`;
|
|
95
|
+
case 'raised':
|
|
96
|
+
return css `
|
|
97
|
+
background: #f9cd5e;
|
|
98
|
+
`;
|
|
99
|
+
case 'suggested':
|
|
100
|
+
return css `
|
|
101
|
+
background: #a5c3f2;
|
|
102
|
+
`;
|
|
103
|
+
default:
|
|
104
|
+
return '';
|
|
105
|
+
}
|
|
106
|
+
}}
|
|
107
|
+
${({ modeDelete }) => modeDelete &&
|
|
108
|
+
css `
|
|
109
|
+
background: inherit;
|
|
110
|
+
`}
|
|
111
|
+
border-radius:0 8px 8px 0;
|
|
112
|
+
padding: 0 16px 0 16px;
|
|
113
|
+
min-height: 52px;
|
|
114
|
+
margin-left: 4px;
|
|
115
|
+
`;
|
|
116
|
+
const VoteCount = styled.span `
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
|
+
height: 100%;
|
|
120
|
+
gap: 4px;
|
|
121
|
+
white-space: nowrap;
|
|
122
|
+
width: auto;
|
|
123
|
+
`;
|
|
124
|
+
const VoteButton = styled.p `
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
height: 100%;
|
|
129
|
+
width: 100%;
|
|
130
|
+
font-family: PT Sans;
|
|
131
|
+
font-size: 14px;
|
|
132
|
+
font-weight: 700;
|
|
133
|
+
line-height: 18.12px;
|
|
134
|
+
text-align: left;
|
|
135
|
+
color: #444444;
|
|
136
|
+
white-space: nowrap;
|
|
137
|
+
width: auto;
|
|
138
|
+
`;
|
|
139
|
+
const VoteContent = styled.div `
|
|
140
|
+
display: flex;
|
|
141
|
+
div {
|
|
142
|
+
flex-direction: row-reverse;
|
|
143
|
+
display: flex;
|
|
144
|
+
:nth-child(1n) {
|
|
145
|
+
margin-left: -8px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
`;
|
|
149
|
+
const ImageContent = styled.div `
|
|
150
|
+
display: flex;
|
|
151
|
+
align-items: center;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
width: 32px;
|
|
154
|
+
height: 32px;
|
|
155
|
+
border-radius: 50%;
|
|
156
|
+
overflow: hidden;
|
|
157
|
+
border: solid 2.5px #fff;
|
|
158
|
+
color: #ffffff;
|
|
159
|
+
img {
|
|
160
|
+
width: 100%;
|
|
161
|
+
height: 100%;
|
|
162
|
+
object-fit: cover;
|
|
163
|
+
}
|
|
164
|
+
`;
|
|
165
|
+
const VoteListContainer = styled.div `
|
|
166
|
+
position: absolute;
|
|
167
|
+
top: calc(100% + 1px);
|
|
168
|
+
right: 0;
|
|
169
|
+
width: 225px;
|
|
170
|
+
max-height: 300px;
|
|
171
|
+
overflow-y: auto;
|
|
172
|
+
padding: 5px 0px;
|
|
173
|
+
background-color: #fff;
|
|
174
|
+
border: 1px solid #ccc;
|
|
175
|
+
border-radius: 8px;
|
|
176
|
+
z-index: 1999;
|
|
177
|
+
display: ${({ showVotes }) => (showVotes ? 'block' : 'none')};
|
|
178
|
+
&::-webkit-scrollbar {
|
|
179
|
+
display: none;
|
|
180
|
+
}
|
|
181
|
+
box-shadow: 0px 15px 20px 0px #22222226;
|
|
182
|
+
`;
|
|
183
|
+
const VoteListItem = styled.div `
|
|
184
|
+
cursor: pointer;
|
|
185
|
+
height: 36px;
|
|
186
|
+
display: flex;
|
|
187
|
+
align-items: center;
|
|
188
|
+
gap: 10px;
|
|
189
|
+
${({ lastVote }) => lastVote === false && 'border-bottom: solid 1px #ccc;'}
|
|
190
|
+
`;
|
|
191
|
+
styled.div `
|
|
192
|
+
width: 100%;
|
|
193
|
+
h2{
|
|
194
|
+
margin-bottom: 0.4rem;
|
|
195
|
+
|
|
196
|
+
}
|
|
197
|
+
p{
|
|
198
|
+
font-weight: 400;
|
|
199
|
+
margin-bottom: 1rem;
|
|
200
|
+
|
|
201
|
+
}
|
|
202
|
+
`;
|
|
203
|
+
styled.div `
|
|
204
|
+
width: 100%;
|
|
205
|
+
border: solid 0.2px #E0E0E0;
|
|
206
|
+
margin-bottom: 1rem;
|
|
207
|
+
|
|
208
|
+
`;
|
|
209
|
+
styled.div `
|
|
210
|
+
width: 100%;
|
|
211
|
+
display: flex;
|
|
212
|
+
flex-direction: row;
|
|
213
|
+
justify-content: end;
|
|
214
|
+
button{
|
|
215
|
+
margin-left: 1rem;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
`;
|
|
219
|
+
|
|
220
|
+
export { Container, Description, ImageContent, MainContainer, Separator, SplitContainer, SplitContainerDescription, Title, VoteButton, VoteButtonContainer, VoteContent, VoteCount, VoteListContainer, VoteListItem };
|