import type { Config } from '../../../../tailwindcss/src/compat/plugin-api'
import type { DesignSystem } from '../../../../tailwindcss/src/design-system'
export function migrateEmptyArbitraryValues(
designSystem: DesignSystem,
_userConfig: Config | null,
rawCandidate: string,
): string {
if (designSystem.parseCandidate(rawCandidate).length > 0) {
return rawCandidate
}
if (!rawCandidate.includes('[]')) {
return rawCandidate
}
return rawCandidate
.replaceAll('-[]:', '-[&]:')
.replaceAll('-[]/', '-[&]/')
}