summaryrefslogtreecommitdiff
path: root/node_modules/@csstools/postcss-color-function
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@csstools/postcss-color-function')
-rw-r--r--node_modules/@csstools/postcss-color-function/CHANGELOG.md25
-rw-r--r--node_modules/@csstools/postcss-color-function/LICENSE.md18
-rw-r--r--node_modules/@csstools/postcss-color-function/README.md164
-rw-r--r--node_modules/@csstools/postcss-color-function/dist/index.cjs1
-rw-r--r--node_modules/@csstools/postcss-color-function/dist/index.d.ts14
-rw-r--r--node_modules/@csstools/postcss-color-function/dist/index.mjs1
-rw-r--r--node_modules/@csstools/postcss-color-function/package.json73
7 files changed, 0 insertions, 296 deletions
diff --git a/node_modules/@csstools/postcss-color-function/CHANGELOG.md b/node_modules/@csstools/postcss-color-function/CHANGELOG.md
deleted file mode 100644
index ef76d6ce..00000000
--- a/node_modules/@csstools/postcss-color-function/CHANGELOG.md
+++ /dev/null
@@ -1,25 +0,0 @@
-# Changes to PostCSS Color Function
-
-### 3.0.19
-
-_July 7, 2024_
-
-- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.3.0`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#330) (minor)
-
-### 3.0.18
-
-_July 6, 2024_
-
-- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.4.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#241) (patch)
-- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.7.1`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#271) (patch)
-- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`2.0.4`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#204) (patch)
-
-### 3.0.17
-
-_June 29, 2024_
-
-- Updated [`@csstools/css-tokenizer`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer) to [`2.3.2`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/CHANGELOG.md#232) (patch)
-- Updated [`@csstools/css-parser-algorithms`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) to [`2.7.0`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms/CHANGELOG.md#270) (minor)
-- Updated [`@csstools/css-color-parser`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser) to [`2.0.3`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-color-parser/CHANGELOG.md#203) (patch)
-
-[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function/CHANGELOG.md)
diff --git a/node_modules/@csstools/postcss-color-function/LICENSE.md b/node_modules/@csstools/postcss-color-function/LICENSE.md
deleted file mode 100644
index e8ae93b9..00000000
--- a/node_modules/@csstools/postcss-color-function/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-color-function/README.md b/node_modules/@csstools/postcss-color-function/README.md
deleted file mode 100644
index 92215353..00000000
--- a/node_modules/@csstools/postcss-color-function/README.md
+++ /dev/null
@@ -1,164 +0,0 @@
-# PostCSS Color Function [<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/@csstools/postcss-color-function.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/color-function.svg" height="20">][css-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/color-function.svg" height="20">][css-url]
-
-```bash
-npm install @csstools/postcss-color-function --save-dev
-```
-
-[PostCSS Color Function] lets you use the `color` function in
-CSS, following the [CSS Color] specification.
-
-```pcss
-.color {
- color: color(display-p3 0.64331 0.19245 0.16771);
-}
-
-:root {
- --a-color: color(srgb 0.64331 0.19245 0.16771);
-}
-
-/* becomes */
-
-.color {
- color: rgb(179, 35, 35);
-}
-
-:root {
- --a-color: rgb(164, 49, 43);
-}
-```
-
-## Usage
-
-Add [PostCSS Color Function] to your project:
-
-```bash
-npm install postcss @csstools/postcss-color-function --save-dev
-```
-
-Use it as a [PostCSS] plugin:
-
-```js
-const postcss = require('postcss');
-const postcssColorFunction = require('@csstools/postcss-color-function');
-
-postcss([
- postcssColorFunction(/* pluginOptions */)
-]).process(YOUR_CSS /*, processOptions */);
-```
-
-[PostCSS Color Function] 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 not preserved.
-
-```js
-postcssColorFunction({ preserve: true })
-```
-
-```pcss
-.color {
- color: color(display-p3 0.64331 0.19245 0.16771);
-}
-
-:root {
- --a-color: color(srgb 0.64331 0.19245 0.16771);
-}
-
-/* becomes */
-
-.color {
- color: rgb(179, 35, 35);
- color: color(display-p3 0.64331 0.19245 0.16771);
-}
-
-:root {
- --a-color: rgb(164, 49, 43);
-}
-
-@supports (color: color(display-p3 0 0 0%)) {
-:root {
- --a-color: color(srgb 0.64331 0.19245 0.16771);
-}
-}
-```
-
-### enableProgressiveCustomProperties
-
-The `enableProgressiveCustomProperties` option determines whether the original notation
-is wrapped with `@supports` when used in Custom Properties. By default, it is enabled.
-
-> [!NOTE]
-> We only recommend disabling this when you set `preserve` to `false` or if you bring your own fix for Custom Properties.
-> See what the plugin does in its [README](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties#readme).
-
-```js
-postcssColorFunction({ enableProgressiveCustomProperties: false })
-```
-
-```pcss
-.color {
- color: color(display-p3 0.64331 0.19245 0.16771);
-}
-
-:root {
- --a-color: color(srgb 0.64331 0.19245 0.16771);
-}
-
-/* becomes */
-
-.color {
- color: rgb(179, 35, 35);
- color: color(display-p3 0.64331 0.19245 0.16771);
-}
-
-:root {
- --a-color: rgb(164, 49, 43);
- --a-color: color(srgb 0.64331 0.19245 0.16771);
-}
-```
-
-_Custom properties do not fallback to the previous declaration_
-
-## Supported Color Spaces
-
-```css
-.color-spaces {
- color: color(a98-rgb 0.803 0.484 0.944);
- color: color(display-p3 0.8434 0.509 0.934);
- color: color(prophoto-rgb 0.759 0.493 0.898);
- color: color(rec2020 0.772 0.491 0.920);
- color: color(srgb 0.897 0.488 0.959);
- color: color(srgb-linear 0.783 0.203 0.910);
- color: color(xyz 0.560 0.377 0.904);
- color: color(xyz-d50 0.550 0.375 0.680);
- color: color(xyz-d65 0.560 0.377 0.904);
-}
-```
-
-## Copyright : color conversions
-
-This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/tree/main/css-color-4. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).
-
-[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test
-[css-url]: https://cssdb.org/#color-function
-[discord]: https://discord.gg/bUadyRwkJS
-[npm-url]: https://www.npmjs.com/package/@csstools/postcss-color-function
-
-[PostCSS]: https://github.com/postcss/postcss
-[PostCSS Color Function]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function
-[CSS Color]: https://www.w3.org/TR/css-color-4/#funcdef-color
diff --git a/node_modules/@csstools/postcss-color-function/dist/index.cjs b/node_modules/@csstools/postcss-color-function/dist/index.cjs
deleted file mode 100644
index dc6acb95..00000000
--- a/node_modules/@csstools/postcss-color-function/dist/index.cjs
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";var s=require("@csstools/postcss-progressive-custom-properties"),e=require("@csstools/css-tokenizer"),o=require("@csstools/css-color-parser"),r=require("@csstools/utilities"),t=require("@csstools/css-parser-algorithms");const a=/\bcolor\(/i,n=/^color$/i,basePlugin=s=>({postcssPlugin:"postcss-color-function",Declaration(i){const c=i.value;if(!a.test(c))return;if(r.hasFallback(i))return;if(r.hasSupportsAtRuleAncestor(i,a))return;const l=e.tokenize({css:c}),u=t.replaceComponentValues(t.parseCommaSeparatedListOfComponentValues(l),(s=>{if(!t.isFunctionNode(s)||!n.test(s.getName()))return;const e=o.color(s);return e&&!(e.syntaxFlags.has(o.SyntaxFlag.Experimental)||e.syntaxFlags.has(o.SyntaxFlag.HasNoneKeywords)||e.syntaxFlags.has(o.SyntaxFlag.RelativeColorSyntax))?o.serializeRGB(e):void 0})),p=t.stringify(u);p!==c&&(i.cloneBefore({value:p}),s?.preserve||i.remove())}});basePlugin.postcss=!0;const postcssPlugin=e=>{const o=Object.assign({preserve:!1,enableProgressiveCustomProperties:!0},e);return o.enableProgressiveCustomProperties&&o.preserve?{postcssPlugin:"postcss-color-function",plugins:[s(),basePlugin(o)]}:basePlugin(o)};postcssPlugin.postcss=!0,module.exports=postcssPlugin;
diff --git a/node_modules/@csstools/postcss-color-function/dist/index.d.ts b/node_modules/@csstools/postcss-color-function/dist/index.d.ts
deleted file mode 100644
index 358de7ea..00000000
--- a/node_modules/@csstools/postcss-color-function/dist/index.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import type { PluginCreator } from 'postcss';
-
-/** postcss-color-function plugin options */
-export declare type pluginOptions = {
- /** Preserve the original notation. default: false */
- preserve?: boolean;
- /** Enable "@csstools/postcss-progressive-custom-properties". default: true */
- enableProgressiveCustomProperties?: boolean;
-};
-
-declare const postcssPlugin: PluginCreator<pluginOptions>;
-export default postcssPlugin;
-
-export { }
diff --git a/node_modules/@csstools/postcss-color-function/dist/index.mjs b/node_modules/@csstools/postcss-color-function/dist/index.mjs
deleted file mode 100644
index 704bf2e1..00000000
--- a/node_modules/@csstools/postcss-color-function/dist/index.mjs
+++ /dev/null
@@ -1 +0,0 @@
-import s from"@csstools/postcss-progressive-custom-properties";import{tokenize as o}from"@csstools/css-tokenizer";import{color as r,SyntaxFlag as e,serializeRGB as t}from"@csstools/css-color-parser";import{hasFallback as c,hasSupportsAtRuleAncestor as i}from"@csstools/utilities";import{replaceComponentValues as n,parseCommaSeparatedListOfComponentValues as l,isFunctionNode as a,stringify as p}from"@csstools/css-parser-algorithms";const u=/\bcolor\(/i,m=/^color$/i,basePlugin=s=>({postcssPlugin:"postcss-color-function",Declaration(f){const g=f.value;if(!u.test(g))return;if(c(f))return;if(i(f,u))return;const v=o({css:g}),x=n(l(v),(s=>{if(!a(s)||!m.test(s.getName()))return;const o=r(s);return o&&!(o.syntaxFlags.has(e.Experimental)||o.syntaxFlags.has(e.HasNoneKeywords)||o.syntaxFlags.has(e.RelativeColorSyntax))?t(o):void 0})),P=p(x);P!==g&&(f.cloneBefore({value:P}),s?.preserve||f.remove())}});basePlugin.postcss=!0;const postcssPlugin=o=>{const r=Object.assign({preserve:!1,enableProgressiveCustomProperties:!0},o);return r.enableProgressiveCustomProperties&&r.preserve?{postcssPlugin:"postcss-color-function",plugins:[s(),basePlugin(r)]}:basePlugin(r)};postcssPlugin.postcss=!0;export{postcssPlugin as default};
diff --git a/node_modules/@csstools/postcss-color-function/package.json b/node_modules/@csstools/postcss-color-function/package.json
deleted file mode 100644
index b3261975..00000000
--- a/node_modules/@csstools/postcss-color-function/package.json
+++ /dev/null
@@ -1,73 +0,0 @@
-{
- "name": "@csstools/postcss-color-function",
- "description": "Use the color() function in CSS",
- "version": "3.0.19",
- "author": "Jonathan Neal <jonathantneal@hotmail.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": {
- "@csstools/css-color-parser": "^2.0.4",
- "@csstools/css-parser-algorithms": "^2.7.1",
- "@csstools/css-tokenizer": "^2.4.1",
- "@csstools/postcss-progressive-custom-properties": "^3.3.0",
- "@csstools/utilities": "^1.0.0"
- },
- "peerDependencies": {
- "postcss": "^8.4"
- },
- "scripts": {},
- "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-color-function#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/csstools/postcss-plugins.git",
- "directory": "plugins/postcss-color-function"
- },
- "bugs": "https://github.com/csstools/postcss-plugins/issues",
- "keywords": [
- "color",
- "css",
- "design",
- "display-p3",
- "postcss",
- "postcss-plugin",
- "prophoto-rgb",
- "rec2020",
- "rgb",
- "rgba",
- "srgb-linear",
- "syntax",
- "xyz"
- ]
-}