@licklist/design 0.78.5-dev.105 → 0.78.5-dev.107
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/.vscode/settings.json +3 -0
- package/bitbucket-pipelines.yml +13 -4
- package/dist/index.js +1 -1
- package/dist/product-set/form/ProductsControl.d.ts +2 -1
- package/dist/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +0 -24
- package/dist/v2/components/DataTable/DataTable.d.ts.map +1 -1
- package/dist/v2/components/DataTable/DataTable.js +86 -2
- package/dist/v2/components/InputCheckbox/InputCheckbox.scss.js +1 -1
- package/dist/v2/components/Modal/DeleteModal.d.ts.map +1 -1
- package/dist/v2/components/Modal/DeleteModal.js +13 -11
- package/dist/v2/components/Toggle/Toggle.d.ts.map +1 -1
- package/dist/v2/components/Toggle/Toggle.js +8 -5
- package/dist/v2/components/ZoneCard/ZoneCard.scss.js +1 -1
- package/dist/v2/components/index.d.ts +1 -1
- package/dist/v2/components/index.d.ts.map +1 -1
- package/dist/v2/icons/index.d.ts +4 -0
- package/dist/v2/icons/index.d.ts.map +1 -1
- package/dist/v2/icons/index.js +47 -16
- package/dist/v2/index.d.ts +0 -4
- package/dist/v2/index.d.ts.map +1 -1
- package/dist/v2/pages/Settings/components/SidebarCustomisation.js +0 -3
- package/dist/v2/pages/Settings/components/SidebarNavItem.js +0 -3
- package/package.json +6 -6
- package/rollup.config.js +16 -2
- package/src/iframe/payment/payment-status-page/PaymentStatusPage.tsx +1 -1
- package/src/product-set/form/ProductsControl.tsx +2 -1
- package/src/v2/components/DataTable/DataTable.tsx +23 -1
- package/src/v2/components/InputCheckbox/InputCheckbox.scss +6 -6
- package/src/v2/components/Modal/DeleteModal.tsx +12 -20
- package/src/v2/components/Toggle/Toggle.tsx +6 -5
- package/src/v2/components/ZoneCard/ZoneCard.scss +78 -0
- package/src/v2/components/index.ts +1 -0
- package/src/v2/icons/index.tsx +10 -0
- package/src/v2/index.ts +0 -73
- package/src/v2/navigation/Navigation/Navigation.stories.tsx +137 -0
- package/dist/v2/shadcn/components/ui/accordion.d.ts +0 -8
- package/dist/v2/shadcn/components/ui/accordion.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/alert-dialog.d.ts +0 -21
- package/dist/v2/shadcn/components/ui/alert-dialog.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/alert.d.ts +0 -9
- package/dist/v2/shadcn/components/ui/alert.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/aspect-ratio.d.ts +0 -4
- package/dist/v2/shadcn/components/ui/aspect-ratio.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/avatar.d.ts +0 -7
- package/dist/v2/shadcn/components/ui/avatar.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/badge.d.ts +0 -10
- package/dist/v2/shadcn/components/ui/badge.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/breadcrumb.d.ts +0 -20
- package/dist/v2/shadcn/components/ui/breadcrumb.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/button.d.ts +0 -14
- package/dist/v2/shadcn/components/ui/button.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/calendar.d.ts +0 -9
- package/dist/v2/shadcn/components/ui/calendar.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/card.d.ts +0 -9
- package/dist/v2/shadcn/components/ui/card.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/carousel.d.ts +0 -19
- package/dist/v2/shadcn/components/ui/carousel.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/checkbox.d.ts +0 -6
- package/dist/v2/shadcn/components/ui/checkbox.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/checkbox.js +0 -115
- package/dist/v2/shadcn/components/ui/checkbox.scss.js +0 -6
- package/dist/v2/shadcn/components/ui/collapsible.d.ts +0 -6
- package/dist/v2/shadcn/components/ui/collapsible.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/command.d.ts +0 -83
- package/dist/v2/shadcn/components/ui/command.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/context-menu.d.ts +0 -28
- package/dist/v2/shadcn/components/ui/context-menu.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/dialog.d.ts +0 -20
- package/dist/v2/shadcn/components/ui/dialog.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/dialog.js +0 -169
- package/dist/v2/shadcn/components/ui/drawer.d.ts +0 -23
- package/dist/v2/shadcn/components/ui/drawer.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/dropdown-menu.d.ts +0 -28
- package/dist/v2/shadcn/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/form.d.ts +0 -24
- package/dist/v2/shadcn/components/ui/form.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/hover-card.d.ts +0 -7
- package/dist/v2/shadcn/components/ui/hover-card.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/input-otp.d.ts +0 -35
- package/dist/v2/shadcn/components/ui/input-otp.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/input.d.ts +0 -6
- package/dist/v2/shadcn/components/ui/input.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/label.d.ts +0 -6
- package/dist/v2/shadcn/components/ui/label.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/menubar.d.ts +0 -34
- package/dist/v2/shadcn/components/ui/menubar.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/navigation-menu.d.ts +0 -13
- package/dist/v2/shadcn/components/ui/navigation-menu.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/pagination.d.ts +0 -29
- package/dist/v2/shadcn/components/ui/pagination.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/popover.d.ts +0 -7
- package/dist/v2/shadcn/components/ui/popover.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/progress.d.ts +0 -5
- package/dist/v2/shadcn/components/ui/progress.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/radio-card.d.ts +0 -12
- package/dist/v2/shadcn/components/ui/radio-card.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/radio-group.d.ts +0 -6
- package/dist/v2/shadcn/components/ui/radio-group.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/scroll-area.d.ts +0 -6
- package/dist/v2/shadcn/components/ui/scroll-area.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/select.d.ts +0 -14
- package/dist/v2/shadcn/components/ui/select.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/separator.d.ts +0 -5
- package/dist/v2/shadcn/components/ui/separator.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/sheet.d.ts +0 -26
- package/dist/v2/shadcn/components/ui/sheet.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/sidebar.d.ts +0 -67
- package/dist/v2/shadcn/components/ui/sidebar.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/skeleton.d.ts +0 -3
- package/dist/v2/shadcn/components/ui/skeleton.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/slider.d.ts +0 -5
- package/dist/v2/shadcn/components/ui/slider.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/switch.d.ts +0 -6
- package/dist/v2/shadcn/components/ui/switch.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/switch.js +0 -115
- package/dist/v2/shadcn/components/ui/switch.scss.js +0 -6
- package/dist/v2/shadcn/components/ui/table-pagination.d.ts +0 -11
- package/dist/v2/shadcn/components/ui/table-pagination.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/table.d.ts +0 -11
- package/dist/v2/shadcn/components/ui/table.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/tabs.d.ts +0 -8
- package/dist/v2/shadcn/components/ui/tabs.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/textarea.d.ts +0 -6
- package/dist/v2/shadcn/components/ui/textarea.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/toast.d.ts +0 -16
- package/dist/v2/shadcn/components/ui/toast.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/toaster.d.ts +0 -2
- package/dist/v2/shadcn/components/ui/toaster.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/toggle-group.d.ts +0 -13
- package/dist/v2/shadcn/components/ui/toggle-group.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/toggle.d.ts +0 -13
- package/dist/v2/shadcn/components/ui/toggle.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/tooltip.d.ts +0 -8
- package/dist/v2/shadcn/components/ui/tooltip.d.ts.map +0 -1
- package/dist/v2/shadcn/components/ui/use-toast.d.ts +0 -3
- package/dist/v2/shadcn/components/ui/use-toast.d.ts.map +0 -1
- package/dist/v2/shadcn/hooks/use-mobile.d.ts +0 -2
- package/dist/v2/shadcn/hooks/use-mobile.d.ts.map +0 -1
- package/dist/v2/shadcn/hooks/use-toast.d.ts +0 -45
- package/dist/v2/shadcn/hooks/use-toast.d.ts.map +0 -1
- package/dist/v2/shadcn/index.d.ts +0 -20
- package/dist/v2/shadcn/index.d.ts.map +0 -1
- package/dist/v2/shadcn/lib/utils.d.ts +0 -3
- package/dist/v2/shadcn/lib/utils.d.ts.map +0 -1
- package/dist/v2/shadcn/lib/utils.js +0 -11
- package/dist/v2/shadcn/styles/globals.css +0 -112
- package/src/v2/shadcn/_reference/AccountManagerCard.tsx +0 -45
- package/src/v2/shadcn/_reference/AffiliatesTable.tsx +0 -178
- package/src/v2/shadcn/_reference/AuditArchive.tsx +0 -165
- package/src/v2/shadcn/_reference/AuditContent.tsx +0 -270
- package/src/v2/shadcn/_reference/AutomationsGeneralSettings.tsx +0 -251
- package/src/v2/shadcn/_reference/AvatarUpload.tsx +0 -150
- package/src/v2/shadcn/_reference/BookingsSummaryCard.tsx +0 -268
- package/src/v2/shadcn/_reference/CodeCleanUpAudit.tsx +0 -274
- package/src/v2/shadcn/_reference/CompaniesTable.tsx +0 -387
- package/src/v2/shadcn/_reference/ComponentAudit.tsx +0 -239
- package/src/v2/shadcn/_reference/ConfigureSettingsCard.tsx +0 -95
- package/src/v2/shadcn/_reference/CustomerCard.tsx +0 -155
- package/src/v2/shadcn/_reference/DashboardCards.tsx +0 -50
- package/src/v2/shadcn/_reference/DashboardFooter.tsx +0 -18
- package/src/v2/shadcn/_reference/DiarySettings.tsx +0 -187
- package/src/v2/shadcn/_reference/DiaryView.tsx +0 -998
- package/src/v2/shadcn/_reference/EmptyState.tsx +0 -76
- package/src/v2/shadcn/_reference/EntityInfoCard.tsx +0 -48
- package/src/v2/shadcn/_reference/ExistingUserAssignments.tsx +0 -131
- package/src/v2/shadcn/_reference/FeatureToggle.tsx +0 -72
- package/src/v2/shadcn/_reference/FlowCard.tsx +0 -170
- package/src/v2/shadcn/_reference/FlowsContent.tsx +0 -688
- package/src/v2/shadcn/_reference/FlowsGeneralSettings.tsx +0 -27
- package/src/v2/shadcn/_reference/GeneralSettings.tsx +0 -33
- package/src/v2/shadcn/_reference/InventoryGeneralSettings.tsx +0 -82
- package/src/v2/shadcn/_reference/LanguageSelector.tsx +0 -97
- package/src/v2/shadcn/_reference/LoadingScreen.tsx +0 -25
- package/src/v2/shadcn/_reference/LoadingSpinner.tsx +0 -41
- package/src/v2/shadcn/_reference/ManagedClientsList.tsx +0 -121
- package/src/v2/shadcn/_reference/NPSScore.tsx +0 -379
- package/src/v2/shadcn/_reference/NPSSummaryCard.tsx +0 -181
- package/src/v2/shadcn/_reference/NotificationBanner.tsx +0 -129
- package/src/v2/shadcn/_reference/NotificationPanel.tsx +0 -208
- package/src/v2/shadcn/_reference/OnlineUsersCard.tsx +0 -73
- package/src/v2/shadcn/_reference/ProtectedRoute.tsx +0 -39
- package/src/v2/shadcn/_reference/ProvidersTable.tsx +0 -353
- package/src/v2/shadcn/_reference/QuickAddPanel.tsx +0 -1057
- package/src/v2/shadcn/_reference/QuickFilters.tsx +0 -112
- package/src/v2/shadcn/_reference/ScheduleView.tsx +0 -410
- package/src/v2/shadcn/_reference/ScrollToTop.tsx +0 -14
- package/src/v2/shadcn/_reference/SecondaryNav.tsx +0 -50
- package/src/v2/shadcn/_reference/SecuritySettings.tsx +0 -258
- package/src/v2/shadcn/_reference/SessionDetailView.tsx +0 -294
- package/src/v2/shadcn/_reference/Sidebar.tsx +0 -14
- package/src/v2/shadcn/_reference/SidebarAwareLayout.tsx +0 -30
- package/src/v2/shadcn/_reference/SidebarLabelCustomization.tsx +0 -285
- package/src/v2/shadcn/_reference/SimulationBanner.tsx +0 -57
- package/src/v2/shadcn/_reference/SortControls.tsx +0 -65
- package/src/v2/shadcn/_reference/StatusBadge.tsx +0 -49
- package/src/v2/shadcn/_reference/StyleGuideContent.tsx +0 -331
- package/src/v2/shadcn/_reference/TableActionMenu.tsx +0 -126
- package/src/v2/shadcn/_reference/ThemeProvider.tsx +0 -119
- package/src/v2/shadcn/_reference/ThemeSettings.tsx +0 -73
- package/src/v2/shadcn/_reference/TopNavigation.tsx +0 -332
- package/src/v2/shadcn/_reference/UserActivityHistory.tsx +0 -209
- package/src/v2/shadcn/_reference/UserLanguageSettings.tsx +0 -94
- package/src/v2/shadcn/_reference/UserPanel.tsx +0 -472
- package/src/v2/shadcn/_reference/UsersTable.tsx +0 -1023
- package/src/v2/shadcn/_reference/WaiverForm.tsx +0 -301
- package/src/v2/shadcn/_reference/WaiversGeneralSettings.tsx +0 -46
- package/src/v2/shadcn/_reference/WaiversTable.tsx +0 -290
- package/src/v2/shadcn/_reference/WaiversTemplatesSettings.tsx +0 -416
- package/src/v2/shadcn/_reference/ai/AIChatPanel.tsx +0 -313
- package/src/v2/shadcn/_reference/ai/AIChatSearchBar.tsx +0 -36
- package/src/v2/shadcn/_reference/ai/ChatInteractiveBlock.tsx +0 -298
- package/src/v2/shadcn/_reference/ai/ChatMessageContent.tsx +0 -40
- package/src/v2/shadcn/_reference/ai/parseInteractiveBlocks.ts +0 -142
- package/src/v2/shadcn/_reference/auth/AuthLayout.tsx +0 -55
- package/src/v2/shadcn/_reference/auth/CreatePasswordForm.tsx +0 -285
- package/src/v2/shadcn/_reference/auth/CreatePasswordPanel.tsx +0 -20
- package/src/v2/shadcn/_reference/auth/LoginFooter.tsx +0 -14
- package/src/v2/shadcn/_reference/auth/LoginForm.tsx +0 -205
- package/src/v2/shadcn/_reference/auth/LoginPanel.tsx +0 -41
- package/src/v2/shadcn/_reference/auth/ResetPasswordForm.tsx +0 -102
- package/src/v2/shadcn/_reference/auth/ResetPasswordPanel.tsx +0 -20
- package/src/v2/shadcn/_reference/auth/VerifyEmailForm.tsx +0 -95
- package/src/v2/shadcn/_reference/auth/VerifyEmailPanel.tsx +0 -20
- package/src/v2/shadcn/_reference/email/EmailAttachment.tsx +0 -119
- package/src/v2/shadcn/_reference/email/EmailAutomation.tsx +0 -92
- package/src/v2/shadcn/_reference/email/EmailPlaceholders.tsx +0 -64
- package/src/v2/shadcn/_reference/email/UnlayerEmailEditor.tsx +0 -41
- package/src/v2/shadcn/_reference/email/emailTemplateData.ts +0 -53
- package/src/v2/shadcn/_reference/emptyStateIcons.tsx +0 -103
- package/src/v2/shadcn/_reference/games/MazeGame.tsx +0 -394
- package/src/v2/shadcn/_reference/games/RunnerGame.tsx +0 -497
- package/src/v2/shadcn/_reference/logos/BookedLogoFull.tsx +0 -36
- package/src/v2/shadcn/_reference/logos/BookedLogoMark.tsx +0 -31
- package/src/v2/shadcn/_reference/logos/BookedLogoNew.tsx +0 -36
- package/src/v2/shadcn/_reference/pricing/DynamicPricingRulesEditor.tsx +0 -401
- package/src/v2/shadcn/_reference/pricing/DynamicPricingTierCard.tsx +0 -77
- package/src/v2/shadcn/_reference/pricing/DynamicPricingTiersList.tsx +0 -218
- package/src/v2/shadcn/_reference/pricing/PricingCalendar.tsx +0 -810
- package/src/v2/shadcn/_reference/pricing/PricingPeriodCard.tsx +0 -152
- package/src/v2/shadcn/_reference/pricing/PricingPeriodForm.tsx +0 -377
- package/src/v2/shadcn/_reference/pricing/PricingPeriodsList.tsx +0 -213
- package/src/v2/shadcn/_reference/pricing/getRuleSummary.ts +0 -39
- package/src/v2/shadcn/_reference/products/AvailabilityRulesSection.tsx +0 -184
- package/src/v2/shadcn/_reference/products/AvailabilitySection.tsx +0 -677
- package/src/v2/shadcn/_reference/products/BookingTypeConfigOptions.tsx +0 -40
- package/src/v2/shadcn/_reference/products/CapacityPeriodsSection.tsx +0 -238
- package/src/v2/shadcn/_reference/products/DynamicPricingTiersSection.tsx +0 -131
- package/src/v2/shadcn/_reference/products/GiftCardOrdersTab.tsx +0 -192
- package/src/v2/shadcn/_reference/products/GiftCardSettings.tsx +0 -342
- package/src/v2/shadcn/_reference/products/PackageProductsSection.tsx +0 -322
- package/src/v2/shadcn/_reference/products/PricingSection.tsx +0 -173
- package/src/v2/shadcn/_reference/products/ProductTypeFields.tsx +0 -353
- package/src/v2/shadcn/_reference/products/ProductTypeIcon.tsx +0 -95
- package/src/v2/shadcn/_reference/products/VariablePricingSection.tsx +0 -140
- package/src/v2/shadcn/_reference/products/productTypeConfig.ts +0 -182
- package/src/v2/shadcn/_reference/shared/BackButton.tsx +0 -50
- package/src/v2/shadcn/_reference/shared/CancelConfirmationDialog.tsx +0 -18
- package/src/v2/shadcn/_reference/shared/ConfirmationDialog.tsx +0 -136
- package/src/v2/shadcn/_reference/shared/DeleteConfirmationDialog.tsx +0 -18
- package/src/v2/shadcn/_reference/shared/DeleteEntityPage.tsx +0 -221
- package/src/v2/shadcn/_reference/shared/SidebarIcons.tsx +0 -108
- package/src/v2/shadcn/_reference/shared/UnifiedSidebar.tsx +0 -722
- package/src/v2/shadcn/_reference/tables/BulkActionsBar.tsx +0 -68
- package/src/v2/shadcn/_reference/tables/DataTable.tsx +0 -221
- package/src/v2/shadcn/_reference/tables/TableControls.tsx +0 -94
- package/src/v2/shadcn/_reference/tables/index.ts +0 -3
- package/src/v2/shadcn/_reference/tables/types.ts +0 -79
- package/src/v2/shadcn/_reference/zones/LegacyZoneSettings.tsx +0 -299
- package/src/v2/shadcn/components/ui/accordion.stories.tsx +0 -63
- package/src/v2/shadcn/components/ui/accordion.tsx +0 -52
- package/src/v2/shadcn/components/ui/alert-dialog.stories.tsx +0 -44
- package/src/v2/shadcn/components/ui/alert-dialog.tsx +0 -104
- package/src/v2/shadcn/components/ui/alert.stories.tsx +0 -44
- package/src/v2/shadcn/components/ui/alert.tsx +0 -43
- package/src/v2/shadcn/components/ui/aspect-ratio.stories.tsx +0 -46
- package/src/v2/shadcn/components/ui/aspect-ratio.tsx +0 -5
- package/src/v2/shadcn/components/ui/avatar.stories.tsx +0 -39
- package/src/v2/shadcn/components/ui/avatar.tsx +0 -38
- package/src/v2/shadcn/components/ui/badge.stories.tsx +0 -17
- package/src/v2/shadcn/components/ui/badge.tsx +0 -30
- package/src/v2/shadcn/components/ui/breadcrumb.stories.tsx +0 -91
- package/src/v2/shadcn/components/ui/breadcrumb.tsx +0 -90
- package/src/v2/shadcn/components/ui/button.stories.tsx +0 -20
- package/src/v2/shadcn/components/ui/button.tsx +0 -60
- package/src/v2/shadcn/components/ui/calendar.stories.tsx +0 -61
- package/src/v2/shadcn/components/ui/calendar.tsx +0 -54
- package/src/v2/shadcn/components/ui/card.stories.tsx +0 -37
- package/src/v2/shadcn/components/ui/card.tsx +0 -43
- package/src/v2/shadcn/components/ui/carousel.stories.tsx +0 -92
- package/src/v2/shadcn/components/ui/carousel.tsx +0 -224
- package/src/v2/shadcn/components/ui/checkbox.scss +0 -38
- package/src/v2/shadcn/components/ui/checkbox.stories.tsx +0 -23
- package/src/v2/shadcn/components/ui/checkbox.tsx +0 -24
- package/src/v2/shadcn/components/ui/collapsible.stories.tsx +0 -59
- package/src/v2/shadcn/components/ui/collapsible.tsx +0 -9
- package/src/v2/shadcn/components/ui/command.stories.tsx +0 -70
- package/src/v2/shadcn/components/ui/command.tsx +0 -132
- package/src/v2/shadcn/components/ui/context-menu.stories.tsx +0 -72
- package/src/v2/shadcn/components/ui/context-menu.tsx +0 -178
- package/src/v2/shadcn/components/ui/dialog.stories.tsx +0 -67
- package/src/v2/shadcn/components/ui/dialog.tsx +0 -95
- package/src/v2/shadcn/components/ui/drawer.stories.tsx +0 -50
- package/src/v2/shadcn/components/ui/drawer.tsx +0 -87
- package/src/v2/shadcn/components/ui/dropdown-menu.stories.tsx +0 -73
- package/src/v2/shadcn/components/ui/dropdown-menu.tsx +0 -179
- package/src/v2/shadcn/components/ui/form.stories.tsx +0 -105
- package/src/v2/shadcn/components/ui/form.tsx +0 -129
- package/src/v2/shadcn/components/ui/hover-card.stories.tsx +0 -35
- package/src/v2/shadcn/components/ui/hover-card.tsx +0 -27
- package/src/v2/shadcn/components/ui/input-otp.stories.tsx +0 -72
- package/src/v2/shadcn/components/ui/input-otp.tsx +0 -61
- package/src/v2/shadcn/components/ui/input.stories.tsx +0 -16
- package/src/v2/shadcn/components/ui/input.tsx +0 -25
- package/src/v2/shadcn/components/ui/label.stories.tsx +0 -13
- package/src/v2/shadcn/components/ui/label.tsx +0 -17
- package/src/v2/shadcn/components/ui/menubar.stories.tsx +0 -86
- package/src/v2/shadcn/components/ui/menubar.tsx +0 -207
- package/src/v2/shadcn/components/ui/navigation-menu.stories.tsx +0 -68
- package/src/v2/shadcn/components/ui/navigation-menu.tsx +0 -120
- package/src/v2/shadcn/components/ui/pagination.stories.tsx +0 -78
- package/src/v2/shadcn/components/ui/pagination.tsx +0 -81
- package/src/v2/shadcn/components/ui/popover.stories.tsx +0 -44
- package/src/v2/shadcn/components/ui/popover.tsx +0 -29
- package/src/v2/shadcn/components/ui/progress.stories.tsx +0 -17
- package/src/v2/shadcn/components/ui/progress.tsx +0 -23
- package/src/v2/shadcn/components/ui/radio-card.stories.tsx +0 -68
- package/src/v2/shadcn/components/ui/radio-card.tsx +0 -52
- package/src/v2/shadcn/components/ui/radio-group.stories.tsx +0 -77
- package/src/v2/shadcn/components/ui/radio-group.tsx +0 -35
- package/src/v2/shadcn/components/ui/scroll-area.stories.tsx +0 -56
- package/src/v2/shadcn/components/ui/scroll-area.tsx +0 -38
- package/src/v2/shadcn/components/ui/select.stories.tsx +0 -60
- package/src/v2/shadcn/components/ui/select.tsx +0 -148
- package/src/v2/shadcn/components/ui/separator.stories.tsx +0 -30
- package/src/v2/shadcn/components/ui/separator.tsx +0 -20
- package/src/v2/shadcn/components/ui/sheet.stories.tsx +0 -115
- package/src/v2/shadcn/components/ui/sheet.tsx +0 -107
- package/src/v2/shadcn/components/ui/sidebar.stories.tsx +0 -167
- package/src/v2/shadcn/components/ui/sidebar.tsx +0 -637
- package/src/v2/shadcn/components/ui/skeleton.stories.tsx +0 -36
- package/src/v2/shadcn/components/ui/skeleton.tsx +0 -7
- package/src/v2/shadcn/components/ui/slider.stories.tsx +0 -16
- package/src/v2/shadcn/components/ui/slider.tsx +0 -23
- package/src/v2/shadcn/components/ui/switch.scss +0 -63
- package/src/v2/shadcn/components/ui/switch.stories.tsx +0 -23
- package/src/v2/shadcn/components/ui/switch.tsx +0 -24
- package/src/v2/shadcn/components/ui/table-pagination.stories.tsx +0 -81
- package/src/v2/shadcn/components/ui/table-pagination.tsx +0 -61
- package/src/v2/shadcn/components/ui/table.stories.tsx +0 -40
- package/src/v2/shadcn/components/ui/table.tsx +0 -72
- package/src/v2/shadcn/components/ui/tabs.stories.tsx +0 -85
- package/src/v2/shadcn/components/ui/tabs.tsx +0 -53
- package/src/v2/shadcn/components/ui/textarea.stories.tsx +0 -15
- package/src/v2/shadcn/components/ui/textarea.tsx +0 -21
- package/src/v2/shadcn/components/ui/toast.stories.tsx +0 -77
- package/src/v2/shadcn/components/ui/toast.tsx +0 -111
- package/src/v2/shadcn/components/ui/toaster.stories.tsx +0 -46
- package/src/v2/shadcn/components/ui/toaster.tsx +0 -24
- package/src/v2/shadcn/components/ui/toggle-group.stories.tsx +0 -95
- package/src/v2/shadcn/components/ui/toggle-group.tsx +0 -49
- package/src/v2/shadcn/components/ui/toggle.stories.tsx +0 -18
- package/src/v2/shadcn/components/ui/toggle.tsx +0 -37
- package/src/v2/shadcn/components/ui/tooltip.stories.tsx +0 -57
- package/src/v2/shadcn/components/ui/tooltip.tsx +0 -28
- package/src/v2/shadcn/components/ui/use-toast.ts +0 -3
- package/src/v2/shadcn/hooks/use-mobile.tsx +0 -19
- package/src/v2/shadcn/hooks/use-toast.ts +0 -184
- package/src/v2/shadcn/index.ts +0 -76
- package/src/v2/shadcn/lib/utils.ts +0 -6
- package/src/v2/shadcn/styles/globals.css +0 -112
|
@@ -1,416 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect, useMemo } from 'react';
|
|
2
|
-
import { useNavigate } from 'react-router-dom';
|
|
3
|
-
import { supabase } from '@/integrations/supabase/client';
|
|
4
|
-
import { useNotify } from '../hooks/useNotify';
|
|
5
|
-
import { useProvider } from '@/contexts/ProviderContext';
|
|
6
|
-
import { DataTable } from './tables/DataTable';
|
|
7
|
-
import { ColumnConfig, RowAction } from './tables/types';
|
|
8
|
-
import { Button } from './ui/button';
|
|
9
|
-
import { IconPlus } from '../../icons';
|
|
10
|
-
import EmptyState from './EmptyState';
|
|
11
|
-
import DeleteConfirmationDialog from './shared/DeleteConfirmationDialog';
|
|
12
|
-
import { cn } from '../lib/utils';
|
|
13
|
-
|
|
14
|
-
interface WaiverTemplate {
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
content: string | null;
|
|
18
|
-
is_active: boolean;
|
|
19
|
-
is_published: boolean;
|
|
20
|
-
display_order: number;
|
|
21
|
-
created_at: string;
|
|
22
|
-
expires_in_months: number;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
type TemplateStatus = 'active' | 'draft' | 'disabled';
|
|
26
|
-
|
|
27
|
-
const TemplateStatusBadge: React.FC<{ status: TemplateStatus }> = ({ status }) => {
|
|
28
|
-
const getBgColor = () => {
|
|
29
|
-
switch (status) {
|
|
30
|
-
case 'active':
|
|
31
|
-
return 'bg-surface-colour-green-soft';
|
|
32
|
-
case 'draft':
|
|
33
|
-
return 'bg-surface-colour-purple-soft';
|
|
34
|
-
case 'disabled':
|
|
35
|
-
return 'bg-surface-colour-red-soft';
|
|
36
|
-
default:
|
|
37
|
-
return 'bg-surface-tertiary';
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const getLabel = () => {
|
|
42
|
-
switch (status) {
|
|
43
|
-
case 'active':
|
|
44
|
-
return 'Active';
|
|
45
|
-
case 'draft':
|
|
46
|
-
return 'Draft';
|
|
47
|
-
case 'disabled':
|
|
48
|
-
return 'Disabled';
|
|
49
|
-
default:
|
|
50
|
-
return status;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
return (
|
|
55
|
-
<div className={cn(
|
|
56
|
-
"inline-flex justify-center items-center gap-2 border px-2 py-1 rounded-3xl border-colour-overlay",
|
|
57
|
-
getBgColor()
|
|
58
|
-
)}>
|
|
59
|
-
<span className="text-label-primary text-[10px] font-mono font-medium leading-[13px] whitespace-nowrap">
|
|
60
|
-
{getLabel()}
|
|
61
|
-
</span>
|
|
62
|
-
</div>
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
const WaiversTemplatesSettings: React.FC = () => {
|
|
67
|
-
const { provider } = useProvider();
|
|
68
|
-
const navigate = useNavigate();
|
|
69
|
-
const { showSuccess, showError } = useNotify();
|
|
70
|
-
const [templates, setTemplates] = useState<WaiverTemplate[]>([]);
|
|
71
|
-
const [isLoading, setIsLoading] = useState(true);
|
|
72
|
-
const [sortKey, setSortKey] = useState<string>('name');
|
|
73
|
-
const [sortDirection, setSortDirection] = useState<'asc' | 'desc'>('asc');
|
|
74
|
-
const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
|
|
75
|
-
const [templateToDelete, setTemplateToDelete] = useState<WaiverTemplate | null>(null);
|
|
76
|
-
const waiversEnabled = provider?.waivers_enabled === true;
|
|
77
|
-
|
|
78
|
-
// Build URL prefix for navigation
|
|
79
|
-
const getUrlPrefix = () => {
|
|
80
|
-
if (!provider) return '';
|
|
81
|
-
const providerType = provider.type === 'venue' ? 'venue' : 'promoter';
|
|
82
|
-
const friendlyId = provider.venue_id || '01';
|
|
83
|
-
return provider.company_id
|
|
84
|
-
? `/company/${provider.company_id}/${providerType}/${friendlyId}`
|
|
85
|
-
: `/${providerType}/${friendlyId}`;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
useEffect(() => {
|
|
89
|
-
if (provider) {
|
|
90
|
-
fetchTemplates();
|
|
91
|
-
}
|
|
92
|
-
}, [provider]);
|
|
93
|
-
|
|
94
|
-
const fetchTemplates = async () => {
|
|
95
|
-
if (!provider) return;
|
|
96
|
-
|
|
97
|
-
setIsLoading(true);
|
|
98
|
-
try {
|
|
99
|
-
const { data, error } = await supabase
|
|
100
|
-
.from('waiver_templates')
|
|
101
|
-
.select('*')
|
|
102
|
-
.eq('provider_id', provider.id)
|
|
103
|
-
.order('display_order', { ascending: true });
|
|
104
|
-
|
|
105
|
-
if (error) throw error;
|
|
106
|
-
setTemplates((data || []) as unknown as WaiverTemplate[]);
|
|
107
|
-
} catch (error) {
|
|
108
|
-
console.error('Error fetching waiver templates:', error);
|
|
109
|
-
showError('Failed to load waiver templates');
|
|
110
|
-
} finally {
|
|
111
|
-
setIsLoading(false);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const handleSort = (key: string) => {
|
|
116
|
-
if (sortKey === key) {
|
|
117
|
-
setSortDirection(sortDirection === 'asc' ? 'desc' : 'asc');
|
|
118
|
-
} else {
|
|
119
|
-
setSortKey(key);
|
|
120
|
-
setSortDirection('asc');
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
const sortedTemplates = useMemo(() => {
|
|
125
|
-
return [...templates].sort((a, b) => {
|
|
126
|
-
let aValue: any;
|
|
127
|
-
let bValue: any;
|
|
128
|
-
|
|
129
|
-
switch (sortKey) {
|
|
130
|
-
case 'name':
|
|
131
|
-
aValue = a.name?.toLowerCase() || '';
|
|
132
|
-
bValue = b.name?.toLowerCase() || '';
|
|
133
|
-
break;
|
|
134
|
-
case 'expires':
|
|
135
|
-
aValue = a.expires_in_months;
|
|
136
|
-
bValue = b.expires_in_months;
|
|
137
|
-
break;
|
|
138
|
-
default:
|
|
139
|
-
return 0;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
if (aValue < bValue) return sortDirection === 'asc' ? -1 : 1;
|
|
143
|
-
if (aValue > bValue) return sortDirection === 'asc' ? 1 : -1;
|
|
144
|
-
return 0;
|
|
145
|
-
});
|
|
146
|
-
}, [templates, sortKey, sortDirection]);
|
|
147
|
-
|
|
148
|
-
const handleAddTemplate = () => {
|
|
149
|
-
if (!provider || !waiversEnabled) return;
|
|
150
|
-
const prefix = getUrlPrefix();
|
|
151
|
-
navigate(`${prefix}/settings/waivers/add`);
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
const handleEditTemplate = (template: WaiverTemplate) => {
|
|
155
|
-
const prefix = getUrlPrefix();
|
|
156
|
-
navigate(`${prefix}/settings/waivers/${template.id}/edit`);
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
const handleDeleteTemplate = (template: WaiverTemplate) => {
|
|
160
|
-
setTemplateToDelete(template);
|
|
161
|
-
setDeleteDialogOpen(true);
|
|
162
|
-
};
|
|
163
|
-
|
|
164
|
-
const confirmDeleteTemplate = async () => {
|
|
165
|
-
if (!templateToDelete) return;
|
|
166
|
-
|
|
167
|
-
try {
|
|
168
|
-
const { error } = await supabase
|
|
169
|
-
.from('waiver_templates')
|
|
170
|
-
.delete()
|
|
171
|
-
.eq('id', templateToDelete.id);
|
|
172
|
-
|
|
173
|
-
if (error) throw error;
|
|
174
|
-
|
|
175
|
-
showSuccess('Waiver template deleted');
|
|
176
|
-
setDeleteDialogOpen(false);
|
|
177
|
-
setTemplateToDelete(null);
|
|
178
|
-
await fetchTemplates();
|
|
179
|
-
} catch (error) {
|
|
180
|
-
console.error('Error deleting waiver template:', error);
|
|
181
|
-
showError('Failed to delete waiver template');
|
|
182
|
-
}
|
|
183
|
-
};
|
|
184
|
-
|
|
185
|
-
const handleSetActive = async (template: WaiverTemplate) => {
|
|
186
|
-
if (!waiversEnabled) {
|
|
187
|
-
showError('Enable waivers to change template status');
|
|
188
|
-
return;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// Optimistic update: deactivate all others and activate this one
|
|
192
|
-
setTemplates(prev => prev.map(t => ({
|
|
193
|
-
...t,
|
|
194
|
-
is_active: t.id === template.id,
|
|
195
|
-
is_published: t.id === template.id ? true : t.is_published,
|
|
196
|
-
})));
|
|
197
|
-
|
|
198
|
-
try {
|
|
199
|
-
const { error } = await supabase
|
|
200
|
-
.from('waiver_templates')
|
|
201
|
-
.update({ is_active: true, is_published: true })
|
|
202
|
-
.eq('id', template.id);
|
|
203
|
-
|
|
204
|
-
if (error) throw error;
|
|
205
|
-
showSuccess('Waiver activated');
|
|
206
|
-
} catch (error) {
|
|
207
|
-
console.error('Error activating template:', error);
|
|
208
|
-
showError('Failed to activate template');
|
|
209
|
-
// Revert on error
|
|
210
|
-
await fetchTemplates();
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
const handleDisable = async (template: WaiverTemplate) => {
|
|
215
|
-
if (!waiversEnabled) {
|
|
216
|
-
showError('Enable waivers to change template status');
|
|
217
|
-
return;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
// Optimistic update
|
|
221
|
-
setTemplates(prev => prev.map(t =>
|
|
222
|
-
t.id === template.id ? { ...t, is_active: false } : t
|
|
223
|
-
));
|
|
224
|
-
|
|
225
|
-
try {
|
|
226
|
-
const { error } = await supabase
|
|
227
|
-
.from('waiver_templates')
|
|
228
|
-
.update({ is_active: false })
|
|
229
|
-
.eq('id', template.id);
|
|
230
|
-
|
|
231
|
-
if (error) throw error;
|
|
232
|
-
showSuccess('Waiver disabled');
|
|
233
|
-
} catch (error) {
|
|
234
|
-
console.error('Error disabling template:', error);
|
|
235
|
-
showError('Failed to disable template');
|
|
236
|
-
// Revert on error
|
|
237
|
-
await fetchTemplates();
|
|
238
|
-
}
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
const handlePublish = async (template: WaiverTemplate) => {
|
|
242
|
-
if (!waiversEnabled) {
|
|
243
|
-
showError('Enable waivers to publish template');
|
|
244
|
-
return;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
// Optimistic update
|
|
248
|
-
setTemplates(prev => prev.map(t =>
|
|
249
|
-
t.id === template.id ? { ...t, is_published: true, is_active: false } : t
|
|
250
|
-
));
|
|
251
|
-
|
|
252
|
-
try {
|
|
253
|
-
const { error } = await supabase
|
|
254
|
-
.from('waiver_templates')
|
|
255
|
-
.update({ is_published: true, is_active: false })
|
|
256
|
-
.eq('id', template.id);
|
|
257
|
-
|
|
258
|
-
if (error) throw error;
|
|
259
|
-
showSuccess('Waiver published');
|
|
260
|
-
} catch (error) {
|
|
261
|
-
console.error('Error publishing template:', error);
|
|
262
|
-
showError('Failed to publish template');
|
|
263
|
-
// Revert on error
|
|
264
|
-
await fetchTemplates();
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
const getTemplateStatus = (template: WaiverTemplate): TemplateStatus => {
|
|
269
|
-
// Draft = not yet published
|
|
270
|
-
if (!template.is_published) return 'draft';
|
|
271
|
-
// If waivers are disabled globally, all published templates show as disabled
|
|
272
|
-
if (!waiversEnabled) return 'disabled';
|
|
273
|
-
// Active or disabled based on is_active flag
|
|
274
|
-
if (template.is_active) return 'active';
|
|
275
|
-
return 'disabled';
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
const formatExpiresIn = (months: number): string => {
|
|
279
|
-
if (months === 1) return '1 Month';
|
|
280
|
-
return `${months} Months`;
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
const columns: ColumnConfig<WaiverTemplate>[] = [
|
|
284
|
-
{
|
|
285
|
-
label: 'Waiver Name',
|
|
286
|
-
sortKey: 'name',
|
|
287
|
-
sortable: true,
|
|
288
|
-
width: 'flex-1',
|
|
289
|
-
render: (template) => (
|
|
290
|
-
<span className="text-label-primary text-[13px] font-semibold leading-4">
|
|
291
|
-
{template.name}
|
|
292
|
-
</span>
|
|
293
|
-
),
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
label: 'Expires in',
|
|
297
|
-
sortKey: 'expires',
|
|
298
|
-
sortable: true,
|
|
299
|
-
width: 'w-[150px]',
|
|
300
|
-
render: (template) => (
|
|
301
|
-
<span className="text-label-primary text-[13px] font-normal leading-4">
|
|
302
|
-
{formatExpiresIn(template.expires_in_months)}
|
|
303
|
-
</span>
|
|
304
|
-
),
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
label: 'Status',
|
|
308
|
-
width: 'w-[100px]',
|
|
309
|
-
render: (template) => (
|
|
310
|
-
<TemplateStatusBadge status={getTemplateStatus(template)} />
|
|
311
|
-
),
|
|
312
|
-
},
|
|
313
|
-
];
|
|
314
|
-
|
|
315
|
-
const rowActions = (template: WaiverTemplate): RowAction<WaiverTemplate>[] => {
|
|
316
|
-
const actions: RowAction<WaiverTemplate>[] = [
|
|
317
|
-
{
|
|
318
|
-
label: 'Edit',
|
|
319
|
-
onClick: handleEditTemplate,
|
|
320
|
-
},
|
|
321
|
-
];
|
|
322
|
-
|
|
323
|
-
const status = getTemplateStatus(template);
|
|
324
|
-
|
|
325
|
-
// Only show status actions when waivers are enabled
|
|
326
|
-
if (waiversEnabled) {
|
|
327
|
-
if (status === 'draft') {
|
|
328
|
-
// Draft can be published (becomes disabled)
|
|
329
|
-
actions.push({
|
|
330
|
-
label: 'Publish',
|
|
331
|
-
onClick: handlePublish,
|
|
332
|
-
});
|
|
333
|
-
} else if (status === 'disabled') {
|
|
334
|
-
// Disabled can be set to active
|
|
335
|
-
actions.push({
|
|
336
|
-
label: 'Set as active',
|
|
337
|
-
onClick: handleSetActive,
|
|
338
|
-
});
|
|
339
|
-
} else if (status === 'active') {
|
|
340
|
-
// Active can be disabled
|
|
341
|
-
actions.push({
|
|
342
|
-
label: 'Disable',
|
|
343
|
-
onClick: handleDisable,
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
actions.push({
|
|
349
|
-
label: 'Delete',
|
|
350
|
-
onClick: handleDeleteTemplate,
|
|
351
|
-
variant: 'danger',
|
|
352
|
-
});
|
|
353
|
-
|
|
354
|
-
return actions;
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
if (isLoading) {
|
|
358
|
-
return (
|
|
359
|
-
<div className="flex items-center justify-center py-12">
|
|
360
|
-
<span className="text-label-secondary">Loading templates...</span>
|
|
361
|
-
</div>
|
|
362
|
-
);
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
return (
|
|
366
|
-
<div className="flex flex-col gap-4 w-full">
|
|
367
|
-
{/* Header with New Waiver button - only show when waivers enabled */}
|
|
368
|
-
{waiversEnabled && (
|
|
369
|
-
<div className="flex justify-end">
|
|
370
|
-
<Button
|
|
371
|
-
variant="ghost"
|
|
372
|
-
size="sm"
|
|
373
|
-
withIcon
|
|
374
|
-
onClick={handleAddTemplate}
|
|
375
|
-
>
|
|
376
|
-
<IconPlus className="fill-current" />
|
|
377
|
-
New Waiver
|
|
378
|
-
</Button>
|
|
379
|
-
</div>
|
|
380
|
-
)}
|
|
381
|
-
|
|
382
|
-
{/* Templates Table */}
|
|
383
|
-
{sortedTemplates.length > 0 ? (
|
|
384
|
-
<DataTable
|
|
385
|
-
data={sortedTemplates}
|
|
386
|
-
columns={columns}
|
|
387
|
-
keyExtractor={(template) => template.id}
|
|
388
|
-
rowActions={rowActions}
|
|
389
|
-
sortKey={sortKey}
|
|
390
|
-
sortDirection={sortDirection}
|
|
391
|
-
onSort={handleSort}
|
|
392
|
-
onRowClick={handleEditTemplate}
|
|
393
|
-
/>
|
|
394
|
-
) : (
|
|
395
|
-
<EmptyState
|
|
396
|
-
icon="Waivers"
|
|
397
|
-
title="No Waiver Templates"
|
|
398
|
-
description={waiversEnabled
|
|
399
|
-
? "Create your first waiver template to get started."
|
|
400
|
-
: "Enable waivers to create templates."
|
|
401
|
-
}
|
|
402
|
-
/>
|
|
403
|
-
)}
|
|
404
|
-
|
|
405
|
-
<DeleteConfirmationDialog
|
|
406
|
-
open={deleteDialogOpen}
|
|
407
|
-
onOpenChange={setDeleteDialogOpen}
|
|
408
|
-
onConfirm={confirmDeleteTemplate}
|
|
409
|
-
title="Delete Waiver Template"
|
|
410
|
-
itemName={templateToDelete?.name}
|
|
411
|
-
/>
|
|
412
|
-
</div>
|
|
413
|
-
);
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
export default WaiversTemplatesSettings;
|