@igamingcareer/igaming-components 1.2.22 → 1.2.25
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/dist/index.js +1536 -1536
- package/dist/index.mjs +22630 -23064
- package/dist/types/components/ui/alert-dialog.d.ts +20 -0
- package/dist/types/components/ui/alert.d.ts +8 -0
- package/dist/types/components/ui/avatar.d.ts +6 -0
- package/dist/types/components/ui/badge.d.ts +9 -0
- package/dist/types/components/ui/button.d.ts +11 -0
- package/dist/types/components/ui/card.d.ts +8 -0
- package/dist/types/components/ui/checkbox.d.ts +4 -0
- package/dist/types/components/ui/city-input.d.ts +12 -0
- package/dist/types/components/ui/collapsible.d.ts +5 -0
- package/dist/types/components/ui/command.d.ts +82 -0
- package/dist/types/components/ui/country-select.d.ts +14 -0
- package/dist/types/components/ui/dialog.d.ts +19 -0
- package/dist/types/components/ui/drawer.d.ts +22 -0
- package/dist/types/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/types/components/ui/form.d.ts +23 -0
- package/dist/types/components/ui/input.d.ts +3 -0
- package/dist/types/components/ui/label.d.ts +5 -0
- package/dist/types/components/ui/phone-input.d.ts +13 -0
- package/dist/types/components/ui/popover.d.ts +7 -0
- package/dist/types/components/ui/progress.d.ts +4 -0
- package/dist/types/components/ui/radio-group.d.ts +5 -0
- package/dist/types/components/ui/scroll-area.d.ts +5 -0
- package/dist/types/components/ui/select.d.ts +13 -0
- package/dist/types/components/ui/separator.d.ts +4 -0
- package/dist/types/components/ui/slider.d.ts +4 -0
- package/dist/types/components/ui/switch.d.ts +4 -0
- package/dist/types/components/ui/tabs.d.ts +7 -0
- package/dist/types/components/ui/textarea.d.ts +5 -0
- package/dist/types/components/ui/toast.d.ts +15 -0
- package/dist/types/hooks/use-toast.d.ts +45 -0
- package/dist/types/lib/utils.d.ts +2 -0
- package/dist/types/src/components/App/App.d.ts +2 -0
- package/dist/types/src/components/Auth/ForgotPassword.d.ts +26 -0
- package/dist/types/src/components/Auth/ForgotPasswordForm.d.ts +16 -0
- package/dist/types/src/components/Auth/Login.d.ts +43 -0
- package/dist/types/src/components/Auth/Login.stories.d.ts +11 -0
- package/dist/types/src/components/Auth/LoginForm.d.ts +30 -0
- package/dist/types/src/components/Auth/Register.d.ts +33 -0
- package/dist/types/src/components/Auth/RegisterForm.d.ts +29 -0
- package/dist/types/src/components/Auth/RegisterFormV2.d.ts +27 -0
- package/dist/types/src/components/Auth/RegisterV2.d.ts +25 -0
- package/dist/types/src/components/Auth/RegisterV2.stories.d.ts +14 -0
- package/dist/types/src/components/Auth/SignInPromptModal.d.ts +23 -0
- package/dist/types/src/components/Auth/SignInPromptModal.stories.d.ts +7 -0
- package/dist/types/src/components/Auth/SocialButton.d.ts +11 -0
- package/dist/types/src/components/Auth/SocialButton.stories.d.ts +11 -0
- package/dist/types/src/components/Auth/SocialDivider.d.ts +6 -0
- package/dist/types/src/components/Auth/VerificationBanner.d.ts +11 -0
- package/dist/types/src/components/Auth/VerificationBanner.stories.d.ts +9 -0
- package/dist/types/src/components/Auth/__tests__/Login.social.test.d.ts +1 -0
- package/dist/types/src/components/Auth/__tests__/LoginForm.social.test.d.ts +1 -0
- package/dist/types/src/components/Auth/__tests__/RegisterV2.social.test.d.ts +1 -0
- package/dist/types/src/components/Auth/__tests__/SocialButton.test.d.ts +1 -0
- package/dist/types/src/components/Auth/__tests__/SocialDivider.test.d.ts +1 -0
- package/dist/types/src/components/Button/Button.d.ts +5 -0
- package/dist/types/src/components/Button/Button.stories.d.ts +7 -0
- package/dist/types/src/components/CandidateProfile/CandidateProfile.d.ts +49 -0
- package/dist/types/src/components/CareerAssistant/CareerAssistant.d.ts +11 -0
- package/dist/types/src/components/CareerAssistant/MessageBubble.d.ts +15 -0
- package/dist/types/src/components/CareerAssistant/WelcomeScreen.d.ts +7 -0
- package/dist/types/src/components/CareerAssistant/mockCareerAssistant.d.ts +8 -0
- package/dist/types/src/components/Companies/CompaniesList.d.ts +31 -0
- package/dist/types/src/components/Companies/CompanyAdminPage.d.ts +0 -0
- package/dist/types/src/components/Companies/CompanyCard.stories.d.ts +7 -0
- package/dist/types/src/components/Companies/CompanyDetail.d.ts +33 -0
- package/dist/types/src/components/Companies/CompanyDetail.similarCompanies.test.d.ts +1 -0
- package/dist/types/src/components/Companies/CompanyDirectory.d.ts +27 -0
- package/dist/types/src/components/Companies/CompanyDirectoryContainer.d.ts +23 -0
- package/dist/types/src/components/Companies/CompanyFilters.test.d.ts +1 -0
- package/dist/types/src/components/Companies/CompanyGroupDetail.d.ts +6 -0
- package/dist/types/src/components/Companies/CompanyGroupDetail.stories.d.ts +6 -0
- package/dist/types/src/components/Companies/CompanyHeader.stories.d.ts +7 -0
- package/dist/types/src/components/Companies/CompanyPublicPage.d.ts +0 -0
- package/dist/types/src/components/Companies/CompanyReviewsTab.d.ts +13 -0
- package/dist/types/src/components/Companies/LoadingCompanyShadowCard.stories.d.ts +7 -0
- package/dist/types/src/components/Companies/admin/CompanyJobsAdmin.d.ts +0 -0
- package/dist/types/src/components/Companies/admin/CompanyPeopleAdmin.d.ts +0 -0
- package/dist/types/src/components/Companies/admin/CompanyProfileEditor.d.ts +0 -0
- package/dist/types/src/components/Companies/companiesListFilters.d.ts +19 -0
- package/dist/types/src/components/Companies/companiesListFilters.test.d.ts +1 -0
- package/dist/types/src/components/Companies/components/ClaimProfileDialog.d.ts +10 -0
- package/dist/types/src/components/Companies/components/CompaniesHeader.d.ts +2 -0
- package/dist/types/src/components/Companies/components/CompanyAdminEditDialog.d.ts +15 -0
- package/dist/types/src/components/Companies/components/CompanyAdminShell.d.ts +38 -0
- package/dist/types/src/components/Companies/components/CompanyCard.d.ts +25 -0
- package/dist/types/src/components/Companies/components/CompanyClaim.d.ts +7 -0
- package/dist/types/src/components/Companies/components/CompanyComparison.d.ts +12 -0
- package/dist/types/src/components/Companies/components/CompanyFilters.d.ts +10 -0
- package/dist/types/src/components/Companies/components/CompanyHeader.d.ts +35 -0
- package/dist/types/src/components/Companies/components/CompanyMetaHighlights.d.ts +11 -0
- package/dist/types/src/components/Companies/components/LoadingCompanyShadowCard.d.ts +5 -0
- package/dist/types/src/components/Companies/components/ViewControls.d.ts +14 -0
- package/dist/types/src/components/Companies/components/admin/CandidateCard.d.ts +11 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminCandidates.d.ts +13 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminCandidates.stories.d.ts +5 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminEvents.d.ts +10 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminJobs.d.ts +10 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminJobs.stories.d.ts +6 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminNews.d.ts +10 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminOverview.d.ts +10 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminPeople.d.ts +11 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminPeople.stories.d.ts +5 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminProducts.d.ts +10 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminSettings.d.ts +9 -0
- package/dist/types/src/components/Companies/components/admin/CompanyAdminSettings.stories.d.ts +5 -0
- package/dist/types/src/components/Companies/components/admin/InviteModal.d.ts +9 -0
- package/dist/types/src/components/Companies/components/admin/ProfileStrengthWidget.d.ts +7 -0
- package/dist/types/src/components/Companies/components/admin/modals/AddEventModal.d.ts +16 -0
- package/dist/types/src/components/Companies/components/admin/modals/AddJobModal.d.ts +17 -0
- package/dist/types/src/components/Companies/components/admin/modals/AddPersonModal.d.ts +15 -0
- package/dist/types/src/components/Companies/components/admin/modals/AddProductModal.d.ts +15 -0
- package/dist/types/src/components/Companies/components/tabs/CompanyEventsTab.d.ts +8 -0
- package/dist/types/src/components/Companies/components/tabs/CompanyInsightsTab.d.ts +2 -0
- package/dist/types/src/components/Companies/components/tabs/CompanyJobsTab.d.ts +9 -0
- package/dist/types/src/components/Companies/components/tabs/CompanyNewsTab.d.ts +8 -0
- package/dist/types/src/components/Companies/components/tabs/CompanyOverviewTab.d.ts +9 -0
- package/dist/types/src/components/Companies/components/tabs/CompanyPeopleTab.d.ts +6 -0
- package/dist/types/src/components/Companies/components/tabs/CompanyProductsTab.d.ts +6 -0
- package/dist/types/src/components/Companies/components/tabs/CompanySidebar.d.ts +7 -0
- package/dist/types/src/components/Companies/components/tabs/CompanyTabsList.d.ts +7 -0
- package/dist/types/src/components/Companies/components/tabs/CompanyTrustTab.d.ts +7 -0
- package/dist/types/src/components/Companies/data/companies.d.ts +18 -0
- package/dist/types/src/components/Companies/data/company-group-preview.d.ts +3 -0
- package/dist/types/src/components/Companies/data/countries.d.ts +9 -0
- package/dist/types/src/components/Companies/hooks/useCompaniesQuery.d.ts +10 -0
- package/dist/types/src/components/Companies/reviews/LeaveReviewModal.d.ts +11 -0
- package/dist/types/src/components/Companies/reviews/ReviewCard.d.ts +9 -0
- package/dist/types/src/components/Companies/reviews/ReviewStars.d.ts +9 -0
- package/dist/types/src/components/Companies/reviews/ReviewSummaryBar.d.ts +7 -0
- package/dist/types/src/components/Companies/reviews/index.d.ts +4 -0
- package/dist/types/src/components/Companies/types/companyAdmin.d.ts +81 -0
- package/dist/types/src/components/Companies/types/index.d.ts +390 -0
- package/dist/types/src/components/Companies/utils/companiesQuery.d.ts +6 -0
- package/dist/types/src/components/Companies/utils/companyFilters.d.ts +53 -0
- package/dist/types/src/components/Companies/utils/companyFilters.test.d.ts +1 -0
- package/dist/types/src/components/Companies/utils/normalizeCompanies.d.ts +15 -0
- package/dist/types/src/components/Companies/utils/normalizeCompaniesResponse.test.d.ts +1 -0
- package/dist/types/src/components/Companies/utils/permissions.d.ts +9 -0
- package/dist/types/src/components/Companies/utils/safeArray.d.ts +1 -0
- package/dist/types/src/components/Companies/utils/similarCompanies.d.ts +2 -0
- package/dist/types/src/components/CompanyOnboarding/CompanyOnboardingModal.d.ts +18 -0
- package/dist/types/src/components/CompanyOnboarding/index.d.ts +1 -0
- package/dist/types/src/components/Complaints/Complaints.d.ts +8 -0
- package/dist/types/src/components/Complaints/SubmitComplaintModal.d.ts +16 -0
- package/dist/types/src/components/Consent/Analytics.d.ts +9 -0
- package/dist/types/src/components/Consent/ConsentAnalytics.stories.d.ts +9 -0
- package/dist/types/src/components/Consent/ConsentBanner.d.ts +11 -0
- package/dist/types/src/components/Consent/ConsentContext.d.ts +20 -0
- package/dist/types/src/components/ContactForm/ContactFormHybrid.d.ts +8 -0
- package/dist/types/src/components/Courses/CoursesList.d.ts +9 -0
- package/dist/types/src/components/Dashboard/AddExperienceModal.d.ts +33 -0
- package/dist/types/src/components/Dashboard/AddJobDetailModal.d.ts +9 -0
- package/dist/types/src/components/Dashboard/AddLanguageModal.d.ts +10 -0
- package/dist/types/src/components/Dashboard/AddPreferenceTopicModal.d.ts +7 -0
- package/dist/types/src/components/Dashboard/AddSkillModal.d.ts +7 -0
- package/dist/types/src/components/Dashboard/Alerts/AlertCard.d.ts +12 -0
- package/dist/types/src/components/Dashboard/Alerts/AlertEmptyState.d.ts +5 -0
- package/dist/types/src/components/Dashboard/Alerts/AlertForm.d.ts +10 -0
- package/dist/types/src/components/Dashboard/Alerts/AlertInsightsWidget.d.ts +8 -0
- package/dist/types/src/components/Dashboard/Alerts/AlertStatusBadge.d.ts +8 -0
- package/dist/types/src/components/Dashboard/Alerts/DashboardAlerts.d.ts +11 -0
- package/dist/types/src/components/Dashboard/CVUploadDialog.d.ts +8 -0
- package/dist/types/src/components/Dashboard/CompanyDashboard.d.ts +16 -0
- package/dist/types/src/components/Dashboard/CompanyEmployeeOverview.d.ts +29 -0
- package/dist/types/src/components/Dashboard/CompanyOwnerOverview.d.ts +20 -0
- package/dist/types/src/components/Dashboard/CompanyRecruiterOverview.d.ts +31 -0
- package/dist/types/src/components/Dashboard/Dashboard.d.ts +56 -0
- package/dist/types/src/components/Dashboard/DashboardCourses.d.ts +32 -0
- package/dist/types/src/components/Dashboard/DashboardJobCard.d.ts +13 -0
- package/dist/types/src/components/Dashboard/DashboardJobs.d.ts +17 -0
- package/dist/types/src/components/Dashboard/DashboardLayout.d.ts +15 -0
- package/dist/types/src/components/Dashboard/DashboardNews.d.ts +15 -0
- package/dist/types/src/components/Dashboard/DashboardNewsCard.d.ts +12 -0
- package/dist/types/src/components/Dashboard/DashboardOverview.d.ts +46 -0
- package/dist/types/src/components/Dashboard/DashboardProfile.d.ts +64 -0
- package/dist/types/src/components/Dashboard/DashboardSettings.d.ts +84 -0
- package/dist/types/src/components/Dashboard/DashboardStats.d.ts +17 -0
- package/dist/types/src/components/Dashboard/FreelancerActivationCard.d.ts +6 -0
- package/dist/types/src/components/Dashboard/FreelancerDashboardSection.d.ts +10 -0
- package/dist/types/src/components/Dashboard/FreelancerOnboardingModal.d.ts +10 -0
- package/dist/types/src/components/Dashboard/OnboardingChecklist.d.ts +16 -0
- package/dist/types/src/components/Dashboard/OnboardingChecklist.stories.d.ts +8 -0
- package/dist/types/src/components/Dashboard/OnboardingDashboard.d.ts +19 -0
- package/dist/types/src/components/Dashboard/OnboardingDashboard.stories.d.ts +9 -0
- package/dist/types/src/components/Events/EventCalendarCard.d.ts +7 -0
- package/dist/types/src/components/Events/EventsList.d.ts +11 -0
- package/dist/types/src/components/Events/SubmitEventModal.d.ts +22 -0
- package/dist/types/src/components/Events/mockEvents.d.ts +2 -0
- package/dist/types/src/components/Events/types.d.ts +22 -0
- package/dist/types/src/components/Footer/Footer.d.ts +32 -0
- package/dist/types/src/components/Footer/Footer.stories.d.ts +7 -0
- package/dist/types/src/components/Freelancer/FreelancerProfile.d.ts +19 -0
- package/dist/types/src/components/Freelancer/FreelancerProfileContainer.d.ts +2 -0
- package/dist/types/src/components/Freelancer/Freelancers.d.ts +30 -0
- package/dist/types/src/components/Freelancer/FreelancersContainer.d.ts +2 -0
- package/dist/types/src/components/Freelancer/FreelancersList.d.ts +10 -0
- package/dist/types/src/components/Freelancer/mockFreelancers.d.ts +6 -0
- package/dist/types/src/components/GenericListing/Banner.d.ts +9 -0
- package/dist/types/src/components/GenericListing/DateFilter.d.ts +13 -0
- package/dist/types/src/components/GenericListing/LastVisitedJobs.d.ts +8 -0
- package/dist/types/src/components/GenericListing/Listing.d.ts +32 -0
- package/dist/types/src/components/GenericListing/ListingGrid.d.ts +16 -0
- package/dist/types/src/components/GenericListing/ListingHeader.d.ts +6 -0
- package/dist/types/src/components/GenericListing/ListingSort.d.ts +14 -0
- package/dist/types/src/components/GenericListing/MobileFilterDrawer.d.ts +21 -0
- package/dist/types/src/components/GenericListing/MobileNav.d.ts +3 -0
- package/dist/types/src/components/GenericListing/Pagination.d.ts +8 -0
- package/dist/types/src/components/GenericListing/PaginationControls.d.ts +8 -0
- package/dist/types/src/components/GenericListing/SearchBar.d.ts +10 -0
- package/dist/types/src/components/GenericListing/SearchableSelect.d.ts +10 -0
- package/dist/types/src/components/GenericListing/Sidebar.d.ts +11 -0
- package/dist/types/src/components/GenericListing/SidebarFilter.d.ts +31 -0
- package/dist/types/src/components/GenericListing/SidebarFilters.d.ts +12 -0
- package/dist/types/src/components/GenericListing/accessControl.d.ts +22 -0
- package/dist/types/src/components/GenericListing/generateMockJobs.d.ts +3 -0
- package/dist/types/src/components/GenericListing/useJobDataHook.d.ts +6 -0
- package/dist/types/src/components/GenericListing/useLocalStorageState.d.ts +1 -0
- package/dist/types/src/components/Header/Header.d.ts +2 -0
- package/dist/types/src/components/Header/Header.stories.d.ts +6 -0
- package/dist/types/src/components/Header/HeaderAlternative.d.ts +13 -0
- package/dist/types/src/components/HomePage/Advantages.d.ts +15 -0
- package/dist/types/src/components/HomePage/Cart.d.ts +12 -0
- package/dist/types/src/components/HomePage/Chatbot.d.ts +6 -0
- package/dist/types/src/components/HomePage/Contact.d.ts +22 -0
- package/dist/types/src/components/HomePage/CourseTypes.d.ts +26 -0
- package/dist/types/src/components/HomePage/Courses.d.ts +16 -0
- package/dist/types/src/components/HomePage/Destinations.d.ts +12 -0
- package/dist/types/src/components/HomePage/FAQ.d.ts +11 -0
- package/dist/types/src/components/HomePage/FeatureJobs.d.ts +19 -0
- package/dist/types/src/components/HomePage/Features.d.ts +13 -0
- package/dist/types/src/components/HomePage/ForEmployers.d.ts +10 -0
- package/dist/types/src/components/HomePage/Gallery.d.ts +13 -0
- package/dist/types/src/components/HomePage/Hero.d.ts +11 -0
- package/dist/types/src/components/HomePage/HeroAlternative.d.ts +14 -0
- package/dist/types/src/components/HomePage/HeroSection.d.ts +2 -0
- package/dist/types/src/components/HomePage/HomePage.d.ts +3 -0
- package/dist/types/src/components/HomePage/IgamingCareerHome.d.ts +33 -0
- package/dist/types/src/components/HomePage/ImageSlider.d.ts +11 -0
- package/dist/types/src/components/HomePage/JobSearch.d.ts +2 -0
- package/dist/types/src/components/HomePage/JobsSearchWidget.d.ts +22 -0
- package/dist/types/src/components/HomePage/Navbar.d.ts +19 -0
- package/dist/types/src/components/HomePage/Newsletter.d.ts +11 -0
- package/dist/types/src/components/HomePage/NewsletterV2.d.ts +21 -0
- package/dist/types/src/components/HomePage/NotificationModal.d.ts +7 -0
- package/dist/types/src/components/HomePage/Partners.d.ts +2 -0
- package/dist/types/src/components/HomePage/Services.d.ts +13 -0
- package/dist/types/src/components/HomePage/ServicesNoIcons.d.ts +16 -0
- package/dist/types/src/components/HomePage/SidebarNewsletter.d.ts +9 -0
- package/dist/types/src/components/HomePage/SidebarNewsletterV2.d.ts +18 -0
- package/dist/types/src/components/HomePage/Testimonials.d.ts +14 -0
- package/dist/types/src/components/HomePage/TestimonialsVariant.d.ts +2 -0
- package/dist/types/src/components/HomePage/TrustSignals.d.ts +21 -0
- package/dist/types/src/components/HomePage/ValueProposition.d.ts +12 -0
- package/dist/types/src/components/HomePage/Videos.d.ts +13 -0
- package/dist/types/src/components/HomePage/context/CartContext.d.ts +22 -0
- package/dist/types/src/components/IgamingCoursesPage/CourseCard.d.ts +12 -0
- package/dist/types/src/components/IgamingCoursesPage/CourseFilters.d.ts +19 -0
- package/dist/types/src/components/IgamingCoursesPage/CourseNavigation.d.ts +11 -0
- package/dist/types/src/components/IgamingCoursesPage/CourseSearch.d.ts +10 -0
- package/dist/types/src/components/IgamingCoursesPage/CourseSidebarFilters.d.ts +23 -0
- package/dist/types/src/components/IgamingCoursesPage/CoursesListingCards.d.ts +17 -0
- package/dist/types/src/components/IgamingCoursesPage/FeaturedCourses.d.ts +12 -0
- package/dist/types/src/components/IgamingCoursesPage/HeroSection.d.ts +9 -0
- package/dist/types/src/components/IgamingCoursesPage/IgamingCoursesPage.d.ts +12 -0
- package/dist/types/src/components/IgamingCoursesPage/MobileCourseSearch.d.ts +10 -0
- package/dist/types/src/components/IgamingCoursesPage/Statistics.d.ts +8 -0
- package/dist/types/src/components/IgamingCoursesPage/data/courses.d.ts +3 -0
- package/dist/types/src/components/IgamingCoursesPage/types/course.d.ts +63 -0
- package/dist/types/src/components/JobListing/JobListing.d.ts +24 -0
- package/dist/types/src/components/JobListing/components/Filters.d.ts +17 -0
- package/dist/types/src/components/JobListing/components/Footer.d.ts +12 -0
- package/dist/types/src/components/JobListing/components/JobCard.d.ts +14 -0
- package/dist/types/src/components/JobListing/components/JobList.d.ts +12 -0
- package/dist/types/src/components/JobListing/components/MobileFilterDrawer.d.ts +21 -0
- package/dist/types/src/components/JobListing/components/Navbar.d.ts +13 -0
- package/dist/types/src/components/JobListing/components/PromoCard.d.ts +11 -0
- package/dist/types/src/components/JobListing/components/SearchBar.d.ts +10 -0
- package/dist/types/src/components/JobListing/types/Job.d.ts +1 -0
- package/dist/types/src/components/Jobs/JobsList.d.ts +39 -0
- package/dist/types/src/components/Jobs/jobsListFilters.d.ts +13 -0
- package/dist/types/src/components/Jobs/jobsListFilters.test.d.ts +1 -0
- package/dist/types/src/components/JobsDetails/JobDetail.d.ts +9 -0
- package/dist/types/src/components/JobsDetails/utils/navigation.d.ts +2 -0
- package/dist/types/src/components/JobsDetails/utils/types.d.ts +37 -0
- package/dist/types/src/components/JobsDetails/utils/useJobSlug.d.ts +1 -0
- package/dist/types/src/components/LanguageSchools/LanguageSchoolDetail.d.ts +16 -0
- package/dist/types/src/components/LanguageSchools/LanguageSchoolsList.d.ts +17 -0
- package/dist/types/src/components/LanguageSchools/components/SchoolCard.d.ts +10 -0
- package/dist/types/src/components/LanguageSchools/schoolsListFilters.d.ts +6 -0
- package/dist/types/src/components/LeadForm.d.ts +45 -0
- package/dist/types/src/components/LeadForm.stories.d.ts +51 -0
- package/dist/types/src/components/LeadForm.test.d.ts +4 -0
- package/dist/types/src/components/MaltaEvents/MaltaEventDetail.d.ts +8 -0
- package/dist/types/src/components/MaltaEvents/MaltaEventsList.d.ts +17 -0
- package/dist/types/src/components/MaltaEvents/components/MaltaEventCard.d.ts +10 -0
- package/dist/types/src/components/MaltaEvents/eventsListFilters.d.ts +22 -0
- package/dist/types/src/components/MaltaEvents/index.d.ts +5 -0
- package/dist/types/src/components/MaltaEvents/mockMaltaEvents.d.ts +2 -0
- package/dist/types/src/components/MaltaPlaces/MaltaPlaceDetail.d.ts +8 -0
- package/dist/types/src/components/MaltaPlaces/MaltaPlacesList.d.ts +17 -0
- package/dist/types/src/components/MaltaPlaces/components/MaltaPlaceCard.d.ts +10 -0
- package/dist/types/src/components/MaltaPlaces/index.d.ts +5 -0
- package/dist/types/src/components/MaltaPlaces/mockMaltaPlaces.d.ts +2 -0
- package/dist/types/src/components/MaltaPlaces/placesListFilters.d.ts +14 -0
- package/dist/types/src/components/MarketDetail/MarketDetail.d.ts +6 -0
- package/dist/types/src/components/Markets/MarketsList.d.ts +17 -0
- package/dist/types/src/components/Markets/SuggestMarketModal.d.ts +8 -0
- package/dist/types/src/components/Markets/mockMarkets.d.ts +3 -0
- package/dist/types/src/components/Modal/Modal.d.ts +10 -0
- package/dist/types/src/components/News/NewsList.d.ts +7 -0
- package/dist/types/src/components/NewsPage/BreakingNews.d.ts +7 -0
- package/dist/types/src/components/NewsPage/NewsCard.d.ts +15 -0
- package/dist/types/src/components/NewsPage/NewsFilters.d.ts +14 -0
- package/dist/types/src/components/NewsPage/NewsPage.d.ts +19 -0
- package/dist/types/src/components/NewsPage/NewsSearch.d.ts +9 -0
- package/dist/types/src/components/NewsPage/NewsSidebarFilters.d.ts +19 -0
- package/dist/types/src/components/NewsPage/TrendingNews.d.ts +8 -0
- package/dist/types/src/components/NewsPage/data/news.d.ts +3 -0
- package/dist/types/src/components/NewsPage/types/news.d.ts +35 -0
- package/dist/types/src/components/Notification/Notification.stories.d.ts +6 -0
- package/dist/types/src/components/Notification/NotificationItem.d.ts +15 -0
- package/dist/types/src/components/Notification/NotificationProvider.d.ts +20 -0
- package/dist/types/src/components/Notification/NotificationTester.d.ts +21 -0
- package/dist/types/src/components/Notification/NotificationTester.stories.d.ts +6 -0
- package/dist/types/src/components/Notification/NotificationViewport.d.ts +20 -0
- package/dist/types/src/components/Notification/index.d.ts +4 -0
- package/dist/types/src/components/Notification/notificationStore.d.ts +51 -0
- package/dist/types/src/components/Onboarding/DashboardOnboardingSection.d.ts +12 -0
- package/dist/types/src/components/Onboarding/OnboardingChecklist.d.ts +8 -0
- package/dist/types/src/components/Onboarding/OnboardingContext.d.ts +6 -0
- package/dist/types/src/components/Onboarding/OnboardingDashboard.d.ts +11 -0
- package/dist/types/src/components/Onboarding/OnboardingModal.d.ts +19 -0
- package/dist/types/src/components/Onboarding/OnboardingPopup.d.ts +6 -0
- package/dist/types/src/components/Onboarding/ShieldedActionButton.d.ts +15 -0
- package/dist/types/src/components/Onboarding/VerificationBanner.d.ts +12 -0
- package/dist/types/src/components/Onboarding/index.d.ts +13 -0
- package/dist/types/src/components/Places/PlacesList.d.ts +7 -0
- package/dist/types/src/components/Places/mockPlaces.d.ts +2 -0
- package/dist/types/src/components/Places/types.d.ts +16 -0
- package/dist/types/src/components/Prices/Group/GroupPrices.d.ts +10 -0
- package/dist/types/src/components/Prices/PricingComponents.stories.d.ts +6 -0
- package/dist/types/src/components/Prices/Summary/SlidingSummary.d.ts +7 -0
- package/dist/types/src/components/ProductCategories/ProductCategoriesList.d.ts +9 -0
- package/dist/types/src/components/ProductCategories/ProductCategoryDetail.d.ts +7 -0
- package/dist/types/src/components/ProductCategories/mockProductCategories.d.ts +3 -0
- package/dist/types/src/components/ProductCategories/types.d.ts +47 -0
- package/dist/types/src/components/QualityCompounderFramework/QualityCompounderFramework.d.ts +11 -0
- package/dist/types/src/components/QualityCompounderFramework/ResearchPage.d.ts +1 -0
- package/dist/types/src/components/QualityCompounderFramework/Savedevaluations.d.ts +6 -0
- package/dist/types/src/components/QualityCompounderFramework/WatchlistDashboard.d.ts +6 -0
- package/dist/types/src/components/RegulatorDetail/RegulatorDetail.d.ts +6 -0
- package/dist/types/src/components/Regulators/JurisdictionsList.d.ts +6 -0
- package/dist/types/src/components/Regulators/RegulatorsList.d.ts +9 -0
- package/dist/types/src/components/Regulators/mockJurisdictions.d.ts +3 -0
- package/dist/types/src/components/Regulators/mockRegulators.d.ts +3 -0
- package/dist/types/src/components/Regulators/types.d.ts +55 -0
- package/dist/types/src/components/Research/ResearchPage.d.ts +5 -0
- package/dist/types/src/components/Research/index.d.ts +1 -0
- package/dist/types/src/components/Reviews/LeaveReviewStandaloneModal.d.ts +23 -0
- package/dist/types/src/components/Reviews/Reviews.d.ts +8 -0
- package/dist/types/src/components/Shared/ActiveFiltersDisplay.d.ts +15 -0
- package/dist/types/src/components/Shared/Cards/CareerPathCard.d.ts +20 -0
- package/dist/types/src/components/Shared/Cards/ChannelCard.d.ts +9 -0
- package/dist/types/src/components/Shared/Cards/CompanyCardMobile.d.ts +30 -0
- package/dist/types/src/components/Shared/Cards/CompanyTypeCard.d.ts +9 -0
- package/dist/types/src/components/Shared/Cards/CourseCard.d.ts +37 -0
- package/dist/types/src/components/Shared/Cards/DepartmentCard.d.ts +15 -0
- package/dist/types/src/components/Shared/Cards/DepartmentEntityCard.d.ts +9 -0
- package/dist/types/src/components/Shared/Cards/DirectoryDetailCard.d.ts +13 -0
- package/dist/types/src/components/Shared/Cards/DirectoryInfoPanel.d.ts +25 -0
- package/dist/types/src/components/Shared/Cards/DirectoryKeyRolesList.d.ts +11 -0
- package/dist/types/src/components/Shared/Cards/EventsCard.d.ts +19 -0
- package/dist/types/src/components/Shared/Cards/FreelancerCard.d.ts +23 -0
- package/dist/types/src/components/Shared/Cards/GamblingVerticalCard.d.ts +9 -0
- package/dist/types/src/components/Shared/Cards/JobCard.d.ts +31 -0
- package/dist/types/src/components/Shared/Cards/JurisdictionCard.d.ts +8 -0
- package/dist/types/src/components/Shared/Cards/MarketsCard.d.ts +8 -0
- package/dist/types/src/components/Shared/Cards/NewsCard.d.ts +32 -0
- package/dist/types/src/components/Shared/Cards/PlacesCard.d.ts +18 -0
- package/dist/types/src/components/Shared/Cards/PlaybookCard.d.ts +17 -0
- package/dist/types/src/components/Shared/Cards/ProductCategoriesCard.d.ts +26 -0
- package/dist/types/src/components/Shared/Cards/RegulatorsCard.d.ts +21 -0
- package/dist/types/src/components/Shared/Cards/RoleGuideCard.d.ts +17 -0
- package/dist/types/src/components/Shared/Cards/TermCard.d.ts +14 -0
- package/dist/types/src/components/Shared/Cards/VideoCard.d.ts +21 -0
- package/dist/types/src/components/Shared/Cards/index.d.ts +10 -0
- package/dist/types/src/components/Shared/CompanyCardMobile.stories.d.ts +7 -0
- package/dist/types/src/components/Shared/Directory/DirectoryBanner.d.ts +8 -0
- package/dist/types/src/components/Shared/Directory/DirectoryShell.d.ts +30 -0
- package/dist/types/src/components/Shared/Directory/DirectoryShowcase.d.ts +3 -0
- package/dist/types/src/components/Shared/Directory/DirectoryToolbar.d.ts +20 -0
- package/dist/types/src/components/Shared/Directory/ViewModeToggle.d.ts +1 -0
- package/dist/types/src/components/Shared/Directory/index.d.ts +5 -0
- package/dist/types/src/components/Shared/Directory/types.d.ts +73 -0
- package/dist/types/src/components/Shared/GenericFilter.d.ts +17 -0
- package/dist/types/src/components/Shared/GenericPagination.d.ts +8 -0
- package/dist/types/src/components/Shared/GenericPagination.stories.d.ts +7 -0
- package/dist/types/src/components/Shared/ItemsPerPageSelector.d.ts +10 -0
- package/dist/types/src/components/Shared/ItemsPerPageSelector.stories.d.ts +7 -0
- package/dist/types/src/components/Shared/Listing/ListingActiveFilters.d.ts +16 -0
- package/dist/types/src/components/Shared/Listing/ListingEmptyState.d.ts +16 -0
- package/dist/types/src/components/Shared/Listing/ListingHeader.d.ts +17 -0
- package/dist/types/src/components/Shared/Listing/ListingMobileFilters.d.ts +24 -0
- package/dist/types/src/components/Shared/Listing/ListingPagination.d.ts +15 -0
- package/dist/types/src/components/Shared/Listing/ListingSearchBar.d.ts +20 -0
- package/dist/types/src/components/Shared/Listing/ListingSidebar.d.ts +25 -0
- package/dist/types/src/components/Shared/Listing/ListingToolbar.d.ts +24 -0
- package/dist/types/src/components/Shared/Listing/index.d.ts +9 -0
- package/dist/types/src/components/Shared/Listing/types.d.ts +50 -0
- package/dist/types/src/components/Shared/LoadingShadowCard.d.ts +5 -0
- package/dist/types/src/components/Shared/LoadingShadowCard.stories.d.ts +7 -0
- package/dist/types/src/components/Shared/Mobile/BottomSheetFilter.d.ts +23 -0
- package/dist/types/src/components/Shared/Mobile/FloatingActionButton.d.ts +22 -0
- package/dist/types/src/components/Shared/Mobile/HorizontalTagSlider.d.ts +22 -0
- package/dist/types/src/components/Shared/Mobile/StickyFilterChips.d.ts +20 -0
- package/dist/types/src/components/Shared/Mobile/UserIdentityMenu.d.ts +36 -0
- package/dist/types/src/components/Shared/Mobile/index.d.ts +5 -0
- package/dist/types/src/components/Shared/MobileDrawer.d.ts +9 -0
- package/dist/types/src/components/Shared/PageTitleHeader.d.ts +16 -0
- package/dist/types/src/components/Shared/SearchBox.d.ts +11 -0
- package/dist/types/src/components/Shared/ShieldedActionButton.d.ts +14 -0
- package/dist/types/src/components/Shared/ShieldedActionButton.stories.d.ts +8 -0
- package/dist/types/src/components/Shared/SubscriptionModal.d.ts +10 -0
- package/dist/types/src/components/Shared/Taxonomy/ExamplesPanel.d.ts +7 -0
- package/dist/types/src/components/Shared/Taxonomy/TaxonomyApproveForm.d.ts +15 -0
- package/dist/types/src/components/Shared/Taxonomy/TaxonomySuggestionDetail.d.ts +11 -0
- package/dist/types/src/components/Shared/Taxonomy/TaxonomySuggestionTable.d.ts +12 -0
- package/dist/types/src/components/Shared/Taxonomy/types.d.ts +18 -0
- package/dist/types/src/components/Shared/ViewControls.d.ts +13 -0
- package/dist/types/src/components/Shared/ViewModeToggle.d.ts +9 -0
- package/dist/types/src/components/Shared/extractTagsFromTitle.d.ts +3 -0
- package/dist/types/src/components/Shared/helpers/api.d.ts +21 -0
- package/dist/types/src/components/Shared/helpers/filters.d.ts +10 -0
- package/dist/types/src/components/Shared/helpers/jobsHelpers.d.ts +6 -0
- package/dist/types/src/components/Shared/types/shared-types.d.ts +125 -0
- package/dist/types/src/components/Shared/useSavedJobs.d.ts +5 -0
- package/dist/types/src/components/TagBadge/TagBadge.d.ts +12 -0
- package/dist/types/src/components/TagPicker/TagPicker.d.ts +20 -0
- package/dist/types/src/components/hooks/use-lead-form.d.ts +30 -0
- package/dist/types/src/components/hooks/useFilters.d.ts +5 -0
- package/dist/types/src/components/hooks/useOnboarding.d.ts +19 -0
- package/dist/types/src/components/hooks/usePagination.d.ts +6 -0
- package/dist/types/src/components/hooks/useSubscription.d.ts +4 -0
- package/dist/types/src/components/services/lead-validation.d.ts +30 -0
- package/dist/types/src/components/types/lead.d.ts +43 -0
- package/dist/types/src/components/ui/button.d.ts +57 -0
- package/dist/types/src/components/ui/button.stories.d.ts +105 -0
- package/dist/types/src/components/ui/button.test.d.ts +1 -0
- package/dist/types/src/components/ui/index.d.ts +17 -0
- package/dist/types/src/data/mockCandidates.d.ts +2 -0
- package/dist/types/src/data/mockCareerAssistant.d.ts +6 -0
- package/dist/types/src/data/mockComplaints.d.ts +2 -0
- package/dist/types/src/data/mockReviews.d.ts +6 -0
- package/dist/types/src/hooks/use-lead-form.d.ts +21 -0
- package/dist/types/src/hooks/useCareerAssistant.d.ts +7 -0
- package/dist/types/src/hooks/useLocalStorage.d.ts +36 -0
- package/dist/types/src/index.d.ts +170 -0
- package/dist/types/src/lib/utils.d.ts +15 -0
- package/dist/types/src/services/alphaVantageResearch.d.ts +32 -0
- package/dist/types/src/services/careerAssistant.mock.d.ts +53 -0
- package/dist/types/src/services/fmpService.d.ts +74 -0
- package/dist/types/src/services/lead-validation.d.ts +105 -0
- package/dist/types/src/services/research.d.ts +71 -0
- package/dist/types/src/services/scoringEngine.d.ts +35 -0
- package/dist/types/src/services/watchlistStore.d.ts +18 -0
- package/dist/types/src/stories/PageComponents.stories.d.ts +7 -0
- package/dist/types/src/types/candidate.d.ts +27 -0
- package/dist/types/src/types/chat-messages.d.ts +6 -0
- package/dist/types/src/types/company-user.d.ts +33 -0
- package/dist/types/src/types/company-user.test.d.ts +1 -0
- package/dist/types/src/types/company.d.ts +252 -0
- package/dist/types/src/types/complaint.d.ts +21 -0
- package/dist/types/src/types/conference.d.ts +21 -0
- package/dist/types/src/types/dashboard.d.ts +252 -0
- package/dist/types/src/types/events.courses.d.ts +49 -0
- package/dist/types/src/types/events.d.ts +23 -0
- package/dist/types/src/types/events.freelancers.d.ts +11 -0
- package/dist/types/src/types/events.jobs.d.ts +70 -0
- package/dist/types/src/types/events.news.d.ts +57 -0
- package/dist/types/src/types/events.newsletter.d.ts +6 -0
- package/dist/types/src/types/freelancer.d.ts +128 -0
- package/dist/types/src/types/general.d.ts +20 -0
- package/dist/types/src/types/icon-utils.d.ts +3 -0
- package/dist/types/src/types/item.d.ts +10 -0
- package/dist/types/src/types/job-alert.d.ts +64 -0
- package/dist/types/src/types/job.d.ts +70 -0
- package/dist/types/src/types/lead.d.ts +128 -0
- package/dist/types/src/types/maltaevent.d.ts +50 -0
- package/dist/types/src/types/maltaplace.d.ts +52 -0
- package/dist/types/src/types/market.d.ts +86 -0
- package/dist/types/src/types/news.d.ts +15 -0
- package/dist/types/src/types/onboarding.d.ts +42 -0
- package/dist/types/src/types/review.d.ts +61 -0
- package/dist/types/src/types/school.d.ts +89 -0
- package/dist/types/src/types/user.d.ts +34 -0
- package/dist/types/src/utils/safeArray.d.ts +1 -0
- package/dist/types/src/utils/safeArray.test.d.ts +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DirectoryActiveFilter, DirectoryBannerConfig, DirectoryFilterSection, DirectoryFilterValues, DirectoryPagination, DirectorySearchProps, DirectorySortProps, DirectoryViewMode } from "./types";
|
|
3
|
+
interface DirectoryShellProps {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
headerPopularTags?: string[];
|
|
7
|
+
sponsoredSlot?: React.ReactNode;
|
|
8
|
+
sidebarSlot?: React.ReactNode;
|
|
9
|
+
filtersPanel?: React.ReactNode;
|
|
10
|
+
mobileFiltersPanel?: React.ReactNode;
|
|
11
|
+
filters?: DirectoryFilterSection[];
|
|
12
|
+
filterValues?: DirectoryFilterValues;
|
|
13
|
+
onFilterChange?: (key: string, values: string[]) => void;
|
|
14
|
+
onClearFilters?: () => void;
|
|
15
|
+
activeFilters?: DirectoryActiveFilter[];
|
|
16
|
+
search?: DirectorySearchProps;
|
|
17
|
+
sort?: DirectorySortProps;
|
|
18
|
+
viewMode?: DirectoryViewMode;
|
|
19
|
+
onViewModeChange?: (mode: DirectoryViewMode) => void;
|
|
20
|
+
pagination?: DirectoryPagination;
|
|
21
|
+
showToolbar?: boolean;
|
|
22
|
+
toolbarTrailingSlot?: React.ReactNode;
|
|
23
|
+
resultsClassName?: string;
|
|
24
|
+
banner?: DirectoryBannerConfig;
|
|
25
|
+
headerActions?: React.ReactNode;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
maxFiltersVisible?: number;
|
|
28
|
+
}
|
|
29
|
+
declare const DirectoryShell: React.FC<DirectoryShellProps>;
|
|
30
|
+
export default DirectoryShell;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DirectorySortProps, DirectoryViewMode } from "./types";
|
|
3
|
+
interface DirectoryToolbarProps {
|
|
4
|
+
sort?: DirectorySortProps;
|
|
5
|
+
viewMode?: DirectoryViewMode;
|
|
6
|
+
onViewModeChange?: (mode: DirectoryViewMode) => void;
|
|
7
|
+
itemsPerPage?: number;
|
|
8
|
+
onItemsPerPageChange?: (value: number) => void;
|
|
9
|
+
itemsPerPageOptions?: number[];
|
|
10
|
+
showItemsPerPage?: boolean;
|
|
11
|
+
trailingSlot?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
summaryTitle?: string;
|
|
14
|
+
startIndex?: number;
|
|
15
|
+
endIndex?: number;
|
|
16
|
+
totalCount?: number;
|
|
17
|
+
itemLabel?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const DirectoryToolbar: React.FC<DirectoryToolbarProps>;
|
|
20
|
+
export default DirectoryToolbar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "../ViewModeToggle";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as DirectoryShell } from "./DirectoryShell";
|
|
2
|
+
export { default as DirectoryToolbar } from "./DirectoryToolbar";
|
|
3
|
+
export { default as DirectoryBanner } from "./DirectoryBanner";
|
|
4
|
+
export { default as ViewModeToggle } from "./ViewModeToggle";
|
|
5
|
+
export type { DirectoryActiveFilter, DirectoryBannerConfig, DirectoryFilterOption, DirectoryFilterSection, DirectoryFilterValues, DirectoryPagination, DirectorySearchProps, DirectorySortOption, DirectorySortProps, DirectoryViewMode } from "./types";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export type DirectoryViewMode = "grid" | "list";
|
|
2
|
+
export interface DirectorySortOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface DirectorySearchProps {
|
|
7
|
+
value: string;
|
|
8
|
+
onChange: (value: string) => void;
|
|
9
|
+
onSubmit: (value: string) => void;
|
|
10
|
+
onClear?: () => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
suggestions?: string[];
|
|
13
|
+
onSuggestionSelect?: (suggestion: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export interface DirectoryFilterOption {
|
|
16
|
+
value: string;
|
|
17
|
+
label: string;
|
|
18
|
+
count?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface DirectoryRangeConfig {
|
|
21
|
+
min: number;
|
|
22
|
+
max: number;
|
|
23
|
+
step?: number;
|
|
24
|
+
unit?: string;
|
|
25
|
+
unitPosition?: "prefix" | "suffix";
|
|
26
|
+
formatLabel?: (value: number) => string;
|
|
27
|
+
}
|
|
28
|
+
export interface DirectoryFilterSection {
|
|
29
|
+
key: string;
|
|
30
|
+
label: string;
|
|
31
|
+
type: "checkbox" | "select" | "searchable-select" | "range" | "toggle";
|
|
32
|
+
options?: DirectoryFilterOption[];
|
|
33
|
+
searchable?: boolean;
|
|
34
|
+
collapsible?: boolean;
|
|
35
|
+
defaultExpanded?: boolean;
|
|
36
|
+
/** For checkbox: max visible items before "View more" (default: show all) */
|
|
37
|
+
maxVisible?: number;
|
|
38
|
+
/** For range type filters */
|
|
39
|
+
rangeConfig?: DirectoryRangeConfig;
|
|
40
|
+
}
|
|
41
|
+
export type DirectoryFilterValues = Record<string, string[]>;
|
|
42
|
+
export interface DirectoryActiveFilter {
|
|
43
|
+
key: string;
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
onRemove: () => void;
|
|
47
|
+
}
|
|
48
|
+
export interface DirectoryBannerConfig {
|
|
49
|
+
position: "sidebar" | "top" | "bottom";
|
|
50
|
+
url: string;
|
|
51
|
+
link: string;
|
|
52
|
+
alt?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface DirectoryPagination {
|
|
55
|
+
toolbarTitle?: string;
|
|
56
|
+
toolbarItemLabel?: string;
|
|
57
|
+
enabled?: boolean;
|
|
58
|
+
page: number;
|
|
59
|
+
pageSize: number;
|
|
60
|
+
totalPages: number;
|
|
61
|
+
totalCount?: number;
|
|
62
|
+
toolbarTotalCount?: number;
|
|
63
|
+
pageSizeOptions?: number[];
|
|
64
|
+
showItemsPerPage?: boolean;
|
|
65
|
+
onPageChange: (page: number) => void;
|
|
66
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
67
|
+
}
|
|
68
|
+
export interface DirectorySortProps {
|
|
69
|
+
value: string;
|
|
70
|
+
options: DirectorySortOption[];
|
|
71
|
+
onChange: (value: string) => void;
|
|
72
|
+
label?: string;
|
|
73
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { DateFilterOption } from "../GenericListing/DateFilter";
|
|
3
|
+
interface GenericFilterProps {
|
|
4
|
+
dateFieldLabel: string;
|
|
5
|
+
activeDateFilter: DateFilterOption;
|
|
6
|
+
onDateFilterChange: (filter: DateFilterOption) => void;
|
|
7
|
+
filterKeys: string[];
|
|
8
|
+
searchableFilters: string[];
|
|
9
|
+
filtersData: Record<string, string[]>;
|
|
10
|
+
activeFilters: Record<string, string>;
|
|
11
|
+
handleFilterChange: (key: string, value: string) => void;
|
|
12
|
+
toggleSavedJobsFilter: () => void;
|
|
13
|
+
showOnlySaved: boolean;
|
|
14
|
+
savedJobs: any[];
|
|
15
|
+
}
|
|
16
|
+
declare const GenericFilter: React.FC<GenericFilterProps>;
|
|
17
|
+
export default GenericFilter;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import GenericPagination from "@/components/Shared/GenericPagination";
|
|
3
|
+
declare const meta: Meta<typeof GenericPagination>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof GenericPagination>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const FewPages: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ItemsPerPageSelectorProps {
|
|
3
|
+
value: number;
|
|
4
|
+
onChange: (value: number) => void;
|
|
5
|
+
options?: number[];
|
|
6
|
+
className?: string;
|
|
7
|
+
selectClassName?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ItemsPerPageSelector: React.FC<ItemsPerPageSelectorProps>;
|
|
10
|
+
export default ItemsPerPageSelector;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import ItemsPerPageSelector from "@/components/Shared/ItemsPerPageSelector";
|
|
3
|
+
declare const meta: Meta<typeof ItemsPerPageSelector>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ItemsPerPageSelector>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const CustomOptions: Story;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ActiveFilter } from "./types";
|
|
3
|
+
interface ListingActiveFiltersProps {
|
|
4
|
+
filters: ActiveFilter[];
|
|
5
|
+
onRemove: (key: string, value: string) => void;
|
|
6
|
+
onClearAll: () => void;
|
|
7
|
+
onCreateAlert?: () => void;
|
|
8
|
+
showCreateAlert?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* ListingActiveFilters - Display currently active filters with remove buttons
|
|
13
|
+
* STATELESS: All state and actions handled by parent page
|
|
14
|
+
*/
|
|
15
|
+
declare const ListingActiveFilters: React.FC<ListingActiveFiltersProps>;
|
|
16
|
+
export default ListingActiveFilters;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LucideIcon } from "lucide-react";
|
|
3
|
+
interface ListingEmptyStateProps {
|
|
4
|
+
icon?: LucideIcon;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
actionLabel?: string;
|
|
8
|
+
onAction?: () => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* ListingEmptyState - No results found display
|
|
13
|
+
* STATELESS: All state and actions handled by parent page
|
|
14
|
+
*/
|
|
15
|
+
declare const ListingEmptyState: React.FC<ListingEmptyStateProps>;
|
|
16
|
+
export default ListingEmptyState;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PopularTag } from "./types";
|
|
3
|
+
interface ListingHeaderProps {
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
popularTags?: PopularTag[];
|
|
7
|
+
selectedTags?: string[];
|
|
8
|
+
onTagClick?: (tag: string) => void;
|
|
9
|
+
onTagRemove?: (tag: string) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* ListingHeader - Displays page title, description and popular tags
|
|
14
|
+
* STATELESS: All state and actions handled by parent page
|
|
15
|
+
*/
|
|
16
|
+
declare const ListingHeader: React.FC<ListingHeaderProps>;
|
|
17
|
+
export default ListingHeader;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterSection } from "./types";
|
|
3
|
+
interface FilterSectionData extends FilterSection {
|
|
4
|
+
selectedValues: string[];
|
|
5
|
+
}
|
|
6
|
+
interface ListingMobileFiltersProps {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
title?: string;
|
|
10
|
+
sections: FilterSectionData[];
|
|
11
|
+
onFilterChange: (key: string, values: string[]) => void;
|
|
12
|
+
onApply: () => void;
|
|
13
|
+
onClearAll: () => void;
|
|
14
|
+
savedCount?: number;
|
|
15
|
+
showSavedOnly?: boolean;
|
|
16
|
+
onToggleSavedOnly?: () => void;
|
|
17
|
+
savedLabel?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* ListingMobileFilters - Full-screen mobile filter drawer
|
|
21
|
+
* STATELESS: All state and actions handled by parent page
|
|
22
|
+
*/
|
|
23
|
+
declare const ListingMobileFilters: React.FC<ListingMobileFiltersProps>;
|
|
24
|
+
export default ListingMobileFilters;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { PaginationInfo } from "./types";
|
|
3
|
+
interface ListingPaginationProps {
|
|
4
|
+
pagination: PaginationInfo;
|
|
5
|
+
onPageChange: (page: number) => void;
|
|
6
|
+
maxPagesToShow?: number;
|
|
7
|
+
showFirstLast?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* ListingPagination - Page navigation controls
|
|
12
|
+
* STATELESS: All state and actions handled by parent page
|
|
13
|
+
*/
|
|
14
|
+
declare const ListingPagination: React.FC<ListingPaginationProps>;
|
|
15
|
+
export default ListingPagination;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface ListingSearchBarProps {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
onSubmit: (value: string) => void;
|
|
6
|
+
onClear?: () => void;
|
|
7
|
+
onFilterClick?: () => void;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
suggestions?: string[];
|
|
10
|
+
onSuggestionSelect?: (suggestion: string) => void;
|
|
11
|
+
showFilterButton?: boolean;
|
|
12
|
+
filterCount?: number;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* ListingSearchBar - Search input with suggestions and filter toggle
|
|
17
|
+
* STATELESS: All state and actions handled by parent page
|
|
18
|
+
*/
|
|
19
|
+
declare const ListingSearchBar: React.FC<ListingSearchBarProps>;
|
|
20
|
+
export default ListingSearchBar;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { FilterSection, RangeConfig } from "./types";
|
|
3
|
+
interface FilterSectionData extends FilterSection {
|
|
4
|
+
selectedValues: string[];
|
|
5
|
+
}
|
|
6
|
+
interface ListingSidebarProps {
|
|
7
|
+
title?: string;
|
|
8
|
+
sections: FilterSectionData[];
|
|
9
|
+
onFilterChange: (key: string, values: string[]) => void;
|
|
10
|
+
onClearAll: () => void;
|
|
11
|
+
activeFiltersCount: number;
|
|
12
|
+
maxVisible?: number;
|
|
13
|
+
rangeConfig?: RangeConfig;
|
|
14
|
+
savedCount?: number;
|
|
15
|
+
showSavedOnly?: boolean;
|
|
16
|
+
onToggleSavedOnly?: () => void;
|
|
17
|
+
savedLabel?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* ListingSidebar - Collapsible filter sections with search within long filters
|
|
22
|
+
* STATELESS: All state and actions handled by parent page
|
|
23
|
+
*/
|
|
24
|
+
declare const ListingSidebar: React.FC<ListingSidebarProps>;
|
|
25
|
+
export default ListingSidebar;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LucideIcon } from "lucide-react";
|
|
3
|
+
import { ViewMode, SortOption, PaginationInfo } from "./types";
|
|
4
|
+
interface ListingToolbarProps {
|
|
5
|
+
viewMode: ViewMode;
|
|
6
|
+
onViewModeChange: (mode: ViewMode) => void;
|
|
7
|
+
itemsPerPage: number;
|
|
8
|
+
onItemsPerPageChange: (value: number) => void;
|
|
9
|
+
itemsPerPageOptions?: number[];
|
|
10
|
+
sortBy: string;
|
|
11
|
+
onSortChange: (value: string) => void;
|
|
12
|
+
sortOptions: SortOption[];
|
|
13
|
+
pagination: PaginationInfo;
|
|
14
|
+
title?: string;
|
|
15
|
+
itemLabel?: string;
|
|
16
|
+
icon?: LucideIcon;
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* ListingToolbar - View mode toggle, items per page, sort by, count display
|
|
21
|
+
* STATELESS: All state and actions handled by parent page
|
|
22
|
+
*/
|
|
23
|
+
declare const ListingToolbar: React.FC<ListingToolbarProps>;
|
|
24
|
+
export default ListingToolbar;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as ListingHeader } from "./ListingHeader";
|
|
2
|
+
export { default as ListingSearchBar } from "./ListingSearchBar";
|
|
3
|
+
export { default as ListingToolbar } from "./ListingToolbar";
|
|
4
|
+
export { default as ListingSidebar } from "./ListingSidebar";
|
|
5
|
+
export { default as ListingPagination } from "./ListingPagination";
|
|
6
|
+
export { default as ListingEmptyState } from "./ListingEmptyState";
|
|
7
|
+
export { default as ListingMobileFilters } from "./ListingMobileFilters";
|
|
8
|
+
export { default as ListingActiveFilters } from "./ListingActiveFilters";
|
|
9
|
+
export type { ViewMode, SortOption, PopularTag, FilterOption, FilterSection, ActiveFilter, PaginationInfo, } from "./types";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export type ViewMode = "grid" | "list";
|
|
2
|
+
export type SortOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
};
|
|
6
|
+
export interface PopularTag {
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface FilterOption {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
count?: number;
|
|
15
|
+
}
|
|
16
|
+
export interface RangeConfig {
|
|
17
|
+
min: number;
|
|
18
|
+
max: number;
|
|
19
|
+
step?: number;
|
|
20
|
+
unit?: string;
|
|
21
|
+
unitPosition?: "prefix" | "suffix";
|
|
22
|
+
formatLabel?: (value: number) => string;
|
|
23
|
+
}
|
|
24
|
+
export interface FilterSection {
|
|
25
|
+
key: string;
|
|
26
|
+
label: string;
|
|
27
|
+
type: "checkbox" | "select" | "searchable-select" | "range" | "toggle";
|
|
28
|
+
options?: FilterOption[];
|
|
29
|
+
searchable?: boolean;
|
|
30
|
+
collapsible?: boolean;
|
|
31
|
+
defaultExpanded?: boolean;
|
|
32
|
+
/** Max visible items before "View more" button */
|
|
33
|
+
maxVisible?: number;
|
|
34
|
+
/** Config for range type filters */
|
|
35
|
+
rangeConfig?: RangeConfig;
|
|
36
|
+
}
|
|
37
|
+
export interface ActiveFilter {
|
|
38
|
+
key: string;
|
|
39
|
+
label: string;
|
|
40
|
+
value: string;
|
|
41
|
+
displayValue?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface PaginationInfo {
|
|
44
|
+
currentPage: number;
|
|
45
|
+
totalPages: number;
|
|
46
|
+
totalItems: number;
|
|
47
|
+
itemsPerPage: number;
|
|
48
|
+
startIndex: number;
|
|
49
|
+
endIndex: number;
|
|
50
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import LoadingShadowCard from "@/components/Shared/LoadingShadowCard";
|
|
3
|
+
declare const meta: Meta<typeof LoadingShadowCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof LoadingShadowCard>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ThreeColumns: Story;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface FilterOption {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
count?: number;
|
|
6
|
+
}
|
|
7
|
+
interface BottomSheetFilterProps {
|
|
8
|
+
isOpen: boolean;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
title: string;
|
|
11
|
+
options: FilterOption[];
|
|
12
|
+
selectedValues: string[];
|
|
13
|
+
onApply: (values: string[]) => void;
|
|
14
|
+
multiSelect?: boolean;
|
|
15
|
+
searchable?: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* BottomSheetFilter - Bottom sheet for filter selection
|
|
19
|
+
* Replaces heavy modals with lighter bottom sheets
|
|
20
|
+
* Each tag in HorizontalTagSlider opens a bottom sheet, not a full modal
|
|
21
|
+
*/
|
|
22
|
+
declare const BottomSheetFilter: React.FC<BottomSheetFilterProps>;
|
|
23
|
+
export default BottomSheetFilter;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface QuickAction {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
icon: React.ReactNode;
|
|
6
|
+
onClick: () => void;
|
|
7
|
+
color?: string;
|
|
8
|
+
}
|
|
9
|
+
interface FloatingActionButtonProps {
|
|
10
|
+
actions: QuickAction[];
|
|
11
|
+
mainIcon?: React.ReactNode;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* FloatingActionButton - Context-aware FAB for quick actions
|
|
16
|
+
* Inspired by Instagram/TikTok patterns
|
|
17
|
+
* Possible actions: Save search, Create alert, Quick apply, Claim company
|
|
18
|
+
*/
|
|
19
|
+
declare const FloatingActionButton: React.FC<FloatingActionButtonProps>;
|
|
20
|
+
export declare const JobsQuickActions: QuickAction[];
|
|
21
|
+
export declare const CompaniesQuickActions: QuickAction[];
|
|
22
|
+
export default FloatingActionButton;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Tag {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
category?: "popular" | "role" | "location" | "company" | "more";
|
|
7
|
+
}
|
|
8
|
+
interface HorizontalTagSliderProps {
|
|
9
|
+
tags: Tag[];
|
|
10
|
+
selectedTags: string[];
|
|
11
|
+
onTagClick: (tag: string) => void;
|
|
12
|
+
onTagRemove?: (tag: string) => void;
|
|
13
|
+
onMoreClick?: () => void;
|
|
14
|
+
showCategoryIcons?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* HorizontalTagSlider - Instagram-style horizontal scrolling tags
|
|
19
|
+
* MVP improvement: Replace static vertical tags with horizontal slider
|
|
20
|
+
*/
|
|
21
|
+
declare const HorizontalTagSlider: React.FC<HorizontalTagSliderProps>;
|
|
22
|
+
export default HorizontalTagSlider;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface FilterChip {
|
|
3
|
+
key: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
value: string;
|
|
6
|
+
displayValue: string;
|
|
7
|
+
}
|
|
8
|
+
interface StickyFilterChipsProps {
|
|
9
|
+
chips: FilterChip[];
|
|
10
|
+
onRemove: (key: string, value: string) => void;
|
|
11
|
+
onClearAll?: () => void;
|
|
12
|
+
showCount?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* StickyFilterChips - Selected filters displayed as sticky chips under search
|
|
17
|
+
* MVP behavior: Chips removable with ✕, result counts update live
|
|
18
|
+
*/
|
|
19
|
+
declare const StickyFilterChips: React.FC<StickyFilterChipsProps>;
|
|
20
|
+
export default StickyFilterChips;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
interface UserData {
|
|
4
|
+
name?: string;
|
|
5
|
+
email?: string;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
initials?: string;
|
|
8
|
+
}
|
|
9
|
+
interface SavedCounts {
|
|
10
|
+
jobs?: number;
|
|
11
|
+
companies?: number;
|
|
12
|
+
courses?: number;
|
|
13
|
+
alerts?: number;
|
|
14
|
+
}
|
|
15
|
+
interface UserIdentityMenuProps {
|
|
16
|
+
user?: UserData | null;
|
|
17
|
+
savedCounts?: SavedCounts;
|
|
18
|
+
menuItems?: UserIdentityMenuItem[];
|
|
19
|
+
onNavigate?: (path: string) => void;
|
|
20
|
+
onLogout?: () => void;
|
|
21
|
+
onSignIn?: () => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface UserIdentityMenuItem {
|
|
25
|
+
id: string;
|
|
26
|
+
label: string;
|
|
27
|
+
icon: LucideIcon;
|
|
28
|
+
path: string;
|
|
29
|
+
countKey?: keyof SavedCounts;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* UserIdentityMenu - Always-visible avatar with bottom sheet menu
|
|
33
|
+
* Critical UX gap fix: Identity should always be visible
|
|
34
|
+
*/
|
|
35
|
+
declare const UserIdentityMenu: React.FC<UserIdentityMenuProps>;
|
|
36
|
+
export default UserIdentityMenu;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as HorizontalTagSlider } from "./HorizontalTagSlider";
|
|
2
|
+
export { default as FloatingActionButton, JobsQuickActions, CompaniesQuickActions } from "./FloatingActionButton";
|
|
3
|
+
export { default as UserIdentityMenu } from "./UserIdentityMenu";
|
|
4
|
+
export { default as BottomSheetFilter } from "./BottomSheetFilter";
|
|
5
|
+
export { default as StickyFilterChips } from "./StickyFilterChips";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface NewsHeaderProps {
|
|
3
|
+
onSearchChange: (query: string) => void;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
popularTags?: string[];
|
|
7
|
+
searchPlaceholder?: string;
|
|
8
|
+
generateHref?: (tag: string) => string;
|
|
9
|
+
onTagClick?: (tag: string) => void;
|
|
10
|
+
onTagRemove?: (tag: string) => void;
|
|
11
|
+
popularTagColor?: string;
|
|
12
|
+
allowTagRemoval?: boolean;
|
|
13
|
+
sponsoredSlot?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
declare const PageTitleHeader: React.FC<NewsHeaderProps>;
|
|
16
|
+
export default PageTitleHeader;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface SearchBoxProps {
|
|
2
|
+
data: string[];
|
|
3
|
+
onSelect: (value: string) => void;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
debounceMs?: number;
|
|
6
|
+
onTyping?: (value: string) => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
showSubmitButton?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const SearchBox: React.FC<SearchBoxProps>;
|
|
11
|
+
export default SearchBox;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export type ShieldedActionButtonProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
onClick?: () => void;
|
|
5
|
+
emailVerified?: boolean;
|
|
6
|
+
profileComplete?: boolean;
|
|
7
|
+
requiredSteps?: string[];
|
|
8
|
+
isBlocked?: boolean;
|
|
9
|
+
blockedReason?: string;
|
|
10
|
+
ctaLabel?: string;
|
|
11
|
+
onCtaClick?: () => void;
|
|
12
|
+
variant?: "tooltip" | "modal";
|
|
13
|
+
};
|
|
14
|
+
export default function ShieldedActionButton({ children, onClick, emailVerified, profileComplete, requiredSteps, isBlocked, blockedReason, ctaLabel, onCtaClick, variant, }: ShieldedActionButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import ShieldedActionButton from "@/components/Shared/ShieldedActionButton";
|
|
3
|
+
declare const meta: Meta<typeof ShieldedActionButton>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ShieldedActionButton>;
|
|
6
|
+
export declare const Allowed: Story;
|
|
7
|
+
export declare const BlockedTooltip: Story;
|
|
8
|
+
export declare const BlockedModal: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface SubscriptionModalProps {
|
|
2
|
+
open: boolean;
|
|
3
|
+
onOpenChange: (open: boolean) => void;
|
|
4
|
+
onSubscriptionSuccess?: () => void;
|
|
5
|
+
searchQuery?: string;
|
|
6
|
+
filters?: any;
|
|
7
|
+
apiUrl?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function SubscriptionModal({ open, onOpenChange, onSubscriptionSuccess, searchQuery, filters, apiUrl }: SubscriptionModalProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|