Skip to content

Commit 915d07c

Browse files
committed
refactor(combobox): remove unused HighlightInfo type and update props
1 parent a945a35 commit 915d07c

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

packages/ods-react/src/components/combobox/src/contexts/useCombobox.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
import { type ComboboxInputValueChangeDetails, type ComboboxValueChangeDetails } from '@ark-ui/react/combobox';
22
import { type ComponentPropsWithRef, type ReactNode, createContext, useContext } from 'react';
33

4-
type HighlightInfo = {
5-
highlightClass: string;
6-
searchText: string;
7-
};
8-
94
type ComboboxItem = {
105
disabled?: boolean;
116
group?: string;
12-
highlightInfo?: HighlightInfo;
137
isNewElement?: boolean;
148
label: string;
159
value: string;
1610
};
1711

1812
type ComboboxGroup = {
1913
disabled?: boolean;
20-
highlightInfo?: HighlightInfo;
2114
label: string;
2215
options: ComboboxItem[];
2316
};
@@ -31,6 +24,7 @@ type ComboboxProp = Omit<ComponentPropsWithRef<'div'>, 'onSelect'> & {
3124
disabled?: boolean,
3225
highlightResults?: boolean,
3326
items: ComboboxItemOrGroup[],
27+
multiple?: boolean,
3428
newElementLabel?: string,
3529
noResultLabel?: string,
3630
onValueChange?: (value: ComboboxValueChangeDetails) => void,
@@ -108,6 +102,5 @@ export {
108102
type ComboboxItemProp,
109103
type ComboboxProp,
110104
type ComboboxValueChangeDetails,
111-
type HighlightInfo,
112105
useCombobox,
113106
};

packages/ods-react/src/components/combobox/src/controller/combobox.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,4 @@ export {
160160
isValueAlreadySelected,
161161
matchesSearch,
162162
splitTextBySearchTerm,
163-
type ComboboxProps,
164163
};

0 commit comments

Comments
 (0)