@m5kdev/web-ui 0.1.3 → 0.1.4
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +6 -0
- package/dist/src/animations/card.motion.d.ts +3 -0
- package/dist/src/animations/card.motion.d.ts.map +1 -0
- package/dist/src/animations/card.motion.js +7 -0
- package/dist/src/components/AvatarUpload.d.ts +8 -0
- package/dist/src/components/AvatarUpload.d.ts.map +1 -0
- package/dist/src/components/AvatarUpload.js +67 -0
- package/dist/src/components/Button.d.ts +6 -0
- package/dist/src/components/Button.d.ts.map +1 -0
- package/dist/src/components/Button.js +5 -0
- package/dist/src/components/Calendar.d.ts +36 -0
- package/dist/src/components/Calendar.d.ts.map +1 -0
- package/dist/src/components/Calendar.js +10 -0
- package/dist/src/components/CardsSelect.d.ts +24 -0
- package/dist/src/components/CardsSelect.d.ts.map +1 -0
- package/dist/src/components/CardsSelect.js +46 -0
- package/dist/src/components/CollapsibleSidebarMenuItem.d.ts +10 -0
- package/dist/src/components/CollapsibleSidebarMenuItem.d.ts.map +1 -0
- package/dist/src/components/CollapsibleSidebarMenuItem.js +11 -0
- package/dist/src/components/ColorPicker.d.ts +5 -0
- package/dist/src/components/ColorPicker.d.ts.map +1 -0
- package/dist/src/components/ColorPicker.js +21 -0
- package/dist/src/components/CopyButton.d.ts +7 -0
- package/dist/src/components/CopyButton.d.ts.map +1 -0
- package/dist/src/components/CopyButton.js +24 -0
- package/dist/src/components/CropDialog.d.ts +11 -0
- package/dist/src/components/CropDialog.d.ts.map +1 -0
- package/dist/src/components/CropDialog.js +67 -0
- package/dist/src/components/DialogProvider.d.ts +16 -0
- package/dist/src/components/DialogProvider.d.ts.map +1 -0
- package/dist/src/components/DialogProvider.js +50 -0
- package/dist/src/components/ErrorFallback.d.ts +5 -0
- package/dist/src/components/ErrorFallback.d.ts.map +1 -0
- package/dist/src/components/ErrorFallback.js +5 -0
- package/dist/src/components/FileDropzone.d.ts +7 -0
- package/dist/src/components/FileDropzone.d.ts.map +1 -0
- package/dist/src/components/FileDropzone.js +63 -0
- package/dist/src/components/MultiSelectDropdown.d.ts +27 -0
- package/dist/src/components/MultiSelectDropdown.d.ts.map +1 -0
- package/dist/src/components/MultiSelectDropdown.js +53 -0
- package/dist/src/components/Orb.d.ts +7 -0
- package/dist/src/components/Orb.d.ts.map +1 -0
- package/dist/src/components/Orb.js +259 -0
- package/dist/src/components/PageAlert.d.ts +19 -0
- package/dist/src/components/PageAlert.d.ts.map +1 -0
- package/dist/src/components/PageAlert.js +48 -0
- package/dist/src/components/SelectChips.d.ts +11 -0
- package/dist/src/components/SelectChips.d.ts.map +1 -0
- package/dist/src/components/SelectChips.js +11 -0
- package/dist/src/components/SidebarItem.d.ts +8 -0
- package/dist/src/components/SidebarItem.d.ts.map +1 -0
- package/dist/src/components/SidebarItem.js +6 -0
- package/dist/src/components/Steps.d.ts +20 -0
- package/dist/src/components/Steps.d.ts.map +1 -0
- package/dist/src/components/Steps.js +34 -0
- package/dist/src/components/TablerIconPicker.d.ts +3 -0
- package/dist/src/components/TablerIconPicker.d.ts.map +1 -0
- package/dist/src/components/TablerIconPicker.js +4238 -0
- package/dist/src/components/app-header.d.ts +7 -0
- package/dist/src/components/app-header.d.ts.map +1 -0
- package/dist/src/components/app-header.js +8 -0
- package/dist/src/components/blur-card.d.ts +14 -0
- package/dist/src/components/blur-card.d.ts.map +1 -0
- package/dist/src/components/blur-card.js +34 -0
- package/dist/src/components/features-section-demo-1.d.ts +7 -0
- package/dist/src/components/features-section-demo-1.d.ts.map +1 -0
- package/dist/src/components/features-section-demo-1.js +53 -0
- package/dist/src/components/features-section-demo-2.d.ts +2 -0
- package/dist/src/components/features-section-demo-2.d.ts.map +1 -0
- package/dist/src/components/features-section-demo-2.js +51 -0
- package/dist/src/components/features-section-demo-3.d.ts +9 -0
- package/dist/src/components/features-section-demo-3.d.ts.map +1 -0
- package/dist/src/components/features-section-demo-3.js +116 -0
- package/dist/src/components/mode-toggle.d.ts +2 -0
- package/dist/src/components/mode-toggle.d.ts.map +1 -0
- package/dist/src/components/mode-toggle.js +9 -0
- package/dist/src/components/nav-main.d.ts +14 -0
- package/dist/src/components/nav-main.d.ts.map +1 -0
- package/dist/src/components/nav-main.js +9 -0
- package/dist/src/components/pricing-cards.d.ts +2 -0
- package/dist/src/components/pricing-cards.d.ts.map +1 -0
- package/dist/src/components/pricing-cards.js +27 -0
- package/dist/src/components/shared/ButtonCopy.d.ts +7 -0
- package/dist/src/components/shared/ButtonCopy.d.ts.map +1 -0
- package/dist/src/components/shared/ButtonCopy.js +24 -0
- package/dist/src/components/team-switcher.d.ts +9 -0
- package/dist/src/components/team-switcher.d.ts.map +1 -0
- package/dist/src/components/team-switcher.js +10 -0
- package/dist/src/components/theme-provider.d.ts +14 -0
- package/dist/src/components/theme-provider.d.ts.map +1 -0
- package/dist/src/components/theme-provider.js +41 -0
- package/dist/src/components/typewriter.d.ts +19 -0
- package/dist/src/components/typewriter.d.ts.map +1 -0
- package/dist/src/components/typewriter.js +38 -0
- package/dist/src/components/ui/alert-dialog.d.ts +15 -0
- package/dist/src/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/src/components/ui/alert-dialog.js +38 -0
- package/dist/src/components/ui/alert.d.ts +10 -0
- package/dist/src/components/ui/alert.d.ts.map +1 -0
- package/dist/src/components/ui/alert.js +24 -0
- package/dist/src/components/ui/avatar.d.ts +7 -0
- package/dist/src/components/ui/avatar.d.ts.map +1 -0
- package/dist/src/components/ui/avatar.js +12 -0
- package/dist/src/components/ui/badge.d.ts +10 -0
- package/dist/src/components/ui/badge.d.ts.map +1 -0
- package/dist/src/components/ui/badge.js +20 -0
- package/dist/src/components/ui/bento-grid.d.ts +12 -0
- package/dist/src/components/ui/bento-grid.d.ts.map +1 -0
- package/dist/src/components/ui/bento-grid.js +8 -0
- package/dist/src/components/ui/bento-grid2.d.ts +16 -0
- package/dist/src/components/ui/bento-grid2.d.ts.map +1 -0
- package/dist/src/components/ui/bento-grid2.js +13 -0
- package/dist/src/components/ui/breadcrumb.d.ts +20 -0
- package/dist/src/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/src/components/ui/breadcrumb.js +23 -0
- package/dist/src/components/ui/button.d.ts +12 -0
- package/dist/src/components/ui/button.d.ts.map +1 -0
- package/dist/src/components/ui/button.js +33 -0
- package/dist/src/components/ui/card.d.ts +9 -0
- package/dist/src/components/ui/card.d.ts.map +1 -0
- package/dist/src/components/ui/card.js +16 -0
- package/dist/src/components/ui/checkbox.d.ts +5 -0
- package/dist/src/components/ui/checkbox.d.ts.map +1 -0
- package/dist/src/components/ui/checkbox.js +8 -0
- package/dist/src/components/ui/collapsible.d.ts +6 -0
- package/dist/src/components/ui/collapsible.d.ts.map +1 -0
- package/dist/src/components/ui/collapsible.js +5 -0
- package/dist/src/components/ui/dialog.d.ts +14 -0
- package/dist/src/components/ui/dialog.d.ts.map +1 -0
- package/dist/src/components/ui/dialog.js +35 -0
- package/dist/src/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/src/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/src/components/ui/dropdown-menu.js +32 -0
- package/dist/src/components/ui/floating-navbar.d.ts +10 -0
- package/dist/src/components/ui/floating-navbar.d.ts.map +1 -0
- package/dist/src/components/ui/floating-navbar.js +38 -0
- package/dist/src/components/ui/form.d.ts +24 -0
- package/dist/src/components/ui/form.d.ts.map +1 -0
- package/dist/src/components/ui/form.js +60 -0
- package/dist/src/components/ui/image.d.ts +7 -0
- package/dist/src/components/ui/image.d.ts.map +1 -0
- package/dist/src/components/ui/image.js +15 -0
- package/dist/src/components/ui/input.d.ts +4 -0
- package/dist/src/components/ui/input.d.ts.map +1 -0
- package/dist/src/components/ui/input.js +8 -0
- package/dist/src/components/ui/label.d.ts +6 -0
- package/dist/src/components/ui/label.d.ts.map +1 -0
- package/dist/src/components/ui/label.js +9 -0
- package/dist/src/components/ui/pagination.d.ts +14 -0
- package/dist/src/components/ui/pagination.d.ts.map +1 -0
- package/dist/src/components/ui/pagination.js +29 -0
- package/dist/src/components/ui/progress.d.ts +5 -0
- package/dist/src/components/ui/progress.d.ts.map +1 -0
- package/dist/src/components/ui/progress.js +7 -0
- package/dist/src/components/ui/resizable-navbar.d.ts +57 -0
- package/dist/src/components/ui/resizable-navbar.d.ts.map +1 -0
- package/dist/src/components/ui/resizable-navbar.js +86 -0
- package/dist/src/components/ui/segment-control.d.ts +10 -0
- package/dist/src/components/ui/segment-control.d.ts.map +1 -0
- package/dist/src/components/ui/segment-control.js +42 -0
- package/dist/src/components/ui/select.d.ts +14 -0
- package/dist/src/components/ui/select.d.ts.map +1 -0
- package/dist/src/components/ui/select.js +26 -0
- package/dist/src/components/ui/separator.d.ts +5 -0
- package/dist/src/components/ui/separator.d.ts.map +1 -0
- package/dist/src/components/ui/separator.js +7 -0
- package/dist/src/components/ui/sheet.d.ts +26 -0
- package/dist/src/components/ui/sheet.d.ts.map +1 -0
- package/dist/src/components/ui/sheet.js +37 -0
- package/dist/src/components/ui/sidebar.d.ts +67 -0
- package/dist/src/components/ui/sidebar.d.ts.map +1 -0
- package/dist/src/components/ui/sidebar.js +222 -0
- package/dist/src/components/ui/skeleton.d.ts +3 -0
- package/dist/src/components/ui/skeleton.d.ts.map +1 -0
- package/dist/src/components/ui/skeleton.js +6 -0
- package/dist/src/components/ui/slider.d.ts +5 -0
- package/dist/src/components/ui/slider.d.ts.map +1 -0
- package/dist/src/components/ui/slider.js +7 -0
- package/dist/src/components/ui/sonner.d.ts +5 -0
- package/dist/src/components/ui/sonner.d.ts.map +1 -0
- package/dist/src/components/ui/sonner.js +15 -0
- package/dist/src/components/ui/spinner.d.ts +15 -0
- package/dist/src/components/ui/spinner.d.ts.map +1 -0
- package/dist/src/components/ui/spinner.js +30 -0
- package/dist/src/components/ui/switch.d.ts +5 -0
- package/dist/src/components/ui/switch.d.ts.map +1 -0
- package/dist/src/components/ui/switch.js +7 -0
- package/dist/src/components/ui/table.d.ts +11 -0
- package/dist/src/components/ui/table.d.ts.map +1 -0
- package/dist/src/components/ui/table.js +27 -0
- package/dist/src/components/ui/tabs.d.ts +8 -0
- package/dist/src/components/ui/tabs.d.ts.map +1 -0
- package/dist/src/components/ui/tabs.js +16 -0
- package/dist/src/components/ui/textarea.d.ts +4 -0
- package/dist/src/components/ui/textarea.d.ts.map +1 -0
- package/dist/src/components/ui/textarea.js +6 -0
- package/dist/src/components/ui/timeline.d.ts +12 -0
- package/dist/src/components/ui/timeline.d.ts.map +1 -0
- package/dist/src/components/ui/timeline.js +27 -0
- package/dist/src/components/ui/toast.d.ts +16 -0
- package/dist/src/components/ui/toast.d.ts.map +1 -0
- package/dist/src/components/ui/toast.js +33 -0
- package/dist/src/components/ui/tooltip.d.ts +8 -0
- package/dist/src/components/ui/tooltip.d.ts.map +1 -0
- package/dist/src/components/ui/tooltip.js +16 -0
- package/dist/src/components/ui/typewriter-effect.d.ts +17 -0
- package/dist/src/components/ui/typewriter-effect.d.ts.map +1 -0
- package/dist/src/components/ui/typewriter-effect.js +76 -0
- package/dist/src/hooks/use-mobile.d.ts +2 -0
- package/dist/src/hooks/use-mobile.d.ts.map +1 -0
- package/dist/src/hooks/use-mobile.js +15 -0
- package/dist/src/hooks/useDialog.d.ts +5 -0
- package/dist/src/hooks/useDialog.d.ts.map +1 -0
- package/dist/src/hooks/useDialog.js +22 -0
- package/dist/src/icons/GoogleIcon.d.ts +6 -0
- package/dist/src/icons/GoogleIcon.d.ts.map +1 -0
- package/dist/src/icons/GoogleIcon.js +4 -0
- package/dist/src/icons/LinkedInIcon.d.ts +6 -0
- package/dist/src/icons/LinkedInIcon.d.ts.map +1 -0
- package/dist/src/icons/LinkedInIcon.js +4 -0
- package/dist/src/icons/MicrosoftIcon.d.ts +6 -0
- package/dist/src/icons/MicrosoftIcon.d.ts.map +1 -0
- package/dist/src/icons/MicrosoftIcon.js +4 -0
- package/dist/src/lib/chatwoot.d.ts +12 -0
- package/dist/src/lib/chatwoot.d.ts.map +1 -0
- package/dist/src/lib/chatwoot.js +28 -0
- package/dist/src/lib/utils.d.ts +3 -0
- package/dist/src/lib/utils.d.ts.map +1 -0
- package/dist/src/lib/utils.js +5 -0
- package/dist/src/modules/app/components/AppLoader.d.ts +3 -0
- package/dist/src/modules/app/components/AppLoader.d.ts.map +1 -0
- package/dist/src/modules/app/components/AppLoader.js +5 -0
- package/dist/src/modules/app/components/AppShell.d.ts +8 -0
- package/dist/src/modules/app/components/AppShell.d.ts.map +1 -0
- package/dist/src/modules/app/components/AppShell.js +7 -0
- package/dist/src/modules/app/components/AppSidebar.d.ts +8 -0
- package/dist/src/modules/app/components/AppSidebar.d.ts.map +1 -0
- package/dist/src/modules/app/components/AppSidebar.js +5 -0
- package/dist/src/modules/app/components/AppSidebarContent.d.ts +17 -0
- package/dist/src/modules/app/components/AppSidebarContent.d.ts.map +1 -0
- package/dist/src/modules/app/components/AppSidebarContent.js +7 -0
- package/dist/src/modules/app/components/AppSidebarHeader.d.ts +9 -0
- package/dist/src/modules/app/components/AppSidebarHeader.d.ts.map +1 -0
- package/dist/src/modules/app/components/AppSidebarHeader.js +10 -0
- package/dist/src/modules/app/components/AppSidebarInvites.d.ts +4 -0
- package/dist/src/modules/app/components/AppSidebarInvites.d.ts.map +1 -0
- package/dist/src/modules/app/components/AppSidebarInvites.js +12 -0
- package/dist/src/modules/app/components/AppSidebarUser.d.ts +12 -0
- package/dist/src/modules/app/components/AppSidebarUser.d.ts.map +1 -0
- package/dist/src/modules/app/components/AppSidebarUser.js +16 -0
- package/dist/src/modules/auth/components/AdminUserManagement.d.ts +7 -0
- package/dist/src/modules/auth/components/AdminUserManagement.d.ts.map +1 -0
- package/dist/src/modules/auth/components/AdminUserManagement.js +422 -0
- package/dist/src/modules/auth/components/AdminWaitlist.d.ts +7 -0
- package/dist/src/modules/auth/components/AdminWaitlist.d.ts.map +1 -0
- package/dist/src/modules/auth/components/AdminWaitlist.js +118 -0
- package/dist/src/modules/auth/components/AuthLayout.d.ts +5 -0
- package/dist/src/modules/auth/components/AuthLayout.d.ts.map +1 -0
- package/dist/src/modules/auth/components/AuthLayout.js +5 -0
- package/dist/src/modules/auth/components/AuthProviders.d.ts +7 -0
- package/dist/src/modules/auth/components/AuthProviders.d.ts.map +1 -0
- package/dist/src/modules/auth/components/AuthProviders.js +45 -0
- package/dist/src/modules/auth/components/AuthRouter.d.ts +10 -0
- package/dist/src/modules/auth/components/AuthRouter.d.ts.map +1 -0
- package/dist/src/modules/auth/components/AuthRouter.js +12 -0
- package/dist/src/modules/auth/components/ClaimAccountRoute.d.ts +5 -0
- package/dist/src/modules/auth/components/ClaimAccountRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/ClaimAccountRoute.js +143 -0
- package/dist/src/modules/auth/components/ErrorAuthRoute.d.ts +2 -0
- package/dist/src/modules/auth/components/ErrorAuthRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/ErrorAuthRoute.js +93 -0
- package/dist/src/modules/auth/components/ForgotPasswordForm.d.ts +2 -0
- package/dist/src/modules/auth/components/ForgotPasswordForm.d.ts.map +1 -0
- package/dist/src/modules/auth/components/ForgotPasswordForm.js +27 -0
- package/dist/src/modules/auth/components/ForgotPasswordRoute.d.ts +2 -0
- package/dist/src/modules/auth/components/ForgotPasswordRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/ForgotPasswordRoute.js +9 -0
- package/dist/src/modules/auth/components/InviteFriends.d.ts +6 -0
- package/dist/src/modules/auth/components/InviteFriends.d.ts.map +1 -0
- package/dist/src/modules/auth/components/InviteFriends.js +74 -0
- package/dist/src/modules/auth/components/LastUsedBadge.d.ts +6 -0
- package/dist/src/modules/auth/components/LastUsedBadge.d.ts.map +1 -0
- package/dist/src/modules/auth/components/LastUsedBadge.js +9 -0
- package/dist/src/modules/auth/components/LoginForm.d.ts +4 -0
- package/dist/src/modules/auth/components/LoginForm.d.ts.map +1 -0
- package/dist/src/modules/auth/components/LoginForm.js +44 -0
- package/dist/src/modules/auth/components/LoginRoute.d.ts +4 -0
- package/dist/src/modules/auth/components/LoginRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/LoginRoute.js +11 -0
- package/dist/src/modules/auth/components/LogoutRoute.d.ts +2 -0
- package/dist/src/modules/auth/components/LogoutRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/LogoutRoute.js +15 -0
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.d.ts +10 -0
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js +102 -0
- package/dist/src/modules/auth/components/OrganizationMembersRoute.d.ts +52 -0
- package/dist/src/modules/auth/components/OrganizationMembersRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/OrganizationMembersRoute.js +359 -0
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.d.ts +21 -0
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.js +153 -0
- package/dist/src/modules/auth/components/OrganizationSwitcher.d.ts +8 -0
- package/dist/src/modules/auth/components/OrganizationSwitcher.d.ts.map +1 -0
- package/dist/src/modules/auth/components/OrganizationSwitcher.js +74 -0
- package/dist/src/modules/auth/components/ProfileRoute.d.ts +2 -0
- package/dist/src/modules/auth/components/ProfileRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/ProfileRoute.js +42 -0
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.d.ts +32 -0
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.d.ts.map +1 -0
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.js +236 -0
- package/dist/src/modules/auth/components/ResetPasswordForm.d.ts +2 -0
- package/dist/src/modules/auth/components/ResetPasswordForm.d.ts.map +1 -0
- package/dist/src/modules/auth/components/ResetPasswordForm.js +39 -0
- package/dist/src/modules/auth/components/ResetPasswordRoute.d.ts +2 -0
- package/dist/src/modules/auth/components/ResetPasswordRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/ResetPasswordRoute.js +9 -0
- package/dist/src/modules/auth/components/SignupFormRoute.d.ts +6 -0
- package/dist/src/modules/auth/components/SignupFormRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/SignupFormRoute.js +106 -0
- package/dist/src/modules/auth/components/SignupRoute.d.ts +8 -0
- package/dist/src/modules/auth/components/SignupRoute.d.ts.map +1 -0
- package/dist/src/modules/auth/components/SignupRoute.js +16 -0
- package/dist/src/modules/auth/components/UserPreferences.d.ts +31 -0
- package/dist/src/modules/auth/components/UserPreferences.d.ts.map +1 -0
- package/dist/src/modules/auth/components/UserPreferences.js +60 -0
- package/dist/src/modules/auth/components/WaitlistCard.d.ts +7 -0
- package/dist/src/modules/auth/components/WaitlistCard.d.ts.map +1 -0
- package/dist/src/modules/auth/components/WaitlistCard.js +32 -0
- package/dist/src/modules/auth/components/WaitlistCodeValidation.d.ts +8 -0
- package/dist/src/modules/auth/components/WaitlistCodeValidation.d.ts.map +1 -0
- package/dist/src/modules/auth/components/WaitlistCodeValidation.js +43 -0
- package/dist/src/modules/billing/components/BillingBetaPage.d.ts +9 -0
- package/dist/src/modules/billing/components/BillingBetaPage.d.ts.map +1 -0
- package/dist/src/modules/billing/components/BillingBetaPage.js +11 -0
- package/dist/src/modules/billing/components/BillingInvoicePage.d.ts +8 -0
- package/dist/src/modules/billing/components/BillingInvoicePage.d.ts.map +1 -0
- package/dist/src/modules/billing/components/BillingInvoicePage.js +32 -0
- package/dist/src/modules/billing/components/BillingPlanSelect.d.ts +7 -0
- package/dist/src/modules/billing/components/BillingPlanSelect.d.ts.map +1 -0
- package/dist/src/modules/billing/components/BillingPlanSelect.js +8 -0
- package/dist/src/modules/billing/components/BillingRouter.d.ts +10 -0
- package/dist/src/modules/billing/components/BillingRouter.d.ts.map +1 -0
- package/dist/src/modules/billing/components/BillingRouter.js +8 -0
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.d.ts +9 -0
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.d.ts.map +1 -0
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.js +46 -0
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.d.ts +11 -0
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.d.ts.map +1 -0
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.js +42 -0
- package/dist/src/modules/table/components/NuqsTable.d.ts +24 -0
- package/dist/src/modules/table/components/NuqsTable.d.ts.map +1 -0
- package/dist/src/modules/table/components/NuqsTable.js +198 -0
- package/dist/src/modules/table/components/TableFiltering.d.ts +24 -0
- package/dist/src/modules/table/components/TableFiltering.d.ts.map +1 -0
- package/dist/src/modules/table/components/TableFiltering.js +236 -0
- package/dist/src/modules/table/components/TablePagination.d.ts +10 -0
- package/dist/src/modules/table/components/TablePagination.d.ts.map +1 -0
- package/dist/src/modules/table/components/TablePagination.js +21 -0
- package/dist/src/modules/table/components/table.types.d.ts +13 -0
- package/dist/src/modules/table/components/table.types.d.ts.map +1 -0
- package/dist/src/modules/table/components/table.types.js +1 -0
- package/dist/src/modules/table/filterTransformers.d.ts +54 -0
- package/dist/src/modules/table/filterTransformers.d.ts.map +1 -0
- package/dist/src/modules/table/filterTransformers.js +276 -0
- package/dist/src/types.d.ts +4 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface MultiSelectOption {
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
value: string;
|
|
6
|
+
group?: string;
|
|
7
|
+
}
|
|
8
|
+
interface MultiSelectDropdownProps {
|
|
9
|
+
options: MultiSelectOption[];
|
|
10
|
+
selectedValues: string[];
|
|
11
|
+
onValueChange: (selectedValues: string[]) => void;
|
|
12
|
+
placeholder?: React.ReactNode;
|
|
13
|
+
label?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
triggerClassName?: string;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
maxDisplayCount?: number;
|
|
18
|
+
multiSelectLabel?: string;
|
|
19
|
+
trigger?: React.ReactNode;
|
|
20
|
+
resetButton?: "bottom" | "top";
|
|
21
|
+
resetLabel?: React.ReactNode;
|
|
22
|
+
separateGroups?: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const MultiSelectDropdown: React.ForwardRefExoticComponent<MultiSelectDropdownProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
export { MultiSelectDropdown };
|
|
26
|
+
export type { MultiSelectOption, MultiSelectDropdownProps };
|
|
27
|
+
//# sourceMappingURL=MultiSelectDropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiSelectDropdown.d.ts","sourceRoot":"","sources":["../../../src/components/MultiSelectDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,wBAAwB;IAChC,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAClD,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,QAAQ,GAAG,KAAK,CAAC;IAC/B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,QAAA,MAAM,mBAAmB,oGA2LxB,CAAC;AAIF,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,YAAY,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDown, RotateCcw } from "lucide-react";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Button } from "#components/ui/button";
|
|
5
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "#components/ui/dropdown-menu";
|
|
6
|
+
import { cn } from "#utils";
|
|
7
|
+
const MultiSelectDropdown = React.forwardRef(({ options, selectedValues, onValueChange, placeholder = "Select items...", label, className, triggerClassName, trigger, multiSelectLabel, disabled = false, maxDisplayCount = 3, resetButton = "bottom", resetLabel = "Reset", separateGroups = false, ...props }, ref) => {
|
|
8
|
+
const handleValueChange = (value, checked) => {
|
|
9
|
+
if (checked) {
|
|
10
|
+
onValueChange([...selectedValues, value]);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
onValueChange(selectedValues.filter((v) => v !== value));
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
const handleReset = () => {
|
|
17
|
+
onValueChange([]);
|
|
18
|
+
};
|
|
19
|
+
const getDisplayText = () => {
|
|
20
|
+
if (selectedValues.length === 0) {
|
|
21
|
+
return placeholder;
|
|
22
|
+
}
|
|
23
|
+
const selectedLabels = options
|
|
24
|
+
.filter((option) => selectedValues.includes(option.value))
|
|
25
|
+
.map((option) => option.label);
|
|
26
|
+
if (multiSelectLabel && selectedLabels.length > 1) {
|
|
27
|
+
return multiSelectLabel;
|
|
28
|
+
}
|
|
29
|
+
if (selectedLabels.length <= maxDisplayCount) {
|
|
30
|
+
return selectedLabels.join(", ");
|
|
31
|
+
}
|
|
32
|
+
return `${selectedLabels.slice(0, maxDisplayCount).join(", ")} (+${selectedLabels.length - maxDisplayCount} more)`;
|
|
33
|
+
};
|
|
34
|
+
const groupedOptions = React.useMemo(() => {
|
|
35
|
+
const groups = {};
|
|
36
|
+
const ungrouped = [];
|
|
37
|
+
options.forEach((option) => {
|
|
38
|
+
if (option.group) {
|
|
39
|
+
if (!groups[option.group]) {
|
|
40
|
+
groups[option.group] = [];
|
|
41
|
+
}
|
|
42
|
+
groups[option.group].push(option);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
ungrouped.push(option);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
return { groups, ungrouped };
|
|
49
|
+
}, [options]);
|
|
50
|
+
return (_jsx("div", { className: cn("w-full", className), children: _jsxs(DropdownMenu, { children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsx(Button, { ref: ref, variant: "outline", className: cn("w-full justify-between text-left font-normal", selectedValues.length === 0 && "text-muted-foreground", triggerClassName), disabled: disabled, ...props, children: trigger || (_jsxs(_Fragment, { children: [_jsx("span", { className: "truncate", children: getDisplayText() }), _jsx(ChevronDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })] })) }) }), _jsxs(DropdownMenuContent, { className: "w-full min-w-[var(--radix-dropdown-menu-trigger-width)]", align: "start", children: [resetButton && resetButton === "top" && (_jsxs(_Fragment, { children: [_jsx(DropdownMenuItem, { onClick: handleReset, disabled: selectedValues.length === 0, onSelect: (event) => event.preventDefault(), className: "cursor-pointer text-muted-foreground hover:text-foreground", children: resetLabel || (_jsxs(_Fragment, { children: [_jsx(RotateCcw, { className: "mr-2 h-4 w-4" }), "Reset"] })) }), _jsx(DropdownMenuSeparator, {})] })), label && (_jsxs(_Fragment, { children: [_jsx(DropdownMenuLabel, { children: label }), _jsx(DropdownMenuSeparator, {})] })), Object.entries(groupedOptions.groups).map(([groupName, groupOptions], groupIndex) => (_jsxs(DropdownMenuGroup, { children: [groupIndex > 0 && separateGroups && _jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuLabel, { className: "text-xs font-semibold text-muted-foreground px-2 py-1.5", children: groupName }), groupOptions.map((option) => (_jsxs(DropdownMenuCheckboxItem, { checked: selectedValues.includes(option.value), onCheckedChange: (checked) => handleValueChange(option.value, checked), onSelect: (event) => event.preventDefault(), className: "cursor-pointer", children: [option.icon && _jsx("span", { className: "mr-2", children: option.icon }), option.label] }, option.value)))] }, groupName))), groupedOptions.ungrouped.length > 0 && (_jsxs(DropdownMenuGroup, { children: [Object.keys(groupedOptions.groups).length > 0 && _jsx(DropdownMenuSeparator, {}), groupedOptions.ungrouped.map((option) => (_jsx(DropdownMenuCheckboxItem, { checked: selectedValues.includes(option.value), onCheckedChange: (checked) => handleValueChange(option.value, checked), onSelect: (event) => event.preventDefault(), className: "cursor-pointer", children: option.label }, option.value)))] })), resetButton && resetButton === "bottom" && (_jsxs(_Fragment, { children: [_jsx(DropdownMenuSeparator, {}), _jsx(DropdownMenuItem, { onClick: handleReset, disabled: selectedValues.length === 0, onSelect: (event) => event.preventDefault(), className: "cursor-pointer text-muted-foreground hover:text-foreground", children: resetLabel || (_jsxs(_Fragment, { children: [_jsx(RotateCcw, { className: "mr-2 h-4 w-4" }), "Reset"] })) })] }))] })] }) }));
|
|
51
|
+
});
|
|
52
|
+
MultiSelectDropdown.displayName = "MultiSelectDropdown";
|
|
53
|
+
export { MultiSelectDropdown };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default function Orb({ hue, hoverIntensity, rotateOnHover, forceHoverState, }: {
|
|
2
|
+
hue?: number | undefined;
|
|
3
|
+
hoverIntensity?: number | undefined;
|
|
4
|
+
rotateOnHover?: boolean | undefined;
|
|
5
|
+
forceHoverState?: boolean | undefined;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=Orb.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Orb.d.ts","sourceRoot":"","sources":["../../../src/components/Orb.tsx"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,UAAU,GAAG,CAAC,EAC1B,GAAO,EACP,cAAoB,EACpB,aAAoB,EACpB,eAAuB,GACxB;;;;;CAAA,2CAuRA"}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Mesh, Program, Renderer, Triangle, Vec3 } from "ogl";
|
|
3
|
+
import { useEffect, useRef } from "react";
|
|
4
|
+
export default function Orb({ hue = 0, hoverIntensity = 0.2, rotateOnHover = true, forceHoverState = false, }) {
|
|
5
|
+
const ctnDom = useRef(null);
|
|
6
|
+
const vert = /* glsl */ `
|
|
7
|
+
precision highp float;
|
|
8
|
+
attribute vec2 position;
|
|
9
|
+
attribute vec2 uv;
|
|
10
|
+
varying vec2 vUv;
|
|
11
|
+
void main() {
|
|
12
|
+
vUv = uv;
|
|
13
|
+
gl_Position = vec4(position, 0.0, 1.0);
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
const frag = /* glsl */ `
|
|
17
|
+
precision highp float;
|
|
18
|
+
|
|
19
|
+
uniform float iTime;
|
|
20
|
+
uniform vec3 iResolution;
|
|
21
|
+
uniform float hue;
|
|
22
|
+
uniform float hover;
|
|
23
|
+
uniform float rot;
|
|
24
|
+
uniform float hoverIntensity;
|
|
25
|
+
varying vec2 vUv;
|
|
26
|
+
|
|
27
|
+
vec3 rgb2yiq(vec3 c) {
|
|
28
|
+
float y = dot(c, vec3(0.299, 0.587, 0.114));
|
|
29
|
+
float i = dot(c, vec3(0.596, -0.274, -0.322));
|
|
30
|
+
float q = dot(c, vec3(0.211, -0.523, 0.312));
|
|
31
|
+
return vec3(y, i, q);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
vec3 yiq2rgb(vec3 c) {
|
|
35
|
+
float r = c.x + 0.956 * c.y + 0.621 * c.z;
|
|
36
|
+
float g = c.x - 0.272 * c.y - 0.647 * c.z;
|
|
37
|
+
float b = c.x - 1.106 * c.y + 1.703 * c.z;
|
|
38
|
+
return vec3(r, g, b);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
vec3 adjustHue(vec3 color, float hueDeg) {
|
|
42
|
+
float hueRad = hueDeg * 3.14159265 / 180.0;
|
|
43
|
+
vec3 yiq = rgb2yiq(color);
|
|
44
|
+
float cosA = cos(hueRad);
|
|
45
|
+
float sinA = sin(hueRad);
|
|
46
|
+
float i = yiq.y * cosA - yiq.z * sinA;
|
|
47
|
+
float q = yiq.y * sinA + yiq.z * cosA;
|
|
48
|
+
yiq.y = i;
|
|
49
|
+
yiq.z = q;
|
|
50
|
+
return yiq2rgb(yiq);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
vec3 hash33(vec3 p3) {
|
|
54
|
+
p3 = fract(p3 * vec3(0.1031, 0.11369, 0.13787));
|
|
55
|
+
p3 += dot(p3, p3.yxz + 19.19);
|
|
56
|
+
return -1.0 + 2.0 * fract(vec3(
|
|
57
|
+
p3.x + p3.y,
|
|
58
|
+
p3.x + p3.z,
|
|
59
|
+
p3.y + p3.z
|
|
60
|
+
) * p3.zyx);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
float snoise3(vec3 p) {
|
|
64
|
+
const float K1 = 0.333333333;
|
|
65
|
+
const float K2 = 0.166666667;
|
|
66
|
+
vec3 i = floor(p + (p.x + p.y + p.z) * K1);
|
|
67
|
+
vec3 d0 = p - (i - (i.x + i.y + i.z) * K2);
|
|
68
|
+
vec3 e = step(vec3(0.0), d0 - d0.yzx);
|
|
69
|
+
vec3 i1 = e * (1.0 - e.zxy);
|
|
70
|
+
vec3 i2 = 1.0 - e.zxy * (1.0 - e);
|
|
71
|
+
vec3 d1 = d0 - (i1 - K2);
|
|
72
|
+
vec3 d2 = d0 - (i2 - K1);
|
|
73
|
+
vec3 d3 = d0 - 0.5;
|
|
74
|
+
vec4 h = max(0.6 - vec4(
|
|
75
|
+
dot(d0, d0),
|
|
76
|
+
dot(d1, d1),
|
|
77
|
+
dot(d2, d2),
|
|
78
|
+
dot(d3, d3)
|
|
79
|
+
), 0.0);
|
|
80
|
+
vec4 n = h * h * h * h * vec4(
|
|
81
|
+
dot(d0, hash33(i)),
|
|
82
|
+
dot(d1, hash33(i + i1)),
|
|
83
|
+
dot(d2, hash33(i + i2)),
|
|
84
|
+
dot(d3, hash33(i + 1.0))
|
|
85
|
+
);
|
|
86
|
+
return dot(vec4(31.316), n);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
vec4 extractAlpha(vec3 colorIn) {
|
|
90
|
+
float a = max(max(colorIn.r, colorIn.g), colorIn.b);
|
|
91
|
+
return vec4(colorIn.rgb / (a + 1e-5), a);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
const vec3 baseColor1 = vec3(0.611765, 0.262745, 0.996078);
|
|
95
|
+
const vec3 baseColor2 = vec3(0.298039, 0.760784, 0.913725);
|
|
96
|
+
const vec3 baseColor3 = vec3(0.062745, 0.078431, 0.600000);
|
|
97
|
+
const float innerRadius = 0.6;
|
|
98
|
+
const float noiseScale = 0.65;
|
|
99
|
+
|
|
100
|
+
float light1(float intensity, float attenuation, float dist) {
|
|
101
|
+
return intensity / (1.0 + dist * attenuation);
|
|
102
|
+
}
|
|
103
|
+
float light2(float intensity, float attenuation, float dist) {
|
|
104
|
+
return intensity / (1.0 + dist * dist * attenuation);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
vec4 draw(vec2 uv) {
|
|
108
|
+
vec3 color1 = adjustHue(baseColor1, hue);
|
|
109
|
+
vec3 color2 = adjustHue(baseColor2, hue);
|
|
110
|
+
vec3 color3 = adjustHue(baseColor3, hue);
|
|
111
|
+
|
|
112
|
+
float ang = atan(uv.y, uv.x);
|
|
113
|
+
float len = length(uv);
|
|
114
|
+
float invLen = len > 0.0 ? 1.0 / len : 0.0;
|
|
115
|
+
|
|
116
|
+
float n0 = snoise3(vec3(uv * noiseScale, iTime * 0.5)) * 0.5 + 0.5;
|
|
117
|
+
float r0 = mix(mix(innerRadius, 1.0, 0.4), mix(innerRadius, 1.0, 0.6), n0);
|
|
118
|
+
float d0 = distance(uv, (r0 * invLen) * uv);
|
|
119
|
+
float v0 = light1(1.0, 10.0, d0);
|
|
120
|
+
v0 *= smoothstep(r0 * 1.05, r0, len);
|
|
121
|
+
float cl = cos(ang + iTime * 2.0) * 0.5 + 0.5;
|
|
122
|
+
|
|
123
|
+
float a = iTime * -1.0;
|
|
124
|
+
vec2 pos = vec2(cos(a), sin(a)) * r0;
|
|
125
|
+
float d = distance(uv, pos);
|
|
126
|
+
float v1 = light2(1.5, 5.0, d);
|
|
127
|
+
v1 *= light1(1.0, 50.0, d0);
|
|
128
|
+
|
|
129
|
+
float v2 = smoothstep(1.0, mix(innerRadius, 1.0, n0 * 0.5), len);
|
|
130
|
+
float v3 = smoothstep(innerRadius, mix(innerRadius, 1.0, 0.5), len);
|
|
131
|
+
|
|
132
|
+
vec3 col = mix(color1, color2, cl);
|
|
133
|
+
col = mix(color3, col, v0);
|
|
134
|
+
col = (col + v1) * v2 * v3;
|
|
135
|
+
col = clamp(col, 0.0, 1.0);
|
|
136
|
+
|
|
137
|
+
return extractAlpha(col);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
vec4 mainImage(vec2 fragCoord) {
|
|
141
|
+
vec2 center = iResolution.xy * 0.5;
|
|
142
|
+
float size = min(iResolution.x, iResolution.y);
|
|
143
|
+
vec2 uv = (fragCoord - center) / size * 2.0;
|
|
144
|
+
|
|
145
|
+
float angle = rot;
|
|
146
|
+
float s = sin(angle);
|
|
147
|
+
float c = cos(angle);
|
|
148
|
+
uv = vec2(c * uv.x - s * uv.y, s * uv.x + c * uv.y);
|
|
149
|
+
|
|
150
|
+
uv.x += hover * hoverIntensity * 0.1 * sin(uv.y * 10.0 + iTime);
|
|
151
|
+
uv.y += hover * hoverIntensity * 0.1 * sin(uv.x * 10.0 + iTime);
|
|
152
|
+
|
|
153
|
+
return draw(uv);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
void main() {
|
|
157
|
+
vec2 fragCoord = vUv * iResolution.xy;
|
|
158
|
+
vec4 col = mainImage(fragCoord);
|
|
159
|
+
gl_FragColor = vec4(col.rgb * col.a, col.a);
|
|
160
|
+
}
|
|
161
|
+
`;
|
|
162
|
+
useEffect(() => {
|
|
163
|
+
const container = ctnDom.current;
|
|
164
|
+
if (!container)
|
|
165
|
+
return;
|
|
166
|
+
const renderer = new Renderer({ alpha: true, premultipliedAlpha: false });
|
|
167
|
+
const gl = renderer.gl;
|
|
168
|
+
gl.clearColor(0, 0, 0, 0);
|
|
169
|
+
container.appendChild(gl.canvas);
|
|
170
|
+
const geometry = new Triangle(gl);
|
|
171
|
+
const program = new Program(gl, {
|
|
172
|
+
vertex: vert,
|
|
173
|
+
fragment: frag,
|
|
174
|
+
uniforms: {
|
|
175
|
+
iTime: { value: 0 },
|
|
176
|
+
iResolution: {
|
|
177
|
+
value: new Vec3(gl.canvas.width, gl.canvas.height, gl.canvas.width / gl.canvas.height),
|
|
178
|
+
},
|
|
179
|
+
hue: { value: hue },
|
|
180
|
+
hover: { value: 0 },
|
|
181
|
+
rot: { value: 0 },
|
|
182
|
+
hoverIntensity: { value: hoverIntensity },
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
const mesh = new Mesh(gl, { geometry, program });
|
|
186
|
+
function resize() {
|
|
187
|
+
if (!container)
|
|
188
|
+
return;
|
|
189
|
+
const dpr = window.devicePixelRatio || 1;
|
|
190
|
+
const width = container.clientWidth;
|
|
191
|
+
const height = container.clientHeight;
|
|
192
|
+
renderer.setSize(width * dpr, height * dpr);
|
|
193
|
+
gl.canvas.style.width = width + "px";
|
|
194
|
+
gl.canvas.style.height = height + "px";
|
|
195
|
+
program.uniforms.iResolution.value.set(gl.canvas.width, gl.canvas.height, gl.canvas.width / gl.canvas.height);
|
|
196
|
+
}
|
|
197
|
+
window.addEventListener("resize", resize);
|
|
198
|
+
resize();
|
|
199
|
+
let targetHover = 0;
|
|
200
|
+
let lastTime = 0;
|
|
201
|
+
let currentRot = 0;
|
|
202
|
+
const rotationSpeed = 0.3;
|
|
203
|
+
const handleMouseMove = (e) => {
|
|
204
|
+
const rect = container.getBoundingClientRect();
|
|
205
|
+
const x = e.clientX - rect.left;
|
|
206
|
+
const y = e.clientY - rect.top;
|
|
207
|
+
const width = rect.width;
|
|
208
|
+
const height = rect.height;
|
|
209
|
+
const size = Math.min(width, height);
|
|
210
|
+
const centerX = width / 2;
|
|
211
|
+
const centerY = height / 2;
|
|
212
|
+
const uvX = ((x - centerX) / size) * 2.0;
|
|
213
|
+
const uvY = ((y - centerY) / size) * 2.0;
|
|
214
|
+
if (Math.sqrt(uvX * uvX + uvY * uvY) < 0.8) {
|
|
215
|
+
targetHover = 1;
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
targetHover = 0;
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
const handleMouseLeave = () => {
|
|
222
|
+
targetHover = 0;
|
|
223
|
+
};
|
|
224
|
+
container.addEventListener("mousemove", handleMouseMove);
|
|
225
|
+
container.addEventListener("mouseleave", handleMouseLeave);
|
|
226
|
+
let rafId;
|
|
227
|
+
const update = (t) => {
|
|
228
|
+
rafId = requestAnimationFrame(update);
|
|
229
|
+
const dt = (t - lastTime) * 0.001;
|
|
230
|
+
lastTime = t;
|
|
231
|
+
program.uniforms.iTime.value = t * 0.001;
|
|
232
|
+
program.uniforms.hue.value = hue;
|
|
233
|
+
program.uniforms.hoverIntensity.value = hoverIntensity;
|
|
234
|
+
const effectiveHover = forceHoverState ? 1 : targetHover;
|
|
235
|
+
program.uniforms.hover.value += (effectiveHover - program.uniforms.hover.value) * 0.1;
|
|
236
|
+
if (rotateOnHover && effectiveHover > 0.5) {
|
|
237
|
+
currentRot += dt * rotationSpeed;
|
|
238
|
+
}
|
|
239
|
+
program.uniforms.rot.value = currentRot;
|
|
240
|
+
renderer.render({ scene: mesh });
|
|
241
|
+
};
|
|
242
|
+
rafId = requestAnimationFrame(update);
|
|
243
|
+
return () => {
|
|
244
|
+
cancelAnimationFrame(rafId);
|
|
245
|
+
window.removeEventListener("resize", resize);
|
|
246
|
+
container.removeEventListener("mousemove", handleMouseMove);
|
|
247
|
+
container.removeEventListener("mouseleave", handleMouseLeave);
|
|
248
|
+
container.removeChild(gl.canvas);
|
|
249
|
+
gl.getExtension("WEBGL_lose_context")?.loseContext();
|
|
250
|
+
};
|
|
251
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
252
|
+
}, [hue, hoverIntensity, rotateOnHover, forceHoverState]);
|
|
253
|
+
return (_jsx("div", { ref: ctnDom, style: {
|
|
254
|
+
position: "relative",
|
|
255
|
+
zIndex: 0,
|
|
256
|
+
width: "100%",
|
|
257
|
+
height: "100%",
|
|
258
|
+
} }));
|
|
259
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const pageAlertVariants: (props?: ({
|
|
4
|
+
variant?: "info" | "warning" | "success" | "default" | "destructive" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
+
interface PageAlertProps extends React.ComponentProps<"div">, VariantProps<typeof pageAlertVariants> {
|
|
7
|
+
title?: string;
|
|
8
|
+
description?: React.ReactNode;
|
|
9
|
+
icon?: React.ComponentType<{
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
dismissible?: boolean;
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
onDismiss?: () => void;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
declare const PageAlert: React.ForwardRefExoticComponent<Omit<PageAlertProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
export { PageAlert, type PageAlertProps };
|
|
19
|
+
//# sourceMappingURL=PageAlert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageAlert.d.ts","sourceRoot":"","sources":["../../../src/components/PageAlert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,QAAA,MAAM,iBAAiB;;8EAmBtB,CAAC;AAUF,UAAU,cACR,SAAQ,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EACjC,YAAY,CAAC,OAAO,iBAAiB,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;QAAE,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,SAAS,oGAoEd,CAAC;AAIF,OAAO,EAAE,SAAS,EAAE,KAAK,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cva } from "class-variance-authority";
|
|
3
|
+
import { AlertCircle, AlertTriangle, CheckCircle, Info, X } from "lucide-react";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { useTranslation } from "react-i18next";
|
|
6
|
+
import { cn } from "#utils";
|
|
7
|
+
const pageAlertVariants = cva("relative w-full border-b px-4 py-3 text-sm transition-all duration-300 ease-in-out", {
|
|
8
|
+
variants: {
|
|
9
|
+
variant: {
|
|
10
|
+
default: "bg-background border-border text-foreground",
|
|
11
|
+
info: "bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-950/50 dark:border-blue-800 dark:text-blue-100",
|
|
12
|
+
success: "bg-green-50 border-green-200 text-green-900 dark:bg-green-950/50 dark:border-green-800 dark:text-green-100",
|
|
13
|
+
warning: "bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-950/50 dark:border-yellow-800 dark:text-yellow-100",
|
|
14
|
+
destructive: "bg-red-50 border-red-200 text-red-900 dark:bg-red-950/50 dark:border-red-800 dark:text-red-100",
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
defaultVariants: {
|
|
18
|
+
variant: "default",
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
const iconMap = {
|
|
22
|
+
default: Info,
|
|
23
|
+
info: Info,
|
|
24
|
+
success: CheckCircle,
|
|
25
|
+
warning: AlertTriangle,
|
|
26
|
+
destructive: AlertCircle,
|
|
27
|
+
};
|
|
28
|
+
const PageAlert = React.forwardRef(({ className, variant = "default", title, description, icon, dismissible = true, defaultOpen = true, onDismiss, children, ...props }, ref) => {
|
|
29
|
+
const { t } = useTranslation();
|
|
30
|
+
const [isOpen, setIsOpen] = React.useState(defaultOpen);
|
|
31
|
+
const [isAnimatingOut, setIsAnimatingOut] = React.useState(false);
|
|
32
|
+
const IconComponent = icon || iconMap[variant || "default"];
|
|
33
|
+
const handleDismiss = React.useCallback(() => {
|
|
34
|
+
setIsAnimatingOut(true);
|
|
35
|
+
// Wait for animation to complete before removing from DOM
|
|
36
|
+
setTimeout(() => {
|
|
37
|
+
setIsOpen(false);
|
|
38
|
+
onDismiss?.();
|
|
39
|
+
}, 300); // Match the animation duration
|
|
40
|
+
}, [onDismiss]);
|
|
41
|
+
if (!isOpen) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
const content = (_jsx("div", { ref: ref, role: "alert", className: cn(pageAlertVariants({ variant }), isAnimatingOut && "transform -translate-y-full opacity-0", className), ...props, children: _jsxs("div", { className: "flex items-start gap-3", children: [IconComponent && _jsx(IconComponent, { className: "h-4 w-4 mt-0.5 flex-shrink-0" }), _jsxs("div", { className: "flex-1 min-w-0", children: [title && _jsx("div", { className: "font-medium leading-none tracking-tight mb-1", children: title }), description && _jsx("div", { className: "text-sm opacity-90 leading-relaxed", children: description }), children] }), dismissible && (_jsx("button", { type: "button", onClick: handleDismiss, className: "flex-shrink-0 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", "aria-label": t("web-ui:alert.dismissLabel"), children: _jsx(X, { className: "h-4 w-4" }) }))] }) }));
|
|
45
|
+
return content;
|
|
46
|
+
});
|
|
47
|
+
PageAlert.displayName = "PageAlert";
|
|
48
|
+
export { PageAlert };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ButtonProps } from "@heroui/react";
|
|
2
|
+
export declare function SelectChips({ items, selectedItems, onSelectionChange, buttonProps, }: {
|
|
3
|
+
items: string[] | {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
7
|
+
selectedItems: string[];
|
|
8
|
+
onSelectionChange: (items: string[]) => void;
|
|
9
|
+
buttonProps?: ButtonProps;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element[];
|
|
11
|
+
//# sourceMappingURL=SelectChips.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectChips.d.ts","sourceRoot":"","sources":["../../../src/components/SelectChips.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,WAAW,EAAY,MAAM,eAAe,CAAC;AAEnE,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,aAAa,EACb,iBAAiB,EACjB,WAAW,GACZ,EAAE;IACD,KAAK,EAAE,MAAM,EAAE,GAAG;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACrD,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAC7C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,6CA2BA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Checkbox } from "@heroui/react";
|
|
3
|
+
export function SelectChips({ items, selectedItems, onSelectionChange, buttonProps, }) {
|
|
4
|
+
return items.map((item) => {
|
|
5
|
+
const value = typeof item === "string" ? item : item.value;
|
|
6
|
+
const label = typeof item === "string" ? item : item.label;
|
|
7
|
+
return (_jsx(Button, { startContent: _jsx(Checkbox, { isSelected: selectedItems.includes(value), isReadOnly: true, style: { pointerEvents: "none" } }), onPress: () => onSelectionChange(selectedItems.includes(value)
|
|
8
|
+
? selectedItems.filter((i) => i !== value)
|
|
9
|
+
: [...selectedItems, value]), ...buttonProps, children: label }, value));
|
|
10
|
+
});
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
export declare function SidebarItem({ label, icon, link, badge, }: {
|
|
3
|
+
label: string;
|
|
4
|
+
icon: ReactNode;
|
|
5
|
+
link: string;
|
|
6
|
+
badge?: ReactNode;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=SidebarItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,GACN,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,2CAWA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Link } from "react-router";
|
|
3
|
+
import { SidebarMenuButton, SidebarMenuItem } from "#components/ui/sidebar";
|
|
4
|
+
export function SidebarItem({ label, icon, link, badge, }) {
|
|
5
|
+
return (_jsx(SidebarMenuItem, { children: _jsx(SidebarMenuButton, { asChild: true, tooltip: label, children: _jsxs(Link, { to: link, children: [icon, badge ? badge : _jsx("span", { children: label })] }) }) }));
|
|
6
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
export interface Step {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
status: "completed" | "current" | "upcoming";
|
|
7
|
+
}
|
|
8
|
+
export interface StepsProps {
|
|
9
|
+
steps: Step[];
|
|
10
|
+
className?: string;
|
|
11
|
+
onStepClick?: (step: number) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const Steps: React.FC<StepsProps>;
|
|
14
|
+
export declare const VerticalSteps: React.FC<StepsProps>;
|
|
15
|
+
export interface HorizontalStepsProps {
|
|
16
|
+
steps: Step[];
|
|
17
|
+
className?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const HorizontalSteps: React.FC<HorizontalStepsProps>;
|
|
20
|
+
//# sourceMappingURL=Steps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Steps.d.ts","sourceRoot":"","sources":["../../../src/components/Steps.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,WAAW,GAAG,SAAS,GAAG,UAAU,CAAC;CAC9C;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC;AAED,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA0JtC,CAAC;AAGF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CA6E9C,CAAC;AAEF,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA2E1D,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Check } from "lucide-react";
|
|
3
|
+
import { Badge } from "#components/ui/badge";
|
|
4
|
+
import { Separator } from "#components/ui/separator";
|
|
5
|
+
import { cn } from "#utils";
|
|
6
|
+
export const Steps = ({ steps, className, onStepClick }) => {
|
|
7
|
+
return (_jsxs("nav", { "aria-label": "Progress", className: cn("w-full", className), children: [_jsx("ol", { className: "lg:hidden space-y-6", children: steps.map((step, stepIdx) => (_jsxs("li", { className: "relative", children: [_jsxs("div", { className: "flex items-start", children: [_jsx("div", { className: "flex-shrink-0", children: step.status === "completed" ? (_jsx("button", { type: "button", onClick: () => onStepClick?.(stepIdx), children: _jsx(Badge, { variant: "default", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center", children: _jsx(Check, { className: "h-5 w-5" }) }) })) : step.status === "current" ? (_jsx(Badge, { variant: "default", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center text-sm font-medium", children: stepIdx + 1 })) : (_jsx(Badge, { variant: "outline", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center text-sm font-medium bg-background", children: stepIdx + 1 })) }), _jsxs("div", { className: "ml-4 min-w-0 flex-1", children: [_jsx("p", { className: cn("text-sm font-medium", step.status === "completed" || step.status === "current"
|
|
8
|
+
? "text-foreground"
|
|
9
|
+
: "text-muted-foreground"), children: step.title }), step.description && (_jsx("p", { className: cn("text-sm mt-1", step.status === "completed" || step.status === "current"
|
|
10
|
+
? "text-muted-foreground"
|
|
11
|
+
: "text-muted-foreground/60"), children: step.description }))] })] }), stepIdx !== steps.length - 1 && (_jsx("div", { className: "absolute left-5 top-10 -ml-px mt-2 h-6", children: _jsx(Separator, { orientation: "vertical", className: cn("h-full", step.status === "completed" ? "bg-primary" : "bg-muted-foreground/20") }) }))] }, step.id))) }), _jsx("ol", { className: "hidden lg:flex items-center justify-between", children: steps.map((step, stepIdx) => (_jsxs("li", { className: "relative flex flex-col items-center flex-1", children: [_jsx("div", { className: "relative z-10 flex-shrink-0", children: step.status === "completed" ? (_jsx("button", { type: "button", onClick: () => onStepClick?.(stepIdx), children: _jsx(Badge, { variant: "default", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center", children: _jsx(Check, { className: "h-5 w-5" }) }) })) : step.status === "current" ? (_jsx(Badge, { variant: "default", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center text-sm font-medium", children: stepIdx + 1 })) : (_jsx(Badge, { variant: "outline", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center text-sm font-medium bg-background", children: stepIdx + 1 })) }), _jsxs("div", { className: "mt-3 text-center max-w-32", children: [_jsx("p", { className: cn("text-sm font-medium", step.status === "completed" || step.status === "current"
|
|
12
|
+
? "text-foreground"
|
|
13
|
+
: "text-muted-foreground"), children: step.title }), step.description && (_jsx("p", { className: cn("text-xs mt-1", step.status === "completed" || step.status === "current"
|
|
14
|
+
? "text-muted-foreground"
|
|
15
|
+
: "text-muted-foreground/60"), children: step.description }))] }), stepIdx !== steps.length - 1 && (_jsx("div", { className: "absolute left-1/2 top-5 w-full h-0.5 -z-10", children: _jsx(Separator, { orientation: "horizontal", className: cn("w-full", step.status === "completed" ? "bg-primary" : "bg-muted-foreground/20") }) }))] }, step.id))) })] }));
|
|
16
|
+
};
|
|
17
|
+
// Keep the individual components for specific use cases
|
|
18
|
+
export const VerticalSteps = ({ steps, className }) => {
|
|
19
|
+
return (_jsx("nav", { "aria-label": "Progress", className: cn("", className), children: _jsx("ol", { className: "space-y-6", children: steps.map((step, stepIdx) => (_jsxs("li", { className: "relative", children: [_jsxs("div", { className: "flex items-start", children: [_jsx("div", { className: "flex-shrink-0", children: step.status === "completed" ? (_jsx(Badge, { variant: "default", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center", children: _jsx(Check, { className: "h-5 w-5" }) })) : step.status === "current" ? (_jsx(Badge, { variant: "default", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center text-sm font-medium", children: stepIdx + 1 })) : (_jsx(Badge, { variant: "outline", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center text-sm font-medium bg-background", children: stepIdx + 1 })) }), _jsxs("div", { className: "ml-4 min-w-0 flex-1", children: [_jsx("p", { className: cn("text-sm font-medium", step.status === "completed" || step.status === "current"
|
|
20
|
+
? "text-foreground"
|
|
21
|
+
: "text-muted-foreground"), children: step.title }), step.description && (_jsx("p", { className: cn("text-sm mt-1", step.status === "completed" || step.status === "current"
|
|
22
|
+
? "text-muted-foreground"
|
|
23
|
+
: "text-muted-foreground/60"), children: step.description }))] })] }), stepIdx !== steps.length - 1 && (_jsx("div", { className: "absolute left-5 top-10 -ml-px mt-2 h-6", children: _jsx(Separator, { orientation: "vertical", className: cn("h-full", step.status === "completed" ? "bg-primary" : "bg-muted-foreground/20") }) }))] }, step.id))) }) }));
|
|
24
|
+
};
|
|
25
|
+
export const HorizontalSteps = ({ steps, className }) => {
|
|
26
|
+
return (_jsx("nav", { "aria-label": "Progress", className: cn("w-full", className), children: _jsx("ol", { className: "flex items-center justify-between", children: steps.map((step, stepIdx) => (_jsxs("li", { className: "relative flex flex-col items-center flex-1", children: [_jsx("div", { className: "relative z-10 flex-shrink-0", children: step.status === "completed" ? (_jsx(Badge, { variant: "default", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center", children: _jsx(Check, { className: "h-5 w-5" }) })) : step.status === "current" ? (_jsx(Badge, { variant: "default", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center text-sm font-medium", children: stepIdx + 1 })) : (_jsx(Badge, { variant: "outline", className: "h-10 w-10 rounded-full p-0 flex items-center justify-center text-sm font-medium bg-background", children: stepIdx + 1 })) }), _jsxs("div", { className: "mt-3 text-center max-w-32", children: [_jsx("p", { className: cn("text-sm font-medium", step.status === "completed" || step.status === "current"
|
|
27
|
+
? "text-foreground"
|
|
28
|
+
: "text-muted-foreground"), children: step.title }), step.description && (_jsx("p", { className: cn("text-xs mt-1", step.status === "completed" || step.status === "current"
|
|
29
|
+
? "text-muted-foreground"
|
|
30
|
+
: "text-muted-foreground/60"), children: step.description }))] }), stepIdx !== steps.length - 1 && (_jsx("div", { className: "absolute left-1/2 top-5 w-full h-0.5 -z-10", children: _jsx(Separator, { orientation: "horizontal", className: cn("w-full", step.status === "completed" ? "bg-primary" : "bg-muted-foreground/20") }) }))] }, step.id))) }) }));
|
|
31
|
+
};
|
|
32
|
+
Steps.displayName = "Steps";
|
|
33
|
+
VerticalSteps.displayName = "VerticalSteps";
|
|
34
|
+
HorizontalSteps.displayName = "HorizontalSteps";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TablerIconPicker.d.ts","sourceRoot":"","sources":["../../../src/components/TablerIconPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAErE,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,iBAAiB,EACjB,aAAoB,EACpB,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,2CAkB/B"}
|