frst-components 0.20.0 → 0.20.2
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/package.json +6 -1
- package/.dockerignore +0 -7
- package/.env +0 -1
- package/.github/pull_request_template.md +0 -26
- package/.hintrc +0 -41
- package/.prettierrc +0 -7
- package/.storybook/i18n.js +0 -26
- package/.storybook/main.js +0 -41
- package/.storybook/preview.js +0 -23
- package/.vscode/settings.json +0 -2
- package/Dockerfile +0 -22
- package/declarations.d.ts +0 -4
- package/images.d.ts +0 -4
- package/index.tsx +0 -178
- package/publish.sh +0 -19
- package/rollup.config.js +0 -15
- package/src/components/DS/loading/index.tsx +0 -70
- package/src/components/DS/loading/loading.stories.tsx +0 -31
- package/src/components/DS/loading/loadingStyle.ts +0 -40
- package/src/components/DS/modal/index.stories.tsx +0 -25
- package/src/components/DS/modal/index.tsx +0 -100
- package/src/components/DS/modal/styles.ts +0 -101
- package/src/components/DS/select/Select.tsx +0 -101
- package/src/components/DS/select/SelectContext.tsx +0 -9
- package/src/components/DS/select/SelectItem.tsx +0 -69
- package/src/components/DS/select/index.tsx +0 -18
- package/src/components/DS/select/select.stories.tsx +0 -20
- package/src/components/DS/select/styles/StylesSelect.tsx +0 -100
- package/src/components/DS/tooltip/index.stories.tsx +0 -24
- package/src/components/DS/tooltip/index.tsx +0 -81
- package/src/components/DS/tooltip/styles.ts +0 -155
- package/src/components/DS/tooltip/types.d.ts +0 -21
- package/src/components/EBR/buttons-group/index.d.ts +0 -4
- package/src/components/EBR/buttons-group/index.stories.tsx +0 -23
- package/src/components/EBR/buttons-group/index.tsx +0 -31
- package/src/components/EBR/buttons-group/styles.ts +0 -7
- package/src/components/EBR/group-statistics/groupStatistics.d.ts +0 -6
- package/src/components/EBR/group-statistics/groupStatistics.stories.tsx +0 -89
- package/src/components/EBR/group-statistics/groupStatisticsStyles.ts +0 -63
- package/src/components/EBR/group-statistics/index.tsx +0 -85
- package/src/components/EBR/objective-step/index.tsx +0 -18
- package/src/components/EBR/objective-step/objectiveStep.d.ts +0 -5
- package/src/components/EBR/objective-step/objectiveStep.stories.tsx +0 -24
- package/src/components/EBR/objective-step/objectiveStepStyles.ts +0 -42
- package/src/components/EBR/rating/index.tsx +0 -97
- package/src/components/EBR/rating/rating.d.ts +0 -42
- package/src/components/EBR/rating/rating.stories.tsx +0 -24
- package/src/components/EBR/rating/ratingStyles.ts +0 -25
- package/src/components/EBR/specialist-contact/index.tsx +0 -40
- package/src/components/EBR/specialist-contact/specialistContact.d.ts +0 -13
- package/src/components/EBR/specialist-contact/specialistContact.stories.tsx +0 -26
- package/src/components/EBR/specialist-contact/specialistContactStyles.ts +0 -93
- package/src/components/EBR/stepper/index.d.ts +0 -29
- package/src/components/EBR/stepper/index.stories.tsx +0 -43
- package/src/components/EBR/stepper/index.tsx +0 -7
- package/src/components/EBR/stepper/stepper.tsx +0 -23
- package/src/components/EBR/stepper/stepperItem.tsx +0 -38
- package/src/components/EBR/stepper/styles.ts +0 -140
- package/src/components/EBR/trail-list/index.tsx +0 -82
- package/src/components/EBR/trail-list/trailList.d.ts +0 -6
- package/src/components/EBR/trail-list/trailList.stories.tsx +0 -59
- package/src/components/EBR/trail-list/trailListStyles.ts +0 -54
- package/src/components/FI/bannerProblemFeed/bannerProblemFeed.stories.tsx +0 -355
- package/src/components/FI/bannerProblemFeed/bannerProblemFeedStyles.ts +0 -128
- package/src/components/FI/bannerProblemFeed/index.tsx +0 -388
- package/src/components/FI/bannerSRG/bannerSRG.d.ts +0 -33
- package/src/components/FI/bannerSRG/bannerSRG.stories.tsx +0 -106
- package/src/components/FI/bannerSRG/bannerSRGStyle.ts +0 -226
- package/src/components/FI/bannerSRG/index.tsx +0 -93
- package/src/components/FI/feedInteraction/feedInteraction.stories.tsx +0 -219
- package/src/components/FI/feedInteraction/feedInteractionStyles.ts +0 -142
- package/src/components/FI/feedInteraction/index.tsx +0 -343
- package/src/components/FI/follow/follow.stories.tsx +0 -59
- package/src/components/FI/follow/followStyles.ts +0 -42
- package/src/components/FI/follow/index.tsx +0 -144
- package/src/components/FI/interactionsModal/InteractionsModal.stories.tsx +0 -123
- package/src/components/FI/interactionsModal/InteractionsModalStyles.ts +0 -164
- package/src/components/FI/interactionsModal/index.tsx +0 -106
- package/src/components/FI/interactionsModal/interactionsModal.d.ts +0 -23
- package/src/components/FI/notificationCard/index.tsx +0 -66
- package/src/components/FI/notificationCard/notificationCard.stories.tsx +0 -34
- package/src/components/FI/notificationCard/notificationCardStyles.ts +0 -41
- package/src/components/FI/notificationPopOver/index.tsx +0 -190
- package/src/components/FI/notificationPopOver/notificationPopOver.stories.tsx +0 -117
- package/src/components/FI/notificationPopOver/notificationPopOverStyles.ts +0 -109
- package/src/components/FI/postFeed/index.tsx +0 -188
- package/src/components/FI/postFeed/postFeed.stories.tsx +0 -313
- package/src/components/FI/postFeed/postFeedStyles.ts +0 -188
- package/src/components/FI/searchBox/SearchBox.stories.tsx +0 -34
- package/src/components/FI/searchBox/SearchBoxStyles.ts +0 -21
- package/src/components/FI/searchBox/index.tsx +0 -25
- package/src/components/FI/searchBox/searchBox.d.ts +0 -11
- package/src/components/FI/sessionFilters/index.tsx +0 -160
- package/src/components/FI/sessionFilters/sessionFilters.d.ts +0 -35
- package/src/components/FI/sessionFilters/sessionFilters.stories.tsx +0 -74
- package/src/components/FI/sessionFilters/sessionFiltersStyle.ts +0 -86
- package/src/components/FI/smallSRGBanner/index.tsx +0 -24
- package/src/components/FI/smallSRGBanner/smallSRGBanner.stories.tsx +0 -19
- package/src/components/FI/smallSRGBanner/smallSRGBannerStyles.ts +0 -34
- package/src/components/IJ/ContentCycle/ContentCycle.d.ts +0 -56
- package/src/components/IJ/ContentCycle/ContentCycle.stories.tsx +0 -30
- package/src/components/IJ/ContentCycle/ContentCycleStyles.ts +0 -152
- package/src/components/IJ/ContentCycle/index.tsx +0 -85
- package/src/components/IJ/ListContentCycle/ListContentCycle.d.ts +0 -33
- package/src/components/IJ/ListContentCycle/ListContentCycle.stories.tsx +0 -77
- package/src/components/IJ/ListContentCycle/ListContentCycleStyles.ts +0 -10
- package/src/components/IJ/ListContentCycle/index.tsx +0 -35
- package/src/components/IJ/StepLearningCycle/StepLearningCycle.d.ts +0 -39
- package/src/components/IJ/StepLearningCycle/StepLearningCycle.stories.tsx +0 -24
- package/src/components/IJ/StepLearningCycle/StepLearningCycleStyle.ts +0 -93
- package/src/components/IJ/StepLearningCycle/index.tsx +0 -153
- package/src/components/IJ/favorite/favorite.stories.tsx +0 -19
- package/src/components/IJ/favorite/favoriteStyles.ts +0 -15
- package/src/components/IJ/favorite/index.tsx +0 -44
- package/src/components/IJ/learningCycleCard/components/menu/index.tsx +0 -92
- package/src/components/IJ/learningCycleCard/components/menu/menuStyle.ts +0 -27
- package/src/components/IJ/learningCycleCard/index.tsx +0 -93
- package/src/components/IJ/learningCycleCard/learningCycleCard.d.ts +0 -28
- package/src/components/IJ/learningCycleCard/learningCycleCard.stories.tsx +0 -229
- package/src/components/IJ/learningCycleCard/learningCycleCardStyle.ts +0 -173
- package/src/components/IJ/listSelector/index.tsx +0 -85
- package/src/components/IJ/listSelector/listSelector.stories.tsx +0 -64
- package/src/components/IJ/listSelector/listSelectorStyles.ts +0 -49
- package/src/components/IJ/pagination/index.tsx +0 -155
- package/src/components/IJ/pagination/pagination.stories.tsx +0 -112
- package/src/components/IJ/pagination/paginationStyles.ts +0 -61
- package/src/components/IJ/participantCard/index.tsx +0 -111
- package/src/components/IJ/participantCard/participantCard.d.ts +0 -24
- package/src/components/IJ/participantCard/participantCard.stories.tsx +0 -82
- package/src/components/IJ/participantCard/participantCardStyle.ts +0 -304
- package/src/components/IJ/participantCardOld/index.tsx +0 -108
- package/src/components/IJ/participantCardOld/participantCard.d.ts +0 -23
- package/src/components/IJ/participantCardOld/participantCard.stories.tsx +0 -34
- package/src/components/IJ/participantCardOld/participantCardStyle.ts +0 -218
- package/src/components/IJ/thumbListContent/index.tsx +0 -127
- package/src/components/IJ/thumbListContent/thumbListContent.stories.tsx +0 -130
- package/src/components/IJ/thumbListContent/thumbListContentStyles.ts +0 -196
- package/src/components/LXP/DropdownSelectMultiple/dropdownSelectMultiple.stories.tsx +0 -43
- package/src/components/LXP/DropdownSelectMultiple/index.tsx +0 -77
- package/src/components/LXP/DropdownSelectMultiple/styles/MultiSelectDemo.ts +0 -79
- package/src/components/LXP/DropdownSelectMultiple/styles/MultiSelectItems.css +0 -118
- package/src/components/LXP/DropdownSelectMultiple/styles/icons/DropdownChevron.png +0 -0
- package/src/components/LXP/DropdownSelectMultiple/styles/icons/close.png +0 -0
- package/src/components/LXP/DropdownSelectMultiple/styles/icons/vector.png +0 -0
- package/src/components/LXP/DropdownSelectMultiple/styles/primeflex.css +0 -20970
- package/src/components/LXP/DropdownSelectMultiple/styles/primereact.css +0 -6326
- package/src/components/LXP/DropdownSelectMultiple/styles/theme.css +0 -6515
- package/src/components/LXP/accordionTrack/IAccordionTrack.d.ts +0 -81
- package/src/components/LXP/accordionTrack/accordionTrack.stories.tsx +0 -305
- package/src/components/LXP/accordionTrack/accordionTrack.tsx +0 -402
- package/src/components/LXP/accordionTrack/accordionTrackList.tsx +0 -263
- package/src/components/LXP/accordionTrack/accordionTrackStyle.ts +0 -196
- package/src/components/LXP/accordionTrack/contentCourses.tsx +0 -9
- package/src/components/LXP/accordionTrack/contentCoursesTrails.tsx +0 -304
- package/src/components/LXP/accordionTrack/vectorDown.tsx +0 -26
- package/src/components/LXP/accordionTrack/vectorUp.tsx +0 -26
- package/src/components/LXP/avatarAssociatedChannel/avatarAssociatedChannel.d.ts +0 -10
- package/src/components/LXP/avatarAssociatedChannel/avatarAssociatedChannel.stories.tsx +0 -29
- package/src/components/LXP/avatarAssociatedChannel/avatarAssociatedChannelStyles.ts +0 -92
- package/src/components/LXP/avatarAssociatedChannel/index.tsx +0 -47
- package/src/components/LXP/avatarChannel/avatarChannel.d.ts +0 -13
- package/src/components/LXP/avatarChannel/avatarChannel.stories.tsx +0 -38
- package/src/components/LXP/avatarChannel/avatarChannelStyles.ts +0 -145
- package/src/components/LXP/avatarChannel/index.tsx +0 -112
- package/src/components/LXP/bannerLxp/bannerLxp.stories.tsx +0 -37
- package/src/components/LXP/bannerLxp/bannerLxp.tsx +0 -141
- package/src/components/LXP/bannerLxp/index.tsx +0 -270
- package/src/components/LXP/buttonContent/buttonContent.d.ts +0 -12
- package/src/components/LXP/buttonContent/buttonContent.stories.tsx +0 -23
- package/src/components/LXP/buttonContent/buttonContentStyle.ts +0 -63
- package/src/components/LXP/buttonContent/index.tsx +0 -16
- package/src/components/LXP/calendarLxp/calendar.css +0 -375
- package/src/components/LXP/calendarLxp/calendarLxp.module.css +0 -39
- package/src/components/LXP/calendarLxp/calendarLxp.stories.tsx +0 -19
- package/src/components/LXP/calendarLxp/defaultRanges.tsx +0 -99
- package/src/components/LXP/calendarLxp/index.tsx +0 -72
- package/src/components/LXP/cardLearningCicle/cardLearningCicle.d.ts +0 -16
- package/src/components/LXP/cardLearningCicle/cardLearningCicle.stories.tsx +0 -31
- package/src/components/LXP/cardLearningCicle/cardLearningCicleStyle.ts +0 -118
- package/src/components/LXP/cardLearningCicle/index.tsx +0 -129
- package/src/components/LXP/colorpicker/colorpicker.d.ts +0 -6
- package/src/components/LXP/colorpicker/colorpicker.stories.tsx +0 -18
- package/src/components/LXP/colorpicker/colorpickerStyles.ts +0 -46
- package/src/components/LXP/colorpicker/index.tsx +0 -30
- package/src/components/LXP/contentSwitcher/contentSwitcher.d.ts +0 -12
- package/src/components/LXP/contentSwitcher/contentSwitcher.stories.tsx +0 -26
- package/src/components/LXP/contentSwitcher/contentSwitcherStyle.ts +0 -92
- package/src/components/LXP/contentSwitcher/index.tsx +0 -33
- package/src/components/LXP/contentThumbnails/contentThumbnails.d.ts +0 -21
- package/src/components/LXP/contentThumbnails/contentThumbnails.stories.tsx +0 -106
- package/src/components/LXP/contentThumbnails/contentThumbnailsStyle.ts +0 -170
- package/src/components/LXP/contentThumbnails/index.tsx +0 -208
- package/src/components/LXP/contentThumbnails/vectorDown.tsx +0 -26
- package/src/components/LXP/contentThumbnails/vectorEllipse.tsx +0 -38
- package/src/components/LXP/contentThumbnails/vectorUp.tsx +0 -26
- package/src/components/LXP/extraContent/adminExtraContent.tsx +0 -127
- package/src/components/LXP/extraContent/extraContent.d.ts +0 -42
- package/src/components/LXP/extraContent/extraContent.module.css +0 -24
- package/src/components/LXP/extraContent/extraContent.stories.tsx +0 -96
- package/src/components/LXP/extraContent/index.tsx +0 -27
- package/src/components/LXP/extraContent/richTextEditor/components.tsx +0 -194
- package/src/components/LXP/extraContent/richTextEditor/index.tsx +0 -262
- package/src/components/LXP/extraContent/studentExtraContent.tsx +0 -160
- package/src/components/LXP/fileUpload/FileUpload.d.ts +0 -14
- package/src/components/LXP/fileUpload/FileUpload.stories.tsx +0 -29
- package/src/components/LXP/fileUpload/fileUploadStyles.ts +0 -86
- package/src/components/LXP/fileUpload/index.tsx +0 -51
- package/src/components/LXP/headerContent/headerContent.stories.tsx +0 -94
- package/src/components/LXP/headerContent/headerContent.ts +0 -216
- package/src/components/LXP/headerContent/index.tsx +0 -121
- package/src/components/LXP/headerContent/selectedCountCircle.tsx +0 -14
- package/src/components/LXP/login/index.tsx +0 -410
- package/src/components/LXP/login/login.d.ts +0 -50
- package/src/components/LXP/login/login.stories.tsx +0 -98
- package/src/components/LXP/login/loginStyle.ts +0 -290
- package/src/components/LXP/manageLerningCicles/index.tsx +0 -70
- package/src/components/LXP/manageLerningCicles/manageLearningCicles.Style.ts +0 -88
- package/src/components/LXP/manageLerningCicles/manageLearningCicles.d.ts +0 -12
- package/src/components/LXP/manageLerningCicles/manageLearningCicles.stories.tsx +0 -23
- package/src/components/LXP/participantThumbnails/index.tsx +0 -85
- package/src/components/LXP/participantThumbnails/participantThumbnails.stories.tsx +0 -19
- package/src/components/LXP/participantThumbnails/participantThumbnails.ts +0 -114
- package/src/components/LXP/participantThumbnailsList/index.tsx +0 -64
- package/src/components/LXP/participantThumbnailsList/participantThumbnailsList.stories.tsx +0 -93
- package/src/components/LXP/participantThumbnailsList/participantThumbnailsList.ts +0 -114
- package/src/components/LXP/permission/index.tsx +0 -223
- package/src/components/LXP/permission/permission.d.ts +0 -16
- package/src/components/LXP/permission/permission.stories.tsx +0 -28
- package/src/components/LXP/permission/permissionStyle.ts +0 -52
- package/src/components/LXP/popOver/index.tsx +0 -111
- package/src/components/LXP/popOver/popOver.d.ts +0 -30
- package/src/components/LXP/popOver/popOver.stories.tsx +0 -128
- package/src/components/LXP/popOver/popOverStyle.ts +0 -130
- package/src/components/LXP/popOverLXP-antigo/index.tsx +0 -48
- package/src/components/LXP/popOverLXP-antigo/popOverLXP.d.ts +0 -9
- package/src/components/LXP/popOverLXP-antigo/popOverLXP.stories.tsx +0 -103
- package/src/components/LXP/popOverLXP-antigo/popOverLXPStyles.ts +0 -121
- package/src/components/LXP/progressBar/index.tsx +0 -18
- package/src/components/LXP/progressBar/progressBar.d.ts +0 -8
- package/src/components/LXP/progressBar/progressBar.stories.tsx +0 -18
- package/src/components/LXP/progressBar/progressStyle.ts +0 -28
- package/src/components/LXP/searchResults/index.tsx +0 -36
- package/src/components/LXP/searchResults/searchResults.d.ts +0 -11
- package/src/components/LXP/searchResults/searchResults.stories.tsx +0 -23
- package/src/components/LXP/searchResults/searchResultsStyles.ts +0 -63
- package/src/components/LXP/selectLXP/SelectLXP.tsx +0 -170
- package/src/components/LXP/selectLXP/SelectLXPContext.tsx +0 -9
- package/src/components/LXP/selectLXP/SelectLXPItem.tsx +0 -63
- package/src/components/LXP/selectLXP/index.tsx +0 -16
- package/src/components/LXP/selectLXP/selectLXP.stories.tsx +0 -20
- package/src/components/LXP/star-metric/index.tsx +0 -28
- package/src/components/LXP/star-metric/starMetric.d.ts +0 -6
- package/src/components/LXP/star-metric/starMetric.stories.tsx +0 -18
- package/src/components/LXP/star-metric/starMetricStyles.ts +0 -17
- package/src/components/LXP/thumbnails/thumbnails.d.ts +0 -36
- package/src/components/LXP/thumbnails/thumbnails.stories.tsx +0 -48
- package/src/components/LXP/thumbnails/thumbnails.tsx +0 -217
- package/src/components/LXP/thumbnails/thumbnailsDraggable.tsx +0 -73
- package/src/components/LXP/thumbnails/thumbnailsStyle.ts +0 -183
- package/src/components/LXP/thumbnails/vectorCross.tsx +0 -25
- package/src/components/LXP/thumbnails/vectorEllipse.tsx +0 -38
- package/src/components/LXP/tooltip/index.tsx +0 -15
- package/src/components/LXP/tooltip/tooltip.stories.tsx +0 -19
- package/src/components/LXP/tooltip/tooltipStyle.ts +0 -114
- package/src/components/LXP/urlAddress/index.tsx +0 -30
- package/src/components/LXP/urlAddress/urlAddress.d.ts +0 -10
- package/src/components/LXP/urlAddress/urlAddress.stories.tsx +0 -21
- package/src/components/LXP/urlAddress/urlAddressStyle.ts +0 -61
- package/src/components/LXP/video/Video.d.ts +0 -19
- package/src/components/LXP/video/Video.stories.tsx +0 -95
- package/src/components/LXP/video/index.tsx +0 -22
- package/src/components/LogoFRST/index.tsx +0 -34
- package/src/components/LogoFRST/logoFRST.module.css +0 -27
- package/src/components/LogoFRST/logoFRST.stories.tsx +0 -38
- package/src/components/accordion-tabs/accordionTabs.d.ts +0 -19
- package/src/components/accordion-tabs/accordionTabs.stories.tsx +0 -34
- package/src/components/accordion-tabs/accordionTabsStyles.ts +0 -114
- package/src/components/accordion-tabs/index.tsx +0 -77
- package/src/components/audio-player/Royalty.mp3 +0 -0
- package/src/components/audio-player/audioPlayer.stories.tsx +0 -39
- package/src/components/audio-player/audioPlayerStyles.ts +0 -314
- package/src/components/audio-player/index.tsx +0 -209
- package/src/components/avatar/avatar.d.ts +0 -8
- package/src/components/avatar/avatar.stories.tsx +0 -21
- package/src/components/avatar/avatarStyles.ts +0 -23
- package/src/components/avatar/index.tsx +0 -21
- package/src/components/buttons/buttonStyle.ts +0 -339
- package/src/components/buttons/buttons.stories.tsx +0 -52
- package/src/components/buttons/buttonsWithIcons.stories.tsx +0 -57
- package/src/components/buttons/index.tsx +0 -90
- package/src/components/calendar/calendar.stories.tsx +0 -156
- package/src/components/calendar/calendarStyle.ts +0 -209
- package/src/components/calendar/index.tsx +0 -157
- package/src/components/card-trail/cardTrail.stories.tsx +0 -167
- package/src/components/card-trail/cardTrailStyle.ts +0 -31
- package/src/components/card-trail/index.tsx +0 -160
- package/src/components/card-trail/moduleStyle.ts +0 -98
- package/src/components/card-trail-carousel/cardsTrailsCarousel.d.ts +0 -13
- package/src/components/card-trail-carousel/cardsTrailsCarousel.stories.tsx +0 -152
- package/src/components/card-trail-carousel/index.tsx +0 -47
- package/src/components/cardLT/AvatarWithInfo/avatarWithInfo.module.css +0 -20
- package/src/components/cardLT/AvatarWithInfo/avatarWithInfo.stories.tsx +0 -18
- package/src/components/cardLT/AvatarWithInfo/index.tsx +0 -55
- package/src/components/cardLT/AvatarWithInfo/vector.tsx +0 -25
- package/src/components/cardLT/BannerProblem/BannerProblem.d.ts +0 -98
- package/src/components/cardLT/BannerProblem/BannerProblem.module.css +0 -113
- package/src/components/cardLT/BannerProblem/BannerProblem.stories.tsx +0 -191
- package/src/components/cardLT/BannerProblem/index.tsx +0 -433
- package/src/components/cardLT/BannerProblem/styles.ts +0 -16
- package/src/components/cardLT/MessageBox/MessageBox.module.css +0 -142
- package/src/components/cardLT/MessageBox/icons/errorIcon.tsx +0 -19
- package/src/components/cardLT/MessageBox/icons/successIcon.tsx +0 -18
- package/src/components/cardLT/MessageBox/icons/warningIcon.tsx +0 -20
- package/src/components/cardLT/MessageBox/index.tsx +0 -124
- package/src/components/cardLT/MessageBox/messageBox.stories.tsx +0 -53
- package/src/components/cardLT/Rating/Rating.module.css +0 -50
- package/src/components/cardLT/Rating/index.tsx +0 -92
- package/src/components/cardLT/Rating/rating.stories.tsx +0 -34
- package/src/components/cardLT/Rating/starIcon.tsx +0 -24
- package/src/components/cardLT/RatingCurtidas/RatingCurtidas.module.css +0 -16
- package/src/components/cardLT/RatingCurtidas/index.tsx +0 -80
- package/src/components/cardLT/RatingCurtidas/ratingCurtidas.stories.tsx +0 -21
- package/src/components/cardLT/RocketButton/RocketButton.stories.tsx +0 -28
- package/src/components/cardLT/RocketButton/RocketButtonIcon.tsx +0 -36
- package/src/components/cardLT/RocketButton/index.tsx +0 -57
- package/src/components/cardLT/StepsMission/Planet.module.css +0 -137
- package/src/components/cardLT/StepsMission/StepMission.tsx +0 -220
- package/src/components/cardLT/StepsMission/Steps.tsx +0 -116
- package/src/components/cardLT/StepsMission/planet.stories.tsx +0 -73
- package/src/components/cardLT/StepsMission/planetSteps.d.ts +0 -40
- package/src/components/cardLT/StepsMission/planets/jupter.png +0 -0
- package/src/components/cardLT/StepsMission/planets/lock.png +0 -0
- package/src/components/cardLT/StepsMission/planets/marte.png +0 -0
- package/src/components/cardLT/StepsMission/planets/netuno.png +0 -0
- package/src/components/cardLT/StepsMission/planets/saturno.png +0 -0
- package/src/components/cardLT/StepsMission/planets/urano.png +0 -0
- package/src/components/cardLT/TextIcon/TextIcon.module.css +0 -8
- package/src/components/cardLT/TextIcon/index.tsx +0 -64
- package/src/components/cardLT/TextIcon/starIcon.tsx +0 -27
- package/src/components/cardLT/TextIcon/textIcon.stories.tsx +0 -21
- package/src/components/cardLT/selectCard/avatarWithInfo.module.css +0 -20
- package/src/components/cardLT/selectCard/avatarWithInfo.stories.tsx +0 -19
- package/src/components/cardLT/selectCard/index.tsx +0 -55
- package/src/components/cardLT/selectCard/vector.tsx +0 -25
- package/src/components/cards/base/base.stories.tsx +0 -23
- package/src/components/cards/base/index.tsx +0 -10
- package/src/components/cards/cardDefinicaoProblema/cardDefinicaoProblema.module.css +0 -88
- package/src/components/cards/cardDefinicaoProblema/cardDefinicaoProblema.stories.tsx +0 -95
- package/src/components/cards/cardDefinicaoProblema/index.tsx +0 -98
- package/src/components/cards/cardProblem/cardProblem.module.css +0 -114
- package/src/components/cards/cardProblem/cardProblem.stories.tsx +0 -164
- package/src/components/cards/cardProblem/index.tsx +0 -251
- package/src/components/cards/cardProblemGestor/cardProblemaGestor.module.css +0 -99
- package/src/components/cards/cardProblemGestor/cardProblemaGestor.stories.tsx +0 -78
- package/src/components/cards/cardProblemGestor/index.tsx +0 -105
- package/src/components/cards/cardResultConquista/Icons/Aprendizado.png +0 -0
- package/src/components/cards/cardResultConquista/Icons/AprendizadoPressed.png +0 -0
- package/src/components/cards/cardResultConquista/Icons/Conquista.png +0 -0
- package/src/components/cards/cardResultConquista/Icons/ConquistaPressed.png +0 -0
- package/src/components/cards/cardResultConquista/cardResultConquista.module.css +0 -52
- package/src/components/cards/cardResultConquista/cardResultConquista.stories.tsx +0 -35
- package/src/components/cards/cardResultConquista/index.tsx +0 -76
- package/src/components/cards/user/index.tsx +0 -204
- package/src/components/cards/user/user.stories.tsx +0 -172
- package/src/components/challenge-cards/challengeCard.d.ts +0 -17
- package/src/components/challenge-cards/challengeCard.stories.tsx +0 -43
- package/src/components/challenge-cards/challengeCardStyles.ts +0 -266
- package/src/components/challenge-cards/dropdownMenuStyle.ts +0 -87
- package/src/components/challenge-cards/index.tsx +0 -308
- package/src/components/checkmark/checkmark.d.ts +0 -11
- package/src/components/checkmark/checkmark.stories.tsx +0 -23
- package/src/components/checkmark/checkmarkStyles.ts +0 -27
- package/src/components/checkmark/index.tsx +0 -61
- package/src/components/commentary-box/commentaryBox.d.ts +0 -41
- package/src/components/commentary-box/commentaryBox.stories.tsx +0 -57
- package/src/components/commentary-box/commentaryBox.utils.ts +0 -31
- package/src/components/commentary-box/commentaryBoxStyles.ts +0 -271
- package/src/components/commentary-box/index.tsx +0 -260
- package/src/components/conquistaCarrossel/conquistaCarrossel.d.ts +0 -13
- package/src/components/conquistaCarrossel/conquistaCarrossel.stories.tsx +0 -163
- package/src/components/conquistaCarrossel/index.tsx +0 -56
- package/src/components/demo/stepController/StepControllerStyle.ts +0 -46
- package/src/components/demo/stepController/index.tsx +0 -54
- package/src/components/demo/stepController/stepController.stories.tsx +0 -22
- package/src/components/dropdown-profile-menu/dropdownProfileMenu.d.ts +0 -28
- package/src/components/dropdown-profile-menu/dropdownProfileMenu.stories.tsx +0 -91
- package/src/components/dropdown-profile-menu/dropdownProfileMenuStyle.ts +0 -171
- package/src/components/dropdown-profile-menu/index.tsx +0 -203
- package/src/components/emoji-picker/emojiPicker.stories.tsx +0 -20
- package/src/components/emoji-picker/index.tsx +0 -60
- package/src/components/exclusive-class/exclusiveClass.d.ts +0 -8
- package/src/components/exclusive-class/exclusiveClass.stories.tsx +0 -19
- package/src/components/exclusive-class/exclusiveClassStyles.ts +0 -39
- package/src/components/exclusive-class/index.tsx +0 -33
- package/src/components/field-search-dropdown/fieldSearch.d.ts +0 -36
- package/src/components/field-search-dropdown/fieldSearch.stories.tsx +0 -92
- package/src/components/field-search-dropdown/fieldSearchStyle.ts +0 -150
- package/src/components/field-search-dropdown/index.tsx +0 -233
- package/src/components/filter-accordion-checkbox/filterAccordionCheckbox.d.ts +0 -7
- package/src/components/filter-accordion-checkbox/filterAccordionCheckbox.stories.tsx +0 -101
- package/src/components/filter-accordion-checkbox/filterAccordionCheckbox.utils.ts +0 -7
- package/src/components/filter-accordion-checkbox/filterAccordionCheckboxStyles.ts +0 -2
- package/src/components/filter-accordion-checkbox/index.tsx +0 -188
- package/src/components/form-elements/checkbox/checkbox.d.ts +0 -9
- package/src/components/form-elements/checkbox/checkbox.stories.tsx +0 -20
- package/src/components/form-elements/checkbox/checkboxStyle.ts +0 -40
- package/src/components/form-elements/checkbox/index.tsx +0 -33
- package/src/components/form-elements/textarea/index.tsx +0 -6
- package/src/components/form-elements/textarea/textArea.stories.tsx +0 -27
- package/src/components/form-elements/textfield/index.tsx +0 -104
- package/src/components/form-elements/textfield/textField.stories.tsx +0 -124
- package/src/components/form-elements/textfield/textFieldStyle.ts +0 -213
- package/src/components/global-menu/components/customMenu/index.tsx +0 -1
- package/src/components/global-menu/globalMenu.d.ts +0 -66
- package/src/components/global-menu/globalMenu.stories.tsx +0 -959
- package/src/components/global-menu/globalMenuStyles.ts +0 -197
- package/src/components/global-menu/index.tsx +0 -1336
- package/src/components/headerChallenge/headerChallenge.stories.tsx +0 -20
- package/src/components/headerChallenge/headerChallengeStyle.ts +0 -102
- package/src/components/headerChallenge/index.tsx +0 -17
- package/src/components/index.tsx +0 -46
- package/src/components/input-comment/index.tsx +0 -178
- package/src/components/input-comment/inputComment.d.ts +0 -16
- package/src/components/input-comment/inputComment.stories.tsx +0 -26
- package/src/components/input-comment/inputComment.utils.ts +0 -7
- package/src/components/input-comment/inputCommentStyles.ts +0 -116
- package/src/components/item-lateral-menu/index.tsx +0 -87
- package/src/components/item-lateral-menu/itemLateralMenu.d.ts +0 -30
- package/src/components/item-lateral-menu/itemLateralMenu.stories.tsx +0 -159
- package/src/components/item-lateral-menu/itemLateralMenuStyles.ts +0 -131
- package/src/components/item-menu-global/index.tsx +0 -36
- package/src/components/item-menu-global/itemMenuGlobal.d.ts +0 -16
- package/src/components/item-menu-global/itemMenuGlobal.stories.tsx +0 -40
- package/src/components/item-menu-global/itemMenuGlobalStyles.ts +0 -73
- package/src/components/languages-dropdown/index.tsx +0 -102
- package/src/components/languages-dropdown/languagesDropdown.d.ts +0 -13
- package/src/components/languages-dropdown/languagesDropdown.stories.tsx +0 -38
- package/src/components/languages-dropdown/languagesDropdownStyles.ts +0 -66
- package/src/components/lateral-menu/index.tsx +0 -68
- package/src/components/lateral-menu/lateralMenu.d.ts +0 -17
- package/src/components/lateral-menu/lateralMenu.stories.tsx +0 -429
- package/src/components/lateral-menu/lateralMenuStyles.ts +0 -68
- package/src/components/learning-steps/index.tsx +0 -67
- package/src/components/learning-steps/learningSteps.d.ts +0 -16
- package/src/components/learning-steps/learningSteps.stories.tsx +0 -123
- package/src/components/learning-steps/learningStepsStyles.ts +0 -46
- package/src/components/menu-more/index.tsx +0 -79
- package/src/components/menu-more/menuMore.d.ts +0 -15
- package/src/components/menu-more/menuMore.stories.tsx +0 -76
- package/src/components/menu-more/menuMoreStyles.ts +0 -123
- package/src/components/modal/modalLearningTech/index.tsx +0 -67
- package/src/components/modal/modalLearningTech/modalLearningTech.module.css +0 -79
- package/src/components/modal/modalLearningTech/modalLearningTech.stories.tsx +0 -60
- package/src/components/modal/modalVideo/index.tsx +0 -129
- package/src/components/modal/modalVideo/modalVideo.module.css +0 -27
- package/src/components/modal/modalVideo/modalVideo.stories.tsx +0 -41
- package/src/components/modal/statusProblema/fecharIcon.tsx +0 -18
- package/src/components/modal/statusProblema/index.tsx +0 -124
- package/src/components/modal/statusProblema/problemaFRST.png +0 -0
- package/src/components/modal/statusProblema/statusProblema.module.css +0 -154
- package/src/components/modal/statusProblema/statusProblema.stories.tsx +0 -27
- package/src/components/quantidadeDesafios/imgSetas/setasDesafios.svg +0 -60
- package/src/components/quantidadeDesafios/index.tsx +0 -152
- package/src/components/quantidadeDesafios/quantidadeDesafios.stories.tsx +0 -49
- package/src/components/quantidadeDesafios/quantidadeDesafios.ts +0 -121
- package/src/components/sandbox.stories.tsx +0 -18
- package/src/components/scroll-container/index.tsx +0 -189
- package/src/components/scroll-container/scrollContainer.d.ts +0 -17
- package/src/components/scroll-container/scrollContainer.stories.tsx +0 -45
- package/src/components/scroll-container/scrollContainer.utils.ts +0 -11
- package/src/components/scroll-container/scrollContainerStyles.ts +0 -93
- package/src/components/search-field/index.tsx +0 -48
- package/src/components/search-field/searchField.d.ts +0 -13
- package/src/components/search-field/searchField.stories.tsx +0 -40
- package/src/components/search-field/searchFieldStyles.ts +0 -100
- package/src/components/select/Select.tsx +0 -170
- package/src/components/select/SelectContext.tsx +0 -9
- package/src/components/select/SelectItem.tsx +0 -63
- package/src/components/select/index.tsx +0 -16
- package/src/components/select/select.stories.tsx +0 -20
- package/src/components/speech-bubble/index.tsx +0 -29
- package/src/components/speech-bubble/speechBubble.d.ts +0 -10
- package/src/components/speech-bubble/speechBubble.stories.tsx +0 -20
- package/src/components/speech-bubble/speechBubbleStyles.ts +0 -121
- package/src/components/step-card/index.tsx +0 -48
- package/src/components/step-card/stepCard.d.ts +0 -12
- package/src/components/step-card/stepCard.stories.tsx +0 -26
- package/src/components/step-card/stepCardStyles.ts +0 -109
- package/src/components/tag/base.stories.tsx +0 -52
- package/src/components/tag/index.tsx +0 -59
- package/src/components/totalizer-card/index.tsx +0 -29
- package/src/components/totalizer-card/totalizerCard.d.ts +0 -10
- package/src/components/totalizer-card/totalizerCard.stories.tsx +0 -34
- package/src/components/totalizer-card/totalizerCardStyles.ts +0 -97
- package/src/icons.stories.tsx +0 -321
- package/src/shared/global.css +0 -146
- package/src/shared/globalComponentsStyle.ts +0 -88
- package/src/shared/icons.tsx +0 -3544
- package/src/shared/stories/AlertCicle.stories.tsx +0 -17
- package/src/shared/stories/CheckInCicleIcon.stories.tsx +0 -19
- package/src/shared/stories/CloseInCicleIcon.stories.tsx +0 -19
- package/src/shared/stories/DotIcon.stories.tsx +0 -17
- package/src/shared/stories/MoreDotsHorizontal.stories.tsx +0 -17
- package/src/theme/index.ts +0 -6
- package/src/theme/tokens.ts +0 -196
- package/tsconfig.json +0 -39
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import Button from '@components/buttons'
|
|
2
|
-
import { IContentCycleProps } from './ContentCycle'
|
|
3
|
-
import * as S from './ContentCycleStyles'
|
|
4
|
-
import * as Icons from '../../../shared/icons'
|
|
5
|
-
import ModalVideo from '@components/modal/modalVideo'
|
|
6
|
-
import { useState } from 'react'
|
|
7
|
-
import Tooltip from '@components/LXP/tooltip'
|
|
8
|
-
export default function ContentCycle({
|
|
9
|
-
title,
|
|
10
|
-
description,
|
|
11
|
-
selected,
|
|
12
|
-
listSkils,
|
|
13
|
-
urlPhoto,
|
|
14
|
-
urlVideo,
|
|
15
|
-
titleVideo,
|
|
16
|
-
progress,
|
|
17
|
-
started,
|
|
18
|
-
stepContent,
|
|
19
|
-
onSelect,
|
|
20
|
-
typeContent,
|
|
21
|
-
id
|
|
22
|
-
}: IContentCycleProps) {
|
|
23
|
-
const [openModal, setOpenModal] = useState(false)
|
|
24
|
-
|
|
25
|
-
const defaultImage = {
|
|
26
|
-
video: 'https://lxp-cdn.frstfalconi.cloud/upload_content_video.png',
|
|
27
|
-
podcast: ' https://lxp-cdn.frstfalconi.cloud/upload_content_podcast.png',
|
|
28
|
-
text: 'https://lxp-cdn.frstfalconi.cloud/upload_content_text.png'
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return (
|
|
32
|
-
<S.Container className={selected && 'selected'} onClick={() => onSelect()} id={id}>
|
|
33
|
-
<S.Thumbnail>
|
|
34
|
-
<img src={urlPhoto ? urlPhoto : defaultImage[typeContent]} alt={title} />
|
|
35
|
-
</S.Thumbnail>
|
|
36
|
-
<S.Content>
|
|
37
|
-
<S.Article>
|
|
38
|
-
<S.Options>
|
|
39
|
-
<S.Title>{title}</S.Title>
|
|
40
|
-
{stepContent && (
|
|
41
|
-
<Tooltip position="top" textTooltip="Remover">
|
|
42
|
-
<Icons.Trash />
|
|
43
|
-
</Tooltip>
|
|
44
|
-
)}
|
|
45
|
-
</S.Options>
|
|
46
|
-
<S.Description>{description}</S.Description>
|
|
47
|
-
</S.Article>
|
|
48
|
-
<S.SkillsList>
|
|
49
|
-
<p className="title">Competencias: </p>
|
|
50
|
-
{listSkils.map((skill, index) => {
|
|
51
|
-
return (
|
|
52
|
-
<S.Skill key={index} id={skill}>
|
|
53
|
-
{skill}
|
|
54
|
-
</S.Skill>
|
|
55
|
-
)
|
|
56
|
-
})}
|
|
57
|
-
</S.SkillsList>
|
|
58
|
-
{started ? (
|
|
59
|
-
<S.ContentBarProgess>
|
|
60
|
-
<S.BarProgress>
|
|
61
|
-
<S.Progress progress={progress}></S.Progress>
|
|
62
|
-
</S.BarProgress>
|
|
63
|
-
<p>{progress}%</p>
|
|
64
|
-
</S.ContentBarProgess>
|
|
65
|
-
) : (
|
|
66
|
-
<Button
|
|
67
|
-
startIcon={<Icons.PlayLineIcon fill="#0645AD" />}
|
|
68
|
-
variant="link"
|
|
69
|
-
label="Ver Teaser"
|
|
70
|
-
handleClick={() => setOpenModal(true)}
|
|
71
|
-
sizeIcon="24px"
|
|
72
|
-
/>
|
|
73
|
-
)}
|
|
74
|
-
</S.Content>
|
|
75
|
-
<ModalVideo
|
|
76
|
-
timeBegin={0}
|
|
77
|
-
open={openModal}
|
|
78
|
-
handleClose={() => setOpenModal(false)}
|
|
79
|
-
videoUrl={urlVideo}
|
|
80
|
-
nameVideo={titleVideo}
|
|
81
|
-
title={titleVideo}
|
|
82
|
-
/>
|
|
83
|
-
</S.Container>
|
|
84
|
-
)
|
|
85
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { IContentCycleProps } from './../ContentCycle/ContentCycle.d'
|
|
3
|
-
|
|
4
|
-
export type IListContentCycleProps = {
|
|
5
|
-
/**
|
|
6
|
-
* @prop {boolean} stepContentCompleted: Durante a criação de um novo ciclo, a fase de selecionar os conteudos ja foi concluida
|
|
7
|
-
* Default: false
|
|
8
|
-
*/
|
|
9
|
-
stepContentCompleted?: boolean
|
|
10
|
-
/**
|
|
11
|
-
* @prop {IContentCycleProps[]} listContent: Lista de conteudos
|
|
12
|
-
*/
|
|
13
|
-
listContent: IContentCycleProps[]
|
|
14
|
-
/**
|
|
15
|
-
* @prop {(id:number)} onSelect:
|
|
16
|
-
* função para selecionar um conteudo
|
|
17
|
-
* const onSelect = (id: number) => {
|
|
18
|
-
const newList = listContent.map((content, index) => {
|
|
19
|
-
if (index === id) {
|
|
20
|
-
return {
|
|
21
|
-
...content,
|
|
22
|
-
selected: !content.selected
|
|
23
|
-
}
|
|
24
|
-
} else {
|
|
25
|
-
return content
|
|
26
|
-
}
|
|
27
|
-
})
|
|
28
|
-
setListContent(newList)
|
|
29
|
-
}
|
|
30
|
-
*/
|
|
31
|
-
onSelect: (id: number) => void
|
|
32
|
-
}
|
|
33
|
-
const
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import ListContentCycle from './index'
|
|
3
|
-
|
|
4
|
-
export default {
|
|
5
|
-
title: 'IJ/ListContentCycle',
|
|
6
|
-
component: ListContentCycle
|
|
7
|
-
}
|
|
8
|
-
const Template = (args) => <ListContentCycle {...args} />
|
|
9
|
-
export const normal = Template.bind({})
|
|
10
|
-
normal.args = {
|
|
11
|
-
listContent: [
|
|
12
|
-
{
|
|
13
|
-
id: 'cttLQI02',
|
|
14
|
-
title: 'Liderança que inspira',
|
|
15
|
-
description: `Description bacon ipsum dolor amet landjaeger pastrami pork belly flank shankle ground round.
|
|
16
|
-
Chicken tri-tip alcatra, pastrami buffalo pork chop shoulder drumstick ham hock landjaeger. Short
|
|
17
|
-
loin hamburger tri-tip, chuck flank pork chop doner porchetta. Tenderloin tri-tip meatloaf cow brisket
|
|
18
|
-
`,
|
|
19
|
-
selected: false,
|
|
20
|
-
listSkils: ['Liderança', 'colaboração'],
|
|
21
|
-
urlPhoto: '',
|
|
22
|
-
urlVideo: 'https://vimeo.com/367756121',
|
|
23
|
-
titleVideo: 'Um video Legal',
|
|
24
|
-
progress: 0,
|
|
25
|
-
started: false,
|
|
26
|
-
typeContent: 'video'
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
id: 'cttLQI03',
|
|
30
|
-
title: 'Liderança que inspira',
|
|
31
|
-
description: `Description bacon ipsum dolor amet landjaeger pastrami pork belly flank shankle ground round.
|
|
32
|
-
Chicken tri-tip alcatra, pastrami buffalo pork chop shoulder drumstick ham hock landjaeger. Short
|
|
33
|
-
loin hamburger tri-tip, chuck flank pork chop doner porchetta. Tenderloin tri-tip meatloaf cow brisket
|
|
34
|
-
`,
|
|
35
|
-
selected: false,
|
|
36
|
-
listSkils: ['Liderança', 'colaboração'],
|
|
37
|
-
urlPhoto: '',
|
|
38
|
-
urlVideo: 'https://vimeo.com/367756121',
|
|
39
|
-
titleVideo: 'Um video Legal',
|
|
40
|
-
progress: 0,
|
|
41
|
-
started: false,
|
|
42
|
-
typeContent: 'text'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
id: 'cttLQI04',
|
|
46
|
-
title: 'Liderança que inspira',
|
|
47
|
-
description: `Description bacon ipsum dolor amet landjaeger pastrami pork belly flank shankle ground round.
|
|
48
|
-
Chicken tri-tip alcatra, pastrami buffalo pork chop shoulder drumstick ham hock landjaeger. Short
|
|
49
|
-
loin hamburger tri-tip, chuck flank pork chop doner porchetta. Tenderloin tri-tip meatloaf cow brisket
|
|
50
|
-
`,
|
|
51
|
-
selected: false,
|
|
52
|
-
listSkils: ['Liderança', 'colaboração'],
|
|
53
|
-
urlPhoto: '',
|
|
54
|
-
urlVideo: 'https://vimeo.com/367756121',
|
|
55
|
-
titleVideo: 'Um video Legal',
|
|
56
|
-
progress: 0,
|
|
57
|
-
started: false,
|
|
58
|
-
typeContent: 'podcast'
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
id: 'cttLQI05',
|
|
62
|
-
title: 'Liderança que inspira',
|
|
63
|
-
description: `Description bacon ipsum dolor amet landjaeger pastrami pork belly flank shankle ground round.
|
|
64
|
-
Chicken tri-tip alcatra, pastrami buffalo pork chop shoulder drumstick ham hock landjaeger. Short
|
|
65
|
-
loin hamburger tri-tip, chuck flank pork chop doner porchetta. Tenderloin tri-tip meatloaf cow brisket
|
|
66
|
-
`,
|
|
67
|
-
selected: false,
|
|
68
|
-
listSkils: ['Liderança', 'colaboração'],
|
|
69
|
-
urlPhoto: 'https://lxp-cdn.frstfalconi.cloud/Thumb.png',
|
|
70
|
-
urlVideo: 'https://vimeo.com/367756121',
|
|
71
|
-
titleVideo: 'Um video Legal',
|
|
72
|
-
progress: 0,
|
|
73
|
-
started: false,
|
|
74
|
-
typeContent: 'text'
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
2
|
-
import ContentCycle from '../ContentCycle'
|
|
3
|
-
import { IListContentCycleProps } from './ListContentCycle'
|
|
4
|
-
import * as S from './ListContentCycleStyles'
|
|
5
|
-
|
|
6
|
-
export default function ListContentCycle({
|
|
7
|
-
stepContentCompleted = false,
|
|
8
|
-
listContent,
|
|
9
|
-
onSelect
|
|
10
|
-
}: IListContentCycleProps) {
|
|
11
|
-
return (
|
|
12
|
-
<S.Container>
|
|
13
|
-
{listContent.map((content, index) => {
|
|
14
|
-
return (
|
|
15
|
-
<ContentCycle
|
|
16
|
-
key={content.id}
|
|
17
|
-
id={content.id}
|
|
18
|
-
description={content.description}
|
|
19
|
-
onSelect={() => onSelect(index)}
|
|
20
|
-
selected={content.selected}
|
|
21
|
-
title={content.title}
|
|
22
|
-
listSkils={content.listSkils}
|
|
23
|
-
urlPhoto={content.urlPhoto}
|
|
24
|
-
urlVideo={content.urlVideo}
|
|
25
|
-
titleVideo={content.titleVideo}
|
|
26
|
-
progress={content.progress}
|
|
27
|
-
started={content.started}
|
|
28
|
-
stepContent={stepContentCompleted}
|
|
29
|
-
typeContent={content.typeContent}
|
|
30
|
-
/>
|
|
31
|
-
)
|
|
32
|
-
})}
|
|
33
|
-
</S.Container>
|
|
34
|
-
)
|
|
35
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
export type StepLearningCycle = {
|
|
4
|
-
/**
|
|
5
|
-
* @prop {string} title: Titulo do step
|
|
6
|
-
*/
|
|
7
|
-
title: string
|
|
8
|
-
/**
|
|
9
|
-
* @prop {string} description: descrição do step
|
|
10
|
-
*/
|
|
11
|
-
description?: string
|
|
12
|
-
/**
|
|
13
|
-
* @prop {string} status: Status do step
|
|
14
|
-
*/
|
|
15
|
-
status: string
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type StepsLearningCycle = {
|
|
19
|
-
/**
|
|
20
|
-
* @prop {boolean} completed: Todas as etapas foram concluidas
|
|
21
|
-
*/
|
|
22
|
-
completed: boolean
|
|
23
|
-
/**
|
|
24
|
-
* @prop {StepLearningCycle[]} listSteps: Lista com os steps
|
|
25
|
-
*/
|
|
26
|
-
listSteps: StepLearningCycle[]
|
|
27
|
-
/**
|
|
28
|
-
* @prop {()=>void} setListSteps: Lista com os steps
|
|
29
|
-
*/
|
|
30
|
-
setListSteps: (listSteps: StepLearningCycle[]) => void
|
|
31
|
-
/**
|
|
32
|
-
* @prop {string} direction: Orientação da lista (Vertical ou horizontal)
|
|
33
|
-
*/
|
|
34
|
-
direction: 'row' | 'column'
|
|
35
|
-
/**
|
|
36
|
-
* @prop {string} size: Orientação da lista (Vertical ou horizontal)
|
|
37
|
-
*/
|
|
38
|
-
size: 'small' | 'medium' | 'large'
|
|
39
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import StepLearningCycle from './index'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
title: 'IJ/StepLearningCycle',
|
|
7
|
-
component: StepLearningCycle
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const Template = (args) => <StepLearningCycle {...args} />
|
|
11
|
-
|
|
12
|
-
export const normal = Template.bind({})
|
|
13
|
-
normal.args = {
|
|
14
|
-
listSteps: [
|
|
15
|
-
{ title: 'Criar ciclo de aprendizagem', description: '', status: 'finished' },
|
|
16
|
-
{
|
|
17
|
-
title: 'Grupo de participantes',
|
|
18
|
-
description: 'Crie ou selecione um grupo de participantes para relacioná-lo a um ou mais conteúdos.',
|
|
19
|
-
status: 'inProgress'
|
|
20
|
-
},
|
|
21
|
-
{ title: 'Conteúdos', description: '', status: 'waiting' },
|
|
22
|
-
{ title: 'Calendário', description: '', status: 'waiting' }
|
|
23
|
-
]
|
|
24
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
export const ContainerStepLearningCycle = styled.div`
|
|
4
|
-
background: #f7f9fc;
|
|
5
|
-
border-bottom: 1px solid #bdbdbd;
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
|
|
8
|
-
&&.row {
|
|
9
|
-
width: 100%;
|
|
10
|
-
padding: 25px;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: row;
|
|
13
|
-
align-items: flex-start;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&&.column {
|
|
17
|
-
width: 18.5rem;
|
|
18
|
-
gap: 30px;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
padding: 24px;
|
|
22
|
-
}
|
|
23
|
-
`
|
|
24
|
-
export const StepCycle = styled.div`
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
align-items: flex-start;
|
|
28
|
-
justify-content: flex-start;
|
|
29
|
-
gap: 10px;
|
|
30
|
-
|
|
31
|
-
> p {
|
|
32
|
-
max-width: 250px;
|
|
33
|
-
margin-left: 15%;
|
|
34
|
-
font-family: 'PT Sans';
|
|
35
|
-
font-style: normal;
|
|
36
|
-
font-weight: 400;
|
|
37
|
-
line-height: 110%;
|
|
38
|
-
color: #444444;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&&.finished {
|
|
42
|
-
color: #444444;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&&.inProgress {
|
|
46
|
-
color: #000000;
|
|
47
|
-
}
|
|
48
|
-
&&.waiting {
|
|
49
|
-
color: #9c9c9c;
|
|
50
|
-
}
|
|
51
|
-
`
|
|
52
|
-
export const StepCycleArticle = styled.article`
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-direction: row;
|
|
55
|
-
align-items: flex-start;
|
|
56
|
-
justify-content: flex-start;
|
|
57
|
-
gap: 10px;
|
|
58
|
-
color: inherit;
|
|
59
|
-
> h2 {
|
|
60
|
-
margin: 0;
|
|
61
|
-
font-family: 'Work Sans';
|
|
62
|
-
font-style: normal;
|
|
63
|
-
font-weight: 700;
|
|
64
|
-
font-size: 24px;
|
|
65
|
-
line-height: 130%;
|
|
66
|
-
color: inherit;
|
|
67
|
-
}
|
|
68
|
-
`
|
|
69
|
-
|
|
70
|
-
export const IconStatus = styled.span`
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: center;
|
|
74
|
-
border-radius: 50%;
|
|
75
|
-
font-weight: 500;
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
|
|
78
|
-
&&.finished {
|
|
79
|
-
border: 2px solid #2ca92a;
|
|
80
|
-
background: #d1f6d1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
&&.inProgress {
|
|
84
|
-
border: 2px solid #0645ad;
|
|
85
|
-
|
|
86
|
-
color: #0645ad;
|
|
87
|
-
}
|
|
88
|
-
&&.waiting {
|
|
89
|
-
border: 2px solid rgba(138, 153, 168, 0.5);
|
|
90
|
-
|
|
91
|
-
color: rgba(0, 0, 0, 0.65);
|
|
92
|
-
}
|
|
93
|
-
`
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { Icon } from '@mui/material'
|
|
2
|
-
import React, { useEffect, useState } from 'react'
|
|
3
|
-
import { StepsLearningCycle } from './StepLearningCycle'
|
|
4
|
-
import * as S from './StepLearningCycleStyle'
|
|
5
|
-
import * as Icons from '../../../shared/icons'
|
|
6
|
-
export default function StepLearningCycle({
|
|
7
|
-
listSteps,
|
|
8
|
-
setListSteps,
|
|
9
|
-
direction = 'row',
|
|
10
|
-
size = 'medium',
|
|
11
|
-
completed = false
|
|
12
|
-
}: StepsLearningCycle) {
|
|
13
|
-
const [stepsList, setStepsList] = useState<any>(listSteps)
|
|
14
|
-
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
if (completed) {
|
|
17
|
-
const newSteps = listSteps.map((step) => {
|
|
18
|
-
return {
|
|
19
|
-
...step,
|
|
20
|
-
status: 'finished'
|
|
21
|
-
}
|
|
22
|
-
})
|
|
23
|
-
setStepsList(newSteps)
|
|
24
|
-
setListSteps(newSteps)
|
|
25
|
-
}
|
|
26
|
-
}, [completed])
|
|
27
|
-
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
setStepsList(listSteps)
|
|
30
|
-
}, [listSteps])
|
|
31
|
-
|
|
32
|
-
const handleChangeStep = (id: number) => {
|
|
33
|
-
const newListStep = stepsList.map((step, index) => {
|
|
34
|
-
if (index < id) {
|
|
35
|
-
return {
|
|
36
|
-
...step,
|
|
37
|
-
status: 'finished'
|
|
38
|
-
}
|
|
39
|
-
} else if (index === id) {
|
|
40
|
-
return {
|
|
41
|
-
...step,
|
|
42
|
-
status: 'inProgress'
|
|
43
|
-
}
|
|
44
|
-
} else {
|
|
45
|
-
return {
|
|
46
|
-
...step,
|
|
47
|
-
status: 'waiting'
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
})
|
|
51
|
-
|
|
52
|
-
setStepsList(newListStep)
|
|
53
|
-
setListSteps(newListStep)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const variantsChek = {
|
|
57
|
-
large: {
|
|
58
|
-
width: '14.17px',
|
|
59
|
-
heigth: '11px'
|
|
60
|
-
},
|
|
61
|
-
medium: {
|
|
62
|
-
width: '9.45px',
|
|
63
|
-
heigth: '7.33px'
|
|
64
|
-
},
|
|
65
|
-
small: {
|
|
66
|
-
width: '8px',
|
|
67
|
-
heigth: '6px'
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const variantsSize = {
|
|
72
|
-
large: {
|
|
73
|
-
icon: {
|
|
74
|
-
width: '46px',
|
|
75
|
-
height: '36px',
|
|
76
|
-
fontSize: '18px'
|
|
77
|
-
},
|
|
78
|
-
title: {
|
|
79
|
-
fontWeight: 700,
|
|
80
|
-
fontSize: '24px',
|
|
81
|
-
lineHeight: '130%'
|
|
82
|
-
},
|
|
83
|
-
description: {
|
|
84
|
-
fontSize: '16px',
|
|
85
|
-
marginLeft: '51px'
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
medium: {
|
|
90
|
-
icon: {
|
|
91
|
-
width: '29px',
|
|
92
|
-
height: '24px',
|
|
93
|
-
fontSize: '16px',
|
|
94
|
-
lineHeight: '19px'
|
|
95
|
-
},
|
|
96
|
-
title: {
|
|
97
|
-
fontWeight: 500,
|
|
98
|
-
fontSize: '18px',
|
|
99
|
-
lineHeight: '21px'
|
|
100
|
-
},
|
|
101
|
-
description: {
|
|
102
|
-
fontSize: '14px',
|
|
103
|
-
marginLeft: '39px'
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
small: {
|
|
107
|
-
icon: {
|
|
108
|
-
width: '20px',
|
|
109
|
-
height: '17px',
|
|
110
|
-
fontSize: '1px'
|
|
111
|
-
},
|
|
112
|
-
title: {
|
|
113
|
-
fontWeight: 500,
|
|
114
|
-
fontSize: '16px',
|
|
115
|
-
lineHeight: '19px'
|
|
116
|
-
},
|
|
117
|
-
description: {
|
|
118
|
-
display: 'none'
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return (
|
|
124
|
-
<S.ContainerStepLearningCycle className={direction}>
|
|
125
|
-
{stepsList &&
|
|
126
|
-
stepsList.map((step, i) => {
|
|
127
|
-
return (
|
|
128
|
-
<S.StepCycle key={i + 1} className={step.status}>
|
|
129
|
-
<S.StepCycleArticle>
|
|
130
|
-
<S.IconStatus
|
|
131
|
-
className={step.status}
|
|
132
|
-
style={variantsSize[size].icon}
|
|
133
|
-
onClick={() => handleChangeStep(i)}
|
|
134
|
-
>
|
|
135
|
-
{step.status === 'finished' ? (
|
|
136
|
-
<Icons.CheckIconSimple height={variantsChek[size].heigth} width={variantsChek[size].width} />
|
|
137
|
-
) : (
|
|
138
|
-
i + 1
|
|
139
|
-
)}
|
|
140
|
-
</S.IconStatus>
|
|
141
|
-
|
|
142
|
-
<h2 style={variantsSize[size].title}>{step.title}</h2>
|
|
143
|
-
</S.StepCycleArticle>
|
|
144
|
-
|
|
145
|
-
{step.status === 'inProgress' && step.description && (
|
|
146
|
-
<p style={variantsSize[size].description}>{step.description}</p>
|
|
147
|
-
)}
|
|
148
|
-
</S.StepCycle>
|
|
149
|
-
)
|
|
150
|
-
})}
|
|
151
|
-
</S.ContainerStepLearningCycle>
|
|
152
|
-
)
|
|
153
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import Favorite from './index'
|
|
4
|
-
|
|
5
|
-
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
6
|
-
export default {
|
|
7
|
-
title: 'IJ/Favorite',
|
|
8
|
-
component: Favorite
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
12
|
-
const Template = (args) => <Favorite {...args} />
|
|
13
|
-
|
|
14
|
-
export const normal = Template.bind({})
|
|
15
|
-
normal.args = {
|
|
16
|
-
variant: 'default',
|
|
17
|
-
disable: false,
|
|
18
|
-
action: () => alert('clicou')
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
export const SFavorite = styled.div`
|
|
4
|
-
padding: 12px 20px;
|
|
5
|
-
background-color: transparent;
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
width: 64px;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
|
|
12
|
-
&.disable {
|
|
13
|
-
cursor: not-allowed;
|
|
14
|
-
}
|
|
15
|
-
`
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react'
|
|
2
|
-
import { SFavorite } from './favoriteStyles'
|
|
3
|
-
import { StarFavorite } from '@shared/icons'
|
|
4
|
-
export type IFavoriteProps = {
|
|
5
|
-
variant: 'default' | 'pressed'
|
|
6
|
-
disable?: boolean
|
|
7
|
-
action: Function
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export default function Favorite({ variant, disable = false, action }: IFavoriteProps) {
|
|
11
|
-
const types = {
|
|
12
|
-
default: {
|
|
13
|
-
name: 'default',
|
|
14
|
-
fill: '#E0E0E0',
|
|
15
|
-
stroke: '#BDBDBD'
|
|
16
|
-
},
|
|
17
|
-
pressed: {
|
|
18
|
-
name: 'pressed',
|
|
19
|
-
fill: '#FFD600',
|
|
20
|
-
stroke: '#FDAE15'
|
|
21
|
-
},
|
|
22
|
-
disabled: {
|
|
23
|
-
name: 'disabled',
|
|
24
|
-
fill: '#757575',
|
|
25
|
-
stroke: '#BDBDBD'
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
const [status, setStatus] = useState(types[variant])
|
|
29
|
-
|
|
30
|
-
function handleSetStatus() {
|
|
31
|
-
const newStatus = status.name === 'default' ? 'pressed' : 'default'
|
|
32
|
-
setStatus(types[newStatus])
|
|
33
|
-
action()
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
useEffect(() => {
|
|
37
|
-
setStatus(types[!disable ? variant : 'disabled'])
|
|
38
|
-
}, [disable])
|
|
39
|
-
return (
|
|
40
|
-
<SFavorite onClick={!disable && handleSetStatus} className={disable && 'disable'}>
|
|
41
|
-
<StarFavorite fill={status.fill} stroke={status.stroke} />
|
|
42
|
-
</SFavorite>
|
|
43
|
-
)
|
|
44
|
-
}
|