From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- .../postcss-normalize-display-values/CHANGELOG.md | 21 ------ .../postcss-normalize-display-values/LICENSE.md | 18 ----- .../postcss-normalize-display-values/README.md | 86 ---------------------- .../dist/index.cjs | 1 - .../dist/index.d.ts | 12 --- .../dist/index.mjs | 1 - .../postcss-normalize-display-values/package.json | 74 ------------------- 7 files changed, 213 deletions(-) delete mode 100644 node_modules/@csstools/postcss-normalize-display-values/CHANGELOG.md delete mode 100644 node_modules/@csstools/postcss-normalize-display-values/LICENSE.md delete mode 100644 node_modules/@csstools/postcss-normalize-display-values/README.md delete mode 100644 node_modules/@csstools/postcss-normalize-display-values/dist/index.cjs delete mode 100644 node_modules/@csstools/postcss-normalize-display-values/dist/index.d.ts delete mode 100644 node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs delete mode 100644 node_modules/@csstools/postcss-normalize-display-values/package.json (limited to 'node_modules/@csstools/postcss-normalize-display-values') diff --git a/node_modules/@csstools/postcss-normalize-display-values/CHANGELOG.md b/node_modules/@csstools/postcss-normalize-display-values/CHANGELOG.md deleted file mode 100644 index 81ae9b16..00000000 --- a/node_modules/@csstools/postcss-normalize-display-values/CHANGELOG.md +++ /dev/null @@ -1,21 +0,0 @@ -# Changes to PostCSS Normalize Display Values - -### 3.0.2 - -_December 15, 2023_ - -- Fix type definitions - -### 3.0.1 - -_September 18, 2023_ - -- Improve performance - -### 3.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/)) - -[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-normalize-display-values/CHANGELOG.md) diff --git a/node_modules/@csstools/postcss-normalize-display-values/LICENSE.md b/node_modules/@csstools/postcss-normalize-display-values/LICENSE.md deleted file mode 100644 index e8ae93b9..00000000 --- a/node_modules/@csstools/postcss-normalize-display-values/LICENSE.md +++ /dev/null @@ -1,18 +0,0 @@ -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-normalize-display-values/README.md b/node_modules/@csstools/postcss-normalize-display-values/README.md deleted file mode 100644 index 5af8725b..00000000 --- a/node_modules/@csstools/postcss-normalize-display-values/README.md +++ /dev/null @@ -1,86 +0,0 @@ -# PostCSS Normalize Display Values [PostCSS Logo][postcss] - -[npm version][npm-url] -[CSS Standard Status][css-url] -[Build Status][cli-url] -[Discord][discord] - -[PostCSS Normalize Display Values] lets you specify definition of outer and inner displays types for an element. - -```pcss -.element { - display: inline flow-root; -} - -/* becomes */ - -.element { - display: inline-block; - display: inline flow-root; -} -``` - -_See prior work by [cssnano](https://github.com/cssnano) here [postcss-normalize-display-values](https://github.com/cssnano/cssnano/tree/master/packages/postcss-normalize-display-values) -To ensure long term maintenance and to provide the needed features this plugin was recreated based on cssnano's work._ - -## Usage - -Add [PostCSS Normalize Display Values] to your project: - -```bash -npm install postcss @csstools/postcss-normalize-display-values --save-dev -``` - -Use it as a [PostCSS] plugin: - -```js -const postcss = require('postcss'); -const postcssNormalizeDisplayValues = require('@csstools/postcss-normalize-display-values'); - -postcss([ - postcssNormalizeDisplayValues(/* pluginOptions */) -]).process(YOUR_CSS /*, processOptions */); -``` - -[PostCSS Normalize Display Values] runs in all Node environments, with special -instructions for: - -| [Node](INSTALL.md#node) | [PostCSS CLI](INSTALL.md#postcss-cli) | [Webpack](INSTALL.md#webpack) | [Gulp](INSTALL.md#gulp) | [Grunt](INSTALL.md#grunt) | -| --- | --- | --- | --- | --- | - -## Options - -### preserve - -The `preserve` option determines whether the original source -is preserved. By default, it is preserved. - -```js -postcssNormalizeDisplayValues({ preserve: false }) -``` - -```pcss -.element { - display: inline flow-root; -} - -/* becomes */ - -.element { - display: inline-block; -} -``` - -[postcss]: https://github.com/postcss/postcss - -[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test -[css-url]: https://cssdb.org/#display-two-values -[discord]: https://discord.gg/bUadyRwkJS -[npm-url]: https://www.npmjs.com/package/@csstools/postcss-normalize-display-values - -[CSS Fonts]: https://www.w3.org/TR/css-display-3/#the-display-properties -[Gulp PostCSS]: https://github.com/postcss/gulp-postcss -[Grunt PostCSS]: https://github.com/nDmitry/grunt-postcss -[PostCSS]: https://github.com/postcss/postcss -[PostCSS Loader]: https://github.com/postcss/postcss-loader -[PostCSS Normalize Display Values]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-normalize-display-values diff --git a/node_modules/@csstools/postcss-normalize-display-values/dist/index.cjs b/node_modules/@csstools/postcss-normalize-display-values/dist/index.cjs deleted file mode 100644 index 681198e8..00000000 --- a/node_modules/@csstools/postcss-normalize-display-values/dist/index.cjs +++ /dev/null @@ -1 +0,0 @@ -"use strict";var e=require("postcss-value-parser"),l=new Map([["block,flow","block"],["block,flow-root","flow-root"],["inline,flow","inline"],["inline,flow-root","inline-block"],["run-in,flow","run-in"],["list-item,block,flow","list-item"],["inline,flow,list-item","inline list-item"],["block,flex","flex"],["inline,flex","inline-flex"],["block,grid","grid"],["inline,grid","inline-grid"],["inline,ruby","ruby"],["block,table","table"],["inline,table","inline-table"],["table-cell,flow","table-cell"],["table-caption,flow","table-caption"],["ruby-base,flow","ruby-base"],["ruby-text,flow","ruby-text"]]);function transform(n){const{nodes:t}=e(n);if(1===t.length)return n;const o=t.filter((e=>"word"===e.type)).map((e=>e.value.toLowerCase()));if(o.length<=1)return n;const i=l.get(o.join(","));return i||n}const n=/^display$/i,creator=e=>{const l=!("preserve"in Object(e))||Boolean(e?.preserve);return{postcssPlugin:"postcss-normalize-display-values",prepare(){const e=new Map;return{Declaration(t){if(!n.test(t.prop))return;const o=t.value;if(!o)return;if(e.has(o))return void(t.value!==e.get(o)&&(t.cloneBefore({value:e.get(o)}),l||t.remove()));const i=transform(o);e.set(o,i),t.value!==i&&(t.cloneBefore({value:i}),l||t.remove())}}}}};creator.postcss=!0,module.exports=creator; diff --git a/node_modules/@csstools/postcss-normalize-display-values/dist/index.d.ts b/node_modules/@csstools/postcss-normalize-display-values/dist/index.d.ts deleted file mode 100644 index 54036ec0..00000000 --- a/node_modules/@csstools/postcss-normalize-display-values/dist/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { PluginCreator } from 'postcss'; - -declare const creator: PluginCreator; -export default creator; - -/** postcss-normalize-display-values plugin options */ -export declare type pluginOptions = { - /** Preserve the original notation. default: true */ - preserve?: boolean; -}; - -export { } diff --git a/node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs b/node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs deleted file mode 100644 index 69df945a..00000000 --- a/node_modules/@csstools/postcss-normalize-display-values/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -import e from"postcss-value-parser";var l=new Map([["block,flow","block"],["block,flow-root","flow-root"],["inline,flow","inline"],["inline,flow-root","inline-block"],["run-in,flow","run-in"],["list-item,block,flow","list-item"],["inline,flow,list-item","inline list-item"],["block,flex","flex"],["inline,flex","inline-flex"],["block,grid","grid"],["inline,grid","inline-grid"],["inline,ruby","ruby"],["block,table","table"],["inline,table","inline-table"],["table-cell,flow","table-cell"],["table-caption,flow","table-caption"],["ruby-base,flow","ruby-base"],["ruby-text,flow","ruby-text"]]);function transform(n){const{nodes:t}=e(n);if(1===t.length)return n;const o=t.filter((e=>"word"===e.type)).map((e=>e.value.toLowerCase()));if(o.length<=1)return n;const i=l.get(o.join(","));return i||n}const n=/^display$/i,creator=e=>{const l=!("preserve"in Object(e))||Boolean(e?.preserve);return{postcssPlugin:"postcss-normalize-display-values",prepare(){const e=new Map;return{Declaration(t){if(!n.test(t.prop))return;const o=t.value;if(!o)return;if(e.has(o))return void(t.value!==e.get(o)&&(t.cloneBefore({value:e.get(o)}),l||t.remove()));const i=transform(o);e.set(o,i),t.value!==i&&(t.cloneBefore({value:i}),l||t.remove())}}}}};creator.postcss=!0;export{creator as default}; diff --git a/node_modules/@csstools/postcss-normalize-display-values/package.json b/node_modules/@csstools/postcss-normalize-display-values/package.json deleted file mode 100644 index 40076298..00000000 --- a/node_modules/@csstools/postcss-normalize-display-values/package.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "name": "@csstools/postcss-normalize-display-values", - "description": "Use two values display syntax for inner and outer display types.", - "version": "3.0.2", - "author": "Jonathan Neal ", - "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" - ], - "dependencies": { - "postcss-value-parser": "^4.2.0" - }, - "peerDependencies": { - "postcss": "^8.4" - }, - "repository": { - "type": "git", - "url": "https://github.com/csstools/postcss-plugins.git", - "directory": "plugins/postcss-normalize-display-values" - }, - "keywords": [ - "block", - "css", - "display", - "flex", - "flow", - "flow-root", - "grid", - "inline", - "inline-block", - "inline-flex", - "inline-grid", - "inline-table", - "list-item", - "postcss-plugin", - "ruby", - "ruby-base", - "ruby-text", - "run-in", - "table", - "table-caption", - "table-cell" - ] -} -- cgit v1.2.3