Remove deprecated gap utilities

This commit is contained in:
Adam Wathan 2020-10-17 20:37:33 -04:00
parent 31814d6edf
commit 4959a99f77
5 changed files with 5 additions and 2869 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,6 @@ import log from './util/log'
const featureFlags = {
future: [
'removeDeprecatedGapUtilities',
'purgeLayersByDefault',
'defaultLineHeights',
'standardFontWeights',

View File

@ -1,22 +1,9 @@
import createUtilityPlugin from '../util/createUtilityPlugin'
import { flagEnabled } from '../featureFlags'
export default function () {
return function ({ config, ...args }) {
if (flagEnabled(config(), 'removeDeprecatedGapUtilities')) {
createUtilityPlugin('gap', [
['gap', ['gridGap', 'gap']],
['gap-x', ['gridColumnGap', 'columnGap']],
['gap-y', ['gridRowGap', 'rowGap']],
])({ config, ...args })
} else {
createUtilityPlugin('gap', [
['gap', ['gridGap', 'gap']],
['col-gap', ['gridColumnGap', 'columnGap']],
['gap-x', ['gridColumnGap', 'columnGap']],
['row-gap', ['gridRowGap', 'rowGap']],
['gap-y', ['gridRowGap', 'rowGap']],
])({ config, ...args })
}
}
return createUtilityPlugin('gap', [
['gap', ['gridGap', 'gap']],
['gap-x', ['gridColumnGap', 'columnGap']],
['gap-y', ['gridRowGap', 'rowGap']],
])
}