@devfellowship/components 1.2.3 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +495 -55
- package/dist/index.d.cts +87 -1
- package/dist/index.d.ts +87 -1
- package/dist/index.js +489 -57
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -936,6 +936,92 @@ interface AppNavbarProps {
|
|
|
936
936
|
}
|
|
937
937
|
declare function AppNavbar({ breadcrumbs, userInfo, theme, onThemeToggle, onProfileClick, onSettingsClick, onSignOut, actions, className, }: AppNavbarProps): react_jsx_runtime.JSX.Element;
|
|
938
938
|
|
|
939
|
+
interface GanttMilestone {
|
|
940
|
+
id: string;
|
|
941
|
+
title: string;
|
|
942
|
+
/** Done = filled bar + struck title. */
|
|
943
|
+
done?: boolean;
|
|
944
|
+
/** 1-based week this milestone starts on. Falls back to the stage's start. */
|
|
945
|
+
weekStart?: number;
|
|
946
|
+
/** Width of the milestone bar in weeks. Defaults to 1. */
|
|
947
|
+
weekSpan?: number;
|
|
948
|
+
/** Optional trailing weight/points label (e.g. "10"). */
|
|
949
|
+
points?: number | string;
|
|
950
|
+
}
|
|
951
|
+
interface GanttStage {
|
|
952
|
+
id: string;
|
|
953
|
+
title: string;
|
|
954
|
+
subtitle?: string;
|
|
955
|
+
/** Stage accent dot color. A single hex; the bar tints from it. Optional. */
|
|
956
|
+
color?: string;
|
|
957
|
+
/** 1-based first week of the stage bar. */
|
|
958
|
+
weekStart: number;
|
|
959
|
+
/** Width of the stage bar in weeks (>= 1). */
|
|
960
|
+
weekSpan: number;
|
|
961
|
+
/** 0–100 completion. If omitted, derived from milestones (done / total). */
|
|
962
|
+
progress?: number;
|
|
963
|
+
milestones?: GanttMilestone[];
|
|
964
|
+
/** Start collapsed (milestone rows hidden). */
|
|
965
|
+
collapsed?: boolean;
|
|
966
|
+
}
|
|
967
|
+
interface GanttDependency {
|
|
968
|
+
/** Stage id the edge starts from. */
|
|
969
|
+
from: string;
|
|
970
|
+
/** Stage id the edge points to. */
|
|
971
|
+
to: string;
|
|
972
|
+
}
|
|
973
|
+
interface GanttProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
974
|
+
stages: GanttStage[];
|
|
975
|
+
/**
|
|
976
|
+
* Number of week columns, or explicit labels. If omitted, derived from the
|
|
977
|
+
* furthest stage/milestone end (max weekStart + weekSpan - 1).
|
|
978
|
+
*/
|
|
979
|
+
weeks?: number | string[];
|
|
980
|
+
/** Predecessor → successor edges, drawn as connector links between stage bars. */
|
|
981
|
+
dependencies?: GanttDependency[];
|
|
982
|
+
/** Label for the left (rows) column header. Defaults to "STAGE / TASK". */
|
|
983
|
+
rowsHeader?: string;
|
|
984
|
+
/** Hide the milestone rows entirely (stages-only summary). */
|
|
985
|
+
stagesOnly?: boolean;
|
|
986
|
+
/** Optional header strip (e.g. member + per-stage progress pills). */
|
|
987
|
+
header?: React$1.ReactNode;
|
|
988
|
+
/**
|
|
989
|
+
* Px width of the left (sticky) name column.
|
|
990
|
+
* @deprecated prefer `nameColWidth` — kept as a fallback for back-compat.
|
|
991
|
+
*/
|
|
992
|
+
labelWidth?: number;
|
|
993
|
+
/**
|
|
994
|
+
* Px width of the left (sticky) STAGE/TASK name column. Takes precedence
|
|
995
|
+
* over `labelWidth`. Defaults to 320 — wide enough that long stage/task
|
|
996
|
+
* titles read in full; overflow ellipsizes with a native tooltip. Bump this
|
|
997
|
+
* higher (e.g. 420) on full-width pages where you have the room.
|
|
998
|
+
*/
|
|
999
|
+
nameColWidth?: number;
|
|
1000
|
+
/** Min px width of a single week column. Defaults to 64. */
|
|
1001
|
+
weekMinWidth?: number;
|
|
1002
|
+
}
|
|
1003
|
+
/** Default width of the sticky name column. ~2× the original 240 → readable. */
|
|
1004
|
+
declare const DEFAULT_NAME_COL_WIDTH = 320;
|
|
1005
|
+
/** Resolve the effective name-column width: `nameColWidth` > `labelWidth` > default. */
|
|
1006
|
+
declare function resolveNameColWidth(nameColWidth?: number, labelWidth?: number): number;
|
|
1007
|
+
/** Clamp a 0..100 percentage to an integer. */
|
|
1008
|
+
declare function clampPct(value: number | undefined): number;
|
|
1009
|
+
/** Progress for a stage: explicit `progress`, else done/total of milestones. */
|
|
1010
|
+
declare function stageProgress(stage: GanttStage): number;
|
|
1011
|
+
/** Total number of week columns: explicit, else furthest stage/milestone end. */
|
|
1012
|
+
declare function resolveWeekCount(stages: GanttStage[], weeks?: number | string[]): number;
|
|
1013
|
+
/** Week labels: explicit array, else "W1".."Wn". */
|
|
1014
|
+
declare function resolveWeekLabels(count: number, weeks?: number | string[]): string[];
|
|
1015
|
+
/**
|
|
1016
|
+
* Left/width of a bar as grid-column geometry (1-based, inclusive start).
|
|
1017
|
+
* Returns CSS grid-column values clamped to [1, weekCount].
|
|
1018
|
+
*/
|
|
1019
|
+
declare function barGridColumn(weekStart: number, weekSpan: number, weekCount: number): {
|
|
1020
|
+
start: number;
|
|
1021
|
+
span: number;
|
|
1022
|
+
};
|
|
1023
|
+
declare function Gantt({ stages, weeks, dependencies, rowsHeader, stagesOnly, header, labelWidth, nameColWidth, weekMinWidth, className, style, ...rest }: GanttProps): react_jsx_runtime.JSX.Element;
|
|
1024
|
+
|
|
939
1025
|
/** Minimal subset of `@supabase/supabase-js` SupabaseClient we rely on.
|
|
940
1026
|
* Kept structural so the package never hard-depends on supabase-js. */
|
|
941
1027
|
interface PublishDrawerSupabase {
|
|
@@ -1011,4 +1097,4 @@ declare function validatePublishForm(input: {
|
|
|
1011
1097
|
}): string | null;
|
|
1012
1098
|
declare function PublishDrawer({ open, onOpenChange, supabase, videoUrl, transcript, suggestedTitle, suggestedDescription, suggestedThumbnailUrl, thumbnailTemplateId, buId, registerLesson, onPublished, onError, className, }: PublishDrawerProps): react_jsx_runtime.JSX.Element;
|
|
1013
1099
|
|
|
1014
|
-
export { ALLOWED_ORIGINS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppNavbar, type AppNavbarProps, AppSidebar, type AppSidebarProps, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEntry, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, type ConfirmDialogProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DflIframeMessage, type DflNavigateMessage, type DflReadyMessage, DflRemote, type DflRemoteProps, type DflResizeMessage, type DflSetTokenMessage, 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, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, IframeAware, type IframeAwareProps, IframeContext, type IframeContextValue, type IframeMessageType, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, type KbdProps, Label, LoginPage, type LoginPageProps, LoginScreen, type LoginScreenProps, MEMBER_PALETTE_SIZE, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type NavGroup, type NavItem, type NavbarUserInfo, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, type PasswordInputProps, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, type ProtectedRouteProps, PublishDrawer, type PublishDrawerProps, type PublishDrawerSupabase, type PublishResult, type PublishStatus, type PublisherAccount, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, 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, Skeleton, Slider, SonnerToaster, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, ToastAction, type ToastActionElement, ToastClose, type ToastComponentProps, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserAvatar, type UserAvatarProps, type UserInfo, UserMenu, type UserMenuItem, type UserMenuProps, badgeVariants, buttonVariants, filterPublishableAccounts, getInitials, iconButtonVariants, isAllowedOrigin, kbdVariants, labelVariants, memberHueIndex, memberHueVar, navigationMenuTriggerStyle, parseTags, toggleVariants, useFormField, useSidebar, validatePublishForm };
|
|
1100
|
+
export { ALLOWED_ORIGINS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppNavbar, type AppNavbarProps, AppSidebar, type AppSidebarProps, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEntry, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, type ConfirmDialogProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_NAME_COL_WIDTH, type DflIframeMessage, type DflNavigateMessage, type DflReadyMessage, DflRemote, type DflRemoteProps, type DflResizeMessage, type DflSetTokenMessage, 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, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Gantt, type GanttDependency, type GanttMilestone, type GanttProps, type GanttStage, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, IframeAware, type IframeAwareProps, IframeContext, type IframeContextValue, type IframeMessageType, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, type KbdProps, Label, LoginPage, type LoginPageProps, LoginScreen, type LoginScreenProps, MEMBER_PALETTE_SIZE, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type NavGroup, type NavItem, type NavbarUserInfo, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, type PasswordInputProps, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, type ProtectedRouteProps, PublishDrawer, type PublishDrawerProps, type PublishDrawerSupabase, type PublishResult, type PublishStatus, type PublisherAccount, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, 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, Skeleton, Slider, SonnerToaster, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, ToastAction, type ToastActionElement, ToastClose, type ToastComponentProps, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserAvatar, type UserAvatarProps, type UserInfo, UserMenu, type UserMenuItem, type UserMenuProps, badgeVariants, barGridColumn, buttonVariants, clampPct, filterPublishableAccounts, getInitials, iconButtonVariants, isAllowedOrigin, kbdVariants, labelVariants, memberHueIndex, memberHueVar, navigationMenuTriggerStyle, parseTags, resolveNameColWidth, resolveWeekCount, resolveWeekLabels, stageProgress, toggleVariants, useFormField, useSidebar, validatePublishForm };
|
package/dist/index.d.ts
CHANGED
|
@@ -936,6 +936,92 @@ interface AppNavbarProps {
|
|
|
936
936
|
}
|
|
937
937
|
declare function AppNavbar({ breadcrumbs, userInfo, theme, onThemeToggle, onProfileClick, onSettingsClick, onSignOut, actions, className, }: AppNavbarProps): react_jsx_runtime.JSX.Element;
|
|
938
938
|
|
|
939
|
+
interface GanttMilestone {
|
|
940
|
+
id: string;
|
|
941
|
+
title: string;
|
|
942
|
+
/** Done = filled bar + struck title. */
|
|
943
|
+
done?: boolean;
|
|
944
|
+
/** 1-based week this milestone starts on. Falls back to the stage's start. */
|
|
945
|
+
weekStart?: number;
|
|
946
|
+
/** Width of the milestone bar in weeks. Defaults to 1. */
|
|
947
|
+
weekSpan?: number;
|
|
948
|
+
/** Optional trailing weight/points label (e.g. "10"). */
|
|
949
|
+
points?: number | string;
|
|
950
|
+
}
|
|
951
|
+
interface GanttStage {
|
|
952
|
+
id: string;
|
|
953
|
+
title: string;
|
|
954
|
+
subtitle?: string;
|
|
955
|
+
/** Stage accent dot color. A single hex; the bar tints from it. Optional. */
|
|
956
|
+
color?: string;
|
|
957
|
+
/** 1-based first week of the stage bar. */
|
|
958
|
+
weekStart: number;
|
|
959
|
+
/** Width of the stage bar in weeks (>= 1). */
|
|
960
|
+
weekSpan: number;
|
|
961
|
+
/** 0–100 completion. If omitted, derived from milestones (done / total). */
|
|
962
|
+
progress?: number;
|
|
963
|
+
milestones?: GanttMilestone[];
|
|
964
|
+
/** Start collapsed (milestone rows hidden). */
|
|
965
|
+
collapsed?: boolean;
|
|
966
|
+
}
|
|
967
|
+
interface GanttDependency {
|
|
968
|
+
/** Stage id the edge starts from. */
|
|
969
|
+
from: string;
|
|
970
|
+
/** Stage id the edge points to. */
|
|
971
|
+
to: string;
|
|
972
|
+
}
|
|
973
|
+
interface GanttProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
974
|
+
stages: GanttStage[];
|
|
975
|
+
/**
|
|
976
|
+
* Number of week columns, or explicit labels. If omitted, derived from the
|
|
977
|
+
* furthest stage/milestone end (max weekStart + weekSpan - 1).
|
|
978
|
+
*/
|
|
979
|
+
weeks?: number | string[];
|
|
980
|
+
/** Predecessor → successor edges, drawn as connector links between stage bars. */
|
|
981
|
+
dependencies?: GanttDependency[];
|
|
982
|
+
/** Label for the left (rows) column header. Defaults to "STAGE / TASK". */
|
|
983
|
+
rowsHeader?: string;
|
|
984
|
+
/** Hide the milestone rows entirely (stages-only summary). */
|
|
985
|
+
stagesOnly?: boolean;
|
|
986
|
+
/** Optional header strip (e.g. member + per-stage progress pills). */
|
|
987
|
+
header?: React$1.ReactNode;
|
|
988
|
+
/**
|
|
989
|
+
* Px width of the left (sticky) name column.
|
|
990
|
+
* @deprecated prefer `nameColWidth` — kept as a fallback for back-compat.
|
|
991
|
+
*/
|
|
992
|
+
labelWidth?: number;
|
|
993
|
+
/**
|
|
994
|
+
* Px width of the left (sticky) STAGE/TASK name column. Takes precedence
|
|
995
|
+
* over `labelWidth`. Defaults to 320 — wide enough that long stage/task
|
|
996
|
+
* titles read in full; overflow ellipsizes with a native tooltip. Bump this
|
|
997
|
+
* higher (e.g. 420) on full-width pages where you have the room.
|
|
998
|
+
*/
|
|
999
|
+
nameColWidth?: number;
|
|
1000
|
+
/** Min px width of a single week column. Defaults to 64. */
|
|
1001
|
+
weekMinWidth?: number;
|
|
1002
|
+
}
|
|
1003
|
+
/** Default width of the sticky name column. ~2× the original 240 → readable. */
|
|
1004
|
+
declare const DEFAULT_NAME_COL_WIDTH = 320;
|
|
1005
|
+
/** Resolve the effective name-column width: `nameColWidth` > `labelWidth` > default. */
|
|
1006
|
+
declare function resolveNameColWidth(nameColWidth?: number, labelWidth?: number): number;
|
|
1007
|
+
/** Clamp a 0..100 percentage to an integer. */
|
|
1008
|
+
declare function clampPct(value: number | undefined): number;
|
|
1009
|
+
/** Progress for a stage: explicit `progress`, else done/total of milestones. */
|
|
1010
|
+
declare function stageProgress(stage: GanttStage): number;
|
|
1011
|
+
/** Total number of week columns: explicit, else furthest stage/milestone end. */
|
|
1012
|
+
declare function resolveWeekCount(stages: GanttStage[], weeks?: number | string[]): number;
|
|
1013
|
+
/** Week labels: explicit array, else "W1".."Wn". */
|
|
1014
|
+
declare function resolveWeekLabels(count: number, weeks?: number | string[]): string[];
|
|
1015
|
+
/**
|
|
1016
|
+
* Left/width of a bar as grid-column geometry (1-based, inclusive start).
|
|
1017
|
+
* Returns CSS grid-column values clamped to [1, weekCount].
|
|
1018
|
+
*/
|
|
1019
|
+
declare function barGridColumn(weekStart: number, weekSpan: number, weekCount: number): {
|
|
1020
|
+
start: number;
|
|
1021
|
+
span: number;
|
|
1022
|
+
};
|
|
1023
|
+
declare function Gantt({ stages, weeks, dependencies, rowsHeader, stagesOnly, header, labelWidth, nameColWidth, weekMinWidth, className, style, ...rest }: GanttProps): react_jsx_runtime.JSX.Element;
|
|
1024
|
+
|
|
939
1025
|
/** Minimal subset of `@supabase/supabase-js` SupabaseClient we rely on.
|
|
940
1026
|
* Kept structural so the package never hard-depends on supabase-js. */
|
|
941
1027
|
interface PublishDrawerSupabase {
|
|
@@ -1011,4 +1097,4 @@ declare function validatePublishForm(input: {
|
|
|
1011
1097
|
}): string | null;
|
|
1012
1098
|
declare function PublishDrawer({ open, onOpenChange, supabase, videoUrl, transcript, suggestedTitle, suggestedDescription, suggestedThumbnailUrl, thumbnailTemplateId, buId, registerLesson, onPublished, onError, className, }: PublishDrawerProps): react_jsx_runtime.JSX.Element;
|
|
1013
1099
|
|
|
1014
|
-
export { ALLOWED_ORIGINS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppNavbar, type AppNavbarProps, AppSidebar, type AppSidebarProps, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEntry, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, type ConfirmDialogProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DflIframeMessage, type DflNavigateMessage, type DflReadyMessage, DflRemote, type DflRemoteProps, type DflResizeMessage, type DflSetTokenMessage, 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, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, IframeAware, type IframeAwareProps, IframeContext, type IframeContextValue, type IframeMessageType, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, type KbdProps, Label, LoginPage, type LoginPageProps, LoginScreen, type LoginScreenProps, MEMBER_PALETTE_SIZE, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type NavGroup, type NavItem, type NavbarUserInfo, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, type PasswordInputProps, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, type ProtectedRouteProps, PublishDrawer, type PublishDrawerProps, type PublishDrawerSupabase, type PublishResult, type PublishStatus, type PublisherAccount, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, 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, Skeleton, Slider, SonnerToaster, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, ToastAction, type ToastActionElement, ToastClose, type ToastComponentProps, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserAvatar, type UserAvatarProps, type UserInfo, UserMenu, type UserMenuItem, type UserMenuProps, badgeVariants, buttonVariants, filterPublishableAccounts, getInitials, iconButtonVariants, isAllowedOrigin, kbdVariants, labelVariants, memberHueIndex, memberHueVar, navigationMenuTriggerStyle, parseTags, toggleVariants, useFormField, useSidebar, validatePublishForm };
|
|
1100
|
+
export { ALLOWED_ORIGINS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppNavbar, type AppNavbarProps, AppSidebar, type AppSidebarProps, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEntry, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmDialog, type ConfirmDialogProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_NAME_COL_WIDTH, type DflIframeMessage, type DflNavigateMessage, type DflReadyMessage, DflRemote, type DflRemoteProps, type DflResizeMessage, type DflSetTokenMessage, 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, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Gantt, type GanttDependency, type GanttMilestone, type GanttProps, type GanttStage, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, type IconButtonProps, IframeAware, type IframeAwareProps, IframeContext, type IframeContextValue, type IframeMessageType, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Kbd, type KbdProps, Label, LoginPage, type LoginPageProps, LoginScreen, type LoginScreenProps, MEMBER_PALETTE_SIZE, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, type NavGroup, type NavItem, type NavbarUserInfo, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, type PasswordInputProps, Popover, PopoverContent, PopoverTrigger, Progress, ProtectedRoute, type ProtectedRouteProps, PublishDrawer, type PublishDrawerProps, type PublishDrawerSupabase, type PublishResult, type PublishStatus, type PublisherAccount, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, 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, Skeleton, Slider, SonnerToaster, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type TextareaProps, Toast, ToastAction, type ToastActionElement, ToastClose, type ToastComponentProps, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserAvatar, type UserAvatarProps, type UserInfo, UserMenu, type UserMenuItem, type UserMenuProps, badgeVariants, barGridColumn, buttonVariants, clampPct, filterPublishableAccounts, getInitials, iconButtonVariants, isAllowedOrigin, kbdVariants, labelVariants, memberHueIndex, memberHueVar, navigationMenuTriggerStyle, parseTags, resolveNameColWidth, resolveWeekCount, resolveWeekLabels, stageProgress, toggleVariants, useFormField, useSidebar, validatePublishForm };
|