hazo_ui 6.4.0 → 6.7.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/CHANGE_LOG.md +118 -0
- package/README.md +42 -0
- package/dist/index.cjs +262 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +69 -2
- package/dist/index.d.ts +69 -2
- package/dist/index.js +263 -92
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -1883,6 +1883,44 @@ interface KanbanItem {
|
|
|
1883
1883
|
* at the bottom of the column.
|
|
1884
1884
|
*/
|
|
1885
1885
|
sectionKey?: string;
|
|
1886
|
+
/**
|
|
1887
|
+
* Which swimlane row this card sits in. Only meaningful when the board is
|
|
1888
|
+
* given `lanes`; ignored otherwise. A card whose `laneKey` matches no
|
|
1889
|
+
* declared lane renders in an unlabelled trailing lane at the foot of the
|
|
1890
|
+
* board rather than disappearing.
|
|
1891
|
+
*/
|
|
1892
|
+
laneKey?: string;
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* A full-width horizontal row of the board. Lanes are the *outer* grouping
|
|
1896
|
+
* axis: each lane renders its own copy of the column grid holding only that
|
|
1897
|
+
* lane's cards, under a wide lane heading. Sections group *within* a column;
|
|
1898
|
+
* lanes group *across* all of them.
|
|
1899
|
+
*/
|
|
1900
|
+
interface KanbanLane {
|
|
1901
|
+
key: string;
|
|
1902
|
+
title: string;
|
|
1903
|
+
/** Optional gate: returning false rejects a drop into this lane. */
|
|
1904
|
+
accepts?: (item: KanbanItem) => boolean;
|
|
1905
|
+
/**
|
|
1906
|
+
* Per-lane controls rendered in the lane heading, between the rule and the
|
|
1907
|
+
* count — an "add to this lane" button, an overflow menu, a lane filter.
|
|
1908
|
+
* Also rendered (right-aligned) on a `collapseWhenEmpty` lane's drop strip,
|
|
1909
|
+
* so a lane's actions do not disappear the moment it empties.
|
|
1910
|
+
*
|
|
1911
|
+
* The heading is a drop target but not a drag handle, so interactive nodes
|
|
1912
|
+
* here work without any `stopPropagation` dance — unlike controls rendered
|
|
1913
|
+
* inside a card by `renderCard`.
|
|
1914
|
+
*/
|
|
1915
|
+
actions?: React$1.ReactNode;
|
|
1916
|
+
/**
|
|
1917
|
+
* When true and the lane currently holds no cards, it renders as a thin
|
|
1918
|
+
* full-width drop strip instead of a heading plus an empty column grid.
|
|
1919
|
+
* Keeps a board short when the lane list is a long vocabulary, while
|
|
1920
|
+
* leaving every lane reachable as a drop target. A drop on the strip
|
|
1921
|
+
* changes the lane and keeps the card's current column.
|
|
1922
|
+
*/
|
|
1923
|
+
collapseWhenEmpty?: boolean;
|
|
1886
1924
|
}
|
|
1887
1925
|
/**
|
|
1888
1926
|
* A horizontal band inside a column. Sections split a column's cards into
|
|
@@ -1939,6 +1977,10 @@ type KanbanMoveEvent<T extends KanbanItem = KanbanItem> = {
|
|
|
1939
1977
|
fromSection?: string;
|
|
1940
1978
|
/** The section dropped into. `undefined` on unsectioned boards. */
|
|
1941
1979
|
toSection?: string;
|
|
1980
|
+
/** The card's own `laneKey`. `undefined` on boards without lanes. */
|
|
1981
|
+
fromLane?: string;
|
|
1982
|
+
/** The lane dropped into. `undefined` on boards without lanes. */
|
|
1983
|
+
toLane?: string;
|
|
1942
1984
|
newIndex: number;
|
|
1943
1985
|
} & KanbanMoveHandle;
|
|
1944
1986
|
/**
|
|
@@ -1950,6 +1992,8 @@ type KanbanReorderEvent<T extends KanbanItem = KanbanItem> = {
|
|
|
1950
1992
|
columnKey: string;
|
|
1951
1993
|
/** The section reordered within. `undefined` on unsectioned boards. */
|
|
1952
1994
|
sectionKey?: string;
|
|
1995
|
+
/** The lane reordered within. `undefined` on boards without lanes. */
|
|
1996
|
+
laneKey?: string;
|
|
1953
1997
|
newIndex: number;
|
|
1954
1998
|
} & KanbanMoveHandle;
|
|
1955
1999
|
/**
|
|
@@ -1981,6 +2025,13 @@ interface KanbanAnnouncements {
|
|
|
1981
2025
|
*/
|
|
1982
2026
|
interface HazoUiKanbanProps<T extends KanbanItem = KanbanItem> {
|
|
1983
2027
|
columns: KanbanColumn[];
|
|
2028
|
+
/**
|
|
2029
|
+
* Optional swimlanes. When present, the board renders one full-width row
|
|
2030
|
+
* per lane — a wide lane heading, then that lane's own copy of the column
|
|
2031
|
+
* grid — and cards are placed by `KanbanItem.laneKey`. Omit for a single
|
|
2032
|
+
* unbanded board (the default).
|
|
2033
|
+
*/
|
|
2034
|
+
lanes?: KanbanLane[];
|
|
1984
2035
|
items: T[];
|
|
1985
2036
|
renderCard: (item: T) => React$1.ReactNode;
|
|
1986
2037
|
onMove?: (event: KanbanMoveEvent<T>) => void;
|
|
@@ -1991,6 +2042,22 @@ interface HazoUiKanbanProps<T extends KanbanItem = KanbanItem> {
|
|
|
1991
2042
|
announcements?: Partial<KanbanAnnouncements>;
|
|
1992
2043
|
/** Rendered when a column has zero items. Default: muted "—" placeholder. */
|
|
1993
2044
|
emptyColumn?: React$1.ReactNode;
|
|
2045
|
+
/**
|
|
2046
|
+
* Rendered at the foot of every column body, below the cards (or below the
|
|
2047
|
+
* `emptyColumn` placeholder). Called once per rendered copy of a column, so
|
|
2048
|
+
* on a laned board it fires once per (lane, column) pair and `laneKey` says
|
|
2049
|
+
* which — that is what makes a per-lane "+ Add item" affordance possible
|
|
2050
|
+
* without the consumer having to reach into the board's internals.
|
|
2051
|
+
*
|
|
2052
|
+
* Return `null` for the columns that should not have one. The footer sits
|
|
2053
|
+
* inside the column's droppable but outside its `SortableContext`, so it
|
|
2054
|
+
* never participates in ordering and never becomes a drop target itself.
|
|
2055
|
+
*/
|
|
2056
|
+
renderColumnFooter?: (ctx: {
|
|
2057
|
+
columnKey: string;
|
|
2058
|
+
/** `undefined` on a board without lanes. */
|
|
2059
|
+
laneKey?: string;
|
|
2060
|
+
}) => React$1.ReactNode;
|
|
1994
2061
|
/** Class on the board root. */
|
|
1995
2062
|
className?: string;
|
|
1996
2063
|
/** Class on each card shell (the wrapper around renderCard output). */
|
|
@@ -2174,7 +2241,7 @@ declare function applyKanbanFilter<T extends KanbanItem>(items: T[], filter: Kan
|
|
|
2174
2241
|
* event.revert() and the overlay entry is dropped.
|
|
2175
2242
|
*/
|
|
2176
2243
|
|
|
2177
|
-
declare function HazoUiKanban<T extends KanbanItem = KanbanItem>({ columns, items, renderCard, onMove, onReorder, mobileBreakpoint, announcements, emptyColumn, className, cardClassName, itemLabel, editorFields, editorPriorities, editorTitle, renderCardEditor, hideEditorFooter, onCardSave, disableEdit, }: HazoUiKanbanProps<T>): React$1.JSX.Element;
|
|
2244
|
+
declare function HazoUiKanban<T extends KanbanItem = KanbanItem>({ columns, lanes, items, renderCard, onMove, onReorder, mobileBreakpoint, announcements, emptyColumn, renderColumnFooter, className, cardClassName, itemLabel, editorFields, editorPriorities, editorTitle, renderCardEditor, hideEditorFooter, onCardSave, disableEdit, }: HazoUiKanbanProps<T>): React$1.JSX.Element;
|
|
2178
2245
|
|
|
2179
2246
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
2180
2247
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -2895,4 +2962,4 @@ interface UseScrollRestoreResult {
|
|
|
2895
2962
|
*/
|
|
2896
2963
|
declare function useScrollRestore(treeId: string, viewName: string, options?: UseScrollRestoreOptions): UseScrollRestoreResult;
|
|
2897
2964
|
|
|
2898
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, AppFooter, type AppFooterProps, AppHeader, type AppHeaderProps, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, type CanvasTextToolbarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, 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, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type EtaProgressHandle, type FilterConfig, type FilterField, FunnelChart, type FunnelChartProps, type FunnelStep, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, type HazoUiDialogKind, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiEtaProgress, type HazoUiEtaProgressProps, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiIcon, HazoUiIconPicker, type HazoUiIconPickerProps, type HazoUiIconProps, HazoUiImageCropper, HazoUiImageCropperDialog, type HazoUiImageCropperDialogProps, type HazoUiImageCropperHandle, type HazoUiImageCropperProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMemoryDropdown, type HazoUiMemoryDropdownProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiProgressBar, type HazoUiProgressBarProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAffix, type InputAffixProps, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, type KanbanSection, Label, LiveRegion, type LiveRegionProps, LoadingTimeout, type LoadingTimeoutProps, type Logger, Logo, type LogoProps, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, type MemoryEntry, NotificationCountBadge, type NotificationCountBadgeProps, NotificationItem, type NotificationItemProps, NotificationPanel, type NotificationPanelProps, type PermissionToastOptions, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, Slider, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseEtaProgressOptions, type UseFullscreenRefResult, type UseFullscreenResult, type UseLoadingStateResult, type UseLongPressOptions, type UseLongPressResult, type UseRememberedStateOptions, type UseScrollRestoreOptions, type UseScrollRestoreResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate, computeEta, create_command_suggestion_extension, easeToward, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, isLucideValue, median, parse_commands_from_text, permissionToast, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, upsertEntry as upsertMemoryEntry, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useEtaProgress, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useLongPress, useMediaQuery, useRememberedState, useScrollRestore, useSessionStorage, useViewport, useWakeLock, use_fullscreen, use_wake_lock };
|
|
2965
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, AppFooter, type AppFooterProps, AppHeader, type AppHeaderProps, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, type CanvasTextToolbarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, 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, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type EtaProgressHandle, type FilterConfig, type FilterField, FunnelChart, type FunnelChartProps, type FunnelStep, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, type HazoUiDialogKind, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiEtaProgress, type HazoUiEtaProgressProps, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiIcon, HazoUiIconPicker, type HazoUiIconPickerProps, type HazoUiIconProps, HazoUiImageCropper, HazoUiImageCropperDialog, type HazoUiImageCropperDialogProps, type HazoUiImageCropperHandle, type HazoUiImageCropperProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMemoryDropdown, type HazoUiMemoryDropdownProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiProgressBar, type HazoUiProgressBarProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAffix, type InputAffixProps, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanLane, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, type KanbanSection, Label, LiveRegion, type LiveRegionProps, LoadingTimeout, type LoadingTimeoutProps, type Logger, Logo, type LogoProps, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, type MemoryEntry, NotificationCountBadge, type NotificationCountBadgeProps, NotificationItem, type NotificationItemProps, NotificationPanel, type NotificationPanelProps, type PermissionToastOptions, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, Slider, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseEtaProgressOptions, type UseFullscreenRefResult, type UseFullscreenResult, type UseLoadingStateResult, type UseLongPressOptions, type UseLongPressResult, type UseRememberedStateOptions, type UseScrollRestoreOptions, type UseScrollRestoreResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate, computeEta, create_command_suggestion_extension, easeToward, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, isLucideValue, median, parse_commands_from_text, permissionToast, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, upsertEntry as upsertMemoryEntry, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useEtaProgress, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useLongPress, useMediaQuery, useRememberedState, useScrollRestore, useSessionStorage, useViewport, useWakeLock, use_fullscreen, use_wake_lock };
|
package/dist/index.d.ts
CHANGED
|
@@ -1883,6 +1883,44 @@ interface KanbanItem {
|
|
|
1883
1883
|
* at the bottom of the column.
|
|
1884
1884
|
*/
|
|
1885
1885
|
sectionKey?: string;
|
|
1886
|
+
/**
|
|
1887
|
+
* Which swimlane row this card sits in. Only meaningful when the board is
|
|
1888
|
+
* given `lanes`; ignored otherwise. A card whose `laneKey` matches no
|
|
1889
|
+
* declared lane renders in an unlabelled trailing lane at the foot of the
|
|
1890
|
+
* board rather than disappearing.
|
|
1891
|
+
*/
|
|
1892
|
+
laneKey?: string;
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
* A full-width horizontal row of the board. Lanes are the *outer* grouping
|
|
1896
|
+
* axis: each lane renders its own copy of the column grid holding only that
|
|
1897
|
+
* lane's cards, under a wide lane heading. Sections group *within* a column;
|
|
1898
|
+
* lanes group *across* all of them.
|
|
1899
|
+
*/
|
|
1900
|
+
interface KanbanLane {
|
|
1901
|
+
key: string;
|
|
1902
|
+
title: string;
|
|
1903
|
+
/** Optional gate: returning false rejects a drop into this lane. */
|
|
1904
|
+
accepts?: (item: KanbanItem) => boolean;
|
|
1905
|
+
/**
|
|
1906
|
+
* Per-lane controls rendered in the lane heading, between the rule and the
|
|
1907
|
+
* count — an "add to this lane" button, an overflow menu, a lane filter.
|
|
1908
|
+
* Also rendered (right-aligned) on a `collapseWhenEmpty` lane's drop strip,
|
|
1909
|
+
* so a lane's actions do not disappear the moment it empties.
|
|
1910
|
+
*
|
|
1911
|
+
* The heading is a drop target but not a drag handle, so interactive nodes
|
|
1912
|
+
* here work without any `stopPropagation` dance — unlike controls rendered
|
|
1913
|
+
* inside a card by `renderCard`.
|
|
1914
|
+
*/
|
|
1915
|
+
actions?: React$1.ReactNode;
|
|
1916
|
+
/**
|
|
1917
|
+
* When true and the lane currently holds no cards, it renders as a thin
|
|
1918
|
+
* full-width drop strip instead of a heading plus an empty column grid.
|
|
1919
|
+
* Keeps a board short when the lane list is a long vocabulary, while
|
|
1920
|
+
* leaving every lane reachable as a drop target. A drop on the strip
|
|
1921
|
+
* changes the lane and keeps the card's current column.
|
|
1922
|
+
*/
|
|
1923
|
+
collapseWhenEmpty?: boolean;
|
|
1886
1924
|
}
|
|
1887
1925
|
/**
|
|
1888
1926
|
* A horizontal band inside a column. Sections split a column's cards into
|
|
@@ -1939,6 +1977,10 @@ type KanbanMoveEvent<T extends KanbanItem = KanbanItem> = {
|
|
|
1939
1977
|
fromSection?: string;
|
|
1940
1978
|
/** The section dropped into. `undefined` on unsectioned boards. */
|
|
1941
1979
|
toSection?: string;
|
|
1980
|
+
/** The card's own `laneKey`. `undefined` on boards without lanes. */
|
|
1981
|
+
fromLane?: string;
|
|
1982
|
+
/** The lane dropped into. `undefined` on boards without lanes. */
|
|
1983
|
+
toLane?: string;
|
|
1942
1984
|
newIndex: number;
|
|
1943
1985
|
} & KanbanMoveHandle;
|
|
1944
1986
|
/**
|
|
@@ -1950,6 +1992,8 @@ type KanbanReorderEvent<T extends KanbanItem = KanbanItem> = {
|
|
|
1950
1992
|
columnKey: string;
|
|
1951
1993
|
/** The section reordered within. `undefined` on unsectioned boards. */
|
|
1952
1994
|
sectionKey?: string;
|
|
1995
|
+
/** The lane reordered within. `undefined` on boards without lanes. */
|
|
1996
|
+
laneKey?: string;
|
|
1953
1997
|
newIndex: number;
|
|
1954
1998
|
} & KanbanMoveHandle;
|
|
1955
1999
|
/**
|
|
@@ -1981,6 +2025,13 @@ interface KanbanAnnouncements {
|
|
|
1981
2025
|
*/
|
|
1982
2026
|
interface HazoUiKanbanProps<T extends KanbanItem = KanbanItem> {
|
|
1983
2027
|
columns: KanbanColumn[];
|
|
2028
|
+
/**
|
|
2029
|
+
* Optional swimlanes. When present, the board renders one full-width row
|
|
2030
|
+
* per lane — a wide lane heading, then that lane's own copy of the column
|
|
2031
|
+
* grid — and cards are placed by `KanbanItem.laneKey`. Omit for a single
|
|
2032
|
+
* unbanded board (the default).
|
|
2033
|
+
*/
|
|
2034
|
+
lanes?: KanbanLane[];
|
|
1984
2035
|
items: T[];
|
|
1985
2036
|
renderCard: (item: T) => React$1.ReactNode;
|
|
1986
2037
|
onMove?: (event: KanbanMoveEvent<T>) => void;
|
|
@@ -1991,6 +2042,22 @@ interface HazoUiKanbanProps<T extends KanbanItem = KanbanItem> {
|
|
|
1991
2042
|
announcements?: Partial<KanbanAnnouncements>;
|
|
1992
2043
|
/** Rendered when a column has zero items. Default: muted "—" placeholder. */
|
|
1993
2044
|
emptyColumn?: React$1.ReactNode;
|
|
2045
|
+
/**
|
|
2046
|
+
* Rendered at the foot of every column body, below the cards (or below the
|
|
2047
|
+
* `emptyColumn` placeholder). Called once per rendered copy of a column, so
|
|
2048
|
+
* on a laned board it fires once per (lane, column) pair and `laneKey` says
|
|
2049
|
+
* which — that is what makes a per-lane "+ Add item" affordance possible
|
|
2050
|
+
* without the consumer having to reach into the board's internals.
|
|
2051
|
+
*
|
|
2052
|
+
* Return `null` for the columns that should not have one. The footer sits
|
|
2053
|
+
* inside the column's droppable but outside its `SortableContext`, so it
|
|
2054
|
+
* never participates in ordering and never becomes a drop target itself.
|
|
2055
|
+
*/
|
|
2056
|
+
renderColumnFooter?: (ctx: {
|
|
2057
|
+
columnKey: string;
|
|
2058
|
+
/** `undefined` on a board without lanes. */
|
|
2059
|
+
laneKey?: string;
|
|
2060
|
+
}) => React$1.ReactNode;
|
|
1994
2061
|
/** Class on the board root. */
|
|
1995
2062
|
className?: string;
|
|
1996
2063
|
/** Class on each card shell (the wrapper around renderCard output). */
|
|
@@ -2174,7 +2241,7 @@ declare function applyKanbanFilter<T extends KanbanItem>(items: T[], filter: Kan
|
|
|
2174
2241
|
* event.revert() and the overlay entry is dropped.
|
|
2175
2242
|
*/
|
|
2176
2243
|
|
|
2177
|
-
declare function HazoUiKanban<T extends KanbanItem = KanbanItem>({ columns, items, renderCard, onMove, onReorder, mobileBreakpoint, announcements, emptyColumn, className, cardClassName, itemLabel, editorFields, editorPriorities, editorTitle, renderCardEditor, hideEditorFooter, onCardSave, disableEdit, }: HazoUiKanbanProps<T>): React$1.JSX.Element;
|
|
2244
|
+
declare function HazoUiKanban<T extends KanbanItem = KanbanItem>({ columns, lanes, items, renderCard, onMove, onReorder, mobileBreakpoint, announcements, emptyColumn, renderColumnFooter, className, cardClassName, itemLabel, editorFields, editorPriorities, editorTitle, renderCardEditor, hideEditorFooter, onCardSave, disableEdit, }: HazoUiKanbanProps<T>): React$1.JSX.Element;
|
|
2178
2245
|
|
|
2179
2246
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
2180
2247
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -2895,4 +2962,4 @@ interface UseScrollRestoreResult {
|
|
|
2895
2962
|
*/
|
|
2896
2963
|
declare function useScrollRestore(treeId: string, viewName: string, options?: UseScrollRestoreOptions): UseScrollRestoreResult;
|
|
2897
2964
|
|
|
2898
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, AppFooter, type AppFooterProps, AppHeader, type AppHeaderProps, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, type CanvasTextToolbarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, 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, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type EtaProgressHandle, type FilterConfig, type FilterField, FunnelChart, type FunnelChartProps, type FunnelStep, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, type HazoUiDialogKind, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiEtaProgress, type HazoUiEtaProgressProps, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiIcon, HazoUiIconPicker, type HazoUiIconPickerProps, type HazoUiIconProps, HazoUiImageCropper, HazoUiImageCropperDialog, type HazoUiImageCropperDialogProps, type HazoUiImageCropperHandle, type HazoUiImageCropperProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMemoryDropdown, type HazoUiMemoryDropdownProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiProgressBar, type HazoUiProgressBarProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAffix, type InputAffixProps, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, type KanbanSection, Label, LiveRegion, type LiveRegionProps, LoadingTimeout, type LoadingTimeoutProps, type Logger, Logo, type LogoProps, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, type MemoryEntry, NotificationCountBadge, type NotificationCountBadgeProps, NotificationItem, type NotificationItemProps, NotificationPanel, type NotificationPanelProps, type PermissionToastOptions, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, Slider, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseEtaProgressOptions, type UseFullscreenRefResult, type UseFullscreenResult, type UseLoadingStateResult, type UseLongPressOptions, type UseLongPressResult, type UseRememberedStateOptions, type UseScrollRestoreOptions, type UseScrollRestoreResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate, computeEta, create_command_suggestion_extension, easeToward, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, isLucideValue, median, parse_commands_from_text, permissionToast, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, upsertEntry as upsertMemoryEntry, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useEtaProgress, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useLongPress, useMediaQuery, useRememberedState, useScrollRestore, useSessionStorage, useViewport, useWakeLock, use_fullscreen, use_wake_lock };
|
|
2965
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, type AnimationPreset, AppFooter, type AppFooterProps, AppHeader, type AppHeaderProps, type BaseCommandInputProps, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, type CanvasTextToolbarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, type CelebrationPayload, CelebrationProvider, type CelebrationProviderProps, type CelebrationShareableCard, type ChartDataPoint, type ChartDataSeries, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type CommandEditContext, type CommandItem$1 as CommandItem, CommandNodeExtension, CommandPill, type CommandPillProps, CommandPopover, type CommandPopoverProps, type CommandTextOutput, type ConfirmDialogVariant, type DateRangeOption, DateRangeSelector, type DateRangeSelectorProps, type DialogVariant, 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, EmptyState, type EmptyStateProps, ErrorBanner, type ErrorBannerProps, type ErrorBannerSeverity, ErrorPage, type ErrorPageProps, type EtaProgressHandle, type FilterConfig, type FilterField, FunnelChart, type FunnelChartProps, type FunnelStep, HazoContextProvider, type HazoContextProviderProps, type HazoUiConfig, HazoUiConfirmDialog, type HazoUiConfirmDialogProps, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, type HazoUiDialogKind, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, type HazoUiDialogProps, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiEtaProgress, type HazoUiEtaProgressProps, HazoUiFlexInput, type HazoUiFlexInputProps, HazoUiFlexRadio, type HazoUiFlexRadioItem, type HazoUiFlexRadioProps, HazoUiIcon, HazoUiIconPicker, type HazoUiIconPickerProps, type HazoUiIconProps, HazoUiImageCropper, HazoUiImageCropperDialog, type HazoUiImageCropperDialogProps, type HazoUiImageCropperHandle, type HazoUiImageCropperProps, HazoUiKanban, HazoUiKanbanFilter, type HazoUiKanbanFilterProps, type HazoUiKanbanProps, HazoUiMemoryDropdown, type HazoUiMemoryDropdownProps, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, type HazoUiPillRadioItem, type HazoUiPillRadioProps, HazoUiProgressBar, type HazoUiProgressBarProps, HazoUiRte, type HazoUiRteProps, HazoUiTable, type HazoUiTablePagination, type HazoUiTableProps, type HazoUiTableServerLoadArgs, type HazoUiTableServerLoadResult, HazoUiTextarea, type HazoUiTextareaProps, HazoUiTextbox, type HazoUiTextboxProps, HazoUiToaster, type HazoUiToasterProps, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAffix, type InputAffixProps, type InsertedCommand, InverseSparkline, type InverseSparklineProps, type KanbanAnnouncements, type KanbanColumn, type KanbanEditorCtx, type KanbanEditorField, type KanbanEditorFieldType, type KanbanFilterValue, type KanbanItem, type KanbanLane, type KanbanMoveEvent, type KanbanMoveHandle, type KanbanPriority, type KanbanReorderEvent, type KanbanSaveEvent, type KanbanSection, Label, LiveRegion, type LiveRegionProps, LoadingTimeout, type LoadingTimeoutProps, type Logger, Logo, type LogoProps, MarkdownEditor, type MarkdownEditorProps, type MarkdownEmbed, type MemoryEntry, NotificationCountBadge, type NotificationCountBadgeProps, NotificationItem, type NotificationItemProps, NotificationPanel, type NotificationPanelProps, type PermissionToastOptions, Popover, PopoverContent, PopoverTrigger, type PrefixColor, type PrefixConfig, ProgressiveImage, type ProgressiveImageProps, RadioGroup, RadioGroupItem, type RteAttachment, type RteOutput, type RteVariable, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, type SkeletonBarProps, SkeletonCircle, type SkeletonCircleProps, SkeletonGroup, type SkeletonGroupProps, SkeletonRect, type SkeletonRectProps, Slider, type SortConfig, type SortField, Sparkline, type SparklineProps, Spinner, type StackedBar, StackedBars, type StackedBarsProps, type SuggestionState, Switch, Table, TableBody, TableCaption, TableCell, type TableColumn, type TableFilter, TableFooter, type TableFormatter, TableHead, TableHeader, TableRow, type TableSort, type TableSortEntry, type TableSortProp, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, type ToastOptions, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseCopyToClipboardResult, type UseErrorDisplayResult, type UseEtaProgressOptions, type UseFullscreenRefResult, type UseFullscreenResult, type UseLoadingStateResult, type UseLongPressOptions, type UseLongPressResult, type UseRememberedStateOptions, type UseScrollRestoreOptions, type UseScrollRestoreResult, type UseWakeLockResult, applyKanbanFilter, buttonGroupVariants, celebrate, computeEta, create_command_suggestion_extension, easeToward, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, isLucideValue, median, parse_commands_from_text, permissionToast, pick_x_label_indices, reset_hazo_ui_config, resolve_animation_classes, set_hazo_ui_config, set_logger, successToast, text_to_tiptap_content, toggleVariants, upsertEntry as upsertMemoryEntry, useClickOutside, useCopyToClipboard, useDebounce, useErrorDisplay, useEtaProgress, useFullscreen, useIsMobile, useLoadingState, useLocalStorage, useLongPress, useMediaQuery, useRememberedState, useScrollRestore, useSessionStorage, useViewport, useWakeLock, use_fullscreen, use_wake_lock };
|