@tulip-systems/core 0.5.8 → 0.5.10
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/components/client.mjs +7 -7
- package/dist/components/common/icons.d.mts +2 -2
- package/dist/components/common/status.d.mts +3 -3
- package/dist/components/editor/components/content.client.d.mts +2 -2
- package/dist/components/editor/components/editor.client.d.mts +5 -5
- package/dist/components/editor/components/editor.client.d.mts.map +1 -1
- package/dist/components/editor/components/menu.client.d.mts +3 -3
- package/dist/components/editor/components/menu.client.mjs +1 -1
- package/dist/components/editor/lib/constants.d.mts +27 -27
- package/dist/components/header/back-button.client.d.mts +2 -2
- package/dist/components/header/bottom-bar.client.d.mts +3 -3
- package/dist/components/header/bottom-bar.client.mjs +1 -1
- package/dist/components/header/breadcrumbs.client.d.mts +7 -7
- package/dist/components/header/breadcrumbs.client.mjs +1 -1
- package/dist/components/header/header.client.d.mts +2 -2
- package/dist/components/header/mobile-nav-switcher.client.d.mts +2 -2
- package/dist/components/header/top-bar.client.d.mts +4 -4
- package/dist/components/header/top-bar.client.mjs +1 -1
- package/dist/components/layouts/admin-content.client.d.mts +2 -2
- package/dist/components/layouts/admin-error-pages.d.mts +23 -0
- package/dist/components/layouts/admin-error-pages.d.mts.map +1 -0
- package/dist/components/layouts/admin-error-pages.mjs +60 -0
- package/dist/components/layouts/admin-error-pages.mjs.map +1 -0
- package/dist/components/layouts/admin-layout.d.mts +2 -2
- package/dist/components/layouts/admin-layout.d.mts.map +1 -1
- package/dist/components/layouts/admin-loading.d.mts +2 -2
- package/dist/components/layouts/empty-page.d.mts +4 -4
- package/dist/components/layouts/empty-page.mjs.map +1 -1
- package/dist/components/layouts/error-page.d.mts +35 -10
- package/dist/components/layouts/error-page.d.mts.map +1 -1
- package/dist/components/layouts/error-page.mjs +36 -40
- package/dist/components/layouts/error-page.mjs.map +1 -1
- package/dist/components/layouts/error-sections.d.mts +29 -0
- package/dist/components/layouts/error-sections.d.mts.map +1 -0
- package/dist/components/layouts/error-sections.mjs +47 -0
- package/dist/components/layouts/error-sections.mjs.map +1 -0
- package/dist/components/layouts/list-layout.d.mts +2 -2
- package/dist/components/layouts/providers.client.d.mts +2 -2
- package/dist/components/layouts/root-error-pages.d.mts +10 -0
- package/dist/components/layouts/root-error-pages.d.mts.map +1 -0
- package/dist/components/layouts/root-error-pages.mjs +17 -0
- package/dist/components/layouts/root-error-pages.mjs.map +1 -0
- package/dist/components/layouts/root-layout.server.d.mts +2 -2
- package/dist/components/layouts/root-layout.server.d.mts.map +1 -1
- package/dist/components/layouts/root-loading.d.mts +2 -2
- package/dist/components/layouts/tab-layout.d.mts +2 -2
- package/dist/components/layouts/tab-layout.mjs +1 -1
- package/dist/components/lists/data-list.d.mts +5 -5
- package/dist/components/lists/data-stack.d.mts +8 -8
- package/dist/components/navigation/admin-sidebar-header.client.mjs +2 -2
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts +10 -10
- package/dist/components/navigation/admin-sidebar-paths.client.d.mts.map +1 -1
- package/dist/components/navigation/admin-sidebar-paths.client.mjs +1 -1
- package/dist/components/navigation/admin-sidebar-skeleton.mjs +1 -1
- package/dist/components/ui/accordion.d.mts +5 -5
- package/dist/components/ui/alert-dialog.d.mts +12 -12
- package/dist/components/ui/alert.d.mts +4 -4
- package/dist/components/ui/aspect-ratio.d.mts +2 -2
- package/dist/components/ui/avatar.client.d.mts +4 -4
- package/dist/components/ui/avatar.client.d.mts.map +1 -1
- package/dist/components/ui/badge.d.mts +2 -2
- package/dist/components/ui/breadcrumb.d.mts +8 -8
- package/dist/components/ui/button.d.mts +3 -3
- package/dist/components/ui/calendar.d.mts +3 -3
- package/dist/components/ui/card.d.mts +7 -7
- package/dist/components/ui/carousel.d.mts +6 -6
- package/dist/components/ui/chart.client.d.mts +5 -5
- package/dist/components/ui/chart.client.d.mts.map +1 -1
- package/dist/components/ui/checkbox.d.mts +2 -2
- package/dist/components/ui/collapsible.client.d.mts +4 -4
- package/dist/components/ui/collapsible.client.d.mts.map +1 -1
- package/dist/components/ui/color-picker.client.d.mts +2 -2
- package/dist/components/ui/color-picker.client.d.mts.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.d.mts +2 -2
- package/dist/components/ui/combobox-dropdown.client.d.mts.map +1 -1
- package/dist/components/ui/combobox-dropdown.client.mjs +1 -1
- package/dist/components/ui/combobox.client.d.mts +2 -2
- package/dist/components/ui/combobox.client.d.mts.map +1 -1
- package/dist/components/ui/combobox.client.mjs +1 -1
- package/dist/components/ui/command.d.mts +10 -10
- package/dist/components/ui/context-menu.d.mts +16 -16
- package/dist/components/ui/date-picker.client.d.mts +2 -2
- package/dist/components/ui/date-picker.client.d.mts.map +1 -1
- package/dist/components/ui/date-picker.client.mjs +1 -1
- package/dist/components/ui/dialog.client.d.mts +11 -11
- package/dist/components/ui/dialog.client.d.mts.map +1 -1
- package/dist/components/ui/drawer.client.d.mts +11 -11
- package/dist/components/ui/dropdown-menu.d.mts +16 -16
- package/dist/components/ui/form.client.d.mts +7 -7
- package/dist/components/ui/hover-card.client.d.mts +4 -4
- package/dist/components/ui/input-recipient.d.mts +2 -2
- package/dist/components/ui/input.d.mts +2 -2
- package/dist/components/ui/label.d.mts +2 -2
- package/dist/components/ui/navigation-menu.d.mts +9 -9
- package/dist/components/ui/pagination.d.mts +8 -8
- package/dist/components/ui/popover.d.mts +5 -5
- package/dist/components/ui/progress.client.d.mts +2 -2
- package/dist/components/ui/radio-group.d.mts +3 -3
- package/dist/components/ui/resizable.client.d.mts +4 -4
- package/dist/components/ui/scroll-area.d.mts +3 -3
- package/dist/components/ui/select.client.d.mts +11 -11
- package/dist/components/ui/separator.d.mts +2 -2
- package/dist/components/ui/sheet.client.d.mts +9 -9
- package/dist/components/ui/sidebar.client.d.mts +24 -24
- package/dist/components/ui/sidebar.client.mjs +2 -2
- package/dist/components/ui/skeleton.d.mts +2 -2
- package/dist/components/ui/slider.d.mts +2 -2
- package/dist/components/ui/sonner.client.d.mts +2 -2
- package/dist/components/ui/switch.d.mts +2 -2
- package/dist/components/ui/tabs.d.mts +5 -5
- package/dist/components/ui/textarea.d.mts +2 -2
- package/dist/components/ui/time-input.client.d.mts +2 -2
- package/dist/components/ui/toggle-group.client.d.mts +3 -3
- package/dist/components/ui/toggle.d.mts +2 -2
- package/dist/components/ui/tooltip.client.d.mts +5 -5
- package/dist/components/ui/tooltip.client.d.mts.map +1 -1
- package/dist/components.d.mts +5 -4
- package/dist/components.mjs +18 -17
- package/dist/lib/hooks/use-action.d.mts +2 -2
- package/dist/lib/hooks/use-indicator.d.mts +2 -2
- package/dist/lib.mjs +1 -1
- package/dist/modules/auth/components/allowed.client.d.mts +2 -2
- package/dist/modules/auth/components/allowed.client.d.mts.map +1 -1
- package/dist/modules/auth/components/auth-layout.server.d.mts +2 -2
- package/dist/modules/auth/components/auth-layout.server.d.mts.map +1 -1
- package/dist/modules/auth/components/auth-loading.d.mts +2 -2
- package/dist/modules/auth/components/auth-loading.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.d.mts +2 -2
- package/dist/modules/auth/components/create-first-user-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/create-first-user-page.client.mjs +1 -1
- package/dist/modules/auth/components/forget-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/forget-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/guard-first-user.server.d.mts +2 -2
- package/dist/modules/auth/components/guard-first-user.server.d.mts.map +1 -1
- package/dist/modules/auth/components/guard.server.d.mts +2 -2
- package/dist/modules/auth/components/guard.server.d.mts.map +1 -1
- package/dist/modules/auth/components/login-page.client.d.mts +2 -2
- package/dist/modules/auth/components/login-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/login-page.client.mjs +1 -1
- package/dist/modules/auth/components/reset-password-page.client.d.mts +2 -2
- package/dist/modules/auth/components/reset-password-page.client.d.mts.map +1 -1
- package/dist/modules/auth/components/reset-password-page.client.mjs +1 -1
- package/dist/modules/auth/components/update-password-command.d.mts +2 -2
- package/dist/modules/auth/components/update-password-command.d.mts.map +1 -1
- package/dist/modules/auth/db/schema.d.mts +73 -73
- package/dist/modules/auth/db/schema.d.mts.map +1 -1
- package/dist/modules/auth/handler/client.client.d.mts +137 -137
- package/dist/modules/auth/handler/client.client.d.mts.map +1 -1
- package/dist/modules/auth/handler/init.d.mts +131 -131
- package/dist/modules/auth/handler/init.d.mts.map +1 -1
- package/dist/modules/auth/hooks/use-permission.d.mts +3 -3
- package/dist/modules/auth/hooks/use-session.d.mts +4 -4
- package/dist/modules/auth/lib/helpers.server.d.mts +2 -2
- package/dist/modules/auth/lib/validators.d.mts +2 -2
- package/dist/modules/auth/lib/validators.d.mts.map +1 -1
- package/dist/modules/commands/components/click-command.client.d.mts +2 -2
- package/dist/modules/commands/components/command-trigger.client.d.mts +4 -4
- package/dist/modules/commands/components/command-trigger.client.d.mts.map +1 -1
- package/dist/modules/commands/components/command-trigger.client.mjs +1 -1
- package/dist/modules/commands/components/dialog-command.client.d.mts +8 -8
- package/dist/modules/commands/components/dialog-command.client.mjs +1 -1
- package/dist/modules/commands/components/dropdown-command.client.d.mts +5 -5
- package/dist/modules/commands/components/empty-command.client.d.mts +2 -2
- package/dist/modules/commands/components/form-dialog-command.client.d.mts +11 -11
- package/dist/modules/commands/components/form-dialog-command.client.mjs +1 -1
- package/dist/modules/commands/hooks/use-command-mutation.client.d.mts +1 -1
- package/dist/modules/commands/menus/context-menu.client.d.mts +2 -2
- package/dist/modules/commands/menus/dropdown-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/dropdown-menu.client.mjs +1 -1
- package/dist/modules/commands/menus/inline-menu.client.d.mts +3 -3
- package/dist/modules/commands/menus/responsive-menu.client.d.mts +3 -3
- package/dist/modules/commands/utils/archive-command.client.d.mts +3 -3
- package/dist/modules/commands/utils/delete-command.client.d.mts +3 -3
- package/dist/modules/data-tables/components/cell/common.client.d.mts +5 -5
- package/dist/modules/data-tables/components/column-header.d.mts +2 -2
- package/dist/modules/data-tables/components/column-header.d.mts.map +1 -1
- package/dist/modules/data-tables/components/filters/combobox.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/combobox.client.mjs +1 -1
- package/dist/modules/data-tables/components/filters/slider.client.d.mts +2 -2
- package/dist/modules/data-tables/components/filters/slider.client.mjs +1 -1
- package/dist/modules/data-tables/components/header.d.mts +4 -4
- package/dist/modules/data-tables/components/header.d.mts.map +1 -1
- package/dist/modules/data-tables/components/layout.d.mts +2 -2
- package/dist/modules/data-tables/components/layout.d.mts.map +1 -1
- package/dist/modules/data-tables/components/search-input.client.d.mts +2 -2
- package/dist/modules/data-tables/components/skeleton.d.mts +2 -2
- package/dist/modules/data-tables/components/skeleton.d.mts.map +1 -1
- package/dist/modules/data-tables/components/table.d.mts +7 -7
- package/dist/modules/data-tables/components/table.d.mts.map +1 -1
- package/dist/modules/data-tables/components/toolbar.d.mts +3 -3
- package/dist/modules/data-tables/components/toolbar.d.mts.map +1 -1
- package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
- package/dist/modules/data-tables/lib/converters/search.mjs +2 -2
- package/dist/modules/data-tables/lib/converters/search.mjs.map +1 -1
- package/dist/modules/data-tables/tables/data-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/common.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/drag-handle.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/cells/read-only.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/components/table.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.d.mts +2 -2
- package/dist/modules/data-tables/tables/inline-table/hooks/context.client.mjs +1 -1
- package/dist/modules/inline-edit/components/combobox-dropdown.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/combobox.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-input.client.mjs +1 -1
- package/dist/modules/inline-edit/components/date-picker.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/date-picker.client.mjs +1 -1
- package/dist/modules/inline-edit/components/editor.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-recipient.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input-toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/input.client.d.mts +4 -4
- package/dist/modules/inline-edit/components/select.client.d.mts +6 -6
- package/dist/modules/inline-edit/components/switch.client.d.mts +2 -2
- package/dist/modules/inline-edit/components/toggle.client.d.mts +2 -2
- package/dist/modules/inline-edit/hooks/context.client.d.mts +2 -2
- package/dist/modules/inline-edit/lib/variants.d.mts +2 -2
- package/dist/modules/router/lib/query-client.server.d.mts +2 -2
- package/dist/modules/storage/components/dropzone-context.client.d.mts +2 -2
- package/dist/modules/storage/components/dropzone.client.d.mts +5 -5
- package/dist/modules/storage/components/dropzone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/image-grid.client.d.mts +10 -3
- package/dist/modules/storage/components/image-grid.client.d.mts.map +1 -1
- package/dist/modules/storage/components/image-grid.client.mjs +10 -11
- package/dist/modules/storage/components/image-grid.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.d.mts +7 -2
- package/dist/modules/storage/components/upload-zone-context.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone-context.client.mjs.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.d.mts +6 -7
- package/dist/modules/storage/components/upload-zone.client.d.mts.map +1 -1
- package/dist/modules/storage/components/upload-zone.client.mjs +17 -28
- package/dist/modules/storage/components/upload-zone.client.mjs.map +1 -1
- package/dist/modules/storage/lib/router.server.d.mts +2321 -2321
- package/dist/modules/storage/lib/router.server.d.mts.map +1 -1
- package/dist/modules/storage/lib/schema.d.mts +92 -92
- package/dist/modules/storage/lib/schema.d.mts.map +1 -1
- package/dist/modules/storage/lib/schema.mjs +1 -1
- package/dist/modules/storage/lib/service.server.d.mts +21 -21
- package/dist/modules/storage/lib/service.server.mjs +1 -1
- package/dist/modules/storage/lib/validators.d.mts +90 -90
- package/dist/modules/storage/lib/validators.d.mts.map +1 -1
- package/package.json +1 -1
- package/src/components/entry.ts +3 -2
- package/src/components/layouts/admin-error-pages.tsx +109 -0
- package/src/components/layouts/empty-page.tsx +0 -17
- package/src/components/layouts/error-page.tsx +58 -44
- package/src/components/layouts/error-sections.tsx +52 -0
- package/src/components/layouts/root-error-pages.tsx +12 -0
- package/src/modules/data-tables/lib/converters/search.ts +2 -2
- package/src/modules/storage/components/image-grid.client.tsx +10 -8
- package/src/modules/storage/components/upload-zone-context.client.tsx +9 -2
- package/src/modules/storage/components/upload-zone.client.tsx +26 -44
- package/dist/components/layouts/not-allowed-page.d.mts +0 -22
- package/dist/components/layouts/not-allowed-page.d.mts.map +0 -1
- package/dist/components/layouts/not-allowed-page.mjs +0 -25
- package/dist/components/layouts/not-allowed-page.mjs.map +0 -1
- package/dist/components/layouts/not-found-page.d.mts +0 -8
- package/dist/components/layouts/not-found-page.d.mts.map +0 -1
- package/dist/components/layouts/not-found-page.mjs +0 -20
- package/dist/components/layouts/not-found-page.mjs.map +0 -1
- package/dist/components/layouts/not-found-section.mjs +0 -30
- package/dist/components/layouts/not-found-section.mjs.map +0 -1
- package/src/components/layouts/not-allowed-page.tsx +0 -44
- package/src/components/layouts/not-found-page.tsx +0 -17
- package/src/components/layouts/not-found-section.tsx +0 -26
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Header } from "./header/header.client.mjs";
|
|
2
|
+
import { HeaderTopbarBackButton } from "./header/back-button.client.mjs";
|
|
3
|
+
import { HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList } from "./header/breadcrumbs.client.mjs";
|
|
3
4
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./ui/tooltip.client.mjs";
|
|
4
5
|
import { Editor, EditorContext, editorVariants } from "./editor/components/editor.client.mjs";
|
|
5
6
|
import { EditorContent } from "./editor/components/content.client.mjs";
|
|
6
7
|
import { ColorPicker } from "./ui/color-picker.client.mjs";
|
|
7
8
|
import { EditorMenuBubble, EditorMenuFixed } from "./editor/components/menu.client.mjs";
|
|
8
|
-
import {
|
|
9
|
+
import { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, useFormField } from "./ui/form.client.mjs";
|
|
10
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./ui/dialog.client.mjs";
|
|
9
11
|
import { BottomBar, BottomBarLinks } from "./header/bottom-bar.client.mjs";
|
|
10
|
-
import { HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList } from "./header/breadcrumbs.client.mjs";
|
|
11
|
-
import { Header } from "./header/header.client.mjs";
|
|
12
|
-
import { HeaderTopbarMobileNavSwitcher } from "./header/mobile-nav-switcher.client.mjs";
|
|
13
|
-
import { Topbar, TopbarTitle, TopbarTools } from "./header/top-bar.client.mjs";
|
|
14
12
|
import { AdminContent } from "./layouts/admin-content.client.mjs";
|
|
15
13
|
import { Toaster, toast } from "./ui/sonner.client.mjs";
|
|
16
14
|
import { Providers } from "./layouts/providers.client.mjs";
|
|
@@ -31,5 +29,7 @@ import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScro
|
|
|
31
29
|
import { TimePickerInput } from "./ui/time-picker-input.client.mjs";
|
|
32
30
|
import { TimeInput } from "./ui/time-input.client.mjs";
|
|
33
31
|
import { ToggleGroup, ToggleGroupItem } from "./ui/toggle-group.client.mjs";
|
|
32
|
+
import { HeaderTopbarMobileNavSwitcher } from "./header/mobile-nav-switcher.client.mjs";
|
|
33
|
+
import { Topbar, TopbarTitle, TopbarTools } from "./header/top-bar.client.mjs";
|
|
34
34
|
|
|
35
35
|
export { AdminContent, Avatar, AvatarFallback, AvatarImage, BottomBar, BottomBarLinks, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Progress, Providers, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, TimeInput, TimePickerInput, Toaster, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarTitle, TopbarTools, editorVariants, toast, useFormField, useSidebar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LucideIcon, LucideProps } from "lucide-react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime237 from "react/jsx-runtime";
|
|
3
3
|
import * as react8 from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/common/icons.d.ts
|
|
@@ -54,7 +54,7 @@ declare const Icons: {
|
|
|
54
54
|
home: react8.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react8.RefAttributes<SVGSVGElement>>;
|
|
55
55
|
mail: react8.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react8.RefAttributes<SVGSVGElement>>;
|
|
56
56
|
building: react8.ForwardRefExoticComponent<Omit<LucideProps, "ref"> & react8.RefAttributes<SVGSVGElement>>;
|
|
57
|
-
logo: (props: LucideProps) =>
|
|
57
|
+
logo: (props: LucideProps) => react_jsx_runtime237.JSX.Element;
|
|
58
58
|
};
|
|
59
59
|
//#endregion
|
|
60
60
|
export { Icon, Icons };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigWithIcon } from "../../lib/types/config.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime238 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/common/status.d.ts
|
|
5
5
|
/**
|
|
@@ -43,11 +43,11 @@ type StatusComponentProps<TStatus extends string> = {
|
|
|
43
43
|
/**
|
|
44
44
|
* Status column
|
|
45
45
|
*/
|
|
46
|
-
declare function StatusField<TStatus extends string>(props: StatusComponentProps<TStatus>):
|
|
46
|
+
declare function StatusField<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime238.JSX.Element;
|
|
47
47
|
/**
|
|
48
48
|
* Status badge
|
|
49
49
|
*/
|
|
50
|
-
declare function StatusBadge<TStatus extends string>(props: StatusComponentProps<TStatus>):
|
|
50
|
+
declare function StatusBadge<TStatus extends string>(props: StatusComponentProps<TStatus>): react_jsx_runtime238.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { CreateStatusComponentProps, StatusBadge, StatusField, createStatusConfig, createStatusVariants, findStatus };
|
|
53
53
|
//# sourceMappingURL=status.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/editor/components/content.client.d.ts
|
|
4
|
-
declare function EditorContent():
|
|
4
|
+
declare function EditorContent(): react_jsx_runtime48.JSX.Element;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { EditorContent };
|
|
7
7
|
//# sourceMappingURL=content.client.d.mts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EditorExtensionsConfig, EditorExtensionsConfigResult } from "../lib/extensions.mjs";
|
|
2
2
|
import { EditorJSONContent } from "../lib/types.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime49 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react0 from "react";
|
|
6
6
|
import { PropsWithChildren } from "react";
|
|
7
7
|
import { Content, Editor } from "@tiptap/react";
|
|
8
8
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
@@ -15,12 +15,12 @@ type EditorContextValue = {
|
|
|
15
15
|
editor: Editor;
|
|
16
16
|
extensions: EditorExtensionsConfigResult;
|
|
17
17
|
};
|
|
18
|
-
declare const EditorContext:
|
|
18
|
+
declare const EditorContext: react0.Context<EditorContextValue>;
|
|
19
19
|
/**
|
|
20
20
|
* Editor variants
|
|
21
21
|
*/
|
|
22
22
|
declare const editorVariants: (props?: ({
|
|
23
|
-
variant?: "
|
|
23
|
+
variant?: "default" | "table" | "preview" | null | undefined;
|
|
24
24
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
25
25
|
/**
|
|
26
26
|
* Editor context provider
|
|
@@ -42,7 +42,7 @@ declare function Editor$1({
|
|
|
42
42
|
variant,
|
|
43
43
|
className,
|
|
44
44
|
children
|
|
45
|
-
}: EditorProps):
|
|
45
|
+
}: EditorProps): react_jsx_runtime49.JSX.Element | null;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { Editor$1 as Editor, EditorContext, EditorProps, editorVariants };
|
|
48
48
|
//# sourceMappingURL=editor.client.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/editor.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;KAkBK,kBAAA;UACK;EADL,UAAA,EAES,4BADJ;AAIV,CAAA;AAKa,cALA,aAkBX,EAlBwB,MAAA,CAAA,OAkBxB,CAlBwB,kBAkBxB,CAAA;AAKF;;;AAEY,cApBC,cAoBD,EAAA,CAAA,KACK,CADL,EAAA,CAAA;EACa,OAAA,CAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"editor.client.d.mts","names":[],"sources":["../../../../src/components/editor/components/editor.client.tsx"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;KAkBK,kBAAA;UACK;EADL,UAAA,EAES,4BADJ;AAIV,CAAA;AAKa,cALA,aAkBX,EAlBwB,MAAA,CAAA,OAkBxB,CAlBwB,kBAkBxB,CAAA;AAKF;;;AAEY,cApBC,cAoBD,EAAA,CAAA,KACK,CADL,EAAA,CAAA;EACa,OAAA,CAAA,EAAA,SAAA,GAAA,OAAA,GAAA,SAAA,GAAA,IAAA,GAAA,SAAA;CAAR,GARf,+BAAA,CAAA,SAQe,CAAA,GAAA,SAAA,EAAA,GAAA,MAAA;;;;AAFE,KADP,WAAA,GAAc,YACP,CAAA,OAD2B,cAC3B,CAAA,GAAjB,iBAAiB,CAAA;EASH,KAAA,CAAA,EARJ,OAQU;EACpB,UAAA,CAAA,EARe,OAQf,CARuB,sBAQvB,CAAA;EACA,QAAA,CAAA,EAAA,CAAA,KAAA,EARqB,iBAQrB,EAAA,GAAA,IAAA;EACA,MAAA,CAAA,EAAA,CAAA,KAAA,EARmB,iBAQnB,EAAA,GAAA,IAAA;EACA,QAAA,CAAA,EAAA,OAAA;EACA,SAAA,CAAA,EAAA,MAAA;CACA,CAAA;AACA,iBAPc,QAAA,CAOd;EAAA,KAAA;EAAA,UAAA;EAAA,QAAA;EAAA,MAAA;EAAA,QAAA;EAAA,OAAA;EAAA,SAAA;EAAA;AAAA,CAAA,EAEC,WAFD,CAAA,EAEY,mBAAA,CAAA,GAAA,CAAA,OAAA,GAFZ,IAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime50 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
import { BubbleMenu } from "@tiptap/react/menus";
|
|
4
4
|
|
|
5
5
|
//#region src/components/editor/components/menu.client.d.ts
|
|
6
|
-
declare function EditorMenuFixed(props: React.ComponentProps<"div">):
|
|
7
|
-
declare function EditorMenuBubble(props: ComponentProps<typeof BubbleMenu>):
|
|
6
|
+
declare function EditorMenuFixed(props: React.ComponentProps<"div">): react_jsx_runtime50.JSX.Element;
|
|
7
|
+
declare function EditorMenuBubble(props: ComponentProps<typeof BubbleMenu>): react_jsx_runtime50.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { EditorMenuBubble, EditorMenuFixed };
|
|
10
10
|
//# sourceMappingURL=menu.client.d.mts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { cn } from "../../../lib/utils/cn.mjs";
|
|
2
2
|
import { Button } from "../../ui/button.mjs";
|
|
3
|
-
import { Popover, PopoverContent, PopoverTrigger } from "../../ui/popover.mjs";
|
|
4
3
|
import { EditorContext } from "./editor.client.mjs";
|
|
5
4
|
import { ColorPicker } from "../../ui/color-picker.client.mjs";
|
|
5
|
+
import { Popover, PopoverContent, PopoverTrigger } from "../../ui/popover.mjs";
|
|
6
6
|
import { EditorMenuNodes } from "./menu-nodes.client.mjs";
|
|
7
7
|
import { BaselineIcon, BoldIcon, EraserIcon, ItalicIcon, PaintBucketIcon, RedoIcon, StrikethroughIcon, UnderlineIcon, UndoIcon } from "lucide-react";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -14,7 +14,7 @@ import * as _tiptap_extension_underline0 from "@tiptap/extension-underline";
|
|
|
14
14
|
import * as _tiptap_extensions0 from "@tiptap/extensions";
|
|
15
15
|
import * as _tiptap_extension_highlight0 from "@tiptap/extension-highlight";
|
|
16
16
|
import * as _tiptap_extension_text_style0 from "@tiptap/extension-text-style";
|
|
17
|
-
import * as
|
|
17
|
+
import * as _tiptap_core12 from "@tiptap/core";
|
|
18
18
|
|
|
19
19
|
//#region src/components/editor/lib/constants.d.ts
|
|
20
20
|
/**
|
|
@@ -24,38 +24,38 @@ declare const EDITOR_EXTENSIONS: {
|
|
|
24
24
|
/**
|
|
25
25
|
* Nodes
|
|
26
26
|
*/
|
|
27
|
-
blockquote:
|
|
28
|
-
document:
|
|
29
|
-
hardBreak:
|
|
30
|
-
heading:
|
|
31
|
-
horizontalRule:
|
|
32
|
-
listItem:
|
|
33
|
-
orderedList:
|
|
34
|
-
bulletList:
|
|
35
|
-
paragraph:
|
|
36
|
-
text:
|
|
37
|
-
image:
|
|
38
|
-
fileHandler:
|
|
39
|
-
skeleton:
|
|
27
|
+
blockquote: _tiptap_core12.Node<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
|
|
28
|
+
document: _tiptap_core12.Node<any, any>;
|
|
29
|
+
hardBreak: _tiptap_core12.Node<_tiptap_extension_hard_break0.HardBreakOptions, any>;
|
|
30
|
+
heading: _tiptap_core12.Node<_tiptap_extension_heading0.HeadingOptions, any>;
|
|
31
|
+
horizontalRule: _tiptap_core12.Node<_tiptap_extension_horizontal_rule0.HorizontalRuleOptions, any>;
|
|
32
|
+
listItem: _tiptap_core12.Node<_tiptap_extension_list0.ListItemOptions, any>;
|
|
33
|
+
orderedList: _tiptap_core12.Node<_tiptap_extension_list0.OrderedListOptions, any>;
|
|
34
|
+
bulletList: _tiptap_core12.Node<_tiptap_extension_list0.BulletListOptions, any>;
|
|
35
|
+
paragraph: _tiptap_core12.Node<_tiptap_extension_paragraph0.ParagraphOptions, any>;
|
|
36
|
+
text: _tiptap_core12.Node<any, any>;
|
|
37
|
+
image: _tiptap_core12.Node<ImageOptions, any>;
|
|
38
|
+
fileHandler: _tiptap_core12.Extension<FileHandlerOptions, any>;
|
|
39
|
+
skeleton: _tiptap_core12.Node<any, any>;
|
|
40
40
|
/**
|
|
41
41
|
* Marks
|
|
42
42
|
*/
|
|
43
|
-
bold:
|
|
44
|
-
italic:
|
|
45
|
-
link:
|
|
46
|
-
strike:
|
|
47
|
-
underline:
|
|
48
|
-
highlight:
|
|
43
|
+
bold: _tiptap_core12.Mark<_tiptap_extension_bold0.BoldOptions, any>;
|
|
44
|
+
italic: _tiptap_core12.Mark<_tiptap_extension_italic0.ItalicOptions, any>;
|
|
45
|
+
link: _tiptap_core12.Mark<_tiptap_extension_link0.LinkOptions, any>;
|
|
46
|
+
strike: _tiptap_core12.Mark<_tiptap_extension_strike0.StrikeOptions, any>;
|
|
47
|
+
underline: _tiptap_core12.Mark<_tiptap_extension_underline0.UnderlineOptions, any>;
|
|
48
|
+
highlight: _tiptap_core12.Mark<_tiptap_extension_highlight0.HighlightOptions, any>;
|
|
49
49
|
/**
|
|
50
50
|
* Extensions
|
|
51
51
|
*/
|
|
52
|
-
dropcursor:
|
|
53
|
-
gapcursor:
|
|
54
|
-
undoRedo:
|
|
55
|
-
listKeymap:
|
|
56
|
-
trailingNode:
|
|
57
|
-
textStyle:
|
|
58
|
-
color:
|
|
52
|
+
dropcursor: _tiptap_core12.Extension<_tiptap_extensions0.DropcursorOptions, any>;
|
|
53
|
+
gapcursor: _tiptap_core12.Extension<any, any>;
|
|
54
|
+
undoRedo: _tiptap_core12.Extension<_tiptap_extensions0.UndoRedoOptions, any>;
|
|
55
|
+
listKeymap: _tiptap_core12.Extension<_tiptap_extension_list0.ListKeymapOptions, any>;
|
|
56
|
+
trailingNode: _tiptap_core12.Extension<_tiptap_extensions0.TrailingNodeOptions, any>;
|
|
57
|
+
textStyle: _tiptap_core12.Mark<_tiptap_extension_text_style0.TextStyleOptions, any>;
|
|
58
|
+
color: _tiptap_core12.Extension<_tiptap_extension_text_style0.ColorOptions, any>;
|
|
59
59
|
};
|
|
60
60
|
type EditorExtensions = typeof EDITOR_EXTENSIONS;
|
|
61
61
|
//#endregion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime52 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/header/back-button.client.d.ts
|
|
4
4
|
declare function HeaderTopbarBackButton({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.HtmlHTMLAttributes<HTMLButtonElement>):
|
|
7
|
+
}: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime52.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HeaderTopbarBackButton };
|
|
10
10
|
//# sourceMappingURL=back-button.client.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Path } from "../../modules/config/paths/types.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime53 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/header/bottom-bar.client.d.ts
|
|
@@ -11,7 +11,7 @@ type BottomBarProps = {
|
|
|
11
11
|
};
|
|
12
12
|
declare function BottomBar({
|
|
13
13
|
children
|
|
14
|
-
}: BottomBarProps):
|
|
14
|
+
}: BottomBarProps): react_jsx_runtime53.JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* Bottombar link component
|
|
17
17
|
*/
|
|
@@ -23,7 +23,7 @@ declare function BottomBarLinks({
|
|
|
23
23
|
paths,
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: BottomBarLinksProps):
|
|
26
|
+
}: BottomBarLinksProps): react_jsx_runtime53.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps };
|
|
29
29
|
//# sourceMappingURL=bottom-bar.client.d.mts.map
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { cn } from "../../lib/utils/cn.mjs";
|
|
4
4
|
import { Allowed } from "../../modules/auth/components/allowed.client.mjs";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
import Link from "next/link";
|
|
7
6
|
import { useSelectedLayoutSegment } from "next/navigation";
|
|
7
|
+
import Link from "next/link";
|
|
8
8
|
|
|
9
9
|
//#region src/components/header/bottom-bar.client.tsx
|
|
10
10
|
function BottomBar({ children }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BreadcrumbSeparator } from "../ui/breadcrumb.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime55 from "react/jsx-runtime";
|
|
3
3
|
import { PropsWithChildren } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/header/breadcrumbs.client.d.ts
|
|
@@ -10,26 +10,26 @@ type HeaderBreadcrumb = {
|
|
|
10
10
|
type HeaderBreadcrumbProps = {
|
|
11
11
|
breadcrumbs: HeaderBreadcrumb[];
|
|
12
12
|
};
|
|
13
|
-
declare function HeaderBreadcrumbs(props: PropsWithChildren):
|
|
13
|
+
declare function HeaderBreadcrumbs(props: PropsWithChildren): react_jsx_runtime55.JSX.Element;
|
|
14
14
|
declare const HeaderBreadcrumbSeparator: typeof BreadcrumbSeparator;
|
|
15
15
|
/**
|
|
16
16
|
* Dropdown menu
|
|
17
17
|
*/
|
|
18
|
-
declare function HeaderBreadcrumbsDropdownMenu(props: PropsWithChildren):
|
|
18
|
+
declare function HeaderBreadcrumbsDropdownMenu(props: PropsWithChildren): react_jsx_runtime55.JSX.Element;
|
|
19
19
|
declare function HeaderBreadcrumbsDropdownMenuItem(props: {
|
|
20
20
|
breadcrumb: HeaderBreadcrumb;
|
|
21
|
-
}):
|
|
21
|
+
}): react_jsx_runtime55.JSX.Element;
|
|
22
22
|
/**
|
|
23
23
|
* Links
|
|
24
24
|
*/
|
|
25
25
|
declare function HeaderBreadcrumbsLink(props: {
|
|
26
26
|
breadcrumb: HeaderBreadcrumb;
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime55.JSX.Element;
|
|
28
28
|
/**
|
|
29
29
|
* Lists
|
|
30
30
|
*/
|
|
31
|
-
declare function HeaderBreadcrumbsMobileList(props: PropsWithChildren):
|
|
32
|
-
declare function HeaderBreadcrumbsDesktopList(props: PropsWithChildren):
|
|
31
|
+
declare function HeaderBreadcrumbsMobileList(props: PropsWithChildren): react_jsx_runtime55.JSX.Element;
|
|
32
|
+
declare function HeaderBreadcrumbsDesktopList(props: PropsWithChildren): react_jsx_runtime55.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList };
|
|
35
35
|
//# sourceMappingURL=breadcrumbs.client.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../ui/dropdown-menu.mjs";
|
|
2
1
|
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "../ui/breadcrumb.mjs";
|
|
2
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../ui/dropdown-menu.mjs";
|
|
3
3
|
import { ScrollArea } from "../ui/scroll-area.mjs";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import Link from "next/link";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/header/header.client.d.ts
|
|
@@ -6,7 +6,7 @@ declare function Header({
|
|
|
6
6
|
children,
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: ComponentProps<"header">):
|
|
9
|
+
}: ComponentProps<"header">): react_jsx_runtime61.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Header };
|
|
12
12
|
//# sourceMappingURL=header.client.d.mts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/header/mobile-nav-switcher.client.d.ts
|
|
4
4
|
declare function HeaderTopbarMobileNavSwitcher({
|
|
5
5
|
className,
|
|
6
6
|
...props
|
|
7
|
-
}: React.HtmlHTMLAttributes<HTMLButtonElement>):
|
|
7
|
+
}: React.HtmlHTMLAttributes<HTMLButtonElement>): react_jsx_runtime62.JSX.Element;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { HeaderTopbarMobileNavSwitcher };
|
|
10
10
|
//# sourceMappingURL=mobile-nav-switcher.client.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HeaderBreadcrumb } from "./breadcrumbs.client.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime63 from "react/jsx-runtime";
|
|
3
3
|
import React from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/header/top-bar.client.d.ts
|
|
@@ -11,7 +11,7 @@ type TopbarProps = {
|
|
|
11
11
|
};
|
|
12
12
|
declare function Topbar({
|
|
13
13
|
children
|
|
14
|
-
}: TopbarProps):
|
|
14
|
+
}: TopbarProps): react_jsx_runtime63.JSX.Element;
|
|
15
15
|
/**
|
|
16
16
|
* Topbar title component
|
|
17
17
|
*/
|
|
@@ -26,7 +26,7 @@ declare function TopbarTitle({
|
|
|
26
26
|
isDeleted,
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: TopbarTitleProps):
|
|
29
|
+
}: TopbarTitleProps): react_jsx_runtime63.JSX.Element;
|
|
30
30
|
/**
|
|
31
31
|
* Topbar tools component
|
|
32
32
|
*/
|
|
@@ -37,7 +37,7 @@ declare function TopbarTools({
|
|
|
37
37
|
children,
|
|
38
38
|
className,
|
|
39
39
|
...props
|
|
40
|
-
}: TopbarToolsProps):
|
|
40
|
+
}: TopbarToolsProps): react_jsx_runtime63.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps };
|
|
43
43
|
//# sourceMappingURL=top-bar.client.d.mts.map
|
|
@@ -3,8 +3,8 @@ import { cn } from "../../lib/utils/cn.mjs";
|
|
|
3
3
|
import { Badge } from "../ui/badge.mjs";
|
|
4
4
|
import { HeaderTopbarBackButton } from "./back-button.client.mjs";
|
|
5
5
|
import { HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList } from "./breadcrumbs.client.mjs";
|
|
6
|
-
import { HeaderTopbarMobileNavSwitcher } from "./mobile-nav-switcher.client.mjs";
|
|
7
6
|
import { Indicator } from "./indicator.client.mjs";
|
|
7
|
+
import { HeaderTopbarMobileNavSwitcher } from "./mobile-nav-switcher.client.mjs";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Fragment as Fragment$1 } from "react";
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ScrollArea } from "../ui/scroll-area.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime66 from "react/jsx-runtime";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/layouts/admin-content.client.d.ts
|
|
@@ -7,7 +7,7 @@ declare function AdminContent({
|
|
|
7
7
|
children,
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: ComponentProps<typeof ScrollArea>):
|
|
10
|
+
}: ComponentProps<typeof ScrollArea>): react_jsx_runtime66.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { AdminContent };
|
|
13
13
|
//# sourceMappingURL=admin-content.client.d.mts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as react_jsx_runtime240 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/components/layouts/admin-error-pages.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* Admin Not Found Page
|
|
6
|
+
*/
|
|
7
|
+
declare function AdminNotFoundPage(): react_jsx_runtime240.JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Admin Not Allowed Page
|
|
10
|
+
*/
|
|
11
|
+
declare function AdminNotAllowedPage(): react_jsx_runtime240.JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* ErrorPage
|
|
14
|
+
* - If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
15
|
+
* - If the error is a ServerError and the code is "NOT_FOUND", show the NotFoundSection
|
|
16
|
+
* - Else show the ErrorPage
|
|
17
|
+
*/
|
|
18
|
+
declare function AdminErrorPage(props: {
|
|
19
|
+
error: Error;
|
|
20
|
+
}): react_jsx_runtime240.JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { AdminErrorPage, AdminNotAllowedPage, AdminNotFoundPage };
|
|
23
|
+
//# sourceMappingURL=admin-error-pages.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-error-pages.d.mts","names":[],"sources":["../../../src/components/layouts/admin-error-pages.tsx"],"sourcesContent":[],"mappings":";;;;;;AAcgB,iBAAA,iBAAA,CAAA,CAAiB,EAAA,oBAAA,CAAA,GAAA,CAAA,OAAA;AAmBjC;AAsBA;;iBAtBgB,mBAAA,CAAA,GAAmB,oBAAA,CAAA,GAAA,CAAA;;;;;;;iBAsBnB,cAAA;SAA+B;IAAO,oBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ServerError } from "../../modules/router/lib/error.server.mjs";
|
|
2
|
+
import { Header } from "../header/header.client.mjs";
|
|
3
|
+
import { Topbar, TopbarTitle } from "../header/top-bar.client.mjs";
|
|
4
|
+
import { DefaultErrorSection, NotAllowedSection, NotFoundSection, ServerErrorSection } from "./error-sections.mjs";
|
|
5
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/components/layouts/admin-error-pages.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Admin Not Found Page
|
|
10
|
+
*/
|
|
11
|
+
function AdminNotFoundPage() {
|
|
12
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "404" }] }) }) }), /* @__PURE__ */ jsx("div", {
|
|
13
|
+
className: "p-content",
|
|
14
|
+
children: /* @__PURE__ */ jsx(NotFoundSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
|
|
15
|
+
})] });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Admin Not Allowed Page
|
|
19
|
+
*/
|
|
20
|
+
function AdminNotAllowedPage() {
|
|
21
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "Unauthorized" }] }) }) }), /* @__PURE__ */ jsx("div", {
|
|
22
|
+
className: "p-content",
|
|
23
|
+
children: /* @__PURE__ */ jsx(NotAllowedSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
|
|
24
|
+
})] });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* ErrorPage
|
|
28
|
+
* - If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
29
|
+
* - If the error is a ServerError and the code is "NOT_FOUND", show the NotFoundSection
|
|
30
|
+
* - Else show the ErrorPage
|
|
31
|
+
*/
|
|
32
|
+
function AdminErrorPage(props) {
|
|
33
|
+
const serverErrorCode = props.error instanceof ServerError ? props.error.code : void 0;
|
|
34
|
+
/**
|
|
35
|
+
* If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
36
|
+
*/
|
|
37
|
+
if (serverErrorCode === "UNAUTHORIZED") return /* @__PURE__ */ jsx(AdminNotAllowedPage, {});
|
|
38
|
+
/**
|
|
39
|
+
* If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
40
|
+
*/
|
|
41
|
+
if (serverErrorCode === "NOT_FOUND") return /* @__PURE__ */ jsx(AdminNotFoundPage, {});
|
|
42
|
+
/**
|
|
43
|
+
* If the error is a ServerError and the code is "UNAUTHORIZED", show the NotAllowedPage
|
|
44
|
+
*/
|
|
45
|
+
if (serverErrorCode === "INTERNAL_SERVER_ERROR") return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "Server Error" }] }) }) }), /* @__PURE__ */ jsx("div", {
|
|
46
|
+
className: "p-content",
|
|
47
|
+
children: /* @__PURE__ */ jsx(ServerErrorSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
|
|
48
|
+
})] });
|
|
49
|
+
/**
|
|
50
|
+
* Else show the ErrorPage
|
|
51
|
+
*/
|
|
52
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Header, { children: /* @__PURE__ */ jsx(Topbar, { children: /* @__PURE__ */ jsx(TopbarTitle, { breadcrumbs: [{ label: "Error" }] }) }) }), /* @__PURE__ */ jsx("div", {
|
|
53
|
+
className: "p-content",
|
|
54
|
+
children: /* @__PURE__ */ jsx(DefaultErrorSection, { className: "min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]" })
|
|
55
|
+
})] });
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { AdminErrorPage, AdminNotAllowedPage, AdminNotFoundPage };
|
|
60
|
+
//# sourceMappingURL=admin-error-pages.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-error-pages.mjs","names":["serverErrorCode: CommonORPCErrorCode"],"sources":["../../../src/components/layouts/admin-error-pages.tsx"],"sourcesContent":["import { ServerError } from \"@/modules/router/lib/error.server\";\nimport { CommonORPCErrorCode } from \"@orpc/client\";\nimport { Header } from \"../header/header.client\";\nimport { Topbar, TopbarTitle } from \"../header/top-bar.client\";\nimport {\n DefaultErrorSection,\n NotAllowedSection,\n NotFoundSection,\n ServerErrorSection,\n} from \"./error-sections\";\n\n/**\n * Admin Not Found Page\n */\nexport function AdminNotFoundPage() {\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"404\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <NotFoundSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n}\n\n/**\n * Admin Not Allowed Page\n */\nexport function AdminNotAllowedPage() {\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"Unauthorized\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <NotAllowedSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n}\n\n/**\n * ErrorPage\n * - If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n * - If the error is a ServerError and the code is \"NOT_FOUND\", show the NotFoundSection\n * - Else show the ErrorPage\n */\nexport function AdminErrorPage(props: { error: Error }) {\n const serverErrorCode: CommonORPCErrorCode =\n props.error instanceof ServerError ? props.error.code : undefined;\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"UNAUTHORIZED\") {\n return <AdminNotAllowedPage />;\n }\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"NOT_FOUND\") {\n return <AdminNotFoundPage />;\n }\n\n /**\n * If the error is a ServerError and the code is \"UNAUTHORIZED\", show the NotAllowedPage\n */\n if (serverErrorCode === \"INTERNAL_SERVER_ERROR\") {\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"Server Error\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <ServerErrorSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n }\n\n /**\n * Else show the ErrorPage\n */\n return (\n <>\n <Header>\n <Topbar>\n <TopbarTitle breadcrumbs={[{ label: \"Error\" }]} />\n </Topbar>\n </Header>\n\n <div className=\"p-content\">\n <DefaultErrorSection className=\"min-h-[calc(100dvh-var(--header-top-bar-height)-var(--content)-var(--content))]\" />\n </div>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;AAcA,SAAgB,oBAAoB;AAClC,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,OAAO,CAAC,GAAI,GACzC,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,mBAAgB,WAAU,oFAAoF;GAC3G,IACL;;;;;AAOP,SAAgB,sBAAsB;AACpC,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,gBAAgB,CAAC,GAAI,GAClD,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,qBAAkB,WAAU,oFAAoF;GAC7G,IACL;;;;;;;;AAUP,SAAgB,eAAe,OAAyB;CACtD,MAAMA,kBACJ,MAAM,iBAAiB,cAAc,MAAM,MAAM,OAAO;;;;AAK1D,KAAI,oBAAoB,eACtB,QAAO,oBAAC,wBAAsB;;;;AAMhC,KAAI,oBAAoB,YACtB,QAAO,oBAAC,sBAAoB;;;;AAM9B,KAAI,oBAAoB,wBACtB,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,gBAAgB,CAAC,GAAI,GAClD,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,sBAAmB,WAAU,oFAAoF;GAC9G,IACL;;;;AAOP,QACE,4CACE,oBAAC,oBACC,oBAAC,oBACC,oBAAC,eAAY,aAAa,CAAC,EAAE,OAAO,SAAS,CAAC,GAAI,GAC3C,GACF,EAET,oBAAC;EAAI,WAAU;YACb,oBAAC,uBAAoB,WAAU,oFAAoF;GAC/G,IACL"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layouts/admin-layout.d.ts
|
|
5
|
-
declare function AdminLayout(props: PropsWithChildren):
|
|
5
|
+
declare function AdminLayout(props: PropsWithChildren): react_jsx_runtime47.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AdminLayout };
|
|
8
8
|
//# sourceMappingURL=admin-layout.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-layout.d.mts","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,QAAmB,oBAAiB,
|
|
1
|
+
{"version":3,"file":"admin-layout.d.mts","names":[],"sources":["../../../src/components/layouts/admin-layout.tsx"],"sourcesContent":[],"mappings":";;;;iBAGgB,WAAA,QAAmB,oBAAiB,mBAAA,CAAA,GAAA,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime243 from "react/jsx-runtime";
|
|
2
2
|
import { PropsWithChildren } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layouts/admin-loading.d.ts
|
|
5
|
-
declare function AdminLoadingLayout(props: PropsWithChildren):
|
|
5
|
+
declare function AdminLoadingLayout(props: PropsWithChildren): react_jsx_runtime243.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { AdminLoadingLayout };
|
|
8
8
|
//# sourceMappingURL=admin-loading.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime244 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps, HTMLAttributes } from "react";
|
|
3
3
|
import { Route } from "next";
|
|
4
4
|
|
|
@@ -15,17 +15,17 @@ declare function EmptyPage({
|
|
|
15
15
|
className,
|
|
16
16
|
children,
|
|
17
17
|
...props
|
|
18
|
-
}: ComponentProps<"div">):
|
|
18
|
+
}: ComponentProps<"div">): react_jsx_runtime244.JSX.Element;
|
|
19
19
|
declare function EmptyPageTitle({
|
|
20
20
|
className,
|
|
21
21
|
children,
|
|
22
22
|
...props
|
|
23
|
-
}: ComponentProps<"h2">):
|
|
23
|
+
}: ComponentProps<"h2">): react_jsx_runtime244.JSX.Element;
|
|
24
24
|
declare function EmptyPageDescription({
|
|
25
25
|
className,
|
|
26
26
|
children,
|
|
27
27
|
...props
|
|
28
|
-
}: ComponentProps<"p">):
|
|
28
|
+
}: ComponentProps<"p">): react_jsx_runtime244.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle };
|
|
31
31
|
//# sourceMappingURL=empty-page.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty-page.mjs","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport type { Route } from \"next\";\nimport type { ComponentProps, HTMLAttributes } from \"react\";\n\nexport type EmptyPageProps = HTMLAttributes<HTMLDivElement> & {\n title: string;\n description?: string;\n callToAction?: {\n href: Route;\n title: string;\n };\n};\n\nexport function EmptyPage({ className, children, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex h-full min-h-[30rem] w-full flex-col items-center justify-center gap-y-2 border border-dashed text-center\",\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nexport function EmptyPageTitle({ className, children, ...props }: ComponentProps<\"h2\">) {\n return (\n <h2 className={cn(\"text-lg font-bold tracking-tight\", className)} {...props}>\n {children}\n </h2>\n );\n}\n\nexport function EmptyPageDescription({ className, children, ...props }: ComponentProps<\"p\">) {\n return (\n <p className={cn(\"text-muted-foreground max-w-[40ch] text-sm\", className)} {...props}>\n {children}\n </p>\n );\n}\n
|
|
1
|
+
{"version":3,"file":"empty-page.mjs","names":[],"sources":["../../../src/components/layouts/empty-page.tsx"],"sourcesContent":["import { cn } from \"@/lib/utils/cn\";\nimport type { Route } from \"next\";\nimport type { ComponentProps, HTMLAttributes } from \"react\";\n\nexport type EmptyPageProps = HTMLAttributes<HTMLDivElement> & {\n title: string;\n description?: string;\n callToAction?: {\n href: Route;\n title: string;\n };\n};\n\nexport function EmptyPage({ className, children, ...props }: ComponentProps<\"div\">) {\n return (\n <div\n className={cn(\n \"flex h-full min-h-[30rem] w-full flex-col items-center justify-center gap-y-2 border border-dashed text-center\",\n className,\n )}\n {...props}\n >\n {children}\n </div>\n );\n}\n\nexport function EmptyPageTitle({ className, children, ...props }: ComponentProps<\"h2\">) {\n return (\n <h2 className={cn(\"text-lg font-bold tracking-tight\", className)} {...props}>\n {children}\n </h2>\n );\n}\n\nexport function EmptyPageDescription({ className, children, ...props }: ComponentProps<\"p\">) {\n return (\n <p className={cn(\"text-muted-foreground max-w-[40ch] text-sm\", className)} {...props}>\n {children}\n </p>\n );\n}\n"],"mappings":";;;;AAaA,SAAgB,UAAU,EAAE,WAAW,UAAU,GAAG,SAAgC;AAClF,QACE,oBAAC;EACC,WAAW,GACT,kHACA,UACD;EACD,GAAI;EAEH;GACG;;AAIV,SAAgB,eAAe,EAAE,WAAW,UAAU,GAAG,SAA+B;AACtF,QACE,oBAAC;EAAG,WAAW,GAAG,oCAAoC,UAAU;EAAE,GAAI;EACnE;GACE;;AAIT,SAAgB,qBAAqB,EAAE,WAAW,UAAU,GAAG,SAA8B;AAC3F,QACE,oBAAC;EAAE,WAAW,GAAG,8CAA8C,UAAU;EAAE,GAAI;EAC5E;GACC"}
|