@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
|
@@ -7,7 +7,6 @@ import '../../../components/Button/GhostButton.scss.js';
|
|
|
7
7
|
import '../../../components/QuickFilter/QuickFilter.scss.js';
|
|
8
8
|
import '../../../components/NewTable/NewTable.scss.js';
|
|
9
9
|
import '../../../components/ActionMenu/ActionMenu.scss.js';
|
|
10
|
-
import '../../../shadcn/components/ui/checkbox.js';
|
|
11
10
|
import '../../../components/DataTable/DataTable.scss.js';
|
|
12
11
|
import 'react-i18next';
|
|
13
12
|
import '../../../components/TableControls/TableControls.scss.js';
|
|
@@ -18,7 +17,6 @@ import '../../../components/StepIndicator/StepIndicator.scss.js';
|
|
|
18
17
|
import '../../../components/AvatarUpload/AvatarUpload.scss.js';
|
|
19
18
|
import '../../../components/InfoGrid/InfoGrid.scss.js';
|
|
20
19
|
import '../../../components/StatusBadge/StatusBadge.scss.js';
|
|
21
|
-
import '../../../shadcn/components/ui/dialog.js';
|
|
22
20
|
import '../../../components/NewInput/NewInput.js';
|
|
23
21
|
import '../../../components/Modal/DeleteModal.scss.js';
|
|
24
22
|
import { FormField } from '../../../components/FormField/FormField.js';
|
|
@@ -33,7 +31,6 @@ import '../../../components/UserAvatar/UserAvatar.scss.js';
|
|
|
33
31
|
import '../../../components/UserPanel/UserPanel.scss.js';
|
|
34
32
|
import '../../../components/EntityHeader/EntityHeader.scss.js';
|
|
35
33
|
import '../../../components/Alert/Alert.scss.js';
|
|
36
|
-
import '../../../shadcn/components/ui/switch.js';
|
|
37
34
|
import '../../../components/Toggle/Toggle.scss.js';
|
|
38
35
|
import '../../../components/FeatureToggle/FeatureToggle.scss.js';
|
|
39
36
|
import '../../../components/AccountManagerCard/AccountManagerCard.scss.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.78.5-dev.
|
|
3
|
+
"version": "0.78.5-dev.107",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/bookedit-licklist/licklist_design.git"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.36.1-dev.
|
|
45
|
+
"@licklist/core": "0.36.1-dev.51",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.36.4-dev.
|
|
47
|
+
"@licklist/plugins": "0.36.4-dev.19",
|
|
48
48
|
"clsx": "2.1.1",
|
|
49
49
|
"i18next": "25.3.2",
|
|
50
50
|
"lodash": "4.17.21",
|
|
@@ -65,9 +65,9 @@
|
|
|
65
65
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
66
66
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
67
67
|
"@hookform/resolvers": "^5.2.2",
|
|
68
|
-
"@licklist/core": "0.36.1-dev.
|
|
68
|
+
"@licklist/core": "0.36.1-dev.51",
|
|
69
69
|
"@licklist/eslint-config": "0.5.6",
|
|
70
|
-
"@licklist/plugins": "0.36.4-dev.
|
|
70
|
+
"@licklist/plugins": "0.36.4-dev.19",
|
|
71
71
|
"@mantine/core": "6.0.22",
|
|
72
72
|
"@mantine/hooks": "6.0.22",
|
|
73
73
|
"@mdx-js/react": "1.6.22",
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
"rollup-plugin-postcss": "^4.0.2",
|
|
230
230
|
"rollup-plugin-swc3": "0.11.2",
|
|
231
231
|
"rollup-plugin-typescript2": "0.31.0",
|
|
232
|
-
"sass": "
|
|
232
|
+
"sass": "1.99.0",
|
|
233
233
|
"sass-loader": "10.1.1",
|
|
234
234
|
"storybook": "9.1.13",
|
|
235
235
|
"style-loader": "2.0.0",
|
package/rollup.config.js
CHANGED
|
@@ -25,7 +25,11 @@ export default [
|
|
|
25
25
|
svgr(),
|
|
26
26
|
postcss({
|
|
27
27
|
extensions: ['.css', '.scss'],
|
|
28
|
-
use:
|
|
28
|
+
use: {
|
|
29
|
+
sass: {
|
|
30
|
+
silenceDeprecations: ['legacy-js-api', 'import', 'global-builtin'],
|
|
31
|
+
},
|
|
32
|
+
},
|
|
29
33
|
extract: false,
|
|
30
34
|
minimize: true,
|
|
31
35
|
inject(cssVariableName) {
|
|
@@ -73,6 +77,16 @@ export default [
|
|
|
73
77
|
isModule: true,
|
|
74
78
|
}),
|
|
75
79
|
],
|
|
76
|
-
external: [
|
|
80
|
+
external: [
|
|
81
|
+
'tslib',
|
|
82
|
+
'style-inject',
|
|
83
|
+
/^react-bootstrap(\/|$)/,
|
|
84
|
+
/^react-phone-number-input(\/|$)/,
|
|
85
|
+
/^react-date-range(\/|$)/,
|
|
86
|
+
/^react-icons(\/|$)/,
|
|
87
|
+
/^react-loading-skeleton(\/|$)/,
|
|
88
|
+
/^emojibase-data(\/|$)/,
|
|
89
|
+
/node_modules/,
|
|
90
|
+
],
|
|
77
91
|
},
|
|
78
92
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react'
|
|
2
2
|
import { useTranslation } from 'react-i18next'
|
|
3
|
-
import { PaymentStatusBody } from './component'
|
|
3
|
+
import { PaymentStatusBody } from './component/PaymentStatusBody'
|
|
4
4
|
import { LoaderIndicator } from '../../../static/loader/LoaderIndicator'
|
|
5
5
|
import { Page, PageBody } from '../../page'
|
|
6
6
|
import { BookingSummary, BookingSummaryFooter } from '../../order-process'
|
|
@@ -12,7 +12,8 @@ import { useTranslation } from 'react-i18next'
|
|
|
12
12
|
import { generateUuid } from '@licklist/core/dist/Services'
|
|
13
13
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService'
|
|
14
14
|
import { CategoryType } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper'
|
|
15
|
-
import { ProductControl, ProductControlProps
|
|
15
|
+
import { ProductControl, ProductControlProps } from '../product/ProductControl'
|
|
16
|
+
import { ProductSetFormValues } from './ProductSetForm'
|
|
16
17
|
import { SortableTree } from '../../sortable-tree'
|
|
17
18
|
import { CreateProductSetItem } from '../item/CreateProductSetItem'
|
|
18
19
|
import { Product } from '../types'
|
|
@@ -1,7 +1,29 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { ActionMenu } from '../ActionMenu'
|
|
3
3
|
import { IconChevronDown } from '../../icons'
|
|
4
|
-
|
|
4
|
+
// Native checkbox used instead of shadcn
|
|
5
|
+
const Checkbox = React.forwardRef<HTMLInputElement, { checked?: boolean | 'indeterminate'; onCheckedChange?: (v: boolean) => void; className?: string; onClick?: (e: React.MouseEvent) => void }>(
|
|
6
|
+
({ checked, onCheckedChange, className, onClick, ...props }, ref) => {
|
|
7
|
+
const inputRef = React.useRef<HTMLInputElement>(null)
|
|
8
|
+
React.useImperativeHandle(ref, () => inputRef.current!)
|
|
9
|
+
React.useEffect(() => {
|
|
10
|
+
if (inputRef.current) {
|
|
11
|
+
inputRef.current.indeterminate = checked === 'indeterminate'
|
|
12
|
+
}
|
|
13
|
+
}, [checked])
|
|
14
|
+
return (
|
|
15
|
+
<input
|
|
16
|
+
ref={inputRef}
|
|
17
|
+
type="checkbox"
|
|
18
|
+
checked={checked === true}
|
|
19
|
+
onChange={(e) => onCheckedChange?.(e.target.checked)}
|
|
20
|
+
onClick={onClick}
|
|
21
|
+
className={className}
|
|
22
|
+
{...props}
|
|
23
|
+
/>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
26
|
+
)
|
|
5
27
|
import './DataTable.scss'
|
|
6
28
|
|
|
7
29
|
// ─── Types ────────────────────────────────────────────────────────────────────
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
width: 16px;
|
|
17
17
|
height: 16px;
|
|
18
18
|
min-width: 16px;
|
|
19
|
-
border: 1px solid var(--border-primary);
|
|
19
|
+
border: 1px solid var(--border-primary, #e8e9ef);
|
|
20
20
|
border-radius: 3px;
|
|
21
|
-
background: var(--surface-primary);
|
|
21
|
+
background: var(--surface-primary, #fff);
|
|
22
22
|
transition: all 0.15s ease;
|
|
23
23
|
position: relative;
|
|
24
24
|
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
&__input:checked + &__box {
|
|
40
|
-
background: var(--fill-selected);
|
|
41
|
-
border-color: var(--fill-selected);
|
|
40
|
+
background: var(--fill-selected, #14215A);
|
|
41
|
+
border-color: var(--fill-selected, #14215A);
|
|
42
42
|
|
|
43
43
|
&::after {
|
|
44
44
|
opacity: 1;
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
&__label {
|
|
49
|
-
font-family: var(--font-family-sans);
|
|
49
|
+
font-family: var(--font-family-sans, 'Geist', sans-serif);
|
|
50
50
|
font-size: 14px;
|
|
51
|
-
color: var(--label-primary);
|
|
51
|
+
color: var(--label-primary, #121e52);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react'
|
|
2
2
|
import { useTranslation } from 'react-i18next'
|
|
3
|
-
import {
|
|
4
|
-
Dialog,
|
|
5
|
-
DialogContent,
|
|
6
|
-
DialogHeader,
|
|
7
|
-
DialogTitle,
|
|
8
|
-
DialogDescription,
|
|
9
|
-
DialogFooter,
|
|
10
|
-
} from '../../shadcn/components/ui/dialog'
|
|
11
3
|
import { NewInput } from '../NewInput'
|
|
12
4
|
import './DeleteModal.scss'
|
|
13
5
|
|
|
@@ -51,19 +43,19 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
51
43
|
|
|
52
44
|
const isConfirmDisabled = inputValue !== confirmationText || isDeleting
|
|
53
45
|
|
|
46
|
+
if (!isOpen) return null
|
|
47
|
+
|
|
54
48
|
return (
|
|
55
|
-
<
|
|
56
|
-
<
|
|
57
|
-
<
|
|
58
|
-
<
|
|
59
|
-
</
|
|
49
|
+
<div className="delete-modal__overlay" onClick={onClose}>
|
|
50
|
+
<div className="delete-modal" onClick={(e) => e.stopPropagation()}>
|
|
51
|
+
<div className="delete-modal__header">
|
|
52
|
+
<h2 className="delete-modal__title">{title}</h2>
|
|
53
|
+
</div>
|
|
60
54
|
|
|
61
55
|
<div className="delete-modal__content">
|
|
62
56
|
<div className="delete-modal__description-group">
|
|
63
57
|
{description && (
|
|
64
|
-
<
|
|
65
|
-
{description}
|
|
66
|
-
</DialogDescription>
|
|
58
|
+
<p className="delete-modal__description">{description}</p>
|
|
67
59
|
)}
|
|
68
60
|
{description_1 && (
|
|
69
61
|
<p className="delete-modal__description">{description_1}</p>
|
|
@@ -84,7 +76,7 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
84
76
|
</div>
|
|
85
77
|
</div>
|
|
86
78
|
|
|
87
|
-
<
|
|
79
|
+
<div className="delete-modal__actions">
|
|
88
80
|
<button
|
|
89
81
|
type="button"
|
|
90
82
|
className="delete-modal__button delete-modal__button--delete"
|
|
@@ -101,8 +93,8 @@ export const DeleteModal: React.FC<DeleteModalProps> = ({
|
|
|
101
93
|
>
|
|
102
94
|
{t('cancel')}
|
|
103
95
|
</button>
|
|
104
|
-
</
|
|
105
|
-
</
|
|
106
|
-
</
|
|
96
|
+
</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
107
99
|
)
|
|
108
100
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { Switch } from '../../shadcn/components/ui/switch'
|
|
3
2
|
import './Toggle.scss'
|
|
4
3
|
|
|
5
4
|
export interface ToggleProps {
|
|
@@ -10,11 +9,13 @@ export interface ToggleProps {
|
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
export const Toggle: React.FC<ToggleProps> = ({ checked, onChange, disabled = false, id }) => (
|
|
13
|
-
<
|
|
12
|
+
<button
|
|
14
13
|
id={id}
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
type="button"
|
|
15
|
+
role="switch"
|
|
16
|
+
aria-checked={checked}
|
|
17
17
|
disabled={disabled}
|
|
18
|
-
className=
|
|
18
|
+
className={`toggle-switch ${checked ? 'toggle-switch--checked' : ''}`}
|
|
19
|
+
onClick={() => onChange(!checked)}
|
|
19
20
|
/>
|
|
20
21
|
)
|
|
@@ -200,6 +200,84 @@
|
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
// Reorder row subtitle
|
|
204
|
+
.zone-card__subtitle {
|
|
205
|
+
display: block;
|
|
206
|
+
font-family: var(--font-family-sans, 'Geist', system-ui, sans-serif);
|
|
207
|
+
font-size: 13px;
|
|
208
|
+
font-weight: 400;
|
|
209
|
+
line-height: 16px;
|
|
210
|
+
color: var(--label-secondary);
|
|
211
|
+
margin-top: 2px;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// Reorder screen styles
|
|
215
|
+
.reorder-screen {
|
|
216
|
+
color: var(--label-primary);
|
|
217
|
+
|
|
218
|
+
&__header {
|
|
219
|
+
display: flex;
|
|
220
|
+
justify-content: space-between;
|
|
221
|
+
align-items: center;
|
|
222
|
+
align-self: stretch;
|
|
223
|
+
height: 72px;
|
|
224
|
+
padding: 24px 0 8px 8px;
|
|
225
|
+
border-bottom: 1px solid var(--border-primary);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&__content {
|
|
229
|
+
display: flex;
|
|
230
|
+
flex-direction: column;
|
|
231
|
+
align-items: center;
|
|
232
|
+
align-self: stretch;
|
|
233
|
+
padding-top: 24px;
|
|
234
|
+
padding-bottom: 48px;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
&__body {
|
|
238
|
+
display: flex;
|
|
239
|
+
flex-direction: column;
|
|
240
|
+
gap: 24px;
|
|
241
|
+
width: 100%;
|
|
242
|
+
max-width: 672px;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&__intro {
|
|
246
|
+
display: flex;
|
|
247
|
+
flex-direction: column;
|
|
248
|
+
gap: 4px;
|
|
249
|
+
|
|
250
|
+
p {
|
|
251
|
+
color: var(--label-secondary);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&__list {
|
|
256
|
+
display: flex;
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
gap: 12px;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
&__actions {
|
|
262
|
+
display: flex;
|
|
263
|
+
gap: 12px;
|
|
264
|
+
padding-top: 16px;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
@media (max-width: 640px) {
|
|
269
|
+
.reorder-screen {
|
|
270
|
+
&__header {
|
|
271
|
+
height: auto;
|
|
272
|
+
padding: 16px 0 8px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
&__content {
|
|
276
|
+
padding-top: 32px;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
203
281
|
@media (max-width: 768px) {
|
|
204
282
|
.zone-card {
|
|
205
283
|
&__header {
|
package/src/v2/icons/index.tsx
CHANGED
|
@@ -213,6 +213,16 @@ export const GripVerticalIcon = ({ width = 16, height = 16 }: { width?: number;
|
|
|
213
213
|
</svg>
|
|
214
214
|
)
|
|
215
215
|
|
|
216
|
+
export const ReorderIcon = ({ width = 16, height = 16 }: { width?: number; height?: number } = {}) => (
|
|
217
|
+
<svg width={width} height={height} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
218
|
+
<rect x="7" y="11" width="18" height="2" rx="1" fill="currentColor"/>
|
|
219
|
+
<rect x="7" y="15" width="18" height="2" rx="1" fill="currentColor"/>
|
|
220
|
+
<rect x="7" y="19" width="18" height="2" rx="1" fill="currentColor"/>
|
|
221
|
+
<path d="M19.9325 8H12.0675C11.6436 8 11.412 7.50557 11.6834 7.17991L15.6159 2.46093C15.8158 2.22106 16.1842 2.22106 16.3841 2.46093L20.3166 7.17991C20.588 7.50557 20.3564 8 19.9325 8Z" fill="currentColor" fillOpacity="0.5"/>
|
|
222
|
+
<path d="M12.0675 24L19.9325 24C20.3564 24 20.588 24.4944 20.3166 24.8201L16.3841 29.5391C16.1842 29.7789 15.8158 29.7789 15.6159 29.5391L11.6834 24.8201C11.412 24.4944 11.6436 24 12.0675 24Z" fill="currentColor" fillOpacity="0.5"/>
|
|
223
|
+
</svg>
|
|
224
|
+
)
|
|
225
|
+
|
|
216
226
|
export const PlusIcon = ({ width = 16, height = 16 }: { width?: number; height?: number } = {}) => (
|
|
217
227
|
<svg width={width} height={height} viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
218
228
|
<path d="M17 14.5H24.5V17.5H17V25H14V17.5H6.5V14.5H14V7H17V14.5Z" fill="currentColor"/>
|
package/src/v2/index.ts
CHANGED
|
@@ -219,78 +219,5 @@ export type { AuthLayoutProps, LoginPageProps, ResetPasswordPageProps, CreatePas
|
|
|
219
219
|
* - @/v2/styles/form/NewInput.scss
|
|
220
220
|
* - @/v2/styles/navigation/*.scss
|
|
221
221
|
*
|
|
222
|
-
* shadcn/ui components are available from:
|
|
223
|
-
* - @/v2/shadcn/components/ui/
|
|
224
222
|
*/
|
|
225
223
|
|
|
226
|
-
// shadcn/ui components
|
|
227
|
-
// Note: shadcn components with name collisions (Button, Checkbox) should be imported
|
|
228
|
-
// directly from '@licklist/design/v2/shadcn' to avoid ambiguity with native v2 components.
|
|
229
|
-
export {
|
|
230
|
-
cn,
|
|
231
|
-
buttonVariants,
|
|
232
|
-
Input,
|
|
233
|
-
Label,
|
|
234
|
-
Badge,
|
|
235
|
-
badgeVariants,
|
|
236
|
-
Card,
|
|
237
|
-
CardHeader,
|
|
238
|
-
CardFooter,
|
|
239
|
-
CardTitle,
|
|
240
|
-
CardDescription,
|
|
241
|
-
CardContent,
|
|
242
|
-
Separator,
|
|
243
|
-
Avatar,
|
|
244
|
-
AvatarImage,
|
|
245
|
-
AvatarFallback,
|
|
246
|
-
Select,
|
|
247
|
-
SelectGroup,
|
|
248
|
-
SelectValue,
|
|
249
|
-
SelectTrigger,
|
|
250
|
-
SelectContent,
|
|
251
|
-
SelectLabel,
|
|
252
|
-
SelectItem,
|
|
253
|
-
SelectSeparator,
|
|
254
|
-
SelectScrollUpButton,
|
|
255
|
-
SelectScrollDownButton,
|
|
256
|
-
Dialog,
|
|
257
|
-
DialogPortal,
|
|
258
|
-
DialogOverlay,
|
|
259
|
-
DialogTrigger,
|
|
260
|
-
DialogClose,
|
|
261
|
-
DialogContent,
|
|
262
|
-
DialogHeader,
|
|
263
|
-
DialogFooter,
|
|
264
|
-
DialogTitle,
|
|
265
|
-
DialogDescription,
|
|
266
|
-
DropdownMenu,
|
|
267
|
-
DropdownMenuTrigger,
|
|
268
|
-
DropdownMenuContent,
|
|
269
|
-
DropdownMenuItem,
|
|
270
|
-
DropdownMenuCheckboxItem,
|
|
271
|
-
DropdownMenuRadioItem,
|
|
272
|
-
DropdownMenuLabel,
|
|
273
|
-
DropdownMenuSeparator,
|
|
274
|
-
DropdownMenuShortcut,
|
|
275
|
-
DropdownMenuGroup,
|
|
276
|
-
DropdownMenuPortal,
|
|
277
|
-
DropdownMenuSub,
|
|
278
|
-
DropdownMenuSubContent,
|
|
279
|
-
DropdownMenuSubTrigger,
|
|
280
|
-
DropdownMenuRadioGroup,
|
|
281
|
-
Skeleton,
|
|
282
|
-
Switch,
|
|
283
|
-
Table,
|
|
284
|
-
TableHeader,
|
|
285
|
-
TableBody,
|
|
286
|
-
TableFooter,
|
|
287
|
-
TableHead,
|
|
288
|
-
TableRow,
|
|
289
|
-
TableCell,
|
|
290
|
-
TableCaption,
|
|
291
|
-
TooltipProvider as ShadcnTooltipProvider,
|
|
292
|
-
TooltipTrigger as ShadcnTooltipTrigger,
|
|
293
|
-
TooltipContent as ShadcnTooltipContent,
|
|
294
|
-
} from './shadcn'
|
|
295
|
-
// shadcn Button and Checkbox exported with Shadcn prefix to avoid collision with native v2 components
|
|
296
|
-
export { Button as ShadcnButton, Checkbox as ShadcnCheckbox, Tooltip as ShadcnTooltip } from './shadcn'
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react'
|
|
2
|
+
import React, { useState } from 'react'
|
|
3
|
+
import { Navigation } from './Navigation'
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'v2/Navigation/Navigation',
|
|
7
|
+
component: Navigation,
|
|
8
|
+
parameters: {
|
|
9
|
+
layout: 'fullscreen',
|
|
10
|
+
},
|
|
11
|
+
argTypes: {
|
|
12
|
+
isCollapsed: {
|
|
13
|
+
control: 'boolean',
|
|
14
|
+
description: 'Toggle between expanded (with labels) and collapsed (icons only) navigation',
|
|
15
|
+
},
|
|
16
|
+
activeItem: {
|
|
17
|
+
control: 'select',
|
|
18
|
+
options: ['home', 'companies', 'venues', 'promoters', 'admin', 'users', 'customers', 'reports', 'analytics', 'payments', 'settings'],
|
|
19
|
+
description: 'Which navigation item is currently active',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
} as Meta
|
|
23
|
+
|
|
24
|
+
type Story = StoryObj<typeof Navigation>
|
|
25
|
+
|
|
26
|
+
// Default expanded navigation
|
|
27
|
+
export const Expanded: Story = {
|
|
28
|
+
args: {
|
|
29
|
+
isCollapsed: false,
|
|
30
|
+
activeItem: 'home',
|
|
31
|
+
},
|
|
32
|
+
render: (args) => (
|
|
33
|
+
<div style={{ width: '250px', height: '100vh', background: 'var(--fills-background-primary, #FFFFFF)', borderRight: '1px solid #E5E7EB' }}>
|
|
34
|
+
<Navigation {...args} />
|
|
35
|
+
</div>
|
|
36
|
+
),
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Collapsed navigation (icons only)
|
|
40
|
+
export const Collapsed: Story = {
|
|
41
|
+
args: {
|
|
42
|
+
isCollapsed: true,
|
|
43
|
+
activeItem: 'home',
|
|
44
|
+
},
|
|
45
|
+
render: (args) => (
|
|
46
|
+
<div style={{ width: '76px', height: '100vh', background: 'var(--fills-background-primary, #FFFFFF)', borderRight: '1px solid #E5E7EB' }}>
|
|
47
|
+
<Navigation {...args} />
|
|
48
|
+
</div>
|
|
49
|
+
),
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Interactive with toggle
|
|
53
|
+
export const Interactive: Story = {
|
|
54
|
+
render: function () {
|
|
55
|
+
const [isCollapsed, setIsCollapsed] = useState(false);
|
|
56
|
+
const [activeItem, setActiveItem] = useState('home');
|
|
57
|
+
|
|
58
|
+
return (
|
|
59
|
+
<div style={{ display: 'flex', height: '100vh' }}>
|
|
60
|
+
<div style={{ width: isCollapsed ? '76px' : '250px', background: 'var(--fills-background-primary, #FFFFFF)', borderRight: '1px solid #E5E7EB', transition: 'width 0.3s ease' }}>
|
|
61
|
+
<div style={{ padding: '16px', borderBottom: '1px solid #E5E7EB' }}>
|
|
62
|
+
<button
|
|
63
|
+
onClick={() => setIsCollapsed(!isCollapsed)}
|
|
64
|
+
style={{
|
|
65
|
+
padding: '8px 12px',
|
|
66
|
+
background: '#14215A',
|
|
67
|
+
color: 'white',
|
|
68
|
+
border: 'none',
|
|
69
|
+
borderRadius: '6px',
|
|
70
|
+
cursor: 'pointer',
|
|
71
|
+
fontSize: '13px',
|
|
72
|
+
fontWeight: '500',
|
|
73
|
+
}}
|
|
74
|
+
>
|
|
75
|
+
{isCollapsed ? '→' : '←'}
|
|
76
|
+
</button>
|
|
77
|
+
</div>
|
|
78
|
+
<Navigation
|
|
79
|
+
isCollapsed={isCollapsed}
|
|
80
|
+
activeItem={activeItem}
|
|
81
|
+
onItemClick={setActiveItem}
|
|
82
|
+
/>
|
|
83
|
+
</div>
|
|
84
|
+
<div style={{ flex: 1, padding: '24px', background: '#F9FAFB' }}>
|
|
85
|
+
<h1 style={{ fontSize: '24px', fontWeight: '600', color: '#111827', marginBottom: '8px' }}>
|
|
86
|
+
Active Page: {activeItem.charAt(0).toUpperCase() + activeItem.slice(1)}
|
|
87
|
+
</h1>
|
|
88
|
+
<p style={{ color: '#6B7280' }}>Click a navigation item to change the active page</p>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
);
|
|
92
|
+
},
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Different active states
|
|
96
|
+
export const ActiveOnCompanies: Story = {
|
|
97
|
+
args: {
|
|
98
|
+
isCollapsed: false,
|
|
99
|
+
activeItem: 'companies',
|
|
100
|
+
},
|
|
101
|
+
render: (args) => (
|
|
102
|
+
<div style={{ width: '250px', height: '100vh', background: 'var(--fills-background-primary, #FFFFFF)', borderRight: '1px solid #E5E7EB' }}>
|
|
103
|
+
<Navigation {...args} />
|
|
104
|
+
</div>
|
|
105
|
+
),
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export const ActiveOnSettings: Story = {
|
|
109
|
+
args: {
|
|
110
|
+
isCollapsed: false,
|
|
111
|
+
activeItem: 'settings',
|
|
112
|
+
},
|
|
113
|
+
render: (args) => (
|
|
114
|
+
<div style={{ width: '250px', height: '100vh', background: 'var(--fills-background-primary, #FFFFFF)', borderRight: '1px solid #E5E7EB' }}>
|
|
115
|
+
<Navigation {...args} />
|
|
116
|
+
</div>
|
|
117
|
+
),
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Mobile viewport
|
|
121
|
+
export const Mobile: Story = {
|
|
122
|
+
args: {
|
|
123
|
+
isCollapsed: false,
|
|
124
|
+
activeItem: 'home',
|
|
125
|
+
},
|
|
126
|
+
parameters: {
|
|
127
|
+
viewport: {
|
|
128
|
+
defaultViewport: 'mobile1',
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
render: (args) => (
|
|
132
|
+
<div style={{ width: '100%', height: '100vh', background: 'var(--fills-background-primary, #FFFFFF)' }}>
|
|
133
|
+
<Navigation {...args} />
|
|
134
|
+
</div>
|
|
135
|
+
),
|
|
136
|
+
}
|
|
137
|
+
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
-
declare const Accordion: React.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
-
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
8
|
-
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/components/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAKhE,QAAA,MAAM,SAAS,8JAA0B,CAAC;AAE1C,QAAA,MAAM,aAAa,iKAKjB,CAAC;AAGH,QAAA,MAAM,gBAAgB,0KAiBpB,CAAC;AAGH,QAAA,MAAM,gBAAgB,oKAWpB,CAAC;AAIH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
3
|
-
declare const AlertDialog: React.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
4
|
-
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
-
declare const AlertDialogPortal: React.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
6
|
-
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
declare const AlertDialogHeader: {
|
|
9
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
12
|
-
declare const AlertDialogFooter: {
|
|
13
|
-
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
17
|
-
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
18
|
-
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
-
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
21
|
-
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAKrE,QAAA,MAAM,WAAW,iDAA4B,CAAC;AAE9C,QAAA,MAAM,kBAAkB,wHAA+B,CAAC;AAExD,QAAA,MAAM,iBAAiB,uDAA8B,CAAC;AAEtD,QAAA,MAAM,kBAAkB,wKAYtB,CAAC;AAGH,QAAA,MAAM,kBAAkB,wKAetB,CAAC;AAGH,QAAA,MAAM,iBAAiB;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEvF,CAAC;AAGF,QAAA,MAAM,iBAAiB;8BAA6B,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAEvF,CAAC;AAGF,QAAA,MAAM,gBAAgB,8KAKpB,CAAC;AAGH,QAAA,MAAM,sBAAsB,wLAK1B,CAAC;AAGH,QAAA,MAAM,iBAAiB,6KAKrB,CAAC;AAGH,QAAA,MAAM,iBAAiB,6KASrB,CAAC;AAGH,OAAO,EACL,WAAW,EACX,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,iBAAiB,GAClB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: {
|
|
4
|
-
variant?: "default" | "destructive";
|
|
5
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
7
|
-
declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
8
|
-
export { Alert, AlertTitle, AlertDescription };
|
|
9
|
-
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../../src/v2/shadcn/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAmBlE,QAAA,MAAM,KAAK;;8GAKT,CAAC;AAGH,QAAA,MAAM,UAAU,uHAIf,CAAC;AAGF,QAAA,MAAM,gBAAgB,yHAIrB,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
2
|
-
declare const AspectRatio: import("react").ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
-
export { AspectRatio };
|
|
4
|
-
//# sourceMappingURL=aspect-ratio.d.ts.map
|