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,110 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const WrapperItem = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
align-items: center;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
padding: 8px;
|
|
9
|
+
background: ${({ theme }) => theme.colors.shadeWhite};
|
|
10
|
+
border-left: 4px solid ${({ active, theme }) => active ? theme.colors.primary1 : 'transparent'};
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
background: ${({ theme }) => theme.colors.neutralsGrey8};
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
const WrapperMainLabel = styled.span `
|
|
17
|
+
font-family: 'PT Sans';
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: ${({ active }) => active ? '700' : '400'};
|
|
20
|
+
font-size: 18px;
|
|
21
|
+
line-height: 23px;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
|
|
26
|
+
margin-left: 8px;
|
|
27
|
+
|
|
28
|
+
color: ${({ theme, active }) => active ? theme.colors.primary1 : theme.colors.neutralsGrey1};
|
|
29
|
+
`;
|
|
30
|
+
const WrapperComponent = styled.div `
|
|
31
|
+
display: flex;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
align-items: center;
|
|
34
|
+
margin-left: 10px;
|
|
35
|
+
& > svg {
|
|
36
|
+
width: 24px;
|
|
37
|
+
height: 24px;
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
// & > path {
|
|
41
|
+
// fill: ${({ theme, active }) => active ? theme.colors.primary1 : theme.colors.neutralsGrey1};
|
|
42
|
+
// }
|
|
43
|
+
const WrapperButton = styled.div `
|
|
44
|
+
margin-right: 8px;
|
|
45
|
+
|
|
46
|
+
& > button {
|
|
47
|
+
display: flex;
|
|
48
|
+
height: 24px;
|
|
49
|
+
flex-direction: row;
|
|
50
|
+
align-items: flex-start;
|
|
51
|
+
padding: 6px 8px;
|
|
52
|
+
gap: 10px;
|
|
53
|
+
border-radius: 4px;
|
|
54
|
+
|
|
55
|
+
font-family: 'Work Sans';
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
line-height: 12px;
|
|
60
|
+
z-index: 2;
|
|
61
|
+
}
|
|
62
|
+
`;
|
|
63
|
+
const WrapperIconDrop = styled.div `
|
|
64
|
+
margin-right: 24px;
|
|
65
|
+
& > svg {
|
|
66
|
+
transition: all 0.3s ease-out;
|
|
67
|
+
transform: rotate(${({ isOpen }) => isOpen ? '0' : '0.5turn'});
|
|
68
|
+
& > path {
|
|
69
|
+
stroke: ${({ theme, isOpen }) => isOpen ? theme.colors.primary1 : theme.colors.neutralsGrey1};
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
const WrapperCompound = styled.div `
|
|
74
|
+
display: flex;
|
|
75
|
+
transition: max-height 0.3s ease-in-out;
|
|
76
|
+
flex-direction: column;
|
|
77
|
+
`;
|
|
78
|
+
const WrapperSubItems = styled.div `
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
height: auto;
|
|
82
|
+
transform-origin:top;
|
|
83
|
+
transform:scaleY(${({ isOpen }) => isOpen ? '1' : '0'});
|
|
84
|
+
transition: transform 0.3s ease-in-out;
|
|
85
|
+
overflow: hidden;
|
|
86
|
+
`;
|
|
87
|
+
const SubItem = styled.div `
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: row;
|
|
90
|
+
align-items: center;
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
padding: 10px;
|
|
93
|
+
padding-left: 16px;
|
|
94
|
+
background: ${({ theme }) => theme.colors.neutralsGrey8};
|
|
95
|
+
border-bottom: 1px solid ${({ theme }) => theme.colors.neutralsGrey5};
|
|
96
|
+
|
|
97
|
+
font-family: 'PT Sans';
|
|
98
|
+
font-style: normal;
|
|
99
|
+
font-weight: 400;
|
|
100
|
+
font-size: 16px;
|
|
101
|
+
line-height: 21px;
|
|
102
|
+
display: flex;
|
|
103
|
+
align-items: center;
|
|
104
|
+
|
|
105
|
+
&:hover {
|
|
106
|
+
background: ${({ theme }) => theme.colors.neutralsGrey6};
|
|
107
|
+
}
|
|
108
|
+
`;
|
|
109
|
+
|
|
110
|
+
export { SubItem, WrapperButton, WrapperComponent, WrapperCompound, WrapperIconDrop, WrapperItem, WrapperMainLabel, WrapperSubItems };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { Wrapper } from './itemMenuGlobalStyles.js';
|
|
6
|
+
|
|
7
|
+
function ItemGlobalMenu({ variant, type, label, handleOnClick, wrapText, pressed, style, icon, customMenu }) {
|
|
8
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(Wrapper, { "$variant": variant, "$pressed": pressed, "$typeItem": type, "$wrapText": wrapText, style: { ...style }, onClick: handleOnClick, children: [jsx("span", { style: { marginRight: customMenu ? 10 : 0 }, children: icon }), jsx("span", { style: { marginTop: customMenu ? -8 : 0 }, children: label })] }) }));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { ItemGlobalMenu as default };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Wrapper = styled.button `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: flex-end;
|
|
8
|
+
gap: 2px;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
border: 0;
|
|
11
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
12
|
+
border-top: ${({ $typeItem }) => $typeItem == 'menu' ? '10px' : '2px'} solid transparent;
|
|
13
|
+
|
|
14
|
+
background-color: ${({ $variant, theme, $typeItem }) => $typeItem == 'submenu' ? 'transparent' : $variant == 'LXP' ? theme.colors.neutralsGrey1 : theme.colors.primary1};
|
|
15
|
+
|
|
16
|
+
font-family: 'PT Sans';
|
|
17
|
+
font-style: normal;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-size: 16px;
|
|
20
|
+
line-height: 21px;
|
|
21
|
+
|
|
22
|
+
color: #FFFFFF;
|
|
23
|
+
|
|
24
|
+
white-space: ${({ $wrapText }) => $wrapText ? 'wrap' : 'nowrap'};
|
|
25
|
+
|
|
26
|
+
&:hover {
|
|
27
|
+
background-color: ${({ $variant, theme }) => $variant == 'LXP' ? theme.colors.neutralsGrey3 : '#F5792A'};
|
|
28
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
29
|
+
}
|
|
30
|
+
${({ $pressed, $variant, $typeItem, theme }) => $pressed && `
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
border-bottom: ${$typeItem == 'menu' ? '4px' : '2px'} solid
|
|
33
|
+
${$variant == 'LXP' && $typeItem == 'menu' ? theme.colors.primary1 : theme.colors.shadeWhite};
|
|
34
|
+
`}
|
|
35
|
+
&:focus {
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid
|
|
38
|
+
${({ $variant, $typeItem, theme }) => $variant == 'LXP' && $typeItem == 'menu' ? theme.colors.primary1 : theme.colors.shadeWhite};
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
styled.button `
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-direction: column;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: center;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
border: 0;
|
|
48
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
49
|
+
border-top: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid transparent;
|
|
50
|
+
|
|
51
|
+
background-color: transparent;
|
|
52
|
+
|
|
53
|
+
font-family: 'PT Sans';
|
|
54
|
+
font-style: normal;
|
|
55
|
+
font-weight: 400;
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
line-height: 21px;
|
|
58
|
+
|
|
59
|
+
color: #FFFFFF;
|
|
60
|
+
|
|
61
|
+
white-space: ${({ $wrapText }) => $wrapText ? 'wrap' : 'nowrap'};
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: ${({ $variant, theme }) => $variant == 'LXP' ? theme.colors.neutralsGrey3 : '#F5792A'};
|
|
65
|
+
border-bottom: ${({ $typeItem }) => $typeItem == 'menu' ? '4px' : '2px'} solid
|
|
66
|
+
${({ $variant, $typeItem, theme }) => $variant == 'LXP' && $typeItem == 'menu' ? theme.colors.primary1 : theme.colors.shadeWhite};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:focus {
|
|
70
|
+
font-weight: 700;
|
|
71
|
+
}
|
|
72
|
+
`;
|
|
73
|
+
|
|
74
|
+
export { Wrapper };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import '../../shared/global.css.js';
|
|
3
|
+
import { ThemeProvider } from 'styled-components';
|
|
4
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
5
|
+
import { WrapperCard, WrapperHeader, NameProfile, Channel, WrapperButton, HR } from './lateralMenuStyles.js';
|
|
6
|
+
import LateralMenu$1 from '../item-lateral-menu/index.js';
|
|
7
|
+
import Avatar from '../avatar/index.js';
|
|
8
|
+
import Button from '../buttons/index.js';
|
|
9
|
+
|
|
10
|
+
function LateralMenu({ variant, hiddenButtonHeader, avatar, name, channel, button, listOptions, style }) {
|
|
11
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs(WrapperCard, { style: { ...style }, children: [jsxs(WrapperHeader, { children: [jsx(Avatar, { src: avatar.src, alt: avatar.alt ? avatar.alt : 'Image profile avatar', size: avatar.size ? avatar.size : '80px' }), jsx(NameProfile, { children: name }), channel &&
|
|
12
|
+
jsx(Channel, { children: channel }), !hiddenButtonHeader &&
|
|
13
|
+
jsx(WrapperButton, { children: !channel ?
|
|
14
|
+
jsx(Button, { variant: 'primary', label: button.label, handleClick: (e) => button.onClick(e) })
|
|
15
|
+
:
|
|
16
|
+
jsx(Button, { variant: 'link', label: button.label, handleClick: (e) => button.onClick(e) }) }), jsx(HR, {})] }), listOptions && listOptions.length > 0 && listOptions.map((item, index) => {
|
|
17
|
+
return (jsx(LateralMenu$1, { label: item.label, button: item.button, beginComponent: item.beginComponent, activeBeginIcon: item.activeBeginIcon, hiddenIconDropArrow: item.hiddenIconDropArrow, onClick: (e) => item.onClick(e), selected: item.selected, subItems: item.subItems, style: { width: '100%' } }, index));
|
|
18
|
+
})] }) }));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { LateralMenu as default };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const WrapperCard = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: 24px 0px 12px;
|
|
8
|
+
|
|
9
|
+
position: relative;
|
|
10
|
+
width: 282px;
|
|
11
|
+
height: auto;
|
|
12
|
+
|
|
13
|
+
background: ${({ theme }) => theme.colors.shadeWhite};
|
|
14
|
+
|
|
15
|
+
border: 1px solid #BDBDBD;
|
|
16
|
+
border-radius: 8px;
|
|
17
|
+
`;
|
|
18
|
+
const WrapperHeader = styled.div `
|
|
19
|
+
width: 100%;
|
|
20
|
+
padding-left: 24px;
|
|
21
|
+
padding-right: 24px;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
`;
|
|
27
|
+
const NameProfile = styled.span `
|
|
28
|
+
font-family: 'Work Sans';
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-weight: 500;
|
|
31
|
+
font-size: 20px;
|
|
32
|
+
line-height: 23px;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
text-align: center;
|
|
36
|
+
|
|
37
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
38
|
+
|
|
39
|
+
margin-top: 16px;
|
|
40
|
+
`;
|
|
41
|
+
const Channel = styled.span `
|
|
42
|
+
font-family: 'Work Sans';
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
font-size: 12px;
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
text-align: center;
|
|
49
|
+
|
|
50
|
+
color: ${({ theme }) => theme.colors.neutralsGrey1};
|
|
51
|
+
|
|
52
|
+
margin-top: 4px;
|
|
53
|
+
`;
|
|
54
|
+
const WrapperButton = styled.div `
|
|
55
|
+
margin-top: 10px;
|
|
56
|
+
|
|
57
|
+
`;
|
|
58
|
+
const HR = styled.hr `
|
|
59
|
+
border-top: 1px solid #BDBDBD;
|
|
60
|
+
margin-top: 20px;
|
|
61
|
+
margin-bottom: 20px;
|
|
62
|
+
width: 100%;
|
|
63
|
+
`;
|
|
64
|
+
|
|
65
|
+
export { Channel, HR, NameProfile, WrapperButton, WrapperCard, WrapperHeader };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import '../../shared/global.css.js';
|
|
4
|
+
import { ThemeProvider } from 'styled-components';
|
|
5
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
6
|
+
import { HeaderWrapper, TitleComponent, ClearComponent, TextClear } from './learningStepsStyles.js';
|
|
7
|
+
import { TrashIcon } from '../../shared/icons.js';
|
|
8
|
+
import StepCard from '../step-card/index.js';
|
|
9
|
+
import ScrollContainer from '../scroll-container/index.js';
|
|
10
|
+
|
|
11
|
+
function LearningSteps({ title, onSelected, objectCards, widthCard, marginLeftTitle, marginRightClear, marginsArrowButton, sizeArrowButton, horizontalMarginInternScroll, textClearFilter, textViewMore }) {
|
|
12
|
+
const [itemSelected, setItemSelected] = useState(-1);
|
|
13
|
+
const onItemSelect = (n) => {
|
|
14
|
+
setItemSelected(n);
|
|
15
|
+
onSelected(n);
|
|
16
|
+
};
|
|
17
|
+
function renderCard(item) {
|
|
18
|
+
return (jsx(StepCard, { title: item.title, onClick: () => onItemSelect(item.id), numberPeople: item.numberPeople, className: null, textButtonMore: textViewMore ? textViewMore : 'Ver mais', active: itemSelected == item.id, src: item.photos, width: widthCard }, item.id));
|
|
19
|
+
}
|
|
20
|
+
return (jsxs(ThemeProvider, { theme: FRSTTheme, children: [jsxs(HeaderWrapper, { marginLeft: marginLeftTitle ? marginLeftTitle : '0px', marginRight: marginRightClear ? marginRightClear : '0px', children: [jsx(TitleComponent, { children: title }), jsxs(ClearComponent, { onClick: () => onItemSelect(-1), children: [jsx(TrashIcon, {}), jsx(TextClear, { children: textClearFilter ? textClearFilter : 'Excluir Filtro' })] })] }), jsx(ScrollContainer, { stepMove: 380, isVisibleControlsButtons: true, sizeArrowButton: sizeArrowButton, marginsArrowButton: marginsArrowButton, horizontalMarginInternScroll: horizontalMarginInternScroll, children: objectCards.map(renderCard) })] }));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { LearningSteps as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const HeaderWrapper = styled.div `
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
|
|
8
|
+
margin-left: ${({ marginLeft }) => marginLeft};
|
|
9
|
+
margin-right: ${({ marginRight }) => marginRight};
|
|
10
|
+
|
|
11
|
+
margin-bottom: 5px;
|
|
12
|
+
`;
|
|
13
|
+
const ClearComponent = styled.div `
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row;
|
|
16
|
+
align-items: center;
|
|
17
|
+
color: #0645AD;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
`;
|
|
20
|
+
const TitleComponent = styled.div `
|
|
21
|
+
font-family: 'Work Sans';
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-weight: 700;
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
line-height: 23px;
|
|
26
|
+
letter-spacing: -0.02em;
|
|
27
|
+
`;
|
|
28
|
+
const TextClear = styled.div `
|
|
29
|
+
font-family: 'Work Sans';
|
|
30
|
+
font-style: normal;
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
font-size: 16px;
|
|
33
|
+
line-height: 19px;
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
margin-left: 18px;
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
export { ClearComponent, HeaderWrapper, TextClear, TitleComponent };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { ThemeProvider } from 'styled-components';
|
|
4
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
5
|
+
import '../../shared/global.css.js';
|
|
6
|
+
import { MoreDotsVertical } from '../../shared/icons.js';
|
|
7
|
+
import { ButtonMore, MenuCustom, ButtonMenuNotification, IconOption } from './menuMoreStyles.js';
|
|
8
|
+
import { Box } from '@mui/material';
|
|
9
|
+
|
|
10
|
+
function MenuMore({ iconButton, options, style, closeAfterClick, isHover = true, isArrowInMenu = true, isPaddingInMenu = true, isDarkMode = false, isContainerOptions }) {
|
|
11
|
+
const [listOptions, setListOptions] = useState(options);
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
setListOptions(options);
|
|
14
|
+
}, [options]);
|
|
15
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
16
|
+
const open = Boolean(anchorEl);
|
|
17
|
+
const handleClick = (event) => {
|
|
18
|
+
setAnchorEl(event.currentTarget);
|
|
19
|
+
};
|
|
20
|
+
const handleClose = () => {
|
|
21
|
+
setAnchorEl(null);
|
|
22
|
+
};
|
|
23
|
+
return (jsx(ThemeProvider, { theme: FRSTTheme, children: jsxs("div", { style: { ...style }, children: [jsx(ButtonMore, { id: "basic-button", disableRipple: isHover ? false : true, "aria-controls": "basic-menu", "aria-haspopup": "true", "aria-expanded": open ? 'true' : undefined, onClick: handleClick, children: iconButton ? iconButton : jsx(MoreDotsVertical, { fill: isDarkMode ? "#EBEBEB" : "#444" }) }), listOptions && listOptions?.length > 0 && (jsx(MenuCustom, { id: "basic-menu", anchorOrigin: { vertical: 'bottom', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'right' }, anchorEl: anchorEl, open: open, onClose: handleClose, "$isArrowInMenu": isArrowInMenu, "$isPaddingInMenu": isPaddingInMenu, "$isDarkMode": isDarkMode, children: listOptions.map((itemOption, index) => {
|
|
24
|
+
return (jsx(Box, { children: jsxs(ButtonMenuNotification, { onClick: () => {
|
|
25
|
+
itemOption?.onClick();
|
|
26
|
+
closeAfterClick && handleClose();
|
|
27
|
+
}, "$isColor": itemOption?.color, "$isDarkMode": isDarkMode, disabled: itemOption?.disabled, "$isContainerOptions": isContainerOptions, children: [itemOption?.startIcon && jsx(IconOption, { children: itemOption?.startIcon }), itemOption?.description] }) }, index));
|
|
28
|
+
}) }))] }) }));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { MenuMore as default };
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import Button from '@mui/material/Button';
|
|
2
|
+
import Menu from '@mui/material/Menu';
|
|
3
|
+
import MenuItem from '@mui/material/MenuItem';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
|
|
6
|
+
styled.p `
|
|
7
|
+
color: white;
|
|
8
|
+
padding-left: 5px;
|
|
9
|
+
font-size: 16px;
|
|
10
|
+
`;
|
|
11
|
+
const ButtonMore = styled(Button) `
|
|
12
|
+
width: 30px !important;
|
|
13
|
+
min-width: 30px !important;
|
|
14
|
+
max-width: 30px !important;
|
|
15
|
+
height: 30px !important;
|
|
16
|
+
margin: 0px !important;
|
|
17
|
+
padding: 0px !important;
|
|
18
|
+
display: flex !important;
|
|
19
|
+
justify-content: center !important;
|
|
20
|
+
border-radius: 12px !important;
|
|
21
|
+
background-color: transparent !important;
|
|
22
|
+
`;
|
|
23
|
+
const MenuCustom = styled(Menu) `
|
|
24
|
+
margin-top: ${({ $isArrowInMenu }) => ($isArrowInMenu ? '8px' : '15px')};
|
|
25
|
+
margin-left: 30px;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
|
|
29
|
+
& .MuiPaper-root {
|
|
30
|
+
border-radius: 8px !important;
|
|
31
|
+
box-shadow: 0px 15px 20px -20px rgba(34, 34, 34, 0.15), 0px 3px 10px 0px rgba(0, 0, 0, 0.15);
|
|
32
|
+
overflow: visible;
|
|
33
|
+
background: ${({ $isDarkMode }) => $isDarkMode ? '#1f1f1f' : '#00000000'};
|
|
34
|
+
${({ $isArrowInMenu, $isDarkMode }) => $isArrowInMenu &&
|
|
35
|
+
`&:before {
|
|
36
|
+
content: "";
|
|
37
|
+
position: absolute;
|
|
38
|
+
top: -15px;
|
|
39
|
+
right: 8.5px;
|
|
40
|
+
border-top: 6px solid transparent;
|
|
41
|
+
border-bottom: 10px solid ${$isDarkMode ? '#1f1f1f' : '#EBEBEB'};
|
|
42
|
+
border-left: 8px solid transparent;
|
|
43
|
+
border-right: 8px solid transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:after {
|
|
47
|
+
content: "";
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: -14px;
|
|
50
|
+
right: 8.5px;
|
|
51
|
+
border-top: 6px solid transparent;
|
|
52
|
+
border-bottom: 10px solid ${$isDarkMode ? '#1f1f1f' : '#FFF'};
|
|
53
|
+
border-left: 8px solid transparent;
|
|
54
|
+
border-right: 8px solid transparent;
|
|
55
|
+
}`}
|
|
56
|
+
}
|
|
57
|
+
ul {
|
|
58
|
+
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15), 0px 15px 20px -20px rgba(34, 34, 34, 0.15);
|
|
59
|
+
padding-top: 0px;
|
|
60
|
+
padding-bottom: 0px;
|
|
61
|
+
border: 1px solid ${({ $isDarkMode }) => ($isDarkMode ? '#1f1f1f !important;' : '#EBEBEB !important;')}!important;
|
|
62
|
+
border-radius: 8px !important;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
background: ${({ $isDarkMode }) => ($isDarkMode ? '#1f1f1f !important;' : '#FFF !important;')};
|
|
65
|
+
min-width: 160px;
|
|
66
|
+
width: auto;
|
|
67
|
+
/* &:hover {
|
|
68
|
+
background:${({ $isDarkMode }) => ($isDarkMode ? '#525252 !important;' : '#FFF !important;')};
|
|
69
|
+
border: 1px solid ${({ $isDarkMode }) => ($isDarkMode ? '#525252 !important;' : '#EBEBEB !important;')} !important;
|
|
70
|
+
} */
|
|
71
|
+
li {
|
|
72
|
+
${({ $isPaddingInMenu }) => $isPaddingInMenu && `padding-left: 25px; !important;`}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
`;
|
|
76
|
+
styled(MenuItem) `
|
|
77
|
+
background-color: ${({ theme, $isDarkMode }) => $isDarkMode ? `#1f1f1f !important;` : theme.colors.shadeWhite} !important;
|
|
78
|
+
${({ $isPaddingInMenu }) => $isPaddingInMenu && `padding-right: 45px !important;`}
|
|
79
|
+
margin: 1px!important;
|
|
80
|
+
transition: none !important;
|
|
81
|
+
animation: none !important;
|
|
82
|
+
&:hover {
|
|
83
|
+
background-color: ${({ $isDarkMode }) => ($isDarkMode ? `#525252 !important;` : `#F7F9FC !important;`)};
|
|
84
|
+
}
|
|
85
|
+
&:active {
|
|
86
|
+
background-color: ${({ $isDarkMode }) => ($isDarkMode ? `#525252 !important;` : `#FCF3EB !important;`)};
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
89
|
+
styled(MenuItem) `
|
|
90
|
+
color: white !important;
|
|
91
|
+
background-color: #f5792a !important;
|
|
92
|
+
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: row;
|
|
95
|
+
&:hover {
|
|
96
|
+
background-color: #fd9350 !important;
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
styled.div `
|
|
100
|
+
margin-left: 10px;
|
|
101
|
+
padding-top: 1px;
|
|
102
|
+
font-family: 'PT Sans';
|
|
103
|
+
font-style: normal;
|
|
104
|
+
font-weight: 400;
|
|
105
|
+
font-size: 16px;
|
|
106
|
+
/* line-height: 17.6px; */
|
|
107
|
+
`;
|
|
108
|
+
const IconOption = styled.div `
|
|
109
|
+
/* width: 20px;
|
|
110
|
+
height: 30px; */
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
`;
|
|
115
|
+
const ButtonMenuNotification = styled.button `
|
|
116
|
+
width: 100% !important;
|
|
117
|
+
text-decoration: none !important;
|
|
118
|
+
color: ${({ $isColor }) => ($isColor ? $isColor : `#FFFFF`)} !important;
|
|
119
|
+
padding: ${({ $isContainerOptions }) => $isContainerOptions ? '4px 10px 4px 8px' : ' 6px 16px !important'};
|
|
120
|
+
border: none !important;
|
|
121
|
+
background: transparent !important;
|
|
122
|
+
font-family: 'PT Sans' !important;
|
|
123
|
+
font-style: normal !important;
|
|
124
|
+
font-weight: 400 !important;
|
|
125
|
+
font-size: 16px !important;
|
|
126
|
+
display: flex !important;
|
|
127
|
+
justify-content: start !important;
|
|
128
|
+
align-items: center !important;
|
|
129
|
+
gap: 8px !important;
|
|
130
|
+
cursor: ${({ disabled }) => disabled ? 'default !important' : 'pointer !important'};
|
|
131
|
+
:hover {
|
|
132
|
+
background-color: ${({ $isDarkMode }) => ($isDarkMode ? ` rgb(82, 82, 82) !important` : `#F7F9FC !important;`)};
|
|
133
|
+
}
|
|
134
|
+
`;
|
|
135
|
+
|
|
136
|
+
export { ButtonMenuNotification, ButtonMore, IconOption, MenuCustom };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import '../../shared/global.css.js';
|
|
4
|
+
import { ThemeProvider } from 'styled-components';
|
|
5
|
+
import { FRSTTheme } from '../../theme/index.js';
|
|
6
|
+
import { Button } from './miniButtonStyle.js';
|
|
7
|
+
import Tooltip from '../DS/tooltip/index.js';
|
|
8
|
+
|
|
9
|
+
function MiniButton({ variant, label, disabled, onClick, styles, active, tooltipText, darkMode, configColor }) {
|
|
10
|
+
const [isTooltipActive, setIsTooltipActive] = useState(false);
|
|
11
|
+
const generateButtonComponent = () => (jsx(Button, { onClick: (e) => !disabled && onClick(e), disabled: disabled, variant: variant, style: { ...styles }, active: !!active, isTooltipActive: isTooltipActive, darkMode: darkMode, configColor: configColor, children: label }));
|
|
12
|
+
return (jsx(ThemeProvider, { theme: { ...FRSTTheme }, children: tooltipText ? (jsx(Tooltip, { direction: "bottom", content: tooltipText, trigger: "hover", width: tooltipText.length > 18 ? "220px" : "100px", height: "auto", style: { top: '50px', textAlign: 'center' }, setIsActive: setIsTooltipActive, children: generateButtonComponent() })) : (jsx(Fragment, { children: generateButtonComponent() })) }));
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { MiniButton as default };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Button = styled.div `
|
|
4
|
+
${({ variant, disabled, active, theme, isTooltipActive, darkMode, configColor }) => {
|
|
5
|
+
let styleVariant = {
|
|
6
|
+
'primary': css `
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
align-items: center;
|
|
10
|
+
padding: 4px 16px;
|
|
11
|
+
gap: 8px;
|
|
12
|
+
width: fit-content;
|
|
13
|
+
height: 32px;
|
|
14
|
+
background: ${disabled ? '#BDBDBD' : configColor ? configColor : '#F26818'};
|
|
15
|
+
border-radius: 8px;
|
|
16
|
+
cursor: ${disabled ? 'default' : 'pointer'};
|
|
17
|
+
font-family: 'Work Sans';
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-weight: 700;
|
|
20
|
+
font-size: 16px;
|
|
21
|
+
line-height: 19px;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
color: ${({ theme }) => theme.colors.shadeWhite};
|
|
25
|
+
user-select:none;
|
|
26
|
+
&:hover {
|
|
27
|
+
background: ${disabled ? '#BDBDBD' : configColor ? `${configColor}80` : '#D14211'};
|
|
28
|
+
}
|
|
29
|
+
`,
|
|
30
|
+
'secondary': css `
|
|
31
|
+
font-family: 'PT Sans';
|
|
32
|
+
font-style: normal;
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
font-size: 16px;
|
|
35
|
+
width: fit-content;
|
|
36
|
+
color: ${({ theme }) => disabled ? theme.colors.borderPrimary : (darkMode ? theme.colors.neutralsGrey7 : theme.colors.neutralsGrey2)};
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
user-select:none;
|
|
39
|
+
&:hover {
|
|
40
|
+
color: ${({ theme }) => disabled ? theme.colors.borderPrimary : theme.colors.messageError1};
|
|
41
|
+
}
|
|
42
|
+
&:active {
|
|
43
|
+
color: ${({ theme }) => disabled ? theme.colors.borderPrimary : theme.colors.secondary5};
|
|
44
|
+
text-decoration: underline;
|
|
45
|
+
}
|
|
46
|
+
${active && `color : ${theme.colors.primary1}`}
|
|
47
|
+
`,
|
|
48
|
+
'terciary': css `
|
|
49
|
+
font-family: 'PT Sans';
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-weight: 700;
|
|
52
|
+
font-size: 16px;
|
|
53
|
+
width: fit-content;
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
padding: 4px;
|
|
56
|
+
align-items: center;
|
|
57
|
+
border-radius: 8px;
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
color: ${({ theme }) => disabled ? theme.colors.borderPrimary : (darkMode ? theme.colors.neutralsGrey7 : theme.colors.neutralsGrey2)};
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
user-select:none;
|
|
63
|
+
&:hover {
|
|
64
|
+
background-color: ${({ theme }) => disabled ? theme.colors.borderPrimary : (darkMode ? '#272727' : theme.colors.neutralsGrey9)};
|
|
65
|
+
}
|
|
66
|
+
&:active {
|
|
67
|
+
color: ${({ theme }) => disabled ? theme.colors.borderPrimary : (darkMode ? theme.colors.neutralsGrey7 : theme.colors.neutralsGrey1)};
|
|
68
|
+
background-color: ${({ theme }) => disabled ? theme.colors.borderPrimary : (darkMode ? '#3D3D3D' : theme.colors.neutralsGrey9)};
|
|
69
|
+
}
|
|
70
|
+
${active && `color : ${theme.colors.primary1}`}
|
|
71
|
+
`,
|
|
72
|
+
'active-primary': css `
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: row;
|
|
75
|
+
align-items: center;
|
|
76
|
+
padding: 4px 16px;
|
|
77
|
+
gap: 8px;
|
|
78
|
+
width: fit-content;
|
|
79
|
+
height: 37px;
|
|
80
|
+
background: ${({ theme }) => disabled ? theme.colors.borderPrimary : theme.colors.shadeWhite};
|
|
81
|
+
border-radius: 8px;
|
|
82
|
+
border: solid 2px ${({ theme }) => disabled ? theme.colors.borderPrimary : theme.colors.primary1};
|
|
83
|
+
cursor: ${disabled ? 'default' : 'pointer'};
|
|
84
|
+
font-family: PT Sans;
|
|
85
|
+
font-size: 16px;
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
line-height: 21px;
|
|
88
|
+
letter-spacing: 0em;
|
|
89
|
+
text-align: left;
|
|
90
|
+
color: ${({ theme }) => disabled ? theme.colors.shadeWhite : theme.colors.primary1};
|
|
91
|
+
&:hover {
|
|
92
|
+
background: ${({ theme }) => disabled ? theme.colors.borderPrimary : theme.colors.primary1};
|
|
93
|
+
color: ${({ theme }) => theme.colors.shadeWhite};
|
|
94
|
+
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
${(isTooltipActive || active) && `color : ${theme.colors.shadeWhite};`}
|
|
98
|
+
${(active) && `box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);`}
|
|
99
|
+
${(isTooltipActive || active) && `background : ${theme.colors.primary1};`}
|
|
100
|
+
${disabled && `background : ${theme.colors.borderPrimary};`}
|
|
101
|
+
${disabled && `color : ${theme.colors.shadeWhite};`}
|
|
102
|
+
`
|
|
103
|
+
};
|
|
104
|
+
return styleVariant[variant];
|
|
105
|
+
}}
|
|
106
|
+
`;
|
|
107
|
+
|
|
108
|
+
export { Button };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { Modal, Box, Stack } from '@mui/material';
|
|
3
|
+
import style from './modalBase.module.css.js';
|
|
4
|
+
import { CloseIcon } from '../../../shared/icons.js';
|
|
5
|
+
import Rating from '../../EBR/rating/index.js';
|
|
6
|
+
import { useState, useEffect } from 'react';
|
|
7
|
+
|
|
8
|
+
function ModalBase(props) {
|
|
9
|
+
const [currentRating, setCurrentRating] = useState(props.rating);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (props.rating) {
|
|
12
|
+
setCurrentRating(props.rating);
|
|
13
|
+
}
|
|
14
|
+
}, [props.rating]);
|
|
15
|
+
return (jsx(Modal, { open: props.open, onClose: props.handleClose, children: jsxs(Box, { id: `modal-video${(props.title ? props.title : '').replace(/( )+/g, '')}`, className: style.modalBox, style: {
|
|
16
|
+
height: props.showRating ? '80%' : '400px',
|
|
17
|
+
maxHeight: props.showRating ? '620px' : '400px',
|
|
18
|
+
}, children: [jsxs(Stack, { flexDirection: "row", alignItems: "flex-start", justifyContent: "space-between", px: 3, children: [jsx(Box, { textAlign: "left", children: props.title }), jsx(Box, { className: style.fechar, onClick: props.handleClose, children: jsx(CloseIcon, {}) })] }), jsxs(Box, { p: 3, children: [jsx(Box, { width: "100%", style: {
|
|
19
|
+
display: 'flex',
|
|
20
|
+
justifyContent: 'center'
|
|
21
|
+
}, children: props.children }), props.showRating && (jsx(Box, { style: {
|
|
22
|
+
position: "absolute",
|
|
23
|
+
bottom: "17px",
|
|
24
|
+
right: "25px",
|
|
25
|
+
}, children: jsxs(Box, { style: { maxWidth: 240 }, children: [jsx("p", { style: { textAlign: 'left', fontSize: 14, fontWeight: 400 }, children: props.ratingDescription }), jsx(Box, { style: { display: 'flex', justifyContent: 'flex-end' }, children: jsx(Rating, { isVisibleNumberRating: true, marginStars: "3.5px", orientation: "horizontal", qtdStars: 5, rating: currentRating, sizeStars: 25, handleRating: (e) => {
|
|
26
|
+
setCurrentRating(e);
|
|
27
|
+
props.handleChangeRating(props.recommendationId, e);
|
|
28
|
+
}, disabled: false }) })] }) }))] })] }) }));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { ModalBase as default };
|