MCPcopy Create free account

hub / github.com/dcastil/tailwind-merge / functions

Functions489 in github.com/dcastil/tailwind-merge

↓ 1 callersFunctioncustomUtilityGroupId
Group IDs get a `utility.` prefix so they cannot collide with the skeleton's group IDs and are recognizable in reports and the emitted config.
packages/configurator/src/custom-utilities.ts:300
↓ 1 callersFunctiondeclarationsEqual
Exact equality of two compiled declaration lists — the bar for treating two spellings as the same utility.
packages/configurator/src/augment.ts:402
↓ 1 callersFunctiondedupeValues
* Removes duplicate literals and validator references while keeping the first occurrence, since substituting a theme scale can repeat values the skele
packages/configurator/src/plan.ts:461
↓ 1 callersFunctiondescribeDivergence
Where the generated config's merge of `first second` disagrees with Tailwind's verdict — keyed by class-group pair so the snapshots list one example p
packages/configurator/tests/vanilla-coverage.test.ts:122
↓ 1 callersFunctiondescribeScale
* Explains where a scale's values come from and why they are encoded the way they are, so the generated file stays debuggable without readers having t
packages/configurator/src/plan.ts:425
↓ 1 callersFunctiondownloadAndExtract
(tarballUrl, scratchDirectory)
scripts/check-library-release.mjs:145
↓ 1 callersFunctionencodeAsFamilies
* Collapses names sharing a first segment into one nested entry per family, with the tails themselves encoded recursively through `encodeScale` — so n
packages/configurator/src/compress.ts:110
↓ 1 callersFunctionencodeThemeScale
* Encodes the scale for one theme key, applying per-key knowledge on top of the generic encoding.
packages/configurator/src/plan.ts:387
↓ 1 callersFunctionencodeWithValidators
(names: string[])
packages/configurator/src/compress.ts:88
↓ 1 callersFunctionescapeRegex
* @param {string} value * @returns {string}
scripts/update-pinned-links.mjs:200
↓ 1 callersFunctionexactFunctionalValueItems
* The exact-mode value matchers of a functional root whose compiled effects are uniform across suggestions and probes: compile-verified named values (
packages/configurator/src/custom-utilities.ts:504
↓ 1 callersFunctionexistingParentDirectory
A missing nested directory cannot be watched yet; its closest existing ancestor observes creation of the remaining path. Only failed local requests us
packages/configurator/src/resolvers.ts:207
↓ 1 callersFunctionexitWithSetupError
A missing build is a setup problem, not a failed check: print the command to run instead of a stack trace.
packages/next/scripts/test-packed-package.mjs:371
↓ 1 callersFunctionexitWithSetupError
A missing build is a setup problem, not a failed check: print the command to run instead of a stack trace.
packages/vite/scripts/test-packed-package.mjs:307
↓ 1 callersFunctionexpand
(property: string)
packages/configurator/src/property-coverage.ts:117
↓ 1 callersFunctionexpandSequence
(sequence: string)
packages/configurator/src/scan.ts:213
↓ 1 callersFunctionexpectSuccessfulBuild
({ code, output, }: { code: number | null output: string })
packages/next/tests/helpers.ts:142
↓ 1 callersFunctionexperimentalParseClassName
({ className, parseClassName })
packages/tailwind-merge/tests/experimental-parse-class-name.test.ts:7
↓ 1 callersFunctionextractAndAssertManifest
Extracts the tarball and asserts the packed manifest: the exports map is the dist mapping the workspace already uses (no publish-time swap for this pa
packages/next/scripts/test-packed-package.mjs:147
↓ 1 callersFunctionextractAndAssertManifest
Extracts the tarball and asserts the packed manifest: pnpm must have swapped the dist exports in from publishConfig (npm publish would not — the publi
packages/vite/scripts/test-packed-package.mjs:131
↓ 1 callersMethodfetchClientChunks
Fetches the browser JavaScript a page loads, concatenated, to check what the client compilation served.
packages/next/tests/helpers.ts:33
↓ 1 callersFunctionfetchReleaseManifest
(version)
scripts/check-library-release.mjs:130
↓ 1 callersFunctionfindAliasGroup
* Finds the single built-in group whose classes set exactly what the static utility sets: the signatures (context-qualified property names) must be eq
packages/configurator/src/custom-utilities.ts:589
↓ 1 callersFunctionfindClassAnchor
The class selector to anchor on: the one spelling the candidate, or the first one when the candidate is unknown or absent (a selector Tailwind built w
packages/configurator/src/declarations.ts:96
↓ 1 callersFunctionfindFilesMentioning
* Lists tracked text files mentioning the previous tag, as a cheap pre-filter for the link rewrite. git grep exits 1 when nothing matches, which is a
scripts/update-pinned-links.mjs:115
↓ 1 callersFunctionfindLongestRun
Finds the longest candidate array matching the items starting at `start`, to be emitted as a spread. Skips the candidate currently being defined and f
packages/configurator/src/emit.ts:350
↓ 1 callersFunctionfindMissingImports
* Values are checked by importing the released entry point, types by looking for their declaration in the shipped declaration file — the only check av
scripts/check-library-release.mjs:161
↓ 1 callersFunctionfindPreviousTag
* Finds the newest existing release tag of the given package by semver, including the un-prefixed legacy tags for the package that owns the pre-monore
scripts/update-pinned-links.mjs:135
↓ 1 callersFunctionflush
()
packages/vite/src/updates.ts:36
↓ 1 callersFunctionforEachFile
(patterns: string | string[], callback: (fileContent: string) => void)
packages/tailwind-merge/tests/docs-examples.test.ts:24
↓ 1 callersFunctionforceGarbageCollection
* Forces garbage collection if available (requires Node.js --expose-gc flag). * Used to establish clean memory baselines for accurate memory measurem
packages/tailwind-merge/tests/tw-merge.benchmark.ts:181
↓ 1 callersFunctionformatBytes
(bytes: number)
packages/tailwind-merge/tests/tw-merge.benchmark.ts:169
↓ 1 callersFunctionformatDivergences
(divergences: Map<string, string>)
packages/configurator/tests/vanilla-coverage.test.ts:153
↓ 1 callersFunctionframeForHeader
( header: string, parent: BlockFrame | undefined, candidate: string | undefined, )
packages/configurator/src/declarations.ts:62
↓ 1 callersFunctionfreePort
()
packages/next/tests/helpers.ts:234
↓ 1 callersFunctionfunctionalEffectSignature
Values can vary within a functional group; its affected properties, targets, guards, and importance must remain the same.
packages/configurator/src/custom-utilities.ts:443
↓ 1 callersFunctiongetClassGroupsInClassPart
(classPart: ClassPartObject)
packages/tailwind-merge/tests/class-map.test.ts:366
↓ 1 callersFunctiongetConflictingClassGroupIds
( classGroupId: AnyClassGroupIds, hasPostfixModifier: boolean, )
packages/tailwind-merge/src/lib/class-group-utils.ts:65
↓ 1 callersFunctiongetFixture
()
packages/configurator/tests/real-world.test.ts:106
↓ 1 callersFunctiongetFixtures
()
packages/configurator/tests/real-world.test.ts:146
↓ 1 callersFunctiongetGroupIdForArbitraryProperty
(className: string)
packages/tailwind-merge/src/lib/class-group-utils.ts:139
↓ 1 callersFunctiongetGroupRecursive
( classParts: string[], startIndex: number, classPartObject: ClassPartObject, )
packages/tailwind-merge/src/lib/class-group-utils.ts:94
↓ 1 callersFunctiongetMemoryUsage
()
packages/tailwind-merge/tests/tw-merge.benchmark.ts:159
↓ 1 callersMethodgetOptions
()
packages/next/src/loader.ts:19
↓ 1 callersFunctiongetOutputConfig
* Creates a shared output configuration so every public bundle receives the same Babel transforms while retaining its format-specific file path and ru
packages/tailwind-merge/scripts/rollup.config.mjs:162
↓ 1 callersMethodgetVariants
Variant suggestions and selector templates, including CSS and JavaScript registrations.
packages/configurator/src/design-system.ts:42
↓ 1 callersFunctiongetVersion
()
packages/tailwind-merge/scripts/update-readme.mjs:79
↓ 1 callersFunctiongroupFunctionalClasses
Groups named values and numeric kinds by their compiled effects, ignoring values but preserving rule scope and importance. Probe-only shapes prevent u
packages/configurator/src/custom-utilities.ts:361
↓ 1 callersFunctionhasClassClaim
Whether `className` already resolves into these items through a literal — the check that keeps a restore from appending a duplicate literal to the own
packages/configurator/src/plan.ts:312
↓ 1 callersFunctioninferOverrideConflicts
* For every custom group, finds the groups whose exemplar declarations its utility fully covers — whenever the utility comes later in a class list, th
packages/configurator/src/custom-utilities.ts:671
↓ 1 callersFunctionisAny
()
packages/tailwind-merge/src/lib/validators.ts:28
↓ 1 callersFunctionisAnyNonArbitrary
(value: string)
packages/tailwind-merge/src/lib/validators.ts:46
↓ 1 callersFunctionisArbitraryFamilyName
(value: string)
packages/tailwind-merge/src/lib/validators.ts:70
↓ 1 callersFunctionisArbitraryImage
(value: string)
packages/tailwind-merge/src/lib/validators.ts:76
↓ 1 callersFunctionisArbitraryLength
(value: string)
packages/tailwind-merge/src/lib/validators.ts:59
↓ 1 callersFunctionisArbitraryMaskPosition
(value: string)
packages/tailwind-merge/src/lib/validators.ts:62
↓ 1 callersFunctionisArbitraryNumber
(value: string)
packages/tailwind-merge/src/lib/validators.ts:65
↓ 1 callersFunctionisArbitraryPosition
(value: string)
packages/tailwind-merge/src/lib/validators.ts:73
↓ 1 callersFunctionisArbitraryShadow
(value: string)
packages/tailwind-merge/src/lib/validators.ts:78
↓ 1 callersFunctionisArbitrarySize
(value: string)
packages/tailwind-merge/src/lib/validators.ts:55
↓ 1 callersFunctionisArbitraryVariableFamilyName
(value: string)
packages/tailwind-merge/src/lib/validators.ts:89
↓ 1 callersFunctionisArbitraryVariableImage
(value: string)
packages/tailwind-merge/src/lib/validators.ts:97
↓ 1 callersFunctionisArbitraryVariableLength
(value: string)
packages/tailwind-merge/src/lib/validators.ts:83
↓ 1 callersFunctionisArbitraryVariableMaskPosition
(value: string)
packages/tailwind-merge/src/lib/validators.ts:86
↓ 1 callersFunctionisArbitraryVariablePosition
(value: string)
packages/tailwind-merge/src/lib/validators.ts:92
↓ 1 callersFunctionisArbitraryVariableShadow
(value: string)
packages/tailwind-merge/src/lib/validators.ts:100
↓ 1 callersFunctionisArbitraryVariableSize
(value: string)
packages/tailwind-merge/src/lib/validators.ts:95
↓ 1 callersFunctionisArbitraryVariableWeight
(value: string)
packages/tailwind-merge/src/lib/validators.ts:103
↓ 1 callersFunctionisArbitraryWeight
(value: string)
packages/tailwind-merge/src/lib/validators.ts:68
↓ 1 callersFunctionisCommonJsModule
* Whether Node evaluates the file as CommonJS, as far as that can be told without loading it: by extension, or for the ambiguous extensions by the clo
packages/configurator/src/resolvers.ts:119
↓ 1 callersFunctionisFraction
(value: string)
packages/tailwind-merge/src/lib/validators.ts:18
↓ 1 callersFunctionisInside
(directory: string, ancestor: string)
packages/vite/src/prune-options.ts:44
↓ 1 callersFunctionisInteger
(value: string)
packages/tailwind-merge/src/lib/validators.ts:22
↓ 1 callersFunctionisIntentional
(key: string)
packages/configurator/tests/vanilla-coverage.test.ts:146
↓ 1 callersFunctionisNamedContainerQuery
(value: string)
packages/tailwind-merge/src/lib/validators.ts:49
↓ 1 callersFunctionisPercent
(value: string)
packages/tailwind-merge/src/lib/validators.ts:24
↓ 1 callersFunctionisThemeGetter
(func: Function)
packages/tailwind-merge/src/lib/class-group-utils.ts:273
↓ 1 callersFunctionisThemeGetter
(value: Function)
packages/configurator/src/plan.ts:454
↓ 1 callersFunctionisTshirtSize
(value: string)
packages/tailwind-merge/src/lib/validators.ts:26
↓ 1 callersFunctionliteral
(value: string)
packages/configurator/src/compress.ts:169
↓ 1 callersFunctionload
()
packages/configurator/tests/resolvers.test.ts:123
↓ 1 callersFunctionloadDesignSystem
The node wrapper currently drops resolver hooks when loading a design system. Use its own Tailwind engine with explicit loaders for bundler integratio
packages/configurator/src/design-system.ts:83
↓ 1 callersFunctionloadScanner
()
packages/configurator/src/scan.ts:113
↓ 1 callersFunctionloadTailwindEngine
Resolves and imports the compiler once per process. A failed load is not kept: the next generation retries, e.g. once an install has finished relinkin
packages/configurator/src/design-system.ts:119
↓ 1 callersFunctionlocateCssRoot
()
packages/vite/src/index.ts:83
↓ 1 callersFunctionlog
(message)
scripts/check-library-release.mjs:190
↓ 1 callersFunctionlookupName
The string the class map walks for a matched class: negative classes like `-mt-2` start their lookup after the empty first part, exactly as `getClassG
packages/configurator/src/prune.ts:141
↓ 1 callersFunctionmapCase
Decorate both sides of an independently specified case without deriving its expected merge result from runtime behavior.
packages/configurator/tests/effect-combinations.test.ts:72
↓ 1 callersFunctionmemoizeClassList
* Caches `getClassList()` on a loaded design system. Tailwind rebuilds the list on every call, and the custom-utility, augmentation, and collision pas
packages/configurator/src/design-system.ts:134
↓ 1 callersFunctionmergeConfigProperties
( baseObject: Partial<Record<string, readonly unknown[]>>, mergeObject: Partial<Record<string, readonl
packages/tailwind-merge/src/lib/merge-configs.ts:65
↓ 1 callersFunctionmergeTable
(twMerge: (classList: string) => string, classLists: string[])
packages/configurator/tests/fixture-utils.ts:257
↓ 1 callersFunctionnearestExistingDirectory
(file: string)
packages/next/src/loader.ts:153
↓ 1 callersFunctionneutralizedGroupId
Group ID for a neutralized class that keeps a validator-based claim somewhere: a group of its own, referenced by no conflict map, so the class behaves
packages/configurator/src/plan.ts:307
↓ 1 callersMethodnext
()
packages/next/src/loader.ts:49
↓ 1 callersFunctionnotifyUpdate
(update: PluginUpdate)
packages/vite/src/index.ts:177
↓ 1 callersFunctiononDependency
()
packages/configurator/tests/scan.test.ts:92
↓ 1 callersFunctiononError
(error)
packages/plugin-core/tests/generation-session.test.ts:37
↓ 1 callersMethodonUpdate
Subscribes to the dev server's reactions to file changes. Returns the unsubscribe function.
packages/vite/src/index.ts:59
↓ 1 callersFunctionoutOfRoot
(filePath: string)
packages/vite/src/index.ts:138
↓ 1 callersFunctionoverrideConfigProperties
( baseObject: Partial<Record<string, readonly unknown[]>>, overrideObject: Partial<Record<string, read
packages/tailwind-merge/src/lib/merge-configs.ts:54
← previousnext →201–300 of 489, ranked by callers