MCPcopy Create free account

hub / github.com/adobe/react-spectrum / functions

Functions9,173 in github.com/adobe/react-spectrum

↓ 5 callersFunctionuseLoadMoreSentinel
( props: LoadMoreSentinelProps, ref: RefObject<HTMLElement | null> )
packages/react-aria/src/utils/useLoadMoreSentinel.ts:40
↓ 5 callersFunctionuseLocalStorage
( key: string, defaultValue: string )
packages/dev/s2-docs/src/useLocalStorage.ts:3
↓ 5 callersFunctionuseMediaQuery
(query: string)
packages/@react-spectrum/s2/src/useMediaQuery.ts:16
↓ 5 callersFunctionuseMultipleSelectionState
( props: MultipleSelectionStateProps )
packages/react-stately/src/selection/useMultipleSelectionState.ts:60
↓ 5 callersFunctionuseNumberField
( props: AriaNumberFieldProps, state: NumberFieldState, inputRef: RefObject<HTMLInputElement | null> )
packages/react-aria/src/numberfield/useNumberField.ts:94
↓ 5 callersFunctionuseRenderDropIndicator
( dragAndDropHooks?: DragAndDropHooks, dropState?: DroppableCollectionState )
packages/react-aria-components/src/DragAndDrop.tsx:77
↓ 5 callersFunctionuseSearchField
( props: AriaSearchFieldProps, state: SearchFieldState, inputRef: RefObject<HTMLInputElement | null> )
packages/react-aria/src/searchfield/useSearchField.ts:60
↓ 5 callersFunctionuseSelectState
( props: SelectStateOptions<T, M> )
packages/react-stately/src/select/useSelectState.ts:154
↓ 5 callersFunctionuseSelectableCollection
( options: AriaSelectableCollectionOptions )
packages/react-aria/src/selection/useSelectableCollection.ts:149
↓ 5 callersFunctionuseTableSelectAllCheckbox
(state: TableState<T>)
packages/react-aria/src/table/useTableSelectionCheckbox.ts:63
↓ 5 callersFunctionuseTableSelectionCheckbox
( props: AriaTableSelectionCheckboxProps, state: TableState<T> )
packages/react-aria/src/table/useTableSelectionCheckbox.ts:42
↓ 5 callersFunctionuseToast
( props: AriaToastProps<T>, state: ToastState<T>, // eslint-disable-next-line @typescript-eslint/no-unus
packages/react-aria/src/toast/useToast.ts:45
↓ 5 callersFunctionuseTooltip
(props: AriaTooltipProps, state?: TooltipTriggerState)
packages/react-aria/src/tooltip/useTooltip.ts:35
↓ 5 callersFunctionuseTooltipTrigger
( props: TooltipTriggerProps, state: TooltipTriggerState, ref: RefObject<FocusableElement | null> )
packages/react-aria/src/tooltip/useTooltipTrigger.ts:38
↓ 5 callersFunctionuseUnwrapDOMRef
( ref: RefObject<DOMRefValue<T> | null> )
packages/@adobe/react-spectrum/src/utils/useDOMRef.ts:74
↓ 5 callersFunctionuseViewportSize
()
packages/react-aria/src/utils/useViewportSize.ts:26
↓ 5 callersMethodvalidate
* Validates a user input string. Values can be partially entered, and may be valid even if they * cannot currently be parsed to a color. Can be use
packages/react-stately/src/color/useColorFieldState.ts:76
↓ 4 callersMethod_findClosest
(target: Rect, rect: Rect)
packages/@adobe/react-spectrum/src/card/BaseLayout.tsx:152
↓ 4 callersMethodabort
()
packages/@react-spectrum/ai/src/speech-recognition.d.ts:47
↓ 4 callersFunctionadd
( date: CalendarDate | CalendarDateTime, duration: DateTimeDuration )
packages/@internationalized/date/src/manipulation.ts:47
↓ 4 callersFunctionaddNode
(node: TreeNode<T>, map: Map<Key, TreeNode<T>>)
packages/react-stately/src/data/useTreeData.ts:260
↓ 4 callersFunctionaddToast
( children: string, variant: SpectrumToastValue['variant'], options: SpectrumToastOptions = {} )
packages/@adobe/react-spectrum/src/toast/ToastContainer.tsx:156
↓ 4 callersFunctionaddToast
( children: string, variant: SpectrumToastValue['variant'], options: ToastOptions = {} )
packages/@react-spectrum/s2/src/Toast.tsx:118
↓ 4 callersFunctionadjustSegment
(type: DateSegmentType, amount: number)
packages/react-stately/src/datepicker/useDateFieldState.ts:362
↓ 4 callersMethodcanSelectItem
(key: Key)
packages/react-stately/src/selection/SelectionManager.ts:510
↓ 4 callersFunctioncb
(coeffs)
packages/@react-spectrum/ai/src/loader/react.tsx:62
↓ 4 callersMethodcollapse
Collapse the disclosure.
packages/react-stately/src/disclosure/useDisclosureState.ts:33
↓ 4 callersFunctioncolorToken
(name: TokenName)
packages/@react-spectrum/s2/style/tokens.ts:37
↓ 4 callersFunctioncolorTokenToString
(token: ColorToken, opacity?: string | number)
packages/@react-spectrum/s2/style/spectrum-theme.ts:153
↓ 4 callersMethodcontainsRect
* Returns whether this rectangle fully contains another rectangle. * * @param rect - The rectangle to check.
packages/react-stately/src/virtualizer/Rect.ts:111
↓ 4 callersFunctionconvertDimension
( value: DimensionValue, type: 'size' | 'space' | 'px' )
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/dimensions.ts:117
↓ 4 callersFunctioncreateEvent
(target: FocusableElement, e: EventBase)
packages/react-aria/src/interactions/usePress.ts:1077
↓ 4 callersFunctioncreateShadowTreeWalker
( doc: Document, root: Node, whatToShow?: number, filter?: NodeFilter | null )
packages/react-aria/src/utils/shadowdom/ShadowTreeWalker.ts:292
↓ 4 callersFunctiondebugLog
()
packages/dev/style-macro-chrome-plugin/src/devtool.js:5
↓ 4 callersFunctiondimensionForAxis
(axis: ScrollAnchorAxis)
packages/react-stately/src/virtualizer/ScrollAnchor.ts:48
↓ 4 callersFunctionedgeToText
(this: MacroContext | void, height: keyof typeof baseSpacing)
packages/@react-spectrum/s2/style/spectrum-theme.ts:420
↓ 4 callersMethodextendSelection
Extends the selection to the given key.
packages/react-stately/src/selection/types.ts:96
↓ 4 callersMethodfindKey
( key: Key, nextKey: (key: Key) => Key | null, shouldSkip: (prevRect: Rect, itemRect: Rect) => boo
packages/react-aria/src/selection/ListKeyboardDelegate.ts:137
↓ 4 callersMethodfindNextKey
( fromKey?: Key, pred?: (item: Node<T>) => boolean, includeDisabled = false )
packages/react-aria/src/grid/GridKeyboardDelegate.ts:113
↓ 4 callersMethodfindText
Find a string or regular expression match before or after a position.
packages/react-stately/src/tokenfield/TokenFieldValue.ts:263
↓ 4 callersFunctionfromExtendedYear
(year: number)
packages/@internationalized/date/src/calendars/GregorianCalendar.ts:56
↓ 4 callersMethodgetChildren
(key: Key)
packages/react-aria-components/src/Table.tsx:357
↓ 4 callersMethodgetColorChannels
* Returns an array of the color channels within the current color space space.
packages/react-stately/src/color/types.ts:78
↓ 4 callersFunctiongetColorScale
( this: MacroContext | void, name: string, size: any = 20 )
packages/dev/s2-docs/src/color.macro.ts:7
↓ 4 callersMethodgetCurrentActivateButton
()
packages/react-aria/src/dnd/DragManager.ts:261
↓ 4 callersFunctiongetCustomSkillContent
(skillName)
packages/dev/s2-docs/scripts/generateAgentSkills.mjs:191
↓ 4 callersMethodgetDropTargetFromPoint
* Returns a drop target within a collection for the given x and y coordinates. The point is * provided relative to the top left corner of the colle
packages/@react-types/shared/src/dnd.d.ts:200
↓ 4 callersMethodgetEntries
Returns the entries contained within the directory.
packages/@react-types/shared/src/dnd.d.ts:96
↓ 4 callersMethodgetFormattableMonth
* Returns a date that is the first day of the month for the given date. * This is used to determine the month that the given date falls in, if *
packages/@internationalized/date/src/types.ts:105
↓ 4 callersMethodgetGridlist
* Returns the gridlist.
packages/@react-aria/test-utils/src/gridlist.ts:252
↓ 4 callersMethodgetKeyAbove
Returns the key visually above the given one, or `null` for none.
packages/@react-types/shared/src/collections.d.ts:111
↓ 4 callersMethodgetKeyBelow
Returns the key visually below the given one, or `null` for none.
packages/@react-types/shared/src/collections.d.ts:108
↓ 4 callersMethodgetLayoutInfo
(key: Key)
packages/@adobe/react-spectrum/src/card/BaseLayout.tsx:100
↓ 4 callersMethodgetNextKey
(startKey: Key)
packages/react-aria/src/tabs/TabsKeyboardDelegate.ts:81
↓ 4 callersFunctiongetPlaceholderTime
(placeholderValue: DateValue | null | undefined)
packages/react-stately/src/datepicker/utils.ts:231
↓ 4 callersMethodgetPreviousKey
(key: Key, options?: {includeDisabled?: boolean})
packages/react-aria/src/selection/ListKeyboardDelegate.ts:127
↓ 4 callersMethodgetPreviousKey
(startKey: Key)
packages/react-aria/src/tabs/TabsKeyboardDelegate.ts:92
↓ 4 callersFunctiongetPropagationTargets
( from: Element | null | undefined, to?: Document | Window | Element | null )
packages/react-aria/src/utils/shadowdom/DOMFunctions.ts:96
↓ 4 callersFunctiongetRect
(node: Element, ignoreScale: boolean)
packages/react-aria/src/overlays/calculatePosition.ts:749
↓ 4 callersMethodgetSegmentLimits
( type: string )
packages/react-stately/src/datepicker/IncompleteDate.ts:270
↓ 4 callersMethodgetSelectedRadio
* Returns the currently selected radio in the radiogroup if any.
packages/@react-aria/test-utils/src/radiogroup.ts:176
↓ 4 callersFunctiongetTimeZoneOffset
(ms: number, timeZone: string)
packages/@internationalized/date/src/conversion.ts:62
↓ 4 callersFunctiongetToken
(name: TokenName)
packages/@react-spectrum/s2/style/tokens.ts:26
↓ 4 callersMethodgetVisibleRect
Returns the visible rectangle of the collection.
packages/@react-types/shared/src/collections.d.ts:152
↓ 4 callersFunctiongregorianToJulianDay
( era: string, year: number, month: number, day: number )
packages/@internationalized/date/src/calendars/GregorianCalendar.ts:21
↓ 4 callersMethodinsert
* Inserts an item into a parent node as a child. * * @param parentKey - The key of the parent item to insert into. `null` for the root. * @pa
packages/react-stately/src/data/useTreeData.ts:62
↓ 4 callersFunctionisCtrlKeyPressed
(e: Event)
packages/react-aria/src/utils/keyboard.tsx:21
↓ 4 callersMethodisDisabled
(key: Key)
packages/react-aria/src/tabs/TabsKeyboardDelegate.ts:47
↓ 4 callersMethodisReversed
(key: Key)
packages/react-aria/src/selection/ListKeyboardDelegate.ts:173
↓ 4 callersFunctionisSameMonth
(a: DateValue, b: DateValue)
packages/@internationalized/date/src/queries.ts:28
↓ 4 callersMethodisValid
(node: Node<T>, offset: number)
packages/react-stately/src/layout/ListLayout.ts:453
↓ 4 callersFunctionisValidDropTarget
(element: Element)
packages/react-aria/src/dnd/DragManager.ts:128
↓ 4 callersFunctionisValidEvent
(event, ref)
packages/react-aria/src/interactions/useInteractOutside.ts:120
↓ 4 callersFunctionitemProcessor
(items, acceptedDragTypes)
packages/@adobe/react-spectrum/stories/table/TableDnDUtilExamples.tsx:23
↓ 4 callersFunctionitemProcessor
(items, acceptedDragTypes)
packages/@adobe/react-spectrum/stories/list/ListViewDnDUtilExamples.tsx:15
↓ 4 callersFunctionmaxDate
( a?: A | null, b?: B | null )
packages/@internationalized/date/src/queries.ts:363
↓ 4 callersFunctionminDate
( a?: A | null, b?: B | null )
packages/@internationalized/date/src/queries.ts:351
↓ 4 callersFunctionmod
(amount: number, numerator: number)
packages/@internationalized/date/src/utils.ts:17
↓ 4 callersFunctionmove
(x, y)
packages/react-aria/src/dnd/useAutoScroll.ts:78
↓ 4 callersFunctiononAction
(item: (typeof items)[0], action: Key)
packages/dev/s2-docs/pages/react-aria/home/ExampleApp.tsx:210
↓ 4 callersFunctiononChange
packages/@react-spectrum/s2/src/useMediaQuery.ts:28
↓ 4 callersFunctiononMove
(keys: Key[], target: ItemDropTarget)
packages/@adobe/react-spectrum/stories/table/TableDnDExamples.tsx:233
↓ 4 callersFunctiononMove
(keys: Key[], target: ItemDropTarget)
packages/@adobe/react-spectrum/stories/list/ListViewDnDExamples.tsx:102
↓ 4 callersFunctionparseAbsolute
(value: string, timeZone: string)
packages/@internationalized/date/src/string.ts:165
↓ 4 callersMethodqueueUpdate
()
packages/react-aria/src/collections/Document.ts:551
↓ 4 callersFunctionremoveComponentImportIfUnused
(path: NodePath<t.Program>, component: string)
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/utils.ts:150
↓ 4 callersFunctionrender
(children, scale: Scale = 'medium')
packages/@adobe/react-spectrum/test/table/TableSizing.test.tsx:75
↓ 4 callersFunctionrenderDropIndicator
(target)
packages/react-aria-components/stories/Table.stories.tsx:1014
↓ 4 callersFunctionrenderElement
(name: string, props: Props, controls?: Controls, indent = '')
packages/dev/s2-docs/src/VisualExampleClient.tsx:329
↓ 4 callersFunctionrenderWithOptions
({width = 'auto', ...props})
packages/@adobe/react-spectrum/chromatic/dialog/Dialog.stories.tsx:731
↓ 4 callersFunctionrewriteMonopackageImports
(file, pkg, subpath)
scripts/migrateDeps.mjs:541
↓ 4 callersMethodselectDate
Selects the given date.
packages/react-stately/src/calendar/types.ts:155
↓ 4 callersMethodsetAnchorDate
Sets the anchor date that the user clicked on to begin range selection.
packages/react-stately/src/calendar/types.ts:219
↓ 4 callersFunctionsetDragging
(element: Element | null)
packages/react-aria/src/dnd/useDrag.ts:120
↓ 4 callersFunctionsetDropCollectionRef
(ref?: RefObject<HTMLElement | null>)
packages/react-aria/src/dnd/utils.ts:397
↓ 4 callersFunctionsetFocused
(isFocused: boolean)
packages/react-stately/src/combobox/useComboBoxState.ts:579
↓ 4 callersFunctionsetLinks
(links)
packages/dev/s2-docs/src/types.tsx:178
↓ 4 callersFunctionsetStyle
(element: HTMLElement, style: string, value: string)
packages/react-aria/src/overlays/usePreventScroll.ts:225
↓ 4 callersMethodsetVisibleRect
(rect: Rect)
packages/react-stately/src/virtualizer/types.ts:30
↓ 4 callersFunctionshortName
(key, value)
packages/@adobe/react-spectrum/chromatic/numberfield/NumberField.stories.tsx:76
← previousnext →601–700 of 9,173, ranked by callers