1 | import { createComponent } from "reakit-system/createComponent";
|
2 | import { createHook } from "reakit-system/createHook";
|
3 | import {
|
4 | unstable_GridRowOptions as GridRowOptions,
|
5 | unstable_GridRowHTMLProps as GridRowHTMLProps,
|
6 | unstable_useGridRow as useGridRow,
|
7 | } from "../Grid/GridRow";
|
8 | import { COMBOBOX_GRID_ROW_KEYS } from "./__keys";
|
9 |
|
10 | export const unstable_useComboboxGridRow = createHook<
|
11 | unstable_ComboboxGridRowOptions,
|
12 | unstable_ComboboxGridRowHTMLProps
|
13 | >({
|
14 | name: "ComboboxGridRow",
|
15 | compose: useGridRow,
|
16 | keys: COMBOBOX_GRID_ROW_KEYS,
|
17 | });
|
18 |
|
19 | export const unstable_ComboboxGridRow = createComponent({
|
20 | as: "div",
|
21 | useHook: unstable_useComboboxGridRow,
|
22 | });
|
23 |
|
24 | export type unstable_ComboboxGridRowOptions = GridRowOptions;
|
25 |
|
26 | export type unstable_ComboboxGridRowHTMLProps = GridRowHTMLProps;
|
27 |
|
28 | export type unstable_ComboboxGridRowProps = unstable_ComboboxGridRowOptions &
|
29 | unstable_ComboboxGridRowHTMLProps;
|