@optilogic/core 1.0.0-beta.1 → 1.0.0-beta.11
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/README.md +10 -7
- package/dist/index.cjs +1244 -284
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +412 -6
- package/dist/index.d.ts +412 -6
- package/dist/index.js +1179 -234
- package/dist/index.js.map +1 -1
- package/dist/styles.css +61 -0
- package/package.json +20 -56
- package/src/components/board.tsx +251 -0
- package/src/components/card.tsx +656 -12
- package/src/components/context-menu.tsx +1 -1
- package/src/components/data-grid/hooks/useKeyboardNavigation.ts +1 -1
- package/src/components/data-table.tsx +735 -0
- package/src/index.ts +40 -0
- package/src/styles.css +61 -0
|
@@ -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
|
}
|