MCPcopy Create free account

hub / github.com/downshift-js/downshift / functions

Functions332 in github.com/downshift-js/downshift

↓ 161 callersFunctionrenderCombobox
( props: Omit<DropdownComboboxProps, 'renderSpy'> = {}, uiCallback?: (ui: React.ReactElement) => React.Rea
src/hooks/useCombobox/__tests__/utils/renderCombobox.tsx:75
↓ 157 callersFunctionrenderSelect
( props: Omit<DropdownSelectProps, 'renderSpy'>, uiCallback?: (ui: React.ReactElement) => React.ReactEleme
src/hooks/useSelect/__tests__/utils/renderSelect.tsx:72
↓ 143 callersFunctiongetInput
()
src/hooks/useCombobox/__tests__/utils/renderCombobox.tsx:94
↓ 136 callersFunctiongetToggleButton
()
src/hooks/testUtils/interactions.ts:16
↓ 119 callersFunctionkeyDownOnInput
(user: UserEvent, keys: string)
src/hooks/useCombobox/__tests__/utils/interactions.ts:6
↓ 118 callersFunctionkeyDownOnToggleButton
(user: UserEvent, keys: string)
src/hooks/testUtils/interactions.ts:40
↓ 113 callersFunctiongetItems
()
src/hooks/testUtils/interactions.ts:22
↓ 96 callersFunctionrenderUseCombobox
(props?: Partial<UseComboboxProps<string>>)
src/hooks/useCombobox/__tests__/utils/renderUseCombobox.ts:6
↓ 91 callersFunctiondispatch
(type: string, cx: number, cy: number)
e2e/combobox.spec.ts:148
↓ 76 callersFunctionclickOnToggleButton
(user: UserEvent)
src/hooks/testUtils/interactions.ts:29
↓ 75 callersFunctionrenderUseSelect
(props?: Partial<UseSelectProps<string>>)
src/hooks/useSelect/__tests__/utils/renderUseSelect.ts:6
↓ 69 callersFunctiongetSelectedItemAtIndex
(index)
src/hooks/useMultipleSelection/testUtils.js:37
↓ 52 callersFunctionrenderDownshift
({renderFn, props, menuProps, inputProps} = {})
src/__tests__/downshift.aria.js:45
↓ 49 callersFunctioncallAllEventHandlers
(...fns: (Function | undefined)[])
src/utils/callAllEventHandlers.ts:8
↓ 47 callersFunctionkeyDownOnSelectedItemAtIndex
(user, index, key)
src/hooks/useMultipleSelection/testUtils.js:48
↓ 47 callersFunctionsetup
()
src/__tests__/set-a11y-status.js:80
↓ 44 callersFunctiongetHighlightedIndex
( start: number, offset: number, items: Item[], isItemDisabled: (item: Item, index: number) => boolean
src/utils/getHighlightedIndex.ts:13
↓ 36 callersFunctionisDownshiftComponent
(thing)
other/misc-tests/__tests__/build.js:242
↓ 31 callersFunctionmouseMoveItemAtIndex
(user: UserEvent, index: number)
src/hooks/testUtils/interactions.ts:32
↓ 30 callersFunctiongetTags
()
src/hooks/useTagGroup/__tests__/utils/renderTagGroup.tsx:14
↓ 30 callersFunctionrenderTagGroup
(props: Partial<UseTagGroupProps<string>> = {})
src/hooks/useTagGroup/__tests__/utils/renderTagGroup.tsx:10
↓ 28 callersFunctionrenderUseTagGroup
( initialProps: Partial<UseTagGroupProps<string>> = {}, )
src/hooks/useTagGroup/__tests__/utils/renderUseTagGroup.ts:7
↓ 27 callersFunctiongetHighlightedIndexOnOpen
( items: Item[], initialHighlightedIndex: number | undefined, defaultHighlightedIndex: number | undefine
src/hooks/utils/getHighlightedIndexOnOpen.ts:17
↓ 26 callersFunctionrerender
(p: Omit<DropdownComboboxProps, 'renderSpy'>)
src/hooks/useCombobox/__tests__/utils/renderCombobox.tsx:83
↓ 24 callersFunctionclickOnItemAtIndex
(user: UserEvent, index: number)
src/hooks/testUtils/interactions.ts:25
↓ 24 callersMethodgetState
* Gets the state based on internal state or props * If a state value is passed via props, then that * is the value given, otherwise it's retriev
src/downshift.js:199
↓ 23 callersFunctiongetSelectedItems
()
src/hooks/useMultipleSelection/testUtils.js:41
↓ 23 callersFunctionrerender
(newProps: Partial<ReducerProps> = {})
src/hooks/utils/__tests__/useEnhancedReducer.test.ts:75
↓ 22 callersFunctiontab
(user: UserEvent, shiftKey = false)
src/hooks/testUtils/interactions.ts:50
↓ 21 callersFunctionwaitForDebouncedA11yStatusUpdate
(shouldBeCleared = false)
src/hooks/testUtils/interactions.ts:5
↓ 20 callersFunctionuseCombobox
( userProps: UseComboboxProps<Item> = {} as UseComboboxProps<Item>, )
src/hooks/useCombobox/index.ts:44
↓ 19 callersFunctionchangeInputValue
(user: UserEvent, inputValue: string)
src/hooks/useCombobox/__tests__/utils/interactions.ts:14
↓ 19 callersFunctionclickOnTag
(index: number)
src/hooks/useTagGroup/__tests__/utils/renderTagGroup.tsx:26
↓ 18 callersFunctionclickOnInput
(user: UserEvent)
src/hooks/useCombobox/__tests__/utils/interactions.ts:22
↓ 17 callersFunctiongetNonDisabledIndex
( start: number, backwards: boolean, items: Item[], isItemDisabled: (item: Item, index: number) => boo
src/utils/getNonDisabledIndex.ts:11
↓ 17 callersFunctionuseSelect
( userProps: UseSelectProps<Item> = {} as UseSelectProps<Item>, )
src/hooks/useSelect/index.ts:45
↓ 16 callersFunctiongetInitialValue
( value: T | undefined, initialValue: T | undefined, defaultValue: T | undefined, defaultStateValue: T
src/hooks/utils/getInitialValue.ts:14
↓ 16 callersFunctionrerender
src/hooks/useMultipleSelection/testUtils.js:107
↓ 14 callersFunctiongetA11yStatusContainer
()
src/hooks/testUtils/interactions.ts:47
↓ 14 callersFunctiongetDefaultValue
( defaultProp: T | undefined, defaultStateValue: T, )
src/hooks/utils/getDefaultValue.ts:8
↓ 14 callersFunctionhandleRefs
( ...refs: (React.Ref<T> | undefined)[] )
src/utils/handleRefs.ts:3
↓ 14 callersFunctionrenderReducer
(propsOverrides: Partial<ReducerProps> = {})
src/hooks/utils/__tests__/useEnhancedReducer.test.ts:43
↓ 12 callersFunctioncallOnChangeProps
(action: Action<S, A, P>, props: P, state: S, newState: S)
src/hooks/utils/callOnChangeProps.ts:5
↓ 12 callersFunctionclickOnSelectedItemAtIndex
(user, index)
src/hooks/useMultipleSelection/testUtils.js:45
↓ 12 callersFunctiongetItemIndexByCharacter
(character: string, startIndex = 0)
src/hooks/useSelect/__tests__/utils/getItemIndexByCharacter.ts:9
↓ 12 callersFunctiontargetWithinDownshift
( target: EventTarget | undefined | null, downshiftElements: (HTMLElement | undefined | null)[], environ
src/utils/targetWithinDownshift.ts:13
↓ 11 callersFunctiongetItemAndIndex
( itemProp: Item | undefined, indexProp: number | undefined, items: Item[], errorMessage: string, )
src/hooks/utils/getItemAndIndex.ts:10
↓ 11 callersFunctionuseMultipleSelection
(userProps = {})
src/hooks/useMultipleSelection/index.js:27
↓ 10 callersFunctiongenerateId
()
src/utils/generateId.ts:9
↓ 10 callersFunctionitemToString
(item)
src/hooks/useCombobox/__tests__/props.test.js:106
↓ 10 callersFunctionmouseLeaveItemAtIndex
(user: UserEvent, index: number)
src/hooks/testUtils/interactions.ts:36
↓ 10 callersFunctionrerender
(p: Omit<DropdownSelectProps, 'renderSpy'>)
src/hooks/useSelect/__tests__/utils/renderSelect.tsx:80
↓ 10 callersFunctionscrollIntoView
( node: HTMLElement | undefined, menuNode: HTMLElement | undefined, )
src/utils/scrollIntoView.ts:8
↓ 9 callersFunctiondebounce
( fn: Function, time: number, )
src/utils/debounce.ts:6
↓ 9 callersFunctiongetChangesOnSelection
( items: Item[], itemToString: (item: Item | null) => string, defaultIsOpen: boolean | undefined, defa
src/hooks/utils/getChangesOnSelection.ts:20
↓ 9 callersFunctiongetItemAtIndex
(index: number)
src/hooks/testUtils/interactions.ts:19
↓ 9 callersFunctiongetItemIndexByCharacterKey
({ keysSoFar, highlightedIndex, items, itemToString, isItemDisabled, }: GetItemIndexByCharacterKeyOp
src/hooks/useSelect/utils/getItemIndexByCharacterKey.ts:9
↓ 9 callersMethodgetStateAndHelpers
()
src/downshift.js:428
↓ 9 callersFunctionnormalizeArrowKey
(event: KeyboardEvent)
src/utils/normalizeArrowKey.ts:6
↓ 9 callersFunctionresetIdCounter
()
src/utils/generateId.ts:24
↓ 9 callersFunctionsetStatus
(status: string, document: Document | undefined)
src/utils/setA11yStatus.ts:39
↓ 9 callersFunctionuseControlledReducer
( reducer: Reducer<UseComboboxState<Item>, UseComboboxReducerAction<Item>>, props: UseComboboxMergedProps<
src/hooks/useCombobox/utils/useControlledReducer.ts:24
↓ 9 callersFunctionuseIsInitialMount
()
src/hooks/utils/useIsInitialMount.ts:6
↓ 9 callersFunctionuseMouseAndTouchTracker
( environment: Environment | undefined, handleBlur: () => void, downshiftRefs: React.RefObject<HTMLEleme
src/hooks/utils/useMouseAndTouchTracker.ts:14
↓ 8 callersFunctiongetDefaultHighlightedIndex
( items: Item[], isItemDisabled: (item: Item, index: number) => boolean, defaultHighlightedIndex?: numbe
src/hooks/utils/getDefaultHighlightedIndex.ts:10
↓ 7 callersFunctionclickOnRemoveTag
(index: number)
src/hooks/useTagGroup/__tests__/utils/renderTagGroup.tsx:33
↓ 7 callersFunctiondebouncedFn
(...args: unknown[])
src/hooks/utils/__tests__/useA11yMessageStatus.test.ts:12
↓ 7 callersMethodgetItemCount
()
src/downshift.js:203
↓ 7 callersFunctiongetNode
({ top = 0, height = 0, scrollTop = 0, scrollHeight = height, clientHeight = height, children = []
src/__tests__/utils.scroll-into-view.js:84
↓ 7 callersFunctiongetState
(state: S, props?: Partial<S>)
src/utils/getState.ts:12
↓ 7 callersFunctionuseA11yMessageStatus
( getA11yStatusMessage: ((options: Options) => string) | undefined, options: Options, dependencyArray: u
src/hooks/utils/useA11yMessageStatus.ts:21
↓ 6 callersFunctiongetInitialState
(props: GetInitialStateProps<T>)
src/hooks/useCombobox/utils/getInitialState.ts:10
↓ 6 callersFunctionisDropdownStateEqual
( prevState: DropdownState<Item>, newState: DropdownState<Item>, )
src/hooks/utils/isDropdownStateEqual.ts:16
↓ 6 callersFunctionrenderScrollHook
(props = {})
src/hooks/utils/__tests__/useScrollIntoView.test.ts:14
↓ 6 callersFunctionuseTagGroup
( userProps: UseTagGroupProps<Item> = {}, )
src/hooks/useTagGroup/index.ts:36
↓ 5 callersFunctiongetExampleLabelClassName
(selectedItem?: string | null)
docusaurus/utils.ts:18
↓ 5 callersFunctiongetScrollableNode
(overrides = {})
src/__tests__/utils.scroll-into-view.js:74
↓ 5 callersFunctionisItemDisabled
(_item: unknown)
src/hooks/utils/dropdownDefaultProps.ts:11
↓ 5 callersFunctionpickState
* @param {Object} state the state object * @return {Object} state that is relevant to downshift
src/utils.legacy.js:112
↓ 4 callersFunctioncapitalizeString
(string: string)
src/hooks/utils/capitalizeString.ts:1
↓ 4 callersMethodisItemDisabled
(item: Item, index: number)
src/hooks/useSelect/index.types.ts:143
↓ 4 callersFunctiononMouseDown
()
src/hooks/utils/useMouseAndTouchTracker.ts:35
↓ 4 callersFunctionreducer
(state: ReducerState, action: ReducerAction)
src/hooks/utils/__tests__/useEnhancedReducer.test.ts:44
↓ 4 callersFunctionsetupDownshiftWithState
()
src/__tests__/downshift.get-input-props.js:728
↓ 4 callersFunctionuseEnhancedReducer
( reducer: Reducer<S, A>, props: P, createInitialState: (props: P) => S, isStateEqual: (prev: S, next:
src/hooks/utils/useEnhancedReducer.ts:18
↓ 4 callersFunctionuseLatestRef
(value: T)
src/utils/useLatestRef.ts:5
↓ 3 callersFunctionfocusSelectedItemAtIndex
(index)
src/hooks/useMultipleSelection/testUtils.js:58
↓ 3 callersMethodgetItemNodeFromIndex
(index)
src/downshift.js:225
↓ 3 callersFunctionsetIdCounter
(num: number)
src/utils/generateId.ts:17
↓ 3 callersMethodstateReducer
( state: UseTagGroupState<Item>, actionAndChanges: UseTagGroupReducerAction<Item> & { props: Use
src/hooks/useTagGroup/index.types.ts:38
↓ 3 callersFunctionup
()
src/__tests__/downshift.get-input-props.js:622
↓ 3 callersFunctionuseAccessibleDescription
( document: Document | undefined, description: string, )
src/hooks/useTagGroup/utils/useAccessibleDescription.ts:5
↓ 3 callersFunctionuseScrollIntoView
( scrollIntoView: (node: HTMLElement, menuNode: HTMLElement) => void, highlightedIndex: number, isOpen:
src/hooks/utils/useScrollIntoView.ts:15
↓ 2 callersFunctionarrToStr
src/is.macro.js:9
↓ 2 callersFunctioncbToCb
* Accepts a parameter and returns it if it's a function * or a noop function if it's not. This allows us to * accept a callback, but not worry about
src/utils.legacy.js:12
↓ 2 callersFunctionchildren
({getItemProps})
src/__tests__/downshift.misc.js:74
↓ 2 callersFunctionclickOnInput
(user)
src/hooks/useMultipleSelection/testUtils.js:62
↓ 2 callersFunctiondown
()
src/__tests__/downshift.get-input-props.js:623
↓ 2 callersFunctiongetElementProps
* @param {Object} element (P)react element * @return {Object} the props
src/utils.legacy.js:79
↓ 2 callersFunctiongetItemId
src/hooks/useSelect/__tests__/getItemProps.test.js:69
next →1–100 of 332, ranked by callers