@j3m-quantum/ui 1.9.1 → 1.11.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/index.d.cts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as class_variance_authority_types from 'class-variance-authority/types';
2
2
  import * as React$1 from 'react';
3
+ import { ReactNode, RefObject, FC, HTMLAttributes } from 'react';
3
4
  import { VariantProps } from 'class-variance-authority';
4
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
6
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
@@ -41,6 +42,8 @@ import * as ResizablePrimitive from 'react-resizable-panels';
41
42
  import { MapContainerProps, TileLayerProps, MarkerProps, PopupProps, TooltipProps, ZoomControlProps } from 'react-leaflet';
42
43
  import { Column, Table as Table$1, ColumnDef } from '@tanstack/react-table';
43
44
  export { Column, ColumnDef, ColumnFiltersState, Table as DataTable, Row, SortingState, VisibilityState, flexRender, getCoreRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
45
+ import { DndContextProps, DragStartEvent, DragEndEvent, DragOverEvent } from '@dnd-kit/core';
46
+ export { DragEndEvent } from '@dnd-kit/core';
44
47
  export { areIntervalsOverlapping, format, getDay, isSameDay, isSameMonth, isToday, parseISO } from 'date-fns';
45
48
 
46
49
  declare function useIsMobile(): boolean;
@@ -1762,7 +1765,7 @@ declare function SubmitCalibrationBar({ className, status, lastSaved, canSubmit,
1762
1765
  * Types for the Supplier Weekly Loading (iPad) block
1763
1766
  *
1764
1767
  * A touch-first weekly view for suppliers to view deliveries
1765
- * and add pre-unloading comments.
1768
+ * and add pre-loading comments.
1766
1769
  */
1767
1770
  /**
1768
1771
  * User role for role-based access control
@@ -1787,7 +1790,7 @@ declare function getLoadingDeliveryStatusLabel(status: LoadingDeliveryStatus): s
1787
1790
  /**
1788
1791
  * Visual state for delivery cards (3-state model)
1789
1792
  * - sent: Greyed out with checkmark (shipped/delivered)
1790
- * - ready: Highlighted as ready to unload
1793
+ * - ready: Highlighted as ready to load
1791
1794
  * - normal: Default neutral state
1792
1795
  */
1793
1796
  type DeliveryVisualState = "sent" | "ready" | "normal";
@@ -1825,11 +1828,11 @@ interface LoadingElement {
1825
1828
  originalDeliveryLabel?: string;
1826
1829
  }
1827
1830
  /**
1828
- * Comment context for pre-unloading notes
1831
+ * Comment context for pre-loading notes
1829
1832
  */
1830
1833
  type CommentContext = "pre_unloading" | "general";
1831
1834
  /**
1832
- * A comment attached to a delivery (pre-unloading)
1835
+ * A comment attached to a delivery (pre-loading)
1833
1836
  */
1834
1837
  interface LoadingComment {
1835
1838
  /** Unique identifier */
@@ -1877,7 +1880,7 @@ interface LoadingDelivery {
1877
1880
  destination?: string;
1878
1881
  /** Elements to load */
1879
1882
  elements: LoadingElement[];
1880
- /** Pre-unloading comments */
1883
+ /** Pre-loading comments */
1881
1884
  comments: LoadingComment[];
1882
1885
  /** Number loaded (if loading has started) */
1883
1886
  loadedCount?: number;
@@ -2076,6 +2079,8 @@ interface DeliveryBadgeProps {
2076
2079
  delivery: LoadingDelivery;
2077
2080
  /** Callback when badge is clicked */
2078
2081
  onClick?: () => void;
2082
+ /** Callback when comment button is clicked */
2083
+ onCommentClick?: () => void;
2079
2084
  /** Additional class names */
2080
2085
  className?: string;
2081
2086
  }
@@ -2084,14 +2089,15 @@ interface DeliveryBadgeProps {
2084
2089
  *
2085
2090
  * Card title = prefixes carried (e.g., "TF · WP · CF")
2086
2091
  * Factory icon + progress bar for production readiness
2092
+ * Comment button in top-right corner (44px touch target)
2087
2093
  *
2088
2094
  * Spacing using Quantum tokens:
2089
- * - Card height: h-[80px]
2090
- * - Padding: px-6 py-4 (j3m.spacing.l / j3m.spacing.m)
2095
+ * - Card min-height: min-h-[100px]
2096
+ * - Padding: p-4 (j3m.spacing.m = 16px)
2091
2097
  * - Row gap: gap-3 (j3m.spacing.s = 12px) - breathing room between title and progress
2092
2098
  * - Intra-row gap: gap-2 (j3m.spacing.xs = 8px) - tighter within rows
2093
2099
  */
2094
- declare function DeliveryBadge({ delivery, onClick, className, }: DeliveryBadgeProps): react_jsx_runtime.JSX.Element;
2100
+ declare function DeliveryBadge({ delivery, onClick, onCommentClick, className, }: DeliveryBadgeProps): react_jsx_runtime.JSX.Element;
2095
2101
 
2096
2102
  /**
2097
2103
  * DeliveryDetailPage - Touch-first detail page for a delivery
@@ -2100,7 +2106,7 @@ declare function DeliveryBadge({ delivery, onClick, className, }: DeliveryBadgeP
2100
2106
  * - Delivery summary with visual state (sent/ready/normal)
2101
2107
  * - Production progress with risk indicators
2102
2108
  * - Elements table (view-only)
2103
- * - Pre-unloading notes (Dialog for adding - no "Applies to" selector)
2109
+ * - Pre-loading notes (Dialog for adding - no "Applies to" selector)
2104
2110
  * - Actions (Confirm load)
2105
2111
  */
2106
2112
  declare function DeliveryDetailPage({ delivery, week, suppliers, userRole, currentSupplierId, onBack, onAddComment, onConfirmLoad, }: DeliveryDetailPageProps): react_jsx_runtime.JSX.Element;
@@ -2114,8 +2120,8 @@ interface WeeklyLoadingViewProps {
2114
2120
  onDeliveryClick?: (delivery: LoadingDelivery) => void;
2115
2121
  /** Callback for week navigation (optional) */
2116
2122
  onWeekChange?: (direction: "prev" | "next") => void;
2117
- /** Callback when day comment button is clicked */
2118
- onDayCommentClick?: (dayOfWeek: number, date: Date) => void;
2123
+ /** Callback when delivery comment button is clicked */
2124
+ onDeliveryCommentClick?: (delivery: LoadingDelivery) => void;
2119
2125
  /** Show week navigation controls */
2120
2126
  showNavigation?: boolean;
2121
2127
  /** Additional class names */
@@ -2126,11 +2132,11 @@ interface WeeklyLoadingViewProps {
2126
2132
  *
2127
2133
  * Layout using Quantum spacing tokens:
2128
2134
  * - Columns = Mon-Fri (no vertical dividers)
2129
- * - Day headers include comment button (top-right)
2135
+ * - Clean day headers (no comment controls)
2130
2136
  * - Each column contains stacked delivery cards with gap-3 (j3m.spacing.s = 12px)
2131
2137
  * - Content-sized grid
2132
2138
  */
2133
- declare function WeeklyLoadingView({ week, deliveries, onDeliveryClick, onWeekChange, onDayCommentClick, showNavigation, className, }: WeeklyLoadingViewProps): react_jsx_runtime.JSX.Element;
2139
+ declare function WeeklyLoadingView({ week, deliveries, onDeliveryClick, onWeekChange, onDeliveryCommentClick, showNavigation, className, }: WeeklyLoadingViewProps): react_jsx_runtime.JSX.Element;
2134
2140
 
2135
2141
  /**
2136
2142
  * Event Calendar Types
@@ -2704,4 +2710,245 @@ interface BigCalendarProps extends Omit<EventCalendarProviderProps, "children">
2704
2710
  }
2705
2711
  declare function BigCalendar({ className, compact, bordered, showHeader, showAddButton, showSettings, enableDragDrop, weekStartsOn, maxEventsPerDay, config, ...providerProps }: BigCalendarProps): react_jsx_runtime.JSX.Element;
2706
2712
 
2707
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgendaView, type AgendaViewProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, BADGE_VARIANT_LABELS, Badge, BigCalendar, type BigCalendarProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Calendar, CalendarContext, CalendarDayButton, CalendarHeader, CalendarHeaderCompact, type CalendarHeaderCompactProps, type CalendarHeaderProps, CalendarSettingsButton, type CalendarSettingsButtonProps, CalendarSettingsContent, type CalendarSettingsContentProps, CalendarSettingsDialog, type CalendarSettingsDialogProps, type CalibrationCellData, type CalibrationComment, type CalibrationMode, type CalibrationOverviewProps, type CalibrationPrefix, type CalibrationStatus, type CalibrationSupplier, CalibrationTable, type CalibrationTableConfig, type CalibrationTableProps, type CalibrationUnit, CalibrationWeekCell, type CalibrationWeekCellProps, CalibrationWeekHeader, type CalibrationWeekHeaderProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChangeBadgeVariantInput, ChangeVisibleHoursInput, ChangeWorkingHoursInput, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckpointBadgeType, CircularProgress, type CircularProgressProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommentButton, type CommentButtonProps, type CommentContext, CommentDialog, type CommentDialogProps, type CommentLocationOption, CommentPopover, type CommentPopoverProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_VISIBLE_HOURS, DEFAULT_WORKING_HOURS, DataTableColumnHeader, type DataTableColumnHeaderProps, DataTablePagination, type DataTablePaginationProps, DataTableViewOptions, type DataTableViewOptionsProps, DateBadge, type DateBadgeProps, DayView, type DayViewProps, type Delivery, DeliveryBadge, type DeliveryBadgeProps, DeliveryCard, type DeliveryCardProps, DeliveryDetailPage, type DeliveryDetailPageProps, type DeliveryElement, DeliveryIndicator, type DeliveryIndicatorProps, DeliveryIndicators, type DeliveryIndicatorsProps, type DeliveryStatus, type DeliveryVisualState, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragContext, DragProvider, type DragProviderProps, DraggableEvent, type DraggableEventProps, 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, DroppableZone, type DroppableZoneProps, EVENT_COLORS, type ElementShipmentStatus, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, EventBadge, type EventBadgeProps, EventCalendarProvider, type EventCalendarProviderProps, EventDialog, type EventDialogProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, type ICalendarActions, type ICalendarCell, type ICalendarConfig, type ICalendarContext, type ICalendarHeaderProps, type ICalendarState, type IDayCellProps, type IDragContext, type IEvent, type IEventBadgeProps, type IEventDialogProps, type IEventPosition, type ITimeSlotProps, type IUser, type IViewProps, type IWorkingHours, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, type LoadingComment, type LoadingDelivery, type LoadingDeliveryStatus, type LoadingElement, type LoadingElementStatus, type LoadingPrefix, type LoadingSupplier, type LoadingUserRole, type LoadingWeek, Map$1 as Map, MapMarker, type MapMarkerProps, MapPopup, type MapPopupProps, type MapProps, MapTileLayer, type MapTileLayerProps, MapTooltip, type MapTooltipProps, MapZoomControl, type MapZoomControlProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MonthView, type MonthViewProps, MoreEvents, type MoreEventsProps, NativeSelect, NativeSelectOptGroup, NativeSelectOption, type NavItem, NavMain, type NavProject, NavProjects, NavSecondary, NavUser, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NetBadge, type NetBadgeProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PlanningComment, type PlanningCommentLocation, type PlanningCommentLocationType, PlanningTable, type PlanningTableConfig, type PlanningTableProps, PlanningTableToolbar, type PlanningTableToolbarProps, type PlanningUserRole, PlanningWeekCommentPopover, type PlanningWeekCommentPopoverProps, PlayerCanvas, PlayerCanvasActionButton, PlayerCanvasControls, PlayerCanvasDivider, PlayerCanvasInfo, PlayerCanvasLabel, PlayerCanvasPlayButton, PlayerCanvasProgress, PlayerCanvasSkipButton, PlayerCanvasTitle, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PrefixOption, type ProductionData, type ProductionUnit, Progress, QuickAddEvent, type QuickAddEventProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, RowHeaderCell, type RowHeaderCellProps, ScrollArea, ScrollBar, SearchForm, SearchTrigger, type SearchTriggerProps, Section, SectionContent, SectionDescription, SectionFooter, SectionHeader, type SectionProps, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBody, 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, SiteHeader, Skeleton, Slider, Spinner, type SubmissionStatus, SubmitCalibrationBar, type SubmitCalibrationBarProps, type Supplier, type SupplierBadgeType, SupplierCell, type SupplierCellProps, SupplierWeeklyLoading, type SupplierWeeklyLoadingProps, Switch, type TBadgeVariant, type TCalendarView, type TEventColor, type TVisibleHours, type TWorkingHours, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitch, type ThemeSwitchProps, TimeIndicator, type TimeIndicatorProps, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToolBarCanvas, ToolBarCanvasButton, ToolBarCanvasDivider, ToolBarCanvasGroup, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseDroppableOptions, type UserAvatarItem, UserAvatarsDropdown, type UserAvatarsDropdownProps, VIEW_LABELS, type Week, WeekCell, type WeekCellData, type WeekCellProps, WeekDetailDialog, type WeekDetailDialogProps, WeekHeader, type WeekHeaderProps, WeekView, type WeekViewProps, WeeklyLoadingView, type WeeklyLoadingViewProps, YearView, type YearViewProps, badgeVariants, buttonGroupVariants, buttonVariants, calculateCalibrationCells, calculateDropDates, calculateMonthEventPositions, canSubmitCalibration, cardVariants, createDefaultEvent, deliveryIndicatorVariants, extractPrefixes, formatCalibrationUnit, formatDateRange, formatProductionUnit, formatTime, generateColumns, generateEventId, generateLoadingWeek, generateLocationOptions, generateWeekColumns, generateWeeks, getCalendarCells, getCommentLocationLabel, getCurrentEvents, getDayHours, getDayLabel, getDeliveryVisualState, getElementShipmentStatus, getEventBlockStyle, getEventDuration, getEventDurationMinutes, getEventsCount, getEventsForDate, getEventsInRange, getHeaderLabel, getISOWeek, getLoadingDeliveryStatusLabel, getLoadingElementStatusLabel, getLoadingISOWeek, getLoadingWeekKey, getMonthCellEvents, getMonthDays, getShipmentStatusLabel, getShortDayLabel, getSupplierColumn, getTimeHeight, getTimePosition, getViewDateRange, getVisibleHours, getWeekDayNames, getWeekDays, getWeekKey, getYearMonths, groupDeliveriesByDay, groupDeliveriesByPrefixAndDay, groupEvents, isMultiDayEvent, isWorkingHour, navigateDate, navigationMenuTriggerStyle, playerCanvasPlayButtonVariants, playerCanvasSkipButtonVariants, rangeText, sectionVariants, snapToInterval, sortEvents, splitEventsByDuration, toggleVariants, toolBarCanvasButtonVariants, useDrag, useDraggable, useDroppable, useEventCalendar, useEventsInRange, useFilteredEvents, useFormField, useIsMobile, useSearchShortcut, useSidebar };
2713
+ declare const useGanttDragging: () => [boolean, (args_0: boolean | ((prev: boolean) => boolean)) => void];
2714
+ declare const useGanttScrollX: () => [number, (args_0: number | ((prev: number) => number)) => void];
2715
+ type GanttStatus = {
2716
+ id: string;
2717
+ name: string;
2718
+ color: string;
2719
+ };
2720
+ type GanttFeature = {
2721
+ id: string;
2722
+ name: string;
2723
+ startAt: Date;
2724
+ endAt: Date;
2725
+ status: GanttStatus;
2726
+ lane?: string;
2727
+ };
2728
+ type GanttGroup = {
2729
+ id: string;
2730
+ title: string;
2731
+ icon?: ReactNode;
2732
+ features: GanttFeature[];
2733
+ };
2734
+ type GanttMarkerProps = {
2735
+ id: string;
2736
+ date: Date;
2737
+ label: string;
2738
+ };
2739
+ type Range = "weekly" | "monthly" | "quarterly";
2740
+ type TimelineData = {
2741
+ year: number;
2742
+ quarters: {
2743
+ months: {
2744
+ days: number;
2745
+ }[];
2746
+ }[];
2747
+ }[];
2748
+ type GanttContextProps = {
2749
+ zoom: number;
2750
+ range: Range;
2751
+ columnWidth: number;
2752
+ sidebarWidth: number;
2753
+ headerHeight: number;
2754
+ rowHeight: number;
2755
+ onAddItem: ((date: Date) => void) | undefined;
2756
+ placeholderLength: number;
2757
+ timelineData: TimelineData;
2758
+ ref: RefObject<HTMLDivElement | null> | null;
2759
+ scrollToFeature?: (feature: GanttFeature) => void;
2760
+ expandedGroups: Record<string, boolean>;
2761
+ setGroupExpanded: (groupId: string, expanded: boolean) => void;
2762
+ };
2763
+ type GanttContentHeaderProps = {
2764
+ renderHeaderItem: (index: number) => ReactNode;
2765
+ title: string;
2766
+ columns: number;
2767
+ };
2768
+ declare const GanttContentHeader: FC<GanttContentHeaderProps>;
2769
+ type GanttHeaderProps = {
2770
+ className?: string;
2771
+ };
2772
+ declare const GanttHeader: FC<GanttHeaderProps>;
2773
+ type GanttSidebarItemProps = {
2774
+ feature: GanttFeature;
2775
+ onSelectItem?: (id: string) => void;
2776
+ className?: string;
2777
+ };
2778
+ declare const GanttSidebarItem: FC<GanttSidebarItemProps>;
2779
+ type GanttSidebarHeaderProps = {
2780
+ title?: string;
2781
+ durationLabel?: string;
2782
+ };
2783
+ declare const GanttSidebarHeader: FC<GanttSidebarHeaderProps>;
2784
+ type GanttGroupSummaryBarProps = {
2785
+ group: GanttGroup;
2786
+ className?: string;
2787
+ };
2788
+ declare const GanttGroupSummaryBar: FC<GanttGroupSummaryBarProps>;
2789
+ type GanttCollapsibleGroupProps = {
2790
+ group: GanttGroup;
2791
+ children: ReactNode;
2792
+ onSelectItem?: (id: string) => void;
2793
+ className?: string;
2794
+ };
2795
+ declare const GanttCollapsibleSidebarGroup: FC<GanttCollapsibleGroupProps>;
2796
+ type GanttCollapsibleTimelineGroupProps = {
2797
+ group: GanttGroup;
2798
+ children: ReactNode;
2799
+ className?: string;
2800
+ };
2801
+ declare const GanttCollapsibleTimelineGroup: FC<GanttCollapsibleTimelineGroupProps>;
2802
+ type GanttSidebarGroupProps = {
2803
+ children: ReactNode;
2804
+ name: string;
2805
+ className?: string;
2806
+ };
2807
+ declare const GanttSidebarGroup: FC<GanttSidebarGroupProps>;
2808
+ type GanttSidebarProps = {
2809
+ children: ReactNode;
2810
+ className?: string;
2811
+ };
2812
+ declare const GanttSidebar: FC<GanttSidebarProps>;
2813
+ type GanttAddFeatureHelperProps = {
2814
+ top: number;
2815
+ className?: string;
2816
+ };
2817
+ declare const GanttAddFeatureHelper: FC<GanttAddFeatureHelperProps>;
2818
+ type GanttColumnProps = {
2819
+ index: number;
2820
+ isColumnSecondary?: (item: number) => boolean;
2821
+ };
2822
+ declare const GanttColumn: FC<GanttColumnProps>;
2823
+ type GanttColumnsProps = {
2824
+ columns: number;
2825
+ isColumnSecondary?: (item: number) => boolean;
2826
+ };
2827
+ declare const GanttColumns: FC<GanttColumnsProps>;
2828
+ type GanttGridLinesProps = {
2829
+ className?: string;
2830
+ };
2831
+ /**
2832
+ * Renders vertical grid lines that span the full height of the timeline.
2833
+ * Uses the same column structure as the header to ensure alignment.
2834
+ *
2835
+ * - Weekly view: lines at each week + stronger lines at month boundaries
2836
+ * - Monthly view: lines at each month
2837
+ * - Quarterly view: lines at each month within quarter
2838
+ */
2839
+ declare const GanttGridLines: FC<GanttGridLinesProps>;
2840
+ type GanttCreateMarkerTriggerProps = {
2841
+ onCreateMarker: (date: Date) => void;
2842
+ className?: string;
2843
+ };
2844
+ declare const GanttCreateMarkerTrigger: FC<GanttCreateMarkerTriggerProps>;
2845
+ type GanttFeatureDragHelperProps = {
2846
+ featureId: GanttFeature["id"];
2847
+ direction: "left" | "right";
2848
+ date: Date | null;
2849
+ };
2850
+ declare const GanttFeatureDragHelper: FC<GanttFeatureDragHelperProps>;
2851
+ type GanttFeatureItemCardProps = Pick<GanttFeature, "id"> & {
2852
+ children?: ReactNode;
2853
+ };
2854
+ declare const GanttFeatureItemCard: FC<GanttFeatureItemCardProps>;
2855
+ type GanttFeatureContextMenuAction = {
2856
+ label: string;
2857
+ icon?: ReactNode;
2858
+ onClick: (feature: GanttFeature) => void;
2859
+ destructive?: boolean;
2860
+ disabled?: boolean;
2861
+ };
2862
+ type GanttFeatureItemProps = GanttFeature & {
2863
+ onMove?: (id: string, startDate: Date, endDate: Date | null) => void;
2864
+ /** Context menu actions for right-click */
2865
+ contextMenuActions?: GanttFeatureContextMenuAction[];
2866
+ /** Quick action callbacks */
2867
+ onEdit?: (feature: GanttFeature) => void;
2868
+ onDelete?: (feature: GanttFeature) => void;
2869
+ onDuplicate?: (feature: GanttFeature) => void;
2870
+ children?: ReactNode;
2871
+ className?: string;
2872
+ };
2873
+ declare const GanttFeatureItem: FC<GanttFeatureItemProps>;
2874
+ type GanttFeatureListGroupProps = {
2875
+ children: ReactNode;
2876
+ className?: string;
2877
+ };
2878
+ declare const GanttFeatureListGroup: FC<GanttFeatureListGroupProps>;
2879
+ type GanttFeatureRowProps = {
2880
+ features: GanttFeature[];
2881
+ onMove?: (id: string, startAt: Date, endAt: Date | null) => void;
2882
+ children?: (feature: GanttFeature) => ReactNode;
2883
+ className?: string;
2884
+ };
2885
+ declare const GanttFeatureRow: FC<GanttFeatureRowProps>;
2886
+ type GanttFeatureListProps = {
2887
+ className?: string;
2888
+ children: ReactNode;
2889
+ };
2890
+ declare const GanttFeatureList: FC<GanttFeatureListProps>;
2891
+ declare const GanttMarker: FC<GanttMarkerProps & {
2892
+ onRemove?: (id: string) => void;
2893
+ className?: string;
2894
+ }>;
2895
+ type GanttProviderProps = {
2896
+ range?: Range;
2897
+ zoom?: number;
2898
+ onAddItem?: (date: Date) => void;
2899
+ children: ReactNode;
2900
+ className?: string;
2901
+ /** Initial expanded state for groups. Key is group ID, value is expanded state. */
2902
+ defaultExpandedGroups?: Record<string, boolean>;
2903
+ };
2904
+ declare const GanttProvider: FC<GanttProviderProps>;
2905
+ type GanttTimelineProps = {
2906
+ children: ReactNode;
2907
+ className?: string;
2908
+ };
2909
+ declare const GanttTimeline: FC<GanttTimelineProps>;
2910
+ type GanttTodayProps = {
2911
+ className?: string;
2912
+ };
2913
+ declare const GanttToday: FC<GanttTodayProps>;
2914
+
2915
+ type KanbanItemProps = {
2916
+ id: string;
2917
+ name: string;
2918
+ column: string;
2919
+ } & Record<string, unknown>;
2920
+ type KanbanColumnProps = {
2921
+ id: string;
2922
+ name: string;
2923
+ } & Record<string, unknown>;
2924
+ type KanbanBoardProps = {
2925
+ id: string;
2926
+ children: ReactNode;
2927
+ className?: string;
2928
+ };
2929
+ declare const KanbanBoard: ({ id, children, className }: KanbanBoardProps) => react_jsx_runtime.JSX.Element;
2930
+ type KanbanCardProps<T extends KanbanItemProps = KanbanItemProps> = T & {
2931
+ children?: ReactNode;
2932
+ className?: string;
2933
+ };
2934
+ declare const KanbanCard: <T extends KanbanItemProps = KanbanItemProps>({ id, name, children, className, }: KanbanCardProps<T>) => react_jsx_runtime.JSX.Element;
2935
+ type KanbanCardsProps<T extends KanbanItemProps = KanbanItemProps> = Omit<HTMLAttributes<HTMLDivElement>, "children" | "id"> & {
2936
+ children: (item: T) => ReactNode;
2937
+ id: string;
2938
+ };
2939
+ declare const KanbanCards: <T extends KanbanItemProps = KanbanItemProps>({ children, className, ...props }: KanbanCardsProps<T>) => react_jsx_runtime.JSX.Element;
2940
+ type KanbanHeaderProps = HTMLAttributes<HTMLDivElement>;
2941
+ declare const KanbanHeader: ({ className, ...props }: KanbanHeaderProps) => react_jsx_runtime.JSX.Element;
2942
+ type KanbanProviderProps<T extends KanbanItemProps = KanbanItemProps, C extends KanbanColumnProps = KanbanColumnProps> = Omit<DndContextProps, "children"> & {
2943
+ children: (column: C) => ReactNode;
2944
+ className?: string;
2945
+ columns: C[];
2946
+ data: T[];
2947
+ onDataChange?: (data: T[]) => void;
2948
+ onDragStart?: (event: DragStartEvent) => void;
2949
+ onDragEnd?: (event: DragEndEvent) => void;
2950
+ onDragOver?: (event: DragOverEvent) => void;
2951
+ };
2952
+ declare const KanbanProvider: <T extends KanbanItemProps = KanbanItemProps, C extends KanbanColumnProps = KanbanColumnProps>({ children, onDragStart, onDragEnd, onDragOver, className, columns, data, onDataChange, ...props }: KanbanProviderProps<T, C>) => react_jsx_runtime.JSX.Element;
2953
+
2954
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgendaView, type AgendaViewProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, BADGE_VARIANT_LABELS, Badge, BigCalendar, type BigCalendarProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Calendar, CalendarContext, CalendarDayButton, CalendarHeader, CalendarHeaderCompact, type CalendarHeaderCompactProps, type CalendarHeaderProps, CalendarSettingsButton, type CalendarSettingsButtonProps, CalendarSettingsContent, type CalendarSettingsContentProps, CalendarSettingsDialog, type CalendarSettingsDialogProps, type CalibrationCellData, type CalibrationComment, type CalibrationMode, type CalibrationOverviewProps, type CalibrationPrefix, type CalibrationStatus, type CalibrationSupplier, CalibrationTable, type CalibrationTableConfig, type CalibrationTableProps, type CalibrationUnit, CalibrationWeekCell, type CalibrationWeekCellProps, CalibrationWeekHeader, type CalibrationWeekHeaderProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChangeBadgeVariantInput, ChangeVisibleHoursInput, ChangeWorkingHoursInput, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckpointBadgeType, CircularProgress, type CircularProgressProps, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CommentButton, type CommentButtonProps, type CommentContext, CommentDialog, type CommentDialogProps, type CommentLocationOption, CommentPopover, type CommentPopoverProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_VISIBLE_HOURS, DEFAULT_WORKING_HOURS, DataTableColumnHeader, type DataTableColumnHeaderProps, DataTablePagination, type DataTablePaginationProps, DataTableViewOptions, type DataTableViewOptionsProps, DateBadge, type DateBadgeProps, DayView, type DayViewProps, type Delivery, DeliveryBadge, type DeliveryBadgeProps, DeliveryCard, type DeliveryCardProps, DeliveryDetailPage, type DeliveryDetailPageProps, type DeliveryElement, DeliveryIndicator, type DeliveryIndicatorProps, DeliveryIndicators, type DeliveryIndicatorsProps, type DeliveryStatus, type DeliveryVisualState, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragContext, DragProvider, type DragProviderProps, DraggableEvent, type DraggableEventProps, 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, DroppableZone, type DroppableZoneProps, EVENT_COLORS, type ElementShipmentStatus, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, EventBadge, type EventBadgeProps, EventCalendarProvider, type EventCalendarProviderProps, EventDialog, type EventDialogProps, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GanttAddFeatureHelper, type GanttAddFeatureHelperProps, type GanttCollapsibleGroupProps, GanttCollapsibleSidebarGroup, GanttCollapsibleTimelineGroup, type GanttCollapsibleTimelineGroupProps, GanttColumn, type GanttColumnProps, GanttColumns, type GanttColumnsProps, GanttContentHeader, type GanttContentHeaderProps, type GanttContextProps, GanttCreateMarkerTrigger, type GanttCreateMarkerTriggerProps, type GanttFeature, type GanttFeatureContextMenuAction, GanttFeatureDragHelper, type GanttFeatureDragHelperProps, GanttFeatureItem, GanttFeatureItemCard, type GanttFeatureItemCardProps, type GanttFeatureItemProps, GanttFeatureList, GanttFeatureListGroup, type GanttFeatureListGroupProps, type GanttFeatureListProps, GanttFeatureRow, type GanttFeatureRowProps, GanttGridLines, type GanttGridLinesProps, type GanttGroup, GanttGroupSummaryBar, type GanttGroupSummaryBarProps, GanttHeader, type GanttHeaderProps, GanttMarker, type GanttMarkerProps, GanttProvider, type GanttProviderProps, GanttSidebar, GanttSidebarGroup, type GanttSidebarGroupProps, GanttSidebarHeader, type GanttSidebarHeaderProps, GanttSidebarItem, type GanttSidebarItemProps, type GanttSidebarProps, type GanttStatus, GanttTimeline, type GanttTimelineProps, GanttToday, type GanttTodayProps, HoverCard, HoverCardContent, HoverCardTrigger, type ICalendarActions, type ICalendarCell, type ICalendarConfig, type ICalendarContext, type ICalendarHeaderProps, type ICalendarState, type IDayCellProps, type IDragContext, type IEvent, type IEventBadgeProps, type IEventDialogProps, type IEventPosition, type ITimeSlotProps, type IUser, type IViewProps, type IWorkingHours, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, KanbanBoard, type KanbanBoardProps, KanbanCard, type KanbanCardProps, KanbanCards, type KanbanCardsProps, KanbanHeader, type KanbanHeaderProps, KanbanProvider, type KanbanProviderProps, Kbd, KbdGroup, Label, type LoadingComment, type LoadingDelivery, type LoadingDeliveryStatus, type LoadingElement, type LoadingElementStatus, type LoadingPrefix, type LoadingSupplier, type LoadingUserRole, type LoadingWeek, Map$1 as Map, MapMarker, type MapMarkerProps, MapPopup, type MapPopupProps, type MapProps, MapTileLayer, type MapTileLayerProps, MapTooltip, type MapTooltipProps, MapZoomControl, type MapZoomControlProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MonthView, type MonthViewProps, MoreEvents, type MoreEventsProps, NativeSelect, NativeSelectOptGroup, NativeSelectOption, type NavItem, NavMain, type NavProject, NavProjects, NavSecondary, NavUser, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NetBadge, type NetBadgeProps, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, type PlanningComment, type PlanningCommentLocation, type PlanningCommentLocationType, PlanningTable, type PlanningTableConfig, type PlanningTableProps, PlanningTableToolbar, type PlanningTableToolbarProps, type PlanningUserRole, PlanningWeekCommentPopover, type PlanningWeekCommentPopoverProps, PlayerCanvas, PlayerCanvasActionButton, PlayerCanvasControls, PlayerCanvasDivider, PlayerCanvasInfo, PlayerCanvasLabel, PlayerCanvasPlayButton, PlayerCanvasProgress, PlayerCanvasSkipButton, PlayerCanvasTitle, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PrefixOption, type ProductionData, type ProductionUnit, Progress, QuickAddEvent, type QuickAddEventProps, RadioGroup, RadioGroupItem, type Range, ResizableHandle, ResizablePanel, ResizablePanelGroup, RowHeaderCell, type RowHeaderCellProps, ScrollArea, ScrollBar, SearchForm, SearchTrigger, type SearchTriggerProps, Section, SectionContent, SectionDescription, SectionFooter, SectionHeader, type SectionProps, SectionTitle, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetBody, 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, SiteHeader, Skeleton, Slider, Spinner, type SubmissionStatus, SubmitCalibrationBar, type SubmitCalibrationBarProps, type Supplier, type SupplierBadgeType, SupplierCell, type SupplierCellProps, SupplierWeeklyLoading, type SupplierWeeklyLoadingProps, Switch, type TBadgeVariant, type TCalendarView, type TEventColor, type TVisibleHours, type TWorkingHours, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitch, type ThemeSwitchProps, TimeIndicator, type TimeIndicatorProps, type TimelineData, Toaster, Toggle, ToggleGroup, ToggleGroupItem, ToolBarCanvas, ToolBarCanvasButton, ToolBarCanvasDivider, ToolBarCanvasGroup, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseDroppableOptions, type UserAvatarItem, UserAvatarsDropdown, type UserAvatarsDropdownProps, VIEW_LABELS, type Week, WeekCell, type WeekCellData, type WeekCellProps, WeekDetailDialog, type WeekDetailDialogProps, WeekHeader, type WeekHeaderProps, WeekView, type WeekViewProps, WeeklyLoadingView, type WeeklyLoadingViewProps, YearView, type YearViewProps, badgeVariants, buttonGroupVariants, buttonVariants, calculateCalibrationCells, calculateDropDates, calculateMonthEventPositions, canSubmitCalibration, cardVariants, createDefaultEvent, deliveryIndicatorVariants, extractPrefixes, formatCalibrationUnit, formatDateRange, formatProductionUnit, formatTime, generateColumns, generateEventId, generateLoadingWeek, generateLocationOptions, generateWeekColumns, generateWeeks, getCalendarCells, getCommentLocationLabel, getCurrentEvents, getDayHours, getDayLabel, getDeliveryVisualState, getElementShipmentStatus, getEventBlockStyle, getEventDuration, getEventDurationMinutes, getEventsCount, getEventsForDate, getEventsInRange, getHeaderLabel, getISOWeek, getLoadingDeliveryStatusLabel, getLoadingElementStatusLabel, getLoadingISOWeek, getLoadingWeekKey, getMonthCellEvents, getMonthDays, getShipmentStatusLabel, getShortDayLabel, getSupplierColumn, getTimeHeight, getTimePosition, getViewDateRange, getVisibleHours, getWeekDayNames, getWeekDays, getWeekKey, getYearMonths, groupDeliveriesByDay, groupDeliveriesByPrefixAndDay, groupEvents, isMultiDayEvent, isWorkingHour, navigateDate, navigationMenuTriggerStyle, playerCanvasPlayButtonVariants, playerCanvasSkipButtonVariants, rangeText, sectionVariants, snapToInterval, sortEvents, splitEventsByDuration, toggleVariants, toolBarCanvasButtonVariants, useDrag, useDraggable, useDroppable, useEventCalendar, useEventsInRange, useFilteredEvents, useFormField, useGanttDragging, useGanttScrollX, useIsMobile, useSearchShortcut, useSidebar };