Initial commit

This commit is contained in:
2025-03-07 19:22:02 +01:00
commit 4a98255d83
55743 changed files with 5280367 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import { createContext } from '@fluentui/react-context-selector';
/**
* @deprecated - use ListboxContext instead
* @see ListboxContext
*/ // eslint-disable-next-line @fluentui/no-context-default-value
export const ComboboxContext = createContext({
activeOption: undefined,
appearance: 'outline',
focusVisible: false,
open: false,
registerOption () {
return ()=>undefined;
},
selectedOptions: [],
selectOption () {
// noop
},
setActiveOption () {
// noop
},
setOpen () {
// noop
},
size: 'medium'
});
/**
* @deprecated - render ListboxProvider instead
* @see ListboxProvider
* @see useListboxContext_unstable
*/ // eslint-disable-next-line @typescript-eslint/no-deprecated
export const ComboboxProvider = ComboboxContext.Provider;