@myrjfa/ui 2.1.9 → 2.2.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/chat/ChatMain.d.ts +1 -1
- package/dist/chat/ChatMain.d.ts.map +1 -1
- package/dist/chat/ChatMain.js +3 -3
- package/dist/chat/ChatSidebar.d.ts +1 -1
- package/dist/chat/ChatSidebar.d.ts.map +1 -1
- package/dist/chat/ConversationList.d.ts +1 -1
- package/dist/chat/ConversationList.d.ts.map +1 -1
- package/dist/chat/ConversationList.js +1 -1
- package/dist/chat/ExpensePanel.js +1 -1
- package/dist/chat/MessageBubble.d.ts +1 -1
- package/dist/chat/MessageBubble.d.ts.map +1 -1
- package/dist/chat/MessageInput.js +1 -1
- package/dist/chat/MilestonePanel.js +1 -1
- package/dist/chat/components/SplitInputs.d.ts +1 -1
- package/dist/chat/components/SplitInputs.d.ts.map +1 -1
- package/dist/chat/components/SplitTypeSelector.d.ts +1 -1
- package/dist/chat/components/SplitTypeSelector.d.ts.map +1 -1
- package/dist/chat/dialogs/AddMemberDialog.d.ts +1 -1
- package/dist/chat/dialogs/AddMemberDialog.d.ts.map +1 -1
- package/dist/chat/dialogs/AddMemberDialog.js +1 -1
- package/dist/chat/dialogs/ExpenseAnalyticsDialog.js +1 -1
- package/dist/chat/dialogs/GroupInfoDialog.d.ts +1 -1
- package/dist/chat/dialogs/GroupInfoDialog.d.ts.map +1 -1
- package/dist/chat/dialogs/GroupInfoDialog.js +1 -1
- package/dist/chat/dialogs/GroupInfoViewDialog.d.ts +1 -1
- package/dist/chat/dialogs/GroupInfoViewDialog.d.ts.map +1 -1
- package/dist/chat/dialogs/NewChatDialog.js +2 -2
- package/dist/chat/dialogs/NewGroupDialog.js +2 -2
- package/dist/chat/dialogs/ParticipantsDialog.d.ts +1 -1
- package/dist/chat/dialogs/ParticipantsDialog.d.ts.map +1 -1
- package/dist/chat/dialogs/ParticipantsDialog.js +1 -1
- package/dist/components/CityAutocomplete.d.ts +5 -0
- package/dist/components/CityAutocomplete.d.ts.map +1 -0
- package/dist/components/CityAutocomplete.js +112 -0
- package/dist/components/CreateListingDropdown.d.ts +5 -0
- package/dist/components/CreateListingDropdown.d.ts.map +1 -0
- package/dist/components/CreateListingDropdown.js +21 -0
- package/dist/components/DestinationAutocomplete.d.ts +11 -0
- package/dist/components/DestinationAutocomplete.d.ts.map +1 -0
- package/dist/components/DestinationAutocomplete.js +24 -0
- package/dist/components/StateAutocomplete.d.ts +10 -0
- package/dist/components/StateAutocomplete.d.ts.map +1 -0
- package/dist/components/StateAutocomplete.js +34 -0
- package/dist/components/admin/AdminBookingRegistrationsList.d.ts +5 -0
- package/dist/components/admin/AdminBookingRegistrationsList.d.ts.map +1 -0
- package/dist/components/admin/AdminBookingRegistrationsList.js +69 -0
- package/dist/components/admin/AdminListingActionsWrapper.d.ts +9 -0
- package/dist/components/admin/AdminListingActionsWrapper.d.ts.map +1 -0
- package/dist/components/admin/AdminListingActionsWrapper.js +200 -0
- package/dist/components/ads/ActivateAdPlacementButton.d.ts +6 -0
- package/dist/components/ads/ActivateAdPlacementButton.d.ts.map +1 -0
- package/dist/components/ads/ActivateAdPlacementButton.js +27 -0
- package/dist/components/ads/AdOfferCard.d.ts +6 -0
- package/dist/components/ads/AdOfferCard.d.ts.map +1 -0
- package/dist/components/ads/AdOfferCard.js +15 -0
- package/dist/components/adventure/AdventureAvailabilityPlanner.d.ts +17 -0
- package/dist/components/adventure/AdventureAvailabilityPlanner.d.ts.map +1 -0
- package/dist/components/adventure/AdventureAvailabilityPlanner.js +106 -0
- package/dist/components/adventure/AdventureQueryCard.d.ts +5 -0
- package/dist/components/adventure/AdventureQueryCard.d.ts.map +1 -0
- package/dist/components/adventure/AdventureQueryCard.js +65 -0
- package/dist/components/adventure/AdventureSlotBuilder.d.ts +41 -0
- package/dist/components/adventure/AdventureSlotBuilder.d.ts.map +1 -0
- package/dist/components/adventure/AdventureSlotBuilder.js +146 -0
- package/dist/components/booking/booking-form.d.ts +39 -0
- package/dist/components/booking/booking-form.d.ts.map +1 -0
- package/dist/components/booking/booking-form.js +824 -0
- package/dist/components/brand/BrandPageView.d.ts +8 -0
- package/dist/components/brand/BrandPageView.d.ts.map +1 -0
- package/dist/components/brand/BrandPageView.js +97 -0
- package/dist/components/companion/AnonymousChat.d.ts +22 -0
- package/dist/components/companion/AnonymousChat.d.ts.map +1 -0
- package/dist/components/companion/AnonymousChat.js +24 -0
- package/dist/components/companion/SwipeCard.d.ts +25 -0
- package/dist/components/companion/SwipeCard.d.ts.map +1 -0
- package/dist/components/companion/SwipeCard.js +58 -0
- package/dist/components/create-flow/ConfirmDiscardDialog.d.ts +11 -0
- package/dist/components/create-flow/ConfirmDiscardDialog.d.ts.map +1 -0
- package/dist/components/create-flow/ConfirmDiscardDialog.js +14 -0
- package/dist/components/create-flow/EntityEditLoadingState.d.ts +2 -0
- package/dist/components/create-flow/EntityEditLoadingState.d.ts.map +1 -0
- package/dist/components/create-flow/EntityEditLoadingState.js +6 -0
- package/dist/components/create-flow/EntityFormCompletionState.d.ts +12 -0
- package/dist/components/create-flow/EntityFormCompletionState.d.ts.map +1 -0
- package/dist/components/create-flow/EntityFormCompletionState.js +10 -0
- package/dist/components/create-flow/EntityFormHeader.d.ts +9 -0
- package/dist/components/create-flow/EntityFormHeader.d.ts.map +1 -0
- package/dist/components/create-flow/EntityFormHeader.js +7 -0
- package/dist/components/create-flow/EntityFormPageFrame.d.ts +10 -0
- package/dist/components/create-flow/EntityFormPageFrame.d.ts.map +1 -0
- package/dist/components/create-flow/EntityFormPageFrame.js +10 -0
- package/dist/components/create-flow/ImageUploadStep.d.ts +15 -0
- package/dist/components/create-flow/ImageUploadStep.d.ts.map +1 -0
- package/dist/components/create-flow/ImageUploadStep.js +11 -0
- package/dist/components/create-flow/ImageUploader.d.ts +30 -0
- package/dist/components/create-flow/ImageUploader.d.ts.map +1 -0
- package/dist/components/create-flow/ImageUploader.js +193 -0
- package/dist/components/create-flow/MultiStepWizard.d.ts +25 -0
- package/dist/components/create-flow/MultiStepWizard.d.ts.map +1 -0
- package/dist/components/create-flow/MultiStepWizard.js +31 -0
- package/dist/components/create-flow/ReviewConfirmationCard.d.ts +8 -0
- package/dist/components/create-flow/ReviewConfirmationCard.d.ts.map +1 -0
- package/dist/components/create-flow/ReviewConfirmationCard.js +5 -0
- package/dist/components/create-flow/ReviewMetricGrid.d.ts +15 -0
- package/dist/components/create-flow/ReviewMetricGrid.d.ts.map +1 -0
- package/dist/components/create-flow/ReviewMetricGrid.js +8 -0
- package/dist/components/create-flow/TemplateSelectionDialog.d.ts +17 -0
- package/dist/components/create-flow/TemplateSelectionDialog.d.ts.map +1 -0
- package/dist/components/create-flow/TemplateSelectionDialog.js +7 -0
- package/dist/components/enquiry/EnquiryFormParts.d.ts +40 -0
- package/dist/components/enquiry/EnquiryFormParts.d.ts.map +1 -0
- package/dist/components/enquiry/EnquiryFormParts.js +29 -0
- package/dist/components/form-sections/FaqSection.d.ts +24 -0
- package/dist/components/form-sections/FaqSection.d.ts.map +1 -0
- package/dist/components/form-sections/FaqSection.js +17 -0
- package/dist/components/form-sections/ImageUploadSection.d.ts +12 -0
- package/dist/components/form-sections/ImageUploadSection.d.ts.map +1 -0
- package/dist/components/form-sections/ImageUploadSection.js +8 -0
- package/dist/components/form-sections/OpportunityBasicsSection.d.ts +8 -0
- package/dist/components/form-sections/OpportunityBasicsSection.d.ts.map +1 -0
- package/dist/components/form-sections/OpportunityBasicsSection.js +26 -0
- package/dist/components/form-sections/OpportunityDetailsSection.d.ts +18 -0
- package/dist/components/form-sections/OpportunityDetailsSection.d.ts.map +1 -0
- package/dist/components/form-sections/OpportunityDetailsSection.js +10 -0
- package/dist/components/form-sections/OpportunityTypeSection.d.ts +7 -0
- package/dist/components/form-sections/OpportunityTypeSection.d.ts.map +1 -0
- package/dist/components/form-sections/OpportunityTypeSection.js +15 -0
- package/dist/components/form-sections/PackageDetailsSection.d.ts +22 -0
- package/dist/components/form-sections/PackageDetailsSection.d.ts.map +1 -0
- package/dist/components/form-sections/PackageDetailsSection.js +20 -0
- package/dist/components/form-sections/PackageItinerarySection.d.ts +21 -0
- package/dist/components/form-sections/PackageItinerarySection.d.ts.map +1 -0
- package/dist/components/form-sections/PackageItinerarySection.js +112 -0
- package/dist/components/form-sections/PackagePricingSection.d.ts +8 -0
- package/dist/components/form-sections/PackagePricingSection.d.ts.map +1 -0
- package/dist/components/form-sections/PackagePricingSection.js +11 -0
- package/dist/components/form-sections/PackageReviewSection.d.ts +12 -0
- package/dist/components/form-sections/PackageReviewSection.d.ts.map +1 -0
- package/dist/components/form-sections/PackageReviewSection.js +26 -0
- package/dist/components/form-sections/RentalBasicsSection.d.ts +12 -0
- package/dist/components/form-sections/RentalBasicsSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalBasicsSection.js +91 -0
- package/dist/components/form-sections/RentalCapacitySection.d.ts +9 -0
- package/dist/components/form-sections/RentalCapacitySection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalCapacitySection.js +23 -0
- package/dist/components/form-sections/RentalLocationSection.d.ts +10 -0
- package/dist/components/form-sections/RentalLocationSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalLocationSection.js +41 -0
- package/dist/components/form-sections/RentalPhotosSection.d.ts +8 -0
- package/dist/components/form-sections/RentalPhotosSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalPhotosSection.js +7 -0
- package/dist/components/form-sections/RentalReviewSection.d.ts +10 -0
- package/dist/components/form-sections/RentalReviewSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalReviewSection.js +27 -0
- package/dist/components/form-sections/RentalRulesSection.d.ts +7 -0
- package/dist/components/form-sections/RentalRulesSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalRulesSection.js +10 -0
- package/dist/components/form-sections/RentalSpecsSection.d.ts +7 -0
- package/dist/components/form-sections/RentalSpecsSection.d.ts.map +1 -0
- package/dist/components/form-sections/RentalSpecsSection.js +10 -0
- package/dist/components/host-dashboard/HostCalendar.d.ts +8 -0
- package/dist/components/host-dashboard/HostCalendar.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostCalendar.js +43 -0
- package/dist/components/host-dashboard/HostCalendarGrid.d.ts +34 -0
- package/dist/components/host-dashboard/HostCalendarGrid.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostCalendarGrid.js +30 -0
- package/dist/components/host-dashboard/HostListingMultiSelect.d.ts +12 -0
- package/dist/components/host-dashboard/HostListingMultiSelect.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostListingMultiSelect.js +24 -0
- package/dist/components/host-dashboard/HostManageCalendarShell.d.ts +17 -0
- package/dist/components/host-dashboard/HostManageCalendarShell.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostManageCalendarShell.js +5 -0
- package/dist/components/host-dashboard/HostSidebarNavigation.d.ts +2 -0
- package/dist/components/host-dashboard/HostSidebarNavigation.d.ts.map +1 -0
- package/dist/components/host-dashboard/HostSidebarNavigation.js +262 -0
- package/dist/components/host-dashboard/ManageFeatureSwitcher.d.ts +15 -0
- package/dist/components/host-dashboard/ManageFeatureSwitcher.d.ts.map +1 -0
- package/dist/components/host-dashboard/ManageFeatureSwitcher.js +43 -0
- package/dist/components/host-dashboard/PageHeader.d.ts +14 -0
- package/dist/components/host-dashboard/PageHeader.d.ts.map +1 -0
- package/dist/components/host-dashboard/PageHeader.js +8 -0
- package/dist/components/host-dashboard/PlaceholderPage.d.ts +4 -0
- package/dist/components/host-dashboard/PlaceholderPage.d.ts.map +1 -0
- package/dist/components/host-dashboard/PlaceholderPage.js +9 -0
- package/dist/components/host-dashboard/StatCard.d.ts +15 -0
- package/dist/components/host-dashboard/StatCard.d.ts.map +1 -0
- package/dist/components/host-dashboard/StatCard.js +38 -0
- package/dist/components/layout/AppProviders.d.ts +5 -0
- package/dist/components/layout/AppProviders.d.ts.map +1 -0
- package/dist/components/layout/AppProviders.js +11 -0
- package/dist/components/layout/PublicRouteLayout.d.ts +5 -0
- package/dist/components/layout/PublicRouteLayout.d.ts.map +1 -0
- package/dist/components/layout/PublicRouteLayout.js +5 -0
- package/dist/components/layout/PublicShell.d.ts +5 -0
- package/dist/components/layout/PublicShell.d.ts.map +1 -0
- package/dist/components/layout/PublicShell.js +5 -0
- package/dist/components/location/LocationPicker.d.ts +27 -0
- package/dist/components/location/LocationPicker.d.ts.map +1 -0
- package/dist/components/location/LocationPicker.js +415 -0
- package/dist/components/location/LocationPreview.d.ts +11 -0
- package/dist/components/location/LocationPreview.d.ts.map +1 -0
- package/dist/components/location/LocationPreview.js +12 -0
- package/dist/components/location/MapPicker.d.ts +9 -0
- package/dist/components/location/MapPicker.d.ts.map +1 -0
- package/dist/components/location/MapPicker.js +40 -0
- package/dist/components/location/MapPreview.d.ts +8 -0
- package/dist/components/location/MapPreview.d.ts.map +1 -0
- package/dist/components/location/MapPreview.js +17 -0
- package/dist/components/location/PlaceLinkInline.d.ts +14 -0
- package/dist/components/location/PlaceLinkInline.d.ts.map +1 -0
- package/dist/components/location/PlaceLinkInline.js +30 -0
- package/dist/components/location/leafletMap.d.ts +8 -0
- package/dist/components/location/leafletMap.d.ts.map +1 -0
- package/dist/components/location/leafletMap.js +74 -0
- package/dist/components/ui/GuestOrLoginDialog.d.ts +11 -0
- package/dist/components/ui/GuestOrLoginDialog.d.ts.map +1 -0
- package/dist/components/ui/GuestOrLoginDialog.js +19 -0
- package/dist/components/ui/ImageGalleryViewer.d.ts +10 -0
- package/dist/components/ui/ImageGalleryViewer.d.ts.map +1 -0
- package/dist/components/ui/ImageGalleryViewer.js +59 -0
- package/dist/components/ui/LocationInput.d.ts +12 -0
- package/dist/components/ui/LocationInput.d.ts.map +1 -0
- package/dist/components/ui/LocationInput.js +39 -0
- package/dist/components/ui/PropertyGalleryClient.d.ts +8 -0
- package/dist/components/ui/PropertyGalleryClient.d.ts.map +1 -0
- package/dist/components/ui/PropertyGalleryClient.js +22 -0
- package/dist/components/ui/calendar.d.ts +9 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +75 -0
- package/dist/components/ui/dashboard/admin-adventures-table.d.ts +12 -0
- package/dist/components/ui/dashboard/admin-adventures-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-adventures-table.js +94 -0
- package/dist/components/ui/dashboard/admin-blogs-table.d.ts +11 -0
- package/dist/components/ui/dashboard/admin-blogs-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-blogs-table.js +58 -0
- package/dist/components/ui/dashboard/admin-opportunities-table.d.ts +20 -0
- package/dist/components/ui/dashboard/admin-opportunities-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-opportunities-table.js +133 -0
- package/dist/components/ui/dashboard/admin-rentals-table.d.ts +12 -0
- package/dist/components/ui/dashboard/admin-rentals-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-rentals-table.js +85 -0
- package/dist/components/ui/dashboard/admin-travel-package-table.d.ts +16 -0
- package/dist/components/ui/dashboard/admin-travel-package-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/admin-travel-package-table.js +100 -0
- package/dist/components/ui/dashboard/adventures-table.d.ts +16 -0
- package/dist/components/ui/dashboard/adventures-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/adventures-table.js +151 -0
- package/dist/components/ui/dashboard/approver-applications-table.d.ts +13 -0
- package/dist/components/ui/dashboard/approver-applications-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/approver-applications-table.js +85 -0
- package/dist/components/ui/dashboard/approver-package-enquiries-table.d.ts +11 -0
- package/dist/components/ui/dashboard/approver-package-enquiries-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/approver-package-enquiries-table.js +102 -0
- package/dist/components/ui/dashboard/archive-confirm-modal.d.ts +9 -0
- package/dist/components/ui/dashboard/archive-confirm-modal.d.ts.map +1 -0
- package/dist/components/ui/dashboard/archive-confirm-modal.js +6 -0
- package/dist/components/ui/dashboard/blogs-table.d.ts +10 -0
- package/dist/components/ui/dashboard/blogs-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/blogs-table.js +62 -0
- package/dist/components/ui/dashboard/bookings-table.d.ts +12 -0
- package/dist/components/ui/dashboard/bookings-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/bookings-table.js +160 -0
- package/dist/components/ui/dashboard/dashboard-page-shell.d.ts +7 -0
- package/dist/components/ui/dashboard/dashboard-page-shell.d.ts.map +1 -0
- package/dist/components/ui/dashboard/dashboard-page-shell.js +5 -0
- package/dist/components/ui/dashboard/data-table-shell.d.ts +18 -0
- package/dist/components/ui/dashboard/data-table-shell.d.ts.map +1 -0
- package/dist/components/ui/dashboard/data-table-shell.js +6 -0
- package/dist/components/ui/dashboard/delete-confirm-modal.d.ts +9 -0
- package/dist/components/ui/dashboard/delete-confirm-modal.d.ts.map +1 -0
- package/dist/components/ui/dashboard/delete-confirm-modal.js +6 -0
- package/dist/components/ui/dashboard/entity-list-page-state.d.ts +25 -0
- package/dist/components/ui/dashboard/entity-list-page-state.d.ts.map +1 -0
- package/dist/components/ui/dashboard/entity-list-page-state.js +17 -0
- package/dist/components/ui/dashboard/generic-entity-table.d.ts +36 -0
- package/dist/components/ui/dashboard/generic-entity-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/generic-entity-table.js +203 -0
- package/dist/components/ui/dashboard/opportunities-table.d.ts +17 -0
- package/dist/components/ui/dashboard/opportunities-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/opportunities-table.js +143 -0
- package/dist/components/ui/dashboard/rentals-table.d.ts +17 -0
- package/dist/components/ui/dashboard/rentals-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/rentals-table.js +155 -0
- package/dist/components/ui/dashboard/restore-confirm-modal.d.ts +9 -0
- package/dist/components/ui/dashboard/restore-confirm-modal.d.ts.map +1 -0
- package/dist/components/ui/dashboard/restore-confirm-modal.js +6 -0
- package/dist/components/ui/dashboard/stats-card.d.ts +6 -0
- package/dist/components/ui/dashboard/stats-card.d.ts.map +1 -0
- package/dist/components/ui/dashboard/stats-card.js +5 -0
- package/dist/components/ui/dashboard/travel-packages-table.d.ts +16 -0
- package/dist/components/ui/dashboard/travel-packages-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/travel-packages-table.js +134 -0
- package/dist/components/ui/dashboard/user-applications-table.d.ts +12 -0
- package/dist/components/ui/dashboard/user-applications-table.d.ts.map +1 -0
- package/dist/components/ui/dashboard/user-applications-table.js +79 -0
- package/dist/components/ui/loading-skeleton.d.ts +10 -0
- package/dist/components/ui/loading-skeleton.d.ts.map +1 -0
- package/dist/components/ui/loading-skeleton.js +49 -0
- package/dist/components/ui/misc/IosPwaNavBar.d.ts +8 -0
- package/dist/components/ui/misc/IosPwaNavBar.d.ts.map +1 -0
- package/dist/components/ui/misc/IosPwaNavBar.js +25 -0
- package/dist/components/ui/misc/document-upload-button.d.ts +10 -0
- package/dist/components/ui/misc/document-upload-button.d.ts.map +1 -0
- package/dist/components/ui/misc/document-upload-button.js +12 -0
- package/dist/components/ui/misc/empty-state.d.ts +9 -0
- package/dist/components/ui/misc/empty-state.d.ts.map +1 -0
- package/dist/components/ui/misc/empty-state.js +4 -0
- package/dist/components/ui/misc/image-cropper.d.ts +9 -0
- package/dist/components/ui/misc/image-cropper.d.ts.map +1 -0
- package/dist/components/ui/misc/image-cropper.js +28 -0
- package/dist/components/ui/misc/rental-tile.d.ts +6 -0
- package/dist/components/ui/misc/rental-tile.d.ts.map +1 -0
- package/dist/components/ui/misc/rental-tile.js +56 -0
- package/dist/components/ui/misc/skeleton-extras.d.ts +32 -0
- package/dist/components/ui/misc/skeleton-extras.d.ts.map +1 -0
- package/dist/components/ui/misc/skeleton-extras.js +58 -0
- package/dist/components/ui/misc/tile.d.ts +4 -0
- package/dist/components/ui/misc/tile.d.ts.map +1 -0
- package/dist/components/ui/misc/tile.js +45 -0
- package/dist/components/ui/misc/whatsapp-help.d.ts +7 -0
- package/dist/components/ui/misc/whatsapp-help.d.ts.map +1 -0
- package/dist/components/ui/misc/whatsapp-help.js +6 -0
- package/dist/components/ui/motion.d.ts +14 -0
- package/dist/components/ui/motion.d.ts.map +1 -0
- package/dist/components/ui/motion.js +17 -0
- package/dist/components/ui/trippeaze/breadcrumb-trail.d.ts +10 -0
- package/dist/components/ui/trippeaze/breadcrumb-trail.d.ts.map +1 -0
- package/dist/components/ui/trippeaze/breadcrumb-trail.js +15 -0
- package/dist/components/ui/trippeaze/chip-tabs.d.ts +13 -0
- package/dist/components/ui/trippeaze/chip-tabs.d.ts.map +1 -0
- package/dist/components/ui/trippeaze/chip-tabs.js +6 -0
- package/dist/components/ui/trippeaze/page-shell.d.ts +22 -0
- package/dist/components/ui/trippeaze/page-shell.d.ts.map +1 -0
- package/dist/components/ui/trippeaze/page-shell.js +15 -0
- package/dist/components/ui/trippeaze/search-input.d.ts +5 -0
- package/dist/components/ui/trippeaze/search-input.d.ts.map +1 -0
- package/dist/components/ui/trippeaze/search-input.js +7 -0
- package/dist/components/user-dashboard/UserDashboardShellSidebar.d.ts +2 -0
- package/dist/components/user-dashboard/UserDashboardShellSidebar.d.ts.map +1 -0
- package/dist/components/user-dashboard/UserDashboardShellSidebar.js +17 -0
- package/dist/components/user-dashboard/UserSidebarNav.d.ts +2 -0
- package/dist/components/user-dashboard/UserSidebarNav.d.ts.map +1 -0
- package/dist/components/user-dashboard/UserSidebarNav.js +67 -0
- package/dist/dashboard/action-buttons.d.ts +2 -1
- package/dist/dashboard/action-buttons.d.ts.map +1 -1
- package/dist/dashboard/action-buttons.js +18 -11
- package/dist/dashboard/app-sidebar.d.ts.map +1 -1
- package/dist/dashboard/app-sidebar.js +3 -36
- package/dist/dashboard/dashboard-components.js +1 -1
- package/dist/dashboard/data-table.d.ts +5 -1
- package/dist/dashboard/data-table.d.ts.map +1 -1
- package/dist/dashboard/data-table.js +39 -7
- package/dist/dashboard/table.js +1 -1
- package/dist/header/mobile-nav-item.js +2 -2
- package/dist/header/mobile-navbar.d.ts.map +1 -1
- package/dist/header/mobile-navbar.js +10 -1
- package/dist/header/nav-item.js +2 -2
- package/dist/index.d.ts +17 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -0
- package/dist/main/footer.d.ts +0 -1
- package/dist/main/footer.d.ts.map +1 -1
- package/dist/main/footer.js +0 -1
- package/dist/main/navbar.d.ts +2 -2
- package/dist/main/navbar.d.ts.map +1 -1
- package/dist/main/navbar.js +73 -44
- package/dist/main/portfolio/portfolioItem.d.ts +1 -1
- package/dist/main/portfolio/portfolioItem.d.ts.map +1 -1
- package/dist/main/portfolio/portfolioPopup.d.ts +1 -1
- package/dist/main/portfolio/portfolioPopup.d.ts.map +1 -1
- package/dist/main/review-page.d.ts +2 -1
- package/dist/main/review-page.d.ts.map +1 -1
- package/dist/main/review-page.js +34 -4
- package/dist/misc/accordion.js +1 -1
- package/dist/misc/alert-dialog.js +1 -1
- package/dist/misc/alert.js +1 -1
- package/dist/misc/alertdialogclaude.js +1 -1
- package/dist/misc/avatar.js +1 -1
- package/dist/misc/badge.js +1 -1
- package/dist/misc/button.d.ts +6 -3
- package/dist/misc/button.d.ts.map +1 -1
- package/dist/misc/button.js +33 -5
- package/dist/misc/card.js +1 -1
- package/dist/misc/carousel.d.ts +2 -2
- package/dist/misc/carousel.d.ts.map +1 -1
- package/dist/misc/carousel.js +13 -5
- package/dist/misc/checkbox.js +1 -1
- package/dist/misc/command.js +1 -1
- package/dist/misc/datepicker.d.ts +2 -1
- package/dist/misc/datepicker.d.ts.map +1 -1
- package/dist/misc/datepicker.js +23 -21
- package/dist/misc/dialog.js +1 -1
- package/dist/misc/discount-strategy-editor.d.ts +11 -0
- package/dist/misc/discount-strategy-editor.d.ts.map +1 -0
- package/dist/misc/discount-strategy-editor.js +82 -0
- package/dist/misc/dropdown-menu.js +1 -1
- package/dist/misc/faq.d.ts +1 -1
- package/dist/misc/faq.d.ts.map +1 -1
- package/dist/misc/filter.js +2 -2
- package/dist/misc/filterBar.d.ts +11 -3
- package/dist/misc/filterBar.d.ts.map +1 -1
- package/dist/misc/filterBar.js +109 -55
- package/dist/misc/form.js +1 -1
- package/dist/misc/input.d.ts +4 -1
- package/dist/misc/input.d.ts.map +1 -1
- package/dist/misc/input.js +8 -3
- package/dist/misc/label.js +1 -1
- package/dist/misc/listing-wishlist-button.d.ts +13 -0
- package/dist/misc/listing-wishlist-button.d.ts.map +1 -0
- package/dist/misc/listing-wishlist-button.js +42 -0
- package/dist/misc/location/locationPicker.js +1 -1
- package/dist/misc/location-autocomplete.d.ts +28 -0
- package/dist/misc/location-autocomplete.d.ts.map +1 -0
- package/dist/misc/location-autocomplete.js +121 -0
- package/dist/misc/notification.js +2 -2
- package/dist/misc/pagination.js +1 -1
- package/dist/misc/popover.js +1 -1
- package/dist/misc/pricing-strategy-editor.d.ts +17 -0
- package/dist/misc/pricing-strategy-editor.d.ts.map +1 -0
- package/dist/misc/pricing-strategy-editor.js +80 -0
- package/dist/misc/progress.js +1 -1
- package/dist/misc/pwa-install-button.d.ts.map +1 -1
- package/dist/misc/pwa-install-button.js +2 -0
- package/dist/misc/rental-tile.d.ts +1 -1
- package/dist/misc/rental-tile.d.ts.map +1 -1
- package/dist/misc/rental-tile.js +24 -14
- package/dist/misc/scroll-area.js +1 -1
- package/dist/misc/select.js +1 -1
- package/dist/misc/separator.js +1 -1
- package/dist/misc/sheet.js +1 -1
- package/dist/misc/sidebar.js +2 -2
- package/dist/misc/slider.js +1 -1
- package/dist/misc/stateCard.d.ts +1 -1
- package/dist/misc/stateCard.d.ts.map +1 -1
- package/dist/misc/stateCard.js +1 -1
- package/dist/misc/step-progress.d.ts +16 -0
- package/dist/misc/step-progress.d.ts.map +1 -0
- package/dist/misc/step-progress.js +40 -0
- package/dist/misc/switch.js +1 -1
- package/dist/misc/tabs.js +1 -1
- package/dist/misc/tag-filter-input.d.ts +16 -0
- package/dist/misc/tag-filter-input.d.ts.map +1 -0
- package/dist/misc/tag-filter-input.js +26 -0
- package/dist/misc/textarea.js +1 -1
- package/dist/misc/tile.d.ts +1 -1
- package/dist/misc/tile.d.ts.map +1 -1
- package/dist/misc/tile.js +12 -47
- package/dist/misc/time-select.d.ts +14 -0
- package/dist/misc/time-select.d.ts.map +1 -0
- package/dist/misc/time-select.js +13 -0
- package/dist/misc/tooltip.js +1 -1
- package/dist/misc/wizard-footer.d.ts +18 -0
- package/dist/misc/wizard-footer.d.ts.map +1 -0
- package/dist/misc/wizard-footer.js +11 -0
- package/package.json +9 -6
- package/dist/misc/dashboard/action-buttons.js +0 -31
- package/dist/misc/misc/alertdialogclaude.js +0 -221
- package/dist/misc/misc/button.js +0 -46
- package/dist/misc/misc/dropdown-menu.js +0 -136
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ActionButtons } from "@myrjfa/ui/dist/dashboard/action-buttons";
|
|
3
|
+
import { DataTable } from "@myrjfa/ui/dist/dashboard/data-table";
|
|
4
|
+
import { StatusBadge } from "@myrjfa/ui/dist/dashboard/dashboard-components";
|
|
5
|
+
import { Archive, CalendarCheck2, CheckCircle2, Copy, Edit, ExternalLink, Trash, Star, XCircle, Building2, SlidersHorizontal, } from "lucide-react";
|
|
6
|
+
import Link from "next/link";
|
|
7
|
+
import { getPrimaryPricingStrategy, getPricingCurrency } from "@myrjfa/state/dist/lib/models/pricing";
|
|
8
|
+
function getPublicUrlSegment(category) {
|
|
9
|
+
if (!category)
|
|
10
|
+
return "rentals";
|
|
11
|
+
if (category === "volunteer")
|
|
12
|
+
return "opportunities";
|
|
13
|
+
if (category === "stay")
|
|
14
|
+
return "stays";
|
|
15
|
+
if (category === "adventure")
|
|
16
|
+
return "adventures";
|
|
17
|
+
if (category === "rental")
|
|
18
|
+
return "rentals";
|
|
19
|
+
if (category === "guide")
|
|
20
|
+
return "guides";
|
|
21
|
+
if (category === "package")
|
|
22
|
+
return "packages";
|
|
23
|
+
if (category === "event")
|
|
24
|
+
return "events";
|
|
25
|
+
return category + "s";
|
|
26
|
+
}
|
|
27
|
+
export function GenericEntityTable({ entities, type, onEdit, onDelete, onView, onStatusChange, onApprove, onReject, onArchive, onRestore, onClose, onRepost, onCopy, onManageRooms, onManage, onBookings, }) {
|
|
28
|
+
const columns = [
|
|
29
|
+
{
|
|
30
|
+
header: "Title",
|
|
31
|
+
accessorKey: "title",
|
|
32
|
+
cell: (entity) => (_jsx(Link, { href: `/${getPublicUrlSegment(entity.category)}/${entity.slug}`, className: "hover:text-primary transition-colors block", children: _jsx("div", { className: "font-semibold text-slate-900 italic", children: entity.title }) })),
|
|
33
|
+
sortable: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
header: "Status",
|
|
37
|
+
accessorKey: "status",
|
|
38
|
+
cell: (entity) => _jsx(StatusBadge, { status: entity.status }),
|
|
39
|
+
sortable: true,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
header: "Location",
|
|
43
|
+
accessorKey: "city",
|
|
44
|
+
cell: (entity) => (_jsxs("div", { className: "text-sm text-slate-500 italic", children: [entity.city, ", ", entity.state] })),
|
|
45
|
+
sortable: true,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
header: "Price",
|
|
49
|
+
accessorKey: "price",
|
|
50
|
+
cell: (entity) => {
|
|
51
|
+
var _a;
|
|
52
|
+
const strategy = getPrimaryPricingStrategy(entity);
|
|
53
|
+
const canUseFlatPrice = type === "property" || type === "volunteer";
|
|
54
|
+
const price = (_a = strategy === null || strategy === void 0 ? void 0 : strategy.finalBasePrice) !== null && _a !== void 0 ? _a : (canUseFlatPrice ? entity.price : null);
|
|
55
|
+
const currency = strategy ? getPricingCurrency(entity) : entity.currency || "INR";
|
|
56
|
+
return (_jsx("div", { className: "font-bold text-primary", children: price != null ? `${currency} ${price}` : "N/A" }));
|
|
57
|
+
},
|
|
58
|
+
sortable: true,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
header: "Rating",
|
|
62
|
+
accessorKey: "rating",
|
|
63
|
+
cell: (entity) => (_jsxs("div", { className: "flex items-center gap-1.5 bg-slate-50 px-2 py-1 rounded-lg w-fit", children: [_jsx(Star, { className: "w-3.5 h-3.5 text-amber-500 fill-amber-500" }), _jsx("span", { className: "font-bold text-xs", children: entity.rating || 0 }), _jsxs("span", { className: "text-[10px] text-slate-400", children: ["(", entity.ratingCount || 0, ")"] })] })),
|
|
64
|
+
sortable: true,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
header: "Views",
|
|
68
|
+
accessorKey: "views",
|
|
69
|
+
cell: (entity) => (_jsx("div", { className: "text-sm font-medium text-slate-600", children: entity.views || 0 })),
|
|
70
|
+
sortable: true,
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
const getActions = (entity) => {
|
|
74
|
+
const status = String(entity.status || "").toLowerCase();
|
|
75
|
+
const isOpenStatus = status === "open" || status === "active" || status === "posted";
|
|
76
|
+
const isPendingStatus = status === "pending" || status === "pending_approval";
|
|
77
|
+
const isDraftStatus = status === "draft";
|
|
78
|
+
const isClosedStatus = status === "closed" || status === "cancelled" || status === "inactive";
|
|
79
|
+
const isArchivedStatus = status === "archived";
|
|
80
|
+
const canManage = !isDraftStatus;
|
|
81
|
+
const canEdit = !isClosedStatus && !isArchivedStatus;
|
|
82
|
+
const canDelete = !isOpenStatus && !isClosedStatus && !isArchivedStatus;
|
|
83
|
+
const canArchive = Boolean(onArchive) && !isOpenStatus && !isPendingStatus && !isArchivedStatus;
|
|
84
|
+
const canCopy = Boolean(onCopy) && (isOpenStatus || isPendingStatus) && type !== "package" && type !== "adventure";
|
|
85
|
+
const canView = !isDraftStatus;
|
|
86
|
+
const actions = [];
|
|
87
|
+
if (onBookings) {
|
|
88
|
+
actions.push({
|
|
89
|
+
label: "Bookings",
|
|
90
|
+
icon: _jsx(CalendarCheck2, { className: "h-4 w-4" }),
|
|
91
|
+
action: () => onBookings(entity.slug),
|
|
92
|
+
variant: "outline",
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
if (onManage && canManage) {
|
|
96
|
+
actions.push({
|
|
97
|
+
label: "Manage",
|
|
98
|
+
icon: _jsx(SlidersHorizontal, { className: "h-4 w-4" }),
|
|
99
|
+
action: () => onManage(String(entity._id || entity.slug)),
|
|
100
|
+
variant: "outline",
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
if (canEdit) {
|
|
104
|
+
actions.push({
|
|
105
|
+
label: "Edit",
|
|
106
|
+
icon: _jsx(Edit, { className: "h-4 w-4" }),
|
|
107
|
+
action: () => onEdit(entity.slug),
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
if (type === "property" && onManageRooms) {
|
|
111
|
+
actions.push({
|
|
112
|
+
label: "Manage Rooms",
|
|
113
|
+
icon: _jsx(Building2, { className: "h-4 w-4" }),
|
|
114
|
+
action: () => onManageRooms(entity.slug),
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
if (isOpenStatus && onClose) {
|
|
118
|
+
actions.push({
|
|
119
|
+
label: "Close",
|
|
120
|
+
icon: _jsx(XCircle, { className: "h-4 w-4" }),
|
|
121
|
+
action: () => onClose(entity.slug),
|
|
122
|
+
variant: "outline",
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
if (isClosedStatus && onRepost) {
|
|
126
|
+
actions.push({
|
|
127
|
+
label: "Repost",
|
|
128
|
+
icon: _jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
129
|
+
action: () => onRepost(entity.slug),
|
|
130
|
+
variant: "outline",
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
if (isDraftStatus || isPendingStatus) {
|
|
134
|
+
if (onApprove) {
|
|
135
|
+
actions.push({
|
|
136
|
+
label: "Approve",
|
|
137
|
+
icon: _jsx(CheckCircle2, { className: "h-4 w-4" }),
|
|
138
|
+
action: () => onApprove(entity.slug),
|
|
139
|
+
variant: "default",
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
if (onReject) {
|
|
143
|
+
actions.push({
|
|
144
|
+
label: "Reject",
|
|
145
|
+
icon: _jsx(XCircle, { className: "h-4 w-4" }),
|
|
146
|
+
action: () => onReject(entity.slug),
|
|
147
|
+
variant: "destructive",
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
else if (canDelete) {
|
|
151
|
+
actions.push({
|
|
152
|
+
label: "Delete",
|
|
153
|
+
icon: _jsx(Trash, { className: "h-4 w-4" }),
|
|
154
|
+
action: () => onDelete(entity.slug),
|
|
155
|
+
variant: "destructive",
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
else if (canDelete) {
|
|
160
|
+
actions.push({
|
|
161
|
+
label: "Delete",
|
|
162
|
+
icon: _jsx(Trash, { className: "h-4 w-4" }),
|
|
163
|
+
action: () => onDelete(entity.slug),
|
|
164
|
+
variant: "destructive",
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
const archiveEntity = onArchive;
|
|
168
|
+
if (canArchive && archiveEntity) {
|
|
169
|
+
actions.push({
|
|
170
|
+
label: "Archive",
|
|
171
|
+
icon: _jsx(Archive, { className: "h-4 w-4" }),
|
|
172
|
+
action: () => archiveEntity(entity.slug),
|
|
173
|
+
variant: "outline",
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
if (onRestore && isArchivedStatus) {
|
|
177
|
+
actions.push({
|
|
178
|
+
label: "Restore",
|
|
179
|
+
icon: _jsx(CheckCircle2, { className: "h-4 w-4" }),
|
|
180
|
+
action: () => onRestore(entity.slug),
|
|
181
|
+
variant: "outline",
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
const copyEntity = onCopy;
|
|
185
|
+
if (canCopy && copyEntity) {
|
|
186
|
+
actions.push({
|
|
187
|
+
label: "Create New From This",
|
|
188
|
+
icon: _jsx(Copy, { className: "h-4 w-4" }),
|
|
189
|
+
action: () => copyEntity(entity.slug),
|
|
190
|
+
variant: "outline",
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
if (canView) {
|
|
194
|
+
actions.push({
|
|
195
|
+
label: "View",
|
|
196
|
+
icon: _jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
197
|
+
action: () => onView(entity.slug),
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
return _jsx(ActionButtons, { actions: actions, maxDisplayed: 1, mobileMaxDisplayed: 2 });
|
|
201
|
+
};
|
|
202
|
+
return (_jsx("div", { className: "[&_tr:not(:first-child)]:cursor-pointer", children: _jsx(DataTable, { data: entities, columns: columns, actions: getActions, onRowClick: (slug) => onView(slug) }) }));
|
|
203
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Opportunity } from '@myrjfa/state/dist/lib/models/opportunities/opportunity';
|
|
2
|
+
interface OpportunitiesTableProps {
|
|
3
|
+
opportunities: Opportunity[];
|
|
4
|
+
onEdit: (id: string) => void;
|
|
5
|
+
onDelete: (id: string) => void;
|
|
6
|
+
onView: (id: string) => void;
|
|
7
|
+
onViewApplicants: (id: string) => void;
|
|
8
|
+
onArchive: (id: string) => void;
|
|
9
|
+
onClose: (id: string) => void;
|
|
10
|
+
onPost: (id: string) => void;
|
|
11
|
+
onRepost: (id: string) => void;
|
|
12
|
+
onToggleAdminApprove: (id: string, value: boolean) => void;
|
|
13
|
+
onCopy: (id: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function OpportunitiesTable({ opportunities, onEdit, onDelete, onView, onViewApplicants, onArchive, onClose, onPost, onRepost, onToggleAdminApprove, onCopy, }: OpportunitiesTableProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=opportunities-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"opportunities-table.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dashboard/opportunities-table.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAKtF,UAAU,uBAAuB;IAC/B,aAAa,EAAE,WAAW,EAAE,CAAC;IAC7B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,oBAAoB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAED,wBAAgB,kBAAkB,CAAC,EACjC,aAAa,EACb,MAAM,EACN,QAAQ,EACR,MAAM,EACN,gBAAgB,EAChB,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,EACR,oBAAoB,EACpB,MAAM,GACP,EAAE,uBAAuB,2CAsLzB"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
// components/dashboard/host/OpportunitiesTable.tsx
|
|
3
|
+
import { Archive, Copy, Edit, ExternalLink, Trash, User, Users } from 'lucide-react';
|
|
4
|
+
import { ActionButtons } from '@myrjfa/ui/dist/dashboard/action-buttons';
|
|
5
|
+
import { StatusBadge } from '@myrjfa/ui/dist/dashboard/dashboard-components';
|
|
6
|
+
import { formatDate } from '@myrjfa/state/dist/lib/utils';
|
|
7
|
+
import { DataTableShell } from '@myrjfa/ui/dist/components/ui/dashboard/data-table-shell';
|
|
8
|
+
export function OpportunitiesTable({ opportunities, onEdit, onDelete, onView, onViewApplicants, onArchive, onClose, onPost, onRepost, onToggleAdminApprove, onCopy, }) {
|
|
9
|
+
const columns = [
|
|
10
|
+
{
|
|
11
|
+
header: 'Title',
|
|
12
|
+
accessorKey: 'title',
|
|
13
|
+
cell: (opportunity) => (_jsx("div", { className: "font-medium", children: opportunity.title })),
|
|
14
|
+
sortable: true,
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
header: 'Type',
|
|
18
|
+
accessorKey: 'opportunityType',
|
|
19
|
+
cell: (opportunity) => {
|
|
20
|
+
const type = opportunity.opportunityType || 'volunteer';
|
|
21
|
+
const colors = {
|
|
22
|
+
volunteer: 'bg-green-100 text-green-800',
|
|
23
|
+
internship: 'bg-blue-100 text-blue-800',
|
|
24
|
+
freelance: 'bg-purple-100 text-purple-800',
|
|
25
|
+
job: 'bg-orange-100 text-orange-800',
|
|
26
|
+
contentCreator: 'bg-pink-100 text-pink-800',
|
|
27
|
+
};
|
|
28
|
+
return (_jsx("span", { className: `px-2 py-1 rounded-full text-xs font-medium capitalize ${colors[type] || 'bg-gray-100'}`, children: type === 'contentCreator' ? 'Content Creator' : type }));
|
|
29
|
+
},
|
|
30
|
+
sortable: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
header: 'Status',
|
|
34
|
+
accessorKey: 'status',
|
|
35
|
+
cell: (opportunity) => (_jsx("div", { className: "flex items-center gap-2", children: _jsx(StatusBadge, { status: opportunity.status }) })),
|
|
36
|
+
sortable: true,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
header: 'Location',
|
|
40
|
+
accessorKey: 'city',
|
|
41
|
+
cell: (opportunity) => _jsx("div", { children: opportunity.city + ", " + opportunity.state }),
|
|
42
|
+
sortable: true,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
header: 'Trip Date',
|
|
46
|
+
accessorKey: 'availableFrom',
|
|
47
|
+
cell: (opportunity) => (_jsx("div", { children: formatDate(opportunity.availableFrom) })),
|
|
48
|
+
sortable: true,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
header: 'Applicants',
|
|
52
|
+
accessorKey: 'applicationCount',
|
|
53
|
+
cell: (opportunity) => (_jsxs("div", { children: [opportunity.applicationCount, " / ", opportunity.peopleRequired] })),
|
|
54
|
+
sortable: true,
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
header: 'Views',
|
|
58
|
+
accessorKey: 'views',
|
|
59
|
+
cell: (opportunity) => (_jsx("div", { children: opportunity.views })),
|
|
60
|
+
sortable: true,
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
header: 'Rating',
|
|
64
|
+
accessorKey: 'rating',
|
|
65
|
+
cell: (opportunity) => {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
return (_jsxs("div", { className: 'w-15', children: [_jsxs("div", { children: [(_a = opportunity.rating) !== null && _a !== void 0 ? _a : 0, " by"] }), _jsxs("div", { className: 'flex', children: [(_b = opportunity.ratingCount) !== null && _b !== void 0 ? _b : 0, " ", _jsx(User, { size: 18 })] })] }));
|
|
68
|
+
},
|
|
69
|
+
sortable: true,
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
const getOpportunityActions = (opportunity) => {
|
|
73
|
+
const status = String(opportunity.status || '').toLowerCase();
|
|
74
|
+
const canView = status !== 'draft';
|
|
75
|
+
const actions = [];
|
|
76
|
+
// Status-specific actions
|
|
77
|
+
if (opportunity.status === 'draft' || opportunity.status === 'pending' || opportunity.status === 'denied') {
|
|
78
|
+
actions.push({
|
|
79
|
+
label: 'Delete',
|
|
80
|
+
icon: _jsx(Trash, { className: "h-4 w-4" }),
|
|
81
|
+
action: () => onDelete(opportunity.slug),
|
|
82
|
+
variant: 'destructive',
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
else if (opportunity.status === 'archived') {
|
|
86
|
+
actions.push({
|
|
87
|
+
label: 'Post',
|
|
88
|
+
icon: _jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
89
|
+
action: () => onPost(opportunity.slug),
|
|
90
|
+
}, {
|
|
91
|
+
label: 'Delete',
|
|
92
|
+
icon: _jsx(Trash, { className: "h-4 w-4" }),
|
|
93
|
+
action: () => onDelete(opportunity.slug),
|
|
94
|
+
variant: 'destructive',
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
else if (opportunity.status === 'open') {
|
|
98
|
+
actions.push({
|
|
99
|
+
label: 'View Applicants',
|
|
100
|
+
icon: _jsx(Users, { className: "h-4 w-4" }),
|
|
101
|
+
action: () => onViewApplicants(opportunity.slug),
|
|
102
|
+
}, {
|
|
103
|
+
label: 'Archive',
|
|
104
|
+
icon: _jsx(Archive, { className: "h-4 w-4" }),
|
|
105
|
+
action: () => onArchive(opportunity.slug),
|
|
106
|
+
}, {
|
|
107
|
+
label: 'Close',
|
|
108
|
+
icon: _jsx(Archive, { className: "h-4 w-4" }),
|
|
109
|
+
action: () => onClose(opportunity.slug),
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
else if (opportunity.status === 'closed') {
|
|
113
|
+
actions.push({
|
|
114
|
+
label: 'View Applicants',
|
|
115
|
+
icon: _jsx(Users, { className: "h-4 w-4" }),
|
|
116
|
+
action: () => onViewApplicants(opportunity.slug),
|
|
117
|
+
}, {
|
|
118
|
+
label: 'Repost',
|
|
119
|
+
icon: _jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
120
|
+
action: () => onRepost(opportunity.slug),
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
// Base actions
|
|
124
|
+
actions.push({
|
|
125
|
+
label: 'Edit',
|
|
126
|
+
icon: _jsx(Edit, { className: "h-4 w-4" }),
|
|
127
|
+
action: () => onEdit(opportunity.slug),
|
|
128
|
+
}, {
|
|
129
|
+
label: 'Create New From This',
|
|
130
|
+
icon: _jsx(Copy, { className: "h-4 w-4" }),
|
|
131
|
+
action: () => onCopy(opportunity.slug),
|
|
132
|
+
});
|
|
133
|
+
if (canView) {
|
|
134
|
+
actions.push({
|
|
135
|
+
label: 'View',
|
|
136
|
+
icon: _jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
137
|
+
action: () => onView(opportunity.slug),
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
return _jsx(ActionButtons, { actions: actions, maxDisplayed: 1, mobileMaxDisplayed: 2 });
|
|
141
|
+
};
|
|
142
|
+
return (_jsx(DataTableShell, { data: opportunities, columns: columns, actions: getOpportunityActions, onRowClick: onView }));
|
|
143
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Rental } from "@myrjfa/state/dist/lib/models/rental";
|
|
2
|
+
interface RentalsTableProps {
|
|
3
|
+
rentals: Rental[];
|
|
4
|
+
onEdit: (slug: string) => void;
|
|
5
|
+
onDelete: (slug: string) => void;
|
|
6
|
+
onView: (slug: string) => void;
|
|
7
|
+
onArchive?: (slug: string) => void;
|
|
8
|
+
onRestore?: (slug: string) => void;
|
|
9
|
+
onClose?: (slug: string) => void;
|
|
10
|
+
onRepost?: (slug: string) => void;
|
|
11
|
+
onCopy?: (slug: string) => void;
|
|
12
|
+
onManage?: (idOrSlug: string) => void;
|
|
13
|
+
onBookings?: (slug: string) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function RentalsTable({ rentals, onEdit, onDelete, onView, onArchive, onRestore, onClose, onRepost, onCopy, onManage, onBookings, }: RentalsTableProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=rentals-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rentals-table.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dashboard/rentals-table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAU9D,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,wBAAgB,YAAY,CAAC,EAC3B,OAAO,EACP,MAAM,EACN,QAAQ,EACR,MAAM,EACN,SAAS,EACT,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,UAAU,GACX,EAAE,iBAAiB,2CAmKnB"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { getPrimaryPricingStrategy, getPricingCurrency } from "@myrjfa/state/dist/lib/models/pricing";
|
|
3
|
+
import { formatDate } from "@myrjfa/state/dist/lib/utils";
|
|
4
|
+
import { ActionButtons } from "@myrjfa/ui/dist/dashboard/action-buttons";
|
|
5
|
+
import { StatusBadge } from "@myrjfa/ui/dist/dashboard/dashboard-components";
|
|
6
|
+
import { CalendarCheck2, Copy, Eye, Pencil, Trash2, Check, SlidersHorizontal, XCircle, ExternalLink } from "lucide-react";
|
|
7
|
+
import Link from "next/link";
|
|
8
|
+
import { DataTableShell } from "@myrjfa/ui/dist/components/ui/dashboard/data-table-shell";
|
|
9
|
+
export function RentalsTable({ rentals, onEdit, onDelete, onView, onArchive, onRestore, onClose, onRepost, onCopy, onManage, onBookings, }) {
|
|
10
|
+
const columns = [
|
|
11
|
+
{
|
|
12
|
+
header: "Title",
|
|
13
|
+
accessorKey: "title",
|
|
14
|
+
cell: (rental) => (_jsx(Link, { href: `/rentals/${rental.slug}`, className: "hover:text-primary transition-colors font-medium block", children: rental.title })),
|
|
15
|
+
sortable: true,
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
header: "Category",
|
|
19
|
+
accessorKey: "vehicleType",
|
|
20
|
+
cell: (rental) => _jsx("div", { className: "capitalize", children: rental.vehicleType }),
|
|
21
|
+
sortable: true,
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
header: "Status",
|
|
25
|
+
accessorKey: "status",
|
|
26
|
+
cell: (rental) => _jsx(StatusBadge, { status: rental.status }),
|
|
27
|
+
sortable: true,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
header: "Location",
|
|
31
|
+
accessorKey: "city",
|
|
32
|
+
cell: (rental) => _jsx("div", { children: rental.city + ", " + rental.state }),
|
|
33
|
+
sortable: true,
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
header: "Price/Day",
|
|
37
|
+
accessorKey: "pricing",
|
|
38
|
+
cell: (rental) => {
|
|
39
|
+
var _a, _b;
|
|
40
|
+
return (_jsxs("div", { children: [getPricingCurrency(rental), " ", (_b = (_a = getPrimaryPricingStrategy(rental)) === null || _a === void 0 ? void 0 : _a.finalBasePrice) !== null && _b !== void 0 ? _b : 0] }));
|
|
41
|
+
},
|
|
42
|
+
sortable: true,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
header: "Listed On",
|
|
46
|
+
accessorKey: "createdAt",
|
|
47
|
+
cell: (rental) => _jsx("div", { children: formatDate(rental.createdAt) }),
|
|
48
|
+
sortable: true,
|
|
49
|
+
},
|
|
50
|
+
];
|
|
51
|
+
const getRentalActions = (rental) => {
|
|
52
|
+
const status = String(rental.status || "").toLowerCase();
|
|
53
|
+
const isOpenStatus = status === "open" || status === "active";
|
|
54
|
+
const isPendingStatus = status === "pending" || status === "pending_approval";
|
|
55
|
+
const isDraftStatus = status === "draft";
|
|
56
|
+
const isClosedStatus = status === "closed" || status === "inactive";
|
|
57
|
+
const isArchivedStatus = status === "archived";
|
|
58
|
+
const canManage = !isDraftStatus;
|
|
59
|
+
const canEdit = !isClosedStatus && !isArchivedStatus;
|
|
60
|
+
const canDelete = !isOpenStatus && !isClosedStatus && !isArchivedStatus;
|
|
61
|
+
const canArchive = Boolean(onArchive) && !isOpenStatus && !isPendingStatus && !isArchivedStatus;
|
|
62
|
+
const canCopy = Boolean(onCopy) && (isOpenStatus || isPendingStatus);
|
|
63
|
+
const canView = !isDraftStatus;
|
|
64
|
+
const actions = [
|
|
65
|
+
...(onBookings
|
|
66
|
+
? [
|
|
67
|
+
{
|
|
68
|
+
label: "Bookings",
|
|
69
|
+
icon: _jsx(CalendarCheck2, { className: "h-4 w-4" }),
|
|
70
|
+
action: () => onBookings(rental.slug),
|
|
71
|
+
variant: "outline",
|
|
72
|
+
},
|
|
73
|
+
]
|
|
74
|
+
: []),
|
|
75
|
+
...(onManage && canManage
|
|
76
|
+
? [
|
|
77
|
+
{
|
|
78
|
+
label: "Manage",
|
|
79
|
+
icon: _jsx(SlidersHorizontal, { className: "h-4 w-4" }),
|
|
80
|
+
action: () => onManage(String(rental._id || rental.slug)),
|
|
81
|
+
variant: "outline",
|
|
82
|
+
},
|
|
83
|
+
]
|
|
84
|
+
: []),
|
|
85
|
+
...(canEdit
|
|
86
|
+
? [{
|
|
87
|
+
label: "Edit",
|
|
88
|
+
icon: _jsx(Pencil, { className: "h-4 w-4" }),
|
|
89
|
+
action: () => onEdit(rental.slug),
|
|
90
|
+
variant: "default",
|
|
91
|
+
}]
|
|
92
|
+
: []),
|
|
93
|
+
...(canDelete
|
|
94
|
+
? [{
|
|
95
|
+
label: "Delete",
|
|
96
|
+
icon: _jsx(Trash2, { className: "h-4 w-4" }),
|
|
97
|
+
action: () => onDelete(rental.slug),
|
|
98
|
+
variant: "destructive",
|
|
99
|
+
}]
|
|
100
|
+
: []),
|
|
101
|
+
];
|
|
102
|
+
if (isOpenStatus && onClose) {
|
|
103
|
+
actions.push({
|
|
104
|
+
label: "Close",
|
|
105
|
+
icon: _jsx(XCircle, { className: "h-4 w-4" }),
|
|
106
|
+
action: () => onClose(rental.slug),
|
|
107
|
+
variant: "outline",
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
if (isClosedStatus && onRepost) {
|
|
111
|
+
actions.push({
|
|
112
|
+
label: "Repost",
|
|
113
|
+
icon: _jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
114
|
+
action: () => onRepost(rental.slug),
|
|
115
|
+
variant: "outline",
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
const archiveRental = onArchive;
|
|
119
|
+
if (canArchive && archiveRental) {
|
|
120
|
+
actions.push({
|
|
121
|
+
label: "Archive",
|
|
122
|
+
icon: _jsx(Eye, { className: "h-4 w-4" }), // Using Eye as a placeholder or search for Archive icon
|
|
123
|
+
action: () => archiveRental(rental.slug),
|
|
124
|
+
variant: "outline",
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
if (onRestore && isArchivedStatus) {
|
|
128
|
+
actions.push({
|
|
129
|
+
label: "Restore",
|
|
130
|
+
icon: _jsx(Check, { className: "h-4 w-4" }),
|
|
131
|
+
action: () => onRestore(rental.slug),
|
|
132
|
+
variant: "outline",
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
const copyRental = onCopy;
|
|
136
|
+
if (canCopy && copyRental) {
|
|
137
|
+
actions.push({
|
|
138
|
+
label: "Create New From This",
|
|
139
|
+
icon: _jsx(Copy, { className: "h-4 w-4" }),
|
|
140
|
+
action: () => copyRental(rental.slug),
|
|
141
|
+
variant: "outline",
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
if (canView) {
|
|
145
|
+
actions.push({
|
|
146
|
+
label: "View",
|
|
147
|
+
icon: _jsx(Eye, { className: "h-4 w-4" }),
|
|
148
|
+
action: () => onView(rental.slug),
|
|
149
|
+
variant: "outline",
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
return _jsx(ActionButtons, { actions: actions, maxDisplayed: 1, mobileMaxDisplayed: 2 });
|
|
153
|
+
};
|
|
154
|
+
return _jsx(DataTableShell, { data: rentals, columns: columns, actions: getRentalActions, onRowClick: onView });
|
|
155
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function RestoreConfirmModal({ isOpen, onClose, onConfirm, title, description, isRestoring, }: {
|
|
2
|
+
isOpen: boolean;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
onConfirm: () => void;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
isRestoring?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=restore-confirm-modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restore-confirm-modal.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dashboard/restore-confirm-modal.tsx"],"names":[],"mappings":"AAGA,wBAAgB,mBAAmB,CAAC,EAClC,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,EACL,WAAW,EACX,WAAmB,GACpB,EAAE;IACD,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,2CAuEA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { MotionDiv, AnimatePresence } from "../motion";
|
|
3
|
+
import { CheckCircle2, X } from "lucide-react";
|
|
4
|
+
export function RestoreConfirmModal({ isOpen, onClose, onConfirm, title, description, isRestoring = false, }) {
|
|
5
|
+
return (_jsx(AnimatePresence, { children: isOpen && (_jsxs(_Fragment, { children: [_jsx(MotionDiv, { initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 }, className: "fixed inset-0 z-50 bg-slate-900/40 backdrop-blur-sm", onClick: !isRestoring ? onClose : undefined }), _jsx("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4 pointer-events-none", children: _jsx(MotionDiv, { initial: { opacity: 0, scale: 0.95, y: 10 }, animate: { opacity: 1, scale: 1, y: 0 }, exit: { opacity: 0, scale: 0.95, y: 10 }, className: "bg-white rounded-[2rem] shadow-2xl w-full max-w-md pointer-events-auto overflow-hidden border border-slate-100", children: _jsxs("div", { className: "p-6 sm:p-8", children: [_jsxs("div", { className: "flex justify-between items-start mb-6", children: [_jsx("div", { className: "w-14 h-14 bg-green-50 rounded-2xl flex items-center justify-center flex-shrink-0", children: _jsx(CheckCircle2, { className: "w-7 h-7 text-green-500" }) }), _jsx("button", { onClick: onClose, disabled: isRestoring, className: "p-2 text-slate-400 hover:bg-slate-50 hover:text-slate-600 rounded-xl transition-colors", children: _jsx(X, { className: "w-5 h-5" }) })] }), _jsx("h3", { className: "text-xl font-bold text-slate-800 mb-2", children: title }), _jsx("p", { className: "text-sm text-slate-500 font-medium leading-relaxed mb-8", children: description }), _jsxs("div", { className: "flex flex-col sm:flex-row gap-3", children: [_jsx("button", { onClick: onClose, disabled: isRestoring, className: "flex-1 px-5 py-3.5 bg-slate-50 text-slate-600 font-bold rounded-xl hover:bg-slate-100 transition-colors disabled:opacity-50", children: "Cancel" }), _jsx("button", { onClick: onConfirm, disabled: isRestoring, className: "flex-1 px-5 py-3.5 bg-green-500 text-white font-bold rounded-xl hover:bg-green-600 shadow-xl shadow-green-500/20 transition-all flex items-center justify-center gap-2 active:scale-95 disabled:opacity-50", children: isRestoring ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "w-4 h-4 rounded-full border-2 border-white/30 border-t-white animate-spin" }), "Restoring..."] })) : (_jsxs(_Fragment, { children: [_jsx(CheckCircle2, { className: "w-4 h-4" }), "Yes, Restore"] })) })] })] }) }) })] })) }));
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stats-card.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dashboard/stats-card.tsx"],"names":[],"mappings":"AAEA,wBAAgB,SAAS,CAAC,EACxB,IAAI,EACJ,KAAK,EACL,KAAK,GACN,EAAE;IACD,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,2CAcA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Card, CardContent } from '@myrjfa/ui/dist/misc/card';
|
|
3
|
+
export function StatsCard({ icon, title, count, }) {
|
|
4
|
+
return (_jsx(Card, { children: _jsx(CardContent, { className: "flex items-center p-6", children: _jsxs("div", { className: "flex items-center gap-5", children: [_jsx("div", { className: "p-2 bg-blue-100 rounded-full", children: icon }), _jsxs("div", { children: [_jsx("p", { className: "text-sm font-medium text-muted-foreground", children: title }), _jsx("p", { className: "text-2xl font-bold", children: count })] })] }) }) }));
|
|
5
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TravelPackage } from '@myrjfa/state/dist/lib/models/travelPackage';
|
|
2
|
+
interface TravelPackagesTableProps {
|
|
3
|
+
travelPackages: TravelPackage[];
|
|
4
|
+
onEdit: (id: string) => void;
|
|
5
|
+
onDelete: (id: string) => void;
|
|
6
|
+
onView: (id: string) => void;
|
|
7
|
+
onViewEnquiries: (id: string) => void;
|
|
8
|
+
onArchive: (id: string) => void;
|
|
9
|
+
onClose: (id: string) => void;
|
|
10
|
+
onPost: (id: string) => void;
|
|
11
|
+
onRepost: (id: string) => void;
|
|
12
|
+
onCopy: (id: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function TravelPackagesTable({ travelPackages, onEdit, onDelete, onView, onViewEnquiries, onArchive, onClose, onPost, onRepost, onCopy, }: TravelPackagesTableProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=travel-packages-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"travel-packages-table.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/dashboard/travel-packages-table.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,6CAA6C,CAAC;AAU5E,UAAU,wBAAwB;IAC9B,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,OAAO,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,MAAM,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAChC;AAED,wBAAgB,mBAAmB,CAAC,EAChC,cAAc,EACd,MAAM,EACN,QAAQ,EACR,MAAM,EACN,eAAe,EACf,SAAS,EACT,OAAO,EACP,MAAM,EACN,QAAQ,EACR,MAAM,GACT,EAAE,wBAAwB,2CAgK1B"}
|