From fc87c009806dcc98867f6b58efe29b042aa01dee Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 18 May 2026 23:10:59 +0800 Subject: node: update --- .../CHANGELOG.md | 22 ---- .../LICENSE.md | 18 --- .../README.md | 122 --------------------- .../dist/index.cjs | 1 - .../dist/index.d.ts | 6 - .../dist/index.mjs | 1 - .../package.json | 64 ----------- 7 files changed, 234 deletions(-) delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/CHANGELOG.md delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/LICENSE.md delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/README.md delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/dist/index.cjs delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/dist/index.d.ts delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs delete mode 100644 node_modules/@csstools/postcss-progressive-custom-properties/package.json (limited to 'node_modules/@csstools/postcss-progressive-custom-properties') diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/CHANGELOG.md b/node_modules/@csstools/postcss-progressive-custom-properties/CHANGELOG.md deleted file mode 100644 index 43fc8556..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/CHANGELOG.md +++ /dev/null @@ -1,22 +0,0 @@ -# Changes to PostCSS Progressive Custom Properties - -### 3.3.0 - -_July 7, 2024_ - -- Add matching rules for alt text in `content` - -### 3.2.0 - -_March 31, 2024_ - -- Add matching rules for `contrast-color` - -### 3.1.1 - -_March 13, 2024_ - -- Test for mixed component types in color values (e.g. `lab(100 50% 50)`) -- Allow relative color syntax in `rgba` and `hsla` color notations. - -[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md) diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/LICENSE.md b/node_modules/@csstools/postcss-progressive-custom-properties/LICENSE.md deleted file mode 100644 index e8ae93b9..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/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-progressive-custom-properties/README.md b/node_modules/@csstools/postcss-progressive-custom-properties/README.md deleted file mode 100644 index 9b3b68ab..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/README.md +++ /dev/null @@ -1,122 +0,0 @@ -# PostCSS Progressive Custom Properties [PostCSS][postcss] - -[![NPM Version][npm-img]][npm-url] -[![Build Status][cli-img]][cli-url] -[Discord][discord] - -[PostCSS Progressive Custom Properties] is a utility plugin to correctly declare Custom Property fallbacks and enhancements. - -> [!WARNING] -> It is not intended to be used directly by stylesheet authors. -> Meant to be included in other PostCSS plugins that provide CSS value transforms as fallbacks. - -[Custom Properties are not discarded like regular declarations when invalid.](https://www.w3.org/TR/css-variables-1/#invalid-variables) -This makes it tricky to provide fallback values for older browsers. - -The solution is to wrap Custom Property declarations in an `@supports` rule. - -```pcss -:root { - /* fallback */ - --a-color: red; - /* progressive enhancement */ - --a-color: oklch(40% 0.234 0.39 / var(--opacity-50)); -} - -/* becomes */ - -:root { - --a-color: red; -} - -@supports (color: oklch(0% 0 0)) { - :root { - --a-color: oklch(40% 0.234 0.39 / var(--opacity-50)); - } -} -``` - -## Ignored values - -`initial` and `` are ignored. - -```pcss -.initial { - --prop-1: red; - --prop-1: initial; -} - -.white-space { - --prop-1: red; - --prop-1:; - - --prop-2: red; - --prop-2: ; - - --prop-3: red; - --prop-3: ; -} - -/* remains */ - -.initial { - --prop-1: red; - --prop-1: initial; -} - -.white-space { - --prop-1: red; - --prop-1:; - - --prop-2: red; - --prop-2: ; - - --prop-3: red; - --prop-3: ; -} -``` - -## Usage - -Add [PostCSS Progressive Custom Properties] to your project: - -```bash -npm install @csstools/postcss-progressive-custom-properties --save-dev -``` - -Use [PostCSS Progressive Custom Properties] as a [PostCSS] plugin: - -```js -const postcss = require('postcss'); -const postcssCustomProperties = require('@csstools/postcss-progressive-custom-properties'); - -postcss([ - postcssProgressiveCustomProperties() -]).process(YOUR_CSS /*, processOptions */); -``` - -## @supports - -This plugin wraps Custom Property override declarations in an `@supports` rule. -With PostCSS 8 this trigger declaration visitors to run again. - -Make sure your plugin detects and ignores values inside relevant `@supports` rules. - -## Reading list - -- https://moderncss.dev/how-custom-property-values-are-computed/ - -[PostCSS Progressive Custom Properties] 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) | -| --- | --- | --- | --- | --- | - - -[cli-img]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml/badge.svg -[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test -[discord]: https://discord.gg/bUadyRwkJS -[npm-img]: https://img.shields.io/npm/v/@csstools/postcss-progressive-custom-properties.svg -[npm-url]: https://www.npmjs.com/package/@csstools/postcss-progressive-custom-properties - -[PostCSS]: https://github.com/postcss/postcss -[PostCSS Progressive Custom Properties]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.cjs b/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.cjs deleted file mode 100644 index 0f981631..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.cjs +++ /dev/null @@ -1 +0,0 @@ -"use strict";var e=require("postcss-value-parser");const a=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"];function doublePositionGradients(e){const r=[],p=e.value.toLowerCase();if("function"===e.type&&("conic-gradient"===p||"linear-gradient"===p||"radial-gradient"===p||"repeating-conic-gradient"===p||"repeating-linear-gradient"===p||"repeating-radial-gradient"===p)){let p=0,t=!1,i=!1;e:for(let o=0;oi.includes(e.sniff)&&(e.only_on_property??a.prop)===a.prop));let y=!1;try{e(i).walk((a=>{"function"===a.type&&p.test(a.value)&&(y=!0);try{const r=e.unit(a.value);!1!==r&&(a.dimension=r)}catch{}for(let e=0;e({postcssPlugin:"postcss-progressive-custom-properties",prepare(){const e=new WeakMap;return{postcssPlugin:"postcss-progressive-custom-properties",OnceExit(a,{postcss:r}){a.walkDecls((a=>{if(!a.parent)return;const p=e.get(a.parent)||{conditionalRules:[],propNames:new Set,lastConditionParams:{support:void 0},lastConditionalRule:void 0};if(e.set(a.parent,p),a.variable){if(!p.propNames.has(a.prop))return void p.propNames.add(a.prop)}else{const e=a.prop.toLowerCase();if(!p.propNames.has(e))return void p.propNames.add(e)}if(!a.variable&&!t.test(a.value))return;if(i.test(a.value))return;if(o.test(a.value))return;const s=conditionsFromValue(a,!a.variable).support.join(" and ");if(!s)return;if(p.lastConditionParams.support!==s&&(p.lastConditionalRule=void 0),p.lastConditionalRule)return p.lastConditionalRule.append(a.clone()),void a.remove();const y=[];if(s&&y.push(r.atRule({name:"supports",params:s,source:a.parent.source,raws:{before:"\n\n",after:"\n"}})),!y.length)return;for(let e=0;e{const r=e.get(a);r&&0!==r.conditionalRules.length&&r.conditionalRules.reverse().forEach((e=>{a.after(e)}))}))}}}});creator.postcss=!0,module.exports=creator; diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.d.ts b/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.d.ts deleted file mode 100644 index 240fc585..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { PluginCreator } from 'postcss'; - -declare const creator: PluginCreator; -export default creator; - -export { } diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs b/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs deleted file mode 100644 index e82d19bd..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/dist/index.mjs +++ /dev/null @@ -1 +0,0 @@ -import e from"postcss-value-parser";const a=["at","bottom","center","circle","closest-corner","closest-side","ellipse","farthest-corner","farthest-side","from","in","left","right","to","top"];function doublePositionGradients(e){const r=[],p=e.value.toLowerCase();if("function"===e.type&&("conic-gradient"===p||"linear-gradient"===p||"radial-gradient"===p||"repeating-conic-gradient"===p||"repeating-linear-gradient"===p||"repeating-radial-gradient"===p)){let p=0,t=!1,i=!1;e:for(let o=0;oi.includes(e.sniff)&&(e.only_on_property??a.prop)===a.prop));let y=!1;try{e(i).walk((a=>{"function"===a.type&&p.test(a.value)&&(y=!0);try{const r=e.unit(a.value);!1!==r&&(a.dimension=r)}catch{}for(let e=0;e({postcssPlugin:"postcss-progressive-custom-properties",prepare(){const e=new WeakMap;return{postcssPlugin:"postcss-progressive-custom-properties",OnceExit(a,{postcss:r}){a.walkDecls((a=>{if(!a.parent)return;const p=e.get(a.parent)||{conditionalRules:[],propNames:new Set,lastConditionParams:{support:void 0},lastConditionalRule:void 0};if(e.set(a.parent,p),a.variable){if(!p.propNames.has(a.prop))return void p.propNames.add(a.prop)}else{const e=a.prop.toLowerCase();if(!p.propNames.has(e))return void p.propNames.add(e)}if(!a.variable&&!t.test(a.value))return;if(i.test(a.value))return;if(o.test(a.value))return;const s=conditionsFromValue(a,!a.variable).support.join(" and ");if(!s)return;if(p.lastConditionParams.support!==s&&(p.lastConditionalRule=void 0),p.lastConditionalRule)return p.lastConditionalRule.append(a.clone()),void a.remove();const y=[];if(s&&y.push(r.atRule({name:"supports",params:s,source:a.parent.source,raws:{before:"\n\n",after:"\n"}})),!y.length)return;for(let e=0;e{const r=e.get(a);r&&0!==r.conditionalRules.length&&r.conditionalRules.reverse().forEach((e=>{a.after(e)}))}))}}}});creator.postcss=!0;export{creator as default}; diff --git a/node_modules/@csstools/postcss-progressive-custom-properties/package.json b/node_modules/@csstools/postcss-progressive-custom-properties/package.json deleted file mode 100644 index 610ff16d..00000000 --- a/node_modules/@csstools/postcss-progressive-custom-properties/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "@csstools/postcss-progressive-custom-properties", - "description": "Correctly declare progressive enhancements for CSS Custom Properties.", - "version": "3.3.0", - "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" - }, - "scripts": {}, - "repository": { - "type": "git", - "url": "git+https://github.com/csstools/postcss-plugins.git", - "directory": "plugins/postcss-progressive-custom-properties" - }, - "keywords": [ - "css", - "custom", - "declarations", - "postcss", - "postcss-plugin", - "progressive", - "properties", - "utility", - "variables", - "vars" - ] -} -- cgit v1.2.3