@choice-ui/react 1.6.3 → 1.6.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.
|
@@ -16,7 +16,7 @@ interface TableRowInternalProps extends TableRowProps {
|
|
|
16
16
|
onRowClickHandler: ((event: React.MouseEvent) => void) | undefined;
|
|
17
17
|
onRowKeyDown: ((event: React.KeyboardEvent) => void) | undefined;
|
|
18
18
|
}
|
|
19
|
-
declare function TableRowPure({ rowKey, index, children, className, selectable, isSelected, isActive, consecutiveStyle, columnOrder, reorderable, hasRowClick, onCheckboxClick, onRowClickHandler, onRowKeyDown, }: TableRowInternalProps): ReactNode;
|
|
19
|
+
declare function TableRowPure({ rowKey: _rowKey, index, children, className, selectable, isSelected, isActive, consecutiveStyle, columnOrder, reorderable, hasRowClick, onCheckboxClick, onRowClickHandler, onRowKeyDown, }: TableRowInternalProps): ReactNode;
|
|
20
20
|
declare const TableRowMemo: import('react').MemoExoticComponent<typeof TableRowPure>;
|
|
21
21
|
export type { TableRowProps };
|
|
22
22
|
export { TableRowMemo as TableRowPure };
|
|
@@ -7,7 +7,7 @@ import { tcx } from "../../../../shared/utils/tcx/tcx.js";
|
|
|
7
7
|
const NOOP = () => {
|
|
8
8
|
};
|
|
9
9
|
function TableRowPure({
|
|
10
|
-
rowKey,
|
|
10
|
+
rowKey: _rowKey,
|
|
11
11
|
index,
|
|
12
12
|
children,
|
|
13
13
|
className,
|
|
@@ -89,9 +89,7 @@ function TableRowPure({
|
|
|
89
89
|
}
|
|
90
90
|
);
|
|
91
91
|
}
|
|
92
|
-
const TableRowMemo = memo(TableRowPure
|
|
93
|
-
return prev.rowKey === next.rowKey && prev.index === next.index && prev.className === next.className && prev.selectable === next.selectable && prev.isSelected === next.isSelected && prev.isActive === next.isActive && prev.consecutiveStyle === next.consecutiveStyle && prev.reorderable === next.reorderable && prev.hasRowClick === next.hasRowClick && prev.columnOrder === next.columnOrder;
|
|
94
|
-
});
|
|
92
|
+
const TableRowMemo = memo(TableRowPure);
|
|
95
93
|
function TableRow({
|
|
96
94
|
rowKey,
|
|
97
95
|
index,
|
package/package.json
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { MenuContextContent, MenuDivider, MenuEmpty, MenuContextItem, MenuSearch, MenuTrigger, MenuValue } from '../../menus/src';
|
|
2
|
-
import { FloatingFocusManagerProps } from '@floating-ui/react';
|
|
3
|
-
import { default as React } from 'react';
|
|
4
|
-
interface VirtualSelectOption<T = unknown> {
|
|
5
|
-
value: string;
|
|
6
|
-
label: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
data?: T;
|
|
9
|
-
}
|
|
10
|
-
interface VirtualSelectProps<T = unknown> {
|
|
11
|
-
className?: string;
|
|
12
|
-
closeOnEscape?: boolean;
|
|
13
|
-
disabled?: boolean;
|
|
14
|
-
emptyText?: string;
|
|
15
|
-
focusManagerProps?: Partial<FloatingFocusManagerProps>;
|
|
16
|
-
matchTriggerWidth?: boolean;
|
|
17
|
-
maxHeight?: number;
|
|
18
|
-
onChange?: (value: string) => void;
|
|
19
|
-
onOpenChange?: (open: boolean) => void;
|
|
20
|
-
open?: boolean;
|
|
21
|
-
options: VirtualSelectOption<T>[];
|
|
22
|
-
overscan?: number;
|
|
23
|
-
placeholder?: string;
|
|
24
|
-
placement?: "bottom-start" | "bottom-end";
|
|
25
|
-
portalId?: string;
|
|
26
|
-
readOnly?: boolean;
|
|
27
|
-
renderOption?: (option: VirtualSelectOption<T>, isSelected: boolean) => React.ReactNode;
|
|
28
|
-
renderValue?: (option: VirtualSelectOption<T> | null) => React.ReactNode;
|
|
29
|
-
root?: HTMLElement | null;
|
|
30
|
-
searchPlaceholder?: string;
|
|
31
|
-
size?: "default" | "large";
|
|
32
|
-
value?: string | null;
|
|
33
|
-
variant?: "default" | "light" | "reset";
|
|
34
|
-
}
|
|
35
|
-
interface VirtualSelectComponentType {
|
|
36
|
-
<T = unknown>(props: VirtualSelectProps<T>): React.ReactElement | null;
|
|
37
|
-
displayName?: string;
|
|
38
|
-
Content: typeof MenuContextContent;
|
|
39
|
-
Divider: typeof MenuDivider;
|
|
40
|
-
Empty: typeof MenuEmpty;
|
|
41
|
-
Item: typeof MenuContextItem;
|
|
42
|
-
Search: typeof MenuSearch;
|
|
43
|
-
Trigger: typeof MenuTrigger;
|
|
44
|
-
Value: typeof MenuValue;
|
|
45
|
-
}
|
|
46
|
-
declare const VirtualSelect: VirtualSelectComponentType;
|
|
47
|
-
|
|
48
|
-
export { VirtualSelect, type VirtualSelectOption, type VirtualSelectProps };
|