Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "export selection types from combobox",
"packageName": "@fluentui/react-combobox",
"email": "mgodbolt@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,13 @@ export type OptionGroupSlots = {
// @public
export type OptionGroupState = ComponentState<OptionGroupSlots>;

// @public (undocumented)
export type OptionOnSelectData = {
optionValue: string | undefined;
optionText: string | undefined;
selectedOptions: string[];
};

// @public
export type OptionProps = ComponentProps<Partial<OptionSlots>> & {
disabled?: boolean;
Expand Down Expand Up @@ -185,6 +192,9 @@ export const renderOption_unstable: (state: OptionState) => JSX.Element;
// @public
export const renderOptionGroup_unstable: (state: OptionGroupState) => JSX.Element;

// @public (undocumented)
export type SelectionEvents = React_2.ChangeEvent<HTMLElement> | React_2.KeyboardEvent<HTMLElement> | React_2.MouseEvent<HTMLElement>;

// @public
export const useCombobox_unstable: (props: ComboboxProps, ref: React_2.Ref<HTMLInputElement>) => ComboboxState;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './utils/Selection.types';
1 change: 1 addition & 0 deletions packages/react-components/react-combobox/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,4 @@ export {
useOptionGroup_unstable,
} from './OptionGroup';
export type { OptionGroupProps, OptionGroupSlots, OptionGroupState } from './OptionGroup';
export type { OptionOnSelectData, SelectionEvents } from './Selection';