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,77 +0,0 @@
|
|
|
1
|
-
import '../../shared/global.css'
|
|
2
|
-
import { ThemeProvider } from 'styled-components'
|
|
3
|
-
import { FRSTTheme } from '../../theme'
|
|
4
|
-
import { IAccordionTabs } from './accordionTabs'
|
|
5
|
-
import { TrashIcon, DropdownIcon } from '@shared/icons'
|
|
6
|
-
|
|
7
|
-
import { WrapperHeaderTabs, TitleAccordion, DropIcon,
|
|
8
|
-
ContainerTitleTabs, ContainerCleanAction, TextClean,
|
|
9
|
-
TitleTabWrapper, TextTitleTab, TextTotalTab, WrapperContent,
|
|
10
|
-
TitleCurrentTabOpened } from './accordionTabsStyles'
|
|
11
|
-
import React,{ useLayoutEffect, useState } from 'react'
|
|
12
|
-
|
|
13
|
-
export default function AccordionTabs({
|
|
14
|
-
titleAccordion, typeAccordion, typeButtonTab, titleTabs,
|
|
15
|
-
handleActiveTab, activeTabID, hasCleanButton, handleActionClean,
|
|
16
|
-
textCleanButton, hasCounterTab, children, style }: IAccordionTabs) {
|
|
17
|
-
|
|
18
|
-
useLayoutEffect(() => {
|
|
19
|
-
const scrollContainer = document.getElementById("scrollTabsAccordion");
|
|
20
|
-
|
|
21
|
-
scrollContainer.addEventListener("wheel", (evt) => {
|
|
22
|
-
evt.preventDefault();
|
|
23
|
-
scrollContainer.scrollLeft += evt.deltaY;
|
|
24
|
-
});
|
|
25
|
-
}, []);
|
|
26
|
-
|
|
27
|
-
const getCurrentTabOpened = () => {
|
|
28
|
-
let nameTab = titleTabs.find((element: any) => element.id == activeTabID)
|
|
29
|
-
|
|
30
|
-
if(nameTab && nameTab.description) return nameTab.description;
|
|
31
|
-
else if(nameTab && nameTab.title) return nameTab.title;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const renderTitles = (item: any) => {
|
|
35
|
-
let isOpened = item.id == activeTabID;
|
|
36
|
-
|
|
37
|
-
let TabComponent =
|
|
38
|
-
<TitleTabWrapper typeButton={typeButtonTab} status={isOpened} onClick={() => handleActiveTab(item.id)} key={item.id}>
|
|
39
|
-
<TextTitleTab> { item.title } </TextTitleTab>
|
|
40
|
-
{ hasCounterTab && item.totalCounter > 0 &&
|
|
41
|
-
<TextTotalTab> ({item.totalCounter}) </TextTotalTab> }
|
|
42
|
-
<DropIcon status={isOpened}>
|
|
43
|
-
<DropdownIcon fill={FRSTTheme['colors'].linkOnfocus}/>
|
|
44
|
-
</DropIcon>
|
|
45
|
-
</TitleTabWrapper>
|
|
46
|
-
|
|
47
|
-
return TabComponent;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<ThemeProvider theme={FRSTTheme}>
|
|
52
|
-
<div style={{ width:'100%', ...style}}>
|
|
53
|
-
{ titleAccordion && <TitleAccordion> { titleAccordion } </TitleAccordion> }
|
|
54
|
-
|
|
55
|
-
{ typeAccordion == 'horizontal' ? (
|
|
56
|
-
<WrapperHeaderTabs>
|
|
57
|
-
<ContainerTitleTabs id="scrollTabsAccordion">
|
|
58
|
-
{ titleTabs.map(renderTitles) }
|
|
59
|
-
</ContainerTitleTabs>
|
|
60
|
-
|
|
61
|
-
{ hasCleanButton &&
|
|
62
|
-
<ContainerCleanAction onClick={() => handleActionClean('limpar') } >
|
|
63
|
-
<TrashIcon width='14px' height='17px'/>
|
|
64
|
-
<TextClean> { textCleanButton } </TextClean>
|
|
65
|
-
</ContainerCleanAction> }
|
|
66
|
-
</WrapperHeaderTabs>
|
|
67
|
-
) : null }
|
|
68
|
-
</div>
|
|
69
|
-
<WrapperContent status={activeTabID != '-1'}>
|
|
70
|
-
<div style={{ width:'100%', ...style}}>
|
|
71
|
-
{ getCurrentTabOpened() && <TitleCurrentTabOpened> { getCurrentTabOpened() } </TitleCurrentTabOpened>}
|
|
72
|
-
{ children }
|
|
73
|
-
</div>
|
|
74
|
-
</WrapperContent>
|
|
75
|
-
</ThemeProvider>
|
|
76
|
-
)
|
|
77
|
-
}
|
|
Binary file
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import AudioPlayer from './index'
|
|
3
|
-
import Royalty from './Royalty.mp3'
|
|
4
|
-
|
|
5
|
-
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
6
|
-
export default {
|
|
7
|
-
title: 'base/AudioPlayer',
|
|
8
|
-
component: AudioPlayer,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
12
|
-
const Template = (args) => <AudioPlayer {...args} />
|
|
13
|
-
|
|
14
|
-
export const normal = Template.bind({})
|
|
15
|
-
normal.args = {
|
|
16
|
-
audio: 'https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3',
|
|
17
|
-
startAt: 90,
|
|
18
|
-
coverImage: 'https://i.gyazo.com/002fc9811582004a947a954e5c83d784.png',
|
|
19
|
-
title: 'T4:e02 - Human Made: Coragem, Criatividade e Resiliência',
|
|
20
|
-
description: 'FIRST THINGS FRST - Gente que transforma o futuro',
|
|
21
|
-
date: '10/05/2023',
|
|
22
|
-
volume: 0.7,
|
|
23
|
-
onProgress: (e) => console.log('onProgress: ', e),
|
|
24
|
-
onEnded: (e) => console.log('onEnded: ', 'Fim'),
|
|
25
|
-
style: {width: 814},
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export const SemCapa = Template.bind({})
|
|
29
|
-
SemCapa.args = {
|
|
30
|
-
audio: Royalty,
|
|
31
|
-
startAt: 90,
|
|
32
|
-
title: 'T4:e02 - Human Made: Coragem, Criatividade e Resiliência',
|
|
33
|
-
description: 'FIRST THINGS FRST - Gente que transforma o futuro',
|
|
34
|
-
date: '10/05/2023',
|
|
35
|
-
volume: 0.7,
|
|
36
|
-
onProgress: (e) => console.log('onProgress: ', e),
|
|
37
|
-
onEnded: (e) => console.log('onEnded: ', 'Fim'),
|
|
38
|
-
style: {width: 814},
|
|
39
|
-
}
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
import styled from "styled-components";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export const container = styled.div`
|
|
5
|
-
display: flex;
|
|
6
|
-
position: relative;
|
|
7
|
-
gap: 20px;
|
|
8
|
-
height: 234px;
|
|
9
|
-
padding: 20px;
|
|
10
|
-
border-radius: 16px;
|
|
11
|
-
border: 1px solid ${({theme}) => theme.colors.borderPrimary};
|
|
12
|
-
background-color: #E2E8F0;
|
|
13
|
-
z-index: 1;
|
|
14
|
-
|
|
15
|
-
background-position: center;
|
|
16
|
-
background-size: cover;
|
|
17
|
-
background-repeat: no-repeat;
|
|
18
|
-
`
|
|
19
|
-
|
|
20
|
-
export const containerMask = styled.div`
|
|
21
|
-
width: 100%;
|
|
22
|
-
height: 100%;
|
|
23
|
-
background: rgba(255, 255, 255, 0.5);
|
|
24
|
-
backdrop-filter: blur(8px);
|
|
25
|
-
position: absolute;
|
|
26
|
-
top: 0;
|
|
27
|
-
left: 0;
|
|
28
|
-
border-radius: 16px;
|
|
29
|
-
z-index: 1;
|
|
30
|
-
`
|
|
31
|
-
|
|
32
|
-
export const thumb = styled.div`
|
|
33
|
-
border-radius: 8px;
|
|
34
|
-
width: 194px;
|
|
35
|
-
max-width: 194px;
|
|
36
|
-
height: 194px;
|
|
37
|
-
z-index: 2;
|
|
38
|
-
/* background-color: red; */
|
|
39
|
-
|
|
40
|
-
background-repeat: no-repeat;
|
|
41
|
-
background-position: center;
|
|
42
|
-
background-size: cover;
|
|
43
|
-
`
|
|
44
|
-
|
|
45
|
-
export const content = styled.div`
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
gap: 8px;
|
|
49
|
-
z-index: 2;
|
|
50
|
-
`
|
|
51
|
-
|
|
52
|
-
export const title = styled.p`
|
|
53
|
-
font-family: 'Work Sans';
|
|
54
|
-
font-size: 18px;
|
|
55
|
-
font-weight: 700;
|
|
56
|
-
line-height: 21px;
|
|
57
|
-
color: #222222;
|
|
58
|
-
|
|
59
|
-
margin-top: 12px;
|
|
60
|
-
`
|
|
61
|
-
|
|
62
|
-
export const description = styled.p`
|
|
63
|
-
font-family: 'PT Sans';
|
|
64
|
-
font-size: 14px;
|
|
65
|
-
font-weight: 400;
|
|
66
|
-
line-height: 18px;
|
|
67
|
-
color: #222222;
|
|
68
|
-
`
|
|
69
|
-
|
|
70
|
-
export const date = styled.p`
|
|
71
|
-
font-family: 'PT Sans';
|
|
72
|
-
font-size: 12px;
|
|
73
|
-
font-weight: 400;
|
|
74
|
-
line-height: 16px;
|
|
75
|
-
color: #222222;
|
|
76
|
-
`
|
|
77
|
-
|
|
78
|
-
export const controls = styled.div`
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: row;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
position: relative;
|
|
84
|
-
gap: 24px;
|
|
85
|
-
width: 100%;
|
|
86
|
-
margin-top: 24px;
|
|
87
|
-
`
|
|
88
|
-
|
|
89
|
-
export const navigationButton = styled.button`
|
|
90
|
-
border: none;
|
|
91
|
-
background: none;
|
|
92
|
-
color: ${({theme}) => theme.colors.neutralsGrey1};
|
|
93
|
-
|
|
94
|
-
&:hover{
|
|
95
|
-
color: ${({theme}) => theme.colors.primary1};
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&:active{
|
|
99
|
-
color: ${({theme}) => theme.colors.primary3};
|
|
100
|
-
}
|
|
101
|
-
`
|
|
102
|
-
|
|
103
|
-
export const playButton = styled.button`
|
|
104
|
-
border: none;
|
|
105
|
-
background: none;
|
|
106
|
-
color: ${({theme}) => theme.colors.primary2};
|
|
107
|
-
&:hover{
|
|
108
|
-
color: ${({theme}) => theme.colors.primary1};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&:active{
|
|
112
|
-
color: ${({theme}) => theme.colors.primary3};
|
|
113
|
-
}
|
|
114
|
-
`
|
|
115
|
-
|
|
116
|
-
export const volumeControl = styled.div`
|
|
117
|
-
position: absolute;
|
|
118
|
-
right: 0;
|
|
119
|
-
`
|
|
120
|
-
|
|
121
|
-
export const volume = styled.div`
|
|
122
|
-
display: flex;
|
|
123
|
-
flex-direction: row;
|
|
124
|
-
align-items: center;
|
|
125
|
-
justify-content: center;
|
|
126
|
-
gap: 4px;
|
|
127
|
-
`
|
|
128
|
-
|
|
129
|
-
export const volumeBar = styled.input<{currentInputValue: number}>`
|
|
130
|
-
appearance: none;
|
|
131
|
-
-webkit-appearance: none;
|
|
132
|
-
display: block;
|
|
133
|
-
border-radius: 1px;
|
|
134
|
-
box-sizing: border-box;
|
|
135
|
-
width: 32px;
|
|
136
|
-
height: 2px;
|
|
137
|
-
margin: 0px;
|
|
138
|
-
background: ${({theme}) => theme.colors.neutralsGrey1};
|
|
139
|
-
background-image: linear-gradient(#ee4c15, #ee4c15);
|
|
140
|
-
background-size: ${({currentInputValue}) => currentInputValue}% 100%;
|
|
141
|
-
background-repeat: no-repeat;
|
|
142
|
-
|
|
143
|
-
&::-webkit-slider-thumb{
|
|
144
|
-
-webkit-appearance: none;
|
|
145
|
-
appearance: none;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&::-ms-thumb{
|
|
149
|
-
-webkit-appearance: none;
|
|
150
|
-
appearance: none;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&::-moz-range-thumb{
|
|
154
|
-
-webkit-appearance: none;
|
|
155
|
-
appearance: none;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
&:hover::-webkit-slider-thumb{
|
|
159
|
-
-webkit-appearance: none;
|
|
160
|
-
appearance: none;
|
|
161
|
-
width: 5px;
|
|
162
|
-
height: 5px;
|
|
163
|
-
border: none;
|
|
164
|
-
border-radius: 50%;
|
|
165
|
-
background: ${({theme}) => theme.colors.primary2};
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
&:hover::-moz-range-thumb{
|
|
169
|
-
-webkit-appearance: none;
|
|
170
|
-
appearance: none;
|
|
171
|
-
width: 5px;
|
|
172
|
-
height: 5px;
|
|
173
|
-
border: none;
|
|
174
|
-
border-radius: 50%;
|
|
175
|
-
background: ${({theme}) => theme.colors.primary2};
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&:hover::-ms-thumb{
|
|
179
|
-
-webkit-appearance: none;
|
|
180
|
-
appearance: none;
|
|
181
|
-
width: 5px;
|
|
182
|
-
height: 5px;
|
|
183
|
-
border: none;
|
|
184
|
-
border-radius: 50%;
|
|
185
|
-
background: ${({theme}) => theme.colors.primary2};
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
&::-webkit-slider-runnable-track{
|
|
189
|
-
-webkit-appearance: none;
|
|
190
|
-
appearance: none;
|
|
191
|
-
border: none;
|
|
192
|
-
box-shadow: none;
|
|
193
|
-
background: transparent;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
&::-moz-range-track{
|
|
197
|
-
-webkit-appearance: none;
|
|
198
|
-
appearance: none;
|
|
199
|
-
border: none;
|
|
200
|
-
box-shadow: none;
|
|
201
|
-
background: transparent;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
&::-ms-track{
|
|
205
|
-
-webkit-appearance: none;
|
|
206
|
-
appearance: none;
|
|
207
|
-
border: none;
|
|
208
|
-
box-shadow: none;
|
|
209
|
-
background: transparent;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
`
|
|
213
|
-
|
|
214
|
-
export const audioTimeline = styled.div`
|
|
215
|
-
display: flex;
|
|
216
|
-
flex-direction: row;
|
|
217
|
-
align-items: center;
|
|
218
|
-
gap: 8px;
|
|
219
|
-
width: 100%;
|
|
220
|
-
`
|
|
221
|
-
|
|
222
|
-
export const timeText = styled.p`
|
|
223
|
-
font-family: 'PT Sans';
|
|
224
|
-
font-size: 10px;
|
|
225
|
-
font-weight: 700;
|
|
226
|
-
line-height: 13px;
|
|
227
|
-
color: #222222;
|
|
228
|
-
|
|
229
|
-
`
|
|
230
|
-
|
|
231
|
-
export const timeline = styled.input<{currentInputValue: number}>`
|
|
232
|
-
appearance: none;
|
|
233
|
-
-webkit-appearance: none;
|
|
234
|
-
display: block;
|
|
235
|
-
border-radius: 2px;
|
|
236
|
-
box-sizing: border-box;
|
|
237
|
-
width: 100%;
|
|
238
|
-
height: 4px;
|
|
239
|
-
margin: 0px;
|
|
240
|
-
background: ${({theme}) => theme.colors.neutralsGrey1};
|
|
241
|
-
background-image: linear-gradient(#ee4c15, #ee4c15);
|
|
242
|
-
background-size: ${({currentInputValue}) => currentInputValue}% 100%;
|
|
243
|
-
background-repeat: no-repeat;
|
|
244
|
-
|
|
245
|
-
&::-webkit-slider-thumb{
|
|
246
|
-
-webkit-appearance: none;
|
|
247
|
-
appearance: none;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
&::-ms-thumb{
|
|
251
|
-
-webkit-appearance: none;
|
|
252
|
-
appearance: none;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
&::-moz-range-thumb{
|
|
256
|
-
-webkit-appearance: none;
|
|
257
|
-
appearance: none;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
&:hover::-webkit-slider-thumb{
|
|
261
|
-
-webkit-appearance: none;
|
|
262
|
-
appearance: none;
|
|
263
|
-
width: 10px;
|
|
264
|
-
height: 10px;
|
|
265
|
-
border: none;
|
|
266
|
-
border-radius: 50%;
|
|
267
|
-
background: ${({theme}) => theme.colors.primary2};
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
&:hover::-moz-range-thumb{
|
|
271
|
-
-webkit-appearance: none;
|
|
272
|
-
appearance: none;
|
|
273
|
-
width: 10px;
|
|
274
|
-
height: 10px;
|
|
275
|
-
border: none;
|
|
276
|
-
border-radius: 50%;
|
|
277
|
-
background: ${({theme}) => theme.colors.primary2};
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
&:hover::-ms-thumb{
|
|
281
|
-
-webkit-appearance: none;
|
|
282
|
-
appearance: none;
|
|
283
|
-
width: 10px;
|
|
284
|
-
height: 10px;
|
|
285
|
-
border: none;
|
|
286
|
-
border-radius: 50%;
|
|
287
|
-
background: ${({theme}) => theme.colors.primary2};
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
&::-webkit-slider-runnable-track{
|
|
291
|
-
-webkit-appearance: none;
|
|
292
|
-
appearance: none;
|
|
293
|
-
border: none;
|
|
294
|
-
box-shadow: none;
|
|
295
|
-
background: transparent;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
&::-moz-range-track{
|
|
299
|
-
-webkit-appearance: none;
|
|
300
|
-
appearance: none;
|
|
301
|
-
border: none;
|
|
302
|
-
box-shadow: none;
|
|
303
|
-
background: transparent;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
&::-ms-track{
|
|
307
|
-
-webkit-appearance: none;
|
|
308
|
-
appearance: none;
|
|
309
|
-
border: none;
|
|
310
|
-
box-shadow: none;
|
|
311
|
-
background: transparent;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
`
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react';
|
|
2
|
-
import { FRSTTheme } from '../../theme';
|
|
3
|
-
import { ThemeProvider } from 'styled-components';
|
|
4
|
-
import * as Styles from './audioPlayerStyles'
|
|
5
|
-
import useSound from 'use-sound'
|
|
6
|
-
import { Back15, Foward15, PlayIcon, PauseIcon, VolumeIcon, MuteIcon } from '@shared/icons';
|
|
7
|
-
|
|
8
|
-
interface IAudioPlayer {
|
|
9
|
-
audio: any
|
|
10
|
-
/**
|
|
11
|
-
* @prop {number} startAt: o tempo em que o audio deve começar (em segundos)
|
|
12
|
-
*/
|
|
13
|
-
startAt ?: number
|
|
14
|
-
coverImage ?: string
|
|
15
|
-
title ?: string
|
|
16
|
-
description ?: string
|
|
17
|
-
date ?: string
|
|
18
|
-
/**
|
|
19
|
-
* @prop {number} volume: valor do volume (minimo 0 - máximo 1)
|
|
20
|
-
*/
|
|
21
|
-
volume ?: number
|
|
22
|
-
onProgress ?: (data) => void
|
|
23
|
-
onEnded ?: () => void
|
|
24
|
-
style ?: React.CSSProperties
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export default function AudioPlayer ( props : IAudioPlayer ) {
|
|
28
|
-
const [isPlaying, setIsPlaying] = useState(false);
|
|
29
|
-
const [CurrentTimeAudio, setCurrentTimeAudio] = useState();
|
|
30
|
-
const [time, setTime] = useState({
|
|
31
|
-
min: 0,
|
|
32
|
-
sec: 0
|
|
33
|
-
});
|
|
34
|
-
const [currTime, setCurrTime] = useState({
|
|
35
|
-
min: 0,
|
|
36
|
-
sec: 0
|
|
37
|
-
});
|
|
38
|
-
const [seconds, setSeconds] = useState(0);
|
|
39
|
-
const [audioVolume, setAudioVolume] = useState(props.volume ? props.volume : 0.5);
|
|
40
|
-
const [play, { pause, duration, sound }] = useSound(props.audio, {volume : audioVolume,
|
|
41
|
-
onend : () => {
|
|
42
|
-
console.log("Passou aqui 3")
|
|
43
|
-
setIsPlaying(false)
|
|
44
|
-
props.onEnded()
|
|
45
|
-
}})
|
|
46
|
-
|
|
47
|
-
//porcentagem percorrida da musica
|
|
48
|
-
const [percentagePlaytime, setPercentagePlaytime] = useState(0);
|
|
49
|
-
const defaultThumb = 'https://i.gyazo.com/f201e5ef302347108c31a2129104adc1.png'
|
|
50
|
-
|
|
51
|
-
useEffect(() => {
|
|
52
|
-
setAudioVolume(props.volume)
|
|
53
|
-
}, [props.volume]);
|
|
54
|
-
|
|
55
|
-
useEffect(() => {
|
|
56
|
-
console.log('isPlaying', isPlaying)
|
|
57
|
-
}, [isPlaying]);
|
|
58
|
-
|
|
59
|
-
useEffect(() => {
|
|
60
|
-
if (props.onProgress) {
|
|
61
|
-
console.log(isPlaying)
|
|
62
|
-
if (isPlaying) {
|
|
63
|
-
props.onProgress({
|
|
64
|
-
loadedSeconds: duration / 1000,
|
|
65
|
-
playedSeconds: sound.seek([])
|
|
66
|
-
})
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}, [seconds]);
|
|
70
|
-
|
|
71
|
-
useEffect(() => {
|
|
72
|
-
if (duration) {
|
|
73
|
-
const sec = duration / 1000;
|
|
74
|
-
const min = Math.floor(sec / 60);
|
|
75
|
-
const secRemain = Math.floor(sec % 60);
|
|
76
|
-
setTime({
|
|
77
|
-
min: min,
|
|
78
|
-
sec: secRemain
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
const interval = setInterval(() => {
|
|
83
|
-
if (sound) {
|
|
84
|
-
if(!isPlaying && props.startAt && sound.seek([]) === 0){
|
|
85
|
-
setSeconds(props.startAt)
|
|
86
|
-
sound.seek([props.startAt])
|
|
87
|
-
}
|
|
88
|
-
setSeconds(sound.seek([]));
|
|
89
|
-
const min = Math.floor(sound.seek([]) / 60);
|
|
90
|
-
const sec = Math.floor(sound.seek([]) % 60);
|
|
91
|
-
|
|
92
|
-
setCurrTime({
|
|
93
|
-
min,
|
|
94
|
-
sec
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
setPercentagePlaytime(calcCurrentInputPercentage(0, duration/1000, sound.seek([])))
|
|
99
|
-
}
|
|
100
|
-
}, 1000);
|
|
101
|
-
return () => clearInterval(interval);
|
|
102
|
-
}, [sound]);
|
|
103
|
-
|
|
104
|
-
const playingButton = () => {
|
|
105
|
-
if (isPlaying) {
|
|
106
|
-
console.log("Passou aqui")
|
|
107
|
-
setIsPlaying(false);
|
|
108
|
-
pause();
|
|
109
|
-
} else {
|
|
110
|
-
console.log("Passou aqui 2")
|
|
111
|
-
setIsPlaying(true);
|
|
112
|
-
play();
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
// função para calcular a porcentagem que foi percorrida a musica, para fazer o acompanhamento da barra
|
|
117
|
-
const calcCurrentInputPercentage = (valorMin, valorMax, valorAtual) => {
|
|
118
|
-
|
|
119
|
-
const min = valorMin
|
|
120
|
-
const max = valorMax
|
|
121
|
-
const val = valorAtual
|
|
122
|
-
let result = (val - min) * 100 / (max - min)
|
|
123
|
-
return result
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
return (
|
|
128
|
-
<ThemeProvider theme={FRSTTheme}>
|
|
129
|
-
<Styles.container style={{...props.style, backgroundImage: props.coverImage ? `url(${props.coverImage})` : ''}} >
|
|
130
|
-
<Styles.containerMask></Styles.containerMask>
|
|
131
|
-
<Styles.thumb style={{...props.style, backgroundImage: props.coverImage ? `url(${props.coverImage})` : `url(${defaultThumb})`}}/>
|
|
132
|
-
<Styles.content style={{width: '100%'}}>
|
|
133
|
-
<Styles.title> {props.title} </Styles.title>
|
|
134
|
-
<Styles.description> {props.description} </Styles.description>
|
|
135
|
-
<Styles.date> {props.date} </Styles.date>
|
|
136
|
-
<Styles.controls>
|
|
137
|
-
<Styles.navigationButton onClick={ () => {
|
|
138
|
-
sound.seek([seconds ? seconds - 15 : 0])
|
|
139
|
-
}} >
|
|
140
|
-
<Back15 fill='currentColor' />
|
|
141
|
-
</Styles.navigationButton>
|
|
142
|
-
{!isPlaying ?
|
|
143
|
-
<Styles.playButton onClick={playingButton}>
|
|
144
|
-
<PlayIcon customColor_1='currentColor' />
|
|
145
|
-
</Styles.playButton>
|
|
146
|
-
:
|
|
147
|
-
<Styles.playButton onClick={playingButton}>
|
|
148
|
-
<PauseIcon customColor_1='currentColor' />
|
|
149
|
-
</Styles.playButton>
|
|
150
|
-
}
|
|
151
|
-
<Styles.navigationButton onClick={ () => {
|
|
152
|
-
sound.seek([seconds ? seconds + 15 : 15])
|
|
153
|
-
}}>
|
|
154
|
-
<Foward15 fill='currentColor' />
|
|
155
|
-
</Styles.navigationButton>
|
|
156
|
-
<Styles.volumeControl>
|
|
157
|
-
{audioVolume === 0 ?
|
|
158
|
-
<Styles.volume onClick={() => {
|
|
159
|
-
setAudioVolume(0.1)
|
|
160
|
-
}}>
|
|
161
|
-
<MuteIcon />
|
|
162
|
-
</Styles.volume>
|
|
163
|
-
:
|
|
164
|
-
<Styles.volume>
|
|
165
|
-
<div onClick={() => {
|
|
166
|
-
setAudioVolume(0)
|
|
167
|
-
}}>
|
|
168
|
-
<VolumeIcon />
|
|
169
|
-
</div>
|
|
170
|
-
<Styles.volumeBar
|
|
171
|
-
type='range'
|
|
172
|
-
min='0'
|
|
173
|
-
max='1'
|
|
174
|
-
value = {audioVolume}
|
|
175
|
-
className='volumeBar'
|
|
176
|
-
step='0.1'
|
|
177
|
-
onChange={(e) => {
|
|
178
|
-
setAudioVolume(Number(e.target.value))
|
|
179
|
-
}}
|
|
180
|
-
currentInputValue={calcCurrentInputPercentage(0, 1, audioVolume)}
|
|
181
|
-
/>
|
|
182
|
-
</Styles.volume>
|
|
183
|
-
}
|
|
184
|
-
</Styles.volumeControl>
|
|
185
|
-
</Styles.controls>
|
|
186
|
-
<Styles.audioTimeline>
|
|
187
|
-
<Styles.timeText>
|
|
188
|
-
{currTime.min.toString().padStart(2, '0')}:{currTime.sec.toString().padStart(2, '0')}
|
|
189
|
-
</Styles.timeText>
|
|
190
|
-
<Styles.timeline
|
|
191
|
-
type="range"
|
|
192
|
-
min="0"
|
|
193
|
-
max={duration / 1000}
|
|
194
|
-
value={seconds}
|
|
195
|
-
className="timeline"
|
|
196
|
-
onChange={(e) => {
|
|
197
|
-
sound.seek([e.target.value]);
|
|
198
|
-
}}
|
|
199
|
-
currentInputValue={percentagePlaytime}
|
|
200
|
-
/>
|
|
201
|
-
<Styles.timeText>
|
|
202
|
-
{time.min.toString().padStart(2, '0')}:{time.sec.toString().padStart(2, '0')}
|
|
203
|
-
</Styles.timeText>
|
|
204
|
-
</Styles.audioTimeline>
|
|
205
|
-
</Styles.content>
|
|
206
|
-
</Styles.container>
|
|
207
|
-
</ThemeProvider>
|
|
208
|
-
)
|
|
209
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import Avatar from './index'
|
|
4
|
-
|
|
5
|
-
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Base/Avatar',
|
|
8
|
-
component: Avatar,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
12
|
-
const Template = (args) => <Avatar {...args} />
|
|
13
|
-
|
|
14
|
-
export const normal = Template.bind({})
|
|
15
|
-
normal.args = {
|
|
16
|
-
size: '120px',
|
|
17
|
-
src: 'https://i.pinimg.com/474x/2b/27/2f/2b272f528c3e14054436edd0d8bd2a26.jpg',
|
|
18
|
-
alt: 'Alt example',
|
|
19
|
-
disabled: false,
|
|
20
|
-
handleAvatar: (e) => console.log(e)
|
|
21
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
interface AvatarI {
|
|
4
|
-
size?: string,
|
|
5
|
-
src?: any,
|
|
6
|
-
disabled?: boolean,
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const AvatarImg = styled.img<AvatarI>`
|
|
10
|
-
width: ${props => props.size || '120px'};
|
|
11
|
-
height: ${props => props.size || '120px'};
|
|
12
|
-
border-radius: 50%;
|
|
13
|
-
object-fit: cover;
|
|
14
|
-
|
|
15
|
-
${({ disabled }) => disabled === true && `
|
|
16
|
-
filter: grayscale(100%);
|
|
17
|
-
`}
|
|
18
|
-
`
|
|
19
|
-
|
|
20
|
-
export const AvatarWrapper = styled.div<AvatarI>`
|
|
21
|
-
width: ${props => props.size || '120px'};
|
|
22
|
-
height: ${props => props.size || '120px'};
|
|
23
|
-
`
|