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,20 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import HeaderChallenge from './index'
|
|
3
|
-
|
|
4
|
-
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
5
|
-
export default {
|
|
6
|
-
title: 'The Product/HeaderChallenge',
|
|
7
|
-
component: HeaderChallenge,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
11
|
-
const Template = (args) => <HeaderChallenge {...args} />
|
|
12
|
-
|
|
13
|
-
export const normal = Template.bind({})
|
|
14
|
-
normal.args = {
|
|
15
|
-
firstLine: 'Gente que soluciona',
|
|
16
|
-
secondLine: 'desafios transforma o jogo',
|
|
17
|
-
desktopBackground: 'https://cdn-images.dev.frstfalconi.cloud/headerChallenge_bg.png',
|
|
18
|
-
mobileBackground: 'https://cdn-images.dev.frstfalconi.cloud/headerChallengeMobile_bg.png',
|
|
19
|
-
}
|
|
20
|
-
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
export const Div = styled.div<any>`
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
height: 300px;
|
|
8
|
-
background-color: #fff;
|
|
9
|
-
padding: 50px 50px 50px 124px;
|
|
10
|
-
margin: 0;
|
|
11
|
-
background-image: ${props => `url(${props.desktopBackgroundProps})`};
|
|
12
|
-
background-position: bottom 0px right 0px;
|
|
13
|
-
background-repeat: no-repeat;
|
|
14
|
-
h1 {
|
|
15
|
-
font-size: 3.25rem;
|
|
16
|
-
line-height: 67.6px;
|
|
17
|
-
font-weight: 700;
|
|
18
|
-
background-image: linear-gradient(to right, rgb(255, 98, 0), rgb(255, 176, 0));
|
|
19
|
-
background: linear-gradient(-45deg, rgb(255, 98, 0), rgb(255, 176, 0), rgb(255, 98, 0), rgb(255, 176, 0));
|
|
20
|
-
background-size: 400% 400%;
|
|
21
|
-
animation: gradient 10s ease infinite;
|
|
22
|
-
-webkit-background-clip: text;
|
|
23
|
-
-webkit-text-fill-color: transparent;
|
|
24
|
-
@keyframes gradient {
|
|
25
|
-
0% {
|
|
26
|
-
background-position: 0% 50%;
|
|
27
|
-
}
|
|
28
|
-
50% {
|
|
29
|
-
background-position: 100% 50%;
|
|
30
|
-
}
|
|
31
|
-
100% {
|
|
32
|
-
background-position: 0% 50%;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
@media (max-width: 1880px) {
|
|
37
|
-
background-position: bottom 0px right -220px;
|
|
38
|
-
h1 {
|
|
39
|
-
font-size: 3.0rem;
|
|
40
|
-
line-height: 60px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
@media (max-width: 1650px) {
|
|
44
|
-
padding: 50px 50px 50px 130px;
|
|
45
|
-
background-position: bottom 0px right -280px;
|
|
46
|
-
h1 {
|
|
47
|
-
font-size: 2.4rem;
|
|
48
|
-
line-height: 50px;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
@media (max-width: 1400px) {
|
|
52
|
-
padding: 50px 50px 50px 40px;
|
|
53
|
-
}
|
|
54
|
-
@media (max-width: 1350px) {
|
|
55
|
-
height: 250px;
|
|
56
|
-
background-size:contain;
|
|
57
|
-
background-position: bottom 0px right -220px;
|
|
58
|
-
}
|
|
59
|
-
@media (max-width: 1230px) {
|
|
60
|
-
background-size:contain;
|
|
61
|
-
background-position: bottom 0px right -250px;
|
|
62
|
-
h1 {
|
|
63
|
-
font-size: 1.8rem;
|
|
64
|
-
line-height: 36px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
@media (max-width: 1100px) {
|
|
68
|
-
height: 200px;
|
|
69
|
-
background-size:contain;
|
|
70
|
-
background-position: bottom 0px right -220px;
|
|
71
|
-
}
|
|
72
|
-
@media (max-width: 860px) {
|
|
73
|
-
background-position: bottom 0px right -250px;
|
|
74
|
-
h1 {
|
|
75
|
-
font-size: 1.4rem;
|
|
76
|
-
line-height: 30px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
@media (max-width: 750px) {
|
|
80
|
-
background-image: ${props => `url(${props.mobileBackgroundProps})`};
|
|
81
|
-
background-position: top -20px right 0px;
|
|
82
|
-
h1 {
|
|
83
|
-
max-width: 345px;
|
|
84
|
-
font-size: 1.5rem;
|
|
85
|
-
line-height: 31.2px;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
@media (max-width: 520px) {
|
|
89
|
-
padding: 10px;
|
|
90
|
-
background-size:unset;
|
|
91
|
-
height: 200px;
|
|
92
|
-
h1 {
|
|
93
|
-
max-width: 260px;
|
|
94
|
-
font-size: 16px;
|
|
95
|
-
line-height: 21.11px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
@media (max-width: 410px) {
|
|
99
|
-
background-position: top 0px right -20px;
|
|
100
|
-
height: 180px
|
|
101
|
-
}
|
|
102
|
-
`;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import '../../shared/global.css'
|
|
2
|
-
import * as Styles from './headerChallengeStyle'
|
|
3
|
-
|
|
4
|
-
interface HeaderChallengeProps {
|
|
5
|
-
firstLine?: string,
|
|
6
|
-
secondLine?: string,
|
|
7
|
-
desktopBackground?: any,
|
|
8
|
-
mobileBackground?: any,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default function HeaderChallenge({ firstLine, secondLine, desktopBackground, mobileBackground }: HeaderChallengeProps) {
|
|
12
|
-
return (
|
|
13
|
-
<Styles.Div desktopBackgroundProps={desktopBackground} mobileBackgroundProps={mobileBackground} >
|
|
14
|
-
<h1>{firstLine}<br /> {secondLine}</h1>
|
|
15
|
-
</Styles.Div>
|
|
16
|
-
);
|
|
17
|
-
}
|
package/src/components/index.tsx
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import UserCard from '@components/cards/user'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export interface PageProps {
|
|
5
|
-
pageHeight: string,
|
|
6
|
-
pageWidth: string,
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export default function PageSandbox(props: PageProps) {
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div style={{ width: props.pageWidth, height: props.pageHeight }}>
|
|
13
|
-
<UserCard loading={false}
|
|
14
|
-
selected={false}
|
|
15
|
-
handleSelect={(id) => { alert(`Select (or not) ${id}`) }}
|
|
16
|
-
userID={"bla-blu-fla"}
|
|
17
|
-
userName={"Nome Sobrenome Só que muito grande "}
|
|
18
|
-
userEmail={"superdupermegauberhugeemail@frst.com"}
|
|
19
|
-
userStatus={"complete"}
|
|
20
|
-
userArea={"Desenvolvimento"}
|
|
21
|
-
userPosition={"FullFull Strack"}
|
|
22
|
-
licenses={[]}
|
|
23
|
-
editAction={() => { alert('Edit') }}
|
|
24
|
-
newFormat={true}
|
|
25
|
-
newLicenses={[
|
|
26
|
-
{hasLicense: true, hasTrail: false, hasEnrollment: false, isCurrent: true, name: 'Produto 1'},
|
|
27
|
-
{hasLicense: true, hasTrail: false, hasEnrollment: false, isCurrent: true, name: 'Produto 2'},
|
|
28
|
-
{hasLicense: true, hasTrail: true, hasEnrollment: false, isCurrent: true, name: 'Produto 3'},
|
|
29
|
-
{hasLicense: true, hasTrail: true, hasEnrollment: false, isCurrent: true, name: 'Produto 4'},
|
|
30
|
-
{hasLicense: true, hasTrail: true, hasEnrollment: true, isCurrent: true, name: 'Produto 5'},
|
|
31
|
-
{hasLicense: true, hasTrail: true, hasEnrollment: true, isCurrent: true, name: 'Produto 6'},
|
|
32
|
-
{hasLicense: true, hasTrail: true, hasEnrollment: true, isCurrent: false, name: 'Produto 7'},
|
|
33
|
-
{hasLicense: true, hasTrail: true, hasEnrollment: true, isCurrent: false, name: 'Produto 8'},
|
|
34
|
-
]}
|
|
35
|
-
newTexts={{
|
|
36
|
-
current: 'Atual',
|
|
37
|
-
assignedLicense: 'Licença atribuida',
|
|
38
|
-
definedTrail: 'Trilha definida',
|
|
39
|
-
enrollments: 'Matriculado',
|
|
40
|
-
previus: 'Anteriores',
|
|
41
|
-
}}
|
|
42
|
-
/>
|
|
43
|
-
|
|
44
|
-
</div >
|
|
45
|
-
)
|
|
46
|
-
}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import React,{ useEffect, useState, useRef } from 'react'
|
|
2
|
-
import '../../shared/global.css'
|
|
3
|
-
import { ThemeProvider } from 'styled-components'
|
|
4
|
-
import { FRSTTheme } from '../../theme'
|
|
5
|
-
import * as Styles from './inputCommentStyles'
|
|
6
|
-
import { IInputComment } from './inputComment'
|
|
7
|
-
|
|
8
|
-
import { SmileOutlined } from '@shared/icons'
|
|
9
|
-
// import EmojiPicker from '@components/emoji-picker'
|
|
10
|
-
|
|
11
|
-
import { randID } from './inputComment.utils'
|
|
12
|
-
|
|
13
|
-
export default function InputComment({ placeholder, value, onChange, remain, limit, hasEmoji, showCharacterCounter, IDInput, styles, disabled, emojiWindowlanguage }: IInputComment) {
|
|
14
|
-
const [ focus, setFocus ] = useState(false)
|
|
15
|
-
|
|
16
|
-
// Emoji Window States
|
|
17
|
-
const [ isVisibleEmojiWindow, setIsVisibleEmojiWindow ] = useState(false)
|
|
18
|
-
const [ actionAreaEmojiButton, setActionAreaEmojiButton] = useState(false)
|
|
19
|
-
const [ colorEmojiButton, setColorEmojiButton ] = useState('')
|
|
20
|
-
const [ heightPositionWindowEmoji, setHeightPositionWindowEmoji ] = useState('')
|
|
21
|
-
const [ newEmojiIncluded, setNewEmojiIncluded ] = useState(false)
|
|
22
|
-
const [ lastPositionCursorTextTextArea, setLastPositionCursorTextTextArea ] = useState({})
|
|
23
|
-
const [ lenghtLastEmoji, setLenghtLastEmoji ] = useState()
|
|
24
|
-
|
|
25
|
-
// TextArea states
|
|
26
|
-
const [ stringValueTextArea, setStringValueTextArea ] = useState(value)
|
|
27
|
-
|
|
28
|
-
// IDs
|
|
29
|
-
const [ iDInputComment , setIDInputComment ] =
|
|
30
|
-
useState(IDInput ? IDInput : `InputComment-${randID()}`);
|
|
31
|
-
const [ iDEmojiButton , setIDEmojiButton ] =
|
|
32
|
-
useState(IDInput ? IDInput : `IDEmojiButton-${randID()}`);
|
|
33
|
-
|
|
34
|
-
// Emoji window actions
|
|
35
|
-
useEffect(() => {
|
|
36
|
-
(isVisibleEmojiWindow) ? configsWhenOpenWindowEmoji() : configsWhenCloseWindowEmoji()
|
|
37
|
-
}, [isVisibleEmojiWindow])
|
|
38
|
-
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
{newEmojiIncluded && repositionCursorAfterNewEmojiInTextArea()}
|
|
41
|
-
resizeTextArea()
|
|
42
|
-
}, [stringValueTextArea]);
|
|
43
|
-
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
setStringValueTextArea(value)
|
|
46
|
-
}, [value]);
|
|
47
|
-
|
|
48
|
-
function inputInChanging(e: any) {
|
|
49
|
-
setStringValueTextArea(e.target.value)
|
|
50
|
-
onChange(e)
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const onEmojiClick = (emojiObject: any) => {
|
|
54
|
-
let textAreaRef = document.getElementById(iDInputComment)
|
|
55
|
-
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
if(textAreaRef.innerHTML.length < limit || textAreaRef.selectionStart != textAreaRef.selectionEnd) {
|
|
58
|
-
let currentPositonCursorTextArea = getAndSavePositionsInTextArea(textAreaRef, emojiObject.native)
|
|
59
|
-
let newStringWithEmoji = handleStringToIncluedEmoji(currentPositonCursorTextArea, emojiObject.native, textAreaRef.innerHTML)
|
|
60
|
-
|
|
61
|
-
setNewEmojiIncluded(true)
|
|
62
|
-
setStringValueTextArea(newStringWithEmoji)
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const verifyClick = () => {
|
|
67
|
-
if(!actionAreaEmojiButton)
|
|
68
|
-
setIsVisibleEmojiWindow(false);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<ThemeProvider theme={FRSTTheme}>
|
|
73
|
-
<div style={{...styles}} onClick={verifyClick}>
|
|
74
|
-
<Styles.InputWrapper focus={focus}>
|
|
75
|
-
<Styles.InputText
|
|
76
|
-
id={iDInputComment}
|
|
77
|
-
onFocus={() => setFocus(true)}
|
|
78
|
-
onBlur={() => setFocus(false)}
|
|
79
|
-
onChange={inputInChanging}
|
|
80
|
-
value={stringValueTextArea}
|
|
81
|
-
placeholder={placeholder}
|
|
82
|
-
maxLength={limit}
|
|
83
|
-
disabled={disabled}
|
|
84
|
-
/>
|
|
85
|
-
{/* { hasEmoji &&
|
|
86
|
-
<>
|
|
87
|
-
<Styles.EmojiWindow
|
|
88
|
-
visible={isVisibleEmojiWindow}
|
|
89
|
-
positionEmojiWindow={heightPositionWindowEmoji}
|
|
90
|
-
onMouseOver={() => setActionAreaEmojiButton(true)}
|
|
91
|
-
onMouseOut={() => setActionAreaEmojiButton(false)}
|
|
92
|
-
>
|
|
93
|
-
<EmojiPicker
|
|
94
|
-
language={emojiWindowlanguage}
|
|
95
|
-
onEmojiSelect={onEmojiClick}
|
|
96
|
-
emojiPerLine={8}
|
|
97
|
-
sheetSize={8}
|
|
98
|
-
/>
|
|
99
|
-
</Styles.EmojiWindow>
|
|
100
|
-
<Styles.SmileIcon
|
|
101
|
-
id={iDEmojiButton}
|
|
102
|
-
onMouseOver={() => setActionAreaEmojiButton(true)}
|
|
103
|
-
onMouseOut={() => setActionAreaEmojiButton(false)}
|
|
104
|
-
onClick={() => setIsVisibleEmojiWindow(!isVisibleEmojiWindow)}
|
|
105
|
-
>
|
|
106
|
-
<SmileOutlined fill={colorEmojiButton}/>
|
|
107
|
-
</Styles.SmileIcon>
|
|
108
|
-
</>
|
|
109
|
-
} */}
|
|
110
|
-
</Styles.InputWrapper>
|
|
111
|
-
{ showCharacterCounter &&
|
|
112
|
-
<Styles.HelperText>
|
|
113
|
-
{limit - remain}/{limit}
|
|
114
|
-
</Styles.HelperText>
|
|
115
|
-
}
|
|
116
|
-
</div>
|
|
117
|
-
</ThemeProvider>
|
|
118
|
-
)
|
|
119
|
-
|
|
120
|
-
function resizeTextArea() {
|
|
121
|
-
let tx = document.getElementById(iDInputComment);
|
|
122
|
-
|
|
123
|
-
const txResize = (tx) => {
|
|
124
|
-
tx.style.height = '20px';
|
|
125
|
-
tx.style.height = tx.scrollHeight + 'px';
|
|
126
|
-
setHeightPositionWindowEmoji(tx.scrollHeight - 440 + 'px')
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
{ tx && tx.style && txResize(tx) }
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
function configsWhenOpenWindowEmoji() {
|
|
133
|
-
setColorEmojiButton(FRSTTheme['colors'].primary1);
|
|
134
|
-
// document.body.addEventListener("click", (e: any) => verifyClick(), true);
|
|
135
|
-
// document.getElementById(iDEmojiButton).removeEventListener("click", (e: any) => setIsVisibleEmojiWindow(!isVisibleEmojiWindow), false);
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
function configsWhenCloseWindowEmoji() {
|
|
139
|
-
setColorEmojiButton(FRSTTheme['colors'].neutralsGrey2);
|
|
140
|
-
// document.body.removeEventListener("click", (e: any) => verifyClick(), true);
|
|
141
|
-
// document.getElementById(iDEmojiButton).addEventListener("click", (e: any) => setIsVisibleEmojiWindow(!isVisibleEmojiWindow), false);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
function getAndSavePositionsInTextArea(textAreaRef: any, emoji: any) {
|
|
145
|
-
let positionsCursorText = [textAreaRef.selectionStart, textAreaRef.selectionEnd];
|
|
146
|
-
|
|
147
|
-
setLenghtLastEmoji(emoji.length);
|
|
148
|
-
setLastPositionCursorTextTextArea(positionsCursorText);
|
|
149
|
-
return positionsCursorText;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function handleStringToIncluedEmoji(pos, emojiObject, stringValueTextArea) {
|
|
153
|
-
if(stringValueTextArea) {
|
|
154
|
-
if(pos[0] == pos[1]) {
|
|
155
|
-
return stringValueTextArea.substr(0, pos[0]) + emojiObject + stringValueTextArea.substr(pos[1])
|
|
156
|
-
} else if(pos[0] < pos[1]) {
|
|
157
|
-
return stringValueTextArea.substr(0, pos[0]) + emojiObject + stringValueTextArea.substr(pos[1], stringValueTextArea.length);
|
|
158
|
-
} else {
|
|
159
|
-
return stringValueTextArea + emojiObject;
|
|
160
|
-
}
|
|
161
|
-
} else {
|
|
162
|
-
return emojiObject;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
function repositionCursorAfterNewEmojiInTextArea() {
|
|
167
|
-
let tx = document.getElementById(iDInputComment);
|
|
168
|
-
|
|
169
|
-
if(lastPositionCursorTextTextArea[1] != lastPositionCursorTextTextArea[0]) { // Cursor in multiple chars selected
|
|
170
|
-
// @ts-ignore
|
|
171
|
-
tx.selectionEnd = lastPositionCursorTextTextArea[0] + lenghtLastEmoji;
|
|
172
|
-
} else { // Cursor text in specific point
|
|
173
|
-
// @ts-ignore
|
|
174
|
-
tx.selectionEnd = lastPositionCursorTextTextArea[1] + lenghtLastEmoji;
|
|
175
|
-
}
|
|
176
|
-
setNewEmojiIncluded(false);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react"
|
|
2
|
-
|
|
3
|
-
export interface IInputComment {
|
|
4
|
-
placeholder?: string,
|
|
5
|
-
value?: any,
|
|
6
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void,
|
|
7
|
-
remain?: number,
|
|
8
|
-
limit?: number,
|
|
9
|
-
disabled?: boolean,
|
|
10
|
-
className: string,
|
|
11
|
-
hasEmoji: boolean,
|
|
12
|
-
showCharacterCounter: boolean,
|
|
13
|
-
IDInput: string,
|
|
14
|
-
styles: any,
|
|
15
|
-
emojiWindowlanguage: string,
|
|
16
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
import InputComment from './index'
|
|
4
|
-
|
|
5
|
-
// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
6
|
-
export default {
|
|
7
|
-
title: 'Learning Tech/Input Comment',
|
|
8
|
-
component: InputComment,
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
|
|
12
|
-
const Template = (args) => <InputComment {...args} />
|
|
13
|
-
|
|
14
|
-
export const normal = Template.bind({})
|
|
15
|
-
normal.args = {
|
|
16
|
-
placeholder: 'Enter text here...',
|
|
17
|
-
disabled: false,
|
|
18
|
-
remain: 20,
|
|
19
|
-
limit: 1000,
|
|
20
|
-
onChange: (e : any) => { console.log(e) },
|
|
21
|
-
className: null,
|
|
22
|
-
hasEmoji: true,
|
|
23
|
-
showCharacterCounter: true,
|
|
24
|
-
styles: { margin: '0 0 0 0'},
|
|
25
|
-
emojiWindowlanguage: 'pt'
|
|
26
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components'
|
|
2
|
-
|
|
3
|
-
interface AvatarI {
|
|
4
|
-
size?: string,
|
|
5
|
-
src?: any,
|
|
6
|
-
disabled?: boolean,
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface Wrapper {
|
|
10
|
-
disabled?: boolean,
|
|
11
|
-
focus?: boolean
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface IEmojiWindow {
|
|
15
|
-
visible?: boolean
|
|
16
|
-
positionEmojiWindow?: any
|
|
17
|
-
}
|
|
18
|
-
interface TextArea {
|
|
19
|
-
height?: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export const InputWrapper = styled.div<Wrapper>`
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items:flex-end;
|
|
25
|
-
width: 100%;
|
|
26
|
-
min-height: 48px;
|
|
27
|
-
background-color: ${({ theme }) => theme.colors.shadeWhite};
|
|
28
|
-
|
|
29
|
-
border: 1px solid ${({ theme }) => theme.colors.neutralsGrey4};
|
|
30
|
-
border-radius: 24px;
|
|
31
|
-
|
|
32
|
-
transition: all 0.2s ease-in-out;
|
|
33
|
-
|
|
34
|
-
&:hover {
|
|
35
|
-
border: 1px solid ${({ theme }) => theme.colors.shadeBlack};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
${({ focus, theme }) => focus &&
|
|
39
|
-
`border: 1px solid` + theme.colors.primary1 + " !important;"
|
|
40
|
-
}
|
|
41
|
-
`
|
|
42
|
-
|
|
43
|
-
export const InputText = styled.textarea<TextArea>`
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
|
|
47
|
-
width: 100%;
|
|
48
|
-
height: ${({height}) => height || '20px' };
|
|
49
|
-
outline: 0;
|
|
50
|
-
|
|
51
|
-
font-family: 'Work Sans';
|
|
52
|
-
font-style: normal;
|
|
53
|
-
font-weight: normal;
|
|
54
|
-
font-size: 16px;
|
|
55
|
-
line-height: 20px;
|
|
56
|
-
letter-spacing: -0.02em;
|
|
57
|
-
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
resize: none;
|
|
60
|
-
|
|
61
|
-
padding: 0;
|
|
62
|
-
margin: 14px;
|
|
63
|
-
border: none;
|
|
64
|
-
`
|
|
65
|
-
|
|
66
|
-
export const SmileIcon = styled.div`
|
|
67
|
-
display: flex;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
align-items: center;
|
|
70
|
-
|
|
71
|
-
width: 40px;
|
|
72
|
-
height: 40px;
|
|
73
|
-
|
|
74
|
-
min-width: 40px;
|
|
75
|
-
border-radius: 50%;
|
|
76
|
-
background-color: transparent;
|
|
77
|
-
margin: 4px;
|
|
78
|
-
&:hover {
|
|
79
|
-
background-color: ${({ theme }) => theme.colors.neutralsGrey6};
|
|
80
|
-
}
|
|
81
|
-
cursor: pointer;
|
|
82
|
-
transition: all 0.2s ease-in-out;
|
|
83
|
-
`
|
|
84
|
-
|
|
85
|
-
export const HelperText = styled.span`
|
|
86
|
-
display: flex;
|
|
87
|
-
position: absolute;
|
|
88
|
-
align-items: center;
|
|
89
|
-
|
|
90
|
-
font-family: 'Work Sans';
|
|
91
|
-
font-style: normal;
|
|
92
|
-
font-weight: 400;
|
|
93
|
-
font-size: 12px;
|
|
94
|
-
line-height: 14px;
|
|
95
|
-
|
|
96
|
-
letter-spacing: -0.02em;
|
|
97
|
-
|
|
98
|
-
color: ${({ theme }) => theme.colors.neutralsGrey2};
|
|
99
|
-
|
|
100
|
-
margin-top: 8px;
|
|
101
|
-
margin-left: 13px;
|
|
102
|
-
`
|
|
103
|
-
|
|
104
|
-
export const EmojiWindow = styled.div<IEmojiWindow>`
|
|
105
|
-
width: 310px;
|
|
106
|
-
height: 432px;
|
|
107
|
-
overflow: hidden;
|
|
108
|
-
display:${({ visible }) => visible ? 'flex' : 'none'};
|
|
109
|
-
justify-content: center;
|
|
110
|
-
top: ${({ positionEmojiWindow }) => positionEmojiWindow};
|
|
111
|
-
right: 25px;
|
|
112
|
-
background-color: ${({ theme }) => theme.colors.shadeWhite};
|
|
113
|
-
border: 1px solid ${({ theme }) => theme.colors.neutralsGrey4};
|
|
114
|
-
position: absolute;
|
|
115
|
-
`;
|
|
116
|
-
// transform: scale(0.845);
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React,{ useEffect, useState } from 'react'
|
|
2
|
-
import '../../shared/global.css'
|
|
3
|
-
import { ThemeProvider } from 'styled-components'
|
|
4
|
-
import { FRSTTheme } from '../../theme'
|
|
5
|
-
import * as Styles from './itemLateralMenuStyles'
|
|
6
|
-
import { IItemLateralMenu } from './itemLateralMenu'
|
|
7
|
-
import Button from '@components/buttons'
|
|
8
|
-
import * as Icons from '@shared/icons'
|
|
9
|
-
|
|
10
|
-
export default function LateralMenu({ label, onClick, button, beginComponent, activeBeginIcon, selected, subItems, hiddenIconDropArrow, style }: IItemLateralMenu) {
|
|
11
|
-
const [isActive, setIsActive] = useState(selected);
|
|
12
|
-
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
setIsActive(selected)
|
|
15
|
-
}, [selected])
|
|
16
|
-
|
|
17
|
-
const getSizeCompound = () => {
|
|
18
|
-
if(!subItems.length ) return '40px';
|
|
19
|
-
let size = (subItems.length + 1 ) * 42;
|
|
20
|
-
|
|
21
|
-
return size + 'px';
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<ThemeProvider theme={FRSTTheme}>
|
|
26
|
-
{ subItems && subItems.length > 0 ?
|
|
27
|
-
<Styles.WrapperCompound isOpen={isActive} style={{...style, maxHeight: isActive ? getSizeCompound(): '40px'}}>
|
|
28
|
-
<Styles.WrapperItem active={isActive} onClick={(e) => setIsActive(!isActive)}
|
|
29
|
-
style={{...style, margin: 0, padding: 0, justifyContent: 'space-between'}} >
|
|
30
|
-
<Styles.WrapperItem style={{background: 'transparent', width: '100%'}}>
|
|
31
|
-
{ beginComponent &&
|
|
32
|
-
<Styles.WrapperComponent active={isActive}>
|
|
33
|
-
{isActive ? activeBeginIcon ? activeBeginIcon : beginComponent : beginComponent}
|
|
34
|
-
</Styles.WrapperComponent>
|
|
35
|
-
}
|
|
36
|
-
<Styles.WrapperMainLabel active={isActive} style={{marginLeft: beginComponent ? '8px': '0px'}}>
|
|
37
|
-
{ label }
|
|
38
|
-
</Styles.WrapperMainLabel>
|
|
39
|
-
</Styles.WrapperItem>
|
|
40
|
-
{ button && button?.label &&
|
|
41
|
-
<Styles.WrapperButton>
|
|
42
|
-
<Button
|
|
43
|
-
label={button.label}
|
|
44
|
-
handleClick={(e) => button.onClick(e)}
|
|
45
|
-
variant={button?.variant ? button.variant : 'primary'}
|
|
46
|
-
/>
|
|
47
|
-
</Styles.WrapperButton>
|
|
48
|
-
}
|
|
49
|
-
{ !hiddenIconDropArrow &&
|
|
50
|
-
<Styles.WrapperIconDrop isOpen={isActive}>
|
|
51
|
-
<Icons.DropdownIconLine fill={'#000'}/>
|
|
52
|
-
</Styles.WrapperIconDrop> }
|
|
53
|
-
</Styles.WrapperItem>
|
|
54
|
-
<Styles.WrapperSubItems isOpen={isActive}>
|
|
55
|
-
{subItems.map((item, index) => {
|
|
56
|
-
return <Styles.SubItem key={index} onClick={() => item.onClick(item.id)}>
|
|
57
|
-
{item.label}
|
|
58
|
-
</Styles.SubItem>
|
|
59
|
-
})}
|
|
60
|
-
</Styles.WrapperSubItems>
|
|
61
|
-
</Styles.WrapperCompound>
|
|
62
|
-
:
|
|
63
|
-
<Styles.WrapperItem active={isActive} style={{...style, margin: 0, padding: 0, justifyContent: 'space-between'}} >
|
|
64
|
-
<Styles.WrapperItem style={{background: 'transparent', width: '100%'}} onClick={(e) => onClick(e)}>
|
|
65
|
-
{ beginComponent &&
|
|
66
|
-
<Styles.WrapperComponent active={isActive}>
|
|
67
|
-
{isActive ? activeBeginIcon ? activeBeginIcon : beginComponent : beginComponent}
|
|
68
|
-
</Styles.WrapperComponent>
|
|
69
|
-
}
|
|
70
|
-
<Styles.WrapperMainLabel active={isActive} style={{marginLeft: beginComponent ? '8px': '0px'}}>
|
|
71
|
-
{ label }
|
|
72
|
-
</Styles.WrapperMainLabel>
|
|
73
|
-
</Styles.WrapperItem>
|
|
74
|
-
{ button && button?.label &&
|
|
75
|
-
<Styles.WrapperButton>
|
|
76
|
-
<Button
|
|
77
|
-
label={button.label}
|
|
78
|
-
handleClick={(e) => button.onClick(e)}
|
|
79
|
-
variant={button?.variant ? button.variant : 'primary'}
|
|
80
|
-
/>
|
|
81
|
-
</Styles.WrapperButton>
|
|
82
|
-
}
|
|
83
|
-
</Styles.WrapperItem>
|
|
84
|
-
}
|
|
85
|
-
</ThemeProvider>
|
|
86
|
-
)
|
|
87
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { enumVariant } from "@components/LXP/popOver/popOver"
|
|
2
|
-
import React from "react"
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type enumVariantButton = 'primary' | 'secondary' | 'link' | 'expandedPrimary' | 'expandedSecondary'
|
|
6
|
-
|
|
7
|
-
type typeSubItem = {
|
|
8
|
-
id?: string,
|
|
9
|
-
label: string,
|
|
10
|
-
beginComponent?: any,
|
|
11
|
-
onClick?: (e) => void
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
type typeButton= {
|
|
15
|
-
label: string,
|
|
16
|
-
variant?: enumVariantButton,
|
|
17
|
-
onClick?: (e) => void
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface IItemLateralMenu {
|
|
21
|
-
label: string,
|
|
22
|
-
onClick?: (e) => void,
|
|
23
|
-
beginComponent?: any,
|
|
24
|
-
activeBeginIcon?: any,
|
|
25
|
-
button?: typeButton,
|
|
26
|
-
selected?: boolean,
|
|
27
|
-
subItems?: Array<typeSubItem>,
|
|
28
|
-
hiddenIconDropArrow?: boolean,
|
|
29
|
-
style?: React.CSSProperties
|
|
30
|
-
}
|