summaryrefslogtreecommitdiff
path: root/node_modules/postcss-place/dist
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/postcss-place/dist')
-rw-r--r--node_modules/postcss-place/dist/index.cjs1
-rw-r--r--node_modules/postcss-place/dist/index.d.ts8
-rw-r--r--node_modules/postcss-place/dist/index.mjs1
-rw-r--r--node_modules/postcss-place/dist/onCSSDeclaration.d.ts5
4 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/postcss-place/dist/index.cjs b/node_modules/postcss-place/dist/index.cjs
new file mode 100644
index 00000000..01b920a1
--- /dev/null
+++ b/node_modules/postcss-place/dist/index.cjs
@@ -0,0 +1 @@
+"use strict";var e=require("postcss-value-parser");function onCSSDeclaration(r,o,s){var n;const a=null==(n=r.prop.toLowerCase().match(t))?void 0:n[1];if(!a)return;let l;try{l=e(r.value)}catch(e){r.warn(o,`Failed to parse value '${r.value}'. Leaving the original value intact.`)}if(void 0===l)return;let i=[];i=l.nodes.length?l.nodes.filter((e=>"word"===e.type||"function"===e.type)).map((t=>e.stringify(t))):[e.stringify(l.nodes)],r.cloneBefore({prop:`align-${a}`,value:i[0]}),r.cloneBefore({prop:`justify-${a}`,value:i[1]||i[0]}),s.preserve||r.remove()}const t=/^place-(content|items|self)/,creator=e=>{const r=Object.assign({preserve:!0},e);return{postcssPlugin:"postcss-place",Declaration:(e,{result:o})=>{t.test(e.prop.toLowerCase())&&onCSSDeclaration(e,o,r)}}};creator.postcss=!0,module.exports=creator;
diff --git a/node_modules/postcss-place/dist/index.d.ts b/node_modules/postcss-place/dist/index.d.ts
new file mode 100644
index 00000000..aaac93c5
--- /dev/null
+++ b/node_modules/postcss-place/dist/index.d.ts
@@ -0,0 +1,8 @@
+import type { PluginCreator } from 'postcss';
+/** postcss-place 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-place/dist/index.mjs b/node_modules/postcss-place/dist/index.mjs
new file mode 100644
index 00000000..62f83b13
--- /dev/null
+++ b/node_modules/postcss-place/dist/index.mjs
@@ -0,0 +1 @@
+import e from"postcss-value-parser";function onCSSDeclaration(o,r,s){var n;const a=null==(n=o.prop.toLowerCase().match(t))?void 0:n[1];if(!a)return;let l;try{l=e(o.value)}catch(e){o.warn(r,`Failed to parse value '${o.value}'. Leaving the original value intact.`)}if(void 0===l)return;let i=[];i=l.nodes.length?l.nodes.filter((e=>"word"===e.type||"function"===e.type)).map((t=>e.stringify(t))):[e.stringify(l.nodes)],o.cloneBefore({prop:`align-${a}`,value:i[0]}),o.cloneBefore({prop:`justify-${a}`,value:i[1]||i[0]}),s.preserve||o.remove()}const t=/^place-(content|items|self)/,creator=e=>{const o=Object.assign({preserve:!0},e);return{postcssPlugin:"postcss-place",Declaration:(e,{result:r})=>{t.test(e.prop.toLowerCase())&&onCSSDeclaration(e,r,o)}}};creator.postcss=!0;export{creator as default};
diff --git a/node_modules/postcss-place/dist/onCSSDeclaration.d.ts b/node_modules/postcss-place/dist/onCSSDeclaration.d.ts
new file mode 100644
index 00000000..e1e7aa08
--- /dev/null
+++ b/node_modules/postcss-place/dist/onCSSDeclaration.d.ts
@@ -0,0 +1,5 @@
+import type { Declaration, Result } from 'postcss';
+export declare function onCSSDeclaration(decl: Declaration, result: Result, options: {
+ preserve: boolean;
+}): void;
+export declare const placeMatch: RegExp;