MCPcopy Create free account
hub / github.com/adobe/react-spectrum / condition

Function condition

perf/drivers.mjs:23–23  ·  view source on GitHub ↗
(selector, rest = {})

Source from the content-addressed store, hash-verified

21export const pause = ms => new Promise(resolve => setTimeout(resolve, ms));
22
23const condition = (selector, rest = {}) => ({selector, ...rest});
24const click = (target, conditions) => ({event: 'pointerdown', target, conditions});
25const press = (key, target, conditions) => ({event: 'keydown', key, target, conditions});
26// A browser-generated wheel scroll of fixed distance and speed. The long, steady scroll

Callers 15

scrollFunction · 0.85
orderedFunction · 0.85
conditionsFunction · 0.85
comboMatchesFunction · 0.85
virtualMatchesFunction · 0.85
chooseOptionFunction · 0.85
dndInputFunction · 0.85
dataRowsFunction · 0.85
resizedRowsFunction · 0.85
variableWidthFunction · 0.85
labelsWidthFunction · 0.85
containerResizedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected