hazo_ui 6.8.1 → 6.10.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 +78 -0
- package/dist/index.cjs +107 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +51 -2
- package/dist/index.d.ts +51 -2
- package/dist/index.js +105 -8
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -2073,6 +2073,28 @@ interface HazoUiKanbanProps<T extends KanbanItem = KanbanItem> {
|
|
|
2073
2073
|
/** `undefined` on a board without lanes. */
|
|
2074
2074
|
laneKey?: string;
|
|
2075
2075
|
}) => React$1.ReactNode;
|
|
2076
|
+
/**
|
|
2077
|
+
* Rendered inline in the column header, alongside the title and count
|
|
2078
|
+
* badge. Called once per rendered copy of a column, so on a laned board it
|
|
2079
|
+
* fires once per (lane, column) pair and `laneKey` says which — the same
|
|
2080
|
+
* scoping caveat `renderColumnFooter` documents, for the same reason: a
|
|
2081
|
+
* laned board renders one header per lane, and a consumer building a
|
|
2082
|
+
* lane-scoped control (a per-lane view toggle, say) needs to know which
|
|
2083
|
+
* copy it is rendering into.
|
|
2084
|
+
*
|
|
2085
|
+
* Return `null`/`undefined` for the columns that should not have one. The
|
|
2086
|
+
* returned node is wrapped by the library so its pointer/mouse/key events
|
|
2087
|
+
* stop propagation before reaching dnd-kit — the same guard the card's
|
|
2088
|
+
* pencil-edit affordance uses — so a click on the consumer's control is
|
|
2089
|
+
* never misread as the start of a drag. This matters most on a sectioned
|
|
2090
|
+
* column, where the header is itself a droppable, but the wrapper is
|
|
2091
|
+
* unconditional for consistency; it is a no-op elsewhere.
|
|
2092
|
+
*/
|
|
2093
|
+
renderColumnHeaderExtra?: (ctx: {
|
|
2094
|
+
columnKey: string;
|
|
2095
|
+
/** `undefined` on a board without lanes. */
|
|
2096
|
+
laneKey?: string;
|
|
2097
|
+
}) => React$1.ReactNode;
|
|
2076
2098
|
/** Class on the board root. */
|
|
2077
2099
|
className?: string;
|
|
2078
2100
|
/** Class on each card shell (the wrapper around renderCard output). */
|
|
@@ -2256,7 +2278,7 @@ declare function applyKanbanFilter<T extends KanbanItem>(items: T[], filter: Kan
|
|
|
2256
2278
|
* event.revert() and the overlay entry is dropped.
|
|
2257
2279
|
*/
|
|
2258
2280
|
|
|
2259
|
-
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;
|
|
2281
|
+
declare function HazoUiKanban<T extends KanbanItem = KanbanItem>({ columns, lanes, items, renderCard, onMove, onReorder, mobileBreakpoint, announcements, emptyColumn, renderColumnFooter, renderColumnHeaderExtra, className, cardClassName, itemLabel, editorFields, editorPriorities, editorTitle, renderCardEditor, hideEditorFooter, onCardSave, disableEdit, }: HazoUiKanbanProps<T>): React$1.JSX.Element;
|
|
2260
2282
|
|
|
2261
2283
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
2262
2284
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -2977,4 +2999,31 @@ interface UseScrollRestoreResult {
|
|
|
2977
2999
|
*/
|
|
2978
3000
|
declare function useScrollRestore(treeId: string, viewName: string, options?: UseScrollRestoreOptions): UseScrollRestoreResult;
|
|
2979
3001
|
|
|
2980
|
-
|
|
3002
|
+
type BadgeTone = "neutral" | "primary" | "secondary" | "accent" | "success" | "warning" | "destructive" | "info";
|
|
3003
|
+
declare const badgeVariants: (props?: ({
|
|
3004
|
+
tone?: "destructive" | "secondary" | "info" | "success" | "warning" | "primary" | "accent" | "neutral" | null | undefined;
|
|
3005
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3006
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
3007
|
+
/** Render a small leading status dot, colored to match `tone`. */
|
|
3008
|
+
dot?: boolean;
|
|
3009
|
+
/** Animate the dot with a pulse (only meaningful when `dot` is true). */
|
|
3010
|
+
pulse?: boolean;
|
|
3011
|
+
}
|
|
3012
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3013
|
+
interface StatusBadgeItem {
|
|
3014
|
+
label: string;
|
|
3015
|
+
tone: BadgeTone;
|
|
3016
|
+
dot?: boolean;
|
|
3017
|
+
pulse?: boolean;
|
|
3018
|
+
}
|
|
3019
|
+
interface StatusBadgeProps<S extends string> extends Omit<BadgeProps, "tone" | "children"> {
|
|
3020
|
+
status: S;
|
|
3021
|
+
statusMap: Record<S, StatusBadgeItem>;
|
|
3022
|
+
fallback?: StatusBadgeItem;
|
|
3023
|
+
}
|
|
3024
|
+
declare const StatusBadge: <S extends string>(props: StatusBadgeProps<S> & {
|
|
3025
|
+
ref?: React$1.ForwardedRef<HTMLSpanElement>;
|
|
3026
|
+
}) => React$1.ReactElement;
|
|
3027
|
+
declare function makeStatusBadge<S extends string>(statusMap: Record<S, StatusBadgeItem>, fallback?: StatusBadgeItem): React$1.ForwardRefExoticComponent<Omit<StatusBadgeProps<S>, "fallback" | "statusMap"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3028
|
+
|
|
3029
|
+
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, Badge, type BadgeProps, type BadgeTone, 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, StatusBadge, type StatusBadgeItem, type StatusBadgeProps, 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, makeStatusBadge, 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
|
@@ -2073,6 +2073,28 @@ interface HazoUiKanbanProps<T extends KanbanItem = KanbanItem> {
|
|
|
2073
2073
|
/** `undefined` on a board without lanes. */
|
|
2074
2074
|
laneKey?: string;
|
|
2075
2075
|
}) => React$1.ReactNode;
|
|
2076
|
+
/**
|
|
2077
|
+
* Rendered inline in the column header, alongside the title and count
|
|
2078
|
+
* badge. Called once per rendered copy of a column, so on a laned board it
|
|
2079
|
+
* fires once per (lane, column) pair and `laneKey` says which — the same
|
|
2080
|
+
* scoping caveat `renderColumnFooter` documents, for the same reason: a
|
|
2081
|
+
* laned board renders one header per lane, and a consumer building a
|
|
2082
|
+
* lane-scoped control (a per-lane view toggle, say) needs to know which
|
|
2083
|
+
* copy it is rendering into.
|
|
2084
|
+
*
|
|
2085
|
+
* Return `null`/`undefined` for the columns that should not have one. The
|
|
2086
|
+
* returned node is wrapped by the library so its pointer/mouse/key events
|
|
2087
|
+
* stop propagation before reaching dnd-kit — the same guard the card's
|
|
2088
|
+
* pencil-edit affordance uses — so a click on the consumer's control is
|
|
2089
|
+
* never misread as the start of a drag. This matters most on a sectioned
|
|
2090
|
+
* column, where the header is itself a droppable, but the wrapper is
|
|
2091
|
+
* unconditional for consistency; it is a no-op elsewhere.
|
|
2092
|
+
*/
|
|
2093
|
+
renderColumnHeaderExtra?: (ctx: {
|
|
2094
|
+
columnKey: string;
|
|
2095
|
+
/** `undefined` on a board without lanes. */
|
|
2096
|
+
laneKey?: string;
|
|
2097
|
+
}) => React$1.ReactNode;
|
|
2076
2098
|
/** Class on the board root. */
|
|
2077
2099
|
className?: string;
|
|
2078
2100
|
/** Class on each card shell (the wrapper around renderCard output). */
|
|
@@ -2256,7 +2278,7 @@ declare function applyKanbanFilter<T extends KanbanItem>(items: T[], filter: Kan
|
|
|
2256
2278
|
* event.revert() and the overlay entry is dropped.
|
|
2257
2279
|
*/
|
|
2258
2280
|
|
|
2259
|
-
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;
|
|
2281
|
+
declare function HazoUiKanban<T extends KanbanItem = KanbanItem>({ columns, lanes, items, renderCard, onMove, onReorder, mobileBreakpoint, announcements, emptyColumn, renderColumnFooter, renderColumnHeaderExtra, className, cardClassName, itemLabel, editorFields, editorPriorities, editorTitle, renderCardEditor, hideEditorFooter, onCardSave, disableEdit, }: HazoUiKanbanProps<T>): React$1.JSX.Element;
|
|
2260
2282
|
|
|
2261
2283
|
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
2262
2284
|
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -2977,4 +2999,31 @@ interface UseScrollRestoreResult {
|
|
|
2977
2999
|
*/
|
|
2978
3000
|
declare function useScrollRestore(treeId: string, viewName: string, options?: UseScrollRestoreOptions): UseScrollRestoreResult;
|
|
2979
3001
|
|
|
2980
|
-
|
|
3002
|
+
type BadgeTone = "neutral" | "primary" | "secondary" | "accent" | "success" | "warning" | "destructive" | "info";
|
|
3003
|
+
declare const badgeVariants: (props?: ({
|
|
3004
|
+
tone?: "destructive" | "secondary" | "info" | "success" | "warning" | "primary" | "accent" | "neutral" | null | undefined;
|
|
3005
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
3006
|
+
interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
3007
|
+
/** Render a small leading status dot, colored to match `tone`. */
|
|
3008
|
+
dot?: boolean;
|
|
3009
|
+
/** Animate the dot with a pulse (only meaningful when `dot` is true). */
|
|
3010
|
+
pulse?: boolean;
|
|
3011
|
+
}
|
|
3012
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3013
|
+
interface StatusBadgeItem {
|
|
3014
|
+
label: string;
|
|
3015
|
+
tone: BadgeTone;
|
|
3016
|
+
dot?: boolean;
|
|
3017
|
+
pulse?: boolean;
|
|
3018
|
+
}
|
|
3019
|
+
interface StatusBadgeProps<S extends string> extends Omit<BadgeProps, "tone" | "children"> {
|
|
3020
|
+
status: S;
|
|
3021
|
+
statusMap: Record<S, StatusBadgeItem>;
|
|
3022
|
+
fallback?: StatusBadgeItem;
|
|
3023
|
+
}
|
|
3024
|
+
declare const StatusBadge: <S extends string>(props: StatusBadgeProps<S> & {
|
|
3025
|
+
ref?: React$1.ForwardedRef<HTMLSpanElement>;
|
|
3026
|
+
}) => React$1.ReactElement;
|
|
3027
|
+
declare function makeStatusBadge<S extends string>(statusMap: Record<S, StatusBadgeItem>, fallback?: StatusBadgeItem): React$1.ForwardRefExoticComponent<Omit<StatusBadgeProps<S>, "fallback" | "statusMap"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
3028
|
+
|
|
3029
|
+
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, Badge, type BadgeProps, type BadgeTone, 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, StatusBadge, type StatusBadgeItem, type StatusBadgeProps, 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, makeStatusBadge, 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.js
CHANGED
|
@@ -9147,6 +9147,7 @@ function KanbanColumn({
|
|
|
9147
9147
|
renderCard,
|
|
9148
9148
|
emptyColumn,
|
|
9149
9149
|
footer,
|
|
9150
|
+
headerExtra,
|
|
9150
9151
|
cardClassName,
|
|
9151
9152
|
showEdit,
|
|
9152
9153
|
onEditRequest,
|
|
@@ -9207,7 +9208,8 @@ function KanbanColumn({
|
|
|
9207
9208
|
treeKey,
|
|
9208
9209
|
title: column.title,
|
|
9209
9210
|
count: items.length,
|
|
9210
|
-
droppable: sections != null
|
|
9211
|
+
droppable: sections != null,
|
|
9212
|
+
headerExtra
|
|
9211
9213
|
}
|
|
9212
9214
|
),
|
|
9213
9215
|
/* @__PURE__ */ jsx(
|
|
@@ -9262,7 +9264,8 @@ function KanbanColumnHead({
|
|
|
9262
9264
|
treeKey,
|
|
9263
9265
|
title,
|
|
9264
9266
|
count,
|
|
9265
|
-
droppable
|
|
9267
|
+
droppable,
|
|
9268
|
+
headerExtra
|
|
9266
9269
|
}) {
|
|
9267
9270
|
const { setNodeRef, isOver } = useDroppable({
|
|
9268
9271
|
id: tree_droppable_id("columnhead", treeKey, laneKey, columnKey),
|
|
@@ -9276,13 +9279,25 @@ function KanbanColumnHead({
|
|
|
9276
9279
|
"data-column-key": columnKey,
|
|
9277
9280
|
"data-lane-key": laneKey,
|
|
9278
9281
|
className: cn(
|
|
9279
|
-
"cls_hazo_kanban_column_head mb-2 flex items-center justify-between rounded-sm px-1 text-xs uppercase tracking-wider text-muted-foreground",
|
|
9282
|
+
"cls_hazo_kanban_column_head mb-2 flex items-center justify-between gap-2 rounded-sm px-1 text-xs uppercase tracking-wider text-muted-foreground",
|
|
9280
9283
|
droppable && "py-1",
|
|
9281
9284
|
isOver && "cls_hazo_kanban_column_head_over bg-accent/30 text-foreground ring-1 ring-ring/40"
|
|
9282
9285
|
),
|
|
9283
9286
|
children: [
|
|
9284
|
-
/* @__PURE__ */
|
|
9285
|
-
|
|
9287
|
+
/* @__PURE__ */ jsxs("span", { className: "cls_hazo_kanban_column_head_title_group flex min-w-0 items-center gap-2", children: [
|
|
9288
|
+
/* @__PURE__ */ jsx("span", { className: "cls_hazo_kanban_column_title truncate", children: title }),
|
|
9289
|
+
headerExtra ? /* @__PURE__ */ jsx(
|
|
9290
|
+
"span",
|
|
9291
|
+
{
|
|
9292
|
+
className: "cls_hazo_kanban_column_head_extra shrink-0",
|
|
9293
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
9294
|
+
onMouseDown: (e) => e.stopPropagation(),
|
|
9295
|
+
onKeyDown: (e) => e.stopPropagation(),
|
|
9296
|
+
children: headerExtra
|
|
9297
|
+
}
|
|
9298
|
+
) : null
|
|
9299
|
+
] }),
|
|
9300
|
+
/* @__PURE__ */ jsx("span", { className: "cls_hazo_kanban_column_count shrink-0 rounded-full bg-muted px-2 py-0.5 text-foreground", children: count })
|
|
9286
9301
|
]
|
|
9287
9302
|
}
|
|
9288
9303
|
);
|
|
@@ -9863,6 +9878,7 @@ function HazoUiKanban({
|
|
|
9863
9878
|
announcements,
|
|
9864
9879
|
emptyColumn = "\u2014",
|
|
9865
9880
|
renderColumnFooter,
|
|
9881
|
+
renderColumnHeaderExtra,
|
|
9866
9882
|
className,
|
|
9867
9883
|
cardClassName,
|
|
9868
9884
|
itemLabel,
|
|
@@ -10116,7 +10132,7 @@ function HazoUiKanban({
|
|
|
10116
10132
|
total += (grouped.get(bucket_key(lane_key, col.key)) ?? []).length;
|
|
10117
10133
|
return total;
|
|
10118
10134
|
}
|
|
10119
|
-
function render_column(col, tree_key, lane_key,
|
|
10135
|
+
function render_column(col, tree_key, lane_key, with_consumer_callbacks = true) {
|
|
10120
10136
|
return /* @__PURE__ */ jsx(
|
|
10121
10137
|
KanbanColumn,
|
|
10122
10138
|
{
|
|
@@ -10126,7 +10142,8 @@ function HazoUiKanban({
|
|
|
10126
10142
|
items: grouped.get(bucket_key(lane_key, col.key)) ?? [],
|
|
10127
10143
|
renderCard,
|
|
10128
10144
|
emptyColumn,
|
|
10129
|
-
footer:
|
|
10145
|
+
footer: with_consumer_callbacks ? renderColumnFooter?.({ columnKey: col.key, laneKey: lane_key }) ?? null : null,
|
|
10146
|
+
headerExtra: with_consumer_callbacks ? renderColumnHeaderExtra?.({ columnKey: col.key, laneKey: lane_key }) ?? null : null,
|
|
10130
10147
|
cardClassName,
|
|
10131
10148
|
showEdit: show_edit,
|
|
10132
10149
|
onEditRequest: handle_edit_request
|
|
@@ -12467,7 +12484,87 @@ function useScrollRestore(treeId, viewName, options) {
|
|
|
12467
12484
|
const load = useCallback(() => loadScrollPos(key), [key]);
|
|
12468
12485
|
return { save, load };
|
|
12469
12486
|
}
|
|
12487
|
+
var badgeVariants = cva(
|
|
12488
|
+
"inline-flex items-center gap-1 rounded-full px-2 py-0.5 text-xs font-medium whitespace-nowrap select-none",
|
|
12489
|
+
{
|
|
12490
|
+
variants: {
|
|
12491
|
+
tone: {
|
|
12492
|
+
neutral: "bg-muted text-muted-foreground",
|
|
12493
|
+
primary: "bg-primary/10 text-primary",
|
|
12494
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
12495
|
+
accent: "bg-accent text-accent-foreground",
|
|
12496
|
+
success: "bg-success/15 text-success",
|
|
12497
|
+
warning: "bg-warning/15 text-warning",
|
|
12498
|
+
destructive: "bg-destructive/15 text-destructive",
|
|
12499
|
+
info: "bg-info/15 text-info"
|
|
12500
|
+
}
|
|
12501
|
+
},
|
|
12502
|
+
defaultVariants: {
|
|
12503
|
+
tone: "neutral"
|
|
12504
|
+
}
|
|
12505
|
+
}
|
|
12506
|
+
);
|
|
12507
|
+
var TONE_DOT_CLASS = {
|
|
12508
|
+
neutral: "bg-muted-foreground",
|
|
12509
|
+
primary: "bg-primary",
|
|
12510
|
+
secondary: "bg-secondary-foreground",
|
|
12511
|
+
accent: "bg-accent-foreground",
|
|
12512
|
+
success: "bg-success",
|
|
12513
|
+
warning: "bg-warning",
|
|
12514
|
+
destructive: "bg-destructive",
|
|
12515
|
+
info: "bg-info"
|
|
12516
|
+
};
|
|
12517
|
+
var Badge = React27.forwardRef(
|
|
12518
|
+
({ className, tone, dot = false, pulse = false, children, ...props }, ref) => {
|
|
12519
|
+
const resolvedTone = tone ?? "neutral";
|
|
12520
|
+
return /* @__PURE__ */ jsxs(
|
|
12521
|
+
"span",
|
|
12522
|
+
{
|
|
12523
|
+
ref,
|
|
12524
|
+
className: cn(badgeVariants({ tone: resolvedTone }), className),
|
|
12525
|
+
...props,
|
|
12526
|
+
children: [
|
|
12527
|
+
dot && /* @__PURE__ */ jsx(
|
|
12528
|
+
"span",
|
|
12529
|
+
{
|
|
12530
|
+
"aria-hidden": true,
|
|
12531
|
+
className: cn(
|
|
12532
|
+
"inline-block h-1.5 w-1.5 rounded-full",
|
|
12533
|
+
TONE_DOT_CLASS[resolvedTone],
|
|
12534
|
+
pulse && "animate-pulse"
|
|
12535
|
+
)
|
|
12536
|
+
}
|
|
12537
|
+
),
|
|
12538
|
+
children
|
|
12539
|
+
]
|
|
12540
|
+
}
|
|
12541
|
+
);
|
|
12542
|
+
}
|
|
12543
|
+
);
|
|
12544
|
+
Badge.displayName = "Badge";
|
|
12545
|
+
function StatusBadgeInner({ status, statusMap, fallback, className, ...rest }, ref) {
|
|
12546
|
+
const meta = statusMap[status] ?? fallback ?? { label: String(status), tone: "neutral" };
|
|
12547
|
+
return /* @__PURE__ */ jsx(
|
|
12548
|
+
Badge,
|
|
12549
|
+
{
|
|
12550
|
+
ref,
|
|
12551
|
+
tone: meta.tone,
|
|
12552
|
+
dot: meta.dot,
|
|
12553
|
+
pulse: meta.pulse,
|
|
12554
|
+
className,
|
|
12555
|
+
...rest,
|
|
12556
|
+
children: meta.label
|
|
12557
|
+
}
|
|
12558
|
+
);
|
|
12559
|
+
}
|
|
12560
|
+
StatusBadgeInner.displayName = "StatusBadge";
|
|
12561
|
+
var StatusBadge = React27.forwardRef(StatusBadgeInner);
|
|
12562
|
+
function makeStatusBadge(statusMap, fallback) {
|
|
12563
|
+
const Component = React27.forwardRef((props, ref) => /* @__PURE__ */ jsx(StatusBadge, { ref, ...props, statusMap, fallback }));
|
|
12564
|
+
Component.displayName = "StatusBadge(bound)";
|
|
12565
|
+
return Component;
|
|
12566
|
+
}
|
|
12470
12567
|
|
|
12471
|
-
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppFooter, AppHeader, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CelebrationProvider, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, CommandNodeExtension, CommandPill, CommandPopover, DEFAULT_ANNOUNCE_EVENT, DateRangeSelector, 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, ErrorBanner, ErrorPage, FunnelChart, HazoContextProvider, HazoUiConfirmDialog, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiEtaProgress, HazoUiFlexInput, HazoUiFlexRadio, HazoUiIcon, HazoUiIconPicker, HazoUiImageCropper, HazoUiImageCropperDialog, HazoUiKanban, HazoUiKanbanFilter, HazoUiMemoryDropdown, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, HazoUiProgressBar, HazoUiRte, HazoUiTable, HazoUiTextarea, HazoUiTextbox, HazoUiToaster, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAffix, InverseSparkline, Label3 as Label, LiveRegion, LoadingTimeout, Logo, MarkdownEditor, NotificationCountBadge, NotificationItem, NotificationPanel, Popover, PopoverContent, PopoverTrigger, ProgressiveImage, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, SkeletonCircle, SkeletonGroup, SkeletonRect, Slider, Sparkline, Spinner, StackedBars, Switch, Table2 as Table, TableBody, TableCaption, TableCell2 as TableCell, TableFooter, TableHead, TableHeader2 as TableHeader, TableRow2 as TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, announce, applyKanbanFilter, buttonGroupVariants, celebrate, cn, computeEta, create_command_suggestion_extension, easeToward, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, hasUrlParam, isLucideValue, median, parse_commands_from_text, permissionToast, pick_x_label_indices, readRememberedState, reset_hazo_ui_config, resolve_animation_classes, safeHref, 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, writeRememberedState };
|
|
12568
|
+
export { ANIMATION_PRESETS, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AppFooter, AppHeader, Badge, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, CELEBRATION_GRADIENT, Calendar, CanvasTextToolbar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CelebrationProvider, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, CommandNodeExtension, CommandPill, CommandPopover, DEFAULT_ANNOUNCE_EVENT, DateRangeSelector, 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, ErrorBanner, ErrorPage, FunnelChart, HazoContextProvider, HazoUiConfirmDialog, HazoUiDialog, DialogClose as HazoUiDialogClose, DialogContent as HazoUiDialogContent, DialogDescription as HazoUiDialogDescription, DialogFooter as HazoUiDialogFooter, DialogHeader as HazoUiDialogHeader, DialogOverlay as HazoUiDialogOverlay, DialogPortal as HazoUiDialogPortal, Dialog as HazoUiDialogRoot, DialogTitle as HazoUiDialogTitle, DialogTrigger as HazoUiDialogTrigger, HazoUiEtaProgress, HazoUiFlexInput, HazoUiFlexRadio, HazoUiIcon, HazoUiIconPicker, HazoUiImageCropper, HazoUiImageCropperDialog, HazoUiKanban, HazoUiKanbanFilter, HazoUiMemoryDropdown, HazoUiMultiFilterDialog, HazoUiMultiSortDialog, HazoUiPillRadio, HazoUiProgressBar, HazoUiRte, HazoUiTable, HazoUiTextarea, HazoUiTextbox, HazoUiToaster, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputAffix, InverseSparkline, Label3 as Label, LiveRegion, LoadingTimeout, Logo, MarkdownEditor, NotificationCountBadge, NotificationItem, NotificationPanel, Popover, PopoverContent, PopoverTrigger, ProgressiveImage, RadioGroup, RadioGroupItem, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator3 as Separator, Command as ShadcnCommand, CommandEmpty as ShadcnCommandEmpty, CommandGroup as ShadcnCommandGroup, CommandInput as ShadcnCommandInput, CommandItem as ShadcnCommandItem, CommandList as ShadcnCommandList, Skeleton, SkeletonBar, SkeletonCircle, SkeletonGroup, SkeletonRect, Slider, Sparkline, Spinner, StackedBars, StatusBadge, Switch, Table2 as Table, TableBody, TableCaption, TableCell2 as TableCell, TableFooter, TableHead, TableHeader2 as TableHeader, TableRow2 as TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, announce, applyKanbanFilter, buttonGroupVariants, celebrate, cn, computeEta, create_command_suggestion_extension, easeToward, errorToast, format_num, generateUUID, get_hazo_ui_config, get_logger, hasUrlParam, isLucideValue, makeStatusBadge, median, parse_commands_from_text, permissionToast, pick_x_label_indices, readRememberedState, reset_hazo_ui_config, resolve_animation_classes, safeHref, 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, writeRememberedState };
|
|
12472
12569
|
//# sourceMappingURL=index.js.map
|
|
12473
12570
|
//# sourceMappingURL=index.js.map
|