@m5kdev/web-ui 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/animations/card.motion.d.ts +7 -2
- package/dist/src/animations/card.motion.js +25 -6
- package/dist/src/animations/card.motion.js.map +1 -0
- package/dist/src/components/AvatarUpload.d.ts +14 -5
- package/dist/src/components/AvatarUpload.js +105 -63
- package/dist/src/components/AvatarUpload.js.map +1 -0
- package/dist/src/components/Button.d.ts +14 -4
- package/dist/src/components/Button.js +13 -4
- package/dist/src/components/Button.js.map +1 -0
- package/dist/src/components/Calendar.d.ts +33 -31
- package/dist/src/components/Calendar.js +14 -6
- package/dist/src/components/Calendar.js.map +1 -0
- package/dist/src/components/{Calendar.css → Calendar2.css} +757 -684
- package/dist/src/components/CardsSelect.d.ts +25 -21
- package/dist/src/components/CardsSelect.js +75 -42
- package/dist/src/components/CardsSelect.js.map +1 -0
- package/dist/src/components/CollapsibleSidebarMenuItem.d.ts +22 -9
- package/dist/src/components/CollapsibleSidebarMenuItem.js +31 -8
- package/dist/src/components/CollapsibleSidebarMenuItem.js.map +1 -0
- package/dist/src/components/ColorPicker.d.ts +15 -4
- package/dist/src/components/ColorPicker.js +46 -16
- package/dist/src/components/ColorPicker.js.map +1 -0
- package/dist/src/components/CopyButton.d.ts +18 -6
- package/dist/src/components/CopyButton.js +28 -19
- package/dist/src/components/CopyButton.js.map +1 -0
- package/dist/src/components/CropDialog.d.ts +20 -8
- package/dist/src/components/CropDialog.js +108 -62
- package/dist/src/components/CropDialog.js.map +1 -0
- package/dist/src/components/DialogProvider.d.ts +22 -14
- package/dist/src/components/DialogProvider.js +67 -45
- package/dist/src/components/DialogProvider.js.map +1 -0
- package/dist/src/components/ErrorFallback.d.ts +13 -4
- package/dist/src/components/ErrorFallback.js +29 -4
- package/dist/src/components/ErrorFallback.js.map +1 -0
- package/dist/src/components/FileDropzone.d.ts +12 -4
- package/dist/src/components/FileDropzone.js +98 -60
- package/dist/src/components/FileDropzone.js.map +1 -0
- package/dist/src/components/MultiSelectDropdown.d.ts +25 -22
- package/dist/src/components/MultiSelectDropdown.js +99 -49
- package/dist/src/components/MultiSelectDropdown.js.map +1 -0
- package/dist/src/components/Orb.d.ts +17 -6
- package/dist/src/components/Orb.js +263 -255
- package/dist/src/components/Orb.js.map +1 -0
- package/dist/src/components/PageAlert.d.ts +20 -15
- package/dist/src/components/PageAlert.js +67 -39
- package/dist/src/components/PageAlert.js.map +1 -0
- package/dist/src/components/SelectChips.d.ts +21 -10
- package/dist/src/components/SelectChips.js +21 -9
- package/dist/src/components/SelectChips.js.map +1 -0
- package/dist/src/components/SidebarItem.d.ts +18 -7
- package/dist/src/components/SidebarItem.js +16 -4
- package/dist/src/components/SidebarItem.js.map +1 -0
- package/dist/src/components/Steps.d.ts +21 -16
- package/dist/src/components/Steps.js +193 -27
- package/dist/src/components/Steps.js.map +1 -0
- package/dist/src/components/TablerIconPicker.d.ts +13 -2
- package/dist/src/components/TablerIconPicker.js +4254 -4234
- package/dist/src/components/TablerIconPicker.js.map +1 -0
- package/dist/src/components/app-header.d.ts +14 -6
- package/dist/src/components/app-header.js +27 -6
- package/dist/src/components/app-header.js.map +1 -0
- package/dist/src/components/blur-card.d.ts +25 -11
- package/dist/src/components/blur-card.js +134 -31
- package/dist/src/components/blur-card.js.map +1 -0
- package/dist/src/components/features-section-demo-1.d.ts +22 -6
- package/dist/src/components/features-section-demo-1.js +119 -47
- package/dist/src/components/features-section-demo-1.js.map +1 -0
- package/dist/src/components/features-section-demo-2.d.ts +7 -1
- package/dist/src/components/features-section-demo-2.js +80 -49
- package/dist/src/components/features-section-demo-2.js.map +1 -0
- package/dist/src/components/features-section-demo-3.d.ts +16 -8
- package/dist/src/components/features-section-demo-3.js +239 -103
- package/dist/src/components/features-section-demo-3.js.map +1 -0
- package/dist/src/components/mode-toggle.d.ts +7 -1
- package/dist/src/components/mode-toggle.js +42 -7
- package/dist/src/components/mode-toggle.js.map +1 -0
- package/dist/src/components/nav-main.d.ts +20 -12
- package/dist/src/components/nav-main.js +31 -5
- package/dist/src/components/nav-main.js.map +1 -0
- package/dist/src/components/pricing-cards.d.ts +7 -1
- package/dist/src/components/pricing-cards.js +125 -24
- package/dist/src/components/pricing-cards.js.map +1 -0
- package/dist/src/components/shared/ButtonCopy.d.ts +17 -6
- package/dist/src/components/shared/ButtonCopy.js +31 -20
- package/dist/src/components/shared/ButtonCopy.js.map +1 -0
- package/dist/src/components/team-switcher.d.ts +16 -8
- package/dist/src/components/team-switcher.js +70 -8
- package/dist/src/components/team-switcher.js.map +1 -0
- package/dist/src/components/theme-provider.d.ts +18 -8
- package/dist/src/components/theme-provider.js +42 -38
- package/dist/src/components/theme-provider.js.map +1 -0
- package/dist/src/components/typewriter.d.ts +35 -14
- package/dist/src/components/typewriter.js +45 -36
- package/dist/src/components/typewriter.js.map +1 -0
- package/dist/src/components/ui/alert-dialog.d.ts +48 -13
- package/dist/src/components/ui/alert-dialog.js +58 -15
- package/dist/src/components/ui/alert-dialog.js.map +1 -0
- package/dist/src/components/ui/alert.d.ts +24 -8
- package/dist/src/components/ui/alert.js +28 -15
- package/dist/src/components/ui/alert.js.map +1 -0
- package/dist/src/components/ui/avatar.d.ts +9 -5
- package/dist/src/components/ui/avatar.js +23 -7
- package/dist/src/components/ui/avatar.js.map +1 -0
- package/dist/src/components/ui/badge.d.ts +17 -8
- package/dist/src/components/ui/badge.js +17 -14
- package/dist/src/components/ui/badge.js.map +1 -0
- package/dist/src/components/ui/bento-grid.d.ts +26 -11
- package/dist/src/components/ui/bento-grid.js +30 -6
- package/dist/src/components/ui/bento-grid.js.map +1 -0
- package/dist/src/components/ui/bento-grid2.d.ts +30 -14
- package/dist/src/components/ui/bento-grid2.js +45 -9
- package/dist/src/components/ui/bento-grid2.js.map +1 -0
- package/dist/src/components/ui/breadcrumb.d.ts +27 -15
- package/dist/src/components/ui/breadcrumb.js +54 -14
- package/dist/src/components/ui/breadcrumb.js.map +1 -0
- package/dist/src/components/ui/button.d.ts +14 -9
- package/dist/src/components/ui/button.js +37 -26
- package/dist/src/components/ui/button.js.map +1 -0
- package/dist/src/components/ui/card.d.ts +12 -8
- package/dist/src/components/ui/card.js +38 -10
- package/dist/src/components/ui/card.js.map +1 -0
- package/dist/src/components/ui/checkbox.d.ts +6 -2
- package/dist/src/components/ui/checkbox.js +17 -5
- package/dist/src/components/ui/checkbox.js.map +1 -0
- package/dist/src/components/ui/collapsible.d.ts +9 -4
- package/dist/src/components/ui/collapsible.js +5 -1
- package/dist/src/components/ui/collapsible.js.map +1 -0
- package/dist/src/components/ui/dialog.d.ts +44 -12
- package/dist/src/components/ui/dialog.js +64 -14
- package/dist/src/components/ui/dialog.js.map +1 -0
- package/dist/src/components/ui/dropdown-menu.d.ts +32 -24
- package/dist/src/components/ui/dropdown-menu.js +64 -14
- package/dist/src/components/ui/dropdown-menu.js.map +1 -0
- package/dist/src/components/ui/floating-navbar.d.ts +18 -9
- package/dist/src/components/ui/floating-navbar.js +49 -35
- package/dist/src/components/ui/floating-navbar.js.map +1 -0
- package/dist/src/components/ui/form.d.ts +30 -21
- package/dist/src/components/ui/form.js +76 -44
- package/dist/src/components/ui/form.js.map +1 -0
- package/dist/src/components/ui/image.d.ts +6 -2
- package/dist/src/components/ui/image.js +51 -11
- package/dist/src/components/ui/image.js.map +1 -0
- package/dist/src/components/ui/input.d.ts +6 -2
- package/dist/src/components/ui/input.js +14 -5
- package/dist/src/components/ui/input.js.map +1 -0
- package/dist/src/components/ui/label.d.ts +8 -3
- package/dist/src/components/ui/label.js +13 -5
- package/dist/src/components/ui/label.js.map +1 -0
- package/dist/src/components/ui/pagination.d.ts +39 -12
- package/dist/src/components/ui/pagination.js +64 -14
- package/dist/src/components/ui/pagination.js.map +1 -0
- package/dist/src/components/ui/progress.d.ts +6 -2
- package/dist/src/components/ui/progress.js +16 -4
- package/dist/src/components/ui/progress.js.map +1 -0
- package/dist/src/components/ui/resizable-navbar.d.ts +84 -43
- package/dist/src/components/ui/resizable-navbar.js +126 -74
- package/dist/src/components/ui/resizable-navbar.js.map +1 -0
- package/dist/src/components/ui/segment-control.d.ts +10 -7
- package/dist/src/components/ui/segment-control.js +83 -38
- package/dist/src/components/ui/segment-control.js.map +1 -0
- package/dist/src/components/ui/select.d.ts +16 -12
- package/dist/src/components/ui/select.js +63 -14
- package/dist/src/components/ui/select.js.map +1 -0
- package/dist/src/components/ui/separator.d.ts +6 -2
- package/dist/src/components/ui/separator.js +14 -4
- package/dist/src/components/ui/separator.js.map +1 -0
- package/dist/src/components/ui/sheet.d.ts +30 -19
- package/dist/src/components/ui/sheet.js +52 -23
- package/dist/src/components/ui/sheet.js.map +1 -0
- package/dist/src/components/ui/sidebar.d.ts +69 -62
- package/dist/src/components/ui/sidebar.js +326 -171
- package/dist/src/components/ui/sidebar.js.map +1 -0
- package/dist/src/components/ui/skeleton.d.ts +9 -1
- package/dist/src/components/ui/skeleton.js +10 -3
- package/dist/src/components/ui/skeleton.js.map +1 -0
- package/dist/src/components/ui/slider.d.ts +6 -2
- package/dist/src/components/ui/slider.js +16 -4
- package/dist/src/components/ui/slider.js.map +1 -0
- package/dist/src/components/ui/sonner.d.ts +10 -3
- package/dist/src/components/ui/sonner.js +18 -11
- package/dist/src/components/ui/sonner.js.map +1 -0
- package/dist/src/components/ui/spinner.d.ts +21 -10
- package/dist/src/components/ui/spinner.js +24 -24
- package/dist/src/components/ui/spinner.js.map +1 -0
- package/dist/src/components/ui/switch.d.ts +6 -2
- package/dist/src/components/ui/switch.js +13 -4
- package/dist/src/components/ui/switch.js.map +1 -0
- package/dist/src/components/ui/table.d.ts +39 -10
- package/dist/src/components/ui/table.js +51 -11
- package/dist/src/components/ui/table.js.map +1 -0
- package/dist/src/components/ui/tabs.d.ts +23 -6
- package/dist/src/components/ui/tabs.js +27 -7
- package/dist/src/components/ui/tabs.js.map +1 -0
- package/dist/src/components/ui/textarea.d.ts +10 -2
- package/dist/src/components/ui/textarea.js +11 -3
- package/dist/src/components/ui/textarea.js.map +1 -0
- package/dist/src/components/ui/timeline.d.ts +16 -9
- package/dist/src/components/ui/timeline.js +87 -24
- package/dist/src/components/ui/timeline.js.map +1 -0
- package/dist/src/components/ui/toast.d.ts +19 -14
- package/dist/src/components/ui/toast.js +48 -22
- package/dist/src/components/ui/toast.js.map +1 -0
- package/dist/src/components/ui/tooltip.d.ts +23 -6
- package/dist/src/components/ui/tooltip.js +27 -7
- package/dist/src/components/ui/tooltip.js.map +1 -0
- package/dist/src/components/ui/typewriter-effect.d.ts +28 -14
- package/dist/src/components/ui/typewriter-effect.js +102 -72
- package/dist/src/components/ui/typewriter-effect.js.map +1 -0
- package/dist/src/hooks/use-mobile.d.ts +5 -1
- package/dist/src/hooks/use-mobile.js +18 -13
- package/dist/src/hooks/use-mobile.js.map +1 -0
- package/dist/src/hooks/useDialog.d.ts +8 -4
- package/dist/src/hooks/useDialog.js +24 -20
- package/dist/src/hooks/useDialog.js.map +1 -0
- package/dist/src/icons/GoogleIcon.d.ts +9 -5
- package/dist/src/icons/GoogleIcon.js +32 -3
- package/dist/src/icons/GoogleIcon.js.map +1 -0
- package/dist/src/icons/LinkedInIcon.d.ts +9 -5
- package/dist/src/icons/LinkedInIcon.js +27 -3
- package/dist/src/icons/LinkedInIcon.js.map +1 -0
- package/dist/src/icons/MicrosoftIcon.d.ts +9 -5
- package/dist/src/icons/MicrosoftIcon.js +31 -3
- package/dist/src/icons/MicrosoftIcon.js.map +1 -0
- package/dist/src/lib/chatwoot.d.ts +19 -10
- package/dist/src/lib/chatwoot.js +25 -27
- package/dist/src/lib/chatwoot.js.map +1 -0
- package/dist/src/lib/utils.d.ts +7 -2
- package/dist/src/lib/utils.js +7 -2
- package/dist/src/lib/utils.js.map +1 -0
- package/dist/src/modules/app/components/AppLoader.d.ts +8 -2
- package/dist/src/modules/app/components/AppLoader.js +14 -3
- package/dist/src/modules/app/components/AppLoader.js.map +1 -0
- package/dist/src/modules/app/components/AppShell.d.ts +15 -6
- package/dist/src/modules/app/components/AppShell.js +14 -5
- package/dist/src/modules/app/components/AppShell.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebar.d.ts +16 -6
- package/dist/src/modules/app/components/AppSidebar.js +17 -4
- package/dist/src/modules/app/components/AppSidebar.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarContent.d.ts +22 -13
- package/dist/src/modules/app/components/AppSidebarContent.js +34 -5
- package/dist/src/modules/app/components/AppSidebarContent.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarHeader.d.ts +18 -8
- package/dist/src/modules/app/components/AppSidebarHeader.js +37 -6
- package/dist/src/modules/app/components/AppSidebarHeader.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarInvites.d.ts +11 -3
- package/dist/src/modules/app/components/AppSidebarInvites.js +39 -8
- package/dist/src/modules/app/components/AppSidebarInvites.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarUser.d.ts +20 -10
- package/dist/src/modules/app/components/AppSidebarUser.js +121 -12
- package/dist/src/modules/app/components/AppSidebarUser.js.map +1 -0
- package/dist/src/modules/auth/components/AdminUserManagement.d.ts +11 -4
- package/dist/src/modules/auth/components/AdminUserManagement.js +970 -418
- package/dist/src/modules/auth/components/AdminUserManagement.js.map +1 -0
- package/dist/src/modules/auth/components/AdminWaitlist.d.ts +11 -4
- package/dist/src/modules/auth/components/AdminWaitlist.js +284 -115
- package/dist/src/modules/auth/components/AdminWaitlist.js.map +1 -0
- package/dist/src/modules/auth/components/AuthLayout.d.ts +12 -4
- package/dist/src/modules/auth/components/AuthLayout.js +17 -3
- package/dist/src/modules/auth/components/AuthLayout.js.map +1 -0
- package/dist/src/modules/auth/components/AuthProviders.d.ts +17 -6
- package/dist/src/modules/auth/components/AuthProviders.js +80 -41
- package/dist/src/modules/auth/components/AuthProviders.js.map +1 -0
- package/dist/src/modules/auth/components/AuthRouter.d.ts +16 -7
- package/dist/src/modules/auth/components/AuthRouter.js +46 -10
- package/dist/src/modules/auth/components/AuthRouter.js.map +1 -0
- package/dist/src/modules/auth/components/ClaimAccountRoute.d.ts +12 -4
- package/dist/src/modules/auth/components/ClaimAccountRoute.js +202 -139
- package/dist/src/modules/auth/components/ClaimAccountRoute.js.map +1 -0
- package/dist/src/modules/auth/components/ErrorAuthRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/ErrorAuthRoute.js +125 -89
- package/dist/src/modules/auth/components/ErrorAuthRoute.js.map +1 -0
- package/dist/src/modules/auth/components/ForgotPasswordForm.d.ts +7 -1
- package/dist/src/modules/auth/components/ForgotPasswordForm.js +49 -23
- package/dist/src/modules/auth/components/ForgotPasswordForm.js.map +1 -0
- package/dist/src/modules/auth/components/ForgotPasswordRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/ForgotPasswordRoute.js +34 -6
- package/dist/src/modules/auth/components/ForgotPasswordRoute.js.map +1 -0
- package/dist/src/modules/auth/components/InviteFriends.d.ts +12 -4
- package/dist/src/modules/auth/components/InviteFriends.js +275 -69
- package/dist/src/modules/auth/components/InviteFriends.js.map +1 -0
- package/dist/src/modules/auth/components/LastUsedBadge.d.ts +17 -5
- package/dist/src/modules/auth/components/LastUsedBadge.js +16 -6
- package/dist/src/modules/auth/components/LastUsedBadge.js.map +1 -0
- package/dist/src/modules/auth/components/LoginForm.d.ts +11 -3
- package/dist/src/modules/auth/components/LoginForm.js +107 -40
- package/dist/src/modules/auth/components/LoginForm.js.map +1 -0
- package/dist/src/modules/auth/components/LoginRoute.d.ts +11 -3
- package/dist/src/modules/auth/components/LoginRoute.js +41 -8
- package/dist/src/modules/auth/components/LoginRoute.js.map +1 -0
- package/dist/src/modules/auth/components/LogoutRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/LogoutRoute.js +18 -12
- package/dist/src/modules/auth/components/LogoutRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.d.ts +21 -8
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js +107 -97
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationMembersRoute.d.ts +58 -48
- package/dist/src/modules/auth/components/OrganizationMembersRoute.js +448 -349
- package/dist/src/modules/auth/components/OrganizationMembersRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationPreferences.d.ts +27 -16
- package/dist/src/modules/auth/components/OrganizationPreferences.js +129 -124
- package/dist/src/modules/auth/components/OrganizationPreferences.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.d.ts +27 -18
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.js +184 -144
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationSwitcher.d.ts +17 -6
- package/dist/src/modules/auth/components/OrganizationSwitcher.js +91 -69
- package/dist/src/modules/auth/components/OrganizationSwitcher.js.map +1 -0
- package/dist/src/modules/auth/components/PreferencesEditor.d.ts +44 -33
- package/dist/src/modules/auth/components/PreferencesEditor.js +82 -58
- package/dist/src/modules/auth/components/PreferencesEditor.js.map +1 -0
- package/dist/src/modules/auth/components/ProfileRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/ProfileRoute.js +79 -36
- package/dist/src/modules/auth/components/ProfileRoute.js.map +1 -0
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.d.ts +44 -30
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.js +234 -242
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.js.map +1 -0
- package/dist/src/modules/auth/components/ResetPasswordForm.d.ts +7 -1
- package/dist/src/modules/auth/components/ResetPasswordForm.js +97 -35
- package/dist/src/modules/auth/components/ResetPasswordForm.js.map +1 -0
- package/dist/src/modules/auth/components/ResetPasswordRoute.d.ts +7 -1
- package/dist/src/modules/auth/components/ResetPasswordRoute.js +34 -6
- package/dist/src/modules/auth/components/ResetPasswordRoute.js.map +1 -0
- package/dist/src/modules/auth/components/SignupFormRoute.d.ts +15 -5
- package/dist/src/modules/auth/components/SignupFormRoute.js +142 -99
- package/dist/src/modules/auth/components/SignupFormRoute.js.map +1 -0
- package/dist/src/modules/auth/components/SignupRoute.d.ts +13 -5
- package/dist/src/modules/auth/components/SignupRoute.js +59 -13
- package/dist/src/modules/auth/components/SignupRoute.js.map +1 -0
- package/dist/src/modules/auth/components/UserPreferences.d.ts +22 -11
- package/dist/src/modules/auth/components/UserPreferences.js +24 -12
- package/dist/src/modules/auth/components/UserPreferences.js.map +1 -0
- package/dist/src/modules/auth/components/WaitlistCard.d.ts +11 -4
- package/dist/src/modules/auth/components/WaitlistCard.js +63 -28
- package/dist/src/modules/auth/components/WaitlistCard.js.map +1 -0
- package/dist/src/modules/auth/components/WaitlistCodeValidation.d.ts +13 -5
- package/dist/src/modules/auth/components/WaitlistCodeValidation.js +42 -40
- package/dist/src/modules/auth/components/WaitlistCodeValidation.js.map +1 -0
- package/dist/src/modules/billing/components/BillingBetaPage.d.ts +15 -6
- package/dist/src/modules/billing/components/BillingBetaPage.js +155 -8
- package/dist/src/modules/billing/components/BillingBetaPage.js.map +1 -0
- package/dist/src/modules/billing/components/BillingInvoicePage.d.ts +13 -5
- package/dist/src/modules/billing/components/BillingInvoicePage.js +160 -30
- package/dist/src/modules/billing/components/BillingInvoicePage.js.map +1 -0
- package/dist/src/modules/billing/components/BillingPlanSelect.d.ts +11 -4
- package/dist/src/modules/billing/components/BillingPlanSelect.js +10 -7
- package/dist/src/modules/billing/components/BillingPlanSelect.js.map +1 -0
- package/dist/src/modules/billing/components/BillingRouter.d.ts +15 -7
- package/dist/src/modules/billing/components/BillingRouter.js +19 -6
- package/dist/src/modules/billing/components/BillingRouter.js.map +1 -0
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.d.ts +17 -7
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.js +163 -42
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.js.map +1 -0
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.d.ts +18 -8
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.js +81 -38
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.js.map +1 -0
- package/dist/src/modules/table/components/NuqsTable.d.ts +33 -21
- package/dist/src/modules/table/components/NuqsTable.js +295 -221
- package/dist/src/modules/table/components/NuqsTable.js.map +1 -0
- package/dist/src/modules/table/components/TableFiltering.d.ts +33 -21
- package/dist/src/modules/table/components/TableFiltering.js +408 -226
- package/dist/src/modules/table/components/TableFiltering.js.map +1 -0
- package/dist/src/modules/table/components/TableGroupBy.d.ts +18 -8
- package/dist/src/modules/table/components/TableGroupBy.js +56 -16
- package/dist/src/modules/table/components/TableGroupBy.js.map +1 -0
- package/dist/src/modules/table/components/TablePagination.d.ts +17 -7
- package/dist/src/modules/table/components/TablePagination.js +64 -32
- package/dist/src/modules/table/components/TablePagination.js.map +1 -0
- package/dist/src/modules/table/components/table.types.d.ts +15 -10
- package/dist/src/modules/table/components/table.types.js +0 -1
- package/dist/src/modules/table/filterTransformers.d.ts +35 -30
- package/dist/src/modules/table/filterTransformers.js +198 -261
- package/dist/src/modules/table/filterTransformers.js.map +1 -0
- package/dist/src/types.d.ts +8 -3
- package/dist/src/types.js +0 -1
- package/package.json +8 -6
- package/dist/translations/en/web-ui.json +0 -209
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -1,27 +1,128 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button } from "./ui/button.js";
|
|
2
|
+
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "./ui/card.js";
|
|
3
|
+
import { Badge } from "./ui/badge.js";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
5
|
import { Check, MoveRight, PhoneCall } from "lucide-react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
//#region src/components/pricing-cards.tsx
|
|
7
|
+
function PricingCard({ title, description, price, features, highlighted = false, ctaText, ctaIcon: CtaIcon, variant = "outline" }) {
|
|
8
|
+
const Icon = CtaIcon;
|
|
9
|
+
return /* @__PURE__ */ jsxs(Card, {
|
|
10
|
+
className: `w-full rounded-md ${highlighted ? "shadow-2xl" : ""}`,
|
|
11
|
+
children: [/* @__PURE__ */ jsxs(CardHeader, { children: [/* @__PURE__ */ jsx(CardTitle, { children: /* @__PURE__ */ jsx("span", {
|
|
12
|
+
className: "flex flex-row gap-4 items-center font-normal",
|
|
13
|
+
children: title
|
|
14
|
+
}) }), /* @__PURE__ */ jsx(CardDescription, { children: description })] }), /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs("div", {
|
|
15
|
+
className: "flex flex-col gap-8 justify-start",
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ jsxs("p", {
|
|
18
|
+
className: "flex flex-row items-center gap-2 text-xl",
|
|
19
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
20
|
+
className: "text-4xl",
|
|
21
|
+
children: ["$", price]
|
|
22
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
23
|
+
className: "text-sm text-muted-foreground",
|
|
24
|
+
children: " / month"
|
|
25
|
+
})]
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ jsx("div", {
|
|
28
|
+
className: "flex flex-col gap-4 justify-start",
|
|
29
|
+
children: features.map((feature, index) => /* @__PURE__ */ jsxs("div", {
|
|
30
|
+
className: "flex flex-row gap-4",
|
|
31
|
+
children: [/* @__PURE__ */ jsx(Check, { className: "w-4 h-4 mt-2 text-primary" }), /* @__PURE__ */ jsxs("div", {
|
|
32
|
+
className: "flex flex-col",
|
|
33
|
+
children: [/* @__PURE__ */ jsx("p", { children: feature.title }), /* @__PURE__ */ jsx("p", {
|
|
34
|
+
className: "text-muted-foreground text-sm",
|
|
35
|
+
children: feature.description
|
|
36
|
+
})]
|
|
37
|
+
})]
|
|
38
|
+
}, index))
|
|
39
|
+
}),
|
|
40
|
+
/* @__PURE__ */ jsxs(Button, {
|
|
41
|
+
variant,
|
|
42
|
+
className: "gap-4",
|
|
43
|
+
children: [
|
|
44
|
+
ctaText,
|
|
45
|
+
" ",
|
|
46
|
+
/* @__PURE__ */ jsx(Icon, { className: "w-4 h-4" })
|
|
47
|
+
]
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
}) })]
|
|
51
|
+
});
|
|
9
52
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
53
|
+
function PricingCards() {
|
|
54
|
+
const commonDescription = "Our goal is to streamline SMB trade, making it easier and faster than ever for everyone and everywhere.";
|
|
55
|
+
const commonFeatures = [
|
|
56
|
+
{
|
|
57
|
+
title: "Fast and reliable",
|
|
58
|
+
description: "We've made it fast and reliable."
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: "Fast and reliable",
|
|
62
|
+
description: "We've made it fast and reliable."
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
title: "Fast and reliable",
|
|
66
|
+
description: "We've made it fast and reliable."
|
|
67
|
+
}
|
|
68
|
+
];
|
|
69
|
+
return /* @__PURE__ */ jsx("div", {
|
|
70
|
+
className: "w-full py-20 lg:py-40",
|
|
71
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
72
|
+
className: "container mx-auto",
|
|
73
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
74
|
+
className: "flex text-center justify-center items-center gap-4 flex-col",
|
|
75
|
+
children: [
|
|
76
|
+
/* @__PURE__ */ jsx(Badge, { children: "Pricing" }),
|
|
77
|
+
/* @__PURE__ */ jsxs("div", {
|
|
78
|
+
className: "flex gap-2 flex-col",
|
|
79
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
80
|
+
className: "text-3xl md:text-5xl tracking-tighter max-w-xl text-center font-regular",
|
|
81
|
+
children: "Prices that make sense!"
|
|
82
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
83
|
+
className: "text-lg leading-relaxed tracking-tight text-muted-foreground max-w-xl text-center",
|
|
84
|
+
children: "Managing a small business today is already tough."
|
|
85
|
+
})]
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ jsxs("div", {
|
|
88
|
+
className: "grid pt-20 text-left grid-cols-1 lg:grid-cols-3 w-full gap-8",
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ jsx(PricingCard, {
|
|
91
|
+
title: "Startup",
|
|
92
|
+
description: commonDescription,
|
|
93
|
+
price: 40,
|
|
94
|
+
features: commonFeatures,
|
|
95
|
+
ctaText: "Sign up today",
|
|
96
|
+
ctaIcon: MoveRight,
|
|
97
|
+
variant: "outline"
|
|
98
|
+
}),
|
|
99
|
+
/* @__PURE__ */ jsx(PricingCard, {
|
|
100
|
+
title: "Growth",
|
|
101
|
+
description: commonDescription,
|
|
102
|
+
price: 40,
|
|
103
|
+
features: commonFeatures,
|
|
104
|
+
highlighted: true,
|
|
105
|
+
ctaText: "Sign up today",
|
|
106
|
+
ctaIcon: MoveRight,
|
|
107
|
+
variant: "default"
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ jsx(PricingCard, {
|
|
110
|
+
title: "Enterprise",
|
|
111
|
+
description: commonDescription,
|
|
112
|
+
price: 40,
|
|
113
|
+
features: commonFeatures,
|
|
114
|
+
ctaText: "Book a meeting",
|
|
115
|
+
ctaIcon: PhoneCall,
|
|
116
|
+
variant: "outline"
|
|
117
|
+
})
|
|
118
|
+
]
|
|
119
|
+
})
|
|
120
|
+
]
|
|
121
|
+
})
|
|
122
|
+
})
|
|
123
|
+
});
|
|
27
124
|
}
|
|
125
|
+
//#endregion
|
|
126
|
+
export { PricingCards };
|
|
127
|
+
|
|
128
|
+
//# sourceMappingURL=pricing-cards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pricing-cards.js","names":[],"sources":["../../../src/components/pricing-cards.tsx"],"sourcesContent":["import { Check, type LucideIcon, MoveRight, PhoneCall } from \"lucide-react\";\r\nimport { Badge } from \"./ui/badge\";\r\nimport { Button } from \"./ui/button\";\r\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"./ui/card\";\r\n\r\ninterface Feature {\r\n title: string;\r\n description: string;\r\n}\r\n\r\ninterface PricingCardProps {\r\n title: string;\r\n description: string;\r\n price: number;\r\n features: Feature[];\r\n highlighted?: boolean;\r\n ctaText: string;\r\n ctaIcon: LucideIcon;\r\n variant?: \"default\" | \"outline\";\r\n}\r\n\r\nfunction PricingCard({\r\n title,\r\n description,\r\n price,\r\n features,\r\n highlighted = false,\r\n ctaText,\r\n ctaIcon: CtaIcon,\r\n variant = \"outline\",\r\n}: PricingCardProps) {\r\n const Icon = CtaIcon;\r\n return (\r\n <Card className={`w-full rounded-md ${highlighted ? \"shadow-2xl\" : \"\"}`}>\r\n <CardHeader>\r\n <CardTitle>\r\n <span className=\"flex flex-row gap-4 items-center font-normal\">{title}</span>\r\n </CardTitle>\r\n <CardDescription>{description}</CardDescription>\r\n </CardHeader>\r\n <CardContent>\r\n <div className=\"flex flex-col gap-8 justify-start\">\r\n <p className=\"flex flex-row items-center gap-2 text-xl\">\r\n <span className=\"text-4xl\">${price}</span>\r\n <span className=\"text-sm text-muted-foreground\"> / month</span>\r\n </p>\r\n <div className=\"flex flex-col gap-4 justify-start\">\r\n {features.map((feature, index) => (\r\n <div key={index} className=\"flex flex-row gap-4\">\r\n <Check className=\"w-4 h-4 mt-2 text-primary\" />\r\n <div className=\"flex flex-col\">\r\n <p>{feature.title}</p>\r\n <p className=\"text-muted-foreground text-sm\">{feature.description}</p>\r\n </div>\r\n </div>\r\n ))}\r\n </div>\r\n <Button variant={variant} className=\"gap-4\">\r\n {ctaText} <Icon className=\"w-4 h-4\" />\r\n </Button>\r\n </div>\r\n </CardContent>\r\n </Card>\r\n );\r\n}\r\n\r\nexport function PricingCards() {\r\n const commonDescription =\r\n \"Our goal is to streamline SMB trade, making it easier and faster than ever for everyone and everywhere.\";\r\n\r\n const commonFeatures = [\r\n {\r\n title: \"Fast and reliable\",\r\n description: \"We've made it fast and reliable.\",\r\n },\r\n {\r\n title: \"Fast and reliable\",\r\n description: \"We've made it fast and reliable.\",\r\n },\r\n {\r\n title: \"Fast and reliable\",\r\n description: \"We've made it fast and reliable.\",\r\n },\r\n ];\r\n\r\n return (\r\n <div className=\"w-full py-20 lg:py-40\">\r\n <div className=\"container mx-auto\">\r\n <div className=\"flex text-center justify-center items-center gap-4 flex-col\">\r\n <Badge>Pricing</Badge>\r\n <div className=\"flex gap-2 flex-col\">\r\n <h2 className=\"text-3xl md:text-5xl tracking-tighter max-w-xl text-center font-regular\">\r\n Prices that make sense!\r\n </h2>\r\n <p className=\"text-lg leading-relaxed tracking-tight text-muted-foreground max-w-xl text-center\">\r\n Managing a small business today is already tough.\r\n </p>\r\n </div>\r\n <div className=\"grid pt-20 text-left grid-cols-1 lg:grid-cols-3 w-full gap-8\">\r\n <PricingCard\r\n title=\"Startup\"\r\n description={commonDescription}\r\n price={40}\r\n features={commonFeatures}\r\n ctaText=\"Sign up today\"\r\n ctaIcon={MoveRight}\r\n variant=\"outline\"\r\n />\r\n <PricingCard\r\n title=\"Growth\"\r\n description={commonDescription}\r\n price={40}\r\n features={commonFeatures}\r\n highlighted={true}\r\n ctaText=\"Sign up today\"\r\n ctaIcon={MoveRight}\r\n variant=\"default\"\r\n />\r\n <PricingCard\r\n title=\"Enterprise\"\r\n description={commonDescription}\r\n price={40}\r\n features={commonFeatures}\r\n ctaText=\"Book a meeting\"\r\n ctaIcon={PhoneCall}\r\n variant=\"outline\"\r\n />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAqBA,SAAS,YAAY,EACnB,OACA,aACA,OACA,UACA,cAAc,OACd,SACA,SAAS,SACT,UAAU,aACS;CACnB,MAAM,OAAO;AACb,QACE,qBAAC,MAAD;EAAM,WAAW,qBAAqB,cAAc,eAAe;YAAnE,CACE,qBAAC,YAAD,EAAA,UAAA,CACE,oBAAC,WAAD,EAAA,UACE,oBAAC,QAAD;GAAM,WAAU;aAAgD;GAAa,CAAA,EACnE,CAAA,EACZ,oBAAC,iBAAD,EAAA,UAAkB,aAA8B,CAAA,CACrC,EAAA,CAAA,EACb,oBAAC,aAAD,EAAA,UACE,qBAAC,OAAD;GAAK,WAAU;aAAf;IACE,qBAAC,KAAD;KAAG,WAAU;eAAb,CACE,qBAAC,QAAD;MAAM,WAAU;gBAAhB,CAA2B,KAAE,MAAa;SAC1C,oBAAC,QAAD;MAAM,WAAU;gBAAgC;MAAe,CAAA,CAC7D;;IACJ,oBAAC,OAAD;KAAK,WAAU;eACZ,SAAS,KAAK,SAAS,UACtB,qBAAC,OAAD;MAAiB,WAAU;gBAA3B,CACE,oBAAC,OAAD,EAAO,WAAU,6BAA8B,CAAA,EAC/C,qBAAC,OAAD;OAAK,WAAU;iBAAf,CACE,oBAAC,KAAD,EAAA,UAAI,QAAQ,OAAU,CAAA,EACtB,oBAAC,KAAD;QAAG,WAAU;kBAAiC,QAAQ;QAAgB,CAAA,CAClE;SACF;QANI,MAMJ,CACN;KACE,CAAA;IACN,qBAAC,QAAD;KAAiB;KAAS,WAAU;eAApC;MACG;MAAQ;MAAC,oBAAC,MAAD,EAAM,WAAU,WAAY,CAAA;MAC/B;;IACL;MACM,CAAA,CACT;;;AAIX,SAAgB,eAAe;CAC7B,MAAM,oBACJ;CAEF,MAAM,iBAAiB;EACrB;GACE,OAAO;GACP,aAAa;GACd;EACD;GACE,OAAO;GACP,aAAa;GACd;EACD;GACE,OAAO;GACP,aAAa;GACd;EACF;AAED,QACE,oBAAC,OAAD;EAAK,WAAU;YACb,oBAAC,OAAD;GAAK,WAAU;aACb,qBAAC,OAAD;IAAK,WAAU;cAAf;KACE,oBAAC,OAAD,EAAA,UAAO,WAAe,CAAA;KACtB,qBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,oBAAC,MAAD;OAAI,WAAU;iBAA0E;OAEnF,CAAA,EACL,oBAAC,KAAD;OAAG,WAAU;iBAAoF;OAE7F,CAAA,CACA;;KACN,qBAAC,OAAD;MAAK,WAAU;gBAAf;OACE,oBAAC,aAAD;QACE,OAAM;QACN,aAAa;QACb,OAAO;QACP,UAAU;QACV,SAAQ;QACR,SAAS;QACT,SAAQ;QACR,CAAA;OACF,oBAAC,aAAD;QACE,OAAM;QACN,aAAa;QACb,OAAO;QACP,UAAU;QACV,aAAa;QACb,SAAQ;QACR,SAAS;QACT,SAAQ;QACR,CAAA;OACF,oBAAC,aAAD;QACE,OAAM;QACN,aAAa;QACb,OAAO;QACP,UAAU;QACV,SAAQ;QACR,SAAS;QACT,SAAQ;QACR,CAAA;OACE;;KACF;;GACF,CAAA;EACF,CAAA"}
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ButtonProps } from "../ui/button.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/shared/ButtonCopy.d.ts
|
|
5
|
+
declare function ButtonCopy({
|
|
6
|
+
text,
|
|
7
|
+
notificationTimeout,
|
|
8
|
+
iconOnly,
|
|
9
|
+
...props
|
|
10
|
+
}: ButtonProps & {
|
|
11
|
+
text: string;
|
|
12
|
+
notificationTimeout?: number;
|
|
13
|
+
iconOnly?: boolean;
|
|
14
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { ButtonCopy };
|
|
17
|
+
//# sourceMappingURL=ButtonCopy.d.ts.map
|
|
@@ -1,24 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { cn } from "../../lib/utils.js";
|
|
2
|
+
import { Button } from "../ui/button.js";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { CheckCircle, Copy } from "lucide-react";
|
|
4
6
|
import { useTranslation } from "react-i18next";
|
|
5
7
|
import { toast } from "sonner";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
//#region src/components/shared/ButtonCopy.tsx
|
|
9
|
+
function ButtonCopy({ text, notificationTimeout = 1e3, iconOnly = false, ...props }) {
|
|
10
|
+
const { t } = useTranslation();
|
|
11
|
+
const [isCopied, setIsCopied] = useState(false);
|
|
12
|
+
const handleCopy = async (text) => {
|
|
13
|
+
try {
|
|
14
|
+
await window.navigator.clipboard.writeText(text);
|
|
15
|
+
setIsCopied(true);
|
|
16
|
+
toast.success(t("web-ui:common.copySuccess"));
|
|
17
|
+
setTimeout(() => setIsCopied(false), notificationTimeout);
|
|
18
|
+
} catch (error) {
|
|
19
|
+
toast.error(t("web-ui:common.copyError"));
|
|
20
|
+
console.error(error);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
24
|
+
variant: "outline",
|
|
25
|
+
size: "sm",
|
|
26
|
+
onClick: () => handleCopy(text),
|
|
27
|
+
className: cn(isCopied ? "bg-green-200 hover:bg-green-300" : "", iconOnly ? "" : "gap-1"),
|
|
28
|
+
...props,
|
|
29
|
+
children: isCopied ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(CheckCircle, { className: "h-4 w-4" }), !iconOnly && t("web-ui:common.copied")] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Copy, { className: "h-4 w-4" }), !iconOnly && t("web-ui:common.copy")] })
|
|
30
|
+
});
|
|
24
31
|
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { ButtonCopy };
|
|
34
|
+
|
|
35
|
+
//# sourceMappingURL=ButtonCopy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ButtonCopy.js","names":[],"sources":["../../../../src/components/shared/ButtonCopy.tsx"],"sourcesContent":["import { CheckCircle, Copy } from \"lucide-react\";\r\nimport { useState } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { toast } from \"sonner\";\r\nimport { Button, type ButtonProps } from \"../ui/button\";\r\nimport { cn } from \"../../lib/utils\";\r\n\r\nexport function ButtonCopy({\r\n text,\r\n notificationTimeout = 1000,\r\n iconOnly = false,\r\n ...props\r\n}: ButtonProps & { text: string; notificationTimeout?: number; iconOnly?: boolean }) {\r\n const { t } = useTranslation();\r\n const [isCopied, setIsCopied] = useState(false);\r\n\r\n const handleCopy = async (text: string) => {\r\n try {\r\n await window.navigator.clipboard.writeText(text);\r\n setIsCopied(true);\r\n toast.success(t(\"web-ui:common.copySuccess\"));\r\n setTimeout(() => setIsCopied(false), notificationTimeout);\r\n } catch (error) {\r\n toast.error(t(\"web-ui:common.copyError\"));\r\n console.error(error);\r\n }\r\n };\r\n\r\n return (\r\n <Button\r\n variant=\"outline\"\r\n size=\"sm\"\r\n onClick={() => handleCopy(text)}\r\n className={cn(isCopied ? \"bg-green-200 hover:bg-green-300\" : \"\", iconOnly ? \"\" : \"gap-1\")}\r\n {...props}\r\n >\r\n {isCopied ? (\r\n <>\r\n <CheckCircle className=\"h-4 w-4\" />\r\n {!iconOnly && t(\"web-ui:common.copied\")}\r\n </>\r\n ) : (\r\n <>\r\n <Copy className=\"h-4 w-4\" />\r\n {!iconOnly && t(\"web-ui:common.copy\")}\r\n </>\r\n )}\r\n </Button>\r\n );\r\n}\r\n"],"mappings":";;;;;;;;AAOA,SAAgB,WAAW,EACzB,MACA,sBAAsB,KACtB,WAAW,OACX,GAAG,SACgF;CACnF,MAAM,EAAE,MAAM,gBAAgB;CAC9B,MAAM,CAAC,UAAU,eAAe,SAAS,MAAM;CAE/C,MAAM,aAAa,OAAO,SAAiB;AACzC,MAAI;AACF,SAAM,OAAO,UAAU,UAAU,UAAU,KAAK;AAChD,eAAY,KAAK;AACjB,SAAM,QAAQ,EAAE,4BAA4B,CAAC;AAC7C,oBAAiB,YAAY,MAAM,EAAE,oBAAoB;WAClD,OAAO;AACd,SAAM,MAAM,EAAE,0BAA0B,CAAC;AACzC,WAAQ,MAAM,MAAM;;;AAIxB,QACE,oBAAC,QAAD;EACE,SAAQ;EACR,MAAK;EACL,eAAe,WAAW,KAAK;EAC/B,WAAW,GAAG,WAAW,oCAAoC,IAAI,WAAW,KAAK,QAAQ;EACzF,GAAI;YAEH,WACC,qBAAA,YAAA,EAAA,UAAA,CACE,oBAAC,aAAD,EAAa,WAAU,WAAY,CAAA,EAClC,CAAC,YAAY,EAAE,uBAAuB,CACtC,EAAA,CAAA,GAEH,qBAAA,YAAA,EAAA,UAAA,CACE,oBAAC,MAAD,EAAM,WAAU,WAAY,CAAA,EAC3B,CAAC,YAAY,EAAE,qBAAqB,CACpC,EAAA,CAAA;EAEE,CAAA"}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/team-switcher.d.ts
|
|
5
|
+
declare function TeamSwitcher({
|
|
6
|
+
teams
|
|
7
|
+
}: {
|
|
8
|
+
teams: {
|
|
9
|
+
name: string;
|
|
10
|
+
logo: React$1.ElementType;
|
|
11
|
+
plan: string;
|
|
12
|
+
}[];
|
|
13
|
+
}): _$react_jsx_runtime0.JSX.Element;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { TeamSwitcher };
|
|
16
|
+
//# sourceMappingURL=team-switcher.d.ts.map
|
|
@@ -1,10 +1,72 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SidebarMenu, SidebarMenuButton, SidebarMenuItem, useSidebar } from "./ui/sidebar.js";
|
|
2
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger } from "./ui/dropdown-menu.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
5
|
import { ChevronsUpDown, Plus } from "lucide-react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
//#region src/components/team-switcher.tsx
|
|
7
|
+
function TeamSwitcher({ teams }) {
|
|
8
|
+
const { isMobile } = useSidebar();
|
|
9
|
+
const [activeTeam, setActiveTeam] = React$1.useState(teams[0]);
|
|
10
|
+
return /* @__PURE__ */ jsx(SidebarMenu, { children: /* @__PURE__ */ jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, {
|
|
11
|
+
asChild: true,
|
|
12
|
+
children: /* @__PURE__ */ jsxs(SidebarMenuButton, {
|
|
13
|
+
size: "lg",
|
|
14
|
+
className: "data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground",
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsx("div", {
|
|
17
|
+
className: "flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground",
|
|
18
|
+
children: /* @__PURE__ */ jsx(activeTeam.logo, { className: "size-4" })
|
|
19
|
+
}),
|
|
20
|
+
/* @__PURE__ */ jsxs("div", {
|
|
21
|
+
className: "grid flex-1 text-left text-sm leading-tight",
|
|
22
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
23
|
+
className: "truncate font-semibold",
|
|
24
|
+
children: activeTeam.name
|
|
25
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
26
|
+
className: "truncate text-xs",
|
|
27
|
+
children: activeTeam.plan
|
|
28
|
+
})]
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-auto" })
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
}), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
34
|
+
className: "w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg",
|
|
35
|
+
align: "start",
|
|
36
|
+
side: isMobile ? "bottom" : "right",
|
|
37
|
+
sideOffset: 4,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, {
|
|
40
|
+
className: "text-xs text-muted-foreground",
|
|
41
|
+
children: "Teams"
|
|
42
|
+
}),
|
|
43
|
+
teams.map((team, index) => /* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
44
|
+
onClick: () => setActiveTeam(team),
|
|
45
|
+
className: "gap-2 p-2",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx("div", {
|
|
48
|
+
className: "flex size-6 items-center justify-center rounded-sm border",
|
|
49
|
+
children: /* @__PURE__ */ jsx(team.logo, { className: "size-4 shrink-0" })
|
|
50
|
+
}),
|
|
51
|
+
team.name,
|
|
52
|
+
/* @__PURE__ */ jsxs(DropdownMenuShortcut, { children: ["⌘", index + 1] })
|
|
53
|
+
]
|
|
54
|
+
}, team.name)),
|
|
55
|
+
/* @__PURE__ */ jsx(DropdownMenuSeparator, {}),
|
|
56
|
+
/* @__PURE__ */ jsxs(DropdownMenuItem, {
|
|
57
|
+
className: "gap-2 p-2",
|
|
58
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
59
|
+
className: "flex size-6 items-center justify-center rounded-md border bg-background",
|
|
60
|
+
children: /* @__PURE__ */ jsx(Plus, { className: "size-4" })
|
|
61
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
62
|
+
className: "font-medium text-muted-foreground",
|
|
63
|
+
children: "Add team"
|
|
64
|
+
})]
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
})] }) }) });
|
|
10
68
|
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { TeamSwitcher };
|
|
71
|
+
|
|
72
|
+
//# sourceMappingURL=team-switcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"team-switcher.js","names":["React"],"sources":["../../../src/components/team-switcher.tsx"],"sourcesContent":["import { ChevronsUpDown, Plus } from \"lucide-react\";\r\nimport * as React from \"react\";\r\n\r\nimport {\r\n DropdownMenu,\r\n DropdownMenuContent,\r\n DropdownMenuItem,\r\n DropdownMenuLabel,\r\n DropdownMenuSeparator,\r\n DropdownMenuShortcut,\r\n DropdownMenuTrigger,\r\n} from \"./ui/dropdown-menu\";\r\nimport {\r\n SidebarMenu,\r\n SidebarMenuButton,\r\n SidebarMenuItem,\r\n useSidebar,\r\n} from \"./ui/sidebar\";\r\n\r\nexport function TeamSwitcher({\r\n teams,\r\n}: {\r\n teams: {\r\n name: string;\r\n logo: React.ElementType;\r\n plan: string;\r\n }[];\r\n}) {\r\n const { isMobile } = useSidebar();\r\n const [activeTeam, setActiveTeam] = React.useState(teams[0]);\r\n\r\n return (\r\n <SidebarMenu>\r\n <SidebarMenuItem>\r\n <DropdownMenu>\r\n <DropdownMenuTrigger asChild>\r\n <SidebarMenuButton\r\n size=\"lg\"\r\n className=\"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground\"\r\n >\r\n <div className=\"flex aspect-square size-8 items-center justify-center rounded-lg bg-sidebar-primary text-sidebar-primary-foreground\">\r\n <activeTeam.logo className=\"size-4\" />\r\n </div>\r\n <div className=\"grid flex-1 text-left text-sm leading-tight\">\r\n <span className=\"truncate font-semibold\">{activeTeam.name}</span>\r\n <span className=\"truncate text-xs\">{activeTeam.plan}</span>\r\n </div>\r\n <ChevronsUpDown className=\"ml-auto\" />\r\n </SidebarMenuButton>\r\n </DropdownMenuTrigger>\r\n <DropdownMenuContent\r\n className=\"w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg\"\r\n align=\"start\"\r\n side={isMobile ? \"bottom\" : \"right\"}\r\n sideOffset={4}\r\n >\r\n <DropdownMenuLabel className=\"text-xs text-muted-foreground\">Teams</DropdownMenuLabel>\r\n {teams.map((team, index) => (\r\n <DropdownMenuItem\r\n key={team.name}\r\n onClick={() => setActiveTeam(team)}\r\n className=\"gap-2 p-2\"\r\n >\r\n <div className=\"flex size-6 items-center justify-center rounded-sm border\">\r\n <team.logo className=\"size-4 shrink-0\" />\r\n </div>\r\n {team.name}\r\n <DropdownMenuShortcut>⌘{index + 1}</DropdownMenuShortcut>\r\n </DropdownMenuItem>\r\n ))}\r\n <DropdownMenuSeparator />\r\n <DropdownMenuItem className=\"gap-2 p-2\">\r\n <div className=\"flex size-6 items-center justify-center rounded-md border bg-background\">\r\n <Plus className=\"size-4\" />\r\n </div>\r\n <div className=\"font-medium text-muted-foreground\">Add team</div>\r\n </DropdownMenuItem>\r\n </DropdownMenuContent>\r\n </DropdownMenu>\r\n </SidebarMenuItem>\r\n </SidebarMenu>\r\n );\r\n}\r\n"],"mappings":";;;;;;AAmBA,SAAgB,aAAa,EAC3B,SAOC;CACD,MAAM,EAAE,aAAa,YAAY;CACjC,MAAM,CAAC,YAAY,iBAAiBA,QAAM,SAAS,MAAM,GAAG;AAE5D,QACE,oBAAC,aAAD,EAAA,UACE,oBAAC,iBAAD,EAAA,UACE,qBAAC,cAAD,EAAA,UAAA,CACE,oBAAC,qBAAD;EAAqB,SAAA;YACnB,qBAAC,mBAAD;GACE,MAAK;GACL,WAAU;aAFZ;IAIE,oBAAC,OAAD;KAAK,WAAU;eACb,oBAAC,WAAW,MAAZ,EAAiB,WAAU,UAAW,CAAA;KAClC,CAAA;IACN,qBAAC,OAAD;KAAK,WAAU;eAAf,CACE,oBAAC,QAAD;MAAM,WAAU;gBAA0B,WAAW;MAAY,CAAA,EACjE,oBAAC,QAAD;MAAM,WAAU;gBAAoB,WAAW;MAAY,CAAA,CACvD;;IACN,oBAAC,gBAAD,EAAgB,WAAU,WAAY,CAAA;IACpB;;EACA,CAAA,EACtB,qBAAC,qBAAD;EACE,WAAU;EACV,OAAM;EACN,MAAM,WAAW,WAAW;EAC5B,YAAY;YAJd;GAME,oBAAC,mBAAD;IAAmB,WAAU;cAAgC;IAAyB,CAAA;GACrF,MAAM,KAAK,MAAM,UAChB,qBAAC,kBAAD;IAEE,eAAe,cAAc,KAAK;IAClC,WAAU;cAHZ;KAKE,oBAAC,OAAD;MAAK,WAAU;gBACb,oBAAC,KAAK,MAAN,EAAW,WAAU,mBAAoB,CAAA;MACrC,CAAA;KACL,KAAK;KACN,qBAAC,sBAAD,EAAA,UAAA,CAAsB,KAAE,QAAQ,EAAyB,EAAA,CAAA;KACxC;MATZ,KAAK,KASO,CACnB;GACF,oBAAC,uBAAD,EAAyB,CAAA;GACzB,qBAAC,kBAAD;IAAkB,WAAU;cAA5B,CACE,oBAAC,OAAD;KAAK,WAAU;eACb,oBAAC,MAAD,EAAM,WAAU,UAAW,CAAA;KACvB,CAAA,EACN,oBAAC,OAAD;KAAK,WAAU;eAAoC;KAAc,CAAA,CAChD;;GACC;IACT,EAAA,CAAA,EACC,CAAA,EACN,CAAA"}
|
|
@@ -1,13 +1,23 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/theme-provider.d.ts
|
|
1
4
|
type Theme = "dark" | "light" | "system";
|
|
2
5
|
type ThemeProviderProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
defaultTheme?: Theme;
|
|
8
|
+
storageKey?: string;
|
|
6
9
|
};
|
|
7
10
|
type ThemeProviderState = {
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
theme: Theme;
|
|
12
|
+
setTheme: (theme: Theme) => void;
|
|
10
13
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
declare function ThemeProvider({
|
|
15
|
+
children,
|
|
16
|
+
defaultTheme,
|
|
17
|
+
storageKey,
|
|
18
|
+
...props
|
|
19
|
+
}: ThemeProviderProps): _$react_jsx_runtime0.JSX.Element;
|
|
20
|
+
declare const useTheme: () => ThemeProviderState;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ThemeProvider, useTheme };
|
|
23
|
+
//# sourceMappingURL=theme-provider.d.ts.map
|
|
@@ -1,41 +1,45 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
1
|
import { createContext, useContext, useEffect, useState } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/theme-provider.tsx
|
|
4
|
+
const ThemeProviderContext = createContext({
|
|
5
|
+
theme: "dark",
|
|
6
|
+
setTheme: () => null
|
|
7
|
+
});
|
|
8
|
+
function ThemeProvider({ children, defaultTheme = "system", storageKey = "vite-ui-theme", ...props }) {
|
|
9
|
+
const [theme, setTheme] = useState(defaultTheme);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
const savedTheme = localStorage.getItem(storageKey);
|
|
12
|
+
if (savedTheme) setTheme(savedTheme);
|
|
13
|
+
}, []);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
const root = window.document.documentElement;
|
|
16
|
+
root.classList.remove("light", "dark");
|
|
17
|
+
if (theme === "system") {
|
|
18
|
+
const systemTheme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
|
|
19
|
+
root.classList.add(systemTheme);
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
root.classList.add(theme);
|
|
23
|
+
}, [theme]);
|
|
24
|
+
const value = {
|
|
25
|
+
theme,
|
|
26
|
+
setTheme: (theme) => {
|
|
27
|
+
localStorage.setItem(storageKey, theme);
|
|
28
|
+
setTheme(theme);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
return /* @__PURE__ */ jsx(ThemeProviderContext.Provider, {
|
|
32
|
+
...props,
|
|
33
|
+
value,
|
|
34
|
+
children
|
|
35
|
+
});
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return context;
|
|
37
|
+
const useTheme = () => {
|
|
38
|
+
const context = useContext(ThemeProviderContext);
|
|
39
|
+
if (context === void 0) throw new Error("useTheme must be used within a ThemeProvider");
|
|
40
|
+
return context;
|
|
41
41
|
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ThemeProvider, useTheme };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=theme-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.js","names":[],"sources":["../../../src/components/theme-provider.tsx"],"sourcesContent":["import { createContext, useContext, useEffect, useState } from \"react\";\r\n\r\ntype Theme = \"dark\" | \"light\" | \"system\";\r\n\r\ntype ThemeProviderProps = {\r\n children: React.ReactNode;\r\n defaultTheme?: Theme;\r\n storageKey?: string;\r\n};\r\n\r\ntype ThemeProviderState = {\r\n theme: Theme;\r\n setTheme: (theme: Theme) => void;\r\n};\r\n\r\nconst initialState: ThemeProviderState = {\r\n theme: \"dark\",\r\n setTheme: () => null,\r\n};\r\n\r\nconst ThemeProviderContext = createContext<ThemeProviderState>(initialState);\r\n\r\nexport function ThemeProvider({\r\n children,\r\n defaultTheme = \"system\",\r\n storageKey = \"vite-ui-theme\",\r\n ...props\r\n}: ThemeProviderProps) {\r\n const [theme, setTheme] = useState<Theme>(defaultTheme);\r\n\r\n useEffect(() => {\r\n const savedTheme = localStorage.getItem(storageKey);\r\n if (savedTheme) setTheme(savedTheme as Theme);\r\n }, []);\r\n\r\n useEffect(() => {\r\n const root = window.document.documentElement;\r\n\r\n root.classList.remove(\"light\", \"dark\");\r\n\r\n if (theme === \"system\") {\r\n const systemTheme = window.matchMedia(\"(prefers-color-scheme: dark)\").matches\r\n ? \"dark\"\r\n : \"light\";\r\n\r\n root.classList.add(systemTheme);\r\n return;\r\n }\r\n\r\n root.classList.add(theme);\r\n }, [theme]);\r\n\r\n const value = {\r\n theme,\r\n setTheme: (theme: Theme) => {\r\n localStorage.setItem(storageKey, theme);\r\n setTheme(theme);\r\n },\r\n };\r\n\r\n return (\r\n <ThemeProviderContext.Provider {...props} value={value}>\r\n {children}\r\n </ThemeProviderContext.Provider>\r\n );\r\n}\r\n\r\nexport const useTheme = () => {\r\n const context = useContext(ThemeProviderContext);\r\n\r\n if (context === undefined) throw new Error(\"useTheme must be used within a ThemeProvider\");\r\n\r\n return context;\r\n};\r\n"],"mappings":";;;AAoBA,MAAM,uBAAuB,cALY;CACvC,OAAO;CACP,gBAAgB;CACjB,CAE2E;AAE5E,SAAgB,cAAc,EAC5B,UACA,eAAe,UACf,aAAa,iBACb,GAAG,SACkB;CACrB,MAAM,CAAC,OAAO,YAAY,SAAgB,aAAa;AAEvD,iBAAgB;EACd,MAAM,aAAa,aAAa,QAAQ,WAAW;AACnD,MAAI,WAAY,UAAS,WAAoB;IAC5C,EAAE,CAAC;AAEN,iBAAgB;EACd,MAAM,OAAO,OAAO,SAAS;AAE7B,OAAK,UAAU,OAAO,SAAS,OAAO;AAEtC,MAAI,UAAU,UAAU;GACtB,MAAM,cAAc,OAAO,WAAW,+BAA+B,CAAC,UAClE,SACA;AAEJ,QAAK,UAAU,IAAI,YAAY;AAC/B;;AAGF,OAAK,UAAU,IAAI,MAAM;IACxB,CAAC,MAAM,CAAC;CAEX,MAAM,QAAQ;EACZ;EACA,WAAW,UAAiB;AAC1B,gBAAa,QAAQ,YAAY,MAAM;AACvC,YAAS,MAAM;;EAElB;AAED,QACE,oBAAC,qBAAqB,UAAtB;EAA+B,GAAI;EAAc;EAC9C;EAC6B,CAAA;;AAIpC,MAAa,iBAAiB;CAC5B,MAAM,UAAU,WAAW,qBAAqB;AAEhD,KAAI,YAAY,KAAA,EAAW,OAAM,IAAI,MAAM,+CAA+C;AAE1F,QAAO"}
|
|
@@ -1,18 +1,39 @@
|
|
|
1
|
-
import { TypewriterEffect } from "./ui/typewriter-effect";
|
|
1
|
+
import { TypewriterEffect } from "./ui/typewriter-effect.js";
|
|
2
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
|
|
4
|
+
//#region src/components/typewriter.d.ts
|
|
2
5
|
interface TypewriterProps extends Omit<React.ComponentProps<typeof TypewriterEffect>, "words"> {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
words: string[];
|
|
7
|
+
wordClass?: string;
|
|
8
|
+
highlightClass?: string;
|
|
9
|
+
highlightIndex?: number;
|
|
7
10
|
}
|
|
8
|
-
|
|
11
|
+
declare function Typewriter({
|
|
12
|
+
words,
|
|
13
|
+
wordClass,
|
|
14
|
+
highlightClass,
|
|
15
|
+
cursorClassName,
|
|
16
|
+
highlightIndex,
|
|
17
|
+
...props
|
|
18
|
+
}: TypewriterProps): _$react_jsx_runtime0.JSX.Element;
|
|
9
19
|
interface CyclingTypewriterProps extends Omit<React.ComponentProps<typeof TypewriterEffect>, "words"> {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
20
|
+
wordSets: string[][];
|
|
21
|
+
wordClass?: string;
|
|
22
|
+
highlightClass?: string;
|
|
23
|
+
highlightIndex?: number;
|
|
24
|
+
displayDuration?: number;
|
|
25
|
+
cycleDelay?: number;
|
|
16
26
|
}
|
|
17
|
-
|
|
18
|
-
|
|
27
|
+
declare function CyclingTypewriter({
|
|
28
|
+
wordSets,
|
|
29
|
+
wordClass,
|
|
30
|
+
highlightClass,
|
|
31
|
+
cursorClassName,
|
|
32
|
+
highlightIndex,
|
|
33
|
+
displayDuration,
|
|
34
|
+
cycleDelay,
|
|
35
|
+
...props
|
|
36
|
+
}: CyclingTypewriterProps): _$react_jsx_runtime0.JSX.Element | null;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { CyclingTypewriter, Typewriter };
|
|
39
|
+
//# sourceMappingURL=typewriter.d.ts.map
|