Remove deprecated gap utilities
This commit is contained in:
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
|
|
@ -4,7 +4,6 @@ import log from './util/log'
|
|||
|
||||
const featureFlags = {
|
||||
future: [
|
||||
'removeDeprecatedGapUtilities',
|
||||
'purgeLayersByDefault',
|
||||
'defaultLineHeights',
|
||||
'standardFontWeights',
|
||||
|
|
|
|||
|
|
@ -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']],
|
||||
])
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue