@optilogic/core 1.0.0-beta.2 → 1.0.0-beta.4

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.
@@ -369,7 +369,7 @@ export interface UseContextMenuResult<T = unknown> {
369
369
  /** Target item that was right-clicked */
370
370
  targetItem: T | null;
371
371
  /** Ref for the menu element */
372
- menuRef: React.RefObject<HTMLDivElement>;
372
+ menuRef: React.RefObject<HTMLDivElement | null>;
373
373
  /** Open the context menu */
374
374
  openMenu: (x: number, y: number, item: T) => void;
375
375
  /** Close the context menu */
@@ -45,7 +45,7 @@ export interface UseKeyboardNavigationReturn {
45
45
  /** Handler to attach to the grid container */
46
46
  handleKeyDown: (event: React.KeyboardEvent) => void;
47
47
  /** Ref to attach to the grid container for focus management */
48
- containerRef: React.RefObject<HTMLDivElement>;
48
+ containerRef: React.RefObject<HTMLDivElement | null>;
49
49
  /** Focus the container (useful after clicking a cell) */
50
50
  focusContainer: () => void;
51
51
  }
package/src/index.ts CHANGED
@@ -108,20 +108,53 @@ export {
108
108
 
109
109
  // Layout components
110
110
  export {
111
+ // Core card components
111
112
  Card,
112
113
  CardHeader,
113
114
  CardFooter,
114
115
  CardTitle,
115
116
  CardDescription,
116
117
  CardContent,
118
+ // New card components
119
+ CardImage,
120
+ CardActions,
121
+ SelectableCard,
122
+ CardGrid,
123
+ CardList,
124
+ // Variants (for advanced customization)
125
+ cardVariants,
126
+ cardImageVariants,
127
+ cardActionsVariants,
128
+ cardGridVariants,
129
+ cardListVariants,
130
+ // Core types
117
131
  type CardProps,
118
132
  type CardHeaderProps,
119
133
  type CardTitleProps,
120
134
  type CardDescriptionProps,
121
135
  type CardContentProps,
122
136
  type CardFooterProps,
137
+ // New types
138
+ type CardImageProps,
139
+ type CardActionsProps,
140
+ type SelectableCardProps,
141
+ type CardGridProps,
142
+ type CardListProps,
123
143
  } from "./components/card";
124
144
 
145
+ export {
146
+ // Board components
147
+ Board,
148
+ BoardHeader,
149
+ BoardContent,
150
+ // Variants (for advanced customization)
151
+ boardVariants,
152
+ // Types
153
+ type BoardProps,
154
+ type BoardHeaderProps,
155
+ type BoardContentProps,
156
+ } from "./components/board";
157
+
125
158
  export {
126
159
  Table,
127
160
  TableHeader,