diff options
Diffstat (limited to 'node_modules/postcss-overflow-shorthand/dist')
| -rw-r--r-- | node_modules/postcss-overflow-shorthand/dist/index.cjs | 1 | ||||
| -rw-r--r-- | node_modules/postcss-overflow-shorthand/dist/index.d.ts | 12 | ||||
| -rw-r--r-- | node_modules/postcss-overflow-shorthand/dist/index.mjs | 1 |
3 files changed, 0 insertions, 14 deletions
diff --git a/node_modules/postcss-overflow-shorthand/dist/index.cjs b/node_modules/postcss-overflow-shorthand/dist/index.cjs deleted file mode 100644 index da4166a2..00000000 --- a/node_modules/postcss-overflow-shorthand/dist/index.cjs +++ /dev/null @@ -1 +0,0 @@ -"use strict";var e=require("postcss-value-parser");const creator=r=>{const o=Object.assign({preserve:!0},r);return{postcssPlugin:"postcss-overflow-shorthand",Declaration:(r,{result:s})=>{if("overflow"!==r.prop.toLowerCase())return;let t="",a="";const l=r.value;try{const r=e(l).nodes.slice().filter((e=>"comment"!==e.type&&"space"!==e.type));if(r.length<2)return;t=e.stringify(r[0]),a=e.stringify(r[1])}catch(e){return void r.warn(s,`Failed to parse value '${l}' as a shorthand for "overflow". Leaving the original value intact.`)}t&&a&&(t.toLowerCase()===a.toLowerCase()?r.cloneBefore({value:t}):(r.cloneBefore({prop:"overflow-x",value:t}),r.cloneBefore({prop:"overflow-y",value:a})),o.preserve||r.remove())}}};creator.postcss=!0,module.exports=creator; diff --git a/node_modules/postcss-overflow-shorthand/dist/index.d.ts b/node_modules/postcss-overflow-shorthand/dist/index.d.ts deleted file mode 100644 index 51611ae6..00000000 --- a/node_modules/postcss-overflow-shorthand/dist/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { PluginCreator } from 'postcss'; - -declare const creator: PluginCreator<pluginOptions>; -export default creator; - -/** postcss-overflow-shorthand plugin options */ -export declare type pluginOptions = { - /** Preserve the original notation. default: true */ - preserve?: boolean; -}; - -export { } diff --git a/node_modules/postcss-overflow-shorthand/dist/index.mjs b/node_modules/postcss-overflow-shorthand/dist/index.mjs deleted file mode 100644 index 426c0a0c..00000000 --- a/node_modules/postcss-overflow-shorthand/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -import e from"postcss-value-parser";const creator=o=>{const r=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-overflow-shorthand",Declaration:(o,{result:t})=>{if("overflow"!==o.prop.toLowerCase())return;let s="",a="";const l=o.value;try{const o=e(l).nodes.slice().filter((e=>"comment"!==e.type&&"space"!==e.type));if(o.length<2)return;s=e.stringify(o[0]),a=e.stringify(o[1])}catch(e){return void o.warn(t,`Failed to parse value '${l}' as a shorthand for "overflow". Leaving the original value intact.`)}s&&a&&(s.toLowerCase()===a.toLowerCase()?o.cloneBefore({value:s}):(o.cloneBefore({prop:"overflow-x",value:s}),o.cloneBefore({prop:"overflow-y",value:a})),r.preserve||o.remove())}}};creator.postcss=!0;export{creator as default}; |
