MCPcopy Create free account

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

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

↓ 27 callersFunctiongetLocalTimeZone
()
packages/@internationalized/date/src/queries.ts:140
↓ 27 callersFunctionrender
( props: Omit<SpectrumCheckboxGroupProps, 'children'> = {}, checkboxProps: any[] = [] )
packages/@adobe/react-spectrum/chromatic/checkbox/CheckboxGroup.stories.tsx:222
↓ 27 callersFunctionrepeat
( count: number | 'auto-fill' | 'auto-fit', repeat: DimensionValue | DimensionValue[] )
packages/@adobe/react-spectrum/src/layout/Grid.tsx:74
↓ 27 callersFunctionresolve
({dependency})
packages/dev/s2-docs/S2DocsResolver.js:4
↓ 26 callersMethodgetKeyAfter
(key: Key)
packages/react-aria-components/src/TreeDropTargetDelegate.ts:14
↓ 26 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
↓ 26 callersFunctionmergeRefs
( ...refs: Array<Ref<T> | MutableRefObject<T> | null | undefined> )
packages/react-aria/src/utils/mergeRefs.ts:18
↓ 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 callersMethodupdate
* Updates an item in the list. * * @param key - The key of the item to update. * @param newValue - The new value for the item, or a function
packages/react-stately/src/data/useListData.ts:140
↓ 25 callersFunctionusePress
(props: PressHookProps)
packages/react-aria/src/interactions/usePress.ts:193
↓ 24 callersFunctiongetName
(path: NodePath<t.JSXElement>, identifier: t.JSXIdentifier)
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/utils.ts:216
↓ 24 callersFunctionrender
(props = {}, disabled = true)
packages/@adobe/react-spectrum/chromatic/textfield/TextArea.stories.tsx:204
↓ 24 callersFunctionrender
(props = {})
packages/@adobe/react-spectrum/stories/datepicker/TimeField.stories.tsx:203
↓ 24 callersFunctionuseEffectEvent
(fn?: T)
packages/react-aria/src/utils/useEffectEvent.ts:20
↓ 23 callersMethodappend
* Appends items to the list. * * @param values - The values to insert.
packages/react-stately/src/data/useListData.ts:87
↓ 23 callersMethodcontinuePropagation
* By default, press events stop propagation to parent elements. * In cases where a handler decides not to handle a specific event, * it can call
packages/@react-types/shared/src/events.d.ts:61
↓ 23 callersFunctiongeneratePowerset
(states: Array<object>, exclude?: (merged) => boolean)
packages/@react-spectrum/story-utils/src/GeneratePowerset.tsx:16
↓ 23 callersFunctiongetOwnerWindow
( el: (Window & typeof globalThis) | Element | null | undefined )
packages/react-aria/src/utils/domHelpers.ts:5
↓ 23 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
↓ 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 callersFunctionspace
(px: number)
packages/@react-spectrum/s2/style/index.ts:42
↓ 23 callersFunctionuseDragAndDrop
(options: DragAndDropOptions<T>)
packages/@react-spectrum/s2/src/useDragAndDrop.ts:30
↓ 23 callersFunctionuseListState
(props: ListProps<T>)
packages/react-stately/src/list/useListState.ts:50
↓ 23 callersFunctionuseTreeData
(options: TreeOptions<T>)
packages/react-stately/src/data/useTreeData.ts:152
↓ 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 callersFunctionrender
(props = {})
packages/@adobe/react-spectrum/stories/datepicker/DateRangePicker.stories.tsx:265
↓ 22 callersFunctionsingleParagraph
()
packages/@adobe/react-spectrum/chromatic/dialog/Dialog.stories.tsx:521
↓ 22 callersMethodsubtract
Returns a new `Time` with the given duration subtracted from it.
packages/@internationalized/date/src/CalendarDate.ts:196
↓ 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
↓ 22 callersFunctionuseOverlayTriggerState
(props: OverlayTriggerProps)
packages/react-stately/src/overlays/useOverlayTriggerState.ts:42
↓ 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 callersFunctionrequire
packages/dev/parcel-packager-ssg/SSGPackager.js:116
↓ 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
↓ 21 callersFunctionuseFocusableRef
( ref: FocusableRef<T, D>, focusableRef?: RefObject<T | null> )
packages/@react-spectrum/s2/src/useDOMRef.ts:49
↓ 20 callersFunctioncontrolFont
()
packages/@react-spectrum/s2/src/style-utils.ts:206
↓ 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 callersFunctionuseFocusWithin
(props: FocusWithinProps)
packages/react-aria/src/interactions/useFocusWithin.ts:44
↓ 19 callersFunctionaddComment
(node: any, comment: string)
packages/dev/codemods/src/s1-to-s2/src/codemods/shared/utils.ts:69
↓ 19 callersFunctionclamp
(value: number, min: number = -Infinity, max: number = Infinity)
packages/react-stately/src/utils/number.ts:17
↓ 19 callersFunctiongetFocusableTreeWalker
( root: Element, opts?: FocusManagerOptions, scope?: Element[] )
packages/react-aria/src/focus/FocusScope.tsx:837
↓ 19 callersFunctionlightDark
(light: SpectrumColor, dark: SpectrumColor)
packages/@react-spectrum/s2/style/spectrum-theme.ts:294
↓ 19 callersFunctionrender
(props = {}, disabled = true)
packages/@adobe/react-spectrum/chromatic/textfield/Textfield.stories.tsx:197
↓ 19 callersMethodtraverse
(node: TreeNode = this.root)
packages/react-aria/src/focus/FocusScope.tsx:1079
↓ 19 callersFunctionuseFormProps
(props: T)
packages/@react-spectrum/s2/src/Form.tsx:43
↓ 18 callersFunctioncenterBaseline
( props: Omit<CenterBaselineProps, 'children'> = {} )
packages/@react-spectrum/s2/src/CenterBaseline.tsx:67
↓ 18 callersFunctionchildren
(node)
packages/react-aria-components/src/Collection.tsx:218
↓ 18 callersMethodcopy
()
packages/@internationalized/date/src/types.ts:31
↓ 18 callersMethodgetLastKey
Get the last key in the collection.
packages/@react-types/shared/src/collections.d.ts:186
↓ 18 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
↓ 18 callersMethodnextNode
()
packages/react-aria/src/utils/shadowdom/ShadowTreeWalker.ts:136
↓ 18 callersMethodremoveChild
(node: TreeNode)
packages/react-aria/src/focus/FocusScope.tsx:1113
↓ 18 callersFunctionrender
(props: SpectrumSliderProps = {})
packages/@adobe/react-spectrum/stories/slider/Slider.stories.tsx:189
↓ 18 callersMethodresolvedOptions
Returns the resolved formatting options based on the values passed to the constructor.
packages/@internationalized/date/src/DateFormatter.ts:81
↓ 18 callersFunctionuseLabels
( props: DOMProps & AriaLabelingProps, defaultLabel?: string )
packages/react-aria/src/utils/useLabels.ts:22
↓ 18 callersFunctionuseSlot
( initialState: boolean | (() => boolean) = true )
packages/react-aria-components/src/utils.tsx:349
↓ 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 callersMethodcommitValidation
Commits the realtime validation so it is displayed to the user.
packages/react-stately/src/form/useFormValidationState.ts:73
↓ 17 callersFunctionfield
()
packages/@react-spectrum/s2/src/style-utils.ts:42
↓ 17 callersFunctionfocusWithoutScrolling
(element: FocusableElement)
packages/react-aria/src/utils/focusWithoutScrolling.ts:31
↓ 17 callersFunctionfontRelative
(base: number, baseFontSize = 14)
packages/@react-spectrum/s2/src/style-utils.ts:38
↓ 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 callersMethodgetTrigger
* Returns the menu's trigger.
packages/@react-aria/test-utils/src/menu.ts:425
↓ 17 callersFunctioniconStyle
( this: MacroContext | void, options: IconStyle )
packages/@react-spectrum/s2/style/index.ts:170
↓ 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 callersFunctionuseFormProps
(props: T)
packages/@adobe/react-spectrum/src/form/Form.tsx:71
↓ 17 callersFunctionuseRouter
()
packages/dev/s2-docs/src/Router.tsx:127
↓ 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 callersFunctionpressElement
( user: { click: (element: Element) => Promise<void>; keyboard: (keys: string) => Promise<void>;
packages/@react-aria/test-utils/src/utils.ts:137
↓ 16 callersFunctionsingleParagraph
()
packages/@adobe/react-spectrum/stories/dialog/Dialog.stories.tsx:324
↓ 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 callersFunctionvisit
(node: GridNode<T>)
packages/react-stately/src/table/useTreeGridState.ts:174
↓ 15 callersFunctionannounce
( message: Message, assertiveness: Assertiveness = 'assertive', timeout: number = LIVEREGION_TIMEOUT_DEL
packages/react-aria/src/live-announcer/LiveAnnouncer.tsx:25
↓ 15 callersMethodclone
Returns a duplicate of the color value.
packages/react-stately/src/color/types.ts:37
↓ 15 callersFunctionfocusSafely
(element: FocusableElement)
packages/react-aria/src/interactions/focusSafely.ts:24
↓ 15 callersMethodgetListbox
* Returns the select's listbox if present.
packages/@react-aria/test-utils/src/select.ts:261
↓ 15 callersFunctionisSameDay
(a: DateValue, b: DateValue)
packages/@internationalized/date/src/queries.ts:19
↓ 15 callersFunctionrender
(props = {})
packages/@adobe/react-spectrum/stories/tabs/Tabs.stories.tsx:478
↓ 15 callersFunctionrenderAlert
({...props}: SpectrumAlertDialogProps)
packages/@adobe/react-spectrum/chromatic/dialog/AlertDialog.stories.tsx:176
↓ 15 callersFunctionuseDateFormatter
(options?: DateFormatterOptions)
packages/react-aria/src/i18n/useDateFormatter.ts:28
↓ 15 callersFunctionuseEvent
( ref: RefObject<EventTarget | null>, event: K | (string & {}), handler?: (this: Document, ev: GlobalEve
packages/react-aria/src/utils/useEvent.ts:17
↓ 15 callersFunctionuseIsSSR
()
packages/react-aria/src/ssr/SSRProvider.tsx:202
↓ 15 callersFunctionuseSlotId
(depArray: ReadonlyArray<any> = [])
packages/react-aria/src/utils/useId.ts:119
↓ 15 callersFunctionuseTableContext
()
packages/@adobe/react-spectrum/src/table/TableViewBase.tsx:167
↓ 14 callersFunctionType
({type}: {type: TType})
packages/dev/s2-docs/src/types.tsx:181
↓ 14 callersFunctionclsx
(tableStyles['spectrum-Table-cell'], styles.tableCell)
packages/dev/docs/src/types.js:635
↓ 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 callersFunctioncontrolSize
(size: 'sm' | 'md' = 'md')
packages/@react-spectrum/s2/src/style-utils.ts:217
↓ 14 callersMethodgetDropOperation
Returns the drop operation for the given parameters.
packages/react-stately/src/dnd/useDroppableCollectionState.ts:60
↓ 14 callersFunctiongetLibraryFromPage
(page: {name: string})
packages/dev/s2-docs/src/library.tsx:17
↓ 14 callersFunctionmockClickDefault
(opts: AddEventListenerOptions = {})
packages/dev/test-utils/src/events.ts:23
↓ 14 callersFunctionparseZonedDateTime
(value: string, disambiguation?: Disambiguation)
packages/@internationalized/date/src/string.ts:110
↓ 14 callersFunctionresolve
(specifier, context, next)
scripts/esm-support/loader.mjs:1
← previousnext →101–200 of 8,778, ranked by callers