diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-12-21 22:46:53 +0800 |
| commit | f06956efd2dc4bf77244a9fcce2b883a00b925af (patch) | |
| tree | 0123cb73ce67f1f4b17e1d6cbabff076ee44e31b /node_modules/postcss-gap-properties | |
| parent | 8d980c13970c15b6d2312b6fc4ac51698dd0d220 (diff) | |
updated node modules
Diffstat (limited to 'node_modules/postcss-gap-properties')
| -rw-r--r-- | node_modules/postcss-gap-properties/CHANGELOG.md | 64 | ||||
| -rw-r--r-- | node_modules/postcss-gap-properties/README.md | 4 | ||||
| -rw-r--r-- | node_modules/postcss-gap-properties/dist/index.cjs | 2 | ||||
| -rw-r--r-- | node_modules/postcss-gap-properties/dist/index.d.ts | 10 | ||||
| -rw-r--r-- | node_modules/postcss-gap-properties/dist/index.mjs | 2 | ||||
| -rw-r--r-- | node_modules/postcss-gap-properties/package.json | 37 |
6 files changed, 30 insertions, 89 deletions
diff --git a/node_modules/postcss-gap-properties/CHANGELOG.md b/node_modules/postcss-gap-properties/CHANGELOG.md index 4e948d8e..0f83fa39 100644 --- a/node_modules/postcss-gap-properties/CHANGELOG.md +++ b/node_modules/postcss-gap-properties/CHANGELOG.md @@ -1,5 +1,11 @@ # Changes to PostCSS Gap Properties +### 5.0.1 + +_December 15, 2023_ + +- Fix type definitions + ### 5.0.0 _July 3, 2023_ @@ -12,60 +18,4 @@ _January 28, 2023_ - Improve `types` declaration in `package.json` -### 4.0.0 - -_January 24, 2023_ - -- Updated: Support for Node v14+ (major). -- Added: TypeScript support. - -### 3.0.5 - -_July 12, 2022_ - -- Fix detection of `display: grid;` - -### 3.0.4 - -_July 8, 2022_ - -- Fix case insensitive matching. - -### 3.0.3 - -_February 5, 2022_ - -- Improved `es module` and `commonjs` compatibility - -### 3.0.2 - -_January 2, 2022_ - -- Removed Sourcemaps from package tarball. -- Moved CLI to CLI Package. See [announcement](https://github.com/csstools/postcss-plugins/discussions/121). - -### 3.0.1 - -_December 13, 2021_ - -- Updated: documentation - -### 3.0.0 - -_September 17, 2021_ - -- Updated: Support for PostCS 8+ (major). -- Updated: Support for Node 12+ (major). - -### 2.0.0 - -_September 17, 2018_ - -- Updated: Support for PostCSS v7+ -- Updated: Support for Node v6+ - -### 1.0.0 - -_April 30, 2018_ - -- Initial version +[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gap-properties/CHANGELOG.md) diff --git a/node_modules/postcss-gap-properties/README.md b/node_modules/postcss-gap-properties/README.md index b7eab9fd..0f7f2d2a 100644 --- a/node_modules/postcss-gap-properties/README.md +++ b/node_modules/postcss-gap-properties/README.md @@ -2,6 +2,10 @@ [<img alt="npm version" src="https://img.shields.io/npm/v/postcss-gap-properties.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/gap-properties.svg" height="20">][css-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] +```bash +npm install postcss-gap-properties --save-dev +``` + [PostCSS Gap Properties] lets you use the `gap`, `column-gap`, and `row-gap` shorthand properties in CSS, following the [CSS Grid Layout] specification. diff --git a/node_modules/postcss-gap-properties/dist/index.cjs b/node_modules/postcss-gap-properties/dist/index.cjs index 7af188d7..9e3db031 100644 --- a/node_modules/postcss-gap-properties/dist/index.cjs +++ b/node_modules/postcss-gap-properties/dist/index.cjs @@ -1 +1 @@ -"use strict";const e=["column-gap","gap","row-gap"],creator=o=>{const r=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-gap-properties",Declaration(o){var s,p;if(!e.includes(o.prop.toLowerCase()))return;if(!(null!=(s=o.parent)&&s.some((e=>"decl"===e.type&&("display"===e.prop.toLowerCase()&&"grid"===e.value.toLowerCase())))))return;const t=`grid-${o.prop.toLowerCase()}`;(null==(p=o.parent)?void 0:p.some((e=>"decl"===e.type&&e.prop.toLowerCase()===t)))||(o.cloneBefore({prop:t}),r.preserve||o.remove())}}};creator.postcss=!0,module.exports=creator; +"use strict";const e=["column-gap","gap","row-gap"],creator=o=>{const r=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-gap-properties",Declaration(o){if(!e.includes(o.prop.toLowerCase()))return;if(!o.parent?.some((e=>"decl"===e.type&&("display"===e.prop.toLowerCase()&&"grid"===e.value.toLowerCase()))))return;const s=`grid-${o.prop.toLowerCase()}`,p=o.parent?.some((e=>"decl"===e.type&&e.prop.toLowerCase()===s));p||(o.cloneBefore({prop:s}),r.preserve||o.remove())}}};creator.postcss=!0,module.exports=creator; diff --git a/node_modules/postcss-gap-properties/dist/index.d.ts b/node_modules/postcss-gap-properties/dist/index.d.ts index 8330bff7..2cc7af8f 100644 --- a/node_modules/postcss-gap-properties/dist/index.d.ts +++ b/node_modules/postcss-gap-properties/dist/index.d.ts @@ -1,8 +1,12 @@ import type { PluginCreator } from 'postcss'; + +declare const creator: PluginCreator<pluginOptions>; +export default creator; + /** postcss-gap-properties plugin options */ -export type pluginOptions = { +export declare type pluginOptions = { /** Preserve the original notation. default: true */ preserve?: boolean; }; -declare const creator: PluginCreator<pluginOptions>; -export default creator; + +export { } diff --git a/node_modules/postcss-gap-properties/dist/index.mjs b/node_modules/postcss-gap-properties/dist/index.mjs index 604df9ae..f4883c97 100644 --- a/node_modules/postcss-gap-properties/dist/index.mjs +++ b/node_modules/postcss-gap-properties/dist/index.mjs @@ -1 +1 @@ -const e=["column-gap","gap","row-gap"],creator=o=>{const r=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-gap-properties",Declaration(o){var p,s;if(!e.includes(o.prop.toLowerCase()))return;if(!(null!=(p=o.parent)&&p.some((e=>"decl"===e.type&&("display"===e.prop.toLowerCase()&&"grid"===e.value.toLowerCase())))))return;const t=`grid-${o.prop.toLowerCase()}`;(null==(s=o.parent)?void 0:s.some((e=>"decl"===e.type&&e.prop.toLowerCase()===t)))||(o.cloneBefore({prop:t}),r.preserve||o.remove())}}};creator.postcss=!0;export{creator as default}; +const e=["column-gap","gap","row-gap"],creator=o=>{const r=Object.assign({preserve:!0},o);return{postcssPlugin:"postcss-gap-properties",Declaration(o){if(!e.includes(o.prop.toLowerCase()))return;if(!o.parent?.some((e=>"decl"===e.type&&("display"===e.prop.toLowerCase()&&"grid"===e.value.toLowerCase()))))return;const p=`grid-${o.prop.toLowerCase()}`,s=o.parent?.some((e=>"decl"===e.type&&e.prop.toLowerCase()===p));s||(o.cloneBefore({prop:p}),r.preserve||o.remove())}}};creator.postcss=!0;export{creator as default}; diff --git a/node_modules/postcss-gap-properties/package.json b/node_modules/postcss-gap-properties/package.json index bea3e4b2..c002c574 100644 --- a/node_modules/postcss-gap-properties/package.json +++ b/node_modules/postcss-gap-properties/package.json @@ -1,7 +1,7 @@ { "name": "postcss-gap-properties", "description": "Use the gap, column-gap, and row-gap shorthand properties in CSS", - "version": "5.0.0", + "version": "5.0.1", "contributors": [ { "name": "Antonio Laguna", @@ -31,15 +31,18 @@ "engines": { "node": "^14 || ^16 || >=18" }, + "type": "module", "main": "dist/index.cjs", "module": "dist/index.mjs", - "types": "dist/index.d.ts", "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.cjs", - "default": "./dist/index.mjs" + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" + }, + "require": { + "default": "./dist/index.cjs" + } } }, "files": [ @@ -51,17 +54,6 @@ "peerDependencies": { "postcss": "^8.4" }, - "devDependencies": { - "@csstools/postcss-tape": "*" - }, - "scripts": { - "build": "rollup -c ../../rollup/default.mjs", - "docs": "node ../../.github/bin/generate-docs/install.mjs && node ../../.github/bin/generate-docs/readme.mjs", - "lint": "node ../../.github/bin/format-package-json.mjs", - "prepublishOnly": "npm run build && npm run test", - "test": "node .tape.mjs && node ./test/_import.mjs && node ./test/_require.cjs", - "test:rewrite-expects": "REWRITE_EXPECTS=true node .tape.mjs" - }, "homepage": "https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-gap-properties#readme", "repository": { "type": "git", @@ -80,14 +72,5 @@ "prefixes", "rows", "shorthands" - ], - "csstools": { - "cssdbId": "gap-properties", - "exportName": "postcssGapProperties", - "humanReadableName": "PostCSS Gap Properties", - "specUrl": "https://www.w3.org/TR/css-grid-1/#gutters" - }, - "volta": { - "extends": "../../package.json" - } + ] } |
