summaryrefslogtreecommitdiff
path: root/node_modules/@csstools/postcss-ic-unit
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@csstools/postcss-ic-unit')
-rw-r--r--node_modules/@csstools/postcss-ic-unit/CHANGELOG.md21
-rw-r--r--node_modules/@csstools/postcss-ic-unit/LICENSE.md18
-rw-r--r--node_modules/@csstools/postcss-ic-unit/README.md96
-rw-r--r--node_modules/@csstools/postcss-ic-unit/dist/index.cjs1
-rw-r--r--node_modules/@csstools/postcss-ic-unit/dist/index.d.ts14
-rw-r--r--node_modules/@csstools/postcss-ic-unit/dist/index.mjs1
-rw-r--r--node_modules/@csstools/postcss-ic-unit/package.json65
7 files changed, 0 insertions, 216 deletions
diff --git a/node_modules/@csstools/postcss-ic-unit/CHANGELOG.md b/node_modules/@csstools/postcss-ic-unit/CHANGELOG.md
deleted file mode 100644
index f9d930d5..00000000
--- a/node_modules/@csstools/postcss-ic-unit/CHANGELOG.md
+++ /dev/null
@@ -1,21 +0,0 @@
-# Changes to PostCSS IC Unit
-
-### 3.0.7
-
-_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.6
-
-_March 31, 2024_
-
-- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.2.0`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#320) (minor)
-
-### 3.0.5
-
-_March 13, 2024_
-
-- Updated [`@csstools/postcss-progressive-custom-properties`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties) to [`3.1.1`](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-progressive-custom-properties/CHANGELOG.md#311) (patch)
-
-[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit/CHANGELOG.md)
diff --git a/node_modules/@csstools/postcss-ic-unit/LICENSE.md b/node_modules/@csstools/postcss-ic-unit/LICENSE.md
deleted file mode 100644
index e8ae93b9..00000000
--- a/node_modules/@csstools/postcss-ic-unit/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-ic-unit/README.md b/node_modules/@csstools/postcss-ic-unit/README.md
deleted file mode 100644
index 871f98d2..00000000
--- a/node_modules/@csstools/postcss-ic-unit/README.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# PostCSS IC Unit [<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-ic-unit.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/ic-unit.svg" height="20">][css-url]
-[<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/ic-unit.svg" height="20">][css-url]
-
-[PostCSS IC Unit] lets you use the ic length unit, following the [CSS Values and Units Module] specification.
-
-```pcss
-p {
- text-indent: 2ic;
-}
-
-.bubble {
- width: calc(8ic + 20px);
-}
-
-/* becomes */
-p {
- text-indent: 2em;
-}
-
-.bubble {
- width: calc(8em + 20px);
-}
-```
-
-_See prior work by [JLHwung](https://github.com/JLHwung) here [postcss-ic-unit](https://github.com/JLHwung/postcss-ic-unit)
-To ensure long term maintenance and to provide the needed features this plugin was recreated based on JLHwung's work._
-
-## Usage
-
-Add [PostCSS IC Unit] to your project:
-
-```bash
-npm install postcss @csstools/postcss-ic-unit --save-dev
-```
-
-Use it as a [PostCSS] plugin:
-
-```js
-const postcss = require('postcss');
-const postcssIcUnit = require('@csstools/postcss-ic-unit');
-
-postcss([
- postcssIcUnit(/* pluginOptions */)
-]).process(YOUR_CSS /*, processOptions */);
-```
-
-[PostCSS IC Unit] 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 not preserved.
-
-```js
-postcssIcUnit({ preserve: true })
-```
-
-```pcss
-p {
- text-indent: 2ic;
-}
-
-/* becomes */
-
-p {
- text-indent: 2em;
- text-indent: 2ic;
-}
-```
-
-[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/#ic-unit
-[discord]: https://discord.gg/bUadyRwkJS
-[npm-url]: https://www.npmjs.com/package/@csstools/postcss-ic-unit
-
-[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
-[CSS Values and Units Module]: https://www.w3.org/TR/css-values-4/#ic
-[PostCSS IC Unit]: https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit
diff --git a/node_modules/@csstools/postcss-ic-unit/dist/index.cjs b/node_modules/@csstools/postcss-ic-unit/dist/index.cjs
deleted file mode 100644
index e3e574cc..00000000
--- a/node_modules/@csstools/postcss-ic-unit/dist/index.cjs
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";var s=require("@csstools/postcss-progressive-custom-properties"),e=require("postcss-value-parser"),r=require("@csstools/utilities");const t=/ic\b/i,o=/\(font-size: \d+ic\)/i,basePlugin=s=>({postcssPlugin:"postcss-ic-unit",Declaration(i){if(!t.test(i.value))return;if(r.hasFallback(i))return;if(r.hasSupportsAtRuleAncestor(i,o))return;const u=e(i.value);u.walk((s=>{if(!s.type||"word"!==s.type)return;const r=e.unit(s.value);r&&"ic"===r.unit.toLowerCase()&&(s.value=`${r.number}em`)}));const c=String(u);c!==i.value&&(i.cloneBefore({value:c}),s?.preserve||i.remove())}});basePlugin.postcss=!0;const postcssPlugin=e=>{const r=Object.assign({preserve:!1,enableProgressiveCustomProperties:!0},e);return r.enableProgressiveCustomProperties&&r.preserve?{postcssPlugin:"postcss-ic-unit",plugins:[s(),basePlugin(r)]}:basePlugin(r)};postcssPlugin.postcss=!0,module.exports=postcssPlugin;
diff --git a/node_modules/@csstools/postcss-ic-unit/dist/index.d.ts b/node_modules/@csstools/postcss-ic-unit/dist/index.d.ts
deleted file mode 100644
index d894fc82..00000000
--- a/node_modules/@csstools/postcss-ic-unit/dist/index.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import type { PluginCreator } from 'postcss';
-
-/** postcss-ic-unit 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-ic-unit/dist/index.mjs b/node_modules/@csstools/postcss-ic-unit/dist/index.mjs
deleted file mode 100644
index f69d6fcb..00000000
--- a/node_modules/@csstools/postcss-ic-unit/dist/index.mjs
+++ /dev/null
@@ -1 +0,0 @@
-import s from"@csstools/postcss-progressive-custom-properties";import e from"postcss-value-parser";import{hasFallback as t,hasSupportsAtRuleAncestor as r}from"@csstools/utilities";const o=/ic\b/i,i=/\(font-size: \d+ic\)/i,basePlugin=s=>({postcssPlugin:"postcss-ic-unit",Declaration(n){if(!o.test(n.value))return;if(t(n))return;if(r(n,i))return;const c=e(n.value);c.walk((s=>{if(!s.type||"word"!==s.type)return;const t=e.unit(s.value);t&&"ic"===t.unit.toLowerCase()&&(s.value=`${t.number}em`)}));const u=String(c);u!==n.value&&(n.cloneBefore({value:u}),s?.preserve||n.remove())}});basePlugin.postcss=!0;const postcssPlugin=e=>{const t=Object.assign({preserve:!1,enableProgressiveCustomProperties:!0},e);return t.enableProgressiveCustomProperties&&t.preserve?{postcssPlugin:"postcss-ic-unit",plugins:[s(),basePlugin(t)]}:basePlugin(t)};postcssPlugin.postcss=!0;export{postcssPlugin as default};
diff --git a/node_modules/@csstools/postcss-ic-unit/package.json b/node_modules/@csstools/postcss-ic-unit/package.json
deleted file mode 100644
index 872011c7..00000000
--- a/node_modules/@csstools/postcss-ic-unit/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "name": "@csstools/postcss-ic-unit",
- "description": "Use the ic length unit",
- "version": "3.0.7",
- "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/postcss-progressive-custom-properties": "^3.3.0",
- "@csstools/utilities": "^1.0.0",
- "postcss-value-parser": "^4.2.0"
- },
- "peerDependencies": {
- "postcss": "^8.4"
- },
- "scripts": {},
- "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-ic-unit#readme",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/csstools/postcss-plugins.git",
- "directory": "plugins/postcss-ic-unit"
- },
- "bugs": "https://github.com/csstools/postcss-plugins/issues",
- "keywords": [
- "CJK water ideograph",
- "css",
- "glyph",
- "ic",
- "length",
- "postcss-plugin",
- "values"
- ]
-}