MCPcopy Create free account

hub / github.com/styled-components/styled-components / functions

Functions472 in github.com/styled-components/styled-components

↓ 3 callersMethodstart
()
packages/benchmarks/src/app/Benchmark/index.js:150
↓ 3 callersFunctionstatusColor
(status: CellStatus, theme: any)
packages/sandbox/app/perf/data-grid/page.tsx:14
↓ 3 callersFunctionwalkTheme
Shared recursive traversal - calls `leafFn` for each leaf, recurses for objects.
packages/styled-components/src/constructors/createTheme.ts:61
↓ 2 callersFunctionCompWithoutName
()
packages/styled-components/src/test/basic.test.tsx:82
↓ 2 callersFunctionaddTag
(arg: T)
packages/styled-components/src/constructors/css.ts:10
↓ 2 callersMethodallocateGSInstance
(id: string)
packages/styled-components/src/sheet/types.ts:29
↓ 2 callersFunctionassertElement
(element: any)
packages/styled-components/test-utils/index.ts:4
↓ 2 callersFunctionbuildInitialState
(fields: FormFieldData[])
packages/sandbox/app/perf/form/page.tsx:21
↓ 2 callersFunctionbuildVarOverrides
(preset: 'light' | 'dark')
packages/sandbox/app/lib/dark-theme-script.ts:3
↓ 2 callersFunctioncleanupMeta
()
packages/styled-components/src/utils/test/nonce.test.ts:5
↓ 2 callersFunctionconstructWithOptions
( componentConstructor: IStyledComponentFactory<R, StyledTarget<R>, object, any>, tag: StyledTarget<R>,
packages/styled-components/src/constructors/constructWithOptions.ts:94
↓ 2 callersFunctioncreateModuleLevelProxy
Simulate a module-level client reference (typeof 'object', no $$id export suffix)
packages/styled-components/src/constructors/test/styled.rsc.test.tsx:1441
↓ 2 callersFunctioncreateRSCCache
(factory: () => T)
packages/styled-components/src/utils/rscCache.ts:5
↓ 2 callersFunctionexpectCSSMatches
( _expectation: string, opts: { ignoreWhitespace: boolean } = { ignoreWhitespace: true } )
packages/styled-components/src/test/utils.ts:80
↓ 2 callersFunctionfreshData
(seed?: number)
packages/sandbox/app/perf/dashboard/page.tsx:74
↓ 2 callersFunctiongenerateCells
(count: number, seed?: number)
packages/sandbox/app/perf/lib/data-generators.ts:54
↓ 2 callersFunctiongenerateListItems
(count: number, seed?: number)
packages/sandbox/app/perf/lib/data-generators.ts:230
↓ 2 callersFunctiongetAlphabeticChar
(code: number)
packages/styled-components/src/utils/generateAlphabeticName.ts:8
↓ 2 callersFunctiongetJSX
(givenTheme = theme)
packages/styled-components/src/models/test/ThemeProvider.test.tsx:141
↓ 2 callersFunctiongetSheet
(tag: HTMLStyleElement)
packages/styled-components/src/sheet/dom.ts:37
↓ 2 callersFunctiongetStatics
(component: OmniComponent)
packages/styled-components/src/utils/hoist.ts:64
↓ 2 callersMethodgetTag
Lazily initialises a GroupedTag for when it's actually needed
packages/styled-components/src/sheet/Sheet.ts:104
↓ 2 callersFunctiongetWhereRegExp
(name: string)
packages/styled-components/src/models/StyledComponent.ts:166
↓ 2 callersFunctionhash
(x: string)
packages/styled-components/src/utils/hash.ts:24
↓ 2 callersFunctionisClientReference
(chunk: unknown)
packages/styled-components/src/utils/flatten.ts:36
↓ 2 callersFunctionisFalsish
(chunk: any)
packages/styled-components/src/utils/flatten.ts:24
↓ 2 callersFunctionisShadowRoot
(node: InsertionTarget | Node)
packages/styled-components/src/sheet/Rehydration.ts:13
↓ 2 callersFunctionjoinRules
(rules: string[])
packages/styled-components/src/utils/joinStrings.ts:15
↓ 2 callersFunctionobjToCssArrayInto
Internal accumulator form - avoids allocating a temp array per nesting level.
packages/styled-components/src/utils/flatten.ts:50
↓ 2 callersFunctionoutputSheet
(sheet: Sheet)
packages/styled-components/src/sheet/Rehydration.ts:50
↓ 2 callersFunctionpriorityBorder
(priority: Priority, theme: any)
packages/sandbox/app/perf/data-grid/page.tsx:27
↓ 2 callersFunctionrandomCell
(id: string, rand = Math.random)
packages/sandbox/app/perf/lib/data-generators.ts:31
↓ 2 callersFunctionreadNative
(file: string)
packages/styled-components/src/test/treeshake.test.ts:15
↓ 2 callersFunctionreadSpeedyFlag
(name: string)
packages/styled-components/src/constants.ts:28
↓ 2 callersMethodrebuildGroup
* Clear all CSS rules in the shared group and re-insert from surviving instances. * Must run synchronously - no yielding between clear and re-inser
packages/styled-components/src/models/GlobalStyle.ts:95
↓ 2 callersMethodregisterId
Register a group ID to give it an index
packages/styled-components/src/sheet/Sheet.ts:41
↓ 2 callersMethodrehydrate
()
packages/styled-components/src/sheet/types.ts:39
↓ 2 callersFunctionremoveGlobalStyleTag
(componentId: string, target?: InsertionTarget)
packages/styled-components/src/sheet/dom.ts:58
↓ 2 callersMethodrender
()
packages/styled-components/src/test/attrs.test.tsx:435
↓ 2 callersFunctionrenderComp
()
packages/styled-components/src/test/theme.test.tsx:219
↓ 2 callersFunctionrenderStyles
( instance: number, props: ExecutionProps, styleSheet: StyleSheet, theme: DefaultTheme | undef
packages/styled-components/src/constructors/createGlobalStyle.ts:181
↓ 2 callersFunctionresolveContext
( attrs: Attrs<React.HTMLAttributes<Element> & Props>[], props: ExecutionProps & Props, theme: DefaultTh
packages/styled-components/src/models/StyledComponent.ts:119
↓ 2 callersFunctionrevParse
(ref, cwd)
scripts/prerelease-release-notes.cjs:44
↓ 2 callersFunctionrunCheck
(check: TestCheck)
packages/sandbox/app/components/auto-test.tsx:34
↓ 2 callersFunctionsetup
()
packages/styled-components/src/constructors/test/createGlobalStyle.ssr.test.tsx:18
↓ 2 callersFunctionshouldRecord
(cycle, type)
packages/benchmarks/src/app/Benchmark/index.js:36
↓ 2 callersFunctionstripSplitter
(css: string)
packages/styled-components/src/utils/joinStrings.ts:23
↓ 2 callersFunctionuseCycle
Cycles through an array on an interval
packages/sandbox/app/client-example/testing-harness.tsx:79
↓ 2 callersFunctionuseInjectedStyle
( componentStyle: ComponentStyle, resolvedAttrs: T, styleSheet: StyleSheet, stylis: Stringifier )
packages/styled-components/src/models/StyledComponent.ts:91
↓ 2 callersFunctionuseTheme
()
packages/styled-components/src/models/ThemeProvider.tsx:86
↓ 2 callersFunctionwarnClientReference
(ref: ClientReference)
packages/styled-components/src/utils/flatten.ts:41
↓ 2 callersFunctionwrapBaseInWhere
Wrap base-level CSS class selectors in :where() for zero specificity (RSC inheritance).
packages/styled-components/src/models/StyledComponent.ts:176
↓ 1 callersFunctionTheme
({ theme }: any)
packages/styled-components/src/test/theme.test.tsx:394
↓ 1 callersMethod_handleComplete
(endTime)
packages/benchmarks/src/app/Benchmark/index.js:195
↓ 1 callersMethod_handleCycleComplete
()
packages/benchmarks/src/app/Benchmark/index.js:155
↓ 1 callersFunctionbaseStyled
( tag: Target )
packages/styled-components/src/constructors/styled.tsx:15
↓ 1 callersFunctionbuildPropsForElement
( context: Record<string, any>, elementToBeCreated: NativeTarget, shouldForwardProp: ((prop: string, el:
packages/styled-components/src/models/StyledNativeComponent.ts:66
↓ 1 callersFunctionbuildPropsForElement
( context: Record<string, any>, elementToBeCreated: WebTarget, theme: DefaultTheme | undefined, should
packages/styled-components/src/models/StyledComponent.ts:188
↓ 1 callersFunctionbuildVarNames
Build bare CSS custom property names: `--prefix-a-b`
packages/styled-components/src/constructors/createTheme.ts:82
↓ 1 callersFunctionbuildVarRefs
Build `var(--prefix-a-b, fallback)` references with dev-mode parenthesis validation
packages/styled-components/src/constructors/createTheme.ts:89
↓ 1 callersFunctioncacheCompiledCSS
Store compiled CSS for a ComponentStyle's class name (RSC only).
packages/styled-components/src/models/ComponentStyle.ts:39
↓ 1 callersMethodclearNames
Clears all cached names for a given group ID
packages/styled-components/src/sheet/Sheet.ts:136
↓ 1 callersMethodclearNames
(id: string)
packages/styled-components/src/sheet/types.ts:30
↓ 1 callersFunctioncolName
(n: number)
packages/styled-components/src/test/utils.ts:22
↓ 1 callersFunctionemitVarDeclarations
* Emit CSS var declarations by walking `shape` for structure and reading * values from `theme`. This avoids hardcoded skip lists - only keys * prese
packages/styled-components/src/constructors/createTheme.ts:130
↓ 1 callersFunctionexpandAdjacentSibling
* Expand each `+` combinator to also match when 1 or 2 `<style data-styled>` * tags are interleaved. Skips `+` inside parentheses, brackets, and afte
packages/styled-components/src/utils/stylisPluginRSC.ts:67
↓ 1 callersFunctionfindLastStyleTag
(target: InsertionTarget)
packages/styled-components/src/sheet/dom.ts:7
↓ 1 callersFunctionformat
* super basic version of sprintf
packages/styled-components/src/utils/error.ts:9
↓ 1 callersFunctionformatTimestamp
(iso: string)
packages/sandbox/app/perf/list/page.tsx:11
↓ 1 callersFunctiongenerateActivity
(count: number, seed?: number)
packages/sandbox/app/perf/lib/data-generators.ts:116
↓ 1 callersMethodgenerateAndInjectStyles
( executionContext: ExecutionContext, styleSheet: StyleSheet, stylis: Stringifier )
packages/styled-components/src/models/ComponentStyle.ts:94
↓ 1 callersFunctiongenerateFormFields
(count: number)
packages/sandbox/app/perf/lib/data-generators.ts:172
↓ 1 callersFunctiongenerateId
( displayName?: string | undefined, parentComponentId?: string | undefined )
packages/styled-components/src/models/StyledComponent.ts:54
↓ 1 callersFunctiongenerateStats
(count: number, seed?: number)
packages/sandbox/app/perf/lib/data-generators.ts:101
↓ 1 callersMethodgenerateStyleObject
(executionContext: ExecutionContext & Props)
packages/styled-components/src/types.ts:360
↓ 1 callersFunctiongetAnimation
(animation: any)
packages/styled-components/src/constructors/test/keyframes.test.tsx:220
↓ 1 callersFunctiongetColor
(color: string)
packages/styled-components/src/test/ssr.test.tsx:847
↓ 1 callersFunctiongetColor
packages/benchmarks/src/implementations/goober/Box.js:3
↓ 1 callersFunctiongetColor
packages/benchmarks/src/implementations/styled-components/Box.js:4
↓ 1 callersFunctiongetColor
packages/benchmarks/src/implementations/styled-jsx/Box.js:5
↓ 1 callersFunctiongetColor
packages/benchmarks/src/implementations/styled-components-v6/Box.js:4
↓ 1 callersFunctiongetColor
packages/benchmarks/src/implementations/styled-components-native/Box.js:3
↓ 1 callersFunctiongetColor
packages/benchmarks/src/implementations/styled-components-object/Box.js:4
↓ 1 callersFunctiongetCompiledCSS
(cs: ComponentStyle, styleSheet: StyleSheet)
packages/styled-components/src/models/ComponentStyle.ts:58
↓ 1 callersFunctiongetIdForGroup
(group: number)
packages/styled-components/src/sheet/GroupIDAllocator.ts:35
↓ 1 callersFunctiongetInitials
(name: string)
packages/sandbox/app/perf/list/page.tsx:25
↓ 1 callersFunctiongetLastCommitTouchingFile
(filePath, cwd)
scripts/prerelease-release-notes.cjs:65
↓ 1 callersFunctiongetMedian
packages/benchmarks/src/app/Benchmark/math.js:17
↓ 1 callersFunctiongetPrevTagForPackage
(pkgName, pkgVersion, cwd)
scripts/prerelease-release-notes.cjs:30
↓ 1 callersMethodgetSamples
()
packages/benchmarks/src/app/Benchmark/index.js:178
↓ 1 callersFunctiongetStdDev
packages/benchmarks/src/app/Benchmark/math.js:1
↓ 1 callersFunctiongetStoredTheme
()
packages/sandbox/app/components/theme-provider.tsx:70
↓ 1 callersFunctiongetStyle
(p: PropsWithVariant)
packages/styled-components/src/test/types.tsx:460
↓ 1 callersFunctiongetSystemTheme
()
packages/sandbox/app/components/theme-provider.tsx:65
↓ 1 callersFunctionhasCompiledCSS
Check if compiled CSS is cached for a name (RSC only).
packages/styled-components/src/models/ComponentStyle.ts:50
↓ 1 callersFunctionhexToRgb
(hex: string)
packages/sandbox/app/components/auto-test.tsx:27
↓ 1 callersFunctioninterpolationFn
packages/styled-components/src/bench/web.test.js:421
↓ 1 callersFunctionisAncestor
* True iff baselineSha is a strict ancestor of otherSha (other landed after baseline on this branch).
scripts/prerelease-release-notes.cjs:55
↓ 1 callersFunctionisDone
(cycle, sampleCount, type)
packages/benchmarks/src/app/Benchmark/index.js:52
↓ 1 callersFunctionisMemo
( object: OmniComponent | React.MemoExoticComponent<any> )
packages/styled-components/src/utils/hoist.ts:56
← previousnext →101–200 of 472, ranked by callers