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,156 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const achievementHeader = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: flex-start;
|
|
6
|
+
align-items: center;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
|
|
9
|
+
height: 96px;
|
|
10
|
+
padding: 20px 32px;
|
|
11
|
+
border-top-left-radius: 8px;
|
|
12
|
+
border-top-right-radius: 8px;
|
|
13
|
+
word-wrap: break-word;
|
|
14
|
+
|
|
15
|
+
${({ theme }) => theme.fonts.textMessageComponentsBodyBold};
|
|
16
|
+
color: ${({ theme }) => theme.colors.shadeWhite};
|
|
17
|
+
`;
|
|
18
|
+
const bannerContainer = styled.div `
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
align-items: center;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
border: 1px solid ${({ theme }) => theme.colors.borderPrimary};
|
|
24
|
+
background-color: ${({ theme }) => theme.colors.shadeWhite};
|
|
25
|
+
padding: 24px;
|
|
26
|
+
position: relative;
|
|
27
|
+
`;
|
|
28
|
+
const headerContent = styled.div `
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: center;
|
|
31
|
+
align-items: center;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
`;
|
|
34
|
+
const userInfo = styled.div `
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: flex-start;
|
|
38
|
+
flex-direction: column;
|
|
39
|
+
|
|
40
|
+
font-family: 'Work Sans';
|
|
41
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
42
|
+
margin-left: 16px;
|
|
43
|
+
`;
|
|
44
|
+
const problemTitle = styled.div `
|
|
45
|
+
font-family: 'Work Sans';
|
|
46
|
+
color: ${({ theme }) => theme.colors.primary1};
|
|
47
|
+
font-size: 24px;
|
|
48
|
+
font-weight: 600;
|
|
49
|
+
text-align: center;
|
|
50
|
+
margin-top: 24px;
|
|
51
|
+
word-wrap: break-word;
|
|
52
|
+
`;
|
|
53
|
+
const tagContent = styled.div `
|
|
54
|
+
display: flex;
|
|
55
|
+
justify-content: center;
|
|
56
|
+
align-items: center;
|
|
57
|
+
flex-wrap: wrap;
|
|
58
|
+
margin-top: 24px;
|
|
59
|
+
gap: 8px;
|
|
60
|
+
`;
|
|
61
|
+
const lastUpdatedText = styled.div `
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: flex-start;
|
|
64
|
+
align-items: center;
|
|
65
|
+
flex-direction: row;
|
|
66
|
+
${({ theme }) => theme.fonts.textMessageComponentsBodySmall};
|
|
67
|
+
margin-top: 16px;
|
|
68
|
+
`;
|
|
69
|
+
const stepsContainer = styled.div `
|
|
70
|
+
display: flex;
|
|
71
|
+
justify-content: flex-start;
|
|
72
|
+
align-items: flex-start;
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
width: 100%;
|
|
75
|
+
border: 1px solid ${({ theme }) => theme.colors.borderPrimary};
|
|
76
|
+
border-radius: 8px;
|
|
77
|
+
background-color: ${({ theme }) => theme.colors.shadeWhite};
|
|
78
|
+
padding: 24px;
|
|
79
|
+
margin-bottom: 24px;
|
|
80
|
+
`;
|
|
81
|
+
const stepsTitle = styled.span `
|
|
82
|
+
${({ theme }) => theme.fonts.header2};
|
|
83
|
+
font-size: 24px !important;
|
|
84
|
+
`;
|
|
85
|
+
const stepsLabel = styled.span `
|
|
86
|
+
font-family: 'Work Sans';
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
font-weight: 700;
|
|
89
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
90
|
+
margin-top: 16px;
|
|
91
|
+
word-wrap: break-word;
|
|
92
|
+
`;
|
|
93
|
+
const stepsValueText = styled.span `
|
|
94
|
+
font-family: 'Work Sans';
|
|
95
|
+
font-size: 16px;
|
|
96
|
+
font-weight: 400;
|
|
97
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
98
|
+
margin-top: 8px;
|
|
99
|
+
word-wrap: break-word;
|
|
100
|
+
`;
|
|
101
|
+
const topHeaderTag = styled.span `
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: row;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
align-items: center;
|
|
106
|
+
padding: 4px 16px;
|
|
107
|
+
gap: 10px;
|
|
108
|
+
|
|
109
|
+
position: absolute;
|
|
110
|
+
right: -1px;
|
|
111
|
+
top: -1px;
|
|
112
|
+
|
|
113
|
+
background: ${({ background }) => background || '#940059'};
|
|
114
|
+
color: ${({ color }) => color || '#FFFFFF'};
|
|
115
|
+
border-radius: 0px 8px;
|
|
116
|
+
|
|
117
|
+
`;
|
|
118
|
+
styled.div `
|
|
119
|
+
position: absolute;
|
|
120
|
+
top: 0;
|
|
121
|
+
left: 0;
|
|
122
|
+
width: 100%;
|
|
123
|
+
height: 100%;
|
|
124
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
125
|
+
color: white;
|
|
126
|
+
display: flex;
|
|
127
|
+
justify-content: center;
|
|
128
|
+
align-items: center;
|
|
129
|
+
z-index: 9999;
|
|
130
|
+
opacity: ${props => props?.show ? '1' : '0'};
|
|
131
|
+
transition: opacity 0.2s ease-in-out;
|
|
132
|
+
border-radius: 8px;
|
|
133
|
+
user-select: none;
|
|
134
|
+
`;
|
|
135
|
+
styled.img `
|
|
136
|
+
transform: rotate(180deg);
|
|
137
|
+
transform: scaleY(-1);
|
|
138
|
+
width: 30%;
|
|
139
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
140
|
+
|
|
141
|
+
border-radius: 50%;
|
|
142
|
+
user-select: none;
|
|
143
|
+
padding: 1%;
|
|
144
|
+
|
|
145
|
+
// border: 0.5vw solid #0645ad;
|
|
146
|
+
`;
|
|
147
|
+
const WorkInfo = styled.span `
|
|
148
|
+
font-weight: 400;
|
|
149
|
+
font-size: 16;
|
|
150
|
+
max-width: 21ch;
|
|
151
|
+
overflow: hidden;
|
|
152
|
+
white-space: nowrap;
|
|
153
|
+
text-overflow: ellipsis;
|
|
154
|
+
`;
|
|
155
|
+
|
|
156
|
+
export { WorkInfo, achievementHeader, bannerContainer, headerContent, lastUpdatedText, problemTitle, stepsContainer, stepsLabel, stepsTitle, stepsValueText, tagContent, topHeaderTag, userInfo };
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { FRSTTheme } from '../../../theme/index.js';
|
|
3
|
+
import { ThemeProvider } from 'styled-components';
|
|
4
|
+
import { achievementHeader, bannerContainer, topHeaderTag, headerContent, userInfo, WorkInfo, problemTitle, tagContent, lastUpdatedText, stepsContainer, stepsTitle, stepsLabel, stepsValueText } from './bannerProblemFeedStyles.js';
|
|
5
|
+
import Avatar from '../../avatar/index.js';
|
|
6
|
+
import Tag from '../../tag/index.js';
|
|
7
|
+
import StepsProgress from '../../DS/steps-progress/index.js';
|
|
8
|
+
import { useState, useEffect } from 'react';
|
|
9
|
+
import Slider from '@mui/material/Slider';
|
|
10
|
+
import { withStyles } from '@material-ui/styles';
|
|
11
|
+
import Button from '../../buttons/index.js';
|
|
12
|
+
import FeedInteraction from '../feedInteraction/index.js';
|
|
13
|
+
import Tooltip from '../../DS/tooltip/index.js';
|
|
14
|
+
|
|
15
|
+
function BannerProblemFeed(props) {
|
|
16
|
+
const [selectedStep, setSelectedStep] = useState(props.stepActive);
|
|
17
|
+
const learningIcon = 'https://i.gyazo.com/4e0807b581bf9780f07a27516a809a21.png';
|
|
18
|
+
const achievementIcon = 'https://i.gyazo.com/9b192733f4947946a3f47080ae12727f.png';
|
|
19
|
+
// const [stateLatestComment, setStateLatestComment] = useState(props.latestComment)
|
|
20
|
+
// useEffect(() => {
|
|
21
|
+
// setStateLatestComment(props.latestComment)
|
|
22
|
+
// }, [props.latestComment]);
|
|
23
|
+
const [stateTotalComments, setStateTotalComments] = useState(props.qtdComments);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
setStateTotalComments(props.qtdComments);
|
|
26
|
+
}, [props.qtdComments]);
|
|
27
|
+
const [definedSteps, setDefinedSteps] = useState(getStepsChallenge(props.language, props.stepProblem, setSelectedStep, props.onSelectedStep) || []);
|
|
28
|
+
useEffect(() => {
|
|
29
|
+
setDefinedSteps(getStepsChallenge(props.language, props.stepProblem, setSelectedStep, props.onSelectedStep));
|
|
30
|
+
}, [props.language, props.stepProblem, props.onSelectedStep]);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
setSelectedStep(props.stepActive);
|
|
33
|
+
}, [props.stepActive]);
|
|
34
|
+
const CustomSlider = withStyles({
|
|
35
|
+
root: {
|
|
36
|
+
color: "#FF4D0D",
|
|
37
|
+
height: 3,
|
|
38
|
+
padding: "13px 0",
|
|
39
|
+
},
|
|
40
|
+
track: {
|
|
41
|
+
color: "#FF4D0D",
|
|
42
|
+
},
|
|
43
|
+
disabled: {
|
|
44
|
+
color: '#FF4D0D',
|
|
45
|
+
}
|
|
46
|
+
})(Slider);
|
|
47
|
+
const marks = [
|
|
48
|
+
{
|
|
49
|
+
value: 1,
|
|
50
|
+
label: '1'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: 2,
|
|
54
|
+
label: '2'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
value: 3,
|
|
58
|
+
label: '3'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
value: 4,
|
|
62
|
+
label: '4'
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
value: 5,
|
|
66
|
+
label: '5'
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
const RenderSteps = () => {
|
|
70
|
+
return (jsx(Fragment, { children: selectedStep === 1 ?
|
|
71
|
+
jsxs(stepsContainer, { children: [jsx(stepsTitle, { children: props.step1Title }), jsxs(stepsLabel, { children: [props.textIndicator, ":"] }), jsx(stepsValueText, { children: props.indicatorValue }), jsxs(stepsLabel, { children: [props.textIndicatorSituation, ":"] }), jsx(stepsValueText, { children: props.indicatorSituationValue }), jsxs(stepsLabel, { children: [props.textIndicatorObjective, ":"] }), jsx(stepsValueText, { children: props.indicatorObjectiveValue }), jsxs(stepsLabel, { children: [props.textResultsFuture, ":"] }), jsx(stepsValueText, { children: props.resultsFutureValue })] })
|
|
72
|
+
: selectedStep === 2 ?
|
|
73
|
+
jsxs(stepsContainer, { children: [jsx(stepsTitle, { children: props.step2Title }), jsxs(stepsLabel, { style: { color: FRSTTheme['colors'].primary1 }, children: [props.textHypotheses, ":"] }), jsx(stepsValueText, { children: props.hypothesesValue }), jsxs(stepsLabel, { style: { color: FRSTTheme['colors'].primary1 }, children: [" ", props.language === 'en-US' ? 'Action 1' : 'Ação 1', " "] }), jsxs(stepsLabel, { children: [props.textResponsableAction, ":"] }), jsx(stepsValueText, { children: props.ResponsableActionValue }), jsxs(stepsLabel, { children: [props.textDate, ":"] }), jsx(stepsValueText, { children: props.dateValue }), jsxs(stepsLabel, { children: [props.textWhatToDo, ":"] }), jsx(stepsValueText, { children: props.whatToDoValue }), jsxs(stepsLabel, { children: [props.textSuccessAction, ":"] }), jsx(stepsValueText, { children: props.successActionValue })] })
|
|
74
|
+
: selectedStep === 3 ?
|
|
75
|
+
jsxs(stepsContainer, { children: [jsx(stepsTitle, { children: props.step3Title }), jsxs(stepsLabel, { style: { color: FRSTTheme['colors'].primary1 }, children: [props.textTestMade, ":"] }), jsx(stepsValueText, { children: props.testMadeValue }), jsxs(stepsLabel, { children: [props.textSuccessTest, ":"] }), jsx("div", { style: { width: '100%', marginBottom: 32, marginTop: 12 }, children: jsx(CustomSlider, { value: props.successTestValue, min: 1, max: 5, marks: marks, disabled: true }) })] })
|
|
76
|
+
: selectedStep === 4 ?
|
|
77
|
+
jsxs(stepsContainer, { children: [jsx(stepsTitle, { children: props.step4Title }), props.textMainAchievement ?
|
|
78
|
+
jsxs(Fragment, { children: [jsxs(stepsLabel, { style: { color: FRSTTheme['colors'].primary1 }, children: [props.textMainAchievement, ":"] }), jsx(stepsValueText, { children: props.mainAchievementValue })] })
|
|
79
|
+
: props.textMainLearning ?
|
|
80
|
+
jsxs(Fragment, { children: [jsxs(stepsLabel, { style: { color: FRSTTheme['colors'].primary1 }, children: [props.textMainLearning, ":"] }), jsx(stepsValueText, { children: props.mainLearningValue })] })
|
|
81
|
+
: null] })
|
|
82
|
+
: selectedStep === 5 ?
|
|
83
|
+
jsxs(stepsContainer, { children: [jsx(stepsTitle, { children: props.step5Title }), jsxs(stepsLabel, { style: { color: FRSTTheme['colors'].primary1 }, children: [props.textNextSteps, ":"] }), jsx(stepsValueText, { children: props.nextStepsValue })] })
|
|
84
|
+
: null }));
|
|
85
|
+
};
|
|
86
|
+
return (jsxs(ThemeProvider, { theme: FRSTTheme, children: [props.mainAchievementValue || props.mainLearningValue ?
|
|
87
|
+
jsxs(achievementHeader, { style: { backgroundColor: props.isSuccessCase ? '#444' : '#4B2961' }, children: [jsx("img", { src: props.mainAchievementValue ? achievementIcon : learningIcon, width: '56', height: '56' }), jsx("span", { style: { marginLeft: 16, wordBreak: 'break-word', overflow: 'hidden', display: '-webkit-box', WebkitLineClamp: 3, WebkitBoxOrient: 'vertical' }, children: props.mainAchievementValue ? props.mainAchievementValue : props.mainLearningValue })] })
|
|
88
|
+
: null, jsxs(bannerContainer, { style: { borderTopLeftRadius: props.mainAchievementValue || props.mainLearningValue ? 0 : 8, borderTopRightRadius: props.mainAchievementValue || props.mainLearningValue ? 0 : 8 }, children: [props.topHeaderTagText &&
|
|
89
|
+
jsx(topHeaderTag, { background: props.topHeaderTagBgColor, color: props.topHeaderTagColor, children: props.topHeaderTagText }), jsx(headerContent, { children: props.onClickUserInfo ?
|
|
90
|
+
jsxs(Tooltip, { direction: "bottom", content: props.textVisitProfile ? props.textVisitProfile : 'Visitar perfil', trigger: 'hover', width: '101px', height: '32px', style: { top: '10px', textAlign: 'center' }, children: [jsx(Avatar, { isActiveClick: true, onClick: () => props.onClickUserInfo ? props.onClickUserInfo() : {}, size: "54px", src: props.isSuccessCase ? 'https://i.gyazo.com/e9608cb76d36242de07661bee9da60dd.png' : props.userAvatar }), jsxs(userInfo, { onClick: () => props.onClickUserInfo ? props.onClickUserInfo() : {}, style: { cursor: 'pointer' }, children: [jsx("span", { style: { fontWeight: 600, fontSize: 20 }, children: props.isSuccessCase ?
|
|
91
|
+
(props.language === 'pt-BR' ? 'Case de sucesso'
|
|
92
|
+
: props.language === 'en-US' ? 'Success case'
|
|
93
|
+
: props.language === 'es' ? 'Caso de exito'
|
|
94
|
+
: props.language === 'pt-PT' ? 'Case de sucesso'
|
|
95
|
+
: null)
|
|
96
|
+
: props.userName }), jsx("span", { style: { fontWeight: 400, fontSize: 16 }, children: props.userPosition }), jsx(WorkInfo, { children: props.userCompany })] })] })
|
|
97
|
+
:
|
|
98
|
+
jsxs(Fragment, { children: [jsx(Avatar, { size: "54px", src: props.isSuccessCase ? 'https://i.gyazo.com/e9608cb76d36242de07661bee9da60dd.png' : props.userAvatar }), jsxs(userInfo, { children: [jsx("span", { style: { fontWeight: 600, fontSize: 20 }, children: props.isSuccessCase ?
|
|
99
|
+
(props.language === 'pt-BR' ? 'Case de sucesso'
|
|
100
|
+
: props.language === 'en-US' ? 'Success case'
|
|
101
|
+
: props.language === 'es' ? 'Caso de exito'
|
|
102
|
+
: props.language === 'pt-PT' ? 'Case de sucesso'
|
|
103
|
+
: null)
|
|
104
|
+
: props.userName }), jsx("span", { style: { fontWeight: 400, fontSize: 16 }, children: props.userPosition }), jsx(WorkInfo, { style: { fontWeight: 400, fontSize: 16 }, children: props.userCompany })] })] }) }), jsxs(problemTitle, { children: [" ", props.problemTitle, " "] }), jsx(tagContent, { children: props.problemTags?.map((item, index) => (item &&
|
|
105
|
+
jsx(Tag, { style: { color: '#000 !important' }, title: item, color: "#E4E1FF", selected: false, inverted: false }, index))) }), jsxs(lastUpdatedText, { children: [jsxs("span", { style: { fontWeight: 700 }, children: [props.lastUpdated, ":"] }), jsxs("span", { children: ["\u00A0", props.lastUpdatedStep] })] }), jsx("div", { style: {
|
|
106
|
+
width: '100%',
|
|
107
|
+
paddingTop: 30,
|
|
108
|
+
paddingBottom: 16,
|
|
109
|
+
marginTop: 16,
|
|
110
|
+
marginBottom: 4,
|
|
111
|
+
borderTop: `1px solid ${FRSTTheme['colors'].borderPrimary}`,
|
|
112
|
+
display: 'flex', justifyContent: 'center'
|
|
113
|
+
}, children: jsx("div", { style: { width: '95%' }, children: jsx(StepsProgress, { definedSteps: definedSteps, stepSelected: selectedStep }) }) }), jsx(RenderSteps, {}), jsx(Button, { label: props.textButton, variant: 'expandedPrimary', handleClick: () => props.onClickButton() })] }), !props.hideInteraction &&
|
|
114
|
+
jsx(FeedInteraction, { isChallengeReview: true, id: props.id, isLiked: props.isLiked, qtdComments: stateTotalComments, qtdLikes: props.qtdLikes, textAvaluation: props.textAvaluation, textAvaluationTitle: props.textAvaluationTitle, isDisabledAvaluation: props.isDisabledAvaluation, textComments: props.textComments, textDeslike: props.textDeslike, textLikes: props.textLikes,
|
|
115
|
+
// latestComment={stateLatestComment}
|
|
116
|
+
// textLatestComment={props.textLatestComment}
|
|
117
|
+
textImpacto: props.textImpacto, ratingImpacto: props.ratingImpacto, textRelevancia: props.textRelevancia, ratingRelevancia: props.ratingRelevancia,
|
|
118
|
+
// userCommentPlaceholder={props.userCommentPlaceholder}
|
|
119
|
+
// onCommentChange={props.onCommentChange}
|
|
120
|
+
handleLikeClick: props.handleLikeClick, handleImpactoChange: props.handleImpactoChange, handleRelevanciaChange: props.handleRelevanciaChange,
|
|
121
|
+
// textSaveCommentBtn={props.textSaveCommentBtn}
|
|
122
|
+
// handleSaveCommentBtn={props.handleSaveCommentBtn}
|
|
123
|
+
userAvatar: props.avatar, textTotalView: props.textTotalView, handleClickTextTotalViews: props.handleClickTextTotalViews, isCommentV2: props?.isCommentV2, childrenCommentV2: props?.childrenCommentV2 })] }));
|
|
124
|
+
}
|
|
125
|
+
function getStepsChallenge(language, stepProblem, setSelectedStep, onSelectedStep) {
|
|
126
|
+
let translate = {
|
|
127
|
+
"pt-BR": ["Definição", "Hipóteses", "Testes", "Resultados", "Próximos Passos"],
|
|
128
|
+
"es": ["Definición", "Hipótesis", "Pruebas", "Resultados", "Próximos pasos"],
|
|
129
|
+
"en-US": ["Definition", "Hypotheses", "Tests", "Results", "Next Steps"],
|
|
130
|
+
"pt-PT": ["Definição", "Hipóteses", "Testes", "Resultados", "Próximos Passos"],
|
|
131
|
+
};
|
|
132
|
+
let steps = [
|
|
133
|
+
{ step: 1, active: false, name: translate[language][0], action: () => {
|
|
134
|
+
onSelectedStep(1);
|
|
135
|
+
setSelectedStep(1);
|
|
136
|
+
} },
|
|
137
|
+
{ step: 2, active: false, name: translate[language][1], action: () => {
|
|
138
|
+
onSelectedStep(2);
|
|
139
|
+
setSelectedStep(2);
|
|
140
|
+
} },
|
|
141
|
+
{ step: 3, active: false, name: translate[language][2], action: () => {
|
|
142
|
+
onSelectedStep(3);
|
|
143
|
+
setSelectedStep(3);
|
|
144
|
+
} },
|
|
145
|
+
{ step: 4, active: false, name: translate[language][3], action: () => {
|
|
146
|
+
onSelectedStep(4);
|
|
147
|
+
setSelectedStep(4);
|
|
148
|
+
} },
|
|
149
|
+
{ step: 5, active: false, name: translate[language][4], action: () => {
|
|
150
|
+
onSelectedStep(5);
|
|
151
|
+
setSelectedStep(5);
|
|
152
|
+
} },
|
|
153
|
+
];
|
|
154
|
+
let maxStep = Math.min(stepProblem, steps.length);
|
|
155
|
+
for (let i = 0; i < maxStep; i++) {
|
|
156
|
+
steps[i].active = true;
|
|
157
|
+
}
|
|
158
|
+
return steps;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export { BannerProblemFeed as default };
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const ContainerTotal = styled.div `
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-height: 508px;
|
|
6
|
+
background-image: url("${({ bannerNormal, bannerLarge, isExtendedVersion }) => isExtendedVersion ? bannerLarge : bannerNormal}");
|
|
7
|
+
background-repeat: no-repeat;
|
|
8
|
+
background-position: top;
|
|
9
|
+
background-size: cover;
|
|
10
|
+
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
|
|
14
|
+
@media (max-width: 870px) {
|
|
15
|
+
background-image: url("${({ bannerResponsive }) => bannerResponsive}");
|
|
16
|
+
height: 745px;
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
const VersionExtended = styled.div `
|
|
20
|
+
height: ${({ isExtendedVersion, heightExtended }) => isExtendedVersion ? heightExtended ? heightExtended : '508px' : '0px'};
|
|
21
|
+
@media (max-width: 870px) {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
const ContainerBanner = styled.div `
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: 508px;
|
|
28
|
+
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: row;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
flex-wrap: wrap;
|
|
34
|
+
|
|
35
|
+
& > div:nth-child(5) {
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
|
+
@media (max-width: 1500px) {
|
|
39
|
+
padding: 20px !important;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@media (max-width: 1200px) {
|
|
43
|
+
& > div:nth-child(1) {
|
|
44
|
+
display: none !important;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (max-width: 870px) {
|
|
49
|
+
height: 745px;
|
|
50
|
+
|
|
51
|
+
& > div:nth-child(2) {
|
|
52
|
+
min-width: 100%;
|
|
53
|
+
}
|
|
54
|
+
& > div:nth-child(3) {
|
|
55
|
+
min-width: 360px;
|
|
56
|
+
max-width: 360px;
|
|
57
|
+
|
|
58
|
+
& > div:nth-child(2) {
|
|
59
|
+
margin-bottom: 0px;
|
|
60
|
+
}
|
|
61
|
+
& > button {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
& > div:nth-child(4) {
|
|
66
|
+
min-width: 100%;
|
|
67
|
+
max-width: 100%;
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
|
|
71
|
+
& > div:nth-child(1) {
|
|
72
|
+
width: 270px;
|
|
73
|
+
margin-left: 0px;
|
|
74
|
+
|
|
75
|
+
& > div:nth-child(1) {
|
|
76
|
+
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
& > div:nth-child(5) {
|
|
81
|
+
min-width: 100%;
|
|
82
|
+
min-width: 360px;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-self: flex-end;
|
|
85
|
+
margin-bottom: 40px;
|
|
86
|
+
& > button {
|
|
87
|
+
width: 360px;
|
|
88
|
+
max-width: 100%;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
`;
|
|
93
|
+
const WrapperContent = styled.div `
|
|
94
|
+
flex: 1;
|
|
95
|
+
display: flex;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
align-items: center;
|
|
98
|
+
`;
|
|
99
|
+
const WrapperContentMain = styled.div `
|
|
100
|
+
flex: 1;
|
|
101
|
+
display: flex;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
align-items: flex-start;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
& button {
|
|
106
|
+
width: fit-content;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
}
|
|
109
|
+
`;
|
|
110
|
+
const WrapperContentHelper = styled.div `
|
|
111
|
+
flex: 1;
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: flex-start;
|
|
114
|
+
align-items: flex-end;
|
|
115
|
+
flex-direction: row;
|
|
116
|
+
`;
|
|
117
|
+
const TitleSRG = styled.div `
|
|
118
|
+
font-family: 'Work Sans';
|
|
119
|
+
font-style: normal;
|
|
120
|
+
font-weight: 700;
|
|
121
|
+
font-size: 24px;
|
|
122
|
+
line-height: 130%;
|
|
123
|
+
white-space: nowrap;
|
|
124
|
+
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
letter-spacing: 0.01em;
|
|
128
|
+
|
|
129
|
+
color: ${({ theme }) => theme.colors.shadeWhite};
|
|
130
|
+
margin-bottom: 24px;
|
|
131
|
+
|
|
132
|
+
`;
|
|
133
|
+
const DescriptionSRG = styled.div `
|
|
134
|
+
font-family: 'PT Sans';
|
|
135
|
+
font-style: normal;
|
|
136
|
+
font-weight: 400;
|
|
137
|
+
font-size: 18px;
|
|
138
|
+
line-height: 23px;
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
|
|
142
|
+
color: ${({ theme }) => theme.colors.shadeWhite};
|
|
143
|
+
margin-bottom: 24px;
|
|
144
|
+
`;
|
|
145
|
+
const SpeechBubble = styled.div `
|
|
146
|
+
flex-direction: column;
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: flex-end;
|
|
149
|
+
align-items: flex-end;
|
|
150
|
+
|
|
151
|
+
background: ${({ theme }) => theme.colors.messageAlert2};
|
|
152
|
+
border: 1.5px solid ${({ theme }) => theme.colors.borderSecondary2};
|
|
153
|
+
border-radius: 8px;
|
|
154
|
+
padding: 16px;
|
|
155
|
+
|
|
156
|
+
width: 160px;
|
|
157
|
+
margin-right: 22px;
|
|
158
|
+
margin-left: 50px;
|
|
159
|
+
|
|
160
|
+
&:before {
|
|
161
|
+
content: "";
|
|
162
|
+
position: absolute;
|
|
163
|
+
border-top: 10px solid transparent;
|
|
164
|
+
border-bottom: 10px solid transparent;
|
|
165
|
+
border-left: 20px solid ${({ theme }) => theme.colors.borderSecondary2};
|
|
166
|
+
border-right: 10px solid transparent;
|
|
167
|
+
margin-right: -46px;
|
|
168
|
+
margin-bottom: 0px;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&:after {
|
|
172
|
+
content: "";
|
|
173
|
+
position: absolute;
|
|
174
|
+
border-top: 10px solid transparent;
|
|
175
|
+
border-bottom: 10px solid transparent;
|
|
176
|
+
border-left: 20px solid ${({ theme }) => theme.colors.messageAlert2};
|
|
177
|
+
border-right: 10px solid transparent;
|
|
178
|
+
margin-right: -44px;
|
|
179
|
+
margin-bottom: 0px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
& a {
|
|
183
|
+
align-self: flex-start;
|
|
184
|
+
}
|
|
185
|
+
`;
|
|
186
|
+
const HelperText = styled.div `
|
|
187
|
+
font-family: 'PT Sans';
|
|
188
|
+
font-style: normal;
|
|
189
|
+
font-weight: 400;
|
|
190
|
+
font-size: 16px;
|
|
191
|
+
line-height: 21px;
|
|
192
|
+
|
|
193
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
194
|
+
margin-bottom: 8px;
|
|
195
|
+
`;
|
|
196
|
+
const FrstSocials = styled.div `
|
|
197
|
+
display:flex;
|
|
198
|
+
justify-content: center;
|
|
199
|
+
align-center: center;
|
|
200
|
+
flex-direction: row;
|
|
201
|
+
margin-top: 24px;
|
|
202
|
+
margin-bottom: 32px;
|
|
203
|
+
position: absolute;
|
|
204
|
+
right: 120px;
|
|
205
|
+
top: 60px;
|
|
206
|
+
@media (max-width: 1500px) {
|
|
207
|
+
right: 40px;
|
|
208
|
+
}
|
|
209
|
+
`;
|
|
210
|
+
const ItemFrstSocials = styled.button `
|
|
211
|
+
border: none;
|
|
212
|
+
background: none;
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
margin-left: 11px;
|
|
215
|
+
`;
|
|
216
|
+
|
|
217
|
+
export { ContainerBanner, ContainerTotal, DescriptionSRG, FrstSocials, HelperText, ItemFrstSocials, SpeechBubble, TitleSRG, VersionExtended, WrapperContent, WrapperContentHelper, WrapperContentMain };
|
|
@@ -0,0 +1,15 @@
|
|
|
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 Button from '../../buttons/index.js';
|
|
6
|
+
import LateralMenu from '../../lateral-menu/index.js';
|
|
7
|
+
import { SiteIcon, LinkedinIcon, InstagramIcon, YoutubeIcon, SpotifyIcon, PodCastIcon, AddIcon } from '../../../shared/icons.js';
|
|
8
|
+
import { ContainerTotal, ContainerBanner, WrapperContent, FrstSocials, ItemFrstSocials, WrapperContentMain, TitleSRG, DescriptionSRG, WrapperContentHelper, SpeechBubble, HelperText, VersionExtended } from './bannerSRGStyle.js';
|
|
9
|
+
|
|
10
|
+
function BannerSRG(props) {
|
|
11
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(ContainerTotal, { isExtendedVersion: props?.isExtendedVersion, bannerLarge: props?.bannerSRG?.large, bannerNormal: props?.bannerSRG?.normal, bannerResponsive: props?.bannerSRG?.responsive, style: { ...props.style }, children: [jsxs(ContainerBanner, { children: [jsxs(WrapperContent, { style: { maxHeight: '240px', height: '240px', display: 'flex', alignItems: 'flex-start', marginTop: '-100px' }, children: [props && props.social &&
|
|
12
|
+
jsxs(FrstSocials, { children: [props.social.onClickSite && jsxs(ItemFrstSocials, { onClick: () => props.social.onClickSite(), children: [" ", jsx(SiteIcon, {}), " "] }), props.social.onClickLinkedin && jsxs(ItemFrstSocials, { onClick: () => props.social.onClickLinkedin(), children: [" ", jsx(LinkedinIcon, {}), " "] }), props.social.onClickInstagram && jsxs(ItemFrstSocials, { onClick: () => props.social.onClickInstagram(), children: [" ", jsx(InstagramIcon, {}), " "] }), props.social.onClickYoutube && jsxs(ItemFrstSocials, { onClick: () => props.social.onClickYoutube(), children: [" ", jsx(YoutubeIcon, {}), " "] }), props.social.onClickSpotify && jsxs(ItemFrstSocials, { onClick: () => props.social.onClickSpotify(), children: [" ", jsx(SpotifyIcon, {}), " "] }), props.social.onClickPodCast && jsxs(ItemFrstSocials, { onClick: () => props.social.onClickPodCast(), children: [" ", jsx(PodCastIcon, {}), " "] })] }), jsx(LateralMenu, { variant: 'primary', channel: '', name: props.lateralMenu.name, hiddenButtonHeader: true, avatar: props.lateralMenu.avatar, button: props.lateralMenu.button, listOptions: props.lateralMenu.listOptions })] }), jsx(WrapperContent, { children: jsx("img", { src: props.logoSRG }) }), jsxs(WrapperContentMain, { children: [jsx(TitleSRG, { children: props?.labels?.textTitle ? props?.labels?.textTitle : 'Space Race Game' }), jsx(DescriptionSRG, { children: props?.labels?.textDescription }), jsx(Button, { variant: 'primary', label: props?.newProject?.label ? props.newProject?.label : 'Criar novo projeto', handleClick: () => props.newProject.action(), startIcon: jsx(AddIcon, { fill: '#FFFFFF' }) })] }), jsxs(WrapperContentHelper, { children: [jsxs(SpeechBubble, { children: [jsx(HelperText, { children: props.labels.textHelperDescription }), jsx(Button, { variant: 'link', label: props?.acessHere?.label ? props.acessHere.label : 'Acesse aqui', handleClick: () => props.acessHere.action(), style: { color: '#21bffc' } })] }), jsx("img", { src: props.avatarSRG })] }), jsx(WrapperContent, { children: jsx(Button, { variant: 'primary', label: props?.newProject?.label ? props.newProject?.label : 'Criar novo projeto', handleClick: () => props.newProject.action(), startIcon: jsx(AddIcon, { fill: '#FFFFFF' }) }) })] }), jsx(VersionExtended, { isExtendedVersion: props.isExtendedVersion, heightExtended: props.heightExtended })] }) }));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { BannerSRG as default };
|