MCPcopy Create free account

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

Functions8,660 in github.com/adobe/react-spectrum

↓ 30 callersFunctionuseDragAndDrop
(options: DragAndDropOptions<T>)
packages/@react-spectrum/s2/src/useDragAndDrop.ts:38
↓ 29 callersFunctionuseDragAndDrop
(options: DragAndDropOptions<T>)
packages/@adobe/react-spectrum/src/dnd/useDragAndDrop.ts:125
↓ 29 callersFunctionuseSlotProps
(props: T & {id?: string}, defaultSlot?: string)
packages/@adobe/react-spectrum/src/utils/Slots.tsx:22
↓ 28 callersFunctionsetItems
([])
packages/react-aria-components/test/ComboBox.test.js:1128
↓ 27 callersFunctiongetLocalTimeZone
()
packages/@internationalized/date/src/queries.ts:140
↓ 27 callersFunctionmergeRefs
( ...refs: Array<Ref<T> | MutableRefObject<T> | null | undefined> )
packages/react-aria/src/utils/mergeRefs.ts:18
↓ 27 callersFunctionuseResizeObserver
( options: useResizeObserverOptionsType<T> )
packages/react-aria/src/utils/useResizeObserver.ts:15
↓ 26 callersFunctionchildren
(node)
packages/react-aria-components/src/Collection.tsx:218
↓ 26 callersFunctiongeneratePowerset
(states: Array<object>, exclude?: (merged) => boolean)
packages/@react-spectrum/story-utils/src/GeneratePowerset.tsx:16
↓ 26 callersMethodgetKeyAfter
(key: Key)
packages/react-aria-components/src/TreeDropTargetDelegate.ts:14
↓ 26 callersFunctionspace
(px: number)
packages/@react-spectrum/s2/style/index.ts:42
↓ 26 callersFunctionuseListState
(props: ListProps<T>)
packages/react-stately/src/list/useListState.ts:50
↓ 26 callersFunctionuseOverlayTriggerState
(props: OverlayTriggerProps)
packages/react-stately/src/overlays/useOverlayTriggerState.ts:51
↓ 25 callersFunctiongetOwnerWindow
(target?: EventTarget | null)
packages/react-aria/src/utils/domHelpers.ts:25
↓ 25 callersMethodinsertAfter
* Inserts items into the list after the item at the given key. * * @param key - The key of the item to insert after. * @param values - The va
packages/react-stately/src/data/useListData.ts:80
↓ 25 callersMethodnext
()
packages/react-aria/src/dnd/DragManager.ts:457
↓ 25 callersFunctionremoveProp
( path: NodePath<t.JSXElement>, options: { /** Prop name to remove. */ propName: string; /** I
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/transforms.ts:222
↓ 25 callersFunctionusePress
(props: PressHookProps)
packages/react-aria/src/interactions/usePress.ts:194
↓ 24 callersMethodappend
* Appends items to the list. * * @param values - The values to insert.
packages/react-stately/src/data/useListData.ts:87
↓ 24 callersFunctiongetName
(path: NodePath<t.JSXElement>, identifier: t.JSXIdentifier)
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/utils.ts:216
↓ 24 callersMethodinsertBefore
* Inserts items into the list before the item at the given key. * * @param key - The key of the item to insert before. * @param values - The
packages/react-stately/src/data/useListData.ts:72
↓ 24 callersMethodsubtract
Returns a new `Time` with the given duration subtracted from it.
packages/@internationalized/date/src/CalendarDate.ts:196
↓ 23 callersFunctiongetFocusableTreeWalker
( root: Element, opts?: FocusManagerOptions, scope?: Element[] )
packages/react-aria/src/focus/FocusScope.tsx:893
↓ 23 callersMethodparse
* Parses the given string to a number. Returns NaN if a valid number could not be parsed.
packages/@internationalized/number/src/NumberParser.ts:48
↓ 23 callersFunctionrepeat
( count: number | 'auto-fill' | 'auto-fit', repeat: DimensionValue | DimensionValue[] )
packages/@adobe/react-spectrum/src/layout/Grid.tsx:75
↓ 23 callersFunctionuseFocusWithin
(props: FocusWithinProps)
packages/react-aria/src/interactions/useFocusWithin.ts:44
↓ 23 callersFunctionuseTreeData
(options: TreeOptions<T>)
packages/react-stately/src/data/useTreeData.ts:152
↓ 22 callersFunctioncreateLeafComponent
( CollectionNodeClass: CollectionNodeClass<any> | string, render: (props: P, ref: ForwardedRef<E>, node?:
packages/react-aria/src/collections/CollectionBuilder.tsx:212
↓ 22 callersMethodgetChannelValue
* Returns the numeric value for a given channel. * Throws an error if the channel is unsupported in the current color format.
packages/react-stately/src/color/types.ts:44
↓ 22 callersFunctionrequire
packages/dev/parcel-packager-ssg/SSGPackager.js:116
↓ 22 callersMethodtoDate
* Converts the date to a native JavaScript Date object, with the time set to midnight in the * given time zone.
packages/@internationalized/date/src/CalendarDate.ts:145
↓ 22 callersFunctionuseCollator
(options?: Intl.CollatorOptions)
packages/react-aria/src/i18n/useCollator.ts:23
↓ 21 callersFunctionfocusWithoutScrolling
(element: FocusableElement)
packages/react-aria/src/utils/focusWithoutScrolling.ts:15
↓ 21 callersFunctiongetFirstItem
(iterable: Iterable<T>)
packages/react-stately/src/collections/getChildNodes.ts:28
↓ 21 callersFunctiongetImage
(index: number)
packages/@adobe/react-spectrum/stories/card/utils.ts:19
↓ 21 callersMethodgetOptions
* Returns the menu's options if present. Can be filtered to a subsection of the menu if provided * via `element`.
packages/@react-aria/test-utils/src/menu.ts:457
↓ 21 callersMethodnextNode
()
packages/react-aria/src/utils/shadowdom/ShadowTreeWalker.ts:137
↓ 21 callersFunctiontoday
(timeZone: string)
packages/@internationalized/date/src/queries.ts:109
↓ 21 callersFunctionuseFocusableRef
( ref: FocusableRef<T>, focusableRef?: RefObject<FocusableElement | null> )
packages/@adobe/react-spectrum/src/utils/useDOMRef.ts:55
↓ 20 callersFunctioncontrolFont
()
packages/@react-spectrum/s2/src/style-utils.ts:209
↓ 20 callersMethodgetLastKey
Get the last key in the collection.
packages/@react-types/shared/src/collections.d.ts:175
↓ 20 callersFunctioniconStyle
( this: MacroContext | void, options: IconStyle )
packages/@react-spectrum/s2/style/index.ts:170
↓ 20 callersFunctiontoCalendar
(date: T, calendar: Calendar)
packages/@internationalized/date/src/conversion.ts:338
↓ 20 callersFunctionupdatePropNameAndValue
( path: NodePath<t.JSXElement>, options: { /** Prop name to replace. */ oldPropName: string; /
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/transforms.ts:17
↓ 20 callersFunctionuseLabels
( props: DOMProps & AriaLabelingProps, defaultLabel?: string )
packages/react-aria/src/utils/useLabels.ts:22
↓ 19 callersFunctionaddComment
(node: any, comment: string)
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/utils.ts:69
↓ 19 callersFunctioncenterBaseline
( props: Omit<CenterBaselineProps, 'children'> = {} )
packages/@react-spectrum/s2/src/CenterBaseline.tsx:67
↓ 19 callersFunctionclamp
(value: number, min: number = -Infinity, max: number = Infinity)
packages/react-stately/src/utils/number.ts:17
↓ 19 callersMethodcopy
()
packages/@internationalized/date/src/types.ts:31
↓ 19 callersFunctiongetInteractionModality
()
packages/react-aria/src/interactions/useFocusVisible.ts:324
↓ 19 callersFunctionlightDark
(light: SpectrumColor, dark: SpectrumColor)
packages/@react-spectrum/s2/style/spectrum-theme.ts:294
↓ 19 callersMethodsetAttribute
()
packages/react-aria/src/collections/Document.ts:421
↓ 19 callersMethodtraverse
(node: TreeNode = this.root)
packages/react-aria/src/focus/FocusScope.tsx:1135
↓ 19 callersFunctionuseFormProps
(props: T)
packages/@react-spectrum/s2/src/Form.tsx:43
↓ 19 callersFunctionuseSlot
( initialState: boolean | (() => boolean) = true )
packages/react-aria-components/src/utils.tsx:364
↓ 18 callersMethodcurrent
()
packages/@adobe/react-spectrum/test/radio/Radio.test.js:79
↓ 18 callersMethodgetTrigger
* Returns the menu's trigger.
packages/@react-aria/test-utils/src/menu.ts:425
↓ 18 callersMethodintersection
* Returns the intersection of this Rect with another. * If the rectangles do not intersect, an all zero Rect is returned.
packages/react-stately/src/virtualizer/Rect.ts:172
↓ 18 callersMethodresolvedOptions
Returns the resolved formatting options based on the values passed to the constructor.
packages/@internationalized/date/src/DateFormatter.ts:81
↓ 18 callersMethodrun
()
scripts/bumpVersions.js:93
↓ 18 callersFunctionuseEvent
( ref: RefObject<T | null>, event: Extract<K, string> | (string & {}), listener?: (this: T, ev: EventMap
packages/react-aria/src/utils/useEvent.ts:18
↓ 18 callersMethodwithChannelValue
* Sets the numeric value for a given channel, and returns a new Color object. * Throws an error if the channel is unsupported in the current color
packages/react-stately/src/color/types.ts:49
↓ 17 callersMethodclear
()
packages/react-stately/src/toast/useToastState.ts:173
↓ 17 callersMethodcommitValidation
Commits the realtime validation so it is displayed to the user.
packages/react-stately/src/form/useFormValidationState.ts:73
↓ 17 callersFunctionenableShadowDOM
()
packages/react-stately/src/flags/flags.ts:24
↓ 17 callersFunctionfield
()
packages/@react-spectrum/s2/src/style-utils.ts:42
↓ 17 callersFunctionformatTargetNode
(value: number | string | HTMLElement)
packages/@react-aria/test-utils/src/utils.ts:50
↓ 17 callersMethodgetDaysInMonth
Returns the number of days in the month of the given date.
packages/@internationalized/date/src/types.ts:75
↓ 17 callersMethodgetListbox
* Returns the select's listbox if present.
packages/@react-aria/test-utils/src/select.ts:261
↓ 17 callersFunctionrender
(icon)
packages/@react-spectrum/s2/src/Card.tsx:697
↓ 17 callersMethodsetDragging
Sets whether the user is dragging over the calendar.
packages/react-stately/src/calendar/types.ts:225
↓ 17 callersMethodtoggleOptionSelection
* Toggles the selection of the desired menu option if possible. Defaults to using the interaction * type set on the menu tester. If necessary, will
packages/@react-aria/test-utils/src/menu.ts:189
↓ 17 callersFunctionuseFocus
( props: FocusProps<Target> )
packages/react-aria/src/interactions/useFocus.ts:38
↓ 17 callersFunctionuseFormProps
(props: T)
packages/@adobe/react-spectrum/src/form/Form.tsx:71
↓ 17 callersFunctionuseRouter
()
packages/dev/s2-docs/src/Router.tsx:127
↓ 17 callersFunctionuseToggleState
(props: ToggleStateOptions = {})
packages/react-stately/src/toggle/useToggleState.ts:61
↓ 16 callersFunctionannounce
( message: Message, assertiveness: Assertiveness = 'assertive', timeout: number = LIVEREGION_TIMEOUT_DEL
packages/react-aria/src/live-announcer/LiveAnnouncer.tsx:25
↓ 16 callersFunctioncleanup
()
packages/react-aria/src/interactions/utils.ts:199
↓ 16 callersFunctioncss
(this: MacroContext | void, content: string, layer = '_.a')
packages/@react-spectrum/s2/style/style-macro.ts:1109
↓ 16 callersFunctionfocusSafely
(element: FocusableElement)
packages/react-aria/src/interactions/focusSafely.ts:24
↓ 16 callersMethodisDisabled
Returns whether the given key is non-interactive, i.e. both selection and actions are disabled.
packages/react-stately/src/selection/types.ts:117
↓ 16 callersFunctionisSameDay
(a: DateValue, b: DateValue)
packages/@internationalized/date/src/queries.ts:19
↓ 16 callersFunctionpressElement
( user: { click: (element: Element) => Promise<void>; keyboard: (keys: string) => Promise<void>;
packages/@react-aria/test-utils/src/utils.ts:137
↓ 16 callersFunctionsetInteractionModality
(modality: Modality)
packages/react-aria/src/interactions/useFocusVisible.ts:328
↓ 16 callersMethodstartViewTransition
(update: (() => void) | {update: () => void; types: string[]})
lib/viewTransitions.d.ts:14
↓ 16 callersFunctiontoCalendarDateTime
( date: CalendarDate | CalendarDateTime | ZonedDateTime, time?: AnyTime )
packages/@internationalized/date/src/conversion.ts:301
↓ 16 callersFunctionuseIsSSR
()
packages/react-aria/src/ssr/SSRProvider.tsx:209
↓ 16 callersFunctionvisit
(node: GridNode<T>)
packages/react-stately/src/table/useTreeGridState.ts:174
↓ 15 callersMethodclone
Returns a duplicate of the color value.
packages/react-stately/src/color/types.ts:37
↓ 15 callersFunctioncondition
(selector, rest = {})
perf/drivers.mjs:23
↓ 15 callersFunctioncontrolSize
(size: 'sm' | 'md' = 'md')
packages/@react-spectrum/s2/src/style-utils.ts:220
↓ 15 callersFunctioncreateIcon
( Component: ComponentType<SVGProps<SVGSVGElement>>, context: Context<ContextValue<IconContextValue, SVGEl
packages/@react-spectrum/s2/src/Icon.tsx:99
↓ 15 callersFunctionsnapValueToStep
( value: number, min: number | undefined, max: number | undefined, step: number )
packages/react-stately/src/utils/number.ts:43
↓ 15 callersFunctionuseDateFormatter
(options?: DateFormatterOptions)
packages/react-aria/src/i18n/useDateFormatter.ts:28
↓ 15 callersFunctionuseSlotId
(depArray: ReadonlyArray<any> = [])
packages/react-aria/src/utils/useId.ts:135
↓ 15 callersFunctionuseTableContext
()
packages/@adobe/react-spectrum/src/table/TableViewBase.tsx:167
↓ 14 callersFunctionType
({type}: {type: TType})
packages/dev/s2-docs/src/types.tsx:182
↓ 14 callersMethodaddAsset
(asset: {type: string; content: string})
packages/@react-spectrum/s2/style/spectrum-theme.ts:47
↓ 14 callersFunctioncommentOutProp
( path: NodePath<t.JSXElement>, options: { /** Prop to comment out. */ propName: string; /** I
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/transforms.ts:288
↓ 14 callersMethodgetDropOperation
Returns the drop operation for the given parameters.
packages/react-stately/src/dnd/useDroppableCollectionState.ts:60
← previousnext →101–200 of 8,660, ranked by callers