@devvistatech/devvista-kit 0.0.1
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/CHANGELOG.md +13 -0
- package/LICENSE +7 -0
- package/README.md +15 -0
- package/app/about/page.tsx +306 -0
- package/app/adRequest/page.tsx +550 -0
- package/app/analytics/page.tsx +347 -0
- package/app/api/about/route.ts +307 -0
- package/app/api/adRequest/route.ts +568 -0
- package/app/api/analytics/[reportType]/route.ts +338 -0
- package/app/api/bio/route.ts +314 -0
- package/app/api/blog/route.ts +307 -0
- package/app/api/chat/route.ts +15 -0
- package/app/api/contact/route.ts +410 -0
- package/app/api/contacts/route.ts +225 -0
- package/app/api/files/route.ts +430 -0
- package/app/api/gallery-data/route.ts +661 -0
- package/app/api/schedule/route.ts +456 -0
- package/app/api/sync-user/route.ts +114 -0
- package/app/api/trial-request/route.ts +298 -0
- package/app/blog/[id]/page.tsx +281 -0
- package/app/blog/page.tsx +217 -0
- package/app/constants/about.ts +49 -0
- package/app/constants/adRequest.ts +114 -0
- package/app/constants/contact.ts +41 -0
- package/app/constants/faq.ts +46 -0
- package/app/constants/gallery.ts +43 -0
- package/app/constants/page.ts +70 -0
- package/app/constants/schedule.ts +72 -0
- package/app/contact/page.tsx +285 -0
- package/app/faq/page.tsx +192 -0
- package/app/favicon.ico +0 -0
- package/app/gallery/page.tsx +320 -0
- package/app/globals.css +58 -0
- package/app/layout.tsx +62 -0
- package/app/page.tsx +339 -0
- package/app/schedule/page.tsx +661 -0
- package/bin/init.js +187 -0
- package/components/addOns/functional/BioEditor.tsx +430 -0
- package/components/addOns/functional/CalendlyWidget.tsx +101 -0
- package/components/addOns/functional/ClassList.tsx +146 -0
- package/components/addOns/functional/ClassPopup.tsx +399 -0
- package/components/addOns/functional/ContactForm.tsx +285 -0
- package/components/addOns/functional/FileUploader.tsx +293 -0
- package/components/addOns/functional/ImageDescCarousel.tsx +821 -0
- package/components/addOns/functional/NewUserAnalytics.tsx +101 -0
- package/components/addOns/functional/ScheduleCarousel.tsx +172 -0
- package/components/addOns/functional/aboutSections/AboutSection.tsx +571 -0
- package/components/addOns/functional/aboutSections/constants/aboutSection.ts +66 -0
- package/components/addOns/functional/blogSections/BlogDashboard.tsx +185 -0
- package/components/addOns/functional/blogSections/BlogFormPopUp.tsx +555 -0
- package/components/addOns/functional/blogSections/BlogList.tsx +149 -0
- package/components/addOns/functional/blogSections/BlogSidebar.tsx +59 -0
- package/components/addOns/functional/blogSections/constants/blogDashboard.ts +29 -0
- package/components/addOns/functional/blogSections/constants/blogFormPopUp.ts +98 -0
- package/components/addOns/functional/blogSections/constants/blogList.ts +23 -0
- package/components/addOns/functional/blogSections/constants/blogSidebar.ts +16 -0
- package/components/addOns/functional/contactsDashboard/ContactsDashboard.tsx +348 -0
- package/components/addOns/functional/contactsDashboard/constants/contactsDashboard.ts +71 -0
- package/components/addOns/functional/galleries/GalleryComplex.tsx +908 -0
- package/components/addOns/functional/galleries/GallerySimple.tsx +604 -0
- package/components/addOns/functional/galleries/constants/galleryComplex.ts +105 -0
- package/components/addOns/functional/galleries/constants/gallerySimple.ts +75 -0
- package/components/addOns/functional/schedules/ScheduleGridOne.tsx +263 -0
- package/components/addOns/functional/schedules/ScheduleGridTwo.tsx +295 -0
- package/components/addOns/functional/schedules/ScheduleGridTwoBasic.tsx +289 -0
- package/components/addOns/functional/schedules/SchedulerForm.tsx +429 -0
- package/components/addOns/functional/schedules/constants/ScheduleGridTwo.ts +41 -0
- package/components/addOns/functional/schedules/constants/ScheduleGridTwoBasic.ts +41 -0
- package/components/addOns/functional/schedules/constants/SchedulerForm.ts +66 -0
- package/components/addOns/functional/schedules/constants/scheduleGridOne.ts +55 -0
- package/components/addOns/non-functional/AnnouncementBanner.tsx +47 -0
- package/components/addOns/non-functional/FeaturesSection.tsx +63 -0
- package/components/addOns/non-functional/HeroSection.tsx +143 -0
- package/components/addOns/non-functional/IconBubble.tsx +50 -0
- package/components/addOns/non-functional/SampleCarousel.tsx +205 -0
- package/components/addOns/non-functional/Testimonials.tsx +336 -0
- package/components/addOns/non-functional/ThreeSetGallery.tsx +64 -0
- package/components/addOns/non-functional/aboutSections/AboutSection.tsx +63 -0
- package/components/addOns/non-functional/aboutSections/constants/aboutSection.ts +25 -0
- package/components/addOns/non-functional/imageCarousels/ProductSlider.tsx +118 -0
- package/components/addOns/non-functional/imageCarousels/ProgramCarousel.tsx +233 -0
- package/components/addOns/non-functional/imageCarousels/constants/programCarousel.ts +40 -0
- package/components/addOns/non-functional/imageCarousels/constants/programSlider.ts +37 -0
- package/components/addOns/non-functional/spinner.tsx +22 -0
- package/components/footers/footer.tsx +454 -0
- package/components/navBars/navbar.tsx +311 -0
- package/components/other/accordion.tsx +58 -0
- package/components/other/admin-menu.tsx +69 -0
- package/components/other/alert-dialog.tsx +141 -0
- package/components/other/alert.tsx +59 -0
- package/components/other/aspect-ratio.tsx +7 -0
- package/components/other/avatar.tsx +50 -0
- package/components/other/badge.tsx +36 -0
- package/components/other/breadcrumb.tsx +115 -0
- package/components/other/button.tsx +733 -0
- package/components/other/calendar.tsx +66 -0
- package/components/other/card.tsx +86 -0
- package/components/other/carousel.tsx +275 -0
- package/components/other/chart.tsx +363 -0
- package/components/other/checkbox.tsx +30 -0
- package/components/other/collapsible.tsx +11 -0
- package/components/other/command.tsx +155 -0
- package/components/other/context-menu.tsx +200 -0
- package/components/other/dialog.tsx +122 -0
- package/components/other/drawer.tsx +118 -0
- package/components/other/dropdown-menu.tsx +200 -0
- package/components/other/form.tsx +179 -0
- package/components/other/hover-card.tsx +29 -0
- package/components/other/input-otp.tsx +71 -0
- package/components/other/input.tsx +25 -0
- package/components/other/label.tsx +26 -0
- package/components/other/login-popup.tsx +0 -0
- package/components/other/menubar.tsx +236 -0
- package/components/other/mobile-icon.tsx +22 -0
- package/components/other/navigation-menu.tsx +128 -0
- package/components/other/pagination.tsx +117 -0
- package/components/other/popover.tsx +31 -0
- package/components/other/progress.tsx +28 -0
- package/components/other/radio-group.tsx +44 -0
- package/components/other/resizable.tsx +45 -0
- package/components/other/scroll-area.tsx +48 -0
- package/components/other/select.tsx +160 -0
- package/components/other/separator.tsx +31 -0
- package/components/other/sheet.tsx +140 -0
- package/components/other/signup-popup.tsx +0 -0
- package/components/other/skeleton.tsx +15 -0
- package/components/other/slider.tsx +28 -0
- package/components/other/social-icons.tsx +40 -0
- package/components/other/sonner.tsx +31 -0
- package/components/other/switch.tsx +29 -0
- package/components/other/table.tsx +117 -0
- package/components/other/tabs.tsx +55 -0
- package/components/other/textarea.tsx +24 -0
- package/components/other/toast.tsx +123 -0
- package/components/other/toaster.tsx +35 -0
- package/components/other/toggle-group.tsx +61 -0
- package/components/other/toggle.tsx +45 -0
- package/components/other/tooltip.tsx +30 -0
- package/components/theme-provider.tsx +9 -0
- package/components/types.ts +22 -0
- package/dist/.next/types/app/api/about/route.js +52 -0
- package/dist/.next/types/app/api/blog/route.js +52 -0
- package/dist/.next/types/app/api/files/route.js +52 -0
- package/dist/.next/types/app/api/schedule/route.js +52 -0
- package/dist/.next/types/app/api/sync-user/route.js +52 -0
- package/dist/.next/types/app/layout.js +22 -0
- package/dist/.next/types/app/page.js +22 -0
- package/dist/app/about/page.jsx +259 -0
- package/dist/app/adRequest/page.jsx +531 -0
- package/dist/app/analytics/page.jsx +298 -0
- package/dist/app/api/about/route.js +285 -0
- package/dist/app/api/adRequest/route.js +440 -0
- package/dist/app/api/analytics/[reportType]/route.js +346 -0
- package/dist/app/api/bio/route.js +293 -0
- package/dist/app/api/blog/route.js +366 -0
- package/dist/app/api/chat/route.js +58 -0
- package/dist/app/api/contact/route.js +163 -0
- package/dist/app/api/contacts/route.js +234 -0
- package/dist/app/api/files/route.js +444 -0
- package/dist/app/api/gallery-data/route.js +642 -0
- package/dist/app/api/schedule/route.js +461 -0
- package/dist/app/api/sync-user/route.js +174 -0
- package/dist/app/api/trial-request/route.js +165 -0
- package/dist/app/blog/[id]/page.jsx +307 -0
- package/dist/app/blog/page.jsx +210 -0
- package/dist/app/constants/about.js +32 -0
- package/dist/app/constants/adRequest.js +113 -0
- package/dist/app/constants/contact.js +40 -0
- package/dist/app/constants/faq.js +36 -0
- package/dist/app/constants/gallery.js +42 -0
- package/dist/app/constants/page.js +69 -0
- package/dist/app/constants/schedule.js +71 -0
- package/dist/app/contact/page.jsx +119 -0
- package/dist/app/faq/page.jsx +97 -0
- package/dist/app/gallery/page.jsx +280 -0
- package/dist/app/layout.jsx +45 -0
- package/dist/app/page.jsx +324 -0
- package/dist/app/schedule/page.jsx +500 -0
- package/dist/components/addOns/functional/BioEditor.jsx +175 -0
- package/dist/components/addOns/functional/CalendlyWidget.jsx +61 -0
- package/dist/components/addOns/functional/ClassList.jsx +158 -0
- package/dist/components/addOns/functional/ClassPopup.jsx +300 -0
- package/dist/components/addOns/functional/ContactForm.jsx +219 -0
- package/dist/components/addOns/functional/FileUploader.jsx +222 -0
- package/dist/components/addOns/functional/ImageDescCarousel.jsx +464 -0
- package/dist/components/addOns/functional/NewUserAnalytics.jsx +71 -0
- package/dist/components/addOns/functional/ScheduleCarousel.jsx +68 -0
- package/dist/components/addOns/functional/aboutSections/AboutSection.jsx +369 -0
- package/dist/components/addOns/functional/aboutSections/constants/aboutSection.js +65 -0
- package/dist/components/addOns/functional/blogSections/BlogDashboard.jsx +111 -0
- package/dist/components/addOns/functional/blogSections/BlogFormPopUp.jsx +465 -0
- package/dist/components/addOns/functional/blogSections/BlogList.jsx +170 -0
- package/dist/components/addOns/functional/blogSections/BlogSidebar.jsx +35 -0
- package/dist/components/addOns/functional/blogSections/constants/blogDashboard.js +28 -0
- package/dist/components/addOns/functional/blogSections/constants/blogFormPopUp.js +97 -0
- package/dist/components/addOns/functional/blogSections/constants/blogList.js +22 -0
- package/dist/components/addOns/functional/blogSections/constants/blogSidebar.js +15 -0
- package/dist/components/addOns/functional/contactsDashboard/ContactsDashboard.jsx +323 -0
- package/dist/components/addOns/functional/contactsDashboard/constants/contactsDashboard.js +70 -0
- package/dist/components/addOns/functional/galleries/GalleryComplex.jsx +586 -0
- package/dist/components/addOns/functional/galleries/GallerySimple.jsx +385 -0
- package/dist/components/addOns/functional/galleries/constants/galleryComplex.js +104 -0
- package/dist/components/addOns/functional/galleries/constants/gallerySimple.js +74 -0
- package/dist/components/addOns/functional/schedules/ScheduleGridOne.jsx +167 -0
- package/dist/components/addOns/functional/schedules/ScheduleGridTwo.jsx +100 -0
- package/dist/components/addOns/functional/schedules/ScheduleGridTwoBasic.jsx +97 -0
- package/dist/components/addOns/functional/schedules/SchedulerForm.jsx +188 -0
- package/dist/components/addOns/functional/schedules/constants/ScheduleGridTwo.js +40 -0
- package/dist/components/addOns/functional/schedules/constants/ScheduleGridTwoBasic.js +40 -0
- package/dist/components/addOns/functional/schedules/constants/SchedulerForm.js +65 -0
- package/dist/components/addOns/functional/schedules/constants/scheduleGridOne.js +54 -0
- package/dist/components/addOns/non-functional/AnnouncementBanner.jsx +24 -0
- package/dist/components/addOns/non-functional/FeaturesSection.jsx +38 -0
- package/dist/components/addOns/non-functional/HeroSection.jsx +71 -0
- package/dist/components/addOns/non-functional/IconBubble.jsx +36 -0
- package/dist/components/addOns/non-functional/SampleCarousel.jsx +114 -0
- package/dist/components/addOns/non-functional/Testimonials.jsx +177 -0
- package/dist/components/addOns/non-functional/ThreeSetGallery.jsx +40 -0
- package/dist/components/addOns/non-functional/aboutSections/AboutSection.jsx +35 -0
- package/dist/components/addOns/non-functional/aboutSections/constants/aboutSection.js +24 -0
- package/dist/components/addOns/non-functional/imageCarousels/ProductSlider.jsx +80 -0
- package/dist/components/addOns/non-functional/imageCarousels/ProgramCarousel.jsx +155 -0
- package/dist/components/addOns/non-functional/imageCarousels/constants/programCarousel.js +39 -0
- package/dist/components/addOns/non-functional/imageCarousels/constants/programSlider.js +36 -0
- package/dist/components/addOns/non-functional/spinner.jsx +13 -0
- package/dist/components/footers/footer.jsx +219 -0
- package/dist/components/navBars/navbar.jsx +158 -0
- package/dist/components/other/accordion.jsx +40 -0
- package/dist/components/other/admin-menu.jsx +34 -0
- package/dist/components/other/alert-dialog.jsx +64 -0
- package/dist/components/other/alert.jsx +41 -0
- package/dist/components/other/aspect-ratio.jsx +4 -0
- package/dist/components/other/avatar.jsx +31 -0
- package/dist/components/other/badge.jsx +32 -0
- package/dist/components/other/breadcrumb.jsx +57 -0
- package/dist/components/other/button.jsx +321 -0
- package/dist/components/other/calendar.jsx +43 -0
- package/dist/components/other/card.jsx +44 -0
- package/dist/components/other/carousel.jsx +140 -0
- package/dist/components/other/chart.jsx +182 -0
- package/dist/components/other/checkbox.jsx +26 -0
- package/dist/components/other/collapsible.jsx +6 -0
- package/dist/components/other/command.jsx +68 -0
- package/dist/components/other/context-menu.jsx +88 -0
- package/dist/components/other/dialog.jsx +60 -0
- package/dist/components/other/drawer.jsx +60 -0
- package/dist/components/other/dropdown-menu.jsx +90 -0
- package/dist/components/other/form.jsx +89 -0
- package/dist/components/other/hover-card.jsx +23 -0
- package/dist/components/other/input-otp.jsx +46 -0
- package/dist/components/other/input.jsx +19 -0
- package/dist/components/other/label.jsx +23 -0
- package/dist/components/other/login-popup.jsx +1 -0
- package/dist/components/other/menubar.jsx +96 -0
- package/dist/components/other/mobile-icon.jsx +11 -0
- package/dist/components/other/navigation-menu.jsx +62 -0
- package/dist/components/other/pagination.jsx +63 -0
- package/dist/components/other/popover.jsx +25 -0
- package/dist/components/other/progress.jsx +23 -0
- package/dist/components/other/radio-group.jsx +31 -0
- package/dist/components/other/resizable.jsx +29 -0
- package/dist/components/other/scroll-area.jsx +36 -0
- package/dist/components/other/select.jsx +83 -0
- package/dist/components/other/separator.jsx +21 -0
- package/dist/components/other/sheet.jsx +74 -0
- package/dist/components/other/signup-popup.jsx +1 -0
- package/dist/components/other/skeleton.jsx +17 -0
- package/dist/components/other/slider.jsx +26 -0
- package/dist/components/other/social-icons.jsx +15 -0
- package/dist/components/other/sonner.jsx +27 -0
- package/dist/components/other/switch.jsx +23 -0
- package/dist/components/other/table.jsx +56 -0
- package/dist/components/other/tabs.jsx +32 -0
- package/dist/components/other/textarea.jsx +19 -0
- package/dist/components/other/toast.jsx +58 -0
- package/dist/components/other/toaster.jsx +31 -0
- package/dist/components/other/toggle-group.jsx +41 -0
- package/dist/components/other/toggle.jsx +39 -0
- package/dist/components/other/tooltip.jsx +24 -0
- package/dist/components/theme-provider.jsx +18 -0
- package/dist/components/types.js +1 -0
- package/dist/hooks/use-toast.js +135 -0
- package/dist/lib/auth-context.jsx +144 -0
- package/dist/lib/google-analytics.jsx +148 -0
- package/dist/lib/utils.js +9 -0
- package/dist/lib/verify-user.js +142 -0
- package/dist/middleware.js +32 -0
- package/dist/tailwind.config.js +86 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/hooks/use-toast.ts +188 -0
- package/lib/auth-context.tsx +131 -0
- package/lib/google-analytics.tsx +98 -0
- package/lib/utils.ts +6 -0
- package/lib/verify-user.ts +118 -0
- package/middleware.ts +35 -0
- package/next.config.js +10 -0
- package/package.json +116 -0
- package/postcss.config.js +6 -0
- package/public/images/FitStop.png +0 -0
- package/public/images/classes/bodyblast.JPG +0 -0
- package/public/images/classes/cardioxtrain.JPG +0 -0
- package/public/images/classes/combo.JPG +0 -0
- package/public/images/classes/flexiblefriday.JPG +0 -0
- package/public/images/classes/freestyle.jpg +0 -0
- package/public/images/classes/noclasses.jpg +0 -0
- package/public/images/classes/seniorstretch.JPG +0 -0
- package/public/images/classes/stretch.JPG +0 -0
- package/public/images/classes/zoomba.JPG +0 -0
- package/public/images/fitstoproom1.jpg +0 -0
- package/public/images/fitstoproom2.jpg +0 -0
- package/public/images/gallery/021-1024x768.jpg +0 -0
- package/public/images/gallery/023-1024x768.jpg +0 -0
- package/public/images/gallery/027-1024x768.jpg +0 -0
- package/public/images/gallery/029-1024x768.jpg +0 -0
- package/public/images/gallery/030-1024x768.jpg +0 -0
- package/public/images/gallery/042-1024x768.jpg +0 -0
- package/public/images/gallery/049-1024x768.jpg +0 -0
- package/public/images/gallery/073-1024x768.jpg +0 -0
- package/public/images/gallery/108-300x225.jpg +0 -0
- package/public/images/gallery/109-300x225.jpg +0 -0
- package/public/images/gallery/116.jpg +0 -0
- package/public/images/gallery/123-1-1024x768.jpg +0 -0
- package/public/images/gallery/133.jpg +0 -0
- package/public/images/gallery/142-1.jpg +0 -0
- package/public/images/gallery/143.jpg +0 -0
- package/public/images/gallery/145-1-1024x768.jpg +0 -0
- package/public/images/gallery/151-1024x768.jpg +0 -0
- package/public/images/gallery/166-300x225.jpg +0 -0
- package/public/images/gallery/175.jpg +0 -0
- package/public/images/gallery/183-1024x768.jpg +0 -0
- package/public/images/gallery/311.JPG +0 -0
- package/public/images/gallery/413-1.jpg +0 -0
- package/public/images/gallery/Cathys-Fit-Stop-Holiday-Party-0003-1024x683.jpg +0 -0
- package/public/images/gallery/Cathys-Fit-Stop-Holiday-Party-0076-1024x683.jpg +0 -0
- package/public/images/gallery/Cathys-Fit-Stop-Holiday-Party-0171-1024x683.jpg +0 -0
- package/public/images/gallery/DSCN0233-1024x768.jpg +0 -0
- package/public/images/gallery/DSCN0245-1-1024x768.jpg +0 -0
- package/public/images/gallery/Fitstopgirls2.jpg +0 -0
- package/public/images/gallery/GrandOpening2009.JPG +0 -0
- package/public/images/gallery/IMG_1937.JPG +0 -0
- package/public/images/gallery/IMG_1950-20.jpg +0 -0
- package/public/images/gallery/IMG_2112.JPG +0 -0
- package/public/images/gallery/IMG_2229.JPG +0 -0
- package/public/images/gallery/IMG_2272.JPG +0 -0
- package/public/images/gallery/IMG_2336.JPG +0 -0
- package/public/images/gallery/IMG_2367.JPG +0 -0
- package/public/images/gallery/IMG_2520.jpg +0 -0
- package/public/images/gallery/IMG_2564.jpg +0 -0
- package/public/images/gallery/IMG_3678.jpg +0 -0
- package/public/images/gallery/IMG_3744.jpg +0 -0
- package/public/images/gallery/IMG_3745.jpg +0 -0
- package/public/images/gallery/IMG_6383.jpg +0 -0
- package/public/images/gallery/Jillian-8-Months-2338-1024x683.jpg +0 -0
- package/public/images/gallery/Kathys-Fit-Stop-0032-1024x675.jpg +0 -0
- package/public/images/gallery/LaurieinPlank.jpeg +0 -0
- package/public/images/gallery/May2017032.JPG +0 -0
- package/public/images/gallery/clubpic10.jpg +0 -0
- package/public/images/gallery/clubpic15.jpg +0 -0
- package/public/images/gallery/clubpic2.jpg +0 -0
- package/public/images/gallery/clubpic3.jpg +0 -0
- package/public/images/gallery/clubpic4.jpg +0 -0
- package/public/images/gallery/clubpic5.jpg +0 -0
- package/public/images/gallery/clubpic6.jpg +0 -0
- package/public/images/gallery/clubpic7.jpg +0 -0
- package/public/images/gallery/clubpic8.jpg +0 -0
- package/public/images/gallery/clubpic9.jpg +0 -0
- package/public/images/gallery/z014-1024x768.jpg +0 -0
- package/public/images/gallery/z019-1-1024x768.jpg +0 -0
- package/public/images/kathy_faq-300x132.jpg +0 -0
- package/public/images/kathyportrait.jpg +0 -0
- package/public/images/kristiportrait.jpg +0 -0
- package/public/images/maincoverbackground.JPG +0 -0
- package/public/images/videos/FitStopLoopVideo.mp4 +0 -0
- package/public/images/weights.jpg +0 -0
- package/public/pdf/FitStop-Forum-April-2025.pdf +0 -0
- package/tailwind.config.ts +89 -0
- package/tsconfig.json +24 -0
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva, type VariantProps } from "class-variance-authority";
|
|
4
|
+
import { cn } from "@/lib/utils";
|
|
5
|
+
import { Edit, Trash2, LogIn, UserPlus, Settings, LogOut, Phone, ArrowUp } from "lucide-react";
|
|
6
|
+
|
|
7
|
+
const buttonVariants = cva(
|
|
8
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
9
|
+
{
|
|
10
|
+
variants: {
|
|
11
|
+
variant: {
|
|
12
|
+
default: "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500",
|
|
13
|
+
destructive: "bg-blue-700 text-white hover:bg-blue-800 focus:ring-blue-700",
|
|
14
|
+
outline: "border border-blue-500 bg-transparent text-blue-500 hover:bg-blue-500/10 hover:text-blue-600 focus:ring-blue-500",
|
|
15
|
+
secondary: "bg-blue-200 text-blue-900 hover:bg-blue-300 focus:ring-blue-500",
|
|
16
|
+
ghost: "text-blue-500 hover:bg-blue-500/10 hover:text-blue-600 focus:ring-blue-500",
|
|
17
|
+
link: "text-blue-500 underline-offset-4 hover:underline focus:ring-blue-500",
|
|
18
|
+
edit: "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 min-w-[80px] text-base min-h-[2.5rem] rounded-lg touch-action-manipulation",
|
|
19
|
+
"edit-bio": "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 min-w-[80px] text-base min-h-[2.5rem] rounded-lg touch-action-manipulation",
|
|
20
|
+
"edit-icon": "bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 rounded-full h-10 w-10 flex items-center justify-center",
|
|
21
|
+
create: "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 min-w-[80px] text-base",
|
|
22
|
+
upload: "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 w-full sm:w-auto text-base sm:text-lg px-4 py-2 sm:px-6 sm:py-3 font-bold",
|
|
23
|
+
update: "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 disabled:bg-gray-600 w-full sm:w-auto min-w-[80px] text-base min-h-[2.5rem] rounded-lg font-semibold",
|
|
24
|
+
cancel: "bg-gray-600 text-white hover:bg-gray-500 focus:ring-gray-600 w-full sm:w-auto min-w-[80px] text-base min-h-[2.5rem] rounded-lg font-semibold",
|
|
25
|
+
close: "text-blue-300 hover:text-white hover:bg-blue-600/50 focus:ring-blue-500 h-12 w-12 p-3 rounded-full absolute top-4 right-4 z-50 transition-all duration-200 flex items-center justify-center",
|
|
26
|
+
"close-form": "text-blue-300 hover:text-white hover:bg-blue-600/50 focus:ring-blue-500 rounded-full p-2 sm:p-3 transition-all duration-300 w-10 h-10 sm:w-12 sm:h-12 flex items-center justify-center absolute top-1 right-1 sm:top-1 sm:right-1 z-50",
|
|
27
|
+
"close-confirm": "bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 rounded-full p-2 w-10 h-10 flex items-center justify-center absolute top-2 right-2",
|
|
28
|
+
toggle: "bg-transparent text-blue-500 hover:bg-blue-500/10 hover:scale-105 focus:ring-blue-500 text-base sm:text-lg px-6 py-3 h-auto font-bold transform transition-all duration-300 ease-in-out",
|
|
29
|
+
"toggle-bio": "bg-gradient-to-r from-blue-500 to-blue-600 text-white hover:from-blue-600 hover:to-blue-700 focus:ring-blue-500 text-lg px-8 py-3 rounded-[1.5rem] font-bold",
|
|
30
|
+
"toggle-keywords": "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 text-sm px-4 py-2 rounded-md font-semibold",
|
|
31
|
+
delete: "bg-red-600 text-white hover:bg-red-700 focus:ring-red-600 disabled:bg-gray-600 w-full sm:w-auto min-w-[80px] text-base min-h-[2.5rem] rounded-lg font-semibold",
|
|
32
|
+
"delete-icon": "text-blue-500 hover:text-blue-600 focus:ring-blue-500 p-3 min-h-[2rem] min-w-[2rem] text-2xl font-bold transition-colors",
|
|
33
|
+
trash: "text-[#F47C7C] hover:bg-[#2A3A66]/70 focus:ring-[#F47C7C] mt-2 sm:mt-0 z-10",
|
|
34
|
+
"trash-icon": "bg-red-600 text-white hover:bg-red-700 focus:ring-red-600 rounded-full h-10 w-10 flex items-center justify-center",
|
|
35
|
+
action: "bg-gradient-to-r from-blue-500 to-blue-600 text-white hover:from-blue-600 hover:to-blue-700 focus:ring-blue-500 w-full sm:w-auto text-lg px-6 py-3 rounded-full font-bold",
|
|
36
|
+
add: "bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white w-full sm:w-auto rounded-lg font-medium py-3",
|
|
37
|
+
"chat-toggle": "hidden sm:flex absolute right-0 top-1/2 -translate-y-1/2 p-2 w-10 h-10 bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 transition-colors",
|
|
38
|
+
"chat-submit": "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 disabled:bg-gray-600 px-4 py-2 rounded-md font-semibold",
|
|
39
|
+
"external-link": "bg-blue-600 text-white px-3 py-1 sm:px-4 sm:py-2 rounded-lg text-sm sm:text-base hover:bg-blue-700 focus:ring-blue-500",
|
|
40
|
+
retry: "bg-blue-600 text-white px-3 py-1 rounded-lg hover:bg-blue-700 focus:ring-blue-500",
|
|
41
|
+
reset: "bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 rounded-lg",
|
|
42
|
+
"cancel-outline": "border border-gray-600 text-gray-300 hover:bg-gray-700/50 focus:ring-gray-600 rounded-lg",
|
|
43
|
+
confirm: "bg-blue-600 text-white hover:bg-blue-700 focus:ring-blue-500 rounded-lg",
|
|
44
|
+
submit: "w-full bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white font-medium py-3 rounded-lg transition-all duration-300 disabled:cursor-not-allowed",
|
|
45
|
+
"contact-submit": "w-full bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white font-semibold py-4 px-10 rounded-2xl text-lg tracking-wide transition-all duration-300 disabled:bg-gray-400/80 disabled:cursor-not-allowed shadow-lg hover:shadow-xl",
|
|
46
|
+
"edit-toggle": "bg-gradient-to-r from-blue-500 to-blue-600 hover:from-blue-600 hover:to-blue-700 text-white font-medium rounded-lg",
|
|
47
|
+
"form-submit": "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 disabled:bg-gray-600 w-full sm:w-auto min-w-[80px] text-base min-h-[2.5rem] rounded-lg font-semibold",
|
|
48
|
+
filter: "bg-blue-200 text-blue-900 hover:bg-blue-300 focus:ring-blue-500 px-4 py-2 sm:px-6 sm:py-3 rounded-[1.5rem] text-base sm:text-lg font-medium transition-all duration-300",
|
|
49
|
+
"filter-active": "bg-gradient-to-r from-blue-500 to-blue-600 text-white hover:from-blue-600 hover:to-blue-700 focus:ring-blue-500 px-4 py-2 sm:px-6 sm:py-3 rounded-[1.5rem] text-base sm:text-lg font-medium transition-all duration-300",
|
|
50
|
+
"filter-blue-active": "bg-blue-500 text-white hover:bg-blue-600 focus:ring-blue-500 px-4 py-2 sm:px-6 sm:py-3 rounded-md text-base sm:text-lg font-medium transition-all duration-300",
|
|
51
|
+
hero: "bg-gradient-to-r from-blue-500 to-blue-600 text-white hover:from-blue-600 hover:to-blue-700 focus:ring-blue-500 text-lg px-8 py-3 rounded-lg font-bold shadow-lg hover:shadow-xl transition-all duration-300",
|
|
52
|
+
readMore: "bg-transparent border-2 border-blue-500 text-blue-500 hover:bg-blue-500/10 focus:ring-blue-500 text-lg px-6 py-2 rounded-lg font-semibold transition-all duration-300",
|
|
53
|
+
scrollToTop: "bg-gradient-to-r from-blue-500 to-blue-600 text-white hover:from-blue-600 hover:to-blue-700 focus:ring-blue-500 rounded-full shadow-xl transition-all duration-200 transform hover:scale-105",
|
|
54
|
+
phone: "bg-gradient-to-r from-blue-500 to-blue-600 text-white hover:from-blue-600 hover:to-blue-700 focus:ring-blue-500 rounded-full shadow-xl transition-all duration-200 transform hover:scale-105",
|
|
55
|
+
},
|
|
56
|
+
size: {
|
|
57
|
+
default: "h-10 px-4 py-2",
|
|
58
|
+
sm: "h-9 px-4 py-2",
|
|
59
|
+
lg: "h-11 px-8",
|
|
60
|
+
icon: "h-10 w-10",
|
|
61
|
+
close: "h-12 w-12 p-3",
|
|
62
|
+
hero: "h-12 px-10 py-4",
|
|
63
|
+
readMore: "h-11 px-6 py-2",
|
|
64
|
+
bubble: "h-12 w-12 md:h-16 md:w-16 p-4 md:p-6",
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
defaultVariants: {
|
|
68
|
+
variant: "default",
|
|
69
|
+
size: "default",
|
|
70
|
+
},
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
export interface ButtonProps
|
|
75
|
+
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
76
|
+
VariantProps<typeof buttonVariants> {
|
|
77
|
+
asChild?: boolean;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
81
|
+
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
82
|
+
const Comp = asChild ? Slot : "button";
|
|
83
|
+
return (
|
|
84
|
+
<Comp
|
|
85
|
+
className={cn(buttonVariants({ variant, size, className }))}
|
|
86
|
+
ref={ref}
|
|
87
|
+
{...props}
|
|
88
|
+
/>
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
Button.displayName = "Button";
|
|
93
|
+
|
|
94
|
+
const EditIconButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
95
|
+
({ className, size = "icon", variant = "edit-icon", children, ...props }, ref) => {
|
|
96
|
+
return (
|
|
97
|
+
<Button
|
|
98
|
+
variant={variant}
|
|
99
|
+
size={size}
|
|
100
|
+
className={cn("absolute top-1 right-12", className)}
|
|
101
|
+
ref={ref}
|
|
102
|
+
aria-label="Edit image"
|
|
103
|
+
{...props}
|
|
104
|
+
>
|
|
105
|
+
{children || <Edit className="h-5 w-5" />}
|
|
106
|
+
</Button>
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
);
|
|
110
|
+
EditIconButton.displayName = "EditIconButton";
|
|
111
|
+
|
|
112
|
+
const CreateButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
113
|
+
({ className, size = "sm", children = "Create", ...props }, ref) => {
|
|
114
|
+
return (
|
|
115
|
+
<Button
|
|
116
|
+
variant="create"
|
|
117
|
+
size={size}
|
|
118
|
+
className={cn(className)}
|
|
119
|
+
ref={ref}
|
|
120
|
+
aria-label="Create new item"
|
|
121
|
+
{...props}
|
|
122
|
+
>
|
|
123
|
+
{children}
|
|
124
|
+
</Button>
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
);
|
|
128
|
+
CreateButton.displayName = "CreateButton";
|
|
129
|
+
|
|
130
|
+
const UploadButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
131
|
+
({ className, size = "lg", children = "Upload", ...props }, ref) => {
|
|
132
|
+
return (
|
|
133
|
+
<Button
|
|
134
|
+
variant="upload"
|
|
135
|
+
size={size}
|
|
136
|
+
className={cn(className)}
|
|
137
|
+
ref={ref}
|
|
138
|
+
aria-label="Upload file"
|
|
139
|
+
{...props}
|
|
140
|
+
>
|
|
141
|
+
{children}
|
|
142
|
+
</Button>
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
UploadButton.displayName = "UploadButton";
|
|
147
|
+
|
|
148
|
+
const UpdateButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
149
|
+
({ className, size = "default", variant = "update", children = "Update", ...props }, ref) => {
|
|
150
|
+
return (
|
|
151
|
+
<Button
|
|
152
|
+
variant={variant}
|
|
153
|
+
size={size}
|
|
154
|
+
className={cn(className)}
|
|
155
|
+
ref={ref}
|
|
156
|
+
aria-label="Update item"
|
|
157
|
+
{...props}
|
|
158
|
+
>
|
|
159
|
+
{children}
|
|
160
|
+
</Button>
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
);
|
|
164
|
+
UpdateButton.displayName = "UpdateButton";
|
|
165
|
+
|
|
166
|
+
const CancelButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
167
|
+
({ className, size = "default", variant = "cancel", children = "Cancel", ...props }, ref) => {
|
|
168
|
+
return (
|
|
169
|
+
<Button
|
|
170
|
+
variant={variant}
|
|
171
|
+
size={size}
|
|
172
|
+
className={cn(className)}
|
|
173
|
+
ref={ref}
|
|
174
|
+
aria-label="Cancel action"
|
|
175
|
+
{...props}
|
|
176
|
+
>
|
|
177
|
+
{children}
|
|
178
|
+
</Button>
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
CancelButton.displayName = "CancelButton";
|
|
183
|
+
|
|
184
|
+
const CloseButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
185
|
+
({ className, size = "close", variant = "close", children, ...props }, ref) => {
|
|
186
|
+
return (
|
|
187
|
+
<Button
|
|
188
|
+
variant={variant}
|
|
189
|
+
size={size}
|
|
190
|
+
className={cn(className)}
|
|
191
|
+
ref={ref}
|
|
192
|
+
aria-label="Close modal"
|
|
193
|
+
{...props}
|
|
194
|
+
>
|
|
195
|
+
{children}
|
|
196
|
+
</Button>
|
|
197
|
+
);
|
|
198
|
+
}
|
|
199
|
+
);
|
|
200
|
+
CloseButton.displayName = "CloseButton";
|
|
201
|
+
|
|
202
|
+
const ToggleButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
203
|
+
({ className, size = "lg", variant = "toggle", children = "Toggle", ...props }, ref) => {
|
|
204
|
+
return (
|
|
205
|
+
<Button
|
|
206
|
+
variant={variant}
|
|
207
|
+
size={size}
|
|
208
|
+
className={cn(className)}
|
|
209
|
+
ref={ref}
|
|
210
|
+
aria-label="Toggle content visibility"
|
|
211
|
+
{...props}
|
|
212
|
+
>
|
|
213
|
+
{children}
|
|
214
|
+
</Button>
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
ToggleButton.displayName = "ToggleButton";
|
|
219
|
+
|
|
220
|
+
const DeleteButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
221
|
+
({ className, size = "default", variant = "delete", children = "Delete", ...props }, ref) => {
|
|
222
|
+
return (
|
|
223
|
+
<Button
|
|
224
|
+
variant={variant}
|
|
225
|
+
size={size}
|
|
226
|
+
className={cn(className)}
|
|
227
|
+
ref={ref}
|
|
228
|
+
aria-label="Delete item"
|
|
229
|
+
{...props}
|
|
230
|
+
>
|
|
231
|
+
{children}
|
|
232
|
+
</Button>
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
);
|
|
236
|
+
DeleteButton.displayName = "DeleteButton";
|
|
237
|
+
|
|
238
|
+
const TrashIconButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
239
|
+
({ className, size = "icon", variant = "trash-icon", children, ...props }, ref) => {
|
|
240
|
+
return (
|
|
241
|
+
<Button
|
|
242
|
+
variant={variant}
|
|
243
|
+
size={size}
|
|
244
|
+
className={cn("absolute top-1 right-1", className)}
|
|
245
|
+
ref={ref}
|
|
246
|
+
aria-label="Delete image"
|
|
247
|
+
{...props}
|
|
248
|
+
>
|
|
249
|
+
{children || <Trash2 className="h-5 w-5" />}
|
|
250
|
+
</Button>
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
);
|
|
254
|
+
TrashIconButton.displayName = "TrashIconButton";
|
|
255
|
+
|
|
256
|
+
const DeleteIconButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
257
|
+
({ className, size = "sm", variant = "delete-icon", children = "✕", ...props }, ref) => {
|
|
258
|
+
return (
|
|
259
|
+
<Button
|
|
260
|
+
variant={variant}
|
|
261
|
+
size={size}
|
|
262
|
+
className={cn("absolute top-1 right-1", className)}
|
|
263
|
+
ref={ref}
|
|
264
|
+
aria-label="Delete item"
|
|
265
|
+
{...props}
|
|
266
|
+
>
|
|
267
|
+
{children}
|
|
268
|
+
</Button>
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
);
|
|
272
|
+
DeleteIconButton.displayName = "DeleteIconButton";
|
|
273
|
+
|
|
274
|
+
const ActionButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
275
|
+
({ className, size = "lg", children = "Action", ...props }, ref) => {
|
|
276
|
+
return (
|
|
277
|
+
<Button
|
|
278
|
+
variant="action"
|
|
279
|
+
size={size}
|
|
280
|
+
className={cn(className)}
|
|
281
|
+
ref={ref}
|
|
282
|
+
aria-label="Perform action"
|
|
283
|
+
{...props}
|
|
284
|
+
>
|
|
285
|
+
{children}
|
|
286
|
+
</Button>
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
);
|
|
290
|
+
ActionButton.displayName = "ActionButton";
|
|
291
|
+
|
|
292
|
+
const AddButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
293
|
+
({ className, size = "default", children = "Add", ...props }, ref) => {
|
|
294
|
+
return (
|
|
295
|
+
<Button
|
|
296
|
+
variant="add"
|
|
297
|
+
size={size}
|
|
298
|
+
className={cn(className)}
|
|
299
|
+
ref={ref}
|
|
300
|
+
aria-label="Add new item"
|
|
301
|
+
{...props}
|
|
302
|
+
>
|
|
303
|
+
{children}
|
|
304
|
+
</Button>
|
|
305
|
+
);
|
|
306
|
+
}
|
|
307
|
+
);
|
|
308
|
+
AddButton.displayName = "AddButton";
|
|
309
|
+
|
|
310
|
+
const ChatToggleButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
311
|
+
({ className, size = "icon", variant = "chat-toggle", children, ...props }, ref) => {
|
|
312
|
+
return (
|
|
313
|
+
<Button
|
|
314
|
+
variant={variant}
|
|
315
|
+
size={size}
|
|
316
|
+
className={cn(className)}
|
|
317
|
+
ref={ref}
|
|
318
|
+
aria-label="Toggle chatbot"
|
|
319
|
+
{...props}
|
|
320
|
+
>
|
|
321
|
+
{children}
|
|
322
|
+
</Button>
|
|
323
|
+
);
|
|
324
|
+
}
|
|
325
|
+
);
|
|
326
|
+
ChatToggleButton.displayName = "ChatToggleButton";
|
|
327
|
+
|
|
328
|
+
const ChatSubmitButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
329
|
+
({ className, size = "default", variant = "chat-submit", children = "Submit", ...props }, ref) => {
|
|
330
|
+
return (
|
|
331
|
+
<Button
|
|
332
|
+
variant={variant}
|
|
333
|
+
size={size}
|
|
334
|
+
className={cn(className)}
|
|
335
|
+
ref={ref}
|
|
336
|
+
aria-label="Submit chat message"
|
|
337
|
+
{...props}
|
|
338
|
+
>
|
|
339
|
+
{children}
|
|
340
|
+
</Button>
|
|
341
|
+
);
|
|
342
|
+
}
|
|
343
|
+
);
|
|
344
|
+
ChatSubmitButton.displayName = "ChatSubmitButton";
|
|
345
|
+
|
|
346
|
+
const RetryButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
347
|
+
({ className, size = "default", variant = "retry", children = "Retry", ...props }, ref) => {
|
|
348
|
+
return (
|
|
349
|
+
<Button
|
|
350
|
+
variant={variant}
|
|
351
|
+
size={size}
|
|
352
|
+
className={cn(className)}
|
|
353
|
+
ref={ref}
|
|
354
|
+
aria-label="Retry action"
|
|
355
|
+
{...props}
|
|
356
|
+
>
|
|
357
|
+
{children}
|
|
358
|
+
</Button>
|
|
359
|
+
);
|
|
360
|
+
}
|
|
361
|
+
);
|
|
362
|
+
RetryButton.displayName = "RetryButton";
|
|
363
|
+
|
|
364
|
+
const ResetButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
365
|
+
({ className, size = "sm", variant = "reset", children = "Reset", ...props }, ref) => {
|
|
366
|
+
return (
|
|
367
|
+
<Button
|
|
368
|
+
variant={variant}
|
|
369
|
+
size={size}
|
|
370
|
+
className={cn(className)}
|
|
371
|
+
ref={ref}
|
|
372
|
+
aria-label="Reset credits"
|
|
373
|
+
{...props}
|
|
374
|
+
>
|
|
375
|
+
{children}
|
|
376
|
+
</Button>
|
|
377
|
+
);
|
|
378
|
+
}
|
|
379
|
+
);
|
|
380
|
+
ResetButton.displayName = "ResetButton";
|
|
381
|
+
|
|
382
|
+
const ConfirmButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
383
|
+
({ className, size = "default", variant = "confirm", children = "Confirm", ...props }, ref) => {
|
|
384
|
+
return (
|
|
385
|
+
<Button
|
|
386
|
+
variant={variant}
|
|
387
|
+
size={size}
|
|
388
|
+
className={cn(className)}
|
|
389
|
+
ref={ref}
|
|
390
|
+
aria-label="Confirm action"
|
|
391
|
+
{...props}
|
|
392
|
+
>
|
|
393
|
+
{children}
|
|
394
|
+
</Button>
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
);
|
|
398
|
+
ConfirmButton.displayName = "ConfirmButton";
|
|
399
|
+
|
|
400
|
+
const SubmitButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
401
|
+
({ className, size = "default", variant = "form-submit", children = "Submit", ...props }, ref) => {
|
|
402
|
+
return (
|
|
403
|
+
<Button
|
|
404
|
+
variant={variant}
|
|
405
|
+
size={size}
|
|
406
|
+
className={cn(className)}
|
|
407
|
+
ref={ref}
|
|
408
|
+
aria-label="Submit form"
|
|
409
|
+
{...props}
|
|
410
|
+
>
|
|
411
|
+
{children}
|
|
412
|
+
</Button>
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
);
|
|
416
|
+
SubmitButton.displayName = "SubmitButton";
|
|
417
|
+
|
|
418
|
+
const ContactSubmitButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
419
|
+
({ className, size = "default", variant = "contact-submit", children = "Send Message", ...props }, ref) => {
|
|
420
|
+
return (
|
|
421
|
+
<Button
|
|
422
|
+
variant={variant}
|
|
423
|
+
size={size}
|
|
424
|
+
className={cn(className)}
|
|
425
|
+
ref={ref}
|
|
426
|
+
aria-label="Submit contact form"
|
|
427
|
+
{...props}
|
|
428
|
+
>
|
|
429
|
+
{children}
|
|
430
|
+
</Button>
|
|
431
|
+
);
|
|
432
|
+
}
|
|
433
|
+
);
|
|
434
|
+
ContactSubmitButton.displayName = "ContactSubmitButton";
|
|
435
|
+
|
|
436
|
+
const ExternalLinkButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
437
|
+
({ className, size = "default", variant = "external-link", children = "Open Link", asChild = true, ...props }, ref) => {
|
|
438
|
+
return (
|
|
439
|
+
<Button
|
|
440
|
+
variant={variant}
|
|
441
|
+
size={size}
|
|
442
|
+
className={cn(className)}
|
|
443
|
+
asChild={asChild}
|
|
444
|
+
ref={ref}
|
|
445
|
+
aria-label="Open external link"
|
|
446
|
+
{...props}
|
|
447
|
+
>
|
|
448
|
+
{children}
|
|
449
|
+
</Button>
|
|
450
|
+
);
|
|
451
|
+
}
|
|
452
|
+
);
|
|
453
|
+
ExternalLinkButton.displayName = "ExternalLinkButton";
|
|
454
|
+
|
|
455
|
+
const BackButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
456
|
+
({ className, size = "sm", variant = "submit", children = "Back", ...props }, ref) => {
|
|
457
|
+
return (
|
|
458
|
+
<Button
|
|
459
|
+
variant={variant}
|
|
460
|
+
size={size}
|
|
461
|
+
className={cn("flex items-center gap-2", className)}
|
|
462
|
+
ref={ref}
|
|
463
|
+
aria-label="Navigate back"
|
|
464
|
+
{...props}
|
|
465
|
+
>
|
|
466
|
+
{children}
|
|
467
|
+
</Button>
|
|
468
|
+
);
|
|
469
|
+
}
|
|
470
|
+
);
|
|
471
|
+
BackButton.displayName = "BackButton";
|
|
472
|
+
|
|
473
|
+
const EditToggleButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
474
|
+
({ className, size = "sm", variant = "edit-toggle", children = "Edit", ...props }, ref) => {
|
|
475
|
+
return (
|
|
476
|
+
<Button
|
|
477
|
+
variant={variant}
|
|
478
|
+
size={size}
|
|
479
|
+
className={cn(className)}
|
|
480
|
+
ref={ref}
|
|
481
|
+
aria-label="Toggle edit mode"
|
|
482
|
+
{...props}
|
|
483
|
+
>
|
|
484
|
+
{children}
|
|
485
|
+
</Button>
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
);
|
|
489
|
+
EditToggleButton.displayName = "EditToggleButton";
|
|
490
|
+
|
|
491
|
+
const NextButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
492
|
+
({ className, size = "sm", variant = "update", children = "Next", ...props }, ref) => {
|
|
493
|
+
return (
|
|
494
|
+
<Button
|
|
495
|
+
variant={variant}
|
|
496
|
+
size={size}
|
|
497
|
+
className={cn(className)}
|
|
498
|
+
ref={ref}
|
|
499
|
+
aria-label="Next step"
|
|
500
|
+
{...props}
|
|
501
|
+
>
|
|
502
|
+
{children}
|
|
503
|
+
</Button>
|
|
504
|
+
);
|
|
505
|
+
}
|
|
506
|
+
);
|
|
507
|
+
NextButton.displayName = "NextButton";
|
|
508
|
+
|
|
509
|
+
const PrevButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
510
|
+
({ className, size = "sm", variant = "update", children = "Previous", ...props }, ref) => {
|
|
511
|
+
return (
|
|
512
|
+
<Button
|
|
513
|
+
variant={variant}
|
|
514
|
+
size={size}
|
|
515
|
+
className={cn("flex items-center gap-2", className)}
|
|
516
|
+
ref={ref}
|
|
517
|
+
aria-label="Previous step"
|
|
518
|
+
{...props}
|
|
519
|
+
>
|
|
520
|
+
{children}
|
|
521
|
+
</Button>
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
);
|
|
525
|
+
PrevButton.displayName = "PrevButton";
|
|
526
|
+
|
|
527
|
+
const HeroButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
528
|
+
({ className, size = "hero", variant = "hero", children = "Get Started", ...props }, ref) => {
|
|
529
|
+
return (
|
|
530
|
+
<Button
|
|
531
|
+
variant={variant}
|
|
532
|
+
size={size}
|
|
533
|
+
className={cn(className)}
|
|
534
|
+
ref={ref}
|
|
535
|
+
aria-label="Hero section call to action"
|
|
536
|
+
{...props}
|
|
537
|
+
>
|
|
538
|
+
{children}
|
|
539
|
+
</Button>
|
|
540
|
+
);
|
|
541
|
+
}
|
|
542
|
+
);
|
|
543
|
+
HeroButton.displayName = "HeroButton";
|
|
544
|
+
|
|
545
|
+
const ReadMoreButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
546
|
+
({ className, size = "readMore", variant = "readMore", children = "Read More", ...props }, ref) => {
|
|
547
|
+
return (
|
|
548
|
+
<Button
|
|
549
|
+
variant={variant}
|
|
550
|
+
size={size}
|
|
551
|
+
className={cn(className)}
|
|
552
|
+
ref={ref}
|
|
553
|
+
aria-label="Show more content"
|
|
554
|
+
{...props}
|
|
555
|
+
>
|
|
556
|
+
{children}
|
|
557
|
+
</Button>
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
);
|
|
561
|
+
ReadMoreButton.displayName = "ReadMoreButton";
|
|
562
|
+
|
|
563
|
+
interface FilterButtonProps extends ButtonProps {
|
|
564
|
+
isActive?: boolean;
|
|
565
|
+
useBlueActive?: boolean;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
const FilterButton = React.forwardRef<HTMLButtonElement, FilterButtonProps>(
|
|
569
|
+
({ className, isActive = false, useBlueActive = false, children, ...props }, ref) => {
|
|
570
|
+
return (
|
|
571
|
+
<Button
|
|
572
|
+
variant={isActive ? (useBlueActive ? "filter-blue-active" : "filter-active") : "filter"}
|
|
573
|
+
className={cn(className)}
|
|
574
|
+
ref={ref}
|
|
575
|
+
aria-label={`Filter by ${children}`}
|
|
576
|
+
{...props}
|
|
577
|
+
>
|
|
578
|
+
{children}
|
|
579
|
+
</Button>
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
);
|
|
583
|
+
FilterButton.displayName = "FilterButton";
|
|
584
|
+
|
|
585
|
+
const SignInButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
586
|
+
({ className, size = "sm", variant = "action", children = "Login", ...props }, ref) => {
|
|
587
|
+
return (
|
|
588
|
+
<Button
|
|
589
|
+
variant={variant}
|
|
590
|
+
size={size}
|
|
591
|
+
className={cn("flex items-center gap-2", className)}
|
|
592
|
+
ref={ref}
|
|
593
|
+
aria-label="Login"
|
|
594
|
+
{...props}
|
|
595
|
+
>
|
|
596
|
+
<LogIn className="h-4 w-4 sm:h-5 sm:w-5" />
|
|
597
|
+
{children}
|
|
598
|
+
</Button>
|
|
599
|
+
);
|
|
600
|
+
}
|
|
601
|
+
);
|
|
602
|
+
SignInButton.displayName = "SignInButton";
|
|
603
|
+
|
|
604
|
+
const SignUpButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
605
|
+
({ className, size = "sm", variant = "action", children = "Sign Up", ...props }, ref) => {
|
|
606
|
+
return (
|
|
607
|
+
<Button
|
|
608
|
+
variant={variant}
|
|
609
|
+
size={size}
|
|
610
|
+
className={cn("flex items-center gap-2", className)}
|
|
611
|
+
ref={ref}
|
|
612
|
+
aria-label="Sign Up"
|
|
613
|
+
{...props}
|
|
614
|
+
>
|
|
615
|
+
<UserPlus className="h-4 w-4 sm:h-5 sm:w-5" />
|
|
616
|
+
{children}
|
|
617
|
+
</Button>
|
|
618
|
+
);
|
|
619
|
+
}
|
|
620
|
+
);
|
|
621
|
+
SignUpButton.displayName = "SignUpButton";
|
|
622
|
+
|
|
623
|
+
const SettingsButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
624
|
+
({ className, size = "sm", variant = "action", children, ...props }, ref) => {
|
|
625
|
+
return (
|
|
626
|
+
<Button
|
|
627
|
+
variant={variant}
|
|
628
|
+
size={size}
|
|
629
|
+
className={cn("flex items-center gap-2", className)}
|
|
630
|
+
ref={ref}
|
|
631
|
+
aria-label="Admin Menu"
|
|
632
|
+
{...props}
|
|
633
|
+
>
|
|
634
|
+
<Settings className="h-4 w-4 sm:h-5 sm:w-5" />
|
|
635
|
+
{children}
|
|
636
|
+
</Button>
|
|
637
|
+
);
|
|
638
|
+
}
|
|
639
|
+
);
|
|
640
|
+
SettingsButton.displayName = "SettingsButton";
|
|
641
|
+
|
|
642
|
+
const SignOutButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
643
|
+
({ className, size = "sm", variant = "action", children = "Logout", ...props }, ref) => {
|
|
644
|
+
return (
|
|
645
|
+
<Button
|
|
646
|
+
variant={variant}
|
|
647
|
+
size={size}
|
|
648
|
+
className={cn("flex items-center gap-2", className)}
|
|
649
|
+
ref={ref}
|
|
650
|
+
aria-label="Logout"
|
|
651
|
+
{...props}
|
|
652
|
+
>
|
|
653
|
+
<LogOut className="h-4 w-4 sm:h-5 sm:w-5" />
|
|
654
|
+
{children}
|
|
655
|
+
</Button>
|
|
656
|
+
);
|
|
657
|
+
}
|
|
658
|
+
);
|
|
659
|
+
SignOutButton.displayName = "SignOutButton";
|
|
660
|
+
|
|
661
|
+
const ScrollToTopButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
662
|
+
({ className, size = "bubble", variant = "scrollToTop", children, ...props }, ref) => {
|
|
663
|
+
return (
|
|
664
|
+
<Button
|
|
665
|
+
variant={variant}
|
|
666
|
+
size={size}
|
|
667
|
+
className={cn(className)}
|
|
668
|
+
ref={ref}
|
|
669
|
+
aria-label="Scroll to top"
|
|
670
|
+
{...props}
|
|
671
|
+
>
|
|
672
|
+
{children || <ArrowUp className="h-6 w-6 stroke-2 md:stroke-[3]" />}
|
|
673
|
+
</Button>
|
|
674
|
+
);
|
|
675
|
+
}
|
|
676
|
+
);
|
|
677
|
+
ScrollToTopButton.displayName = "ScrollToTopButton";
|
|
678
|
+
|
|
679
|
+
const PhoneButton = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
680
|
+
({ className, size = "bubble", variant = "phone", children, ...props }, ref) => {
|
|
681
|
+
return (
|
|
682
|
+
<Button
|
|
683
|
+
variant={variant}
|
|
684
|
+
size={size}
|
|
685
|
+
className={cn(className)}
|
|
686
|
+
ref={ref}
|
|
687
|
+
aria-label="Call us"
|
|
688
|
+
{...props}
|
|
689
|
+
>
|
|
690
|
+
{children || <Phone className="h-6 w-6 stroke-2 md:stroke-[3] rotate-12" />}
|
|
691
|
+
</Button>
|
|
692
|
+
);
|
|
693
|
+
}
|
|
694
|
+
);
|
|
695
|
+
PhoneButton.displayName = "PhoneButton";
|
|
696
|
+
|
|
697
|
+
export {
|
|
698
|
+
Button,
|
|
699
|
+
EditIconButton,
|
|
700
|
+
CreateButton,
|
|
701
|
+
UploadButton,
|
|
702
|
+
UpdateButton,
|
|
703
|
+
CancelButton,
|
|
704
|
+
CloseButton,
|
|
705
|
+
ToggleButton,
|
|
706
|
+
DeleteButton,
|
|
707
|
+
TrashIconButton,
|
|
708
|
+
DeleteIconButton,
|
|
709
|
+
ActionButton,
|
|
710
|
+
AddButton,
|
|
711
|
+
ChatToggleButton,
|
|
712
|
+
ChatSubmitButton,
|
|
713
|
+
RetryButton,
|
|
714
|
+
ResetButton,
|
|
715
|
+
ConfirmButton,
|
|
716
|
+
SubmitButton,
|
|
717
|
+
ContactSubmitButton,
|
|
718
|
+
ExternalLinkButton,
|
|
719
|
+
BackButton,
|
|
720
|
+
EditToggleButton,
|
|
721
|
+
NextButton,
|
|
722
|
+
PrevButton,
|
|
723
|
+
HeroButton,
|
|
724
|
+
ReadMoreButton,
|
|
725
|
+
FilterButton,
|
|
726
|
+
SignInButton,
|
|
727
|
+
SignUpButton,
|
|
728
|
+
SettingsButton,
|
|
729
|
+
SignOutButton,
|
|
730
|
+
ScrollToTopButton,
|
|
731
|
+
PhoneButton,
|
|
732
|
+
buttonVariants,
|
|
733
|
+
};
|