diff options
Diffstat (limited to 'node_modules/postcss-gap-properties/dist')
| -rw-r--r-- | node_modules/postcss-gap-properties/dist/index.cjs | 1 | ||||
| -rw-r--r-- | node_modules/postcss-gap-properties/dist/index.d.ts | 8 | ||||
| -rw-r--r-- | node_modules/postcss-gap-properties/dist/index.mjs | 1 |
3 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/postcss-gap-properties/dist/index.cjs b/node_modules/postcss-gap-properties/dist/index.cjs new file mode 100644 index 00000000..7af188d7 --- /dev/null +++ b/node_modules/postcss-gap-properties/dist/index.cjs @@ -0,0 +1 @@ +"use strict";const e=["column-gap","gap","row-gap"],creator=o=>{const r=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-gap-properties",Declaration(o){var s,p;if(!e.includes(o.prop.toLowerCase()))return;if(!(null!=(s=o.parent)&&s.some((e=>"decl"===e.type&&("display"===e.prop.toLowerCase()&&"grid"===e.value.toLowerCase())))))return;const t=`grid-${o.prop.toLowerCase()}`;(null==(p=o.parent)?void 0:p.some((e=>"decl"===e.type&&e.prop.toLowerCase()===t)))||(o.cloneBefore({prop:t}),r.preserve||o.remove())}}};creator.postcss=!0,module.exports=creator; diff --git a/node_modules/postcss-gap-properties/dist/index.d.ts b/node_modules/postcss-gap-properties/dist/index.d.ts new file mode 100644 index 00000000..8330bff7 --- /dev/null +++ b/node_modules/postcss-gap-properties/dist/index.d.ts @@ -0,0 +1,8 @@ +import type { PluginCreator } from 'postcss'; +/** postcss-gap-properties plugin options */ +export type pluginOptions = { + /** Preserve the original notation. default: true */ + preserve?: boolean; +}; +declare const creator: PluginCreator<pluginOptions>; +export default creator; diff --git a/node_modules/postcss-gap-properties/dist/index.mjs b/node_modules/postcss-gap-properties/dist/index.mjs new file mode 100644 index 00000000..604df9ae --- /dev/null +++ b/node_modules/postcss-gap-properties/dist/index.mjs @@ -0,0 +1 @@ +const e=["column-gap","gap","row-gap"],creator=o=>{const r=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-gap-properties",Declaration(o){var p,s;if(!e.includes(o.prop.toLowerCase()))return;if(!(null!=(p=o.parent)&&p.some((e=>"decl"===e.type&&("display"===e.prop.toLowerCase()&&"grid"===e.value.toLowerCase())))))return;const t=`grid-${o.prop.toLowerCase()}`;(null==(s=o.parent)?void 0:s.some((e=>"decl"===e.type&&e.prop.toLowerCase()===t)))||(o.cloneBefore({prop:t}),r.preserve||o.remove())}}};creator.postcss=!0;export{creator as default}; |
