summaryrefslogtreecommitdiff
path: root/node_modules/postcss-overflow-shorthand
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/postcss-overflow-shorthand')
-rw-r--r--node_modules/postcss-overflow-shorthand/CHANGELOG.md71
-rw-r--r--node_modules/postcss-overflow-shorthand/LICENSE.md18
-rw-r--r--node_modules/postcss-overflow-shorthand/README.md83
-rw-r--r--node_modules/postcss-overflow-shorthand/dist/index.cjs1
-rw-r--r--node_modules/postcss-overflow-shorthand/dist/index.d.ts8
-rw-r--r--node_modules/postcss-overflow-shorthand/dist/index.mjs1
-rw-r--r--node_modules/postcss-overflow-shorthand/package.json93
7 files changed, 275 insertions, 0 deletions
diff --git a/node_modules/postcss-overflow-shorthand/CHANGELOG.md b/node_modules/postcss-overflow-shorthand/CHANGELOG.md
new file mode 100644
index 00000000..1314db9c
--- /dev/null
+++ b/node_modules/postcss-overflow-shorthand/CHANGELOG.md
@@ -0,0 +1,71 @@
+# Changes to PostCSS Overflow Shorthand
+
+### 5.0.0
+
+_July 3, 2023_
+
+- Change license to `MIT-0` ([read more about this change in the blog post](https://preset-env.cssdb.org/blog/license-change/))
+
+### 4.0.1
+
+_January 28, 2023_
+
+- Improve `types` declaration in `package.json`
+
+### 4.0.0
+
+_January 24, 2023_
+
+- Updated: Support for Node v14+ (major).
+- Added: TypeScript support.
+
+### 3.0.4
+
+_July 8, 2022_
+
+- Fix case insensitive matching.
+
+### 3.0.3
+
+_February 5, 2022_
+
+- Improved `es module` and `commonjs` compatibility
+
+### 3.0.2
+
+_January 2, 2022_
+
+- Removed Sourcemaps from package tarball.
+- Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121).
+
+### 3.0.1
+
+_December 13, 2021_
+
+- Updated: documentation
+
+### 3.0.0
+
+_September 17, 2021_
+
+- Updated: Support for PostCS 8+ (major).
+- Updated: Support for Node 12+ (major).
+
+### 2.0.0
+
+_September 17, 2018_
+
+- Updated: Support for PostCSS v7+
+- Updated: Support for Node v6+
+
+### 1.0.1
+
+_May 8, 2018_
+
+- Fixed: Single `overflow` values previously being parsed
+
+### 1.0.0
+
+_April 30, 2018_
+
+- Initial version
diff --git a/node_modules/postcss-overflow-shorthand/LICENSE.md b/node_modules/postcss-overflow-shorthand/LICENSE.md
new file mode 100644
index 00000000..e8ae93b9
--- /dev/null
+++ b/node_modules/postcss-overflow-shorthand/LICENSE.md
@@ -0,0 +1,18 @@
+MIT No Attribution (MIT-0)
+
+Copyright © CSSTools Contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the “Software”), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so.
+
+THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/postcss-overflow-shorthand/README.md b/node_modules/postcss-overflow-shorthand/README.md
new file mode 100644
index 00000000..53fb07fb
--- /dev/null
+++ b/node_modules/postcss-overflow-shorthand/README.md
@@ -0,0 +1,83 @@
+# PostCSS Overflow Shorthand [<img src="https://postcss.github.io/postcss/logo.svg" alt="PostCSS Logo" width="90" height="90" align="right">][PostCSS]
+
+[<img alt="npm version" src="https://img.shields.io/npm/v/postcss-overflow-shorthand.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/overflow-property.svg" height="20">][css-url] [<img alt="Build Status" src="https://github.com/csstools/postcss-plugins/workflows/test/badge.svg" height="20">][cli-url] [<img alt="Discord" src="https://shields.io/badge/Discord-5865F2?logo=discord&logoColor=white">][discord]
+
+[PostCSS Overflow Shorthand] lets you use the `overflow` shorthand in CSS,
+following the [CSS Overflow] specification.
+
+```pcss
+html {
+ overflow: hidden auto;
+}
+
+/* becomes */
+
+html {
+ overflow-x: hidden;
+ overflow-y: auto;
+ overflow: hidden auto;
+}
+```
+
+## Usage
+
+Add [PostCSS Overflow Shorthand] to your project:
+
+```bash
+npm install postcss postcss-overflow-shorthand --save-dev
+```
+
+Use it as a [PostCSS] plugin:
+
+```js
+const postcss = require('postcss');
+const postcssOverflowShorthand = require('postcss-overflow-shorthand');
+
+postcss([
+ postcssOverflowShorthand(/* pluginOptions */)
+]).process(YOUR_CSS /*, processOptions */);
+```
+
+[PostCSS Overflow Shorthand] runs in all Node environments, with special
+instructions for:
+
+- [Node](INSTALL.md#node)
+- [PostCSS CLI](INSTALL.md#postcss-cli)
+- [PostCSS Load Config](INSTALL.md#postcss-load-config)
+- [Webpack](INSTALL.md#webpack)
+- [Next.js](INSTALL.md#nextjs)
+- [Gulp](INSTALL.md#gulp)
+- [Grunt](INSTALL.md#grunt)
+
+## Options
+
+### preserve
+
+The `preserve` option determines whether the original notation
+is preserved. By default, it is preserved.
+
+```js
+postcssOverflowShorthand({ preserve: false })
+```
+
+```pcss
+html {
+ overflow: hidden auto;
+}
+
+/* becomes */
+
+html {
+ overflow-x: hidden;
+ overflow-y: auto;
+}
+```
+
+[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
+[css-url]: https://cssdb.org/#overflow-property
+[discord]: https://discord.gg/bUadyRwkJS
+[npm-url]: https://www.npmjs.com/package/postcss-overflow-shorthand
+
+[PostCSS]: https://github.com/postcss/postcss
+[PostCSS Overflow Shorthand]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-overflow-shorthand
+[CSS Overflow]: https://drafts.csswg.org/css-overflow/#propdef-overflow
diff --git a/node_modules/postcss-overflow-shorthand/dist/index.cjs b/node_modules/postcss-overflow-shorthand/dist/index.cjs
new file mode 100644
index 00000000..da4166a2
--- /dev/null
+++ b/node_modules/postcss-overflow-shorthand/dist/index.cjs
@@ -0,0 +1 @@
+"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
new file mode 100644
index 00000000..017c3aad
--- /dev/null
+++ b/node_modules/postcss-overflow-shorthand/dist/index.d.ts
@@ -0,0 +1,8 @@
+import type { PluginCreator } from 'postcss';
+/** postcss-overflow-shorthand 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-overflow-shorthand/dist/index.mjs b/node_modules/postcss-overflow-shorthand/dist/index.mjs
new file mode 100644
index 00000000..426c0a0c
--- /dev/null
+++ b/node_modules/postcss-overflow-shorthand/dist/index.mjs
@@ -0,0 +1 @@
+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};
diff --git a/node_modules/postcss-overflow-shorthand/package.json b/node_modules/postcss-overflow-shorthand/package.json
new file mode 100644
index 00000000..7adc491d
--- /dev/null
+++ b/node_modules/postcss-overflow-shorthand/package.json
@@ -0,0 +1,93 @@
+{
+ "name": "postcss-overflow-shorthand",
+ "description": "Use the overflow shorthand in CSS",
+ "version": "5.0.0",
+ "contributors": [
+ {
+ "name": "Antonio Laguna",
+ "email": "antonio@laguna.es",
+ "url": "https://antonio.laguna.es"
+ },
+ {
+ "name": "Jonathan Neal",
+ "email": "jonathantneal@hotmail.com"
+ },
+ {
+ "name": "Romain Menke",
+ "email": "romainmenke@gmail.com"
+ }
+ ],
+ "license": "MIT-0",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/csstools"
+ },
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/csstools"
+ }
+ ],
+ "engines": {
+ "node": "^14 || ^16 || >=18"
+ },
+ "main": "dist/index.cjs",
+ "module": "dist/index.mjs",
+ "types": "dist/index.d.ts",
+ "exports": {
+ ".": {
+ "types": "./dist/index.d.ts",
+ "import": "./dist/index.mjs",
+ "require": "./dist/index.cjs",
+ "default": "./dist/index.mjs"
+ }
+ },
+ "files": [
+ "CHANGELOG.md",
+ "LICENSE.md",
+ "README.md",
+ "dist"
+ ],
+ "dependencies": {
+ "postcss-value-parser": "^4.2.0"
+ },
+ "peerDependencies": {
+ "postcss": "^8.4"
+ },
+ "devDependencies": {
+ "@csstools/postcss-tape": "*"
+ },
+ "scripts": {
+ "build": "rollup -c ../../rollup/default.mjs",
+ "docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs",
+ "lint": "node ../../.github/bin/format-package-json.mjs",
+ "prepublishOnly": "npm run build && npm run test",
+ "test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs",
+ "test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs"
+ },
+ "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-overflow-shorthand#readme",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/csstools/postcss-plugins.git",
+ "directory": "plugins/postcss-overflow-shorthand"
+ },
+ "bugs": "https://github.com/csstools/postcss-plugins/issues",
+ "keywords": [
+ "css",
+ "overflow",
+ "postcss",
+ "postcss-plugin",
+ "properties",
+ "shorthands",
+ "values"
+ ],
+ "csstools": {
+ "cssdbId": "overflow-property",
+ "exportName": "postcssOverflowShorthand",
+ "humanReadableName": "PostCSS Overflow Shorthand",
+ "specUrl": "https://drafts.csswg.org/css-overflow/#propdef-overflow"
+ },
+ "volta": {
+ "extends": "../../package.json"
+ }
+}