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,218 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
interface ParticipantCardI {
|
|
4
|
-
size?: string,
|
|
5
|
-
src?: any,
|
|
6
|
-
disabled?: boolean,
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export const WrapperCard = styled.div`
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
width: 282px;
|
|
14
|
-
height: fit-content;
|
|
15
|
-
|
|
16
|
-
padding: 17px;
|
|
17
|
-
padding-top: 14px;
|
|
18
|
-
|
|
19
|
-
background: ${({ theme }) => theme.colors.shadeWhite};
|
|
20
|
-
border: 1px solid ${({ theme }) => theme.colors.borderPrimary};
|
|
21
|
-
border-radius: 8px;
|
|
22
|
-
`
|
|
23
|
-
|
|
24
|
-
export const WrapperUserInfo = styled.div`
|
|
25
|
-
width: 100%;
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
`
|
|
29
|
-
|
|
30
|
-
export const UserInfo = styled.div`
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
`
|
|
34
|
-
export const DescriptionUser = styled.div`
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
margin-left: 13px;
|
|
38
|
-
`
|
|
39
|
-
export const NameUser = styled.div`
|
|
40
|
-
font-family: 'PT Sans';
|
|
41
|
-
font-style: normal;
|
|
42
|
-
font-weight: 700;
|
|
43
|
-
font-size: 16px;
|
|
44
|
-
line-height: 110%;
|
|
45
|
-
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
|
|
49
|
-
color: #222222;
|
|
50
|
-
word-break: normal;
|
|
51
|
-
|
|
52
|
-
max-width: 100%;
|
|
53
|
-
text-overflow: ellipsis;
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
display: -webkit-box;
|
|
56
|
-
-webkit-line-clamp: 1;
|
|
57
|
-
-webkit-box-orient: vertical;
|
|
58
|
-
word-wrap: break-word;
|
|
59
|
-
|
|
60
|
-
`
|
|
61
|
-
export const EmailUser = styled.div`
|
|
62
|
-
font-family: 'PT Sans';
|
|
63
|
-
font-style: normal;
|
|
64
|
-
font-weight: 700;
|
|
65
|
-
font-size: 12px;
|
|
66
|
-
line-height: 16px;
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
|
|
70
|
-
color: #9C9C9C;
|
|
71
|
-
margin-top: 5px;
|
|
72
|
-
word-break: normal;
|
|
73
|
-
|
|
74
|
-
max-width: 100%;
|
|
75
|
-
|
|
76
|
-
max-width: 100%;
|
|
77
|
-
text-overflow: ellipsis;
|
|
78
|
-
overflow: hidden;
|
|
79
|
-
display: -webkit-box;
|
|
80
|
-
-webkit-line-clamp: 1;
|
|
81
|
-
-webkit-box-orient: vertical;
|
|
82
|
-
word-wrap: break-word;
|
|
83
|
-
`
|
|
84
|
-
|
|
85
|
-
export const UserAdditionalInfo = styled.div`
|
|
86
|
-
display: flex;
|
|
87
|
-
flex-direction: column;
|
|
88
|
-
margin-top: 15px;
|
|
89
|
-
`
|
|
90
|
-
export const Area = styled.div`
|
|
91
|
-
font-family: 'PT Sans';
|
|
92
|
-
font-style: normal;
|
|
93
|
-
font-weight: 700;
|
|
94
|
-
font-size: 16px;
|
|
95
|
-
line-height: 110%;
|
|
96
|
-
/* or 18px */
|
|
97
|
-
|
|
98
|
-
display: flex;
|
|
99
|
-
align-items: center;
|
|
100
|
-
|
|
101
|
-
/* neutrals/grey_1 */
|
|
102
|
-
|
|
103
|
-
color: #222222;
|
|
104
|
-
max-width: 100%;
|
|
105
|
-
|
|
106
|
-
max-width: 100%;
|
|
107
|
-
text-overflow: ellipsis;
|
|
108
|
-
overflow: hidden;
|
|
109
|
-
display: -webkit-box;
|
|
110
|
-
-webkit-line-clamp: 1;
|
|
111
|
-
-webkit-box-orient: vertical;
|
|
112
|
-
word-wrap: break-word;
|
|
113
|
-
`
|
|
114
|
-
export const Position = styled.div`
|
|
115
|
-
font-family: 'PT Sans';
|
|
116
|
-
font-style: normal;
|
|
117
|
-
font-weight: 400;
|
|
118
|
-
font-size: 16px;
|
|
119
|
-
line-height: 110%;
|
|
120
|
-
/* or 18px */
|
|
121
|
-
|
|
122
|
-
display: flex;
|
|
123
|
-
align-items: center;
|
|
124
|
-
|
|
125
|
-
/* neutrals/grey_1 */
|
|
126
|
-
|
|
127
|
-
color: #222222;
|
|
128
|
-
|
|
129
|
-
max-width: 100%;
|
|
130
|
-
text-overflow: ellipsis;
|
|
131
|
-
overflow: hidden;
|
|
132
|
-
display: -webkit-box;
|
|
133
|
-
-webkit-line-clamp: 1;
|
|
134
|
-
-webkit-box-orient: vertical;
|
|
135
|
-
word-wrap: break-word;
|
|
136
|
-
`
|
|
137
|
-
|
|
138
|
-
export const FooterButton = styled.div`
|
|
139
|
-
display: flex;
|
|
140
|
-
flex-direction: row;
|
|
141
|
-
margin-top: 15px;
|
|
142
|
-
justify-content: space-around;
|
|
143
|
-
align-items: center;
|
|
144
|
-
`
|
|
145
|
-
|
|
146
|
-
export const ButtonSend = styled.div`
|
|
147
|
-
display: flex;
|
|
148
|
-
flex-direction: row;
|
|
149
|
-
align-items: center;
|
|
150
|
-
padding-left: 0px;
|
|
151
|
-
padding: 4px 16px;
|
|
152
|
-
gap: 8px;
|
|
153
|
-
|
|
154
|
-
width: 149px;
|
|
155
|
-
height: 32px;
|
|
156
|
-
|
|
157
|
-
/* primary_1 */
|
|
158
|
-
|
|
159
|
-
background: ${({ theme }) => theme.colors.primary1};
|
|
160
|
-
border-radius: 8px;
|
|
161
|
-
|
|
162
|
-
font-family: 'Work Sans';
|
|
163
|
-
font-style: normal;
|
|
164
|
-
font-weight: 700;
|
|
165
|
-
font-size: 12px;
|
|
166
|
-
line-height: 14px;
|
|
167
|
-
color: ${({ theme }) => theme.colors.shadeWhite};
|
|
168
|
-
cursor: pointer;
|
|
169
|
-
margin-left: -13px;
|
|
170
|
-
`
|
|
171
|
-
|
|
172
|
-
export const ButtonRemove = styled.div`
|
|
173
|
-
font-family: 'Work Sans';
|
|
174
|
-
font-style: normal;
|
|
175
|
-
font-weight: 700;
|
|
176
|
-
font-size: 12px;
|
|
177
|
-
line-height: 14px;
|
|
178
|
-
color: #0645AD;
|
|
179
|
-
cursor: pointer;
|
|
180
|
-
`
|
|
181
|
-
|
|
182
|
-
export const ButtonSuccess = styled.div`
|
|
183
|
-
display: flex;
|
|
184
|
-
flex-direction: row;
|
|
185
|
-
align-items: center;
|
|
186
|
-
padding: 4px 16px;
|
|
187
|
-
gap: 8px;
|
|
188
|
-
|
|
189
|
-
width: 159px;
|
|
190
|
-
height: 32px;
|
|
191
|
-
|
|
192
|
-
/* message/success_2 */
|
|
193
|
-
|
|
194
|
-
background: #D1F6D1;
|
|
195
|
-
/* message/success_1 */
|
|
196
|
-
|
|
197
|
-
border: 1px solid #1BA853;
|
|
198
|
-
border-radius: 8px;
|
|
199
|
-
|
|
200
|
-
width: 163px;
|
|
201
|
-
height: 32px;
|
|
202
|
-
cursor: default;
|
|
203
|
-
white-space: nowrap;
|
|
204
|
-
|
|
205
|
-
font-family: 'Work Sans';
|
|
206
|
-
font-style: normal;
|
|
207
|
-
font-weight: 700;
|
|
208
|
-
font-size: 12px;
|
|
209
|
-
line-height: 14px;
|
|
210
|
-
/* identical to box height */
|
|
211
|
-
|
|
212
|
-
display: flex;
|
|
213
|
-
align-items: center;
|
|
214
|
-
|
|
215
|
-
/* neutrals/grey_1 */
|
|
216
|
-
|
|
217
|
-
color: #222222;
|
|
218
|
-
`
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { FRSTTheme } from '../../../theme'
|
|
2
|
-
import { ThemeProvider } from 'styled-components'
|
|
3
|
-
import * as Styles from './thumbListContentStyles'
|
|
4
|
-
import { useEffect, useState } from 'react'
|
|
5
|
-
import { ThumbPodcast, ThumbTexto, ThumbVideo } from '@shared/icons'
|
|
6
|
-
import Button from '@components/buttons'
|
|
7
|
-
import ProgressBar from '@components/LXP/progressBar'
|
|
8
|
-
|
|
9
|
-
type typeThumb = 'video' | 'podcast' | 'question' | 'textual'
|
|
10
|
-
|
|
11
|
-
interface IThumbListContent {
|
|
12
|
-
imageSrc?: string
|
|
13
|
-
typeThumbContent?: typeThumb
|
|
14
|
-
title?: string
|
|
15
|
-
description?: string
|
|
16
|
-
isLoading?: boolean
|
|
17
|
-
textViewMoreButton?: string
|
|
18
|
-
textViewLessButton?: string
|
|
19
|
-
onClickThumb?: () => void
|
|
20
|
-
style?: React.CSSProperties
|
|
21
|
-
textProgressVisualized?: string
|
|
22
|
-
textProgressInProgress?: string
|
|
23
|
-
valueProgress?: number
|
|
24
|
-
tagValue: 'vizualized' | 'inProgress' | 'notVisualized'
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default function ThumbListContent(props: IThumbListContent) {
|
|
28
|
-
const [showMore, setShowMore] = useState(false)
|
|
29
|
-
const [tagVisualized, setTagVisualized] = useState(props.valueProgress)
|
|
30
|
-
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
setTagVisualized(props.valueProgress)
|
|
33
|
-
}, [props.valueProgress])
|
|
34
|
-
|
|
35
|
-
return (
|
|
36
|
-
<ThemeProvider theme={FRSTTheme}>
|
|
37
|
-
{props.isLoading ? (
|
|
38
|
-
<Styles.containerThumbContent style={{ ...props.style }}>
|
|
39
|
-
<Styles.loadingImageThumb></Styles.loadingImageThumb>
|
|
40
|
-
<Styles.loadingThumbContent>
|
|
41
|
-
{props.title && <Styles.loadingContent>a</Styles.loadingContent>}
|
|
42
|
-
<Styles.loadingContent>a</Styles.loadingContent>
|
|
43
|
-
<Styles.loadingContent>a</Styles.loadingContent>
|
|
44
|
-
<Styles.loadingContent>a</Styles.loadingContent>
|
|
45
|
-
<Styles.loadingContent>a</Styles.loadingContent>
|
|
46
|
-
</Styles.loadingThumbContent>
|
|
47
|
-
</Styles.containerThumbContent>
|
|
48
|
-
) : (
|
|
49
|
-
<Styles.containerThumbContent style={{ ...props.style }}>
|
|
50
|
-
{props.imageSrc ? (
|
|
51
|
-
tagVisualized > 0 ? (
|
|
52
|
-
<Styles.shadedThumb>
|
|
53
|
-
<Styles.imageThumbContent
|
|
54
|
-
style={{ backgroundImage: `url(${props.imageSrc})` }}
|
|
55
|
-
onClick={props.onClickThumb}
|
|
56
|
-
>
|
|
57
|
-
<Styles.ProgressAndImg>
|
|
58
|
-
<ProgressBar label="" value={props.valueProgress} />
|
|
59
|
-
</Styles.ProgressAndImg>
|
|
60
|
-
</Styles.imageThumbContent>
|
|
61
|
-
</Styles.shadedThumb>
|
|
62
|
-
) : (
|
|
63
|
-
<Styles.imageThumbContent
|
|
64
|
-
style={{ backgroundImage: `url(${props.imageSrc})` }}
|
|
65
|
-
onClick={props.onClickThumb}
|
|
66
|
-
></Styles.imageThumbContent>
|
|
67
|
-
)
|
|
68
|
-
) : tagVisualized > 0 ? (
|
|
69
|
-
<Styles.shadedThumb>
|
|
70
|
-
<Styles.iconsThumbAndProgress onClick={props.onClickThumb}>
|
|
71
|
-
{props.typeThumbContent === 'video' ? <ThumbVideo width="74" height="74" /> : null}
|
|
72
|
-
{props.typeThumbContent === 'podcast' ? (
|
|
73
|
-
<Styles.IconAndProgress>
|
|
74
|
-
<ThumbPodcast width="74" height="74" />
|
|
75
|
-
</Styles.IconAndProgress>
|
|
76
|
-
) : null}
|
|
77
|
-
{props.typeThumbContent === 'question' ? <ThumbTexto width="74" height="74" /> : null}
|
|
78
|
-
{props.typeThumbContent === 'textual' ? <ThumbTexto width="74" height="74" /> : null}
|
|
79
|
-
<Styles.ProgressIcon>
|
|
80
|
-
<ProgressBar label="" value={props.valueProgress} />
|
|
81
|
-
</Styles.ProgressIcon>
|
|
82
|
-
</Styles.iconsThumbAndProgress>
|
|
83
|
-
</Styles.shadedThumb>
|
|
84
|
-
) : (
|
|
85
|
-
<Styles.iconsThumb onClick={props.onClickThumb}>
|
|
86
|
-
{props.typeThumbContent === 'video' ? <div><ThumbVideo width="74" height="74" /></div> : null}
|
|
87
|
-
{props.typeThumbContent === 'podcast' ? <div><ThumbPodcast width="74" height="74" /></div> : null}
|
|
88
|
-
{props.typeThumbContent === 'question' ? <div><ThumbTexto width="74" height="74" /></div> : null}
|
|
89
|
-
{props.typeThumbContent === 'textual' ? <div><ThumbTexto width="74" height="74" /></div> : null}
|
|
90
|
-
</Styles.iconsThumb>
|
|
91
|
-
)}
|
|
92
|
-
<Styles.infoThumbContent onClick={props.onClickThumb} tagVisualized={props.tagValue}>
|
|
93
|
-
{props.tagValue !== 'notVisualized' ? (
|
|
94
|
-
<>
|
|
95
|
-
{props.tagValue === 'vizualized' ? (
|
|
96
|
-
<Styles.tagThumbContentContainer>
|
|
97
|
-
<Styles.tagThumbContent tagVisualized={props.tagValue}>
|
|
98
|
-
{props.textProgressVisualized}
|
|
99
|
-
</Styles.tagThumbContent>
|
|
100
|
-
</Styles.tagThumbContentContainer>
|
|
101
|
-
) : null}
|
|
102
|
-
{props.tagValue === 'inProgress' ? (
|
|
103
|
-
<Styles.tagThumbContentContainer>
|
|
104
|
-
<Styles.tagThumbContent tagVisualized={props.tagValue}>
|
|
105
|
-
{props.textProgressInProgress}
|
|
106
|
-
</Styles.tagThumbContent>
|
|
107
|
-
</Styles.tagThumbContentContainer>
|
|
108
|
-
) : null}
|
|
109
|
-
</>
|
|
110
|
-
) : null}
|
|
111
|
-
|
|
112
|
-
{props.title ? <span>{props.title}</span> : null}
|
|
113
|
-
<Styles.descriptionThumbContent showText={showMore}> {props.description} </Styles.descriptionThumbContent>
|
|
114
|
-
</Styles.infoThumbContent>
|
|
115
|
-
<Styles.viewMoreContent>
|
|
116
|
-
<Button
|
|
117
|
-
variant="link"
|
|
118
|
-
label={showMore ? props.textViewLessButton : props.textViewMoreButton}
|
|
119
|
-
handleClick={() => setShowMore(!showMore)}
|
|
120
|
-
style={{ fontSize: 12 }}
|
|
121
|
-
/>
|
|
122
|
-
</Styles.viewMoreContent>
|
|
123
|
-
</Styles.containerThumbContent>
|
|
124
|
-
)}
|
|
125
|
-
</ThemeProvider>
|
|
126
|
-
)
|
|
127
|
-
}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import ThumbListContent 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/ThumbListContent',
|
|
8
|
-
component: ThumbListContent
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
12
|
-
const Template = (args) => <ThumbListContent {...args} />
|
|
13
|
-
|
|
14
|
-
export const loading = Template.bind({})
|
|
15
|
-
loading.args = {
|
|
16
|
-
imageSrc: 'https://i.gyazo.com/9024cb0195e65b9f4fc269d29b0a38f4.png',
|
|
17
|
-
typeThumbContent: 'video',
|
|
18
|
-
title: 'Label',
|
|
19
|
-
description:
|
|
20
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.',
|
|
21
|
-
textViewMoreButton: 'Ver mais',
|
|
22
|
-
textViewLessButton: 'Ver menos',
|
|
23
|
-
onClickThumb: () => alert('clicado'),
|
|
24
|
-
isLoading: true,
|
|
25
|
-
style: { width: 375 }
|
|
26
|
-
}
|
|
27
|
-
export const video = Template.bind({})
|
|
28
|
-
video.args = {
|
|
29
|
-
imageSrc: 'img/thumbFoto.png',
|
|
30
|
-
typeThumbContent: 'video',
|
|
31
|
-
title: 'Label',
|
|
32
|
-
description:
|
|
33
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.',
|
|
34
|
-
textViewMoreButton: 'Ver mais',
|
|
35
|
-
textViewLessButton: 'Ver menos',
|
|
36
|
-
onClickThumb: () => alert('clicado'),
|
|
37
|
-
isLoading: false,
|
|
38
|
-
style: { width: 375 },
|
|
39
|
-
textProgressVisualized: 'Visualizado',
|
|
40
|
-
textProgressInProgress: 'Em andamento',
|
|
41
|
-
valueProgress: 82,
|
|
42
|
-
tagValue: 'vizualized'
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const videoSemProgresso = Template.bind({})
|
|
46
|
-
videoSemProgresso.args = {
|
|
47
|
-
imageSrc: 'img/thumbFoto.png',
|
|
48
|
-
typeThumbContent: 'video',
|
|
49
|
-
title: 'Label',
|
|
50
|
-
description:
|
|
51
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.',
|
|
52
|
-
textViewMoreButton: 'Ver mais',
|
|
53
|
-
textViewLessButton: 'Ver menos',
|
|
54
|
-
onClickThumb: () => alert('clicado'),
|
|
55
|
-
isLoading: false,
|
|
56
|
-
style: { width: 375 },
|
|
57
|
-
textProgressVisualized: 'Visualizado',
|
|
58
|
-
textProgressInProgress: 'Em andamento',
|
|
59
|
-
tagValue: 'notVisualized'
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export const videoSemFoto = Template.bind({})
|
|
63
|
-
videoSemFoto.args = {
|
|
64
|
-
imageSrc: '',
|
|
65
|
-
typeThumbContent: 'video',
|
|
66
|
-
title: 'Label',
|
|
67
|
-
description:
|
|
68
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.',
|
|
69
|
-
textViewMoreButton: 'Ver mais',
|
|
70
|
-
textViewLessButton: 'Ver menos',
|
|
71
|
-
onClickThumb: () => alert('clicado'),
|
|
72
|
-
isLoading: false,
|
|
73
|
-
style: { width: 375 },
|
|
74
|
-
textProgressVisualized: 'Visualizado',
|
|
75
|
-
textProgressInProgress: 'Em andamento',
|
|
76
|
-
tagValue: 'notVisualized'
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export const podcastComProgresso = Template.bind({})
|
|
80
|
-
podcastComProgresso.args = {
|
|
81
|
-
imageSrc: '',
|
|
82
|
-
typeThumbContent: 'podcast',
|
|
83
|
-
title: 'Label',
|
|
84
|
-
description:
|
|
85
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.',
|
|
86
|
-
textViewMoreButton: 'Ver mais',
|
|
87
|
-
textViewLessButton: 'Ver menos',
|
|
88
|
-
onClickThumb: () => alert('clicado'),
|
|
89
|
-
isLoading: false,
|
|
90
|
-
style: { width: 375 },
|
|
91
|
-
textProgressVisualized: 'Visualizado',
|
|
92
|
-
textProgressInProgress: 'Em andamento',
|
|
93
|
-
valueProgress: 84,
|
|
94
|
-
tagValue: 'inProgress'
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export const questionario = Template.bind({})
|
|
98
|
-
questionario.args = {
|
|
99
|
-
imageSrc: '',
|
|
100
|
-
typeThumbContent: 'question',
|
|
101
|
-
title: 'Label',
|
|
102
|
-
description:
|
|
103
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.',
|
|
104
|
-
textViewMoreButton: 'Ver mais',
|
|
105
|
-
textViewLessButton: 'Ver menos',
|
|
106
|
-
onClickThumb: () => alert('clicado'),
|
|
107
|
-
isLoading: false,
|
|
108
|
-
style: { width: 375 },
|
|
109
|
-
textProgressVisualized: 'Visualizado',
|
|
110
|
-
textProgressInProgress: 'Em andamento',
|
|
111
|
-
tagValue: 'notVisualized'
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export const questionarioVizualizado = Template.bind({})
|
|
115
|
-
questionarioVizualizado.args = {
|
|
116
|
-
imageSrc: '',
|
|
117
|
-
typeThumbContent: 'video',
|
|
118
|
-
title: 'Label',
|
|
119
|
-
description:
|
|
120
|
-
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididut ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco.',
|
|
121
|
-
textViewMoreButton: 'Ver mais',
|
|
122
|
-
textViewLessButton: 'Ver menos',
|
|
123
|
-
onClickThumb: () => alert('clicado'),
|
|
124
|
-
isLoading: false,
|
|
125
|
-
style: { width: 375 },
|
|
126
|
-
textProgressVisualized: 'Visualizado',
|
|
127
|
-
textProgressInProgress: 'Em andamento',
|
|
128
|
-
tagValue: 'vizualized',
|
|
129
|
-
valueProgress: 84,
|
|
130
|
-
}
|
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
interface content {
|
|
4
|
-
showText?: boolean
|
|
5
|
-
tagVisualized?: string
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export const containerThumbContent = styled.div`
|
|
9
|
-
display: grid;
|
|
10
|
-
grid-template-columns: 0.75fr 1fr;
|
|
11
|
-
position: relative;
|
|
12
|
-
min-width: 250px;
|
|
13
|
-
height: auto;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
background-color: ${({ theme }) => theme.colors.shadeWhite};
|
|
16
|
-
`
|
|
17
|
-
|
|
18
|
-
export const loadingImageThumb = styled.div`
|
|
19
|
-
display: flex;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
background: linear-gradient(90deg, rgba(123, 129, 136, 0) 6.43%, rgba(123, 129, 136, 0.2) 22.38%), #d9d9d9;
|
|
23
|
-
-webkit-animation-duration: 4s;
|
|
24
|
-
-webkit-animation-fill-mode: forwards;
|
|
25
|
-
-webkit-animation-iteration-count: infinite;
|
|
26
|
-
-webkit-animation-name: placeholderShimmer;
|
|
27
|
-
-webkit-animation-timing-function: linear;
|
|
28
|
-
`
|
|
29
|
-
|
|
30
|
-
export const iconsThumbAndProgress = styled.div`
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
height: 100%;
|
|
35
|
-
background-color: #ee8736;
|
|
36
|
-
flex-direction: column;
|
|
37
|
-
`
|
|
38
|
-
|
|
39
|
-
export const iconsThumb = styled.div`
|
|
40
|
-
display: flex;
|
|
41
|
-
height: 100%;
|
|
42
|
-
min-height: 144px;
|
|
43
|
-
background-color: #ee8736;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
justify-content: center;
|
|
46
|
-
align-items: center;
|
|
47
|
-
`
|
|
48
|
-
|
|
49
|
-
export const imageThumbContent = styled.div`
|
|
50
|
-
height: 100%;
|
|
51
|
-
background-repeat: no-repeat;
|
|
52
|
-
background-size: cover;
|
|
53
|
-
background-position: center;
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
justify-content: flex-end;
|
|
57
|
-
`
|
|
58
|
-
|
|
59
|
-
export const loadingThumbContent = styled.div`
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: flex-start;
|
|
62
|
-
align-items: flex-start;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
padding: 16px 16px 16px 16px;
|
|
65
|
-
gap: 4px;
|
|
66
|
-
`
|
|
67
|
-
|
|
68
|
-
export const loadingContent = styled.div`
|
|
69
|
-
background: linear-gradient(90deg, rgba(123, 129, 136, 0) 6.43%, rgba(123, 129, 136, 0.2) 22.38%), #d9d9d9;
|
|
70
|
-
color: transparent;
|
|
71
|
-
border-radius: 16px;
|
|
72
|
-
width: 100%;
|
|
73
|
-
height: 0.45em;
|
|
74
|
-
|
|
75
|
-
-webkit-animation-duration: 4s;
|
|
76
|
-
-webkit-animation-fill-mode: forwards;
|
|
77
|
-
-webkit-animation-iteration-count: infinite;
|
|
78
|
-
-webkit-animation-name: placeholderShimmer;
|
|
79
|
-
-webkit-animation-timing-function: linear;
|
|
80
|
-
|
|
81
|
-
&:first-child {
|
|
82
|
-
width: 50%;
|
|
83
|
-
margin-bottom: 8px;
|
|
84
|
-
}
|
|
85
|
-
&:last-child {
|
|
86
|
-
width: 30%;
|
|
87
|
-
}
|
|
88
|
-
`
|
|
89
|
-
|
|
90
|
-
export const infoThumbContent = styled.div<content>`
|
|
91
|
-
display: flex;
|
|
92
|
-
justify-content: flex-start;
|
|
93
|
-
align-items: flex-start;
|
|
94
|
-
flex-direction: column;
|
|
95
|
-
font-size: 16px;
|
|
96
|
-
padding: 0px 0px 32px 0px;
|
|
97
|
-
gap: 4px;
|
|
98
|
-
font-family: 'PT Sans';
|
|
99
|
-
word-wrap: break-word;
|
|
100
|
-
span {
|
|
101
|
-
color: ${({ theme }) => theme.colors.primary1};
|
|
102
|
-
font-size: 16px;
|
|
103
|
-
font-weight: 700;
|
|
104
|
-
padding-top: ${(props) => (props.tagVisualized === 'notVisualized' ? '16px' : '0px')};
|
|
105
|
-
padding-right: 16px;
|
|
106
|
-
padding-bottom: 0px;
|
|
107
|
-
padding-left: 16px;
|
|
108
|
-
}
|
|
109
|
-
`
|
|
110
|
-
|
|
111
|
-
export const tagThumbContentContainer = styled.div`
|
|
112
|
-
height: 30px;
|
|
113
|
-
width: 100%;
|
|
114
|
-
display: flex;
|
|
115
|
-
justify-content: end;
|
|
116
|
-
`
|
|
117
|
-
export const tagThumbContent = styled.div<content>`
|
|
118
|
-
height: 24px;
|
|
119
|
-
background: ${(props) => (props.tagVisualized === 'vizualized' ? '#2ca92a' : '#851F41')};
|
|
120
|
-
width: 91px;
|
|
121
|
-
border-radius: 0px 0px 0px 8px;
|
|
122
|
-
color: #ffff;
|
|
123
|
-
text-align: center;
|
|
124
|
-
font-weight: 400;
|
|
125
|
-
font-size: 12px;
|
|
126
|
-
line-height: 16px;
|
|
127
|
-
display: flex;
|
|
128
|
-
justify-content: center;
|
|
129
|
-
align-items: center;
|
|
130
|
-
`
|
|
131
|
-
|
|
132
|
-
export const descriptionThumbContent = styled.div<content>`
|
|
133
|
-
font-size: 14px;
|
|
134
|
-
font-weight: 400;
|
|
135
|
-
color: ${({ theme }) => theme.colors.shadeBlack};
|
|
136
|
-
padding: 0px 16px 0px 16px;
|
|
137
|
-
|
|
138
|
-
overflow: hidden;
|
|
139
|
-
text-overflow: ${(props) => (props.showText ? 'none' : 'ellipsis')};
|
|
140
|
-
display: ${(props) => (props.showText ? 'flex' : '-webkit-box')};
|
|
141
|
-
-webkit-line-clamp: ${(props) => (props.showText ? 'none' : 3)};
|
|
142
|
-
-webkit-box-orient: ${(props) => (props.showText ? 'none' : 'vertical')};
|
|
143
|
-
`
|
|
144
|
-
|
|
145
|
-
export const viewMoreContent = styled.div`
|
|
146
|
-
position: absolute;
|
|
147
|
-
right: 0;
|
|
148
|
-
bottom: 0;
|
|
149
|
-
margin: 0px 16px 12px 0px;
|
|
150
|
-
user-select: none;
|
|
151
|
-
`
|
|
152
|
-
|
|
153
|
-
export const shadedThumb = styled.div`
|
|
154
|
-
position: relative;
|
|
155
|
-
height: 100%;
|
|
156
|
-
:after {
|
|
157
|
-
position: absolute;
|
|
158
|
-
display: flex;
|
|
159
|
-
justify-content: center;
|
|
160
|
-
align-items: center;
|
|
161
|
-
top: 0;
|
|
162
|
-
right: 0;
|
|
163
|
-
bottom: 0;
|
|
164
|
-
left: 0;
|
|
165
|
-
content: '';
|
|
166
|
-
background: linear-gradient(360deg, #2d2c2c 7.86%, rgba(117, 117, 117, 0) 61.43%);
|
|
167
|
-
z-index: 1;
|
|
168
|
-
}
|
|
169
|
-
`
|
|
170
|
-
|
|
171
|
-
export const ProgressAndImg = styled.div`
|
|
172
|
-
padding: 0.3rem 0.5rem;
|
|
173
|
-
z-index: 9999;
|
|
174
|
-
position: absolute;
|
|
175
|
-
width: 100%;
|
|
176
|
-
`
|
|
177
|
-
|
|
178
|
-
export const ProgressIcon = styled.div`
|
|
179
|
-
position: absolute;
|
|
180
|
-
bottom: 2px;
|
|
181
|
-
display: flex;
|
|
182
|
-
width: 100%;
|
|
183
|
-
flex-direction: column;
|
|
184
|
-
z-index: 999;
|
|
185
|
-
padding-bottom: 0.3rem;
|
|
186
|
-
padding-left: 0.5rem;
|
|
187
|
-
padding-right: 0.5rem;
|
|
188
|
-
`
|
|
189
|
-
|
|
190
|
-
export const IconAndProgress = styled.div`
|
|
191
|
-
display: flex;
|
|
192
|
-
width: 100%;
|
|
193
|
-
align-items: center;
|
|
194
|
-
justify-content: center;
|
|
195
|
-
flex: 1;
|
|
196
|
-
`
|