@optilogic/core 1.0.0-beta.3 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +346 -221
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +103 -7
- package/dist/index.d.ts +103 -7
- package/dist/index.js +291 -170
- package/dist/index.js.map +1 -1
- package/package.json +20 -20
- package/src/components/board.tsx +251 -0
- package/src/components/context-menu.tsx +1 -1
- package/src/components/data-grid/hooks/useKeyboardNavigation.ts +1 -1
- package/src/index.ts +13 -0
package/dist/index.d.cts
CHANGED
|
@@ -118,7 +118,7 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$
|
|
|
118
118
|
* Badge variant styles using class-variance-authority.
|
|
119
119
|
*/
|
|
120
120
|
declare const badgeVariants: (props?: ({
|
|
121
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "
|
|
121
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "muted" | "accent" | null | undefined;
|
|
122
122
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
123
123
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
124
124
|
}
|
|
@@ -515,7 +515,7 @@ declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDia
|
|
|
515
515
|
*/
|
|
516
516
|
declare const cardVariants: (props?: ({
|
|
517
517
|
size?: "sm" | "lg" | "auto" | "md" | "xl" | "full" | null | undefined;
|
|
518
|
-
hover?: "none" | "scale" | "
|
|
518
|
+
hover?: "none" | "scale" | "lift" | "glow" | "border" | "border-success" | "border-warning" | "border-destructive" | "border-muted" | null | undefined;
|
|
519
519
|
interactive?: boolean | null | undefined;
|
|
520
520
|
padding?: "sm" | "lg" | "none" | "md" | null | undefined;
|
|
521
521
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -584,7 +584,7 @@ interface CardFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
584
584
|
*/
|
|
585
585
|
declare const CardFooter: React$1.ForwardRefExoticComponent<CardFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
586
586
|
declare const cardImageVariants: (props?: ({
|
|
587
|
-
aspectRatio?: "
|
|
587
|
+
aspectRatio?: "auto" | "video" | "square" | "wide" | "portrait" | null | undefined;
|
|
588
588
|
position?: "fill" | "top" | "bottom" | null | undefined;
|
|
589
589
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
590
590
|
interface CardImageProps extends React$1.ImgHTMLAttributes<HTMLImageElement>, VariantProps<typeof cardImageVariants> {
|
|
@@ -694,7 +694,7 @@ interface SelectableCardProps extends CardProps {
|
|
|
694
694
|
*/
|
|
695
695
|
declare const SelectableCard: React$1.ForwardRefExoticComponent<SelectableCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
696
696
|
declare const cardGridVariants: (props?: ({
|
|
697
|
-
columns?: 1 | 2 | 3 | 4 |
|
|
697
|
+
columns?: 1 | "auto" | 2 | 3 | 4 | null | undefined;
|
|
698
698
|
gap?: "sm" | "lg" | "none" | "md" | "xl" | null | undefined;
|
|
699
699
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
700
700
|
interface CardGridProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardGridVariants> {
|
|
@@ -737,6 +737,102 @@ interface CardListProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantP
|
|
|
737
737
|
*/
|
|
738
738
|
declare const CardList: React$1.ForwardRefExoticComponent<CardListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
739
739
|
|
|
740
|
+
/**
|
|
741
|
+
* Board variant styles using class-variance-authority.
|
|
742
|
+
* Provides elevation (shadow), border, padding, radius, background, and hover options.
|
|
743
|
+
*/
|
|
744
|
+
declare const boardVariants: (props?: ({
|
|
745
|
+
elevation?: "sm" | "lg" | "none" | "md" | "xl" | null | undefined;
|
|
746
|
+
border?: "default" | "none" | "muted" | null | undefined;
|
|
747
|
+
padding?: "sm" | "lg" | "none" | "md" | "xl" | null | undefined;
|
|
748
|
+
radius?: "sm" | "lg" | "none" | "md" | "xl" | "full" | null | undefined;
|
|
749
|
+
background?: "default" | "muted" | "transparent" | null | undefined;
|
|
750
|
+
hover?: "none" | "border" | "border-success" | "border-warning" | "border-destructive" | "elevate" | null | undefined;
|
|
751
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
752
|
+
interface BoardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof boardVariants> {
|
|
753
|
+
/**
|
|
754
|
+
* Custom CSS class for hover border color.
|
|
755
|
+
* Use Tailwind classes like "hover:border-blue-500" or custom CSS variables.
|
|
756
|
+
* This overrides the hover variant's border color if specified.
|
|
757
|
+
*/
|
|
758
|
+
hoverBorderClass?: string;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Board - General-purpose container component with elevation support
|
|
762
|
+
*
|
|
763
|
+
* A flexible container similar to MUI's Paper component. Supports configurable
|
|
764
|
+
* elevation (shadows), borders, padding, border radius, background colors,
|
|
765
|
+
* and hover effects. Use with BoardHeader and BoardContent for structured layouts.
|
|
766
|
+
*
|
|
767
|
+
* @example
|
|
768
|
+
* // Simple container
|
|
769
|
+
* <Board elevation="md" padding="md">
|
|
770
|
+
* <p>Content here</p>
|
|
771
|
+
* </Board>
|
|
772
|
+
*
|
|
773
|
+
* @example
|
|
774
|
+
* // With header and content
|
|
775
|
+
* <Board elevation="lg" border="default">
|
|
776
|
+
* <BoardHeader>
|
|
777
|
+
* <span className="font-semibold">Section Title</span>
|
|
778
|
+
* </BoardHeader>
|
|
779
|
+
* <BoardContent>
|
|
780
|
+
* Main content goes here
|
|
781
|
+
* </BoardContent>
|
|
782
|
+
* </Board>
|
|
783
|
+
*
|
|
784
|
+
* @example
|
|
785
|
+
* // Transparent background with hover effect
|
|
786
|
+
* <Board background="transparent" hover="border" border="muted">
|
|
787
|
+
* <BoardContent>Hoverable content</BoardContent>
|
|
788
|
+
* </Board>
|
|
789
|
+
*/
|
|
790
|
+
declare const Board: React$1.ForwardRefExoticComponent<BoardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
791
|
+
interface BoardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* BoardHeader - Header section with bottom separator
|
|
795
|
+
*
|
|
796
|
+
* Renders a header area with a bottom border divider. Accepts any children
|
|
797
|
+
* including text, icons, badges, or custom layouts.
|
|
798
|
+
*
|
|
799
|
+
* @example
|
|
800
|
+
* <Board>
|
|
801
|
+
* <BoardHeader>
|
|
802
|
+
* <span className="font-semibold">Title</span>
|
|
803
|
+
* </BoardHeader>
|
|
804
|
+
* <BoardContent>Content</BoardContent>
|
|
805
|
+
* </Board>
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
* // With custom layout
|
|
809
|
+
* <BoardHeader className="flex items-center justify-between">
|
|
810
|
+
* <div className="flex items-center gap-2">
|
|
811
|
+
* <FileIcon />
|
|
812
|
+
* <span>Documents</span>
|
|
813
|
+
* </div>
|
|
814
|
+
* <Badge>12</Badge>
|
|
815
|
+
* </BoardHeader>
|
|
816
|
+
*/
|
|
817
|
+
declare const BoardHeader: React$1.ForwardRefExoticComponent<BoardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
818
|
+
interface BoardContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* BoardContent - Main content area with consistent padding
|
|
822
|
+
*
|
|
823
|
+
* Provides a padded container for the main content. Useful when using
|
|
824
|
+
* BoardHeader to maintain proper spacing.
|
|
825
|
+
*
|
|
826
|
+
* @example
|
|
827
|
+
* <Board>
|
|
828
|
+
* <BoardHeader>Title</BoardHeader>
|
|
829
|
+
* <BoardContent>
|
|
830
|
+
* Main content goes here
|
|
831
|
+
* </BoardContent>
|
|
832
|
+
* </Board>
|
|
833
|
+
*/
|
|
834
|
+
declare const BoardContent: React$1.ForwardRefExoticComponent<BoardContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
835
|
+
|
|
740
836
|
interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
|
|
741
837
|
}
|
|
742
838
|
declare const Table: React$1.ForwardRefExoticComponent<TableProps & React$1.RefAttributes<HTMLTableElement>>;
|
|
@@ -1729,7 +1825,7 @@ interface UseKeyboardNavigationReturn {
|
|
|
1729
1825
|
/** Handler to attach to the grid container */
|
|
1730
1826
|
handleKeyDown: (event: React.KeyboardEvent) => void;
|
|
1731
1827
|
/** Ref to attach to the grid container for focus management */
|
|
1732
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
1828
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
1733
1829
|
/** Focus the container (useful after clicking a cell) */
|
|
1734
1830
|
focusContainer: () => void;
|
|
1735
1831
|
}
|
|
@@ -2498,7 +2594,7 @@ interface UseContextMenuResult<T = unknown> {
|
|
|
2498
2594
|
/** Target item that was right-clicked */
|
|
2499
2595
|
targetItem: T | null;
|
|
2500
2596
|
/** Ref for the menu element */
|
|
2501
|
-
menuRef: React$1.RefObject<HTMLDivElement>;
|
|
2597
|
+
menuRef: React$1.RefObject<HTMLDivElement | null>;
|
|
2502
2598
|
/** Open the context menu */
|
|
2503
2599
|
openMenu: (x: number, y: number, item: T) => void;
|
|
2504
2600
|
/** Close the context menu */
|
|
@@ -2513,4 +2609,4 @@ type SortingConfig = {
|
|
|
2513
2609
|
onSort: (field: string) => void;
|
|
2514
2610
|
};
|
|
2515
2611
|
|
|
2516
|
-
export { ALL_THEMES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Autocomplete, type AutocompleteOption, type AutocompleteProps, Badge, type BadgeProps, Button, type ButtonProps, CYBERPUNK_THEME, Calendar, type CalendarProps, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardGrid, type CardGridProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, CardList, type CardListProps, type CardProps, CardTitle, type CardTitleProps, type CellEditEvent, CellEditor, type CellEditorProps$1 as CellEditorProps, type CellPosition, Checkbox, type CheckboxProps, Chip, type ChipProps, type ColorFieldConfig, type ColumnDef, ConfirmationModal, type ConfirmationModalProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, DARK_ELEGANT_THEME, DataGrid, type DataGridContextValue, type DataGridInternalState, type DataGridProps, type DataGridState, type DateFilterOperator, DatePicker, DatePickerInput, type DatePickerInputProps, type DatePickerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type EditingCell, type EditorType, FOREST_THEME, FUTURISTIC_THEME, type FilterConfig, type FilterOperator, FilterPopover, type FilterPopoverProps$1 as FilterPopoverProps, type FilterType, GREEN_THEME, type GridCellProps, HeaderCell, type HeaderCellProps$1 as HeaderCellProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, LoadingSpinner, type LoadingSpinnerProps, MINIMALIST_LIGHT_THEME, Modal, ModalButton, type ModalButtonProps, type ModalProps, NATURE_THEME, type NumberFilterOperator, OCEAN_THEME, OPTILOGIC_LEGACY_THEME, PRESET_THEMES, type PaginationConfig, Popover, PopoverAnchor, PopoverContent, type PopoverContentProps, PopoverTrigger, Progress, type ProgressProps, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleProps, SCIFI_THEME, SUNSET_THEME, type SearchConfig, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, SelectableCard, type SelectableCardProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SortConfig, type SortingConfig, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, type TextFilterOperator, Textarea, type TextareaProps, type Theme, type ThemeHSL, type ThemeHex, ThemePicker, type ThemePickerProps, Toaster, type ToasterProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UseContextMenuResult, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, applyFilterOperator, applyFilters, applySorting, applyTheme, areThemesEqual, badgeVariants, buttonVariants, cardActionsVariants, cardGridVariants, cardImageVariants, cardListVariants, cardVariants, cloneTheme, cn, exportTheme, getCellValue, getCurrentTheme, getDefaultTheme, getPresetTheme, hexToHsl, iconButtonVariants, importTheme, isPresetTheme, labelVariants, loadingSpinnerVariants, themeToHsl, useColumnResize, useColumnResizeManager, useConfirmation, useContextMenu, useDataGridState, useKeyboardNavigation, validateTheme };
|
|
2612
|
+
export { ALL_THEMES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Autocomplete, type AutocompleteOption, type AutocompleteProps, Badge, type BadgeProps, Board, BoardContent, type BoardContentProps, BoardHeader, type BoardHeaderProps, type BoardProps, Button, type ButtonProps, CYBERPUNK_THEME, Calendar, type CalendarProps, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardGrid, type CardGridProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, CardList, type CardListProps, type CardProps, CardTitle, type CardTitleProps, type CellEditEvent, CellEditor, type CellEditorProps$1 as CellEditorProps, type CellPosition, Checkbox, type CheckboxProps, Chip, type ChipProps, type ColorFieldConfig, type ColumnDef, ConfirmationModal, type ConfirmationModalProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, DARK_ELEGANT_THEME, DataGrid, type DataGridContextValue, type DataGridInternalState, type DataGridProps, type DataGridState, type DateFilterOperator, DatePicker, DatePickerInput, type DatePickerInputProps, type DatePickerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type EditingCell, type EditorType, FOREST_THEME, FUTURISTIC_THEME, type FilterConfig, type FilterOperator, FilterPopover, type FilterPopoverProps$1 as FilterPopoverProps, type FilterType, GREEN_THEME, type GridCellProps, HeaderCell, type HeaderCellProps$1 as HeaderCellProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, LoadingSpinner, type LoadingSpinnerProps, MINIMALIST_LIGHT_THEME, Modal, ModalButton, type ModalButtonProps, type ModalProps, NATURE_THEME, type NumberFilterOperator, OCEAN_THEME, OPTILOGIC_LEGACY_THEME, PRESET_THEMES, type PaginationConfig, Popover, PopoverAnchor, PopoverContent, type PopoverContentProps, PopoverTrigger, Progress, type ProgressProps, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleProps, SCIFI_THEME, SUNSET_THEME, type SearchConfig, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, SelectableCard, type SelectableCardProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SortConfig, type SortingConfig, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, type TextFilterOperator, Textarea, type TextareaProps, type Theme, type ThemeHSL, type ThemeHex, ThemePicker, type ThemePickerProps, Toaster, type ToasterProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UseContextMenuResult, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, applyFilterOperator, applyFilters, applySorting, applyTheme, areThemesEqual, badgeVariants, boardVariants, buttonVariants, cardActionsVariants, cardGridVariants, cardImageVariants, cardListVariants, cardVariants, cloneTheme, cn, exportTheme, getCellValue, getCurrentTheme, getDefaultTheme, getPresetTheme, hexToHsl, iconButtonVariants, importTheme, isPresetTheme, labelVariants, loadingSpinnerVariants, themeToHsl, useColumnResize, useColumnResizeManager, useConfirmation, useContextMenu, useDataGridState, useKeyboardNavigation, validateTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$
|
|
|
118
118
|
* Badge variant styles using class-variance-authority.
|
|
119
119
|
*/
|
|
120
120
|
declare const badgeVariants: (props?: ({
|
|
121
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "
|
|
121
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "muted" | "accent" | null | undefined;
|
|
122
122
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
123
123
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
124
124
|
}
|
|
@@ -515,7 +515,7 @@ declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDia
|
|
|
515
515
|
*/
|
|
516
516
|
declare const cardVariants: (props?: ({
|
|
517
517
|
size?: "sm" | "lg" | "auto" | "md" | "xl" | "full" | null | undefined;
|
|
518
|
-
hover?: "none" | "scale" | "
|
|
518
|
+
hover?: "none" | "scale" | "lift" | "glow" | "border" | "border-success" | "border-warning" | "border-destructive" | "border-muted" | null | undefined;
|
|
519
519
|
interactive?: boolean | null | undefined;
|
|
520
520
|
padding?: "sm" | "lg" | "none" | "md" | null | undefined;
|
|
521
521
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -584,7 +584,7 @@ interface CardFooterProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
|
584
584
|
*/
|
|
585
585
|
declare const CardFooter: React$1.ForwardRefExoticComponent<CardFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
586
586
|
declare const cardImageVariants: (props?: ({
|
|
587
|
-
aspectRatio?: "
|
|
587
|
+
aspectRatio?: "auto" | "video" | "square" | "wide" | "portrait" | null | undefined;
|
|
588
588
|
position?: "fill" | "top" | "bottom" | null | undefined;
|
|
589
589
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
590
590
|
interface CardImageProps extends React$1.ImgHTMLAttributes<HTMLImageElement>, VariantProps<typeof cardImageVariants> {
|
|
@@ -694,7 +694,7 @@ interface SelectableCardProps extends CardProps {
|
|
|
694
694
|
*/
|
|
695
695
|
declare const SelectableCard: React$1.ForwardRefExoticComponent<SelectableCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
696
696
|
declare const cardGridVariants: (props?: ({
|
|
697
|
-
columns?: 1 | 2 | 3 | 4 |
|
|
697
|
+
columns?: 1 | "auto" | 2 | 3 | 4 | null | undefined;
|
|
698
698
|
gap?: "sm" | "lg" | "none" | "md" | "xl" | null | undefined;
|
|
699
699
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
700
700
|
interface CardGridProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof cardGridVariants> {
|
|
@@ -737,6 +737,102 @@ interface CardListProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantP
|
|
|
737
737
|
*/
|
|
738
738
|
declare const CardList: React$1.ForwardRefExoticComponent<CardListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
739
739
|
|
|
740
|
+
/**
|
|
741
|
+
* Board variant styles using class-variance-authority.
|
|
742
|
+
* Provides elevation (shadow), border, padding, radius, background, and hover options.
|
|
743
|
+
*/
|
|
744
|
+
declare const boardVariants: (props?: ({
|
|
745
|
+
elevation?: "sm" | "lg" | "none" | "md" | "xl" | null | undefined;
|
|
746
|
+
border?: "default" | "none" | "muted" | null | undefined;
|
|
747
|
+
padding?: "sm" | "lg" | "none" | "md" | "xl" | null | undefined;
|
|
748
|
+
radius?: "sm" | "lg" | "none" | "md" | "xl" | "full" | null | undefined;
|
|
749
|
+
background?: "default" | "muted" | "transparent" | null | undefined;
|
|
750
|
+
hover?: "none" | "border" | "border-success" | "border-warning" | "border-destructive" | "elevate" | null | undefined;
|
|
751
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
752
|
+
interface BoardProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof boardVariants> {
|
|
753
|
+
/**
|
|
754
|
+
* Custom CSS class for hover border color.
|
|
755
|
+
* Use Tailwind classes like "hover:border-blue-500" or custom CSS variables.
|
|
756
|
+
* This overrides the hover variant's border color if specified.
|
|
757
|
+
*/
|
|
758
|
+
hoverBorderClass?: string;
|
|
759
|
+
}
|
|
760
|
+
/**
|
|
761
|
+
* Board - General-purpose container component with elevation support
|
|
762
|
+
*
|
|
763
|
+
* A flexible container similar to MUI's Paper component. Supports configurable
|
|
764
|
+
* elevation (shadows), borders, padding, border radius, background colors,
|
|
765
|
+
* and hover effects. Use with BoardHeader and BoardContent for structured layouts.
|
|
766
|
+
*
|
|
767
|
+
* @example
|
|
768
|
+
* // Simple container
|
|
769
|
+
* <Board elevation="md" padding="md">
|
|
770
|
+
* <p>Content here</p>
|
|
771
|
+
* </Board>
|
|
772
|
+
*
|
|
773
|
+
* @example
|
|
774
|
+
* // With header and content
|
|
775
|
+
* <Board elevation="lg" border="default">
|
|
776
|
+
* <BoardHeader>
|
|
777
|
+
* <span className="font-semibold">Section Title</span>
|
|
778
|
+
* </BoardHeader>
|
|
779
|
+
* <BoardContent>
|
|
780
|
+
* Main content goes here
|
|
781
|
+
* </BoardContent>
|
|
782
|
+
* </Board>
|
|
783
|
+
*
|
|
784
|
+
* @example
|
|
785
|
+
* // Transparent background with hover effect
|
|
786
|
+
* <Board background="transparent" hover="border" border="muted">
|
|
787
|
+
* <BoardContent>Hoverable content</BoardContent>
|
|
788
|
+
* </Board>
|
|
789
|
+
*/
|
|
790
|
+
declare const Board: React$1.ForwardRefExoticComponent<BoardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
791
|
+
interface BoardHeaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* BoardHeader - Header section with bottom separator
|
|
795
|
+
*
|
|
796
|
+
* Renders a header area with a bottom border divider. Accepts any children
|
|
797
|
+
* including text, icons, badges, or custom layouts.
|
|
798
|
+
*
|
|
799
|
+
* @example
|
|
800
|
+
* <Board>
|
|
801
|
+
* <BoardHeader>
|
|
802
|
+
* <span className="font-semibold">Title</span>
|
|
803
|
+
* </BoardHeader>
|
|
804
|
+
* <BoardContent>Content</BoardContent>
|
|
805
|
+
* </Board>
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
* // With custom layout
|
|
809
|
+
* <BoardHeader className="flex items-center justify-between">
|
|
810
|
+
* <div className="flex items-center gap-2">
|
|
811
|
+
* <FileIcon />
|
|
812
|
+
* <span>Documents</span>
|
|
813
|
+
* </div>
|
|
814
|
+
* <Badge>12</Badge>
|
|
815
|
+
* </BoardHeader>
|
|
816
|
+
*/
|
|
817
|
+
declare const BoardHeader: React$1.ForwardRefExoticComponent<BoardHeaderProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
818
|
+
interface BoardContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
819
|
+
}
|
|
820
|
+
/**
|
|
821
|
+
* BoardContent - Main content area with consistent padding
|
|
822
|
+
*
|
|
823
|
+
* Provides a padded container for the main content. Useful when using
|
|
824
|
+
* BoardHeader to maintain proper spacing.
|
|
825
|
+
*
|
|
826
|
+
* @example
|
|
827
|
+
* <Board>
|
|
828
|
+
* <BoardHeader>Title</BoardHeader>
|
|
829
|
+
* <BoardContent>
|
|
830
|
+
* Main content goes here
|
|
831
|
+
* </BoardContent>
|
|
832
|
+
* </Board>
|
|
833
|
+
*/
|
|
834
|
+
declare const BoardContent: React$1.ForwardRefExoticComponent<BoardContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
835
|
+
|
|
740
836
|
interface TableProps extends React$1.HTMLAttributes<HTMLTableElement> {
|
|
741
837
|
}
|
|
742
838
|
declare const Table: React$1.ForwardRefExoticComponent<TableProps & React$1.RefAttributes<HTMLTableElement>>;
|
|
@@ -1729,7 +1825,7 @@ interface UseKeyboardNavigationReturn {
|
|
|
1729
1825
|
/** Handler to attach to the grid container */
|
|
1730
1826
|
handleKeyDown: (event: React.KeyboardEvent) => void;
|
|
1731
1827
|
/** Ref to attach to the grid container for focus management */
|
|
1732
|
-
containerRef: React.RefObject<HTMLDivElement>;
|
|
1828
|
+
containerRef: React.RefObject<HTMLDivElement | null>;
|
|
1733
1829
|
/** Focus the container (useful after clicking a cell) */
|
|
1734
1830
|
focusContainer: () => void;
|
|
1735
1831
|
}
|
|
@@ -2498,7 +2594,7 @@ interface UseContextMenuResult<T = unknown> {
|
|
|
2498
2594
|
/** Target item that was right-clicked */
|
|
2499
2595
|
targetItem: T | null;
|
|
2500
2596
|
/** Ref for the menu element */
|
|
2501
|
-
menuRef: React$1.RefObject<HTMLDivElement>;
|
|
2597
|
+
menuRef: React$1.RefObject<HTMLDivElement | null>;
|
|
2502
2598
|
/** Open the context menu */
|
|
2503
2599
|
openMenu: (x: number, y: number, item: T) => void;
|
|
2504
2600
|
/** Close the context menu */
|
|
@@ -2513,4 +2609,4 @@ type SortingConfig = {
|
|
|
2513
2609
|
onSort: (field: string) => void;
|
|
2514
2610
|
};
|
|
2515
2611
|
|
|
2516
|
-
export { ALL_THEMES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Autocomplete, type AutocompleteOption, type AutocompleteProps, Badge, type BadgeProps, Button, type ButtonProps, CYBERPUNK_THEME, Calendar, type CalendarProps, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardGrid, type CardGridProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, CardList, type CardListProps, type CardProps, CardTitle, type CardTitleProps, type CellEditEvent, CellEditor, type CellEditorProps$1 as CellEditorProps, type CellPosition, Checkbox, type CheckboxProps, Chip, type ChipProps, type ColorFieldConfig, type ColumnDef, ConfirmationModal, type ConfirmationModalProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, DARK_ELEGANT_THEME, DataGrid, type DataGridContextValue, type DataGridInternalState, type DataGridProps, type DataGridState, type DateFilterOperator, DatePicker, DatePickerInput, type DatePickerInputProps, type DatePickerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type EditingCell, type EditorType, FOREST_THEME, FUTURISTIC_THEME, type FilterConfig, type FilterOperator, FilterPopover, type FilterPopoverProps$1 as FilterPopoverProps, type FilterType, GREEN_THEME, type GridCellProps, HeaderCell, type HeaderCellProps$1 as HeaderCellProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, LoadingSpinner, type LoadingSpinnerProps, MINIMALIST_LIGHT_THEME, Modal, ModalButton, type ModalButtonProps, type ModalProps, NATURE_THEME, type NumberFilterOperator, OCEAN_THEME, OPTILOGIC_LEGACY_THEME, PRESET_THEMES, type PaginationConfig, Popover, PopoverAnchor, PopoverContent, type PopoverContentProps, PopoverTrigger, Progress, type ProgressProps, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleProps, SCIFI_THEME, SUNSET_THEME, type SearchConfig, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, SelectableCard, type SelectableCardProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SortConfig, type SortingConfig, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, type TextFilterOperator, Textarea, type TextareaProps, type Theme, type ThemeHSL, type ThemeHex, ThemePicker, type ThemePickerProps, Toaster, type ToasterProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UseContextMenuResult, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, applyFilterOperator, applyFilters, applySorting, applyTheme, areThemesEqual, badgeVariants, buttonVariants, cardActionsVariants, cardGridVariants, cardImageVariants, cardListVariants, cardVariants, cloneTheme, cn, exportTheme, getCellValue, getCurrentTheme, getDefaultTheme, getPresetTheme, hexToHsl, iconButtonVariants, importTheme, isPresetTheme, labelVariants, loadingSpinnerVariants, themeToHsl, useColumnResize, useColumnResizeManager, useConfirmation, useContextMenu, useDataGridState, useKeyboardNavigation, validateTheme };
|
|
2612
|
+
export { ALL_THEMES, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, Autocomplete, type AutocompleteOption, type AutocompleteProps, Badge, type BadgeProps, Board, BoardContent, type BoardContentProps, BoardHeader, type BoardHeaderProps, type BoardProps, Button, type ButtonProps, CYBERPUNK_THEME, Calendar, type CalendarProps, Card, CardActions, type CardActionsProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardGrid, type CardGridProps, CardHeader, type CardHeaderProps, CardImage, type CardImageProps, CardList, type CardListProps, type CardProps, CardTitle, type CardTitleProps, type CellEditEvent, CellEditor, type CellEditorProps$1 as CellEditorProps, type CellPosition, Checkbox, type CheckboxProps, Chip, type ChipProps, type ColorFieldConfig, type ColumnDef, ConfirmationModal, type ConfirmationModalProps, ContextMenu, type ContextMenuItem, type ContextMenuProps, CopyButton, type CopyButtonProps, DARK_ELEGANT_THEME, DataGrid, type DataGridContextValue, type DataGridInternalState, type DataGridProps, type DataGridState, type DateFilterOperator, DatePicker, DatePickerInput, type DatePickerInputProps, type DatePickerProps, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type EditingCell, type EditorType, FOREST_THEME, FUTURISTIC_THEME, type FilterConfig, type FilterOperator, FilterPopover, type FilterPopoverProps$1 as FilterPopoverProps, type FilterType, GREEN_THEME, type GridCellProps, HeaderCell, type HeaderCellProps$1 as HeaderCellProps, IconButton, type IconButtonProps, Input, type InputProps, Label, type LabelProps, LoadingSpinner, type LoadingSpinnerProps, MINIMALIST_LIGHT_THEME, Modal, ModalButton, type ModalButtonProps, type ModalProps, NATURE_THEME, type NumberFilterOperator, OCEAN_THEME, OPTILOGIC_LEGACY_THEME, PRESET_THEMES, type PaginationConfig, Popover, PopoverAnchor, PopoverContent, type PopoverContentProps, PopoverTrigger, Progress, type ProgressProps, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleProps, SCIFI_THEME, SUNSET_THEME, type SearchConfig, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, type SelectOption, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, SelectableCard, type SelectableCardProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SortConfig, type SortingConfig, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, TabsList, TabsTrigger, type TextFilterOperator, Textarea, type TextareaProps, type Theme, type ThemeHSL, type ThemeHex, ThemePicker, type ThemePickerProps, Toaster, type ToasterProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, type TooltipProps, TooltipProvider, TooltipRoot, TooltipTrigger, type UseContextMenuResult, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, applyFilterOperator, applyFilters, applySorting, applyTheme, areThemesEqual, badgeVariants, boardVariants, buttonVariants, cardActionsVariants, cardGridVariants, cardImageVariants, cardListVariants, cardVariants, cloneTheme, cn, exportTheme, getCellValue, getCurrentTheme, getDefaultTheme, getPresetTheme, hexToHsl, iconButtonVariants, importTheme, isPresetTheme, labelVariants, loadingSpinnerVariants, themeToHsl, useColumnResize, useColumnResizeManager, useConfirmation, useContextMenu, useDataGridState, useKeyboardNavigation, validateTheme };
|