diff options
Diffstat (limited to 'node_modules/@csstools/postcss-logical-float-and-clear')
7 files changed, 37 insertions, 60 deletions
diff --git a/node_modules/@csstools/postcss-logical-float-and-clear/CHANGELOG.md b/node_modules/@csstools/postcss-logical-float-and-clear/CHANGELOG.md index b11158f8..bf477f34 100644 --- a/node_modules/@csstools/postcss-logical-float-and-clear/CHANGELOG.md +++ b/node_modules/@csstools/postcss-logical-float-and-clear/CHANGELOG.md @@ -1,5 +1,11 @@ # Changes to PostCSS Logical Float And Clear +### 2.0.1 + +_December 15, 2023_ + +- Fix type definitions + ### 2.0.0 _July 3, 2023_ @@ -12,8 +18,4 @@ _January 28, 2023_ - Improve `types` declaration in `package.json` -### 1.0.0 - -_January 19, 2023_ - -- Initial version +[Full CHANGELOG](https://github.com/csstools/postcss-plugins/tree/main/plugins/postcss-logical-float-and-clear/CHANGELOG.md) diff --git a/node_modules/@csstools/postcss-logical-float-and-clear/README.md b/node_modules/@csstools/postcss-logical-float-and-clear/README.md index 268c3085..e350d956 100644 --- a/node_modules/@csstools/postcss-logical-float-and-clear/README.md +++ b/node_modules/@csstools/postcss-logical-float-and-clear/README.md @@ -2,6 +2,10 @@ [<img alt="npm version" src="https://img.shields.io/npm/v/@csstools/postcss-logical-float-and-clear.svg" height="20">][npm-url] [<img alt="CSS Standard Status" src="https://cssdb.org/images/badges/float-clear-logical-values.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 @csstools/postcss-logical-float-and-clear --save-dev +``` + [PostCSS Logical Float And Clear] lets you use logical, rather than physical, direction and dimension mappings in CSS, following the [CSS Logical Properties and Values] specification. ```pcss @@ -52,9 +56,9 @@ instructions for: ### inlineDirection -The `inlineDirection` option allows you to specify the direction of the inline axe. The default value is `left-to-right` respectively which would match any latin language. +The `inlineDirection` option allows you to specify the direction of the inline axe. The default value is `left-to-right`, which would match any latin language. -You might want to tweak these value if you are using a different writing system, such as Arabic, Hebrew or Chinese for example. +**You should tweak this value so that it is specific to your language and writing mode.** ```js postcssLogicalFloatAndClear({ diff --git a/node_modules/@csstools/postcss-logical-float-and-clear/dist/index.d.ts b/node_modules/@csstools/postcss-logical-float-and-clear/dist/index.d.ts index 8faa333f..44d0817a 100644 --- a/node_modules/@csstools/postcss-logical-float-and-clear/dist/index.d.ts +++ b/node_modules/@csstools/postcss-logical-float-and-clear/dist/index.d.ts @@ -1,9 +1,19 @@ import type { PluginCreator } from 'postcss'; -import { DirectionFlow } from './lib/types'; + +declare const creator: PluginCreator<pluginOptions>; +export default creator; + +export declare enum DirectionFlow { + TopToBottom = "top-to-bottom", + BottomToTop = "bottom-to-top", + RightToLeft = "right-to-left", + LeftToRight = "left-to-right" +} + /** postcss-logical-float-and-clear plugin options */ -export type pluginOptions = { +export declare type pluginOptions = { /** Sets the direction for inline. default: left-to-right */ inlineDirection?: DirectionFlow; }; -declare const creator: PluginCreator<pluginOptions>; -export default creator; + +export { } diff --git a/node_modules/@csstools/postcss-logical-float-and-clear/dist/lib/clone-declaration.d.ts b/node_modules/@csstools/postcss-logical-float-and-clear/dist/lib/clone-declaration.d.ts deleted file mode 100644 index 1503bf6f..00000000 --- a/node_modules/@csstools/postcss-logical-float-and-clear/dist/lib/clone-declaration.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import type { Declaration } from 'postcss'; -export declare function cloneDeclaration(declaration: Declaration, value: string, prop: string): void; diff --git a/node_modules/@csstools/postcss-logical-float-and-clear/dist/lib/types.d.ts b/node_modules/@csstools/postcss-logical-float-and-clear/dist/lib/types.d.ts deleted file mode 100644 index 2b3c47f9..00000000 --- a/node_modules/@csstools/postcss-logical-float-and-clear/dist/lib/types.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export declare const DirectionValues: { - BlockStart: string; - BlockEnd: string; - InlineStart: string; - InlineEnd: string; -}; -export declare enum DirectionFlow { - TopToBottom = "top-to-bottom", - BottomToTop = "bottom-to-top", - RightToLeft = "right-to-left", - LeftToRight = "left-to-right" -} -export declare enum Axes { - Top = "top", - Right = "right", - Bottom = "bottom", - Left = "left" -} diff --git a/node_modules/@csstools/postcss-logical-float-and-clear/dist/utils/direction-flow-to-axes.d.ts b/node_modules/@csstools/postcss-logical-float-and-clear/dist/utils/direction-flow-to-axes.d.ts deleted file mode 100644 index 2652d71d..00000000 --- a/node_modules/@csstools/postcss-logical-float-and-clear/dist/utils/direction-flow-to-axes.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { DirectionFlow, Axes } from '../lib/types'; -export declare function directionFlowToAxes(directionFlow: DirectionFlow): [Axes, Axes]; diff --git a/node_modules/@csstools/postcss-logical-float-and-clear/package.json b/node_modules/@csstools/postcss-logical-float-and-clear/package.json index 5738faeb..dad11611 100644 --- a/node_modules/@csstools/postcss-logical-float-and-clear/package.json +++ b/node_modules/@csstools/postcss-logical-float-and-clear/package.json @@ -1,7 +1,7 @@ { "name": "@csstools/postcss-logical-float-and-clear", "description": "Use flow-relative (inline-start and inline-end) values for float and clear", - "version": "2.0.0", + "version": "2.0.1", "contributors": [ { "name": "Antonio Laguna", @@ -27,15 +27,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": [ @@ -47,17 +50,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-logical-float-and-clear#readme", "repository": { "type": "git", @@ -74,14 +66,5 @@ "logical", "postcss", "postcss-plugin" - ], - "csstools": { - "cssdbId": "float-clear-logical-values", - "exportName": "postcssLogicalFloatAndClear", - "humanReadableName": "PostCSS Logical Float And Clear", - "specUrl": "https://www.w3.org/TR/css-logical-1/#float-clear" - }, - "volta": { - "extends": "../../package.json" - } + ] } |
