From 4f09beb691787cd44f7142980089a2032ec2efb2 Mon Sep 17 00:00:00 2001 From: Oleg Isonen Date: Wed, 20 Jul 2022 11:34:20 +0200 Subject: [PATCH] wip new interface --- .../components/combobox.stories.tsx | 7 +- .../design-system/components/combobox.tsx | 87 +++++++++---------- 2 files changed, 43 insertions(+), 51 deletions(-) diff --git a/apps/designer/app/shared/design-system/components/combobox.stories.tsx b/apps/designer/app/shared/design-system/components/combobox.stories.tsx index 89a0d3aad6..cea689061e 100644 --- a/apps/designer/app/shared/design-system/components/combobox.stories.tsx +++ b/apps/designer/app/shared/design-system/components/combobox.stories.tsx @@ -19,11 +19,10 @@ export const Simple: ComponentStory = () => { name="fruit" options={options} value={value} - onValueChange={setValue} + onOptionSelect={setValue} /> ); }; - export const CustomInput: ComponentStory = () => { const options = [ { label: "Apple", value: "apple", disabled: true }, @@ -37,8 +36,8 @@ export const CustomInput: ComponentStory = () => { name="fruit" options={options} value={value} - onChange={setValue} - onOptionHightlight={(option: Option) => {}} + onOptionSelect={setValue} + onOptionHighlight={(option) => {}} disclosure={(props) => ( & { - options: Array