summaryrefslogtreecommitdiff
path: root/node_modules/postcss-pseudo-class-any-link
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/postcss-pseudo-class-any-link')
-rw-r--r--node_modules/postcss-pseudo-class-any-link/CHANGELOG.md21
-rw-r--r--node_modules/postcss-pseudo-class-any-link/LICENSE.md18
-rw-r--r--node_modules/postcss-pseudo-class-any-link/README.md119
-rw-r--r--node_modules/postcss-pseudo-class-any-link/dist/index.cjs1
-rw-r--r--node_modules/postcss-pseudo-class-any-link/dist/index.d.ts16
-rw-r--r--node_modules/postcss-pseudo-class-any-link/dist/index.mjs1
-rw-r--r--node_modules/postcss-pseudo-class-any-link/package.json79
7 files changed, 0 insertions, 255 deletions
diff --git a/node_modules/postcss-pseudo-class-any-link/CHANGELOG.md b/node_modules/postcss-pseudo-class-any-link/CHANGELOG.md
deleted file mode 100644
index 71d8437f..00000000
--- a/node_modules/postcss-pseudo-class-any-link/CHANGELOG.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Changes to PostCSS Pseudo Class Any Link
-
-### 9.0.2
-
-_April 21, 2024_
-
-- Ignore `:any-link` in `:not()` pseudo class functions
-
-### 9.0.1
-
-_December 15, 2023_
-
-- Fix type definitions
-
-### 9.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-pseudo-class-any-link/CHANGELOG.md)
diff --git a/node_modules/postcss-pseudo-class-any-link/LICENSE.md b/node_modules/postcss-pseudo-class-any-link/LICENSE.md
deleted file mode 100644
index e8ae93b9..00000000
--- a/node_modules/postcss-pseudo-class-any-link/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/postcss-pseudo-class-any-link/README.md b/node_modules/postcss-pseudo-class-any-link/README.md
deleted file mode 100644
index 008dd77b..00000000
--- a/node_modules/postcss-pseudo-class-any-link/README.md
+++ /dev/null
@@ -1,119 +0,0 @@
-# PostCSS Pseudo Class Any Link [<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-pseudo-class-any-link.svg" height="20">][npm-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]<br><br>[<img alt="Baseline Status" src="https://cssdb.org/images/badges-baseline/any-link-pseudo-class.svg" height="20">][css-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/any-link-pseudo-class.svg" height="20">][css-url]
-
-```bash
-npm install postcss-pseudo-class-any-link --save-dev
-```
-
-[PostCSS Pseudo Class Any Link] lets you `:any-link` pseudo-class in CSS,
-following the [Selectors] specification.
-
-```pcss
-nav :any-link > span {
- background-color: yellow;
-}
-
-/* becomes */
-
-nav :link > span, nav :visited > span {
- background-color: yellow;
-}
-nav :any-link > span {
- background-color: yellow;
-}
-```
-
-## Usage
-
-Add [PostCSS Pseudo Class Any Link] to your project:
-
-```bash
-npm install postcss postcss-pseudo-class-any-link --save-dev
-```
-
-Use it as a [PostCSS] plugin:
-
-```js
-const postcss = require('postcss');
-const postcssPseudoClassAnyLink = require('postcss-pseudo-class-any-link');
-
-postcss([
- postcssPseudoClassAnyLink(/* pluginOptions */)
-]).process(YOUR_CSS /*, processOptions */);
-```
-
-[PostCSS Pseudo Class Any Link] 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
-postcssPseudoClassAnyLink({ preserve: false })
-```
-
-```pcss
-nav :any-link > span {
- background-color: yellow;
-}
-
-/* becomes */
-
-nav :link > span, nav :visited > span {
- background-color: yellow;
-}
-```
-
-### subFeatures
-
-#### areaHrefNeedsFixing
-
-The `subFeatures.areaHrefNeedsFixing` option determines if `<area href>` elements should match `:any-link` pseudo-class.<br>
-In IE and Edge these do not match `:link` or `:visited`.
-
-_This increased CSS bundle size and is disabled by default._
-
-```js
-postcssPseudoClassAnyLink({
- subFeatures: {
- areaHrefNeedsFixing: true
- }
-})
-```
-
-```pcss
-nav :any-link > span {
- background-color: yellow;
-}
-
-/* becomes */
-
-nav :link > span, nav :visited > span, nav area[href] > span {
- background-color: yellow;
-}
-nav :any-link > span {
- background-color: yellow;
-}
-```
-
-[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
-[css-url]: https://cssdb.org/#any-link-pseudo-class
-[discord]: https://discord.gg/bUadyRwkJS
-[npm-url]: https://www.npmjs.com/package/postcss-pseudo-class-any-link
-
-[PostCSS]: https://github.com/postcss/postcss
-[PostCSS Pseudo Class Any Link]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-pseudo-class-any-link
-[Selectors]: https://www.w3.org/TR/selectors-4/#the-any-link-pseudo
diff --git a/node_modules/postcss-pseudo-class-any-link/dist/index.cjs b/node_modules/postcss-pseudo-class-any-link/dist/index.cjs
deleted file mode 100644
index 1f8f7414..00000000
--- a/node_modules/postcss-pseudo-class-any-link/dist/index.cjs
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";var e=require("postcss-selector-parser");const t=e().astSync(":link").nodes[0],s=e().astSync(":visited").nodes[0],n=e().astSync("area[href]").nodes[0],o=e().astSync("[href]").nodes[0];function replaceAnyLink(e,t,s,n){const o=[],r=[];try{for(let t=0;t<e.selectors.length;t++){const s=e.selectors[t],l=modifiedSelector(s,n);l.length?o.push(...l):r.push(s)}}catch(s){return e.warn(t,`Failed to parse selector : "${e.selector}" with message: "${s instanceof Error?s.message:s}"`),!1}return!!o.length&&(e.cloneBefore({selectors:o}),r.length&&e.cloneBefore({selectors:r}),s||e.remove(),!0)}function modifiedSelector(r,l){const c=[];return e((e=>{const r=[];if(e.walkPseudos((e=>{if(":not"===e.value.toLowerCase())return!1;if(":any-link"!==e.value.toLowerCase()||e.nodes&&e.nodes.length)return;if(!l)return void r.push([t.clone(),s.clone()]);const c=getTagElementsNextToPseudo(e);c.includes("area")?r.push([t.clone(),s.clone(),o.clone()]):c.length?r.push([t.clone(),s.clone()]):r.push([t.clone(),s.clone(),n.clone()])})),!r.length)return;cartesianProduct(...r).forEach((t=>{const s=e.clone();s.walkPseudos((e=>{":any-link"!==e.value.toLowerCase()||e.nodes&&e.nodes.length||(insertNode(e.parent,e,t.shift()),e.remove())})),c.push(s.toString())}))})).processSync(r),c}function cartesianProduct(...e){const t=[],s=e.length-1;return function helper(n,o){for(let r=0,l=e[o].length;r<l;r++){const l=n.slice(0);l.push(e[o][r]),o==s?t.push(l):helper(l,o+1)}}([],0),t}function getTagElementsNextToPseudo(t){const s=[];let n=t.prev();for(;n&&"combinator"!==n.type&&!e.isPseudoElement(n);)"tag"===n.type&&s.push(n.value.toLowerCase()),n=n.prev();let o=t.next();for(;o&&"combinator"!==o.type&&!e.isPseudoElement(o);)"tag"===o.type&&s.push(o.value.toLowerCase()),o=o.next();return s}function insertNode(t,s,n){if(!t||!n)return;let o=n.type;"selector"===n.type&&n.nodes&&n.nodes.length&&(o=n.nodes[0].type);let r=-1,l=-1;const c=t.index(s);for(let s=c;s>=0&&("combinator"!==t.nodes[s].type&&!e.isPseudoElement(t.nodes[s].type));s--)r=s;if("tag"!==o){for(let s=c;s<t.nodes.length&&("combinator"!==t.nodes[s].type&&!e.isPseudoElement(t.nodes[s].type));s++)l=s;for(let e=r;e<=l;e++)if(t.nodes[e].type===o)return void t.insertAfter(t.at(e),n);t.insertAfter(t.at(r),n)}else t.insertBefore(t.at(r),n)}const creator=e=>{const t={preserve:!0,...e},s={areaHrefNeedsFixing:!1,...Object(t.subFeatures)};return{postcssPlugin:"postcss-pseudo-class-any-link",prepare(){const e=new WeakSet;return{postcssPlugin:"postcss-pseudo-class-any-link",Rule(n,{result:o}){if(!n.selector.toLowerCase().includes(":any-link"))return;if(e.has(n))return;if((n.raws.selector&&n.raws.selector.raw||n.selector).endsWith(":"))return;replaceAnyLink(n,o,t.preserve,s.areaHrefNeedsFixing)&&e.add(n)}}}}};creator.postcss=!0,module.exports=creator;
diff --git a/node_modules/postcss-pseudo-class-any-link/dist/index.d.ts b/node_modules/postcss-pseudo-class-any-link/dist/index.d.ts
deleted file mode 100644
index e59a9a2c..00000000
--- a/node_modules/postcss-pseudo-class-any-link/dist/index.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import type { PluginCreator } from 'postcss';
-
-declare const creator: PluginCreator<pluginOptions>;
-export default creator;
-
-/** postcss-pseudo-class-any-link plugin options */
-export declare type pluginOptions = {
- /** Preserve the original notation. default: true */
- preserve?: boolean;
- /** Add an extra fallback for the "<area>" element in IE and Edge. default: false */
- subFeatures?: {
- areaHrefNeedsFixing?: boolean;
- };
-};
-
-export { }
diff --git a/node_modules/postcss-pseudo-class-any-link/dist/index.mjs b/node_modules/postcss-pseudo-class-any-link/dist/index.mjs
deleted file mode 100644
index 192a428d..00000000
--- a/node_modules/postcss-pseudo-class-any-link/dist/index.mjs
+++ /dev/null
@@ -1 +0,0 @@
-import e from"postcss-selector-parser";const t=e().astSync(":link").nodes[0],s=e().astSync(":visited").nodes[0],n=e().astSync("area[href]").nodes[0],o=e().astSync("[href]").nodes[0];function replaceAnyLink(e,t,s,n){const o=[],r=[];try{for(let t=0;t<e.selectors.length;t++){const s=e.selectors[t],l=modifiedSelector(s,n);l.length?o.push(...l):r.push(s)}}catch(s){return e.warn(t,`Failed to parse selector : "${e.selector}" with message: "${s instanceof Error?s.message:s}"`),!1}return!!o.length&&(e.cloneBefore({selectors:o}),r.length&&e.cloneBefore({selectors:r}),s||e.remove(),!0)}function modifiedSelector(r,l){const c=[];return e((e=>{const r=[];if(e.walkPseudos((e=>{if(":not"===e.value.toLowerCase())return!1;if(":any-link"!==e.value.toLowerCase()||e.nodes&&e.nodes.length)return;if(!l)return void r.push([t.clone(),s.clone()]);const c=getTagElementsNextToPseudo(e);c.includes("area")?r.push([t.clone(),s.clone(),o.clone()]):c.length?r.push([t.clone(),s.clone()]):r.push([t.clone(),s.clone(),n.clone()])})),!r.length)return;cartesianProduct(...r).forEach((t=>{const s=e.clone();s.walkPseudos((e=>{":any-link"!==e.value.toLowerCase()||e.nodes&&e.nodes.length||(insertNode(e.parent,e,t.shift()),e.remove())})),c.push(s.toString())}))})).processSync(r),c}function cartesianProduct(...e){const t=[],s=e.length-1;return function helper(n,o){for(let r=0,l=e[o].length;r<l;r++){const l=n.slice(0);l.push(e[o][r]),o==s?t.push(l):helper(l,o+1)}}([],0),t}function getTagElementsNextToPseudo(t){const s=[];let n=t.prev();for(;n&&"combinator"!==n.type&&!e.isPseudoElement(n);)"tag"===n.type&&s.push(n.value.toLowerCase()),n=n.prev();let o=t.next();for(;o&&"combinator"!==o.type&&!e.isPseudoElement(o);)"tag"===o.type&&s.push(o.value.toLowerCase()),o=o.next();return s}function insertNode(t,s,n){if(!t||!n)return;let o=n.type;"selector"===n.type&&n.nodes&&n.nodes.length&&(o=n.nodes[0].type);let r=-1,l=-1;const c=t.index(s);for(let s=c;s>=0&&("combinator"!==t.nodes[s].type&&!e.isPseudoElement(t.nodes[s].type));s--)r=s;if("tag"!==o){for(let s=c;s<t.nodes.length&&("combinator"!==t.nodes[s].type&&!e.isPseudoElement(t.nodes[s].type));s++)l=s;for(let e=r;e<=l;e++)if(t.nodes[e].type===o)return void t.insertAfter(t.at(e),n);t.insertAfter(t.at(r),n)}else t.insertBefore(t.at(r),n)}const creator=e=>{const t={preserve:!0,...e},s={areaHrefNeedsFixing:!1,...Object(t.subFeatures)};return{postcssPlugin:"postcss-pseudo-class-any-link",prepare(){const e=new WeakSet;return{postcssPlugin:"postcss-pseudo-class-any-link",Rule(n,{result:o}){if(!n.selector.toLowerCase().includes(":any-link"))return;if(e.has(n))return;if((n.raws.selector&&n.raws.selector.raw||n.selector).endsWith(":"))return;replaceAnyLink(n,o,t.preserve,s.areaHrefNeedsFixing)&&e.add(n)}}}}};creator.postcss=!0;export{creator as default};
diff --git a/node_modules/postcss-pseudo-class-any-link/package.json b/node_modules/postcss-pseudo-class-any-link/package.json
deleted file mode 100644
index 1765fb5b..00000000
--- a/node_modules/postcss-pseudo-class-any-link/package.json
+++ /dev/null
@@ -1,79 +0,0 @@
-{
- "name": "postcss-pseudo-class-any-link",
- "description": "Use the :any-link pseudo-class in CSS",
- "version": "9.0.2",
- "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"
- },
- "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-selector-parser": "^6.0.13"
- },
- "peerDependencies": {
- "postcss": "^8.4"
- },
- "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-pseudo-class-any-link#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/csstools/postcss-plugins.git",
- "directory": "plugins/postcss-pseudo-class-any-link"
- },
- "bugs": "https://github.com/csstools/postcss-plugins/issues",
- "keywords": [
- "a",
- "any-link",
- "area",
- "css",
- "href",
- "hyperlink",
- "link",
- "postcss",
- "postcss-plugin",
- "visited"
- ]
-}