MCPcopy Create free account

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

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

↓ 238 callersFunctiongetRenderedCSS
()
packages/styled-components/src/test/utils.ts:102
↓ 188 callersFunctionparseCSSDeclarations
(rawCss: string)
packages/styled-components/src/models/InlineStyle.ts:57
↓ 101 callersFunctionstylisTest
(css: string, options: ICreateStylisInstance = {})
packages/styled-components/src/utils/test/stylis.test.ts:3
↓ 89 callersFunctioncreateGlobalStyle
( strings: Styles<Props>, ...interpolations: Array<Interpolation<Props>> )
packages/styled-components/src/constructors/createGlobalStyle.ts:30
↓ 86 callersFunctionposIn
(css: string, needle: string)
packages/styled-components/src/test/ordering.test.tsx:15
↓ 54 callersFunctionbench
( name: string, iterations: number, fn: (i: number) => void, options: BenchOptions = {} )
packages/styled-components/src/bench/bench-utils.ts:13
↓ 53 callersFunctionextractStyleContents
(html: string)
packages/styled-components/src/constructors/test/styled.rsc.test.tsx:35
↓ 45 callersFunctioncreateTheme
( defaultTheme: T, options?: CreateThemeOptions )
packages/styled-components/src/constructors/createTheme.ts:206
↓ 43 callersFunctioncss
( styles: Styles<NoInfer<Props>>, ...interpolations: Interpolation<NoInfer<Props>>[] )
packages/styled-components/src/constructors/css.ts:32
↓ 41 callersFunctionkeyframes
( strings: Styles<Props>, ...interpolations: Array<Interpolation<Props>> )
packages/styled-components/src/constructors/keyframes.ts:18
↓ 38 callersFunctiongetInjectedCSS
()
packages/styled-components/src/utils/test/stylisPluginRSC.test.tsx:18
↓ 37 callersMethodhasNameForId
(id: string, name: string)
packages/styled-components/src/sheet/types.ts:34
↓ 33 callersMethodcollectStyles
(children: any)
packages/styled-components/src/models/ServerStyleSheet.tsx:37
↓ 32 callersFunctionbench
(name, iterations, fn)
packages/styled-components/src/bench/web.test.js:17
↓ 27 callersFunctionresetStyled
(isServer = false)
packages/styled-components/src/test/utils.ts:40
↓ 26 callersFunctionflatten
( chunk: Interpolation<object>, executionContext?: (ExecutionContext & Props) | undefined, styleSheet?:
packages/styled-components/src/utils/flatten.ts:73
↓ 24 callersFunctionmixinDeep
(target: any, ...sources: any[])
packages/styled-components/src/utils/mixinDeep.ts:28
↓ 23 callersFunctionrenderToString
(comp: React.JSX.Element)
packages/styled-components/src/constructors/test/createGlobalStyle.ssr.test.tsx:20
↓ 21 callersMethodinsertRules
(id: string, name: string, rules: string[])
packages/styled-components/src/sheet/types.ts:35
↓ 21 callersFunctionwithTheme
( Component: T )
packages/styled-components/src/hoc/withTheme.tsx:16
↓ 19 callersMethodrenderStyles
( instance: number, executionContext: ExecutionContext & Props, styleSheet: StyleSheet, stylis
packages/styled-components/src/models/GlobalStyle.ts:32
↓ 17 callersMethodtoString
()
packages/styled-components/src/sheet/types.ts:40
↓ 16 callersFunctionjoinStringArray
(arr: string[], sep?: string | undefined)
packages/styled-components/src/utils/joinStrings.ts:10
↓ 16 callersFunctionrehydrateSheet
(sheet: Sheet)
packages/styled-components/src/sheet/Rehydration.ts:123
↓ 15 callersFunctiongetCSS
(scope: Document | HTMLElement)
packages/styled-components/src/test/utils.ts:71
↓ 15 callersMethodgetTag
()
packages/styled-components/src/sheet/types.ts:33
↓ 15 callersFunctionisPlainObject
(x: any)
packages/styled-components/src/utils/isPlainObject.ts:1
↓ 15 callersFunctionrenderAndExpect
(expectedAttr: string)
packages/styled-components/src/test/constants.test.tsx:24
↓ 14 callersMethodgetGroup
(group: number)
packages/styled-components/src/sheet/types.ts:14
↓ 13 callersFunctionjoinStrings
(a?: string | undefined, b?: string | undefined)
packages/styled-components/src/utils/joinStrings.ts:6
↓ 12 callersFunctionassertValidWhereSelectors
Assert every :where() in the CSS contains a valid, complete class selector
packages/styled-components/src/constructors/test/styled.rsc.test.tsx:305
↓ 11 callersMethodreconstructWithOptions
(options: SheetConstructorArgs, withNames = true)
packages/styled-components/src/sheet/Sheet.ts:75
↓ 10 callersMethodclearTag
()
packages/styled-components/src/sheet/types.ts:32
↓ 10 callersFunctionextractStyleContents
(html: string)
packages/styled-components/src/constructors/test/createTheme.rsc.test.tsx:34
↓ 10 callersFunctiongenerateAlphabeticName
(code: number)
packages/styled-components/src/utils/generateAlphabeticName.ts:11
↓ 10 callersFunctioninterleave
( strings: readonly string[], interpolations: Interpolation<Props>[] )
packages/styled-components/src/utils/interleave.ts:3
↓ 10 callersMethodinterleaveWithNodeStream
(input: NodeJS.ReadableStream | PipeableStream)
packages/styled-components/src/models/ServerStyleSheet.tsx:78
↓ 10 callersFunctionread
(file: string)
packages/styled-components/src/test/treeshake.test.ts:14
↓ 10 callersFunctionsimulateSSRRequest
(tree: React.JSX.Element)
packages/styled-components/src/test/ssr-memory.test.tsx:23
↓ 9 callersFunctioncountStyleTags
(html: string)
packages/styled-components/src/constructors/test/styled.rsc.test.tsx:39
↓ 9 callersFunctioncssToStyleObject
(flatCSS: string, styleSheet: StyleSheet)
packages/styled-components/src/models/InlineStyle.ts:174
↓ 9 callersFunctiondescribeStreamingTests
* Helper function to create parameterized streaming tests
packages/styled-components/src/test/ssr.test.tsx:36
↓ 9 callersFunctiongetNonce
()
packages/styled-components/src/utils/nonce.ts:19
↓ 9 callersMethodgetRule
(index: number)
packages/styled-components/src/sheet/types.ts:7
↓ 9 callersMethodindexOfGroup
(group: number)
packages/styled-components/src/sheet/GroupedTag.ts:31
↓ 9 callersFunctionisFunction
(test: any)
packages/styled-components/src/utils/isFunction.ts:1
↓ 9 callersFunctionisStyledComponent
(target: any)
packages/styled-components/src/utils/isStyledComponent.ts:15
↓ 8 callersFunctionfn
(props: any)
packages/styled-components/src/test/basic.test.tsx:396
↓ 8 callersFunctiongetComponentName
(target: StyledTarget<any>)
packages/styled-components/src/utils/getComponentName.ts:3
↓ 8 callersFunctionphash
(h: number, x: string)
packages/styled-components/src/utils/hash.ts:6
↓ 8 callersFunctionpickFrom
(arr: readonly T[], rand: () => number)
packages/sandbox/app/perf/lib/data-generators.ts:27
↓ 8 callersFunctionresolve
(el?: Element)
packages/styled-components/src/constructors/createTheme.ts:225
↓ 7 callersFunctiondetermineTheme
( props: ExecutionProps, providedTheme?: DefaultTheme | undefined, defaultProps: { theme?: DefaultTheme
packages/styled-components/src/utils/determineTheme.ts:4
↓ 7 callersFunctiongetGroupForId
(id: string)
packages/styled-components/src/sheet/GroupIDAllocator.ts:15
↓ 7 callersMethodinsertRule
(index: number, rule: string)
packages/styled-components/src/sheet/types.ts:5
↓ 7 callersFunctionisStatelessFunction
(test: any)
packages/styled-components/src/utils/isStatelessFunction.ts:3
↓ 6 callersFunctioncreateStylisInstance
( { options = EMPTY_OBJECT as object, plugins = EMPTY_ARRAY as unknown as stylis.Middleware[], }:
packages/styled-components/src/utils/stylis.ts:258
↓ 6 callersFunctionmakeStyleTag
( target?: InsertionTarget | undefined, nonce?: string | undefined )
packages/styled-components/src/sheet/dom.ts:14
↓ 6 callersFunctionmulberry32
(seed: number)
packages/sandbox/app/perf/lib/data-generators.ts:17
↓ 6 callersFunctionpreprocessCSS
(css: string)
packages/styled-components/src/utils/stylis.ts:43
↓ 6 callersMethodregisterName
(id: string, name: string)
packages/styled-components/src/sheet/types.ts:38
↓ 6 callersFunctionrehydrateTestStyles
()
packages/styled-components/src/test/utils.ts:59
↓ 6 callersFunctionresetGroupIds
()
packages/styled-components/src/sheet/GroupIDAllocator.ts:9
↓ 6 callersFunctionseedNextClassnames
(names: string[])
packages/styled-components/src/test/utils.ts:38
↓ 5 callersFunctioncreateTestBlock
packages/benchmarks/src/index.js:14
↓ 5 callersFunctionescape
(str: string)
packages/styled-components/src/utils/escape.ts:7
↓ 5 callersFunctiongenerateDisplayName
(target: StyledTarget<any>)
packages/styled-components/src/utils/generateDisplayName.ts:5
↓ 5 callersFunctiongetMean
packages/benchmarks/src/app/Benchmark/math.js:12
↓ 4 callersMethodclearRules
(id: string)
packages/styled-components/src/sheet/types.ts:31
↓ 4 callersFunctiongenerateComponentId
(str: string)
packages/styled-components/src/utils/generateComponentId.ts:4
↓ 4 callersFunctionhyphenateStyleName
(string: string)
packages/styled-components/src/utils/hyphenateStyleName.ts:16
↓ 4 callersFunctionisTag
(target: StyledTarget<'web'>)
packages/styled-components/src/utils/isTag.ts:3
↓ 4 callersMethodonClick
()
packages/styled-components/src/constructors/test/createGlobalStyle.test.tsx:355
↓ 4 callersMethodremoveStyles
(instance: number, styleSheet: StyleSheet)
packages/styled-components/src/models/GlobalStyle.ts:27
↓ 4 callersFunctionresetStyleCache
()
packages/styled-components/src/models/InlineStyle.ts:167
↓ 4 callersFunctionstripComments
(str: string)
packages/styled-components/src/test/utils.ts:63
↓ 4 callersFunctionstripWhitespace
(str: string)
packages/styled-components/src/test/utils.ts:65
↓ 4 callersFunctionuseAutoRun
(action: () => void, autoStart?: number)
packages/sandbox/app/perf/lib/use-render-timer.ts:44
↓ 4 callersFunctionuseRenderTimer
(historySize = 50)
packages/sandbox/app/perf/lib/use-render-timer.ts:10
↓ 4 callersFunctionuseStyleSheetContext
()
packages/styled-components/src/models/StyleSheetManager.tsx:63
↓ 3 callersFunctionaddDefaultProps
(Parent: AnyComponent, Child: AnyComponent, Grandson: AnyComponent)
packages/styled-components/src/test/overriding.test.tsx:103
↓ 3 callersFunctionaddUnitIfNeeded
(name: string, value: any)
packages/styled-components/src/utils/addUnitIfNeeded.ts:48
↓ 3 callersFunctionassertStyledComponent
(styledComponent: any)
packages/styled-components/test-utils/index.ts:10
↓ 3 callersFunctioncheckDynamicCreation
(displayName: string, componentId?: string | undefined)
packages/styled-components/src/utils/checkDynamicCreation.ts:7
↓ 3 callersMethodclearGroup
(group: number)
packages/styled-components/src/sheet/types.ts:13
↓ 3 callersMethodcomputeRules
( instance: number, executionContext: ExecutionContext & Props, styleSheet: StyleSheet, stylis
packages/styled-components/src/models/GlobalStyle.ts:74
↓ 3 callersFunctioncreateIcon
packages/benchmarks/src/app/Icons.js:16
↓ 3 callersFunctioncreateNamedExportProxy
Simulate a named-export client reference (typeof 'function', throws on call)
packages/styled-components/src/constructors/test/styled.rsc.test.tsx:1426
↓ 3 callersMethoddeleteRule
(index: number)
packages/styled-components/src/sheet/types.ts:6
↓ 3 callersFunctiondescribeTag
(TagClass: C.Class<[], Tag>)
packages/styled-components/src/sheet/test/Tag.test.ts:5
↓ 3 callersFunctiongetCJS
packages/styled-components/rollup.config.mjs:31
↓ 3 callersFunctiongetESM
packages/styled-components/rollup.config.mjs:32
↓ 3 callersMethodgetName
(stylisInstance: Stringifier = mainStylis)
packages/styled-components/src/models/Keyframes.ts:64
↓ 3 callersFunctiongetRehydrationContainer
( target?: InsertionTarget | undefined )
packages/styled-components/src/sheet/Rehydration.ts:27
↓ 3 callersFunctionisEscaped
(css: string, i: number)
packages/styled-components/src/utils/stylis.ts:27
↓ 3 callersFunctionisKeyframes
(value: unknown)
packages/styled-components/src/utils/isKeyframes.ts:5
↓ 3 callersFunctionmakeGroupedTag
(tag: Tag)
packages/styled-components/src/sheet/GroupedTag.ts:6
↓ 3 callersFunctionsanitizeBraces
* Removes declarations with unbalanced braces from CSS. * Only called when preprocessCSS detects brace imbalance.
packages/styled-components/src/utils/stylis.ts:148
↓ 3 callersFunctionsetToString
(object: object, toStringFn: () => string)
packages/styled-components/src/utils/setToString.ts:17
↓ 3 callersFunctionsetupParent
()
packages/styled-components/src/test/overriding.test.tsx:88
next →1–100 of 472, ranked by callers