mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 20:44:05 +09:00
tsc
This commit is contained in:
1 parent
a4e0e9d197
commit
de1bf7fa08
2 files changed
+4
-3
No files matched your search
@@ -1,7 +1,9 @@
|
||||
import {
|
||||
useState,
|
||||
forwardRef,
|
||||
/*
|
||||
useCallback,
|
||||
*/
|
||||
type ComponentProps,
|
||||
type ForwardRefRenderFunction,
|
||||
} from "react";
|
||||
@@ -11,8 +13,6 @@ import { useCombobox, type UseComboboxGetItemPropsOptions } from "downshift";
|
||||
import { matchSorter } from "match-sorter";
|
||||
import { styled } from "../stitches.config";
|
||||
import { IconButton } from "./icon-button";
|
||||
import { itemCss } from "./menu";
|
||||
import { panelStyles } from "./panel";
|
||||
import { TextField } from "./text-field";
|
||||
import { Box } from "./box";
|
||||
import { Grid } from "./grid";
|
||||
@@ -163,6 +163,7 @@ export const Combobox = <Item extends BaseItem>({
|
||||
renderPopperContent = (props) => <ComboboxPopperContent {...props} />,
|
||||
}: ComboboxProps<Item>) => {
|
||||
const [foundItems, setFoundItems] = useState(items);
|
||||
/*
|
||||
const stateReducer = useCallback((state, actionAndChanges) => {
|
||||
const { type, changes } = actionAndChanges;
|
||||
switch (type) {
|
||||
@@ -196,6 +197,7 @@ export const Combobox = <Item extends BaseItem>({
|
||||
return changes; // otherwise business as usual.
|
||||
}
|
||||
}, []);
|
||||
*/
|
||||
const {
|
||||
isOpen,
|
||||
getToggleButtonProps,
|
||||
|
||||
@@ -4,7 +4,6 @@ import { styled, CSS } from "../stitches.config";
|
||||
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
||||
import { menuCss, separatorCss, itemCss, labelCss } from "./menu";
|
||||
import { Box } from "./box";
|
||||
import { Flex } from "./flex";
|
||||
import { panelStyles } from "./panel";
|
||||
|
||||
export const DropdownMenu = DropdownMenuPrimitive.Root;
|
||||
|
||||
Reference in new issue
Block a user