@tulip-systems/core 0.9.0 → 0.10.1
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/commands.d.mts +3 -2
- package/dist/commands.mjs +2 -1
- package/dist/components/client.d.mts +2 -1
- package/dist/components/client.mjs +2 -1
- package/dist/components/editor/extensions/file-handler/extension.d.mts +1 -1
- package/dist/components/editor/extensions/image/extension.d.mts +1 -1
- package/dist/components/editor/extensions/skeleton/extension.mjs +1 -1
- package/dist/components/editor/lib/constants.d.mts +1 -1
- package/dist/components/editor/lib/extensions.d.mts +1 -1
- package/dist/components/editor/lib/helpers.d.mts +5 -1
- package/dist/components/editor/lib/helpers.mjs +8 -1
- package/dist/components/layouts/root-layout.server.d.mts +3 -2
- package/dist/components/layouts/root-layout.server.mjs +1 -3
- package/dist/components/server.d.mts +2 -2
- package/dist/components/themes/color-theme-provider.client.d.mts +27 -0
- package/dist/components/themes/color-theme-provider.client.mjs +59 -0
- package/dist/components/themes/color-theme.d.mts +29 -0
- package/dist/components/themes/color-theme.mjs +32 -0
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/item.d.mts +1 -1
- package/dist/components.d.mts +3 -2
- package/dist/components.mjs +3 -2
- package/dist/data-tables/client.d.mts +2 -1
- package/dist/data-tables/client.mjs +2 -1
- package/dist/modules/auth/handler/create-client.client.d.mts +4 -4
- package/dist/modules/commands/components/menus/context-menu.client.d.mts +6 -7
- package/dist/modules/commands/components/menus/dropdown-menu.client.d.mts +6 -7
- package/dist/modules/commands/components/menus/floating-menu.client.d.mts +6 -7
- package/dist/modules/commands/components/menus/inline-menu.client.d.mts +6 -7
- package/dist/modules/commands/components/menus/responsive-menu.client.d.mts +5 -6
- package/dist/modules/commands/components/render-command.mjs +3 -5
- package/dist/modules/commands/lib/builder.d.mts +114 -18
- package/dist/modules/commands/lib/builder.mjs +42 -7
- package/dist/modules/commands/lib/registery.d.mts +47 -14
- package/dist/modules/commands/lib/registery.mjs +76 -16
- package/dist/modules/commands/lib/utils.d.mts +11 -0
- package/dist/modules/commands/lib/utils.mjs +14 -0
- package/dist/modules/data-tables/components/footer.mjs +3 -0
- package/dist/modules/data-tables/hooks/use-context.client.d.mts +2 -2
- package/dist/modules/data-tables/lib/types.d.mts +3 -3
- package/dist/modules/data-tables/strategies/local/components.mjs +25 -0
- package/dist/modules/data-tables/strategies/local/strategy.d.mts +12 -0
- package/dist/modules/data-tables/strategies/local/strategy.mjs +31 -0
- package/dist/modules/inline/components/inputs/combobox-dropdown.client.d.mts +4 -3
- package/dist/modules/inline/components/inputs/combobox.client.d.mts +4 -3
- package/dist/modules/inline/components/inputs/date-time.client.d.mts +4 -3
- package/dist/modules/inline/components/inputs/editor.client.d.mts +4 -3
- package/dist/modules/inline/components/inputs/input.client.d.mts +7 -5
- package/dist/modules/inline/components/inputs/select.client.d.mts +4 -3
- package/dist/modules/inline/components/inputs/switch.client.d.mts +4 -3
- package/dist/modules/inline/lib/variants.d.mts +1 -1
- package/dist/modules/router/lib/query-client.d.mts +2 -1
- package/dist/modules/router/lib/query-client.mjs +2 -2
- package/dist/modules/storage/components/dropzone.client.d.mts +2 -2
- package/dist/modules/storage/lib/service.server.d.mts +21 -21
- package/dist/router.d.mts +2 -1
- package/dist/router.mjs +2 -1
- package/dist/src/components/editor/extensions/file-handler/extension.d.mts +1 -1
- package/dist/src/components/editor/extensions/image/extension.d.mts +1 -1
- package/dist/src/components/editor/extensions/skeleton/extension.mjs +1 -1
- package/dist/src/components/editor/lib/constants.d.mts +1 -1
- package/dist/src/components/editor/lib/extensions.d.mts +1 -1
- package/dist/src/components/editor/lib/helpers.d.mts +5 -1
- package/dist/src/components/editor/lib/helpers.mjs +8 -1
- package/dist/src/components/layouts/root-layout.server.d.mts +3 -2
- package/dist/src/components/layouts/root-layout.server.mjs +1 -3
- package/dist/src/components/themes/color-theme-provider.client.d.mts +27 -0
- package/dist/src/components/themes/color-theme-provider.client.mjs +59 -0
- package/dist/src/components/themes/color-theme.d.mts +29 -0
- package/dist/src/components/themes/color-theme.mjs +32 -0
- package/dist/src/components/ui/badge.d.mts +1 -1
- package/dist/src/components/ui/button-group.d.mts +1 -1
- package/dist/src/components/ui/button.d.mts +2 -2
- package/dist/src/components/ui/field.client.d.mts +1 -1
- package/dist/src/modules/commands/components/menus/context-menu.client.d.mts +6 -7
- package/dist/src/modules/commands/components/menus/dropdown-menu.client.d.mts +6 -7
- package/dist/src/modules/commands/components/menus/floating-menu.client.d.mts +6 -7
- package/dist/src/modules/commands/components/menus/inline-menu.client.d.mts +6 -7
- package/dist/src/modules/commands/components/menus/responsive-menu.client.d.mts +5 -6
- package/dist/src/modules/commands/components/render-command.mjs +3 -5
- package/dist/src/modules/commands/lib/builder.d.mts +114 -18
- package/dist/src/modules/commands/lib/builder.mjs +42 -7
- package/dist/src/modules/commands/lib/registery.d.mts +47 -14
- package/dist/src/modules/commands/lib/registery.mjs +76 -16
- package/dist/src/modules/commands/lib/utils.d.mts +11 -0
- package/dist/src/modules/commands/lib/utils.mjs +14 -0
- package/dist/src/modules/data-tables/components/footer.mjs +3 -0
- package/dist/src/modules/data-tables/hooks/use-context.client.d.mts +2 -2
- package/dist/src/modules/data-tables/lib/types.d.mts +3 -3
- package/dist/src/modules/data-tables/strategies/local/components.mjs +25 -0
- package/dist/src/modules/data-tables/strategies/local/strategy.d.mts +12 -0
- package/dist/src/modules/data-tables/strategies/local/strategy.mjs +31 -0
- package/dist/src/modules/inline/components/inputs/combobox-dropdown.client.d.mts +4 -3
- package/dist/src/modules/inline/components/inputs/combobox.client.d.mts +4 -3
- package/dist/src/modules/inline/components/inputs/date-time.client.d.mts +4 -3
- package/dist/src/modules/inline/components/inputs/editor.client.d.mts +4 -3
- package/dist/src/modules/inline/components/inputs/input.client.d.mts +7 -5
- package/dist/src/modules/inline/components/inputs/select.client.d.mts +4 -3
- package/dist/src/modules/inline/components/inputs/switch.client.d.mts +4 -3
- package/dist/src/modules/router/lib/query-client.d.mts +2 -1
- package/dist/src/modules/router/lib/query-client.mjs +2 -2
- package/package.json +1 -1
- package/src/components/editor/lib/helpers.ts +8 -0
- package/src/components/entry.client.ts +1 -1
- package/src/components/entry.ts +1 -1
- package/src/components/layouts/root-layout.server.tsx +4 -2
- package/src/components/themes/color-theme-provider.client.tsx +82 -0
- package/src/components/themes/color-theme.ts +32 -0
- package/src/modules/commands/components/menus/context-menu.client.tsx +11 -11
- package/src/modules/commands/components/menus/dropdown-menu.client.tsx +9 -10
- package/src/modules/commands/components/menus/floating-menu.client.tsx +9 -10
- package/src/modules/commands/components/menus/inline-menu.client.tsx +9 -10
- package/src/modules/commands/components/menus/responsive-menu.client.tsx +7 -8
- package/src/modules/commands/components/render-command.tsx +17 -13
- package/src/modules/commands/entry.ts +1 -0
- package/src/modules/commands/lib/builder.ts +216 -36
- package/src/modules/commands/lib/registery.ts +210 -47
- package/src/modules/commands/lib/utils.ts +10 -0
- package/src/modules/data-tables/components/footer.tsx +9 -0
- package/src/modules/data-tables/entry.client.ts +1 -0
- package/src/modules/data-tables/hooks/use-context.client.tsx +2 -2
- package/src/modules/data-tables/lib/types.ts +3 -3
- package/src/modules/data-tables/strategies/local/components.tsx +17 -0
- package/src/modules/data-tables/strategies/local/strategy.ts +33 -0
- package/src/modules/inline/components/inputs/combobox-dropdown.client.tsx +11 -5
- package/src/modules/inline/components/inputs/combobox.client.tsx +11 -5
- package/src/modules/inline/components/inputs/date-time.client.tsx +11 -5
- package/src/modules/inline/components/inputs/editor.client.tsx +11 -5
- package/src/modules/inline/components/inputs/input.client.tsx +21 -9
- package/src/modules/inline/components/inputs/select.client.tsx +11 -5
- package/src/modules/inline/components/inputs/switch.client.tsx +11 -5
- package/src/modules/router/entry.ts +1 -0
- package/src/modules/router/lib/query-client.ts +2 -2
- package/src/styles.css +317 -2
package/dist/commands.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { CommandCondition, CommandDef, CommandRender, CommandStatus, CommandUI, commandBuilder, createCommandBuilder } from "./src/modules/commands/lib/builder.mjs";
|
|
1
|
+
import { AnyCommandDef, CommandCondition, CommandDef, CommandFor, CommandRender, CommandStatus, CommandTag, CommandUI, ExtractCommandData, commandBuilder, createCommandBuilder } from "./src/modules/commands/lib/builder.mjs";
|
|
2
2
|
import { CommandMap, defineCommands } from "./src/modules/commands/lib/registery.mjs";
|
|
3
|
-
|
|
3
|
+
import { ensureArray } from "./src/modules/commands/lib/utils.mjs";
|
|
4
|
+
export { AnyCommandDef, CommandCondition, CommandDef, CommandFor, CommandMap, CommandRender, CommandStatus, CommandTag, CommandUI, ExtractCommandData, commandBuilder, createCommandBuilder, defineCommands, ensureArray };
|
package/dist/commands.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { commandBuilder, createCommandBuilder } from "./src/modules/commands/lib/builder.mjs";
|
|
2
2
|
import { defineCommands } from "./src/modules/commands/lib/registery.mjs";
|
|
3
|
+
import { ensureArray } from "./src/modules/commands/lib/utils.mjs";
|
|
3
4
|
|
|
4
|
-
export { commandBuilder, createCommandBuilder, defineCommands };
|
|
5
|
+
export { commandBuilder, createCommandBuilder, defineCommands, ensureArray };
|
|
@@ -12,6 +12,7 @@ import { Providers } from "../src/components/layouts/providers.client.mjs";
|
|
|
12
12
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../src/components/ui/tooltip.client.mjs";
|
|
13
13
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "../src/components/ui/sidebar.client.mjs";
|
|
14
14
|
import { Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths } from "../src/components/navigation/admin-sidebar-paths.client.mjs";
|
|
15
|
+
import { ColorThemeProvider, useColorTheme } from "../src/components/themes/color-theme-provider.client.mjs";
|
|
15
16
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "../src/components/ui/accordion.client.mjs";
|
|
16
17
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "../src/components/ui/alert-dialog.client.mjs";
|
|
17
18
|
import { AspectRatio } from "../src/components/ui/aspect-ratio.client.mjs";
|
|
@@ -45,4 +46,4 @@ import { Switch } from "../src/components/ui/switch.client.mjs";
|
|
|
45
46
|
import { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants } from "../src/components/ui/tabs.client.mjs";
|
|
46
47
|
import { Toggle, toggleVariants } from "../src/components/ui/toggle.client.mjs";
|
|
47
48
|
import { ToggleGroup, ToggleGroupItem } from "../src/components/ui/toggle-group.client.mjs";
|
|
48
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps, Calendar, CalendarDayButton, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps, ComboboxItem, ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandItemCheck, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DatePicker, DatePickerProps, DateTimeInput, DateTimeInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, EditorProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, InputGroup, InputGroupAddon, InputGroupButton, InputGroupDateInput, InputGroupDateTimeInput, InputGroupInput, InputGroupText, InputGroupTextarea, InputGroupTimeInput, Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, 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, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps, editorVariants, tabsListVariants, toast, toggleVariants, useCarousel, useFormField, useSidebar };
|
|
49
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, BottomBar, BottomBarLink, BottomBarLinks, BottomBarLinksProps, BottomBarProps, Calendar, CalendarDayButton, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, ColorThemeProvider, Combobox, ComboboxDropdown, ComboboxDropdownItem, ComboboxDropdownProps, ComboboxItem, ComboboxProps, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandItemCheck, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DatePicker, DatePickerProps, DateTimeInput, DateTimeInputProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, EditorProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumb, HeaderBreadcrumbProps, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, InputGroup, InputGroupAddon, InputGroupButton, InputGroupDateInput, InputGroupDateTimeInput, InputGroupInput, InputGroupText, InputGroupTextarea, InputGroupTimeInput, Path, PathGroup, PathGroupItems, PathGroupProps, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, 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, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarProps, TopbarTitle, TopbarTitleProps, TopbarTools, TopbarToolsProps, editorVariants, tabsListVariants, toast, toggleVariants, useCarousel, useColorTheme, useFormField, useSidebar };
|
|
@@ -17,6 +17,7 @@ import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHe
|
|
|
17
17
|
import { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "../src/components/ui/sidebar.client.mjs";
|
|
18
18
|
import { Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage } from "../src/components/ui/avatar.client.mjs";
|
|
19
19
|
import { Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths } from "../src/components/navigation/admin-sidebar-paths.client.mjs";
|
|
20
|
+
import { ColorThemeProvider, useColorTheme } from "../src/components/themes/color-theme-provider.client.mjs";
|
|
20
21
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "../src/components/ui/accordion.client.mjs";
|
|
21
22
|
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "../src/components/ui/alert-dialog.client.mjs";
|
|
22
23
|
import { AspectRatio } from "../src/components/ui/aspect-ratio.client.mjs";
|
|
@@ -46,4 +47,4 @@ import { ToggleGroup, ToggleGroupItem } from "../src/components/ui/toggle-group.
|
|
|
46
47
|
import { HeaderTopbarMobileNavSwitcher } from "../src/components/header/mobile-nav-switcher.client.mjs";
|
|
47
48
|
import { Topbar, TopbarTitle, TopbarTools } from "../src/components/header/top-bar.client.mjs";
|
|
48
49
|
|
|
49
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, BottomBar, BottomBarLinks, Calendar, CalendarDayButton, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, Combobox, ComboboxDropdown, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandItemCheck, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DatePicker, DateTimeInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, InputGroup, InputGroupAddon, InputGroupButton, InputGroupDateInput, InputGroupDateTimeInput, InputGroupInput, InputGroupText, InputGroupTextarea, InputGroupTimeInput, Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, 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, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarTitle, TopbarTools, editorVariants, tabsListVariants, toast, toggleVariants, useCarousel, useFormField, useSidebar };
|
|
50
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AdminContent, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, BottomBar, BottomBarLinks, Calendar, CalendarDayButton, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, ColorThemeProvider, Combobox, ComboboxDropdown, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandItemCheck, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DatePicker, DateTimeInput, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Editor, EditorContent, EditorContext, EditorMenuBubble, EditorMenuFixed, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Header, HeaderBreadcrumbSeparator, HeaderBreadcrumbs, HeaderBreadcrumbsDesktopList, HeaderBreadcrumbsDropdownMenu, HeaderBreadcrumbsDropdownMenuItem, HeaderBreadcrumbsLink, HeaderBreadcrumbsMobileList, HeaderTopbarBackButton, HeaderTopbarMobileNavSwitcher, HoverCard, HoverCardContent, HoverCardTrigger, InputGroup, InputGroupAddon, InputGroupButton, InputGroupDateInput, InputGroupDateTimeInput, InputGroupInput, InputGroupText, InputGroupTextarea, InputGroupTimeInput, Path, PathGroup, PathGroupItems, PathGroupTitle, PathItems, PathLink, PathSubItem, PathSubItemLink, Paths, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, 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, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Topbar, TopbarTitle, TopbarTools, editorVariants, tabsListVariants, toast, toggleVariants, useCarousel, useColorTheme, useFormField, useSidebar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FileHandlerOptions } from "@tiptap/extension-file-handler";
|
|
2
1
|
import "@tiptap/core";
|
|
2
|
+
import { FileHandlerOptions } from "@tiptap/extension-file-handler";
|
|
3
3
|
|
|
4
4
|
//#region src/components/editor/extensions/file-handler/extension.d.ts
|
|
5
5
|
interface FileHandlerOptions$1 extends FileHandlerOptions {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { SkeletonNodeRenderer } from "./renderer.mjs";
|
|
4
|
-
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
5
4
|
import { Node } from "@tiptap/core";
|
|
5
|
+
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/editor/extensions/skeleton/extension.ts
|
|
8
8
|
const Skeleton = Node.create({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { FileHandlerOptions } from "../extensions/file-handler/extension.mjs";
|
|
2
2
|
import { ImageOptions } from "../extensions/image/extension.mjs";
|
|
3
|
+
import * as _tiptap_core0 from "@tiptap/core";
|
|
3
4
|
import * as _tiptap_extension_blockquote0 from "@tiptap/extension-blockquote";
|
|
4
5
|
import * as _tiptap_extension_bold0 from "@tiptap/extension-bold";
|
|
5
6
|
import * as _tiptap_extension_hard_break0 from "@tiptap/extension-hard-break";
|
|
@@ -14,7 +15,6 @@ import * as _tiptap_extension_underline0 from "@tiptap/extension-underline";
|
|
|
14
15
|
import * as _tiptap_extension_highlight0 from "@tiptap/extension-highlight";
|
|
15
16
|
import * as _tiptap_extension_text_style0 from "@tiptap/extension-text-style";
|
|
16
17
|
import * as _tiptap_extensions0 from "@tiptap/extensions";
|
|
17
|
-
import * as _tiptap_core0 from "@tiptap/core";
|
|
18
18
|
|
|
19
19
|
//#region src/components/editor/lib/constants.d.ts
|
|
20
20
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FileHandlerOptions } from "../extensions/file-handler/extension.mjs";
|
|
2
2
|
import { ImageOptions } from "../extensions/image/extension.mjs";
|
|
3
3
|
import { EditorExtensions } from "./constants.mjs";
|
|
4
|
+
import "@tiptap/core";
|
|
4
5
|
import { BlockquoteOptions } from "@tiptap/extension-blockquote";
|
|
5
6
|
import { BoldOptions } from "@tiptap/extension-bold";
|
|
6
7
|
import { HardBreakOptions } from "@tiptap/extension-hard-break";
|
|
@@ -16,7 +17,6 @@ import "@tiptap/react";
|
|
|
16
17
|
import { HighlightOptions } from "@tiptap/extension-highlight";
|
|
17
18
|
import { ColorOptions, TextStyleOptions } from "@tiptap/extension-text-style";
|
|
18
19
|
import { DropcursorOptions, TrailingNodeOptions, UndoRedoOptions } from "@tiptap/extensions";
|
|
19
|
-
import "@tiptap/core";
|
|
20
20
|
|
|
21
21
|
//#region src/components/editor/lib/extensions.d.ts
|
|
22
22
|
/**
|
|
@@ -17,5 +17,9 @@ declare function convertEditorContentToHTML(content: EditorJSONContent): string;
|
|
|
17
17
|
* Convert editor content to markdown
|
|
18
18
|
*/
|
|
19
19
|
declare function convertEditorContentToMarkdown(content: EditorJSONContent): string;
|
|
20
|
+
/**
|
|
21
|
+
* Convert editor content to plain text
|
|
22
|
+
*/
|
|
23
|
+
declare function convertEditorContentToPlainText(content: EditorJSONContent): string;
|
|
20
24
|
//#endregion
|
|
21
|
-
export { convertEditorContentToHTML, convertEditorContentToMarkdown, convertHTMLToEditorContent, convertMarkdownToEditorContent };
|
|
25
|
+
export { convertEditorContentToHTML, convertEditorContentToMarkdown, convertEditorContentToPlainText, convertHTMLToEditorContent, convertMarkdownToEditorContent };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { markdownParser } from "../../../lib/utils/markdown.mjs";
|
|
2
|
+
import { generateText } from "@tiptap/core";
|
|
2
3
|
import Blockquote from "@tiptap/extension-blockquote";
|
|
3
4
|
import Bold from "@tiptap/extension-bold";
|
|
4
5
|
import Document from "@tiptap/extension-document";
|
|
@@ -63,6 +64,12 @@ function convertEditorContentToMarkdown(content) {
|
|
|
63
64
|
extensions: EXTENSIONS_FOR_GENERATION
|
|
64
65
|
});
|
|
65
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Convert editor content to plain text
|
|
69
|
+
*/
|
|
70
|
+
function convertEditorContentToPlainText(content) {
|
|
71
|
+
return generateText(content, EXTENSIONS_FOR_GENERATION);
|
|
72
|
+
}
|
|
66
73
|
|
|
67
74
|
//#endregion
|
|
68
|
-
export { convertEditorContentToHTML, convertEditorContentToMarkdown, convertHTMLToEditorContent, convertMarkdownToEditorContent };
|
|
75
|
+
export { convertEditorContentToHTML, convertEditorContentToMarkdown, convertEditorContentToPlainText, convertHTMLToEditorContent, convertMarkdownToEditorContent };
|
|
@@ -29,8 +29,9 @@ declare const generateRootLayoutMetadata: (config: TulipConfig) => {
|
|
|
29
29
|
/**
|
|
30
30
|
* Root layout
|
|
31
31
|
*/
|
|
32
|
+
type RootLayoutProps = PropsWithChildren;
|
|
32
33
|
declare function RootLayout({
|
|
33
34
|
children
|
|
34
|
-
}:
|
|
35
|
+
}: RootLayoutProps): react_jsx_runtime0.JSX.Element;
|
|
35
36
|
//#endregion
|
|
36
|
-
export { RootLayout, generateRootLayoutMetadata };
|
|
37
|
+
export { RootLayout, RootLayoutProps, generateRootLayoutMetadata };
|
|
@@ -29,12 +29,10 @@ const generateRootLayoutMetadata = (config) => ({
|
|
|
29
29
|
}]
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
/**
|
|
33
|
-
* Root layout
|
|
34
|
-
*/
|
|
35
32
|
function RootLayout({ children }) {
|
|
36
33
|
return /* @__PURE__ */ jsx("html", {
|
|
37
34
|
lang: "nl",
|
|
35
|
+
"data-theme": "tulip",
|
|
38
36
|
children: /* @__PURE__ */ jsx("body", {
|
|
39
37
|
className: cn("bg-background font-sans antialiased", registerFonts()),
|
|
40
38
|
children
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AdminLayout } from "../src/components/layouts/admin-layout.mjs";
|
|
2
|
-
import { RootLayout, generateRootLayoutMetadata } from "../src/components/layouts/root-layout.server.mjs";
|
|
3
|
-
export { AdminLayout, RootLayout, generateRootLayoutMetadata };
|
|
2
|
+
import { RootLayout, RootLayoutProps, generateRootLayoutMetadata } from "../src/components/layouts/root-layout.server.mjs";
|
|
3
|
+
export { AdminLayout, RootLayout, RootLayoutProps, generateRootLayoutMetadata };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ColorTheme } from "./color-theme.mjs";
|
|
2
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { PropsWithChildren } from "react";
|
|
4
|
+
|
|
5
|
+
//#region src/components/themes/color-theme-provider.client.d.ts
|
|
6
|
+
type ColorThemeContextValue = {
|
|
7
|
+
colorTheme: ColorTheme;
|
|
8
|
+
setColorTheme: (theme: ColorTheme) => void;
|
|
9
|
+
colorThemes: readonly ColorTheme[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Provides the current color theme and a setter to the component tree.
|
|
13
|
+
* The server provides the initial theme, then client interactions keep local state and the cookie in sync.
|
|
14
|
+
*/
|
|
15
|
+
declare function ColorThemeProvider({
|
|
16
|
+
children,
|
|
17
|
+
theme
|
|
18
|
+
}: PropsWithChildren<{
|
|
19
|
+
theme: ColorTheme;
|
|
20
|
+
}>): react_jsx_runtime0.JSX.Element;
|
|
21
|
+
/**
|
|
22
|
+
* Returns the active color theme context for client components.
|
|
23
|
+
* It throws early when used outside the provider so incorrect usage fails loudly.
|
|
24
|
+
*/
|
|
25
|
+
declare function useColorTheme(): ColorThemeContextValue;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { ColorThemeProvider, useColorTheme };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { COLOR_THEME_STORAGE_KEY, colorThemes } from "./color-theme.mjs";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { createContext, use, useCallback, useEffect, useLayoutEffect, useMemo, useState } from "react";
|
|
6
|
+
|
|
7
|
+
//#region src/components/themes/color-theme-provider.client.tsx
|
|
8
|
+
const ColorThemeContext = createContext(null);
|
|
9
|
+
/**
|
|
10
|
+
* Persists the chosen theme in a cookie so the server can resolve it on the next request.
|
|
11
|
+
* Cookie failures are ignored because theme changes should still work in local React state.
|
|
12
|
+
*/
|
|
13
|
+
function setStoredColorTheme(theme) {
|
|
14
|
+
try {
|
|
15
|
+
document.cookie = `${COLOR_THEME_STORAGE_KEY}=${theme}; path=/; max-age=31536000; samesite=lax`;
|
|
16
|
+
} catch {}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Provides the current color theme and a setter to the component tree.
|
|
20
|
+
* The server provides the initial theme, then client interactions keep local state and the cookie in sync.
|
|
21
|
+
*/
|
|
22
|
+
function ColorThemeProvider({ children, theme }) {
|
|
23
|
+
const [colorTheme, setColorThemeState] = useState(theme);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
setColorThemeState(theme);
|
|
26
|
+
}, [theme]);
|
|
27
|
+
useLayoutEffect(() => {
|
|
28
|
+
document.documentElement.dataset.theme = colorTheme;
|
|
29
|
+
}, [colorTheme]);
|
|
30
|
+
const setColorTheme = useCallback((theme) => {
|
|
31
|
+
setColorThemeState(theme);
|
|
32
|
+
setStoredColorTheme(theme);
|
|
33
|
+
}, []);
|
|
34
|
+
const value = useMemo(() => ({
|
|
35
|
+
colorTheme,
|
|
36
|
+
setColorTheme,
|
|
37
|
+
colorThemes
|
|
38
|
+
}), [colorTheme, setColorTheme]);
|
|
39
|
+
return /* @__PURE__ */ jsx(ColorThemeContext.Provider, {
|
|
40
|
+
value,
|
|
41
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
42
|
+
className: "contents",
|
|
43
|
+
"data-theme": colorTheme,
|
|
44
|
+
children
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Returns the active color theme context for client components.
|
|
50
|
+
* It throws early when used outside the provider so incorrect usage fails loudly.
|
|
51
|
+
*/
|
|
52
|
+
function useColorTheme() {
|
|
53
|
+
const context = use(ColorThemeContext);
|
|
54
|
+
if (!context) throw new Error("useColorTheme must be used within a ColorThemeProvider");
|
|
55
|
+
return context;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { ColorThemeProvider, useColorTheme };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { ReadonlyRequestCookies } from "next/dist/server/web/spec-extension/adapters/request-cookies";
|
|
3
|
+
|
|
4
|
+
//#region src/components/themes/color-theme.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Shared cookie key used by both server reads and client writes.
|
|
7
|
+
*/
|
|
8
|
+
declare const COLOR_THEME_STORAGE_KEY = "tulip-color-theme";
|
|
9
|
+
/**
|
|
10
|
+
* All supported color theme names.
|
|
11
|
+
*/
|
|
12
|
+
declare const colorThemes: readonly ["tulip", "rose", "iris", "sage"];
|
|
13
|
+
type ColorTheme = (typeof colorThemes)[number];
|
|
14
|
+
/**
|
|
15
|
+
* Validators
|
|
16
|
+
*/
|
|
17
|
+
declare const colorThemeSchema: z.ZodEnum<{
|
|
18
|
+
tulip: "tulip";
|
|
19
|
+
rose: "rose";
|
|
20
|
+
iris: "iris";
|
|
21
|
+
sage: "sage";
|
|
22
|
+
}>;
|
|
23
|
+
/**
|
|
24
|
+
* Resolves a validated color theme from either a raw string value or a cookie store.
|
|
25
|
+
* Invalid, missing, or unsupported values are treated as undefined.
|
|
26
|
+
*/
|
|
27
|
+
declare function getColorThemeValue(cookieStore: ReadonlyRequestCookies, fallback?: ColorTheme): ColorTheme;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { COLOR_THEME_STORAGE_KEY, ColorTheme, colorThemeSchema, colorThemes, getColorThemeValue };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/components/themes/color-theme.ts
|
|
4
|
+
/**
|
|
5
|
+
* Shared cookie key used by both server reads and client writes.
|
|
6
|
+
*/
|
|
7
|
+
const COLOR_THEME_STORAGE_KEY = "tulip-color-theme";
|
|
8
|
+
/**
|
|
9
|
+
* All supported color theme names.
|
|
10
|
+
*/
|
|
11
|
+
const colorThemes = [
|
|
12
|
+
"tulip",
|
|
13
|
+
"rose",
|
|
14
|
+
"iris",
|
|
15
|
+
"sage"
|
|
16
|
+
];
|
|
17
|
+
/**
|
|
18
|
+
* Validators
|
|
19
|
+
*/
|
|
20
|
+
const colorThemeSchema = z.enum(colorThemes, { error: "Invalid color theme" });
|
|
21
|
+
/**
|
|
22
|
+
* Resolves a validated color theme from either a raw string value or a cookie store.
|
|
23
|
+
* Invalid, missing, or unsupported values are treated as undefined.
|
|
24
|
+
*/
|
|
25
|
+
function getColorThemeValue(cookieStore, fallback = "tulip") {
|
|
26
|
+
const theme = cookieStore.get(COLOR_THEME_STORAGE_KEY)?.value;
|
|
27
|
+
const parsed = colorThemeSchema.safeParse(theme);
|
|
28
|
+
return parsed.success ? parsed.data : fallback;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//#endregion
|
|
32
|
+
export { COLOR_THEME_STORAGE_KEY, colorThemeSchema, colorThemes, getColorThemeValue };
|
|
@@ -5,7 +5,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/badge.d.ts
|
|
7
7
|
declare const badgeVariants: (props?: ({
|
|
8
|
-
variant?: "
|
|
8
|
+
variant?: "default" | "link" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
10
10
|
declare function Badge({
|
|
11
11
|
className,
|
|
@@ -5,7 +5,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
5
5
|
|
|
6
6
|
//#region src/components/ui/button.d.ts
|
|
7
7
|
declare const buttonVariants: (props?: ({
|
|
8
|
-
variant?: "
|
|
8
|
+
variant?: "default" | "link" | "outline" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
9
9
|
size?: "default" | "xs" | "sm" | "icon-xs" | "icon-sm" | "lg" | "icon" | "icon-lg" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
11
11
|
declare function Button({
|
|
@@ -27,7 +27,7 @@ declare function Item({
|
|
|
27
27
|
asChild?: boolean;
|
|
28
28
|
}): react_jsx_runtime0.JSX.Element;
|
|
29
29
|
declare const itemMediaVariants: (props?: ({
|
|
30
|
-
variant?: "
|
|
30
|
+
variant?: "default" | "image" | "icon" | null | undefined;
|
|
31
31
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
32
32
|
declare function ItemMedia({
|
|
33
33
|
className,
|
package/dist/components.d.mts
CHANGED
|
@@ -4,13 +4,14 @@ import { ScrollArea, ScrollBar } from "./src/components/ui/scroll-area.mjs";
|
|
|
4
4
|
import { Button, buttonVariants } from "./src/components/ui/button.mjs";
|
|
5
5
|
import { Input } from "./src/components/ui/input.mjs";
|
|
6
6
|
import { Separator } from "./src/components/ui/separator.mjs";
|
|
7
|
+
import { COLOR_THEME_STORAGE_KEY, ColorTheme, colorThemeSchema, colorThemes, getColorThemeValue } from "./src/components/themes/color-theme.mjs";
|
|
7
8
|
import { Label } from "./src/components/ui/label.mjs";
|
|
8
9
|
import { DateInput, DateInputProps } from "./src/components/ui/input-date.mjs";
|
|
9
10
|
import { TimeInput, TimeInputProps } from "./src/components/ui/input-time.mjs";
|
|
10
11
|
import { Icon, Icons } from "./src/components/common/icons.mjs";
|
|
11
12
|
import { CreateStatusComponentProps, StatusBadge, StatusField, createStatusConfig, createStatusVariants, findStatus } from "./src/components/common/status.mjs";
|
|
12
13
|
import { createFileHandlerUploadStrategy } from "./src/components/editor/extensions/file-handler/strategy.mjs";
|
|
13
|
-
import { convertEditorContentToHTML, convertEditorContentToMarkdown, convertHTMLToEditorContent, convertMarkdownToEditorContent } from "./src/components/editor/lib/helpers.mjs";
|
|
14
|
+
import { convertEditorContentToHTML, convertEditorContentToMarkdown, convertEditorContentToPlainText, convertHTMLToEditorContent, convertMarkdownToEditorContent } from "./src/components/editor/lib/helpers.mjs";
|
|
14
15
|
import { AdminErrorPage, AdminNotAllowedPage, AdminNotFoundPage } from "./src/components/layouts/admin-error-pages.mjs";
|
|
15
16
|
import { AdminLoadingLayout } from "./src/components/layouts/admin-loading.mjs";
|
|
16
17
|
import { EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle } from "./src/components/layouts/empty-page.mjs";
|
|
@@ -37,4 +38,4 @@ import { Skeleton } from "./src/components/ui/skeleton.mjs";
|
|
|
37
38
|
import { Slider } from "./src/components/ui/slider.mjs";
|
|
38
39
|
import { Spinner } from "./src/components/ui/spinner.mjs";
|
|
39
40
|
import { Textarea } from "./src/components/ui/textarea.mjs";
|
|
40
|
-
export { AdminErrorPage, AdminLoadingLayout, AdminNotAllowedPage, AdminNotFoundPage, Alert, AlertAction, AlertDescription, AlertTitle, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CreateStatusComponentProps, DataList, DataListItem, DataListItemProps, DataListProps, DataListTitle, DataListTitleProps, DataListValue, DataListValueProps, DataStack, DataStackColumn, DataStackColumnProps, DataStackGrid, DataStackGridProps, DataStackLayout, DataStackLayoutProps, DataStackProps, DataStackRow, DataStackRowProps, DataStackTitle, DataStackTitleProps, DataStackValue, DataStackValueProps, DateInput, DateInputProps, DefaultErrorSection, EditorJSONContent, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle, EmptyTitle, ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon, Icon, Icons, Input, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, ListLayout, Loader, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotAllowedSection, NotFoundSection, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, RadioGroup, RadioGroupItem, RootLoading, RootNotFoundPage, ScrollArea, ScrollBar, Separator, ServerErrorSection, Skeleton, Slider, Spinner, StatusBadge, StatusField, Tab, TabLayout, TabLayoutProps, Textarea, TimeInput, TimeInputProps, badgeVariants, buttonGroupVariants, buttonVariants, convertEditorContentToHTML, convertEditorContentToMarkdown, convertHTMLToEditorContent, convertMarkdownToEditorContent, createFileHandlerUploadStrategy, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle };
|
|
41
|
+
export { AdminErrorPage, AdminLoadingLayout, AdminNotAllowedPage, AdminNotFoundPage, Alert, AlertAction, AlertDescription, AlertTitle, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COLOR_THEME_STORAGE_KEY, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, ColorTheme, CreateStatusComponentProps, DataList, DataListItem, DataListItemProps, DataListProps, DataListTitle, DataListTitleProps, DataListValue, DataListValueProps, DataStack, DataStackColumn, DataStackColumnProps, DataStackGrid, DataStackGridProps, DataStackLayout, DataStackLayoutProps, DataStackProps, DataStackRow, DataStackRowProps, DataStackTitle, DataStackTitleProps, DataStackValue, DataStackValueProps, DateInput, DateInputProps, DefaultErrorSection, EditorJSONContent, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyPage, EmptyPageDescription, EmptyPageProps, EmptyPageTitle, EmptyTitle, ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon, Icon, Icons, Input, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, ListLayout, Loader, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotAllowedSection, NotFoundSection, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, RadioGroup, RadioGroupItem, RootLoading, RootNotFoundPage, ScrollArea, ScrollBar, Separator, ServerErrorSection, Skeleton, Slider, Spinner, StatusBadge, StatusField, Tab, TabLayout, TabLayoutProps, Textarea, TimeInput, TimeInputProps, badgeVariants, buttonGroupVariants, buttonVariants, colorThemeSchema, colorThemes, convertEditorContentToHTML, convertEditorContentToMarkdown, convertEditorContentToPlainText, convertHTMLToEditorContent, convertMarkdownToEditorContent, createFileHandlerUploadStrategy, createStatusConfig, createStatusVariants, findStatus, getColorThemeValue, navigationMenuTriggerStyle };
|
package/dist/components.mjs
CHANGED
|
@@ -2,13 +2,14 @@ import { Icons } from "./src/components/common/icons.mjs";
|
|
|
2
2
|
import { Badge, badgeVariants } from "./src/components/ui/badge.mjs";
|
|
3
3
|
import { StatusBadge, StatusField, createStatusConfig, createStatusVariants, findStatus } from "./src/components/common/status.mjs";
|
|
4
4
|
import { createFileHandlerUploadStrategy } from "./src/components/editor/extensions/file-handler/strategy.mjs";
|
|
5
|
-
import { convertEditorContentToHTML, convertEditorContentToMarkdown, convertHTMLToEditorContent, convertMarkdownToEditorContent } from "./src/components/editor/lib/helpers.mjs";
|
|
5
|
+
import { convertEditorContentToHTML, convertEditorContentToMarkdown, convertEditorContentToPlainText, convertHTMLToEditorContent, convertMarkdownToEditorContent } from "./src/components/editor/lib/helpers.mjs";
|
|
6
6
|
import { Button, buttonVariants } from "./src/components/ui/button.mjs";
|
|
7
7
|
import { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "./src/components/ui/breadcrumb.mjs";
|
|
8
8
|
import { ScrollArea, ScrollBar } from "./src/components/ui/scroll-area.mjs";
|
|
9
9
|
import { Skeleton } from "./src/components/ui/skeleton.mjs";
|
|
10
10
|
import { Input } from "./src/components/ui/input.mjs";
|
|
11
11
|
import { Separator } from "./src/components/ui/separator.mjs";
|
|
12
|
+
import { COLOR_THEME_STORAGE_KEY, colorThemeSchema, colorThemes, getColorThemeValue } from "./src/components/themes/color-theme.mjs";
|
|
12
13
|
import { Textarea } from "./src/components/ui/textarea.mjs";
|
|
13
14
|
import { DateInput } from "./src/components/ui/input-date.mjs";
|
|
14
15
|
import { TimeInput } from "./src/components/ui/input-time.mjs";
|
|
@@ -37,4 +38,4 @@ import { RadioGroup, RadioGroupItem } from "./src/components/ui/radio-group.mjs"
|
|
|
37
38
|
import { Slider } from "./src/components/ui/slider.mjs";
|
|
38
39
|
import { Spinner } from "./src/components/ui/spinner.mjs";
|
|
39
40
|
|
|
40
|
-
export { AdminErrorPage, AdminLoadingLayout, AdminNotAllowedPage, AdminNotFoundPage, Alert, AlertAction, AlertDescription, AlertTitle, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DataList, DataListItem, DataListTitle, DataListValue, DataStack, DataStackColumn, DataStackGrid, DataStackLayout, DataStackRow, DataStackTitle, DataStackValue, DateInput, DefaultErrorSection, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyPage, EmptyPageDescription, EmptyPageTitle, EmptyTitle, ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon, Icons, Input, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, ListLayout, Loader, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotAllowedSection, NotFoundSection, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, RadioGroup, RadioGroupItem, RootLoading, RootNotFoundPage, ScrollArea, ScrollBar, Separator, ServerErrorSection, Skeleton, Slider, Spinner, StatusBadge, StatusField, TabLayout, Textarea, TimeInput, badgeVariants, buttonGroupVariants, buttonVariants, convertEditorContentToHTML, convertEditorContentToMarkdown, convertHTMLToEditorContent, convertMarkdownToEditorContent, createFileHandlerUploadStrategy, createStatusConfig, createStatusVariants, findStatus, navigationMenuTriggerStyle };
|
|
41
|
+
export { AdminErrorPage, AdminLoadingLayout, AdminNotAllowedPage, AdminNotFoundPage, Alert, AlertAction, AlertDescription, AlertTitle, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COLOR_THEME_STORAGE_KEY, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, DataList, DataListItem, DataListTitle, DataListValue, DataStack, DataStackColumn, DataStackGrid, DataStackLayout, DataStackRow, DataStackTitle, DataStackValue, DateInput, DefaultErrorSection, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyPage, EmptyPageDescription, EmptyPageTitle, EmptyTitle, ErrorPage, ErrorPageCode, ErrorPageDescription, ErrorPageIcon, Icons, Input, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, ListLayout, Loader, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotAllowedSection, NotFoundSection, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, RadioGroup, RadioGroupItem, RootLoading, RootNotFoundPage, ScrollArea, ScrollBar, Separator, ServerErrorSection, Skeleton, Slider, Spinner, StatusBadge, StatusField, TabLayout, Textarea, TimeInput, badgeVariants, buttonGroupVariants, buttonVariants, colorThemeSchema, colorThemes, convertEditorContentToHTML, convertEditorContentToMarkdown, convertEditorContentToPlainText, convertHTMLToEditorContent, convertMarkdownToEditorContent, createFileHandlerUploadStrategy, createStatusConfig, createStatusVariants, findStatus, getColorThemeValue, navigationMenuTriggerStyle };
|
|
@@ -10,6 +10,7 @@ import { TableSearchInput } from "../src/modules/data-tables/components/search-i
|
|
|
10
10
|
import { TableConfigContextValue, TableConfigProvider, createTableConfig, useTableConfigContext } from "../src/modules/data-tables/hooks/use-context.client.mjs";
|
|
11
11
|
import { useTable } from "../src/modules/data-tables/hooks/use-table.client.mjs";
|
|
12
12
|
import { InfiniteStrategyMeta, UseInfiniteStrategyInput, useInfiniteStrategy } from "../src/modules/data-tables/strategies/infinite/strategy.mjs";
|
|
13
|
+
import { LocalStrategy, UseLocalStrategyInput, useLocalStrategy } from "../src/modules/data-tables/strategies/local/strategy.mjs";
|
|
13
14
|
import { PaginationStrategy, UsePaginationStrategyInput, usePaginationStrategy } from "../src/modules/data-tables/strategies/pagination/strategy.mjs";
|
|
14
15
|
import { DataTable } from "../src/modules/data-tables/tables/data-table/components/table.mjs";
|
|
15
16
|
import { TableInlineCell } from "../src/modules/data-tables/tables/inline-table/components/cells/common.mjs";
|
|
@@ -18,4 +19,4 @@ import { InlineDataTableReadOnly } from "../src/modules/data-tables/tables/inlin
|
|
|
18
19
|
import { INLINE_INPUT_ATTR, InlineDataTableHotkeysConfig, useInlineDataTableHotkeys } from "../src/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.mjs";
|
|
19
20
|
import { InlineTableContextValue, InlineTableProvider, useInlineTableContext } from "../src/modules/data-tables/tables/inline-table/hooks/context.client.mjs";
|
|
20
21
|
import { InlineTable } from "../src/modules/data-tables/tables/inline-table/components/table.mjs";
|
|
21
|
-
export { DataTable, INLINE_INPUT_ATTR, InfiniteStrategyMeta, InlineDataTableHotkeysConfig, InlineDataTableReadOnly, InlineTable, InlineTableContextValue, InlineTableProvider, PaginationStrategy, TableConfigContextValue, TableConfigProvider, TableDateCell, TableDragHandle, TableDragHandleProps, TableFilterCombobox, TableFilterComboboxOption, TableFilterComboboxProps, TableFilterDateRange, TableFilterDateRangePreset, TableFilterDateRangeProps, TableFilterDateRangeValue, TableFilterSearch, TableFilterSearchProps, TableFilterSlider, TableFilterSliderProps, TableFilterToggle, TableFilterToggleProps, TableInlineCell, TableNumberCell, TableSearchInput, TableStatusCell, TableTextCell, UseInfiniteStrategyInput, UsePaginationStrategyInput, createTableConfig, createTableDragHandleCell, createTableIndexCell, createTableSelectCell, useInfiniteStrategy, useInlineDataTableHotkeys, useInlineTableContext, usePaginationStrategy, useTable, useTableConfigContext };
|
|
22
|
+
export { DataTable, INLINE_INPUT_ATTR, InfiniteStrategyMeta, InlineDataTableHotkeysConfig, InlineDataTableReadOnly, InlineTable, InlineTableContextValue, InlineTableProvider, LocalStrategy, PaginationStrategy, TableConfigContextValue, TableConfigProvider, TableDateCell, TableDragHandle, TableDragHandleProps, TableFilterCombobox, TableFilterComboboxOption, TableFilterComboboxProps, TableFilterDateRange, TableFilterDateRangePreset, TableFilterDateRangeProps, TableFilterDateRangeValue, TableFilterSearch, TableFilterSearchProps, TableFilterSlider, TableFilterSliderProps, TableFilterToggle, TableFilterToggleProps, TableInlineCell, TableNumberCell, TableSearchInput, TableStatusCell, TableTextCell, UseInfiniteStrategyInput, UseLocalStrategyInput, UsePaginationStrategyInput, createTableConfig, createTableDragHandleCell, createTableIndexCell, createTableSelectCell, useInfiniteStrategy, useInlineDataTableHotkeys, useInlineTableContext, useLocalStrategy, usePaginationStrategy, useTable, useTableConfigContext };
|
|
@@ -10,6 +10,7 @@ import { TableConfigProvider, createTableConfig, useTableConfigContext } from ".
|
|
|
10
10
|
import { TableSearchInput } from "../src/modules/data-tables/components/search-input.client.mjs";
|
|
11
11
|
import { useTable } from "../src/modules/data-tables/hooks/use-table.client.mjs";
|
|
12
12
|
import { useInfiniteStrategy } from "../src/modules/data-tables/strategies/infinite/strategy.mjs";
|
|
13
|
+
import { useLocalStrategy } from "../src/modules/data-tables/strategies/local/strategy.mjs";
|
|
13
14
|
import { usePaginationStrategy } from "../src/modules/data-tables/strategies/pagination/strategy.mjs";
|
|
14
15
|
import { DataTable } from "../src/modules/data-tables/tables/data-table/components/table.mjs";
|
|
15
16
|
import { TableInlineCell } from "../src/modules/data-tables/tables/inline-table/components/cells/common.mjs";
|
|
@@ -19,4 +20,4 @@ import { InlineTableProvider, useInlineTableContext } from "../src/modules/data-
|
|
|
19
20
|
import { INLINE_INPUT_ATTR, useInlineDataTableHotkeys } from "../src/modules/data-tables/tables/inline-table/hooks/use-hotkeys.client.mjs";
|
|
20
21
|
import { InlineTable } from "../src/modules/data-tables/tables/inline-table/components/table.mjs";
|
|
21
22
|
|
|
22
|
-
export { DataTable, INLINE_INPUT_ATTR, InlineDataTableReadOnly, InlineTable, InlineTableProvider, TableConfigProvider, TableDateCell, TableDragHandle, TableFilterCombobox, TableFilterDateRange, TableFilterSearch, TableFilterSlider, TableFilterToggle, TableInlineCell, TableNumberCell, TableSearchInput, TableStatusCell, TableTextCell, createTableConfig, createTableDragHandleCell, createTableIndexCell, createTableSelectCell, useInfiniteStrategy, useInlineDataTableHotkeys, useInlineTableContext, usePaginationStrategy, useTable, useTableConfigContext };
|
|
23
|
+
export { DataTable, INLINE_INPUT_ATTR, InlineDataTableReadOnly, InlineTable, InlineTableProvider, TableConfigProvider, TableDateCell, TableDragHandle, TableFilterCombobox, TableFilterDateRange, TableFilterSearch, TableFilterSlider, TableFilterToggle, TableInlineCell, TableNumberCell, TableSearchInput, TableStatusCell, TableTextCell, createTableConfig, createTableDragHandleCell, createTableIndexCell, createTableSelectCell, useInfiniteStrategy, useInlineDataTableHotkeys, useInlineTableContext, useLocalStrategy, usePaginationStrategy, useTable, useTableConfigContext };
|
|
@@ -185,7 +185,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
185
185
|
admin: {
|
|
186
186
|
listUsers: <FetchOptions extends better_auth0.ClientFetchOption<never, Partial<{
|
|
187
187
|
searchValue?: string | undefined;
|
|
188
|
-
searchField?: "
|
|
188
|
+
searchField?: "name" | "email" | undefined;
|
|
189
189
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
190
190
|
limit?: string | number | undefined;
|
|
191
191
|
offset?: string | number | undefined;
|
|
@@ -197,7 +197,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
197
197
|
}> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
198
198
|
query: {
|
|
199
199
|
searchValue?: string | undefined;
|
|
200
|
-
searchField?: "
|
|
200
|
+
searchField?: "name" | "email" | undefined;
|
|
201
201
|
searchOperator?: "contains" | "starts_with" | "ends_with" | undefined;
|
|
202
202
|
limit?: string | number | undefined;
|
|
203
203
|
offset?: string | number | undefined;
|
|
@@ -773,7 +773,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
773
773
|
} & {
|
|
774
774
|
signIn: {
|
|
775
775
|
social: <FetchOptions extends better_auth0.ClientFetchOption<Partial<{
|
|
776
|
-
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "
|
|
776
|
+
provider: "line" | (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
|
|
777
777
|
callbackURL?: string | undefined;
|
|
778
778
|
newUserCallbackURL?: string | undefined;
|
|
779
779
|
errorCallbackURL?: string | undefined;
|
|
@@ -797,7 +797,7 @@ declare function createAuthClient<TAccessControl extends AccessControl, TRoles e
|
|
|
797
797
|
loginHint?: string | undefined;
|
|
798
798
|
additionalData?: Record<string, any> | undefined;
|
|
799
799
|
}> & Record<string, any>, Partial<Record<string, any>> & Record<string, any>, Record<string, any> | undefined>>(data_0: better_auth0.Prettify<{
|
|
800
|
-
provider: (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "
|
|
800
|
+
provider: "line" | (string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat";
|
|
801
801
|
callbackURL?: string | undefined;
|
|
802
802
|
newUserCallbackURL?: string | undefined;
|
|
803
803
|
errorCallbackURL?: string | undefined;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ContextMenu, ContextMenuContent, ContextMenuTrigger } from "../../../../components/ui/context-menu.client.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { AnyCommandDef, ExtractCommandData } from "../../lib/builder.mjs";
|
|
3
3
|
import { CommandContextLifecycle } from "../../hooks/use-command.client.mjs";
|
|
4
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
5
|
import { ComponentProps, ReactNode } from "react";
|
|
6
|
-
import z from "zod";
|
|
7
6
|
|
|
8
7
|
//#region src/modules/commands/components/menus/context-menu.client.d.ts
|
|
9
|
-
type ContextCommandMenuContentProps<
|
|
10
|
-
data:
|
|
11
|
-
commands:
|
|
8
|
+
type ContextCommandMenuContentProps<TCommand extends AnyCommandDef, TMeta = object> = ComponentProps<typeof ContextMenuContent> & CommandContextLifecycle & {
|
|
9
|
+
data: NoInfer<ExtractCommandData<TCommand>>;
|
|
10
|
+
commands: TCommand[];
|
|
12
11
|
meta?: TMeta;
|
|
13
12
|
fallback?: ReactNode;
|
|
14
13
|
emptyLabel?: string;
|
|
@@ -24,7 +23,7 @@ declare const ContextCommandMenuTrigger: typeof ContextMenuTrigger;
|
|
|
24
23
|
/**
|
|
25
24
|
* ContextCommandMenuContent
|
|
26
25
|
*/
|
|
27
|
-
declare function ContextCommandMenuContent<
|
|
26
|
+
declare function ContextCommandMenuContent<TCommand extends AnyCommandDef, TMeta = object>({
|
|
28
27
|
data,
|
|
29
28
|
commands,
|
|
30
29
|
meta,
|
|
@@ -35,6 +34,6 @@ declare function ContextCommandMenuContent<TSchema extends z.ZodTypeAny, TMeta>(
|
|
|
35
34
|
className,
|
|
36
35
|
emptyLabel,
|
|
37
36
|
...props
|
|
38
|
-
}: ContextCommandMenuContentProps<
|
|
37
|
+
}: ContextCommandMenuContentProps<TCommand, TMeta>): react_jsx_runtime0.JSX.Element;
|
|
39
38
|
//#endregion
|
|
40
39
|
export { ContextCommandMenu, ContextCommandMenuContent, ContextCommandMenuContentProps, ContextCommandMenuTrigger };
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AnyCommandDef, ExtractCommandData } from "../../lib/builder.mjs";
|
|
2
2
|
import { CommandContextLifecycle } from "../../hooks/use-command.client.mjs";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
import { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
5
|
-
import z from "zod";
|
|
6
5
|
|
|
7
6
|
//#region src/modules/commands/components/menus/dropdown-menu.client.d.ts
|
|
8
|
-
type DropdownCommandMenuProps<
|
|
9
|
-
data:
|
|
10
|
-
commands:
|
|
7
|
+
type DropdownCommandMenuProps<TCommand extends AnyCommandDef, TMeta = object> = HTMLAttributes<HTMLElement> & CommandContextLifecycle & {
|
|
8
|
+
data: NoInfer<ExtractCommandData<TCommand>>;
|
|
9
|
+
commands: TCommand[];
|
|
11
10
|
meta?: TMeta;
|
|
12
11
|
fallback?: ReactNode;
|
|
13
12
|
};
|
|
14
|
-
declare function DropdownCommandMenu<
|
|
13
|
+
declare function DropdownCommandMenu<TCommand extends AnyCommandDef, TMeta = object>({
|
|
15
14
|
data,
|
|
16
15
|
commands,
|
|
17
16
|
meta,
|
|
@@ -21,7 +20,7 @@ declare function DropdownCommandMenu<TSchema extends z.ZodTypeAny, TMeta>({
|
|
|
21
20
|
onSettled,
|
|
22
21
|
className,
|
|
23
22
|
...props
|
|
24
|
-
}: DropdownCommandMenuProps<
|
|
23
|
+
}: DropdownCommandMenuProps<TCommand, TMeta>): react_jsx_runtime0.JSX.Element | null;
|
|
25
24
|
declare function DropdownCommandMenuLoading({
|
|
26
25
|
className,
|
|
27
26
|
...props
|