summaryrefslogtreecommitdiff
path: root/node_modules/@csstools/postcss-logical-overscroll-behavior/dist
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@csstools/postcss-logical-overscroll-behavior/dist')
-rw-r--r--node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.cjs1
-rw-r--r--node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.d.ts19
-rw-r--r--node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.mjs1
3 files changed, 21 insertions, 0 deletions
diff --git a/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.cjs b/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.cjs
new file mode 100644
index 00000000..d54f6b2c
--- /dev/null
+++ b/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.cjs
@@ -0,0 +1 @@
+"use strict";var o;function transformAxes(o,t){const e=t?"-x":"-y",i=t?"-y":"-x",r=o.prop.toLowerCase().replace("-inline",e).replace("-block",i),s=o.value;o.parent?.some((o=>"decl"==o.type&&o.prop===r&&o.value===s))||(o.cloneBefore({prop:r,value:s}),o.remove())}!function(o){o.TopToBottom="top-to-bottom",o.BottomToTop="bottom-to-top",o.RightToLeft="right-to-left",o.LeftToRight="left-to-right"}(o||(o={}));const creator=t=>{const e=Object.assign({inlineDirection:o.LeftToRight},t);switch(e.inlineDirection){case o.LeftToRight:case o.RightToLeft:case o.TopToBottom:case o.BottomToTop:break;default:throw new Error(`[postcss-logical-viewport-units] "inlineDirection" must be one of ${Object.values(o).join(", ")}`)}const i=[o.LeftToRight,o.RightToLeft].includes(e.inlineDirection);return{postcssPlugin:"postcss-logical-overscroll-behavior",Declaration:{"overscroll-behavior-block":o=>transformAxes(o,i),"overscroll-behavior-inline":o=>transformAxes(o,i)}}};creator.postcss=!0,module.exports=creator;
diff --git a/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.d.ts b/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.d.ts
new file mode 100644
index 00000000..69581fa5
--- /dev/null
+++ b/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.d.ts
@@ -0,0 +1,19 @@
+import type { PluginCreator } from 'postcss';
+
+declare const creator: PluginCreator<pluginOptions>;
+export default creator;
+
+export declare enum DirectionFlow {
+ TopToBottom = "top-to-bottom",
+ BottomToTop = "bottom-to-top",
+ RightToLeft = "right-to-left",
+ LeftToRight = "left-to-right"
+}
+
+/** postcss-logical-overscroll-behavior plugin options */
+export declare type pluginOptions = {
+ /** Sets the direction for inline. default: left-to-right */
+ inlineDirection?: DirectionFlow;
+};
+
+export { }
diff --git a/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.mjs b/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.mjs
new file mode 100644
index 00000000..3cac5a7b
--- /dev/null
+++ b/node_modules/@csstools/postcss-logical-overscroll-behavior/dist/index.mjs
@@ -0,0 +1 @@
+var o;function transformAxes(o,t){const e=t?"-x":"-y",i=t?"-y":"-x",r=o.prop.toLowerCase().replace("-inline",e).replace("-block",i),s=o.value;o.parent?.some((o=>"decl"==o.type&&o.prop===r&&o.value===s))||(o.cloneBefore({prop:r,value:s}),o.remove())}!function(o){o.TopToBottom="top-to-bottom",o.BottomToTop="bottom-to-top",o.RightToLeft="right-to-left",o.LeftToRight="left-to-right"}(o||(o={}));const creator=t=>{const e=Object.assign({inlineDirection:o.LeftToRight},t);switch(e.inlineDirection){case o.LeftToRight:case o.RightToLeft:case o.TopToBottom:case o.BottomToTop:break;default:throw new Error(`[postcss-logical-viewport-units] "inlineDirection" must be one of ${Object.values(o).join(", ")}`)}const i=[o.LeftToRight,o.RightToLeft].includes(e.inlineDirection);return{postcssPlugin:"postcss-logical-overscroll-behavior",Declaration:{"overscroll-behavior-block":o=>transformAxes(o,i),"overscroll-behavior-inline":o=>transformAxes(o,i)}}};creator.postcss=!0;export{creator as default};