From f06956efd2dc4bf77244a9fcce2b883a00b925af Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 21 Dec 2023 22:46:53 +0800 Subject: updated node modules --- .../postcss-logical-overflow/CHANGELOG.md | 13 +++ .../@csstools/postcss-logical-overflow/LICENSE.md | 18 ++++ .../@csstools/postcss-logical-overflow/README.md | 109 +++++++++++++++++++++ .../postcss-logical-overflow/dist/index.cjs | 1 + .../postcss-logical-overflow/dist/index.d.ts | 19 ++++ .../postcss-logical-overflow/dist/index.mjs | 1 + .../postcss-logical-overflow/package.json | 66 +++++++++++++ 7 files changed, 227 insertions(+) create mode 100644 node_modules/@csstools/postcss-logical-overflow/CHANGELOG.md create mode 100644 node_modules/@csstools/postcss-logical-overflow/LICENSE.md create mode 100644 node_modules/@csstools/postcss-logical-overflow/README.md create mode 100644 node_modules/@csstools/postcss-logical-overflow/dist/index.cjs create mode 100644 node_modules/@csstools/postcss-logical-overflow/dist/index.d.ts create mode 100644 node_modules/@csstools/postcss-logical-overflow/dist/index.mjs create mode 100644 node_modules/@csstools/postcss-logical-overflow/package.json (limited to 'node_modules/@csstools/postcss-logical-overflow') diff --git a/node_modules/@csstools/postcss-logical-overflow/CHANGELOG.md b/node_modules/@csstools/postcss-logical-overflow/CHANGELOG.md new file mode 100644 index 00000000..12e74f71 --- /dev/null +++ b/node_modules/@csstools/postcss-logical-overflow/CHANGELOG.md @@ -0,0 +1,13 @@ +# Changes to PostCSS Logical Overflow + +### 1.0.1 + +_December 15, 2023_ + +- Fix type definitions + +### 1.0.0 + +_October 31, 2023_ + +- Initial version diff --git a/node_modules/@csstools/postcss-logical-overflow/LICENSE.md b/node_modules/@csstools/postcss-logical-overflow/LICENSE.md new file mode 100644 index 00000000..e8ae93b9 --- /dev/null +++ b/node_modules/@csstools/postcss-logical-overflow/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/@csstools/postcss-logical-overflow/README.md b/node_modules/@csstools/postcss-logical-overflow/README.md new file mode 100644 index 00000000..dd7ed558 --- /dev/null +++ b/node_modules/@csstools/postcss-logical-overflow/README.md @@ -0,0 +1,109 @@ +# PostCSS Logical Overflow [PostCSS Logo][PostCSS] + +[npm version][npm-url] [CSS Standard Status][css-url] [Build Status][cli-url] [Discord][discord] + +```bash +npm install @csstools/postcss-logical-overflow --save-dev +``` + +[PostCSS Logical Overflow] lets you use `overflow-inline` and `overflow-block` properties following the [CSS Overflow Specification]. + +```pcss +.inline { + overflow-inline: clip; +} + +.block { + overflow-block: scroll; +} + +/* becomes */ + +.inline { + overflow-x: clip; +} + +.block { + overflow-y: scroll; +} +``` + +## Usage + +Add [PostCSS Logical Overflow] to your project: + +```bash +npm install postcss @csstools/postcss-logical-overflow --save-dev +``` + +Use it as a [PostCSS] plugin: + +```js +const postcss = require('postcss'); +const postcssLogicalOverflow = require('@csstools/postcss-logical-overflow'); + +postcss([ + postcssLogicalOverflow(/* pluginOptions */) +]).process(YOUR_CSS /*, processOptions */); +``` + +[PostCSS Logical Overflow] 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 + +### inlineDirection + +The `inlineDirection` option allows you to specify the direction of the inline axe. The default value is `left-to-right`, which would match any latin language. + +**You should tweak this value so that it is specific to your language and writing mode.** + +```js +postcssLogicalOverflow({ + inlineDirection: 'top-to-bottom' +}) +``` + +```pcss +.inline { + overflow-inline: clip; +} + +.block { + overflow-block: scroll; +} + +/* becomes */ + +.inline { + overflow-y: clip; +} + +.block { + overflow-x: scroll; +} +``` + +Each direction must be one of the following: + +- `top-to-bottom` +- `bottom-to-top` +- `left-to-right` +- `right-to-left` + +[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test +[css-url]: https://cssdb.org/#logical-overflow +[discord]: https://discord.gg/bUadyRwkJS +[npm-url]: https://www.npmjs.com/package/@csstools/postcss-logical-overflow + +[PostCSS]: https://github.com/postcss/postcss +[PostCSS Logical Overflow]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-overflow +[CSS Overflow Specification]: https://www.w3.org/TR/css-overflow-3/#overflow-control diff --git a/node_modules/@csstools/postcss-logical-overflow/dist/index.cjs b/node_modules/@csstools/postcss-logical-overflow/dist/index.cjs new file mode 100644 index 00000000..ada0e798 --- /dev/null +++ b/node_modules/@csstools/postcss-logical-overflow/dist/index.cjs @@ -0,0 +1 @@ +"use strict";var o;function transformAxes(o,t){const e=t?"-x":"-y",i=t?"-y":"-x",n=o.prop.toLowerCase().replace("-inline",e).replace("-block",i),s=o.value;o.parent?.some((o=>"decl"==o.type&&o.prop===n&&o.value===s))||(o.cloneBefore({prop:n,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-overflow",Declaration:{"overflow-block":o=>transformAxes(o,i),"overflow-inline":o=>transformAxes(o,i)}}};creator.postcss=!0,module.exports=creator; diff --git a/node_modules/@csstools/postcss-logical-overflow/dist/index.d.ts b/node_modules/@csstools/postcss-logical-overflow/dist/index.d.ts new file mode 100644 index 00000000..d9afe9d4 --- /dev/null +++ b/node_modules/@csstools/postcss-logical-overflow/dist/index.d.ts @@ -0,0 +1,19 @@ +import type { PluginCreator } from 'postcss'; + +declare const creator: PluginCreator; +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-overflow 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-overflow/dist/index.mjs b/node_modules/@csstools/postcss-logical-overflow/dist/index.mjs new file mode 100644 index 00000000..9169d1b6 --- /dev/null +++ b/node_modules/@csstools/postcss-logical-overflow/dist/index.mjs @@ -0,0 +1 @@ +var o;function transformAxes(o,t){const e=t?"-x":"-y",i=t?"-y":"-x",n=o.prop.toLowerCase().replace("-inline",e).replace("-block",i),s=o.value;o.parent?.some((o=>"decl"==o.type&&o.prop===n&&o.value===s))||(o.cloneBefore({prop:n,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-overflow",Declaration:{"overflow-block":o=>transformAxes(o,i),"overflow-inline":o=>transformAxes(o,i)}}};creator.postcss=!0;export{creator as default}; diff --git a/node_modules/@csstools/postcss-logical-overflow/package.json b/node_modules/@csstools/postcss-logical-overflow/package.json new file mode 100644 index 00000000..4b480ff2 --- /dev/null +++ b/node_modules/@csstools/postcss-logical-overflow/package.json @@ -0,0 +1,66 @@ +{ + "name": "@csstools/postcss-logical-overflow", + "description": "Use logical overflow properties and values in CSS", + "version": "1.0.1", + "contributors": [ + { + "name": "Antonio Laguna", + "email": "antonio@laguna.es", + "url": "https://antonio.laguna.es" + }, + { + "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" + }, + "type": "module", + "main": "dist/index.cjs", + "module": "dist/index.mjs", + "exports": { + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + }, + "require": { + "default": "./dist/index.cjs" + } + } + }, + "files": [ + "CHANGELOG.md", + "LICENSE.md", + "README.md", + "dist" + ], + "peerDependencies": { + "postcss": "^8.4" + }, + "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-overflow#readme", + "repository": { + "type": "git", + "url": "https://github.com/csstools/postcss-plugins.git", + "directory": "plugins/postcss-logical-overflow" + }, + "bugs": "https://github.com/csstools/postcss-plugins/issues", + "keywords": [ + "css", + "logical", + "overflow", + "postcss-plugin" + ] +} -- cgit v1.2.3