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

Function setRules

packages/@react-spectrum/s2/style/style-macro.ts:316–319  ·  view source on GitHub ↗
(key: string, value: [number, Rule[]])

Source from the content-addressed store, hash-verified

314 dependencies.clear();
315 let usedPriorities = 0;
316 let setRules = (key: string, value: [number, Rule[]]) => {
317 usedPriorities = Math.max(usedPriorities, value[0]);
318 rules.set(key, new GroupRule(value[1]));
319 };
320
321 hasConditions = false;
322 for (let key in style) {

Callers 1

createThemeFunction · 0.70

Calls 1

setMethod · 0.45

Tested by

no test coverage detected