diff --git a/.github/bin/generate-docs/api-documenter.mjs b/.github/bin/generate-docs/api-documenter.mjs index 9143b4ea6..aac3f58d1 100644 --- a/.github/bin/generate-docs/api-documenter.mjs +++ b/.github/bin/generate-docs/api-documenter.mjs @@ -2,55 +2,53 @@ import { spawn } from 'child_process'; import { platform } from 'process'; import path from 'path'; import fs from 'fs'; +import { getFiles } from '../util/get-files.mjs'; -import { listWorkspaces } from "../list-workspaces/list-workspaces.mjs"; +const packageJSONInfo = JSON.parse(fs.readFileSync('./package.json', 'utf8')); +if (packageJSONInfo.private) { + process.exit(0); +} -const workspaces = await listWorkspaces(); +const unscopedName = packageJSONInfo.name.replace(/^@[^/]+\//, ''); -for (const workspace of workspaces) { - await runApiDocumenter(workspace); +const docsExist = fs.existsSync(path.join('docs', unscopedName + '.api.json')); +if (!docsExist) { + process.exit(0); } -async function runApiDocumenter(workspace) { - await new Promise((resolve, reject) => { - if (workspace.private) { - resolve(true); - - return; +const docsContents = fs.readFileSync(path.join('docs', unscopedName + '.api.json'), 'utf8'); + +await new Promise((resolve, reject) => { + const publishCmd = spawn( + 'npm', + [ + 'exec', + '--', + 'api-documenter', + 'markdown', + '--input-folder', + 'docs', + '--output-folder', + 'docs', + ], + { + stdio: 'inherit', + shell: platform === 'win32' } + ); - const docsExist = fs.existsSync(path.join(workspace.path, 'docs', workspace.unscopedName + '.api.json')); - if (!docsExist) { - resolve(true); - - return; + publishCmd.on('close', (code) => { + if (0 !== code) { + reject(new Error(`'api-documenter' exited with code ${code}`)); } - const publishCmd = spawn( - 'npm', - [ - 'exec', - '--', - 'api-documenter', - 'markdown', - '--input-folder', - path.join(workspace.path, 'docs'), - '--output-folder', - path.join(workspace.path, 'api-reference'), - ], - { - stdio: 'inherit', - shell: platform === 'win32' - } - ); - - publishCmd.on('close', (code) => { - if (0 !== code) { - reject(new Error(`'npm publish' exited with code ${code} for ${packageName}`)); - return; - } - - resolve(true); - }); + fs.writeFileSync(path.join('docs', unscopedName + '.api.json'), docsContents); + resolve(); }); +}); + +for (const file of await getFiles('docs', true)) { + const fileContents = fs.readFileSync(file, 'utf8').toString(); + const cleanFileContents = fileContents.replace(/\r\n/g, "\n"); + fs.writeFileSync(file, cleanFileContents); } diff --git a/api-extractor.json b/api-extractor.json index 33f47559e..f15b343b3 100644 --- a/api-extractor.json +++ b/api-extractor.json @@ -407,6 +407,10 @@ "ae-forgotten-export": { "logLevel": "error" + }, + + "ae-internal-missing-underscore": { + "logLevel": "none" } // // . . . diff --git a/knip.json b/knip.json index a6259a739..a0e17bf3f 100644 --- a/knip.json +++ b/knip.json @@ -122,6 +122,7 @@ "ignoreDependencies": [ "@babel/core", "@babel/preset-env", + "@microsoft/api-documenter", "@stryker-mutator/command-runner", "tslib" ] diff --git a/package-lock.json b/package-lock.json index ae7107a49..525f7809a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,6 +28,7 @@ "devDependencies": { "@babel/core": "^7.23.6", "@babel/preset-env": "^7.23.6", + "@microsoft/api-documenter": "^7.23.15", "@microsoft/api-extractor": "^7.39.0", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^25.0.7", @@ -2290,6 +2291,12 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@eslint/eslintrc/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -2315,6 +2322,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/@eslint/eslintrc/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/@eslint/eslintrc/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -2569,6 +2588,24 @@ "node": ">= 0.4" } }, + "node_modules/@microsoft/api-documenter": { + "version": "7.23.15", + "resolved": "https://registry.npmjs.org/@microsoft/api-documenter/-/api-documenter-7.23.15.tgz", + "integrity": "sha512-dOMuxPtpINTO/P9NXcww0iIJ3yZnt5jiy1XQT/Hv21TjyVjcxYlICItvoagyz5B+T8w8sV7KEx/rcIwVPGAWuQ==", + "dev": true, + "dependencies": { + "@microsoft/api-extractor-model": "7.28.3", + "@microsoft/tsdoc": "0.14.2", + "@rushstack/node-core-library": "3.62.0", + "@rushstack/ts-command-line": "4.17.1", + "colors": "~1.2.1", + "js-yaml": "~3.13.1", + "resolve": "~1.22.1" + }, + "bin": { + "api-documenter": "bin/api-documenter" + } + }, "node_modules/@microsoft/api-extractor": { "version": "7.39.0", "resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.39.0.tgz", @@ -3007,12 +3044,12 @@ } }, "node_modules/@pnpm/core-loggers": { - "version": "9.0.5", - "resolved": "https://registry.npmjs.org/@pnpm/core-loggers/-/core-loggers-9.0.5.tgz", - "integrity": "sha512-o0gwxOsFjV5usbNbKNLV8ubF4MakdnNsmPvcL9q+npIs4OR+VmJK4PdhEqwtq2ac2ZiJosrhqSNNwIM5E+ynKg==", + "version": "9.0.6", + "resolved": "https://registry.npmjs.org/@pnpm/core-loggers/-/core-loggers-9.0.6.tgz", + "integrity": "sha512-iK67SGbp+06bA/elpg51wygPFjNA7JKHtKkpLxqXXHw+AjFFBC3f2OznJsCIuDK6HdGi5UhHLYqo5QxJ2gMqJQ==", "dev": true, "dependencies": { - "@pnpm/types": "9.4.1" + "@pnpm/types": "9.4.2" }, "engines": { "node": ">=16.14" @@ -3143,18 +3180,18 @@ "dev": true }, "node_modules/@pnpm/npm-resolver": { - "version": "18.0.1", - "resolved": "https://registry.npmjs.org/@pnpm/npm-resolver/-/npm-resolver-18.0.1.tgz", - "integrity": "sha512-r4oNWHOwgnVu33Ijm20F60bYV8zMoACGun9SVxoKDVaIWt+5d5cKoVr9BVzKmxOyFNs1l32hGhEIibWiSCRDYQ==", + "version": "18.0.2", + "resolved": "https://registry.npmjs.org/@pnpm/npm-resolver/-/npm-resolver-18.0.2.tgz", + "integrity": "sha512-YfjSHpaFgYvqMomKNLMa49pVabGvaSeEBX3J9j1v7FGtzad7SPZ+BH7ObPLHkIm4rA9K5zvuTJ8gBwMiGQJcQg==", "dev": true, "dependencies": { - "@pnpm/core-loggers": "9.0.5", + "@pnpm/core-loggers": "9.0.6", "@pnpm/error": "5.0.2", "@pnpm/fetching-types": "5.0.0", "@pnpm/graceful-fs": "3.2.0", "@pnpm/resolve-workspace-range": "5.0.1", - "@pnpm/resolver-base": "11.0.1", - "@pnpm/types": "9.4.1", + "@pnpm/resolver-base": "11.0.2", + "@pnpm/types": "9.4.2", "@zkochan/retry": "^0.2.0", "encode-registry": "^3.0.1", "load-json-file": "^6.2.0", @@ -3165,7 +3202,7 @@ "parse-npm-tarball-url": "^3.0.0", "path-temp": "^2.1.0", "ramda": "npm:@pnpm/ramda@0.28.1", - "rename-overwrite": "^4.0.4", + "rename-overwrite": "^5.0.0", "semver": "^7.5.4", "ssri": "10.0.5", "version-selector-type": "^3.0.0" @@ -3271,12 +3308,12 @@ "dev": true }, "node_modules/@pnpm/resolver-base": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/@pnpm/resolver-base/-/resolver-base-11.0.1.tgz", - "integrity": "sha512-0EJ8dZqsaa/MCwB49NGNGy2WIIv3KU8xGkskDfSPpi5I5EyiIEVSi7NzUJp8rchrCbotFbOc+IHswHLeF2TSsw==", + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/@pnpm/resolver-base/-/resolver-base-11.0.2.tgz", + "integrity": "sha512-g6VXB/LK7DugXiCPG62qmYtuypVt44nnwyXYkTv86FKudI5d5Wy1FLkYAYKCj+No9h1GG3eSSwGH1NL0y4IbYg==", "dev": true, "dependencies": { - "@pnpm/types": "9.4.1" + "@pnpm/types": "9.4.2" }, "engines": { "node": ">=16.14" @@ -3286,9 +3323,9 @@ } }, "node_modules/@pnpm/types": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/@pnpm/types/-/types-9.4.1.tgz", - "integrity": "sha512-X7k9wdk5XlW1uo9Nq38nSzqRvOAxrPcrzgx8xm2T3DtRsLYsiBbzcGZyqrGpsW37lYf/KLZwoTVMeQkACPE64Q==", + "version": "9.4.2", + "resolved": "https://registry.npmjs.org/@pnpm/types/-/types-9.4.2.tgz", + "integrity": "sha512-g1hcF8Nv4gd76POilz9gD4LITAPXOe5nX4ijgr8ixCbLQZfcpYiMfJ+C1RlMNRUDo8vhlNB4O3bUlxmT6EAQXA==", "dev": true, "engines": { "node": ">=16.14" @@ -3298,13 +3335,13 @@ } }, "node_modules/@pnpm/workspace.pkgs-graph": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/@pnpm/workspace.pkgs-graph/-/workspace.pkgs-graph-2.0.12.tgz", - "integrity": "sha512-Snezd9HrVb+GztDhHC1ZdkL6+xf4lnmSlMpfE6K88ih2STlsZRIOaZKsjBTjJwIMeo6c+KQlSsy9qfwD3ODj4A==", + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/@pnpm/workspace.pkgs-graph/-/workspace.pkgs-graph-2.0.13.tgz", + "integrity": "sha512-XwpApD7dGCxL0xAwNANakxq4Ou91WMWZDF/IkMDnVGS1I3Xxh9tpQExpfpuxFPd//WofPJnxOi6AlXQS4D9bFA==", "dev": true, "dependencies": { "@pnpm/npm-package-arg": "^1.0.0", - "@pnpm/npm-resolver": "18.0.1", + "@pnpm/npm-resolver": "18.0.2", "@pnpm/resolve-workspace-range": "5.0.1", "ramda": "npm:@pnpm/ramda@0.28.1" }, @@ -4025,9 +4062,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.10.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.4.tgz", - "integrity": "sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg==", + "version": "20.10.5", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.5.tgz", + "integrity": "sha512-nNPsNE65wjMxEKI93yOP+NPGGBJz/PoN3kZsVLee0XMiJolxSekEVD8wRwBUBqkwc7UWop0edW50yrCQW4CyRw==", "dev": true, "dependencies": { "undici-types": "~5.26.4" @@ -4056,16 +4093,16 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.15.0.tgz", - "integrity": "sha512-j5qoikQqPccq9QoBAupOP+CBu8BaJ8BLjaXSioDISeTZkVO3ig7oSIKh3H+rEpee7xCXtWwSB4KIL5l6hWZzpg==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.16.0.tgz", + "integrity": "sha512-O5f7Kv5o4dLWQtPX4ywPPa+v9G+1q1x8mz0Kr0pXUtKsevo+gIJHLkGc8RxaZWtP8RrhwhSNIWThnW42K9/0rQ==", "dev": true, "dependencies": { "@eslint-community/regexpp": "^4.5.1", - "@typescript-eslint/scope-manager": "6.15.0", - "@typescript-eslint/type-utils": "6.15.0", - "@typescript-eslint/utils": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0", + "@typescript-eslint/scope-manager": "6.16.0", + "@typescript-eslint/type-utils": "6.16.0", + "@typescript-eslint/utils": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", "debug": "^4.3.4", "graphemer": "^1.4.0", "ignore": "^5.2.4", @@ -4124,15 +4161,15 @@ "dev": true }, "node_modules/@typescript-eslint/parser": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.15.0.tgz", - "integrity": "sha512-MkgKNnsjC6QwcMdlNAel24jjkEO/0hQaMDLqP4S9zq5HBAUJNQB6y+3DwLjX7b3l2b37eNAxMPLwb3/kh8VKdA==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.16.0.tgz", + "integrity": "sha512-H2GM3eUo12HpKZU9njig3DF5zJ58ja6ahj1GoHEHOgQvYxzoFJJEvC1MQ7T2l9Ha+69ZSOn7RTxOdpC/y3ikMw==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "6.15.0", - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/typescript-estree": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0", + "@typescript-eslint/scope-manager": "6.16.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/typescript-estree": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", "debug": "^4.3.4" }, "engines": { @@ -4152,13 +4189,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.15.0.tgz", - "integrity": "sha512-+BdvxYBltqrmgCNu4Li+fGDIkW9n//NrruzG9X1vBzaNK+ExVXPoGB71kneaVw/Jp+4rH/vaMAGC6JfMbHstVg==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.16.0.tgz", + "integrity": "sha512-0N7Y9DSPdaBQ3sqSCwlrm9zJwkpOuc6HYm7LpzLAPqBL7dmzAUimr4M29dMkOP/tEwvOCC/Cxo//yOfJD3HUiw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0" + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0" }, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -4169,13 +4206,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.15.0.tgz", - "integrity": "sha512-CnmHKTfX6450Bo49hPg2OkIm/D/TVYV7jO1MCfPYGwf6x3GO0VU8YMO5AYMn+u3X05lRRxA4fWCz87GFQV6yVQ==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.16.0.tgz", + "integrity": "sha512-ThmrEOcARmOnoyQfYkHw/DX2SEYBalVECmoldVuH6qagKROp/jMnfXpAU/pAIWub9c4YTxga+XwgAkoA0pxfmg==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "6.15.0", - "@typescript-eslint/utils": "6.15.0", + "@typescript-eslint/typescript-estree": "6.16.0", + "@typescript-eslint/utils": "6.16.0", "debug": "^4.3.4", "ts-api-utils": "^1.0.1" }, @@ -4196,9 +4233,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.15.0.tgz", - "integrity": "sha512-yXjbt//E4T/ee8Ia1b5mGlbNj9fB9lJP4jqLbZualwpP2BCQ5is6BcWwxpIsY4XKAhmdv3hrW92GdtJbatC6dQ==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.16.0.tgz", + "integrity": "sha512-hvDFpLEvTJoHutVl87+MG/c5C8I6LOgEx05zExTSJDEVU7hhR3jhV8M5zuggbdFCw98+HhZWPHZeKS97kS3JoQ==", "dev": true, "engines": { "node": "^16.0.0 || >=18.0.0" @@ -4209,16 +4246,17 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.15.0.tgz", - "integrity": "sha512-7mVZJN7Hd15OmGuWrp2T9UvqR2Ecg+1j/Bp1jXUEY2GZKV6FXlOIoqVDmLpBiEiq3katvj/2n2mR0SDwtloCew==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.16.0.tgz", + "integrity": "sha512-VTWZuixh/vr7nih6CfrdpmFNLEnoVBF1skfjdyGnNwXOH1SLeHItGdZDHhhAIzd3ACazyY2Fg76zuzOVTaknGA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/visitor-keys": "6.15.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/visitor-keys": "6.16.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", + "minimatch": "9.0.3", "semver": "^7.5.4", "ts-api-utils": "^1.0.1" }, @@ -4269,17 +4307,17 @@ "dev": true }, "node_modules/@typescript-eslint/utils": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.15.0.tgz", - "integrity": "sha512-eF82p0Wrrlt8fQSRL0bGXzK5nWPRV2dYQZdajcfzOD9+cQz9O7ugifrJxclB+xVOvWvagXfqS4Es7vpLP4augw==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.16.0.tgz", + "integrity": "sha512-T83QPKrBm6n//q9mv7oiSvy/Xq/7Hyw9SzSEhMHJwznEmQayfBM87+oAlkNAMEO7/MjIwKyOHgBJbxB0s7gx2A==", "dev": true, "dependencies": { "@eslint-community/eslint-utils": "^4.4.0", "@types/json-schema": "^7.0.12", "@types/semver": "^7.5.0", - "@typescript-eslint/scope-manager": "6.15.0", - "@typescript-eslint/types": "6.15.0", - "@typescript-eslint/typescript-estree": "6.15.0", + "@typescript-eslint/scope-manager": "6.16.0", + "@typescript-eslint/types": "6.16.0", + "@typescript-eslint/typescript-estree": "6.16.0", "semver": "^7.5.4" }, "engines": { @@ -4327,12 +4365,12 @@ "dev": true }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "6.15.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.15.0.tgz", - "integrity": "sha512-1zvtdC1a9h5Tb5jU9x3ADNXO9yjP8rXlaoChu0DQX40vf5ACVpYIVIZhIMZ6d5sDXH7vq4dsZBT1fEGj8D2n2w==", + "version": "6.16.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.16.0.tgz", + "integrity": "sha512-QSFQLruk7fhs91a/Ep/LqRdbJCZ1Rq03rqBdKT5Ky17Sz8zRLUksqIe9DW0pKtg/Z35/ztbLQ6qpOCN6rOC11A==", "dev": true, "dependencies": { - "@typescript-eslint/types": "6.15.0", + "@typescript-eslint/types": "6.16.0", "eslint-visitor-keys": "^3.4.1" }, "engines": { @@ -4861,9 +4899,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001568", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001568.tgz", - "integrity": "sha512-vSUkH84HontZJ88MiNrOau1EBrCqEQYgkC5gIySiDlpsm8sGVrhU7Kx4V6h0tnqaHzIHZv08HlJIwPbL4XL9+A==", + "version": "1.0.30001571", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001571.tgz", + "integrity": "sha512-tYq/6MoXhdezDLFZuCO/TKboTzuQ/xR5cFdgXPfDtM7/kchBO3b4VWghE/OAi/DV7tTdhmLjZiZBZi1fA/GheQ==", "funding": [ { "type": "opencollective", @@ -5132,6 +5170,24 @@ } } }, + "node_modules/cosmiconfig/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/cosmiconfig/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/cross-fetch": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", @@ -5401,9 +5457,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.609", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.609.tgz", - "integrity": "sha512-ihiCP7PJmjoGNuLpl7TjNA8pCQWu09vGyjlPYw1Rqww4gvNuCcmvl+44G+2QyJ6S2K4o+wbTS++Xz0YN8Q9ERw==" + "version": "1.4.616", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.616.tgz", + "integrity": "sha512-1n7zWYh8eS0L9Uy+GskE0lkBUNK83cXTVJI0pU3mGprFsbfSdAc15VTFbo+A+Bq4pwstmL30AVcEU3Fo463lNg==" }, "node_modules/emoji-regex": { "version": "10.3.0", @@ -5592,6 +5648,12 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/eslint/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, "node_modules/eslint/node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -5672,6 +5734,18 @@ "node": ">=8" } }, + "node_modules/eslint/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/eslint/node_modules/minimatch": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", @@ -5926,9 +6000,9 @@ } }, "node_modules/fastq": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", - "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.16.0.tgz", + "integrity": "sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==", "dev": true, "dependencies": { "reusify": "^1.0.4" @@ -6873,23 +6947,18 @@ "dev": true }, "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "version": "3.13.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz", + "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "dev": true, "dependencies": { - "argparse": "^2.0.1" + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, - "node_modules/js-yaml/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", @@ -7022,6 +7091,12 @@ "typescript": ">=5.0.4" } }, + "node_modules/knip/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, "node_modules/knip/node_modules/chalk": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", @@ -7054,6 +7129,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/knip/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, "node_modules/knip/node_modules/path-type": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/path-type/-/path-type-5.0.0.tgz", @@ -7391,12 +7478,12 @@ } }, "node_modules/meow": { - "version": "12.1.1", - "resolved": "https://registry.npmjs.org/meow/-/meow-12.1.1.tgz", - "integrity": "sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-13.0.0.tgz", + "integrity": "sha512-4Hu+75Vo7EOR+8C9RmkabfLijuwd9SrzQ8f0SyC4qZZwU6BlxeOt5ulF3PGCpcMJX4hI+ktpJhea0P6PN1RiWw==", "dev": true, "engines": { - "node": ">=16.10" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -8574,14 +8661,40 @@ "integrity": "sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw==", "dev": true }, + "node_modules/postcss-safe-parser": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.0.0.tgz", + "integrity": "sha512-ovehqRNVCpuFzbXoTb4qLtyzK3xn3t/CUBxOs8LsnQjQrShaB4lKiHoVqY8ANaC0hBMHq5QVWk77rwGklFUDrg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss-safe-parser" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "engines": { + "node": ">=18.0" + }, + "peerDependencies": { + "postcss": "^8.4.31" + } + }, "node_modules/postcss-selector-not": { "resolved": "plugins/postcss-selector-not", "link": true }, "node_modules/postcss-selector-parser": { - "version": "6.0.13", - "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz", - "integrity": "sha512-EaV1Gl4mUEV4ddhDnv/xtj7sxwrwxdetHdWUGnT4VJQf+4d05v6lHYZr8N573k5Z0BViss7BDhfWtKS3+sfAqQ==", + "version": "6.0.14", + "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.14.tgz", + "integrity": "sha512-65xXYsT40i9GyWzlHQ5ShZoK7JZdySeOozi/tz2EezDo6c04q6+ckYMeoY7idaie1qp2dT5KoYQ2yky6JuoHnA==", "dependencies": { "cssesc": "^3.0.0", "util-deprecate": "^1.0.2" @@ -8860,9 +8973,9 @@ } }, "node_modules/regenerator-runtime": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.0.tgz", - "integrity": "sha512-srw17NI0TUWHuGa5CFGGmhfNIeja30WMBfbslPNhf6JrqQlLN5gcrvig1oqPxiVaXb0oW0XRKtH6Nngs5lKCIA==", + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", "dev": true }, "node_modules/regenerator-transform": { @@ -8913,9 +9026,9 @@ } }, "node_modules/rename-overwrite": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/rename-overwrite/-/rename-overwrite-4.0.4.tgz", - "integrity": "sha512-5MC+p5npnyaJlFkwTHb0pqU2mkUkkW65ZWH8qwxcDlv+5nchtalcdzG+gaaianbWWwvwxi7vu7WSg6jdCweKug==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/rename-overwrite/-/rename-overwrite-5.0.0.tgz", + "integrity": "sha512-vSxE5Ww7Jnyotvaxi3Dj0vOMoojH8KMkBfs9xYeW/qNfJiLTcC1fmwTjrbGUq3mQSOCxkG0DbdcvwTUrpvBN4w==", "dev": true, "dependencies": { "@zkochan/rimraf": "^2.1.2", @@ -9680,15 +9793,15 @@ "dev": true }, "node_modules/stylelint": { - "version": "16.0.2", - "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.0.2.tgz", - "integrity": "sha512-SxA/rg3VWxdoHZlW0nmVueWO1E7TAKW4W6mmA3iTxxEF9bIeQdFZu2oiBlQYyNe1pGnOamOqo2XYnI7cs5Bgow==", + "version": "16.1.0", + "resolved": "https://registry.npmjs.org/stylelint/-/stylelint-16.1.0.tgz", + "integrity": "sha512-Sh1rRV0lN1qxz/QsuuooLWsIZ/ona7NKw/fRZd6y6PyXYdD2W0EAzJ8yJcwSx4Iw/muz0CF09VZ+z4EiTAcKmg==", "dev": true, "dependencies": { - "@csstools/css-parser-algorithms": "^2.3.2", - "@csstools/css-tokenizer": "^2.2.1", - "@csstools/media-query-list-parser": "^2.1.5", - "@csstools/selector-specificity": "^3.0.0", + "@csstools/css-parser-algorithms": "^2.4.0", + "@csstools/css-tokenizer": "^2.2.2", + "@csstools/media-query-list-parser": "^2.1.6", + "@csstools/selector-specificity": "^3.0.1", "balanced-match": "^2.0.0", "colord": "^2.9.3", "cosmiconfig": "^9.0.0", @@ -9697,7 +9810,7 @@ "debug": "^4.3.4", "fast-glob": "^3.3.2", "fastest-levenshtein": "^1.0.16", - "file-entry-cache": "^7.0.2", + "file-entry-cache": "^8.0.0", "global-modules": "^2.0.0", "globby": "^11.1.0", "globjoin": "^0.1.4", @@ -9707,7 +9820,7 @@ "is-plain-object": "^5.0.0", "known-css-properties": "^0.29.0", "mathml-tag-names": "^2.1.3", - "meow": "^12.1.1", + "meow": "^13.0.0", "micromatch": "^4.0.5", "normalize-path": "^3.0.0", "picocolors": "^1.0.0", @@ -9763,6 +9876,12 @@ "url": "https://github.com/chalk/ansi-regex?sponsor=1" } }, + "node_modules/stylelint/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, "node_modules/stylelint/node_modules/balanced-match": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-2.0.0.tgz", @@ -9796,41 +9915,63 @@ } }, "node_modules/stylelint/node_modules/file-entry-cache": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-7.0.2.tgz", - "integrity": "sha512-TfW7/1iI4Cy7Y8L6iqNdZQVvdXn0f8B4QcIXmkIbtTIe/Okm/nSlHb4IwGzRVOd3WfSieCgvf5cMzEfySAIl0g==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", + "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", "dev": true, "dependencies": { - "flat-cache": "^3.2.0" + "flat-cache": "^4.0.0" }, "engines": { - "node": ">=12.0.0" + "node": ">=16.0.0" } }, - "node_modules/stylelint/node_modules/postcss-safe-parser": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/postcss-safe-parser/-/postcss-safe-parser-7.0.0.tgz", - "integrity": "sha512-ovehqRNVCpuFzbXoTb4qLtyzK3xn3t/CUBxOs8LsnQjQrShaB4lKiHoVqY8ANaC0hBMHq5QVWk77rwGklFUDrg==", + "node_modules/stylelint/node_modules/flat-cache": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.0.tgz", + "integrity": "sha512-EryKbCE/wxpxKniQlyas6PY1I9vwtF3uCBweX+N8KYTCn3Y12RTGtQAJ/bd5pl7kxUAc8v/R3Ake/N17OZiFqA==", "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/postcss/" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/postcss-safe-parser" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.4", + "rimraf": "^5.0.5" + }, "engines": { - "node": ">=18.0" + "node": ">=16" + } + }, + "node_modules/stylelint/node_modules/glob": { + "version": "10.3.10", + "resolved": "https://registry.npmjs.org/glob/-/glob-10.3.10.tgz", + "integrity": "sha512-fa46+tv1Ak0UPK1TOy/pZrIybNNt4HCv7SDzwyfiOZkvZLEbjsZkJBPtDHVshZjbecAoAGSC20MjLDG/qr679g==", + "dev": true, + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" }, - "peerDependencies": { - "postcss": "^8.4.31" + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/stylelint/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" } }, "node_modules/stylelint/node_modules/resolve-from": { @@ -9842,6 +9983,24 @@ "node": ">=8" } }, + "node_modules/stylelint/node_modules/rimraf": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", + "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", + "dev": true, + "dependencies": { + "glob": "^10.3.7" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/stylelint/node_modules/strip-ansi": { "version": "7.1.0", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", diff --git a/package.json b/package.json index ef5ee5933..6bc043348 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@babel/core": "^7.23.6", "@babel/preset-env": "^7.23.6", "@microsoft/api-extractor": "^7.39.0", + "@microsoft/api-documenter": "^7.23.15", "@rollup/plugin-babel": "^6.0.3", "@rollup/plugin-commonjs": "^25.0.7", "@rollup/plugin-node-resolve": "^15.2.3", diff --git a/packages/cascade-layer-name-parser/api-extractor.json b/packages/cascade-layer-name-parser/api-extractor.json index 42058be51..ccef9beeb 100644 --- a/packages/cascade-layer-name-parser/api-extractor.json +++ b/packages/cascade-layer-name-parser/api-extractor.json @@ -1,4 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.json" + "extends": "../../api-extractor.json", + "docModel": { + "enabled": true + } } diff --git a/packages/cascade-layer-name-parser/dist/index.d.ts b/packages/cascade-layer-name-parser/dist/index.d.ts index 225d9fdac..5865e6c87 100644 --- a/packages/cascade-layer-name-parser/dist/index.d.ts +++ b/packages/cascade-layer-name-parser/dist/index.d.ts @@ -24,8 +24,11 @@ export declare function parse(source: string, options?: { onParseError?: (error: ParseError) => void; }): LayerName[]; +/** + * Parses an array of {@link https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/docs/css-tokenizer.csstoken.md | CSSTokens} into a list of cascade layer names. + */ export declare function parseFromTokens(tokens: Array, options?: { onParseError?: (error: ParseError) => void; -}): LayerName[]; +}): Array; export { } diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.addlayertomodel.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.addlayertomodel.md new file mode 100644 index 000000000..c3c29df94 --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.addlayertomodel.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [addLayerToModel](./cascade-layer-name-parser.addlayertomodel.md) + +## addLayerToModel() function + +**Signature:** + +```typescript +export declare function addLayerToModel(layers: Array, currentLayerNames: Array): LayerName[]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| layers | Array<[LayerName](./cascade-layer-name-parser.layername.md)> | | +| currentLayerNames | Array<[LayerName](./cascade-layer-name-parser.layername.md)> | | + +**Returns:** + +[LayerName](./cascade-layer-name-parser.layername.md)\[\] + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.api.json b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.api.json new file mode 100644 index 000000000..c35805fbd --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.api.json @@ -0,0 +1,901 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@csstools/cascade-layer-name-parser!", + "docComment": "", + "name": "@csstools/cascade-layer-name-parser", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@csstools/cascade-layer-name-parser!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@csstools/cascade-layer-name-parser!addLayerToModel:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function addLayerToModel(layers: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "LayerName", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", currentLayerNames: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "LayerName", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "LayerName", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/model.d.ts", + "returnTypeTokenRange": { + "startIndex": 11, + "endIndex": 13 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "layers", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "currentLayerNames", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 10 + }, + "isOptional": false + } + ], + "name": "addLayerToModel" + }, + { + "kind": "Class", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class LayerName " + } + ], + "fileUrlPath": "dist/_types/nodes/layer-name.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "LayerName", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `LayerName` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(parts: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "parts", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName#concat:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "concat(other: " + }, + { + "kind": "Reference", + "text": "LayerName", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "LayerName", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "other", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "concat" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName#equal:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "equal(other: " + }, + { + "kind": "Reference", + "text": "LayerName", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "other", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "equal" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName#name:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "name" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName#parts:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "parts: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "parts", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName#segments:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "segments(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "segments" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName#slice:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "slice(start: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", end: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "LayerName", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "start", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "end", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "slice" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName#toJSON:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJSON(): " + }, + { + "kind": "Content", + "text": "{\n parts: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": "[];\n segments: string[];\n name: string;\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toJSON" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@csstools/cascade-layer-name-parser!parse:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parse(source: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "LayerName", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/parser/parse.d.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "parse" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/cascade-layer-name-parser!parseFromTokens:function(1)", + "docComment": "/**\n * Parses an array of {@link https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/docs/css-tokenizer.csstoken.md | CSSTokens} into a list of cascade layer names.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parseFromTokens(tokens: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "LayerName", + "canonicalReference": "@csstools/cascade-layer-name-parser!LayerName:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/parser/parse.d.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 14 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tokens", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 9 + }, + "isOptional": true + } + ], + "name": "parseFromTokens" + } + ] + } + ] +} diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername._constructor_.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername._constructor_.md new file mode 100644 index 000000000..310703d83 --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername._constructor_.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [(constructor)](./cascade-layer-name-parser.layername._constructor_.md) + +## LayerName.(constructor) + +Constructs a new instance of the `LayerName` class + +**Signature:** + +```typescript +constructor(parts: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| parts | Array<CSSToken> | | + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.concat.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.concat.md new file mode 100644 index 000000000..e41c8b936 --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.concat.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [concat](./cascade-layer-name-parser.layername.concat.md) + +## LayerName.concat() method + +**Signature:** + +```typescript +concat(other: LayerName): LayerName; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| other | [LayerName](./cascade-layer-name-parser.layername.md) | | + +**Returns:** + +[LayerName](./cascade-layer-name-parser.layername.md) + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.equal.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.equal.md new file mode 100644 index 000000000..bb2e915e3 --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.equal.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [equal](./cascade-layer-name-parser.layername.equal.md) + +## LayerName.equal() method + +**Signature:** + +```typescript +equal(other: LayerName): boolean; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| other | [LayerName](./cascade-layer-name-parser.layername.md) | | + +**Returns:** + +boolean + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.md new file mode 100644 index 000000000..7dcda2603 --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.md @@ -0,0 +1,37 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) + +## LayerName class + +**Signature:** + +```typescript +export declare class LayerName +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(parts)](./cascade-layer-name-parser.layername._constructor_.md) | | Constructs a new instance of the LayerName class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [parts](./cascade-layer-name-parser.layername.parts.md) | | Array<CSSToken> | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [concat(other)](./cascade-layer-name-parser.layername.concat.md) | | | +| [equal(other)](./cascade-layer-name-parser.layername.equal.md) | | | +| [name()](./cascade-layer-name-parser.layername.name.md) | | | +| [segments()](./cascade-layer-name-parser.layername.segments.md) | | | +| [slice(start, end)](./cascade-layer-name-parser.layername.slice.md) | | | +| [toJSON()](./cascade-layer-name-parser.layername.tojson.md) | | | +| [tokens()](./cascade-layer-name-parser.layername.tokens.md) | | | +| [toString()](./cascade-layer-name-parser.layername.tostring.md) | | | + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.name.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.name.md new file mode 100644 index 000000000..85c08935f --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.name.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [name](./cascade-layer-name-parser.layername.name.md) + +## LayerName.name() method + +**Signature:** + +```typescript +name(): string; +``` +**Returns:** + +string + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.parts.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.parts.md new file mode 100644 index 000000000..63ca85a6b --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.parts.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [parts](./cascade-layer-name-parser.layername.parts.md) + +## LayerName.parts property + +**Signature:** + +```typescript +parts: Array; +``` diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.segments.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.segments.md new file mode 100644 index 000000000..44d932a06 --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.segments.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [segments](./cascade-layer-name-parser.layername.segments.md) + +## LayerName.segments() method + +**Signature:** + +```typescript +segments(): Array; +``` +**Returns:** + +Array<string> + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.slice.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.slice.md new file mode 100644 index 000000000..2f693728a --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.slice.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [slice](./cascade-layer-name-parser.layername.slice.md) + +## LayerName.slice() method + +**Signature:** + +```typescript +slice(start: number, end: number): LayerName; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| start | number | | +| end | number | | + +**Returns:** + +[LayerName](./cascade-layer-name-parser.layername.md) + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.tojson.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.tojson.md new file mode 100644 index 000000000..133d6759f --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.tojson.md @@ -0,0 +1,19 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [toJSON](./cascade-layer-name-parser.layername.tojson.md) + +## LayerName.toJSON() method + +**Signature:** + +```typescript +toJSON(): { + parts: CSSToken[]; + segments: string[]; + name: string; + }; +``` +**Returns:** + +{ parts: CSSToken\[\]; segments: string\[\]; name: string; } + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.tokens.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.tokens.md new file mode 100644 index 000000000..60e66fd1a --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [tokens](./cascade-layer-name-parser.layername.tokens.md) + +## LayerName.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.tostring.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.tostring.md new file mode 100644 index 000000000..e026219ee --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.layername.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [LayerName](./cascade-layer-name-parser.layername.md) > [toString](./cascade-layer-name-parser.layername.tostring.md) + +## LayerName.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.md new file mode 100644 index 000000000..1ad192008 --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) + +## cascade-layer-name-parser package + +## Classes + +| Class | Description | +| --- | --- | +| [LayerName](./cascade-layer-name-parser.layername.md) | | + +## Functions + +| Function | Description | +| --- | --- | +| [addLayerToModel(layers, currentLayerNames)](./cascade-layer-name-parser.addlayertomodel.md) | | +| [parse(source, options)](./cascade-layer-name-parser.parse.md) | | +| [parseFromTokens(tokens, options)](./cascade-layer-name-parser.parsefromtokens.md) | Parses an array of [CSSTokens](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/docs/css-tokenizer.csstoken.md) into a list of cascade layer names. | + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.parse.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.parse.md new file mode 100644 index 000000000..17b986dce --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.parse.md @@ -0,0 +1,25 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [parse](./cascade-layer-name-parser.parse.md) + +## parse() function + +**Signature:** + +```typescript +export declare function parse(source: string, options?: { + onParseError?: (error: ParseError) => void; +}): LayerName[]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| source | string | | +| options | { onParseError?: (error: ParseError) => void; } | _(Optional)_ | + +**Returns:** + +[LayerName](./cascade-layer-name-parser.layername.md)\[\] + diff --git a/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.parsefromtokens.md b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.parsefromtokens.md new file mode 100644 index 000000000..0881603f9 --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/cascade-layer-name-parser.parsefromtokens.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) > [parseFromTokens](./cascade-layer-name-parser.parsefromtokens.md) + +## parseFromTokens() function + +Parses an array of [CSSTokens](https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/docs/css-tokenizer.csstoken.md) into a list of cascade layer names. + +**Signature:** + +```typescript +export declare function parseFromTokens(tokens: Array, options?: { + onParseError?: (error: ParseError) => void; +}): Array; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| tokens | Array<CSSToken> | | +| options | { onParseError?: (error: ParseError) => void; } | _(Optional)_ | + +**Returns:** + +Array<[LayerName](./cascade-layer-name-parser.layername.md)> + diff --git a/packages/cascade-layer-name-parser/docs/index.md b/packages/cascade-layer-name-parser/docs/index.md new file mode 100644 index 000000000..8b39b6ad9 --- /dev/null +++ b/packages/cascade-layer-name-parser/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [@csstools/cascade-layer-name-parser](./cascade-layer-name-parser.md) | | + diff --git a/packages/cascade-layer-name-parser/package.json b/packages/cascade-layer-name-parser/package.json index f68d4750d..85567c9be 100644 --- a/packages/cascade-layer-name-parser/package.json +++ b/packages/cascade-layer-name-parser/package.json @@ -53,6 +53,7 @@ }, "scripts": { "build": "rollup -c ../../rollup/default.mjs", + "docs": "node ../../.github/bin/generate-docs/api-documenter.mjs", "lint": "node ../../.github/bin/format-package-json.mjs", "prepublishOnly": "npm run build && npm run test", "stryker": "stryker run --logLevel error", diff --git a/packages/cascade-layer-name-parser/src/parser/parse.ts b/packages/cascade-layer-name-parser/src/parser/parse.ts index 31d556b09..e3fdb320e 100644 --- a/packages/cascade-layer-name-parser/src/parser/parse.ts +++ b/packages/cascade-layer-name-parser/src/parser/parse.ts @@ -3,12 +3,15 @@ import { parseCommaSeparatedListOfComponentValues } from '@csstools/css-parser-a import { CSSToken, tokenizer, TokenType, ParseError } from '@csstools/css-tokenizer'; import { LayerName } from '../nodes/layer-name'; +/** + * Parses an array of {@link https://github.com/csstools/postcss-plugins/tree/main/packages/css-tokenizer/docs/css-tokenizer.csstoken.md | CSSTokens} into a list of cascade layer names. + */ export function parseFromTokens( tokens: Array, options?: { onParseError?: (error: ParseError) => void }, -) { +): Array { const componentValuesLists = parseCommaSeparatedListOfComponentValues(tokens, { onParseError: options?.onParseError, }); diff --git a/packages/color-helpers/api-extractor.json b/packages/color-helpers/api-extractor.json index 42058be51..ccef9beeb 100644 --- a/packages/color-helpers/api-extractor.json +++ b/packages/color-helpers/api-extractor.json @@ -1,4 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.json" + "extends": "../../api-extractor.json", + "docModel": { + "enabled": true + } } diff --git a/packages/color-helpers/docs/color-helpers.a98_rgb_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.a98_rgb_to_xyz_d50.md new file mode 100644 index 000000000..46f17d492 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.a98_rgb_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [a98\_RGB\_to\_XYZ\_D50](./color-helpers.a98_rgb_to_xyz_d50.md) + +## a98\_RGB\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function a98_RGB_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.api.json b/packages/color-helpers/docs/color-helpers.api.json new file mode 100644 index 000000000..e3e13d5e2 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.api.json @@ -0,0 +1,2284 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + }, + { + "tagName": "@license", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@copyright", + "syntaxKind": "block", + "allowMultiple": true + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@csstools/color-helpers!", + "docComment": "", + "name": "@csstools/color-helpers", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@csstools/color-helpers!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!a98_RGB_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function a98_RGB_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "a98_RGB_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!clip:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function clip(color: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/utils/clip.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "color", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "clip" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/color-helpers!Color:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type Color = " + }, + { + "kind": "Content", + "text": "[number, number, number]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/types/color.d.ts", + "releaseTag": "Public", + "name": "Color", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!gam_P3:function(1)", + "docComment": "/**\n * Convert an array of linear-light display-p3 RGB in the range 0.0-1.0 to gamma corrected form\n *\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function gam_P3(RGB: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/gam-p3.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "RGB", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "gam_P3" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!gam_sRGB:function(1)", + "docComment": "/**\n * Convert an array of linear-light sRGB values in the range 0.0-1.0 to gamma corrected form Extended transfer function: For negative values, linear portion extends on reflection of axis, then uses reflected pow below that\n *\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n *\n * @see\n *\n * https://en.wikipedia.org/wiki/SRGB\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function gam_sRGB(RGB: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/gam-srgb.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "RGB", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "gam_sRGB" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!HSL_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [h, s, l] - Hue as degrees 0..360; - Saturation as number 0..100; - Lightness as number 0..100; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function HSL_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "HSL_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!HWB_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [h, w, b] - Hue as degrees 0..360; - Whiteness as number 0..100; - Blackness as number 0..100; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function HWB_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "HWB_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!inGamut:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function inGamut(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/utils/in-gamut.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "inGamut" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!Lab_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [l, a, b] - Lightness as number 0..100; - a as number -160..160; - b as number -160..160; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function Lab_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "Lab_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!LCH_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [l, c, h] - Lightness as number 0..100; - Chroma as number 0..230; - Hue as degrees 0..360; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function LCH_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "LCH_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!lin_P3_to_XYZ:function(1)", + "docComment": "/**\n * Convert an array of linear-light display-p3 values to CIE XYZ using D65 (no chromatic adaptation)\n *\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n *\n * @see\n *\n * http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function lin_P3_to_XYZ(rgb: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/lin-p3-to-xyz.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "rgb", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "lin_P3_to_XYZ" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!lin_P3:function(1)", + "docComment": "/**\n * Convert an array of display-p3 RGB values in the range 0.0 - 1.0 to linear light (un-companded) form.\n *\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function lin_P3(RGB: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/lin-p3.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "RGB", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "lin_P3" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!lin_sRGB_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function lin_sRGB_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "lin_sRGB_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!lin_sRGB_to_XYZ:function(1)", + "docComment": "/**\n * Convert an array of linear-light sRGB values to CIE XYZ using sRGB's own white, D65 (no chromatic adaptation)\n *\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function lin_sRGB_to_XYZ(rgb: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/lin-srgb-to-xyz.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "rgb", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "lin_sRGB_to_XYZ" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!lin_sRGB:function(1)", + "docComment": "/**\n * Convert an array of of sRGB values where in-gamut values are in the range [0 - 1] to linear light (un-companded) form. Extended transfer function: For negative values, linear portion is extended on reflection of axis, then reflected power function is used.\n *\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n *\n * @see\n *\n * https://en.wikipedia.org/wiki/SRGB\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function lin_sRGB(RGB: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/lin-srgb.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "RGB", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "lin_sRGB" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!mapGamut:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function mapGamut(startOKLCH: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ", toDestination: " + }, + { + "kind": "Content", + "text": "(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ", fromDestination: " + }, + { + "kind": "Content", + "text": "(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/calculations/map-gamut.d.ts", + "returnTypeTokenRange": { + "startIndex": 13, + "endIndex": 14 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "startOKLCH", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "toDestination", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "fromDestination", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 12 + }, + "isOptional": false + } + ], + "name": "mapGamut" + }, + { + "kind": "Variable", + "canonicalReference": "@csstools/color-helpers!namedColors:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "namedColors: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "dist/_types/named-colors/index.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "namedColors", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!OKLab_to_OKLCH:function(1)", + "docComment": "/**\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n *\n * @see\n *\n * https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function OKLab_to_OKLCH(OKLab: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/oklab-to-oklch.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "OKLab", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "OKLab_to_OKLCH" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!OKLab_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [l, a, b] - Lightness as number 0..1; - a as number 0..0.5; - b as number 0..0.5; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function OKLab_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "OKLab_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!OKLab_to_XYZ:function(1)", + "docComment": "/**\n * Given OKLab, convert to XYZ relative to D65\n *\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n *\n * @see\n *\n * https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function OKLab_to_XYZ(OKLab: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/oklab-to-xyz.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "OKLab", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "OKLab_to_XYZ" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!OKLCH_to_OKLab:function(1)", + "docComment": "/**\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n *\n * @see\n *\n * https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function OKLCH_to_OKLab(OKLCH: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/oklch-to-oklab.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "OKLCH", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "OKLCH_to_OKLab" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!OKLCH_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [l, c, h] - Lightness as number 0..1; - Chroma as number 0..0.5; - Hue as degrees 0..360; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function OKLCH_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "OKLCH_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!P3_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function P3_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "P3_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!ProPhoto_RGB_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function ProPhoto_RGB_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "ProPhoto_RGB_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!rec_2020_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function rec_2020_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "rec_2020_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!sRGB_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function sRGB_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "sRGB_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_a98_RGB:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} a98 sRGB [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_a98_RGB(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_a98_RGB" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_HSL:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} HSL [r, g, b] - Hue as degrees 0..360; - Saturation as number 0..100; - Lightness as number 0..100;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_HSL(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_HSL" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_HWB:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} HWB [r, g, b] - Hue as degrees 0..360; - Whiteness as number 0..100; - Blackness as number 0..100;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_HWB(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_HWB" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_Lab:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} Lab [r, g, b] - Lightness as number 0..100; - a as number -160..160; - b as number -160..160;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_Lab(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_Lab" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_LCH:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} LCH [r, g, b] - Lightness as number 0..100; - Chroma as number 0..230; - Hue as degrees 0..360;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_LCH(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_LCH" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_lin_sRGB:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} linear sRGB [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_lin_sRGB(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_lin_sRGB" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_OKLab:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} OKLab [r, g, b] - Lightness as number 0..1; - a as number 0..0.5; - b as number 0..0.5;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_OKLab(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_OKLab" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_OKLCH:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} OKLCH [r, g, b] - Lightness as number 0..1; - Chroma as number 0..0.5; - Hue as degrees 0..360;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_OKLCH(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_OKLCH" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_P3:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} P3 [r, g, b] - R as number 0..1; - G as number 0..1; - B as number 0..1;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_P3(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_P3" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_ProPhoto:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} ProPhoto [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_ProPhoto(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_ProPhoto" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_rec_2020:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} rec 2020 [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_rec_2020(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_rec_2020" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_sRGB:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} sRGB [r, g, b] - Red as number 0..1; - Green as number 0..1; - Blue as number 0..1;\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_sRGB(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_sRGB" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D50_to_XYZ_D65:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} D65 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D50_to_XYZ_D65(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D50_to_XYZ_D65" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_D65_to_XYZ_D50:function(1)", + "docComment": "/**\n * @param color - [x, y, z] - X as number 0..1; - Y as number 0..1; - Z as number 0..1; @return {Color} D50 XYZ [x, y, z]\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_D65_to_XYZ_D50(x: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_D65_to_XYZ_D50" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_to_lin_P3:function(1)", + "docComment": "/**\n * Convert XYZ to linear-light P3\n *\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_to_lin_P3(XYZ: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz-to-lin-p3.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "XYZ", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_to_lin_P3" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_to_lin_sRGB:function(1)", + "docComment": "/**\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_to_lin_sRGB(XYZ: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz-to-lin-srgb.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "XYZ", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_to_lin_sRGB" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/color-helpers!XYZ_to_OKLab:function(1)", + "docComment": "/**\n * @license\n *\n * W3C https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document\n *\n * @copyright\n *\n * This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/blob/main/css-color-4/conversions.js. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).\n *\n * XYZ <-> LMS matrices recalculated for consistent reference white\n *\n * @see\n *\n * https://github.com/w3c/csswg-drafts/issues/6642#issuecomment-943521484\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function XYZ_to_OKLab(XYZ: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/conversions/xyz-to-oklab.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "XYZ", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "XYZ_to_OKLab" + } + ] + } + ] +} diff --git a/packages/color-helpers/docs/color-helpers.clip.md b/packages/color-helpers/docs/color-helpers.clip.md new file mode 100644 index 000000000..e284f8cd3 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.clip.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [clip](./color-helpers.clip.md) + +## clip() function + +**Signature:** + +```typescript +export declare function clip(color: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| color | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.color.md b/packages/color-helpers/docs/color-helpers.color.md new file mode 100644 index 000000000..d5330d769 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.color.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [Color](./color-helpers.color.md) + +## Color type + +**Signature:** + +```typescript +export type Color = [number, number, number]; +``` diff --git a/packages/color-helpers/docs/color-helpers.gam_p3.md b/packages/color-helpers/docs/color-helpers.gam_p3.md new file mode 100644 index 000000000..00444154a --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.gam_p3.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [gam\_P3](./color-helpers.gam_p3.md) + +## gam\_P3() function + +Convert an array of linear-light display-p3 RGB in the range 0.0-1.0 to gamma corrected form + +**Signature:** + +```typescript +export declare function gam_P3(RGB: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| RGB | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.gam_srgb.md b/packages/color-helpers/docs/color-helpers.gam_srgb.md new file mode 100644 index 000000000..70e738774 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.gam_srgb.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [gam\_sRGB](./color-helpers.gam_srgb.md) + +## gam\_sRGB() function + +Convert an array of linear-light sRGB values in the range 0.0-1.0 to gamma corrected form Extended transfer function: For negative values, linear portion extends on reflection of axis, then uses reflected pow below that + +**Signature:** + +```typescript +export declare function gam_sRGB(RGB: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| RGB | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.hsl_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.hsl_to_xyz_d50.md new file mode 100644 index 000000000..f44caf67f --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.hsl_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [HSL\_to\_XYZ\_D50](./color-helpers.hsl_to_xyz_d50.md) + +## HSL\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function HSL_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.hwb_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.hwb_to_xyz_d50.md new file mode 100644 index 000000000..47be7c010 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.hwb_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [HWB\_to\_XYZ\_D50](./color-helpers.hwb_to_xyz_d50.md) + +## HWB\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function HWB_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.ingamut.md b/packages/color-helpers/docs/color-helpers.ingamut.md new file mode 100644 index 000000000..a3087b798 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.ingamut.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [inGamut](./color-helpers.ingamut.md) + +## inGamut() function + +**Signature:** + +```typescript +export declare function inGamut(x: Color): boolean; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +boolean + diff --git a/packages/color-helpers/docs/color-helpers.lab_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.lab_to_xyz_d50.md new file mode 100644 index 000000000..9cce8813b --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.lab_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [Lab\_to\_XYZ\_D50](./color-helpers.lab_to_xyz_d50.md) + +## Lab\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function Lab_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.lch_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.lch_to_xyz_d50.md new file mode 100644 index 000000000..4d3532e0b --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.lch_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [LCH\_to\_XYZ\_D50](./color-helpers.lch_to_xyz_d50.md) + +## LCH\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function LCH_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.lin_p3.md b/packages/color-helpers/docs/color-helpers.lin_p3.md new file mode 100644 index 000000000..a747946de --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.lin_p3.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [lin\_P3](./color-helpers.lin_p3.md) + +## lin\_P3() function + +Convert an array of display-p3 RGB values in the range 0.0 - 1.0 to linear light (un-companded) form. + +**Signature:** + +```typescript +export declare function lin_P3(RGB: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| RGB | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.lin_p3_to_xyz.md b/packages/color-helpers/docs/color-helpers.lin_p3_to_xyz.md new file mode 100644 index 000000000..1f0f88955 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.lin_p3_to_xyz.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [lin\_P3\_to\_XYZ](./color-helpers.lin_p3_to_xyz.md) + +## lin\_P3\_to\_XYZ() function + +Convert an array of linear-light display-p3 values to CIE XYZ using D65 (no chromatic adaptation) + +**Signature:** + +```typescript +export declare function lin_P3_to_XYZ(rgb: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| rgb | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.lin_srgb.md b/packages/color-helpers/docs/color-helpers.lin_srgb.md new file mode 100644 index 000000000..67d88b5b0 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.lin_srgb.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [lin\_sRGB](./color-helpers.lin_srgb.md) + +## lin\_sRGB() function + +Convert an array of of sRGB values where in-gamut values are in the range \[0 - 1\] to linear light (un-companded) form. Extended transfer function: For negative values, linear portion is extended on reflection of axis, then reflected power function is used. + +**Signature:** + +```typescript +export declare function lin_sRGB(RGB: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| RGB | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.lin_srgb_to_xyz.md b/packages/color-helpers/docs/color-helpers.lin_srgb_to_xyz.md new file mode 100644 index 000000000..fc4c6f0fb --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.lin_srgb_to_xyz.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [lin\_sRGB\_to\_XYZ](./color-helpers.lin_srgb_to_xyz.md) + +## lin\_sRGB\_to\_XYZ() function + +Convert an array of linear-light sRGB values to CIE XYZ using sRGB's own white, D65 (no chromatic adaptation) + +**Signature:** + +```typescript +export declare function lin_sRGB_to_XYZ(rgb: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| rgb | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.lin_srgb_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.lin_srgb_to_xyz_d50.md new file mode 100644 index 000000000..9b07fc815 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.lin_srgb_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [lin\_sRGB\_to\_XYZ\_D50](./color-helpers.lin_srgb_to_xyz_d50.md) + +## lin\_sRGB\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function lin_sRGB_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.mapgamut.md b/packages/color-helpers/docs/color-helpers.mapgamut.md new file mode 100644 index 000000000..3a27684d3 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.mapgamut.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [mapGamut](./color-helpers.mapgamut.md) + +## mapGamut() function + +**Signature:** + +```typescript +export declare function mapGamut(startOKLCH: Color, toDestination: (x: Color) => Color, fromDestination: (x: Color) => Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| startOKLCH | [Color](./color-helpers.color.md) | | +| toDestination | (x: [Color](./color-helpers.color.md)) => [Color](./color-helpers.color.md) | | +| fromDestination | (x: [Color](./color-helpers.color.md)) => [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.md b/packages/color-helpers/docs/color-helpers.md new file mode 100644 index 000000000..2f8c91661 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.md @@ -0,0 +1,65 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) + +## color-helpers package + +## Functions + +| Function | Description | +| --- | --- | +| [a98\_RGB\_to\_XYZ\_D50(x)](./color-helpers.a98_rgb_to_xyz_d50.md) | | +| [clip(color)](./color-helpers.clip.md) | | +| [gam\_P3(RGB)](./color-helpers.gam_p3.md) | Convert an array of linear-light display-p3 RGB in the range 0.0-1.0 to gamma corrected form | +| [gam\_sRGB(RGB)](./color-helpers.gam_srgb.md) | Convert an array of linear-light sRGB values in the range 0.0-1.0 to gamma corrected form Extended transfer function: For negative values, linear portion extends on reflection of axis, then uses reflected pow below that | +| [HSL\_to\_XYZ\_D50(x)](./color-helpers.hsl_to_xyz_d50.md) | | +| [HWB\_to\_XYZ\_D50(x)](./color-helpers.hwb_to_xyz_d50.md) | | +| [inGamut(x)](./color-helpers.ingamut.md) | | +| [Lab\_to\_XYZ\_D50(x)](./color-helpers.lab_to_xyz_d50.md) | | +| [LCH\_to\_XYZ\_D50(x)](./color-helpers.lch_to_xyz_d50.md) | | +| [lin\_P3\_to\_XYZ(rgb)](./color-helpers.lin_p3_to_xyz.md) | Convert an array of linear-light display-p3 values to CIE XYZ using D65 (no chromatic adaptation) | +| [lin\_P3(RGB)](./color-helpers.lin_p3.md) | Convert an array of display-p3 RGB values in the range 0.0 - 1.0 to linear light (un-companded) form. | +| [lin\_sRGB\_to\_XYZ\_D50(x)](./color-helpers.lin_srgb_to_xyz_d50.md) | | +| [lin\_sRGB\_to\_XYZ(rgb)](./color-helpers.lin_srgb_to_xyz.md) | Convert an array of linear-light sRGB values to CIE XYZ using sRGB's own white, D65 (no chromatic adaptation) | +| [lin\_sRGB(RGB)](./color-helpers.lin_srgb.md) | Convert an array of of sRGB values where in-gamut values are in the range \[0 - 1\] to linear light (un-companded) form. Extended transfer function: For negative values, linear portion is extended on reflection of axis, then reflected power function is used. | +| [mapGamut(startOKLCH, toDestination, fromDestination)](./color-helpers.mapgamut.md) | | +| [OKLab\_to\_OKLCH(OKLab)](./color-helpers.oklab_to_oklch.md) | | +| [OKLab\_to\_XYZ\_D50(x)](./color-helpers.oklab_to_xyz_d50.md) | | +| [OKLab\_to\_XYZ(OKLab)](./color-helpers.oklab_to_xyz.md) | Given OKLab, convert to XYZ relative to D65 | +| [OKLCH\_to\_OKLab(OKLCH)](./color-helpers.oklch_to_oklab.md) | | +| [OKLCH\_to\_XYZ\_D50(x)](./color-helpers.oklch_to_xyz_d50.md) | | +| [P3\_to\_XYZ\_D50(x)](./color-helpers.p3_to_xyz_d50.md) | | +| [ProPhoto\_RGB\_to\_XYZ\_D50(x)](./color-helpers.prophoto_rgb_to_xyz_d50.md) | | +| [rec\_2020\_to\_XYZ\_D50(x)](./color-helpers.rec_2020_to_xyz_d50.md) | | +| [sRGB\_to\_XYZ\_D50(x)](./color-helpers.srgb_to_xyz_d50.md) | | +| [XYZ\_D50\_to\_a98\_RGB(x)](./color-helpers.xyz_d50_to_a98_rgb.md) | | +| [XYZ\_D50\_to\_HSL(x)](./color-helpers.xyz_d50_to_hsl.md) | | +| [XYZ\_D50\_to\_HWB(x)](./color-helpers.xyz_d50_to_hwb.md) | | +| [XYZ\_D50\_to\_Lab(x)](./color-helpers.xyz_d50_to_lab.md) | | +| [XYZ\_D50\_to\_LCH(x)](./color-helpers.xyz_d50_to_lch.md) | | +| [XYZ\_D50\_to\_lin\_sRGB(x)](./color-helpers.xyz_d50_to_lin_srgb.md) | | +| [XYZ\_D50\_to\_OKLab(x)](./color-helpers.xyz_d50_to_oklab.md) | | +| [XYZ\_D50\_to\_OKLCH(x)](./color-helpers.xyz_d50_to_oklch.md) | | +| [XYZ\_D50\_to\_P3(x)](./color-helpers.xyz_d50_to_p3.md) | | +| [XYZ\_D50\_to\_ProPhoto(x)](./color-helpers.xyz_d50_to_prophoto.md) | | +| [XYZ\_D50\_to\_rec\_2020(x)](./color-helpers.xyz_d50_to_rec_2020.md) | | +| [XYZ\_D50\_to\_sRGB(x)](./color-helpers.xyz_d50_to_srgb.md) | | +| [XYZ\_D50\_to\_XYZ\_D50(x)](./color-helpers.xyz_d50_to_xyz_d50.md) | | +| [XYZ\_D50\_to\_XYZ\_D65(x)](./color-helpers.xyz_d50_to_xyz_d65.md) | | +| [XYZ\_D65\_to\_XYZ\_D50(x)](./color-helpers.xyz_d65_to_xyz_d50.md) | | +| [XYZ\_to\_lin\_P3(XYZ)](./color-helpers.xyz_to_lin_p3.md) | Convert XYZ to linear-light P3 | +| [XYZ\_to\_lin\_sRGB(XYZ)](./color-helpers.xyz_to_lin_srgb.md) | | +| [XYZ\_to\_OKLab(XYZ)](./color-helpers.xyz_to_oklab.md) | | + +## Variables + +| Variable | Description | +| --- | --- | +| [namedColors](./color-helpers.namedcolors.md) | | + +## Type Aliases + +| Type Alias | Description | +| --- | --- | +| [Color](./color-helpers.color.md) | | + diff --git a/packages/color-helpers/docs/color-helpers.namedcolors.md b/packages/color-helpers/docs/color-helpers.namedcolors.md new file mode 100644 index 000000000..77e6f18f4 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.namedcolors.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [namedColors](./color-helpers.namedcolors.md) + +## namedColors variable + +**Signature:** + +```typescript +namedColors: Record +``` diff --git a/packages/color-helpers/docs/color-helpers.oklab_to_oklch.md b/packages/color-helpers/docs/color-helpers.oklab_to_oklch.md new file mode 100644 index 000000000..b8b24e758 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.oklab_to_oklch.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [OKLab\_to\_OKLCH](./color-helpers.oklab_to_oklch.md) + +## OKLab\_to\_OKLCH() function + +**Signature:** + +```typescript +export declare function OKLab_to_OKLCH(OKLab: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| OKLab | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.oklab_to_xyz.md b/packages/color-helpers/docs/color-helpers.oklab_to_xyz.md new file mode 100644 index 000000000..55b5ddbf2 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.oklab_to_xyz.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [OKLab\_to\_XYZ](./color-helpers.oklab_to_xyz.md) + +## OKLab\_to\_XYZ() function + +Given OKLab, convert to XYZ relative to D65 + +**Signature:** + +```typescript +export declare function OKLab_to_XYZ(OKLab: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| OKLab | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.oklab_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.oklab_to_xyz_d50.md new file mode 100644 index 000000000..25282333d --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.oklab_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [OKLab\_to\_XYZ\_D50](./color-helpers.oklab_to_xyz_d50.md) + +## OKLab\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function OKLab_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.oklch_to_oklab.md b/packages/color-helpers/docs/color-helpers.oklch_to_oklab.md new file mode 100644 index 000000000..28c46b612 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.oklch_to_oklab.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [OKLCH\_to\_OKLab](./color-helpers.oklch_to_oklab.md) + +## OKLCH\_to\_OKLab() function + +**Signature:** + +```typescript +export declare function OKLCH_to_OKLab(OKLCH: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| OKLCH | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.oklch_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.oklch_to_xyz_d50.md new file mode 100644 index 000000000..c43e57969 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.oklch_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [OKLCH\_to\_XYZ\_D50](./color-helpers.oklch_to_xyz_d50.md) + +## OKLCH\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function OKLCH_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.p3_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.p3_to_xyz_d50.md new file mode 100644 index 000000000..bb1ca3701 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.p3_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [P3\_to\_XYZ\_D50](./color-helpers.p3_to_xyz_d50.md) + +## P3\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function P3_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.prophoto_rgb_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.prophoto_rgb_to_xyz_d50.md new file mode 100644 index 000000000..677921ea8 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.prophoto_rgb_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [ProPhoto\_RGB\_to\_XYZ\_D50](./color-helpers.prophoto_rgb_to_xyz_d50.md) + +## ProPhoto\_RGB\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function ProPhoto_RGB_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.rec_2020_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.rec_2020_to_xyz_d50.md new file mode 100644 index 000000000..58820827f --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.rec_2020_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [rec\_2020\_to\_XYZ\_D50](./color-helpers.rec_2020_to_xyz_d50.md) + +## rec\_2020\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function rec_2020_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.srgb_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.srgb_to_xyz_d50.md new file mode 100644 index 000000000..728691c86 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.srgb_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [sRGB\_to\_XYZ\_D50](./color-helpers.srgb_to_xyz_d50.md) + +## sRGB\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function sRGB_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_a98_rgb.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_a98_rgb.md new file mode 100644 index 000000000..c9e3afdb3 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_a98_rgb.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_a98\_RGB](./color-helpers.xyz_d50_to_a98_rgb.md) + +## XYZ\_D50\_to\_a98\_RGB() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_a98_RGB(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_hsl.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_hsl.md new file mode 100644 index 000000000..cb110b42a --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_hsl.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_HSL](./color-helpers.xyz_d50_to_hsl.md) + +## XYZ\_D50\_to\_HSL() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_HSL(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_hwb.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_hwb.md new file mode 100644 index 000000000..de5ef5cec --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_hwb.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_HWB](./color-helpers.xyz_d50_to_hwb.md) + +## XYZ\_D50\_to\_HWB() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_HWB(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_lab.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_lab.md new file mode 100644 index 000000000..2032f7178 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_lab.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_Lab](./color-helpers.xyz_d50_to_lab.md) + +## XYZ\_D50\_to\_Lab() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_Lab(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_lch.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_lch.md new file mode 100644 index 000000000..e5ddfa491 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_lch.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_LCH](./color-helpers.xyz_d50_to_lch.md) + +## XYZ\_D50\_to\_LCH() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_LCH(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_lin_srgb.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_lin_srgb.md new file mode 100644 index 000000000..dcb568731 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_lin_srgb.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_lin\_sRGB](./color-helpers.xyz_d50_to_lin_srgb.md) + +## XYZ\_D50\_to\_lin\_sRGB() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_lin_sRGB(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_oklab.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_oklab.md new file mode 100644 index 000000000..009fd2c7e --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_oklab.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_OKLab](./color-helpers.xyz_d50_to_oklab.md) + +## XYZ\_D50\_to\_OKLab() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_OKLab(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_oklch.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_oklch.md new file mode 100644 index 000000000..10c5bac61 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_oklch.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_OKLCH](./color-helpers.xyz_d50_to_oklch.md) + +## XYZ\_D50\_to\_OKLCH() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_OKLCH(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_p3.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_p3.md new file mode 100644 index 000000000..7720961b8 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_p3.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_P3](./color-helpers.xyz_d50_to_p3.md) + +## XYZ\_D50\_to\_P3() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_P3(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_prophoto.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_prophoto.md new file mode 100644 index 000000000..a9debc767 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_prophoto.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_ProPhoto](./color-helpers.xyz_d50_to_prophoto.md) + +## XYZ\_D50\_to\_ProPhoto() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_ProPhoto(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_rec_2020.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_rec_2020.md new file mode 100644 index 000000000..ad62bc47b --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_rec_2020.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_rec\_2020](./color-helpers.xyz_d50_to_rec_2020.md) + +## XYZ\_D50\_to\_rec\_2020() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_rec_2020(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_srgb.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_srgb.md new file mode 100644 index 000000000..55c7b8a23 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_srgb.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_sRGB](./color-helpers.xyz_d50_to_srgb.md) + +## XYZ\_D50\_to\_sRGB() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_sRGB(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_xyz_d50.md new file mode 100644 index 000000000..9f97b0a41 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_XYZ\_D50](./color-helpers.xyz_d50_to_xyz_d50.md) + +## XYZ\_D50\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d50_to_xyz_d65.md b/packages/color-helpers/docs/color-helpers.xyz_d50_to_xyz_d65.md new file mode 100644 index 000000000..e51648999 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d50_to_xyz_d65.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D50\_to\_XYZ\_D65](./color-helpers.xyz_d50_to_xyz_d65.md) + +## XYZ\_D50\_to\_XYZ\_D65() function + +**Signature:** + +```typescript +export declare function XYZ_D50_to_XYZ_D65(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_d65_to_xyz_d50.md b/packages/color-helpers/docs/color-helpers.xyz_d65_to_xyz_d50.md new file mode 100644 index 000000000..219839eda --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_d65_to_xyz_d50.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_D65\_to\_XYZ\_D50](./color-helpers.xyz_d65_to_xyz_d50.md) + +## XYZ\_D65\_to\_XYZ\_D50() function + +**Signature:** + +```typescript +export declare function XYZ_D65_to_XYZ_D50(x: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_to_lin_p3.md b/packages/color-helpers/docs/color-helpers.xyz_to_lin_p3.md new file mode 100644 index 000000000..3bc55e412 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_to_lin_p3.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_to\_lin\_P3](./color-helpers.xyz_to_lin_p3.md) + +## XYZ\_to\_lin\_P3() function + +Convert XYZ to linear-light P3 + +**Signature:** + +```typescript +export declare function XYZ_to_lin_P3(XYZ: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| XYZ | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_to_lin_srgb.md b/packages/color-helpers/docs/color-helpers.xyz_to_lin_srgb.md new file mode 100644 index 000000000..9a9a8f570 --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_to_lin_srgb.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_to\_lin\_sRGB](./color-helpers.xyz_to_lin_srgb.md) + +## XYZ\_to\_lin\_sRGB() function + +**Signature:** + +```typescript +export declare function XYZ_to_lin_sRGB(XYZ: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| XYZ | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/color-helpers.xyz_to_oklab.md b/packages/color-helpers/docs/color-helpers.xyz_to_oklab.md new file mode 100644 index 000000000..40ed48b7d --- /dev/null +++ b/packages/color-helpers/docs/color-helpers.xyz_to_oklab.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/color-helpers](./color-helpers.md) > [XYZ\_to\_OKLab](./color-helpers.xyz_to_oklab.md) + +## XYZ\_to\_OKLab() function + +**Signature:** + +```typescript +export declare function XYZ_to_OKLab(XYZ: Color): Color; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| XYZ | [Color](./color-helpers.color.md) | | + +**Returns:** + +[Color](./color-helpers.color.md) + diff --git a/packages/color-helpers/docs/index.md b/packages/color-helpers/docs/index.md new file mode 100644 index 000000000..3ec2f6837 --- /dev/null +++ b/packages/color-helpers/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [@csstools/color-helpers](./color-helpers.md) | | + diff --git a/packages/color-helpers/package.json b/packages/color-helpers/package.json index 21e29e11a..e5c4f077e 100644 --- a/packages/color-helpers/package.json +++ b/packages/color-helpers/package.json @@ -51,6 +51,7 @@ "build": "rollup -c ../../rollup/default.mjs", "check-sources-integrity": "node ./scripts/check-changes.mjs", "check-sources-integrity:rewrite": "REWRITE_HASHES=true node ./scripts/check-changes.mjs", + "docs": "node ../../.github/bin/generate-docs/api-documenter.mjs", "lint": "node ../../.github/bin/format-package-json.mjs", "prepublishOnly": "npm run build && npm run test", "test": "node --test" diff --git a/packages/color-helpers/tsdoc.json b/packages/color-helpers/tsdoc.json new file mode 100644 index 000000000..3410c9a52 --- /dev/null +++ b/packages/color-helpers/tsdoc.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "extends": [ + "@microsoft/api-extractor/extends/tsdoc-base.json" + ], + "tagDefinitions": [ + { + "tagName": "@license", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@copyright", + "syntaxKind": "block", + "allowMultiple": true + } + ] +} diff --git a/packages/css-calc/api-extractor.json b/packages/css-calc/api-extractor.json index 42058be51..ccef9beeb 100644 --- a/packages/css-calc/api-extractor.json +++ b/packages/css-calc/api-extractor.json @@ -1,4 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.json" + "extends": "../../api-extractor.json", + "docModel": { + "enabled": true + } } diff --git a/packages/css-calc/docs/css-calc.api.json b/packages/css-calc/docs/css-calc.api.json new file mode 100644 index 000000000..1698e8f52 --- /dev/null +++ b/packages/css-calc/docs/css-calc.api.json @@ -0,0 +1,451 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@csstools/css-calc!", + "docComment": "", + "name": "@csstools/css-calc", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@csstools/css-calc!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@csstools/css-calc!calc:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function calc(css: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Reference", + "text": "conversionOptions", + "canonicalReference": "@csstools/css-calc!conversionOptions:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "css", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "name": "calc" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-calc!calcFromComponentValues:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function calcFromComponentValues(componentValuesList: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">>" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Reference", + "text": "conversionOptions", + "canonicalReference": "@csstools/css-calc!conversionOptions:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "[][]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "componentValuesList", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "isOptional": true + } + ], + "name": "calcFromComponentValues" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-calc!conversionOptions:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type conversionOptions = " + }, + { + "kind": "Content", + "text": "{\n globals?: " + }, + { + "kind": "Reference", + "text": "GlobalsWithStrings", + "canonicalReference": "@csstools/css-calc!GlobalsWithStrings:type" + }, + { + "kind": "Content", + "text": ";\n precision?: number;\n toCanonicalUnits?: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/options.d.ts", + "releaseTag": "Public", + "name": "conversionOptions", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-calc!GlobalsWithStrings:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type GlobalsWithStrings = " + }, + { + "kind": "Reference", + "text": "Map", + "canonicalReference": "!Map:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/globals.d.ts", + "releaseTag": "Public", + "name": "GlobalsWithStrings", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 9 + } + }, + { + "kind": "Variable", + "canonicalReference": "@csstools/css-calc!mathFunctionNames:var", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "mathFunctionNames: " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": "" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "mathFunctionNames", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + } + } + ] + } + ] +} diff --git a/packages/css-calc/docs/css-calc.calc.md b/packages/css-calc/docs/css-calc.calc.md new file mode 100644 index 000000000..7f8d15daa --- /dev/null +++ b/packages/css-calc/docs/css-calc.calc.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/css-calc](./css-calc.md) > [calc](./css-calc.calc.md) + +## calc() function + +**Signature:** + +```typescript +export declare function calc(css: string, options?: conversionOptions): string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| css | string | | +| options | [conversionOptions](./css-calc.conversionoptions.md) | _(Optional)_ | + +**Returns:** + +string + diff --git a/packages/css-calc/docs/css-calc.calcfromcomponentvalues.md b/packages/css-calc/docs/css-calc.calcfromcomponentvalues.md new file mode 100644 index 000000000..69d90e0c0 --- /dev/null +++ b/packages/css-calc/docs/css-calc.calcfromcomponentvalues.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/css-calc](./css-calc.md) > [calcFromComponentValues](./css-calc.calcfromcomponentvalues.md) + +## calcFromComponentValues() function + +**Signature:** + +```typescript +export declare function calcFromComponentValues(componentValuesList: Array>, options?: conversionOptions): ComponentValue[][]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| componentValuesList | Array<Array<ComponentValue>> | | +| options | [conversionOptions](./css-calc.conversionoptions.md) | _(Optional)_ | + +**Returns:** + +ComponentValue\[\]\[\] + diff --git a/packages/css-calc/docs/css-calc.conversionoptions.md b/packages/css-calc/docs/css-calc.conversionoptions.md new file mode 100644 index 000000000..95a16258f --- /dev/null +++ b/packages/css-calc/docs/css-calc.conversionoptions.md @@ -0,0 +1,17 @@ + + +[Home](./index.md) > [@csstools/css-calc](./css-calc.md) > [conversionOptions](./css-calc.conversionoptions.md) + +## conversionOptions type + +**Signature:** + +```typescript +export type conversionOptions = { + globals?: GlobalsWithStrings; + precision?: number; + toCanonicalUnits?: boolean; +}; +``` +**References:** [GlobalsWithStrings](./css-calc.globalswithstrings.md) + diff --git a/packages/css-calc/docs/css-calc.globalswithstrings.md b/packages/css-calc/docs/css-calc.globalswithstrings.md new file mode 100644 index 000000000..dde4de0ea --- /dev/null +++ b/packages/css-calc/docs/css-calc.globalswithstrings.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-calc](./css-calc.md) > [GlobalsWithStrings](./css-calc.globalswithstrings.md) + +## GlobalsWithStrings type + +**Signature:** + +```typescript +export type GlobalsWithStrings = Map; +``` diff --git a/packages/css-calc/docs/css-calc.mathfunctionnames.md b/packages/css-calc/docs/css-calc.mathfunctionnames.md new file mode 100644 index 000000000..d3adc2c4a --- /dev/null +++ b/packages/css-calc/docs/css-calc.mathfunctionnames.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-calc](./css-calc.md) > [mathFunctionNames](./css-calc.mathfunctionnames.md) + +## mathFunctionNames variable + +**Signature:** + +```typescript +mathFunctionNames: Set +``` diff --git a/packages/css-calc/docs/css-calc.md b/packages/css-calc/docs/css-calc.md new file mode 100644 index 000000000..9247f087d --- /dev/null +++ b/packages/css-calc/docs/css-calc.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [@csstools/css-calc](./css-calc.md) + +## css-calc package + +## Functions + +| Function | Description | +| --- | --- | +| [calc(css, options)](./css-calc.calc.md) | | +| [calcFromComponentValues(componentValuesList, options)](./css-calc.calcfromcomponentvalues.md) | | + +## Variables + +| Variable | Description | +| --- | --- | +| [mathFunctionNames](./css-calc.mathfunctionnames.md) | | + +## Type Aliases + +| Type Alias | Description | +| --- | --- | +| [conversionOptions](./css-calc.conversionoptions.md) | | +| [GlobalsWithStrings](./css-calc.globalswithstrings.md) | | + diff --git a/packages/css-calc/docs/index.md b/packages/css-calc/docs/index.md new file mode 100644 index 000000000..dff5431b1 --- /dev/null +++ b/packages/css-calc/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [@csstools/css-calc](./css-calc.md) | | + diff --git a/packages/css-calc/package.json b/packages/css-calc/package.json index 82be51099..c6417fe03 100644 --- a/packages/css-calc/package.json +++ b/packages/css-calc/package.json @@ -53,6 +53,7 @@ }, "scripts": { "build": "rollup -c ../../rollup/default.mjs", + "docs": "node ../../.github/bin/generate-docs/api-documenter.mjs", "lint": "node ../../.github/bin/format-package-json.mjs", "prepublishOnly": "npm run build && npm run test", "stryker": "stryker run --logLevel error", diff --git a/packages/css-color-parser/api-extractor.json b/packages/css-color-parser/api-extractor.json index 42058be51..ccef9beeb 100644 --- a/packages/css-color-parser/api-extractor.json +++ b/packages/css-color-parser/api-extractor.json @@ -1,4 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.json" + "extends": "../../api-extractor.json", + "docModel": { + "enabled": true + } } diff --git a/packages/css-color-parser/docs/css-color-parser.api.json b/packages/css-color-parser/docs/css-color-parser.api.json new file mode 100644 index 000000000..63b1262f1 --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.api.json @@ -0,0 +1,1377 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@csstools/css-color-parser!", + "docComment": "", + "name": "@csstools/css-color-parser", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@csstools/css-color-parser!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@csstools/css-color-parser!color:function(1)", + "docComment": "/**\n * Convert a color function to a `ColorData` object.\n *\n * @param colorNode - The color function to be converted.\n *\n * @returns {ColorData|false} The color function as a `ColorData` object or `false` if it could not be converted.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function color(colorNode: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ColorData", + "canonicalReference": "@csstools/css-color-parser!ColorData:type" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "colorNode", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "color" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-color-parser!ColorData:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type ColorData = " + }, + { + "kind": "Content", + "text": "{\n colorNotation: " + }, + { + "kind": "Reference", + "text": "ColorNotation", + "canonicalReference": "@csstools/css-color-parser!ColorNotation:enum" + }, + { + "kind": "Content", + "text": ";\n channels: " + }, + { + "kind": "Reference", + "text": "Color", + "canonicalReference": "@csstools/color-helpers!Color:type" + }, + { + "kind": "Content", + "text": ";\n alpha: number | " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ";\n syntaxFlags: " + }, + { + "kind": "Reference", + "text": "Set", + "canonicalReference": "!Set:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "SyntaxFlag", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag:enum" + }, + { + "kind": "Content", + "text": ">;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/color-data.d.ts", + "releaseTag": "Public", + "name": "ColorData", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-color-parser!colorDataFitsDisplayP3_Gamut:function(1)", + "docComment": "/**\n * Check if a color data object fits the `display-p3` gamut.\n *\n * @param x - The color data to be checked.\n *\n * @returns {boolean} Whether the color data fits the `display-p3` gamut.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function colorDataFitsDisplayP3_Gamut(x: " + }, + { + "kind": "Reference", + "text": "ColorData", + "canonicalReference": "@csstools/css-color-parser!ColorData:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/color-data.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "colorDataFitsDisplayP3_Gamut" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-color-parser!colorDataFitsRGB_Gamut:function(1)", + "docComment": "/**\n * Check if a color data object fits the `sRGB` gamut.\n *\n * @param x - The color data to be checked.\n *\n * @returns {boolean} Whether the color data fits the `sRGB` gamut.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function colorDataFitsRGB_Gamut(x: " + }, + { + "kind": "Reference", + "text": "ColorData", + "canonicalReference": "@csstools/css-color-parser!ColorData:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/color-data.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "colorDataFitsRGB_Gamut" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-color-parser!colorDataTo:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function colorDataTo(colorData: " + }, + { + "kind": "Reference", + "text": "ColorData", + "canonicalReference": "@csstools/css-color-parser!ColorData:type" + }, + { + "kind": "Content", + "text": ", toNotation: " + }, + { + "kind": "Reference", + "text": "ColorNotation", + "canonicalReference": "@csstools/css-color-parser!ColorNotation:enum" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ColorData", + "canonicalReference": "@csstools/css-color-parser!ColorData:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/color-data.d.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "colorData", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "toNotation", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "colorDataTo" + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/css-color-parser!ColorNotation:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum ColorNotation " + } + ], + "fileUrlPath": "dist/_types/color-notation.d.ts", + "releaseTag": "Public", + "name": "ColorNotation", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.A98_RGB:member", + "docComment": "/**\n * Adobe 1999, expressed through `color(a98-rgb 0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "A98_RGB = " + }, + { + "kind": "Content", + "text": "\"a98-rgb\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "A98_RGB" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.Display_P3:member", + "docComment": "/**\n * Display P3, expressed through `color(display-p3 0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Display_P3 = " + }, + { + "kind": "Content", + "text": "\"display-p3\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Display_P3" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.HEX:member", + "docComment": "/**\n * Hex, expressed through `#000`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HEX = " + }, + { + "kind": "Content", + "text": "\"hex\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HEX" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.HSL:member", + "docComment": "/**\n * HSL, expressed through `hsl(0 0% 0%)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HSL = " + }, + { + "kind": "Content", + "text": "\"hsl\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HSL" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.HWB:member", + "docComment": "/**\n * HWB, expressed through `hwb(0 0% 0%)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HWB = " + }, + { + "kind": "Content", + "text": "\"hwb\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HWB" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.Lab:member", + "docComment": "/**\n * Lab, expressed through `lab(0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Lab = " + }, + { + "kind": "Content", + "text": "\"lab\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Lab" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.LCH:member", + "docComment": "/**\n * LCH, expressed through `lch(0 0% 0deg)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "LCH = " + }, + { + "kind": "Content", + "text": "\"lch\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "LCH" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.Linear_sRGB:member", + "docComment": "/**\n * Linear sRGB, expressed through `color(linear-srgb 0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Linear_sRGB = " + }, + { + "kind": "Content", + "text": "\"srgb-linear\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Linear_sRGB" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.OKLab:member", + "docComment": "/**\n * Oklab, expressed through `oklab(0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "OKLab = " + }, + { + "kind": "Content", + "text": "\"oklab\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "OKLab" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.OKLCH:member", + "docComment": "/**\n * Oklch, expressed through `oklch(0 0% 0deg)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "OKLCH = " + }, + { + "kind": "Content", + "text": "\"oklch\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "OKLCH" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.ProPhoto_RGB:member", + "docComment": "/**\n * ProPhoto RGB, expressed through `color(prophoto-rgb 0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ProPhoto_RGB = " + }, + { + "kind": "Content", + "text": "\"prophoto-rgb\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "ProPhoto_RGB" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.Rec2020:member", + "docComment": "/**\n * Rec. 2020, expressed through `color(rec2020 0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Rec2020 = " + }, + { + "kind": "Content", + "text": "\"rec2020\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Rec2020" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.RGB:member", + "docComment": "/**\n * RGB, expressed through `rgb(0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "RGB = " + }, + { + "kind": "Content", + "text": "\"rgb\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "RGB" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.sRGB:member", + "docComment": "/**\n * sRGB, expressed through `color(srgb 0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "sRGB = " + }, + { + "kind": "Content", + "text": "\"srgb\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "sRGB" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.XYZ_D50:member", + "docComment": "/**\n * XYZ, expressed through `color(xyz-d50 0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "XYZ_D50 = " + }, + { + "kind": "Content", + "text": "\"xyz-d50\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "XYZ_D50" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!ColorNotation.XYZ_D65:member", + "docComment": "/**\n * XYZ, expressed through `color(xyz-d65 0 0 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "XYZ_D65 = " + }, + { + "kind": "Content", + "text": "\"xyz-d65\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "XYZ_D65" + } + ] + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-color-parser!serializeHSL:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function serializeHSL(color: " + }, + { + "kind": "Reference", + "text": "ColorData", + "canonicalReference": "@csstools/css-color-parser!ColorData:type" + }, + { + "kind": "Content", + "text": ", gamutMapping?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "FunctionNode", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/serialize/hsl.d.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "color", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "gamutMapping", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "name": "serializeHSL" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-color-parser!serializeOKLCH:function(1)", + "docComment": "/**\n * Convert color data to component values in the OKLCH color space. The return value can be converted to a string by calling `toString()` on it.\n *\n * @param color - The color data to be serialized.\n *\n * @returns {FunctionNode} The serialized color data as a FunctionNode object.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function serializeOKLCH(color: " + }, + { + "kind": "Reference", + "text": "ColorData", + "canonicalReference": "@csstools/css-color-parser!ColorData:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "FunctionNode", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/serialize/oklch.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "color", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "serializeOKLCH" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-color-parser!serializeP3:function(1)", + "docComment": "/**\n * Convert color data to component values in the display-p3 color space. The return value can be converted to a string by calling `toString()` on it.\n *\n * @param color - The color data to be serialized.\n *\n * @param gamutMapping - Whether to perform gamut mapping, defaults to `true`.\n *\n * @returns {FunctionNode} The serialized color data as a FunctionNode object.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function serializeP3(color: " + }, + { + "kind": "Reference", + "text": "ColorData", + "canonicalReference": "@csstools/css-color-parser!ColorData:type" + }, + { + "kind": "Content", + "text": ", gamutMapping?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "FunctionNode", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/serialize/p3.d.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "color", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "gamutMapping", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "name": "serializeP3" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-color-parser!serializeRGB:function(1)", + "docComment": "/**\n * Convert color data to component values in the srgb color space. The return value can be converted to a string by calling `toString()` on it.\n *\n * @param color - The color data to be serialized.\n *\n * @param gamutMapping - Whether to perform gamut mapping, defaults to `true`.\n *\n * @returns {FunctionNode} The serialized color data as a FunctionNode object.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function serializeRGB(color: " + }, + { + "kind": "Reference", + "text": "ColorData", + "canonicalReference": "@csstools/css-color-parser!ColorData:type" + }, + { + "kind": "Content", + "text": ", gamutMapping?: " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "FunctionNode", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/serialize/rgb.d.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "color", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "gamutMapping", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": true + } + ], + "name": "serializeRGB" + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum SyntaxFlag " + } + ], + "fileUrlPath": "dist/_types/color-data.d.ts", + "releaseTag": "Public", + "name": "SyntaxFlag", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.ColorKeyword:member", + "docComment": "/**\n * Is a color keyword, e.g. `transparent`, `currentColor`, ...\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ColorKeyword = " + }, + { + "kind": "Content", + "text": "\"color-keyword\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "ColorKeyword" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.ColorMix:member", + "docComment": "/**\n * Is a mixed color, e.g. `color-mix(in oklch, red, blue)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ColorMix = " + }, + { + "kind": "Content", + "text": "\"color-mix\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "ColorMix" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.Experimental:member", + "docComment": "/**\n * Is an experimental color syntax\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Experimental = " + }, + { + "kind": "Content", + "text": "\"experimental\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Experimental" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.HasAlpha:member", + "docComment": "/**\n * Has an explicit alpha channel\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HasAlpha = " + }, + { + "kind": "Content", + "text": "\"has-alpha\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HasAlpha" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.HasDimensionValues:member", + "docComment": "/**\n * Has a channel with a dimension value, e.g. `50deg`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HasDimensionValues = " + }, + { + "kind": "Content", + "text": "\"has-dimension-values\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HasDimensionValues" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.HasNoneKeywords:member", + "docComment": "/**\n * Has a channel with the `none` keyword\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HasNoneKeywords = " + }, + { + "kind": "Content", + "text": "\"has-none-keywords\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HasNoneKeywords" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.HasNumberValues:member", + "docComment": "/**\n * Has a channel with a number value\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HasNumberValues = " + }, + { + "kind": "Content", + "text": "\"has-number-values\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HasNumberValues" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.HasPercentageAlpha:member", + "docComment": "/**\n * Has an alpha channel with a percentage value\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HasPercentageAlpha = " + }, + { + "kind": "Content", + "text": "\"has-percentage-alpha\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HasPercentageAlpha" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.HasPercentageValues:member", + "docComment": "/**\n * Has a channel with a percentage value\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HasPercentageValues = " + }, + { + "kind": "Content", + "text": "\"has-percentage-values\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HasPercentageValues" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.HasVariableAlpha:member", + "docComment": "/**\n * Has an alpha channel with a `var()` function value\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "HasVariableAlpha = " + }, + { + "kind": "Content", + "text": "\"has-variable-alpha\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "HasVariableAlpha" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.Hex:member", + "docComment": "/**\n * Is Hex notation\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Hex = " + }, + { + "kind": "Content", + "text": "\"hex\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Hex" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.LegacyHSL:member", + "docComment": "/**\n * Is legacy HSL, e.g. `hsl(50deg, 0%, 0%)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "LegacyHSL = " + }, + { + "kind": "Content", + "text": "\"legacy-hsl\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "LegacyHSL" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.LegacyRGB:member", + "docComment": "/**\n * Is legacy RGB, e.g. `rgb(0, 0, 0)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "LegacyRGB = " + }, + { + "kind": "Content", + "text": "\"legacy-rgb\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "LegacyRGB" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.NamedColor:member", + "docComment": "/**\n * Is a named color, e.g. `red`, `blue`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "NamedColor = " + }, + { + "kind": "Content", + "text": "\"named-color\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "NamedColor" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-color-parser!SyntaxFlag.RelativeColorSyntax:member", + "docComment": "/**\n * Is a relative color syntax, e.g. `rgb(from purple r g b)`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "RelativeColorSyntax = " + }, + { + "kind": "Content", + "text": "\"relative-color-syntax\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "RelativeColorSyntax" + } + ] + } + ] + } + ] +} diff --git a/packages/css-color-parser/docs/css-color-parser.color.md b/packages/css-color-parser/docs/css-color-parser.color.md new file mode 100644 index 000000000..f891dd96f --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.color.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [color](./css-color-parser.color.md) + +## color() function + +Convert a color function to a `ColorData` object. + +**Signature:** + +```typescript +export declare function color(colorNode: ComponentValue): ColorData | false; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| colorNode | ComponentValue | The color function to be converted. | + +**Returns:** + +[ColorData](./css-color-parser.colordata.md) \| false + +{ColorData\|false} The color function as a `ColorData` object or `false` if it could not be converted. + diff --git a/packages/css-color-parser/docs/css-color-parser.colordata.md b/packages/css-color-parser/docs/css-color-parser.colordata.md new file mode 100644 index 000000000..996ae64ab --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.colordata.md @@ -0,0 +1,18 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [ColorData](./css-color-parser.colordata.md) + +## ColorData type + +**Signature:** + +```typescript +export type ColorData = { + colorNotation: ColorNotation; + channels: Color; + alpha: number | ComponentValue; + syntaxFlags: Set; +}; +``` +**References:** [ColorNotation](./css-color-parser.colornotation.md), [SyntaxFlag](./css-color-parser.syntaxflag.md) + diff --git a/packages/css-color-parser/docs/css-color-parser.colordatafitsdisplayp3_gamut.md b/packages/css-color-parser/docs/css-color-parser.colordatafitsdisplayp3_gamut.md new file mode 100644 index 000000000..7941f563b --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.colordatafitsdisplayp3_gamut.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [colorDataFitsDisplayP3\_Gamut](./css-color-parser.colordatafitsdisplayp3_gamut.md) + +## colorDataFitsDisplayP3\_Gamut() function + +Check if a color data object fits the `display-p3` gamut. + +**Signature:** + +```typescript +export declare function colorDataFitsDisplayP3_Gamut(x: ColorData): boolean; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [ColorData](./css-color-parser.colordata.md) | The color data to be checked. | + +**Returns:** + +boolean + +{boolean} Whether the color data fits the `display-p3` gamut. + diff --git a/packages/css-color-parser/docs/css-color-parser.colordatafitsrgb_gamut.md b/packages/css-color-parser/docs/css-color-parser.colordatafitsrgb_gamut.md new file mode 100644 index 000000000..05194392d --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.colordatafitsrgb_gamut.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [colorDataFitsRGB\_Gamut](./css-color-parser.colordatafitsrgb_gamut.md) + +## colorDataFitsRGB\_Gamut() function + +Check if a color data object fits the `sRGB` gamut. + +**Signature:** + +```typescript +export declare function colorDataFitsRGB_Gamut(x: ColorData): boolean; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | [ColorData](./css-color-parser.colordata.md) | The color data to be checked. | + +**Returns:** + +boolean + +{boolean} Whether the color data fits the `sRGB` gamut. + diff --git a/packages/css-color-parser/docs/css-color-parser.colordatato.md b/packages/css-color-parser/docs/css-color-parser.colordatato.md new file mode 100644 index 000000000..2e57b1a23 --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.colordatato.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [colorDataTo](./css-color-parser.colordatato.md) + +## colorDataTo() function + +**Signature:** + +```typescript +export declare function colorDataTo(colorData: ColorData, toNotation: ColorNotation): ColorData; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| colorData | [ColorData](./css-color-parser.colordata.md) | | +| toNotation | [ColorNotation](./css-color-parser.colornotation.md) | | + +**Returns:** + +[ColorData](./css-color-parser.colordata.md) + diff --git a/packages/css-color-parser/docs/css-color-parser.colornotation.md b/packages/css-color-parser/docs/css-color-parser.colornotation.md new file mode 100644 index 000000000..5e18b8db8 --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.colornotation.md @@ -0,0 +1,33 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [ColorNotation](./css-color-parser.colornotation.md) + +## ColorNotation enum + +**Signature:** + +```typescript +export declare enum ColorNotation +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| A98\_RGB | "a98-rgb" | Adobe 1999, expressed through color(a98-rgb 0 0 0) | +| Display\_P3 | "display-p3" | Display P3, expressed through color(display-p3 0 0 0) | +| HEX | "hex" | Hex, expressed through #000 | +| HSL | "hsl" | HSL, expressed through hsl(0 0% 0%) | +| HWB | "hwb" | HWB, expressed through hwb(0 0% 0%) | +| Lab | "lab" | Lab, expressed through lab(0 0 0) | +| LCH | "lch" | LCH, expressed through lch(0 0% 0deg) | +| Linear\_sRGB | "srgb-linear" | Linear sRGB, expressed through color(linear-srgb 0 0 0) | +| OKLab | "oklab" | Oklab, expressed through oklab(0 0 0) | +| OKLCH | "oklch" | Oklch, expressed through oklch(0 0% 0deg) | +| ProPhoto\_RGB | "prophoto-rgb" | ProPhoto RGB, expressed through color(prophoto-rgb 0 0 0) | +| Rec2020 | "rec2020" | Rec. 2020, expressed through color(rec2020 0 0 0) | +| RGB | "rgb" | RGB, expressed through rgb(0 0 0) | +| sRGB | "srgb" | sRGB, expressed through color(srgb 0 0 0) | +| XYZ\_D50 | "xyz-d50" | XYZ, expressed through color(xyz-d50 0 0 0) | +| XYZ\_D65 | "xyz-d65" | XYZ, expressed through color(xyz-d65 0 0 0) | + diff --git a/packages/css-color-parser/docs/css-color-parser.md b/packages/css-color-parser/docs/css-color-parser.md new file mode 100644 index 000000000..540452257 --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.md @@ -0,0 +1,32 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) + +## css-color-parser package + +## Enumerations + +| Enumeration | Description | +| --- | --- | +| [ColorNotation](./css-color-parser.colornotation.md) | | +| [SyntaxFlag](./css-color-parser.syntaxflag.md) | | + +## Functions + +| Function | Description | +| --- | --- | +| [color(colorNode)](./css-color-parser.color.md) | Convert a color function to a ColorData object. | +| [colorDataFitsDisplayP3\_Gamut(x)](./css-color-parser.colordatafitsdisplayp3_gamut.md) | Check if a color data object fits the display-p3 gamut. | +| [colorDataFitsRGB\_Gamut(x)](./css-color-parser.colordatafitsrgb_gamut.md) | Check if a color data object fits the sRGB gamut. | +| [colorDataTo(colorData, toNotation)](./css-color-parser.colordatato.md) | | +| [serializeHSL(color, gamutMapping)](./css-color-parser.serializehsl.md) | | +| [serializeOKLCH(color)](./css-color-parser.serializeoklch.md) | Convert color data to component values in the OKLCH color space. The return value can be converted to a string by calling toString() on it. | +| [serializeP3(color, gamutMapping)](./css-color-parser.serializep3.md) | Convert color data to component values in the display-p3 color space. The return value can be converted to a string by calling toString() on it. | +| [serializeRGB(color, gamutMapping)](./css-color-parser.serializergb.md) | Convert color data to component values in the srgb color space. The return value can be converted to a string by calling toString() on it. | + +## Type Aliases + +| Type Alias | Description | +| --- | --- | +| [ColorData](./css-color-parser.colordata.md) | | + diff --git a/packages/css-color-parser/docs/css-color-parser.serializehsl.md b/packages/css-color-parser/docs/css-color-parser.serializehsl.md new file mode 100644 index 000000000..e86ab5f77 --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.serializehsl.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [serializeHSL](./css-color-parser.serializehsl.md) + +## serializeHSL() function + +**Signature:** + +```typescript +export declare function serializeHSL(color: ColorData, gamutMapping?: boolean): FunctionNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| color | [ColorData](./css-color-parser.colordata.md) | | +| gamutMapping | boolean | _(Optional)_ | + +**Returns:** + +FunctionNode + diff --git a/packages/css-color-parser/docs/css-color-parser.serializeoklch.md b/packages/css-color-parser/docs/css-color-parser.serializeoklch.md new file mode 100644 index 000000000..1fe982328 --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.serializeoklch.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [serializeOKLCH](./css-color-parser.serializeoklch.md) + +## serializeOKLCH() function + +Convert color data to component values in the OKLCH color space. The return value can be converted to a string by calling `toString()` on it. + +**Signature:** + +```typescript +export declare function serializeOKLCH(color: ColorData): FunctionNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| color | [ColorData](./css-color-parser.colordata.md) | The color data to be serialized. | + +**Returns:** + +FunctionNode + +{FunctionNode} The serialized color data as a FunctionNode object. + diff --git a/packages/css-color-parser/docs/css-color-parser.serializep3.md b/packages/css-color-parser/docs/css-color-parser.serializep3.md new file mode 100644 index 000000000..9e9d46db9 --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.serializep3.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [serializeP3](./css-color-parser.serializep3.md) + +## serializeP3() function + +Convert color data to component values in the display-p3 color space. The return value can be converted to a string by calling `toString()` on it. + +**Signature:** + +```typescript +export declare function serializeP3(color: ColorData, gamutMapping?: boolean): FunctionNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| color | [ColorData](./css-color-parser.colordata.md) | The color data to be serialized. | +| gamutMapping | boolean | _(Optional)_ Whether to perform gamut mapping, defaults to true. | + +**Returns:** + +FunctionNode + +{FunctionNode} The serialized color data as a FunctionNode object. + diff --git a/packages/css-color-parser/docs/css-color-parser.serializergb.md b/packages/css-color-parser/docs/css-color-parser.serializergb.md new file mode 100644 index 000000000..8d5d57783 --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.serializergb.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [serializeRGB](./css-color-parser.serializergb.md) + +## serializeRGB() function + +Convert color data to component values in the srgb color space. The return value can be converted to a string by calling `toString()` on it. + +**Signature:** + +```typescript +export declare function serializeRGB(color: ColorData, gamutMapping?: boolean): FunctionNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| color | [ColorData](./css-color-parser.colordata.md) | The color data to be serialized. | +| gamutMapping | boolean | _(Optional)_ Whether to perform gamut mapping, defaults to true. | + +**Returns:** + +FunctionNode + +{FunctionNode} The serialized color data as a FunctionNode object. + diff --git a/packages/css-color-parser/docs/css-color-parser.syntaxflag.md b/packages/css-color-parser/docs/css-color-parser.syntaxflag.md new file mode 100644 index 000000000..faa07feae --- /dev/null +++ b/packages/css-color-parser/docs/css-color-parser.syntaxflag.md @@ -0,0 +1,32 @@ + + +[Home](./index.md) > [@csstools/css-color-parser](./css-color-parser.md) > [SyntaxFlag](./css-color-parser.syntaxflag.md) + +## SyntaxFlag enum + +**Signature:** + +```typescript +export declare enum SyntaxFlag +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| ColorKeyword | "color-keyword" | Is a color keyword, e.g. transparent, currentColor, ... | +| ColorMix | "color-mix" | Is a mixed color, e.g. color-mix(in oklch, red, blue) | +| Experimental | "experimental" | Is an experimental color syntax | +| HasAlpha | "has-alpha" | Has an explicit alpha channel | +| HasDimensionValues | "has-dimension-values" | Has a channel with a dimension value, e.g. 50deg | +| HasNoneKeywords | "has-none-keywords" | Has a channel with the none keyword | +| HasNumberValues | "has-number-values" | Has a channel with a number value | +| HasPercentageAlpha | "has-percentage-alpha" | Has an alpha channel with a percentage value | +| HasPercentageValues | "has-percentage-values" | Has a channel with a percentage value | +| HasVariableAlpha | "has-variable-alpha" | Has an alpha channel with a var() function value | +| Hex | "hex" | Is Hex notation | +| LegacyHSL | "legacy-hsl" | Is legacy HSL, e.g. hsl(50deg, 0%, 0%) | +| LegacyRGB | "legacy-rgb" | Is legacy RGB, e.g. rgb(0, 0, 0) | +| NamedColor | "named-color" | Is a named color, e.g. red, blue | +| RelativeColorSyntax | "relative-color-syntax" | Is a relative color syntax, e.g. rgb(from purple r g b) | + diff --git a/packages/css-color-parser/docs/index.md b/packages/css-color-parser/docs/index.md new file mode 100644 index 000000000..64b536795 --- /dev/null +++ b/packages/css-color-parser/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [@csstools/css-color-parser](./css-color-parser.md) | | + diff --git a/packages/css-color-parser/package.json b/packages/css-color-parser/package.json index 6cd99a457..755e210be 100644 --- a/packages/css-color-parser/package.json +++ b/packages/css-color-parser/package.json @@ -57,6 +57,7 @@ }, "scripts": { "build": "rollup -c ../../rollup/default.mjs", + "docs": "node ../../.github/bin/generate-docs/api-documenter.mjs", "lint": "node ../../.github/bin/format-package-json.mjs", "prepublishOnly": "npm run build && npm run test", "stryker": "stryker run --logLevel error", diff --git a/packages/css-parser-algorithms/api-extractor.json b/packages/css-parser-algorithms/api-extractor.json index 42058be51..ccef9beeb 100644 --- a/packages/css-parser-algorithms/api-extractor.json +++ b/packages/css-parser-algorithms/api-extractor.json @@ -1,4 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.json" + "extends": "../../api-extractor.json", + "docModel": { + "enabled": true + } } diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.api.json b/packages/css-parser-algorithms/docs/css-parser-algorithms.api.json new file mode 100644 index 000000000..bd9a05f9b --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.api.json @@ -0,0 +1,3826 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@csstools/css-parser-algorithms!", + "docComment": "", + "name": "@csstools/css-parser-algorithms", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@csstools/css-parser-algorithms!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Class", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class CommentNode " + } + ], + "fileUrlPath": "dist/_types/consume/consume-component-block-function.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "CommentNode", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `CommentNode` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(value: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode#isCommentNode:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isCommentNode(): " + }, + { + "kind": "Content", + "text": "this is " + }, + { + "kind": "Reference", + "text": "CommentNode", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "isCommentNode" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode.isCommentNode:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isCommentNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "CommentNode", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isCommentNode" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode#toJSON:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJSON(): " + }, + { + "kind": "Content", + "text": "{\n type: " + }, + { + "kind": "Reference", + "text": "ComponentValueType", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType:enum" + }, + { + "kind": "Content", + "text": ";\n tokens: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": "[];\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toJSON" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "ComponentValueType", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode#value:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type ComponentValue = " + }, + { + "kind": "Reference", + "text": "FunctionNode", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "SimpleBlockNode", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "WhitespaceNode", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "CommentNode", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenNode", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/consume/consume-component-block-function.d.ts", + "releaseTag": "Public", + "name": "ComponentValue", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 10 + } + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum ComponentValueType " + } + ], + "fileUrlPath": "dist/_types/util/component-value-type.d.ts", + "releaseTag": "Public", + "name": "ComponentValueType", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType.Comment:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Comment = " + }, + { + "kind": "Content", + "text": "\"comment\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Comment" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType.Function:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Function = " + }, + { + "kind": "Content", + "text": "\"function\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Function" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType.SimpleBlock:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "SimpleBlock = " + }, + { + "kind": "Content", + "text": "\"simple-block\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "SimpleBlock" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType.Token:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Token = " + }, + { + "kind": "Content", + "text": "\"token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Token" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType.Whitespace:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Whitespace = " + }, + { + "kind": "Content", + "text": "\"whitespace\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Whitespace" + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNode:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type ContainerNode = " + }, + { + "kind": "Reference", + "text": "FunctionNode", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "SimpleBlockNode", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/consume/consume-component-block-function.d.ts", + "releaseTag": "Public", + "name": "ContainerNode", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNodeBaseClass:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare abstract class ContainerNodeBaseClass " + } + ], + "fileUrlPath": "dist/_types/consume/consume-component-block-function.d.ts", + "releaseTag": "Public", + "isAbstract": true, + "name": "ContainerNodeBaseClass", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNodeBaseClass#at:member(1)", + "docComment": "/**\n * Retrieve the item at the given index in the current node. For most node types this will be trivially implemented as `this.value[index]`.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNodeBaseClass#forEach:member(1)", + "docComment": "/**\n * Iterates over each item in the `value` array of the current node.\n *\n * @param cb - The callback function to execute for each item. The function receives an object containing the current node (`node`), its parent (`parent`), and an optional `state` object. A second parameter is the index of the current node. The function can return `false` to stop the iteration.\n *\n * @param state - An optional state object that can be used to pass additional information to the callback function. The state object is cloned for each iteration. This means that changes to the state object are not reflected in the next iteration.\n *\n * @returns `false` if the iteration was halted, `undefined` otherwise.\n *\n * @template T - The type of the `state` object. @template U - The type of the current node.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "forEach" + }, + { + "kind": "Content", + "text": ", U extends " + }, + { + "kind": "Reference", + "text": "ContainerNode", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNode:type" + }, + { + "kind": "Content", + "text": ">(this: " + }, + { + "kind": "Content", + "text": "U" + }, + { + "kind": "Content", + "text": ", cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "ContainerNode", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNode:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 16, + "endIndex": 17 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "this", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 13 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 14, + "endIndex": 15 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "forEach" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNodeBaseClass#indexOf:member(1)", + "docComment": "/**\n * Retrieve the index of the given item in the current node. For most node types this will be trivially implemented as `this.value.indexOf(item)`.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNodeBaseClass#value:member", + "docComment": "/**\n * The contents of the `Function` or `Simple Block`. This is a list of component values.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNodeBaseClass#walk:member(1)", + "docComment": "/**\n * Walks the current node and all its children.\n *\n * @param cb - The callback function to execute for each item. The function receives an object containing the current node (`node`), its parent (`parent`), and an optional `state` object. A second parameter is the index of the current node. The function can return `false` to stop the iteration.\n *\n * @param state - An optional state object that can be used to pass additional information to the callback function. The state object is cloned for each iteration. This means that changes to the state object are not reflected in the next iteration. However changes are passed down to child node iterations.\n *\n * @returns `false` if the iteration was halted, `undefined` otherwise.\n *\n * @template T - The type of the `state` object. @template U - The type of the current node.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ", U extends " + }, + { + "kind": "Reference", + "text": "ContainerNode", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNode:type" + }, + { + "kind": "Content", + "text": ">(this: " + }, + { + "kind": "Content", + "text": "U" + }, + { + "kind": "Content", + "text": ", cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "ContainerNode", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNode:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 16, + "endIndex": 17 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "this", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 13 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 14, + "endIndex": 15 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class FunctionNode extends " + }, + { + "kind": "Reference", + "text": "ContainerNodeBaseClass", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNodeBaseClass:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "dist/_types/consume/consume-component-block-function.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "FunctionNode", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `FunctionNode` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(name: " + }, + { + "kind": "Reference", + "text": "TokenFunction", + "canonicalReference": "@csstools/css-tokenizer!TokenFunction:type" + }, + { + "kind": "Content", + "text": ", endToken: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "endToken", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 9 + }, + "isOptional": false + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode#endToken:member", + "docComment": "/**\n * The token for the closing parenthesis of the function. If the function is unclosed, this will be an EOF token.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "endToken: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "endToken", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode#getName:member(1)", + "docComment": "/**\n * Retrieve the name of the current Function. This is the parsed and unescaped name of the function.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "getName(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getName" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode#isFunctionNode:member(1)", + "docComment": "/**\n * Check if the current object is a FunctionNode. This is a type guard to help with type narrowing.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "isFunctionNode(): " + }, + { + "kind": "Content", + "text": "this is " + }, + { + "kind": "Reference", + "text": "FunctionNode", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "isFunctionNode" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode.isFunctionNode:member(1)", + "docComment": "/**\n * Check if the given object is a FunctionNode. This is a type guard to help with type narrowing.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isFunctionNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "FunctionNode", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isFunctionNode" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode#name:member", + "docComment": "/**\n * The token for the name of the function.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Reference", + "text": "TokenFunction", + "canonicalReference": "@csstools/css-tokenizer!TokenFunction:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode#normalize:member(1)", + "docComment": "/**\n * Normalize the current Function: - if the \"endToken\" is EOF, replace with a \")-token\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "normalize(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "normalize" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode#toJSON:member(1)", + "docComment": "/**\n * A debug helper to convert the current object to a JSON representation. This is useful in asserts and to store large ASTs in files.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJSON(): " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toJSON" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode#tokens:member(1)", + "docComment": "/**\n * Retrieve the tokens for the current Function. This is the inverse of parsing from a list of tokens.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode#toString:member(1)", + "docComment": "/**\n * Convert the current Function to a string. This is not a true serialization. It is purely a concatenation of the string representation of the tokens.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode#type:member", + "docComment": "/**\n * The node type Always `ComponentValueType.Function`\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "ComponentValueType", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!gatherNodeAncestry:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function gatherNodeAncestry(node: " + }, + { + "kind": "Content", + "text": "{\n walk(cb: (entry: {\n node: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": " | unknown;\n parent: unknown;\n }, index: number | string) => boolean | void): false | undefined;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Map", + "canonicalReference": "!Map:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/node-ancestry.d.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "node", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "gatherNodeAncestry" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!isCommentNode:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isCommentNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "CommentNode", + "canonicalReference": "@csstools/css-parser-algorithms!CommentNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isCommentNode" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!isFunctionNode:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isFunctionNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "FunctionNode", + "canonicalReference": "@csstools/css-parser-algorithms!FunctionNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isFunctionNode" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!isSimpleBlockNode:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isSimpleBlockNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "SimpleBlockNode", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isSimpleBlockNode" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!isTokenNode:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isTokenNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "TokenNode", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isTokenNode" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!isWhitespaceNode:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isWhitespaceNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "WhitespaceNode", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isWhitespaceNode" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!parseCommaSeparatedListOfComponentValues:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parseCommaSeparatedListOfComponentValues(tokens: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "[][]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/parse/parse-comma-separated-list-of-component-values.d.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tokens", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 9 + }, + "isOptional": true + } + ], + "name": "parseCommaSeparatedListOfComponentValues" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!parseComponentValue:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parseComponentValue(tokens: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "import(\"../consume/consume-component-block-function\")." + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/parse/parse-component-value.d.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 13 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tokens", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 9 + }, + "isOptional": true + } + ], + "name": "parseComponentValue" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!parseListOfComponentValues:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parseListOfComponentValues(tokens: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/parse/parse-list-of-component-values.d.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tokens", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 9 + }, + "isOptional": true + } + ], + "name": "parseListOfComponentValues" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!replaceComponentValues:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function replaceComponentValues(componentValuesList: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">>" + }, + { + "kind": "Content", + "text": ", replaceWith: " + }, + { + "kind": "Content", + "text": "(componentValue: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | void" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "[][]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/replace-component-values.d.ts", + "returnTypeTokenRange": { + "startIndex": 14, + "endIndex": 16 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "componentValuesList", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "replaceWith", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 13 + }, + "isOptional": false + } + ], + "name": "replaceComponentValues" + }, + { + "kind": "Class", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class SimpleBlockNode extends " + }, + { + "kind": "Reference", + "text": "ContainerNodeBaseClass", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNodeBaseClass:class" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "dist/_types/consume/consume-component-block-function.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "SimpleBlockNode", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `SimpleBlockNode` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(startToken: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ", endToken: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "startToken", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "endToken", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 9 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#endToken:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "endToken: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "endToken", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#isSimpleBlockNode:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isSimpleBlockNode(): " + }, + { + "kind": "Content", + "text": "this is " + }, + { + "kind": "Reference", + "text": "SimpleBlockNode", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "isSimpleBlockNode" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode.isSimpleBlockNode:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isSimpleBlockNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "SimpleBlockNode", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isSimpleBlockNode" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#normalize:member(1)", + "docComment": "/**\n * Normalize the current Simple Block: - if the \"endToken\" is EOF, replace with the mirror token of the \"startToken\"\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "normalize(): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "normalize" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#startToken:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "startToken: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "startToken", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#toJSON:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJSON(): " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toJSON" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!SimpleBlockNode#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "ComponentValueType", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!sourceIndices:function(1)", + "docComment": "/**\n * Returns the start and end index of a node in the CSS source string.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function sourceIndices(x: " + }, + { + "kind": "Content", + "text": "{\n tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">;\n} | " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<{\n tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">;\n}>" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "[number, number]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/source-indices.d.ts", + "returnTypeTokenRange": { + "startIndex": 13, + "endIndex": 14 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 12 + }, + "isOptional": false + } + ], + "name": "sourceIndices" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!stringify:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function stringify(componentValueLists: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">>" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/stringify.d.ts", + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "componentValueLists", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "isOptional": false + } + ], + "name": "stringify" + }, + { + "kind": "Class", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class TokenNode " + } + ], + "fileUrlPath": "dist/_types/consume/consume-component-block-function.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "TokenNode", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `TokenNode` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(value: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode#isTokenNode:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isTokenNode(): " + }, + { + "kind": "Content", + "text": "this is " + }, + { + "kind": "Reference", + "text": "TokenNode", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "isTokenNode" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode.isTokenNode:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isTokenNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "TokenNode", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isTokenNode" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode#toJSON:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJSON(): " + }, + { + "kind": "Content", + "text": "{\n type: " + }, + { + "kind": "Reference", + "text": "ComponentValueType", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType:enum" + }, + { + "kind": "Content", + "text": ";\n tokens: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": "[];\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toJSON" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "ComponentValueType", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!TokenNode#value:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-parser-algorithms!walkerIndexGenerator:function(1)", + "docComment": "/**\n * Generate a function that finds the next element that should be visited when walking an AST. Rules : - the previous iteration is used as a reference, so any checks are relative to the start of the current iteration. - the next element always appears after the current index. - the next element always exists in the list. - replacing an element does not cause the replaced element to be visited. - removing an element does not cause elements to be skipped. - an element added later in the list will be visited.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function walkerIndexGenerator(initialList: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "(list: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": ", child: T, index: number) => number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/walker-index-generator.d.ts", + "returnTypeTokenRange": { + "startIndex": 4, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "initialList", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "walkerIndexGenerator" + }, + { + "kind": "Class", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class WhitespaceNode " + } + ], + "fileUrlPath": "dist/_types/consume/consume-component-block-function.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "WhitespaceNode", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `WhitespaceNode` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(value: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode#isWhitespaceNode:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isWhitespaceNode(): " + }, + { + "kind": "Content", + "text": "this is " + }, + { + "kind": "Reference", + "text": "WhitespaceNode", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "isWhitespaceNode" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode.isWhitespaceNode:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isWhitespaceNode(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-parser-algorithms!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "WhitespaceNode", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isWhitespaceNode" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode#toJSON:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJSON(): " + }, + { + "kind": "Content", + "text": "{\n type: " + }, + { + "kind": "Reference", + "text": "ComponentValueType", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType:enum" + }, + { + "kind": "Content", + "text": ";\n tokens: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": "[];\n }" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toJSON" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "ComponentValueType", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValueType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-parser-algorithms!WhitespaceNode#value:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + } + ] + } + ] +} diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode._constructor_.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode._constructor_.md new file mode 100644 index 000000000..29f4e8747 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode._constructor_.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [CommentNode](./css-parser-algorithms.commentnode.md) > [(constructor)](./css-parser-algorithms.commentnode._constructor_.md) + +## CommentNode.(constructor) + +Constructs a new instance of the `CommentNode` class + +**Signature:** + +```typescript +constructor(value: CSSToken); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| value | CSSToken | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.iscommentnode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.iscommentnode.md new file mode 100644 index 000000000..d79ca23e8 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.iscommentnode.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [CommentNode](./css-parser-algorithms.commentnode.md) > [isCommentNode](./css-parser-algorithms.commentnode.iscommentnode.md) + +## CommentNode.isCommentNode() method + +**Signature:** + +```typescript +static isCommentNode(x: unknown): x is CommentNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [CommentNode](./css-parser-algorithms.commentnode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.md new file mode 100644 index 000000000..2e6cb542f --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.md @@ -0,0 +1,35 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [CommentNode](./css-parser-algorithms.commentnode.md) + +## CommentNode class + +**Signature:** + +```typescript +export declare class CommentNode +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(value)](./css-parser-algorithms.commentnode._constructor_.md) | | Constructs a new instance of the CommentNode class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [type](./css-parser-algorithms.commentnode.type.md) | | [ComponentValueType](./css-parser-algorithms.componentvaluetype.md) | | +| [value](./css-parser-algorithms.commentnode.value.md) | | CSSToken | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [isCommentNode()](./css-parser-algorithms.commentnode.iscommentnode.md) | | | +| [isCommentNode(x)](./css-parser-algorithms.commentnode.iscommentnode.md) | static | | +| [toJSON()](./css-parser-algorithms.commentnode.tojson.md) | | | +| [tokens()](./css-parser-algorithms.commentnode.tokens.md) | | | +| [toString()](./css-parser-algorithms.commentnode.tostring.md) | | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.tojson.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.tojson.md new file mode 100644 index 000000000..540b4ef28 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.tojson.md @@ -0,0 +1,18 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [CommentNode](./css-parser-algorithms.commentnode.md) > [toJSON](./css-parser-algorithms.commentnode.tojson.md) + +## CommentNode.toJSON() method + +**Signature:** + +```typescript +toJSON(): { + type: ComponentValueType; + tokens: CSSToken[]; + }; +``` +**Returns:** + +{ type: [ComponentValueType](./css-parser-algorithms.componentvaluetype.md); tokens: CSSToken\[\]; } + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.tokens.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.tokens.md new file mode 100644 index 000000000..f3cfb25e0 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [CommentNode](./css-parser-algorithms.commentnode.md) > [tokens](./css-parser-algorithms.commentnode.tokens.md) + +## CommentNode.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.tostring.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.tostring.md new file mode 100644 index 000000000..b6e6c92f6 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [CommentNode](./css-parser-algorithms.commentnode.md) > [toString](./css-parser-algorithms.commentnode.tostring.md) + +## CommentNode.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.type.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.type.md new file mode 100644 index 000000000..7b70d203e --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [CommentNode](./css-parser-algorithms.commentnode.md) > [type](./css-parser-algorithms.commentnode.type.md) + +## CommentNode.type property + +**Signature:** + +```typescript +type: ComponentValueType; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.value.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.value.md new file mode 100644 index 000000000..c13cd3248 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.commentnode.value.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [CommentNode](./css-parser-algorithms.commentnode.md) > [value](./css-parser-algorithms.commentnode.value.md) + +## CommentNode.value property + +**Signature:** + +```typescript +value: CSSToken; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.componentvalue.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.componentvalue.md new file mode 100644 index 000000000..79f827d39 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.componentvalue.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [ComponentValue](./css-parser-algorithms.componentvalue.md) + +## ComponentValue type + +**Signature:** + +```typescript +export type ComponentValue = FunctionNode | SimpleBlockNode | WhitespaceNode | CommentNode | TokenNode; +``` +**References:** [FunctionNode](./css-parser-algorithms.functionnode.md), [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md), [WhitespaceNode](./css-parser-algorithms.whitespacenode.md), [CommentNode](./css-parser-algorithms.commentnode.md), [TokenNode](./css-parser-algorithms.tokennode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.componentvaluetype.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.componentvaluetype.md new file mode 100644 index 000000000..b7e419307 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.componentvaluetype.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [ComponentValueType](./css-parser-algorithms.componentvaluetype.md) + +## ComponentValueType enum + +**Signature:** + +```typescript +export declare enum ComponentValueType +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| Comment | "comment" | | +| Function | "function" | | +| SimpleBlock | "simple-block" | | +| Token | "token" | | +| Whitespace | "whitespace" | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.containernode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernode.md new file mode 100644 index 000000000..3880b408f --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernode.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [ContainerNode](./css-parser-algorithms.containernode.md) + +## ContainerNode type + +**Signature:** + +```typescript +export type ContainerNode = FunctionNode | SimpleBlockNode; +``` +**References:** [FunctionNode](./css-parser-algorithms.functionnode.md), [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.at.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.at.md new file mode 100644 index 000000000..28e8b6538 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.at.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md) > [at](./css-parser-algorithms.containernodebaseclass.at.md) + +## ContainerNodeBaseClass.at() method + +Retrieve the item at the given index in the current node. For most node types this will be trivially implemented as `this.value[index]`. + +**Signature:** + +```typescript +at(index: number | string): ComponentValue | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[ComponentValue](./css-parser-algorithms.componentvalue.md) \| undefined + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.foreach.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.foreach.md new file mode 100644 index 000000000..f7b8f395e --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.foreach.md @@ -0,0 +1,34 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md) > [forEach](./css-parser-algorithms.containernodebaseclass.foreach.md) + +## ContainerNodeBaseClass.forEach() method + +Iterates over each item in the `value` array of the current node. + +**Signature:** + +```typescript +forEach, U extends ContainerNode>(this: U, cb: (entry: { + node: ComponentValue; + parent: ContainerNode; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| this | U | | +| cb | (entry: { node: [ComponentValue](./css-parser-algorithms.componentvalue.md); parent: [ContainerNode](./css-parser-algorithms.containernode.md); state?: T; }, index: number \| string) => boolean \| void | The callback function to execute for each item. The function receives an object containing the current node (node), its parent (parent), and an optional state object. A second parameter is the index of the current node. The function can return false to stop the iteration. | +| state | T | _(Optional)_ An optional state object that can be used to pass additional information to the callback function. The state object is cloned for each iteration. This means that changes to the state object are not reflected in the next iteration. | + +**Returns:** + +false \| undefined + +`false` if the iteration was halted, `undefined` otherwise. + + T - The type of the `state` object. U - The type of the current node. + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.indexof.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.indexof.md new file mode 100644 index 000000000..80b073fd0 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.indexof.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md) > [indexOf](./css-parser-algorithms.containernodebaseclass.indexof.md) + +## ContainerNodeBaseClass.indexOf() method + +Retrieve the index of the given item in the current node. For most node types this will be trivially implemented as `this.value.indexOf(item)`. + +**Signature:** + +```typescript +indexOf(item: ComponentValue): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [ComponentValue](./css-parser-algorithms.componentvalue.md) | | + +**Returns:** + +number \| string + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.md new file mode 100644 index 000000000..1b19f16a5 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md) + +## ContainerNodeBaseClass class + +**Signature:** + +```typescript +export declare abstract class ContainerNodeBaseClass +``` + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [value](./css-parser-algorithms.containernodebaseclass.value.md) | | Array<[ComponentValue](./css-parser-algorithms.componentvalue.md)> | The contents of the Function or Simple Block. This is a list of component values. | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./css-parser-algorithms.containernodebaseclass.at.md) | | Retrieve the item at the given index in the current node. For most node types this will be trivially implemented as this.value[index]. | +| [forEach(this, cb, state)](./css-parser-algorithms.containernodebaseclass.foreach.md) | | Iterates over each item in the value array of the current node. | +| [indexOf(item)](./css-parser-algorithms.containernodebaseclass.indexof.md) | | Retrieve the index of the given item in the current node. For most node types this will be trivially implemented as this.value.indexOf(item). | +| [walk(this, cb, state)](./css-parser-algorithms.containernodebaseclass.walk.md) | | Walks the current node and all its children. | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.value.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.value.md new file mode 100644 index 000000000..9568edb18 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.value.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md) > [value](./css-parser-algorithms.containernodebaseclass.value.md) + +## ContainerNodeBaseClass.value property + +The contents of the `Function` or `Simple Block`. This is a list of component values. + +**Signature:** + +```typescript +value: Array; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.walk.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.walk.md new file mode 100644 index 000000000..4ebb92efd --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.containernodebaseclass.walk.md @@ -0,0 +1,34 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md) > [walk](./css-parser-algorithms.containernodebaseclass.walk.md) + +## ContainerNodeBaseClass.walk() method + +Walks the current node and all its children. + +**Signature:** + +```typescript +walk, U extends ContainerNode>(this: U, cb: (entry: { + node: ComponentValue; + parent: ContainerNode; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| this | U | | +| cb | (entry: { node: [ComponentValue](./css-parser-algorithms.componentvalue.md); parent: [ContainerNode](./css-parser-algorithms.containernode.md); state?: T; }, index: number \| string) => boolean \| void | The callback function to execute for each item. The function receives an object containing the current node (node), its parent (parent), and an optional state object. A second parameter is the index of the current node. The function can return false to stop the iteration. | +| state | T | _(Optional)_ An optional state object that can be used to pass additional information to the callback function. The state object is cloned for each iteration. This means that changes to the state object are not reflected in the next iteration. However changes are passed down to child node iterations. | + +**Returns:** + +false \| undefined + +`false` if the iteration was halted, `undefined` otherwise. + + T - The type of the `state` object. U - The type of the current node. + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode._constructor_.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode._constructor_.md new file mode 100644 index 000000000..74faa627a --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [(constructor)](./css-parser-algorithms.functionnode._constructor_.md) + +## FunctionNode.(constructor) + +Constructs a new instance of the `FunctionNode` class + +**Signature:** + +```typescript +constructor(name: TokenFunction, endToken: CSSToken, value: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | TokenFunction | | +| endToken | CSSToken | | +| value | Array<[ComponentValue](./css-parser-algorithms.componentvalue.md)> | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.endtoken.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.endtoken.md new file mode 100644 index 000000000..a469b039b --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.endtoken.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [endToken](./css-parser-algorithms.functionnode.endtoken.md) + +## FunctionNode.endToken property + +The token for the closing parenthesis of the function. If the function is unclosed, this will be an EOF token. + +**Signature:** + +```typescript +endToken: CSSToken; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.getname.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.getname.md new file mode 100644 index 000000000..38d2bb080 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.getname.md @@ -0,0 +1,17 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [getName](./css-parser-algorithms.functionnode.getname.md) + +## FunctionNode.getName() method + +Retrieve the name of the current Function. This is the parsed and unescaped name of the function. + +**Signature:** + +```typescript +getName(): string; +``` +**Returns:** + +string + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.isfunctionnode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.isfunctionnode.md new file mode 100644 index 000000000..3baf5b876 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.isfunctionnode.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [isFunctionNode](./css-parser-algorithms.functionnode.isfunctionnode.md) + +## FunctionNode.isFunctionNode() method + +Check if the given object is a FunctionNode. This is a type guard to help with type narrowing. + +**Signature:** + +```typescript +static isFunctionNode(x: unknown): x is FunctionNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [FunctionNode](./css-parser-algorithms.functionnode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.md new file mode 100644 index 000000000..8c1bdccbf --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.md @@ -0,0 +1,39 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) + +## FunctionNode class + +**Signature:** + +```typescript +export declare class FunctionNode extends ContainerNodeBaseClass +``` +**Extends:** [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md) + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(name, endToken, value)](./css-parser-algorithms.functionnode._constructor_.md) | | Constructs a new instance of the FunctionNode class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [endToken](./css-parser-algorithms.functionnode.endtoken.md) | | CSSToken | The token for the closing parenthesis of the function. If the function is unclosed, this will be an EOF token. | +| [name](./css-parser-algorithms.functionnode.name.md) | | TokenFunction | The token for the name of the function. | +| [type](./css-parser-algorithms.functionnode.type.md) | | [ComponentValueType](./css-parser-algorithms.componentvaluetype.md) | The node type Always ComponentValueType.Function | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [getName()](./css-parser-algorithms.functionnode.getname.md) | | Retrieve the name of the current Function. This is the parsed and unescaped name of the function. | +| [isFunctionNode()](./css-parser-algorithms.functionnode.isfunctionnode.md) | | Check if the current object is a FunctionNode. This is a type guard to help with type narrowing. | +| [isFunctionNode(x)](./css-parser-algorithms.functionnode.isfunctionnode.md) | static | Check if the given object is a FunctionNode. This is a type guard to help with type narrowing. | +| [normalize()](./css-parser-algorithms.functionnode.normalize.md) | | Normalize the current Function: - if the "endToken" is EOF, replace with a ")-token" | +| [toJSON()](./css-parser-algorithms.functionnode.tojson.md) | | A debug helper to convert the current object to a JSON representation. This is useful in asserts and to store large ASTs in files. | +| [tokens()](./css-parser-algorithms.functionnode.tokens.md) | | Retrieve the tokens for the current Function. This is the inverse of parsing from a list of tokens. | +| [toString()](./css-parser-algorithms.functionnode.tostring.md) | | Convert the current Function to a string. This is not a true serialization. It is purely a concatenation of the string representation of the tokens. | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.name.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.name.md new file mode 100644 index 000000000..56ee86d8a --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.name.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [name](./css-parser-algorithms.functionnode.name.md) + +## FunctionNode.name property + +The token for the name of the function. + +**Signature:** + +```typescript +name: TokenFunction; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.normalize.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.normalize.md new file mode 100644 index 000000000..1fe7d5789 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.normalize.md @@ -0,0 +1,17 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [normalize](./css-parser-algorithms.functionnode.normalize.md) + +## FunctionNode.normalize() method + +Normalize the current Function: - if the "endToken" is EOF, replace with a ")-token" + +**Signature:** + +```typescript +normalize(): void; +``` +**Returns:** + +void + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.tojson.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.tojson.md new file mode 100644 index 000000000..ce17034c8 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.tojson.md @@ -0,0 +1,17 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [toJSON](./css-parser-algorithms.functionnode.tojson.md) + +## FunctionNode.toJSON() method + +A debug helper to convert the current object to a JSON representation. This is useful in asserts and to store large ASTs in files. + +**Signature:** + +```typescript +toJSON(): unknown; +``` +**Returns:** + +unknown + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.tokens.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.tokens.md new file mode 100644 index 000000000..2e15a8d18 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.tokens.md @@ -0,0 +1,17 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [tokens](./css-parser-algorithms.functionnode.tokens.md) + +## FunctionNode.tokens() method + +Retrieve the tokens for the current Function. This is the inverse of parsing from a list of tokens. + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.tostring.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.tostring.md new file mode 100644 index 000000000..aaf3724d8 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.tostring.md @@ -0,0 +1,17 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [toString](./css-parser-algorithms.functionnode.tostring.md) + +## FunctionNode.toString() method + +Convert the current Function to a string. This is not a true serialization. It is purely a concatenation of the string representation of the tokens. + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.type.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.type.md new file mode 100644 index 000000000..84affdf47 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.functionnode.type.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [FunctionNode](./css-parser-algorithms.functionnode.md) > [type](./css-parser-algorithms.functionnode.type.md) + +## FunctionNode.type property + +The node type Always `ComponentValueType.Function` + +**Signature:** + +```typescript +type: ComponentValueType; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.gathernodeancestry.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.gathernodeancestry.md new file mode 100644 index 000000000..76e8c8587 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.gathernodeancestry.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [gatherNodeAncestry](./css-parser-algorithms.gathernodeancestry.md) + +## gatherNodeAncestry() function + +**Signature:** + +```typescript +export declare function gatherNodeAncestry(node: { + walk(cb: (entry: { + node: Array | unknown; + parent: unknown; + }, index: number | string) => boolean | void): false | undefined; +}): Map; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| node | { walk(cb: (entry: { node: Array<unknown> \| unknown; parent: unknown; }, index: number \| string) => boolean \| void): false \| undefined; } | | + +**Returns:** + +Map<unknown, unknown> + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.iscommentnode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.iscommentnode.md new file mode 100644 index 000000000..00cf4b2e8 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.iscommentnode.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [isCommentNode](./css-parser-algorithms.iscommentnode.md) + +## isCommentNode() function + +**Signature:** + +```typescript +export declare function isCommentNode(x: unknown): x is CommentNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [CommentNode](./css-parser-algorithms.commentnode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.isfunctionnode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.isfunctionnode.md new file mode 100644 index 000000000..cc0cb2262 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.isfunctionnode.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [isFunctionNode](./css-parser-algorithms.isfunctionnode.md) + +## isFunctionNode() function + +**Signature:** + +```typescript +export declare function isFunctionNode(x: unknown): x is FunctionNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [FunctionNode](./css-parser-algorithms.functionnode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.issimpleblocknode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.issimpleblocknode.md new file mode 100644 index 000000000..96a3b4275 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.issimpleblocknode.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [isSimpleBlockNode](./css-parser-algorithms.issimpleblocknode.md) + +## isSimpleBlockNode() function + +**Signature:** + +```typescript +export declare function isSimpleBlockNode(x: unknown): x is SimpleBlockNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.istokennode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.istokennode.md new file mode 100644 index 000000000..b6291f56b --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.istokennode.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [isTokenNode](./css-parser-algorithms.istokennode.md) + +## isTokenNode() function + +**Signature:** + +```typescript +export declare function isTokenNode(x: unknown): x is TokenNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [TokenNode](./css-parser-algorithms.tokennode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.iswhitespacenode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.iswhitespacenode.md new file mode 100644 index 000000000..4d7e703fb --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.iswhitespacenode.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [isWhitespaceNode](./css-parser-algorithms.iswhitespacenode.md) + +## isWhitespaceNode() function + +**Signature:** + +```typescript +export declare function isWhitespaceNode(x: unknown): x is WhitespaceNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.md new file mode 100644 index 000000000..8506fe27c --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.md @@ -0,0 +1,53 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) + +## css-parser-algorithms package + +## Classes + +| Class | Description | +| --- | --- | +| [CommentNode](./css-parser-algorithms.commentnode.md) | | +| [FunctionNode](./css-parser-algorithms.functionnode.md) | | +| [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) | | +| [TokenNode](./css-parser-algorithms.tokennode.md) | | +| [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) | | + +## Abstract Classes + +| Abstract Class | Description | +| --- | --- | +| [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md) | | + +## Enumerations + +| Enumeration | Description | +| --- | --- | +| [ComponentValueType](./css-parser-algorithms.componentvaluetype.md) | | + +## Functions + +| Function | Description | +| --- | --- | +| [gatherNodeAncestry(node)](./css-parser-algorithms.gathernodeancestry.md) | | +| [isCommentNode(x)](./css-parser-algorithms.iscommentnode.md) | | +| [isFunctionNode(x)](./css-parser-algorithms.isfunctionnode.md) | | +| [isSimpleBlockNode(x)](./css-parser-algorithms.issimpleblocknode.md) | | +| [isTokenNode(x)](./css-parser-algorithms.istokennode.md) | | +| [isWhitespaceNode(x)](./css-parser-algorithms.iswhitespacenode.md) | | +| [parseCommaSeparatedListOfComponentValues(tokens, options)](./css-parser-algorithms.parsecommaseparatedlistofcomponentvalues.md) | | +| [parseComponentValue(tokens, options)](./css-parser-algorithms.parsecomponentvalue.md) | | +| [parseListOfComponentValues(tokens, options)](./css-parser-algorithms.parselistofcomponentvalues.md) | | +| [replaceComponentValues(componentValuesList, replaceWith)](./css-parser-algorithms.replacecomponentvalues.md) | | +| [sourceIndices(x)](./css-parser-algorithms.sourceindices.md) | Returns the start and end index of a node in the CSS source string. | +| [stringify(componentValueLists)](./css-parser-algorithms.stringify.md) | | +| [walkerIndexGenerator(initialList)](./css-parser-algorithms.walkerindexgenerator.md) | Generate a function that finds the next element that should be visited when walking an AST. Rules : - the previous iteration is used as a reference, so any checks are relative to the start of the current iteration. - the next element always appears after the current index. - the next element always exists in the list. - replacing an element does not cause the replaced element to be visited. - removing an element does not cause elements to be skipped. - an element added later in the list will be visited. | + +## Type Aliases + +| Type Alias | Description | +| --- | --- | +| [ComponentValue](./css-parser-algorithms.componentvalue.md) | | +| [ContainerNode](./css-parser-algorithms.containernode.md) | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.parsecommaseparatedlistofcomponentvalues.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.parsecommaseparatedlistofcomponentvalues.md new file mode 100644 index 000000000..6a2ed8b22 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.parsecommaseparatedlistofcomponentvalues.md @@ -0,0 +1,25 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [parseCommaSeparatedListOfComponentValues](./css-parser-algorithms.parsecommaseparatedlistofcomponentvalues.md) + +## parseCommaSeparatedListOfComponentValues() function + +**Signature:** + +```typescript +export declare function parseCommaSeparatedListOfComponentValues(tokens: Array, options?: { + onParseError?: (error: ParseError) => void; +}): ComponentValue[][]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| tokens | Array<CSSToken> | | +| options | { onParseError?: (error: ParseError) => void; } | _(Optional)_ | + +**Returns:** + +[ComponentValue](./css-parser-algorithms.componentvalue.md)\[\]\[\] + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.parsecomponentvalue.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.parsecomponentvalue.md new file mode 100644 index 000000000..daa25717a --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.parsecomponentvalue.md @@ -0,0 +1,25 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [parseComponentValue](./css-parser-algorithms.parsecomponentvalue.md) + +## parseComponentValue() function + +**Signature:** + +```typescript +export declare function parseComponentValue(tokens: Array, options?: { + onParseError?: (error: ParseError) => void; +}): import("../consume/consume-component-block-function").ComponentValue | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| tokens | Array<CSSToken> | | +| options | { onParseError?: (error: ParseError) => void; } | _(Optional)_ | + +**Returns:** + +import("../consume/consume-component-block-function").[ComponentValue](./css-parser-algorithms.componentvalue.md) \| undefined + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.parselistofcomponentvalues.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.parselistofcomponentvalues.md new file mode 100644 index 000000000..ae5f3f7d8 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.parselistofcomponentvalues.md @@ -0,0 +1,25 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [parseListOfComponentValues](./css-parser-algorithms.parselistofcomponentvalues.md) + +## parseListOfComponentValues() function + +**Signature:** + +```typescript +export declare function parseListOfComponentValues(tokens: Array, options?: { + onParseError?: (error: ParseError) => void; +}): ComponentValue[]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| tokens | Array<CSSToken> | | +| options | { onParseError?: (error: ParseError) => void; } | _(Optional)_ | + +**Returns:** + +[ComponentValue](./css-parser-algorithms.componentvalue.md)\[\] + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.replacecomponentvalues.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.replacecomponentvalues.md new file mode 100644 index 000000000..4d97041d6 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.replacecomponentvalues.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [replaceComponentValues](./css-parser-algorithms.replacecomponentvalues.md) + +## replaceComponentValues() function + +**Signature:** + +```typescript +export declare function replaceComponentValues(componentValuesList: Array>, replaceWith: (componentValue: ComponentValue) => ComponentValue | void): ComponentValue[][]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| componentValuesList | Array<Array<[ComponentValue](./css-parser-algorithms.componentvalue.md)>> | | +| replaceWith | (componentValue: [ComponentValue](./css-parser-algorithms.componentvalue.md)) => [ComponentValue](./css-parser-algorithms.componentvalue.md) \| void | | + +**Returns:** + +[ComponentValue](./css-parser-algorithms.componentvalue.md)\[\]\[\] + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode._constructor_.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode._constructor_.md new file mode 100644 index 000000000..976149792 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [(constructor)](./css-parser-algorithms.simpleblocknode._constructor_.md) + +## SimpleBlockNode.(constructor) + +Constructs a new instance of the `SimpleBlockNode` class + +**Signature:** + +```typescript +constructor(startToken: CSSToken, endToken: CSSToken, value: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| startToken | CSSToken | | +| endToken | CSSToken | | +| value | Array<[ComponentValue](./css-parser-algorithms.componentvalue.md)> | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.at.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.at.md new file mode 100644 index 000000000..a2afa89e7 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [at](./css-parser-algorithms.simpleblocknode.at.md) + +## SimpleBlockNode.at() method + +**Signature:** + +```typescript +at(index: number | string): ComponentValue | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[ComponentValue](./css-parser-algorithms.componentvalue.md) \| undefined + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.endtoken.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.endtoken.md new file mode 100644 index 000000000..c4cfaf483 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.endtoken.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [endToken](./css-parser-algorithms.simpleblocknode.endtoken.md) + +## SimpleBlockNode.endToken property + +**Signature:** + +```typescript +endToken: CSSToken; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.indexof.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.indexof.md new file mode 100644 index 000000000..6c19d86de --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [indexOf](./css-parser-algorithms.simpleblocknode.indexof.md) + +## SimpleBlockNode.indexOf() method + +**Signature:** + +```typescript +indexOf(item: ComponentValue): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [ComponentValue](./css-parser-algorithms.componentvalue.md) | | + +**Returns:** + +number \| string + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.issimpleblocknode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.issimpleblocknode.md new file mode 100644 index 000000000..17e098cc5 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.issimpleblocknode.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [isSimpleBlockNode](./css-parser-algorithms.simpleblocknode.issimpleblocknode.md) + +## SimpleBlockNode.isSimpleBlockNode() method + +**Signature:** + +```typescript +static isSimpleBlockNode(x: unknown): x is SimpleBlockNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.md new file mode 100644 index 000000000..107a98d22 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.md @@ -0,0 +1,40 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) + +## SimpleBlockNode class + +**Signature:** + +```typescript +export declare class SimpleBlockNode extends ContainerNodeBaseClass +``` +**Extends:** [ContainerNodeBaseClass](./css-parser-algorithms.containernodebaseclass.md) + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(startToken, endToken, value)](./css-parser-algorithms.simpleblocknode._constructor_.md) | | Constructs a new instance of the SimpleBlockNode class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [endToken](./css-parser-algorithms.simpleblocknode.endtoken.md) | | CSSToken | | +| [startToken](./css-parser-algorithms.simpleblocknode.starttoken.md) | | CSSToken | | +| [type](./css-parser-algorithms.simpleblocknode.type.md) | | [ComponentValueType](./css-parser-algorithms.componentvaluetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./css-parser-algorithms.simpleblocknode.at.md) | | | +| [indexOf(item)](./css-parser-algorithms.simpleblocknode.indexof.md) | | | +| [isSimpleBlockNode()](./css-parser-algorithms.simpleblocknode.issimpleblocknode.md) | | | +| [isSimpleBlockNode(x)](./css-parser-algorithms.simpleblocknode.issimpleblocknode.md) | static | | +| [normalize()](./css-parser-algorithms.simpleblocknode.normalize.md) | | Normalize the current Simple Block: - if the "endToken" is EOF, replace with the mirror token of the "startToken" | +| [toJSON()](./css-parser-algorithms.simpleblocknode.tojson.md) | | | +| [tokens()](./css-parser-algorithms.simpleblocknode.tokens.md) | | | +| [toString()](./css-parser-algorithms.simpleblocknode.tostring.md) | | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.normalize.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.normalize.md new file mode 100644 index 000000000..23642518b --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.normalize.md @@ -0,0 +1,17 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [normalize](./css-parser-algorithms.simpleblocknode.normalize.md) + +## SimpleBlockNode.normalize() method + +Normalize the current Simple Block: - if the "endToken" is EOF, replace with the mirror token of the "startToken" + +**Signature:** + +```typescript +normalize(): void; +``` +**Returns:** + +void + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.starttoken.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.starttoken.md new file mode 100644 index 000000000..b7ef455b9 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.starttoken.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [startToken](./css-parser-algorithms.simpleblocknode.starttoken.md) + +## SimpleBlockNode.startToken property + +**Signature:** + +```typescript +startToken: CSSToken; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.tojson.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.tojson.md new file mode 100644 index 000000000..2f2587e36 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.tojson.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [toJSON](./css-parser-algorithms.simpleblocknode.tojson.md) + +## SimpleBlockNode.toJSON() method + +**Signature:** + +```typescript +toJSON(): unknown; +``` +**Returns:** + +unknown + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.tokens.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.tokens.md new file mode 100644 index 000000000..bbe14609c --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [tokens](./css-parser-algorithms.simpleblocknode.tokens.md) + +## SimpleBlockNode.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.tostring.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.tostring.md new file mode 100644 index 000000000..402f40660 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [toString](./css-parser-algorithms.simpleblocknode.tostring.md) + +## SimpleBlockNode.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.type.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.type.md new file mode 100644 index 000000000..3bddf84a7 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.simpleblocknode.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [SimpleBlockNode](./css-parser-algorithms.simpleblocknode.md) > [type](./css-parser-algorithms.simpleblocknode.type.md) + +## SimpleBlockNode.type property + +**Signature:** + +```typescript +type: ComponentValueType; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.sourceindices.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.sourceindices.md new file mode 100644 index 000000000..1d0c621a6 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.sourceindices.md @@ -0,0 +1,28 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [sourceIndices](./css-parser-algorithms.sourceindices.md) + +## sourceIndices() function + +Returns the start and end index of a node in the CSS source string. + +**Signature:** + +```typescript +export declare function sourceIndices(x: { + tokens(): Array; +} | Array<{ + tokens(): Array; +}>): [number, number]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | { tokens(): Array<CSSToken>; } \| Array<{ tokens(): Array<CSSToken>; }> | | + +**Returns:** + +\[number, number\] + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.stringify.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.stringify.md new file mode 100644 index 000000000..00104c49b --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.stringify.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [stringify](./css-parser-algorithms.stringify.md) + +## stringify() function + +**Signature:** + +```typescript +export declare function stringify(componentValueLists: Array>): string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| componentValueLists | Array<Array<[ComponentValue](./css-parser-algorithms.componentvalue.md)>> | | + +**Returns:** + +string + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode._constructor_.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode._constructor_.md new file mode 100644 index 000000000..36a4ec23e --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode._constructor_.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [TokenNode](./css-parser-algorithms.tokennode.md) > [(constructor)](./css-parser-algorithms.tokennode._constructor_.md) + +## TokenNode.(constructor) + +Constructs a new instance of the `TokenNode` class + +**Signature:** + +```typescript +constructor(value: CSSToken); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| value | CSSToken | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.istokennode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.istokennode.md new file mode 100644 index 000000000..8c88bb428 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.istokennode.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [TokenNode](./css-parser-algorithms.tokennode.md) > [isTokenNode](./css-parser-algorithms.tokennode.istokennode.md) + +## TokenNode.isTokenNode() method + +**Signature:** + +```typescript +static isTokenNode(x: unknown): x is TokenNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [TokenNode](./css-parser-algorithms.tokennode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.md new file mode 100644 index 000000000..423b3a940 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.md @@ -0,0 +1,35 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [TokenNode](./css-parser-algorithms.tokennode.md) + +## TokenNode class + +**Signature:** + +```typescript +export declare class TokenNode +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(value)](./css-parser-algorithms.tokennode._constructor_.md) | | Constructs a new instance of the TokenNode class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [type](./css-parser-algorithms.tokennode.type.md) | | [ComponentValueType](./css-parser-algorithms.componentvaluetype.md) | | +| [value](./css-parser-algorithms.tokennode.value.md) | | CSSToken | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [isTokenNode()](./css-parser-algorithms.tokennode.istokennode.md) | | | +| [isTokenNode(x)](./css-parser-algorithms.tokennode.istokennode.md) | static | | +| [toJSON()](./css-parser-algorithms.tokennode.tojson.md) | | | +| [tokens()](./css-parser-algorithms.tokennode.tokens.md) | | | +| [toString()](./css-parser-algorithms.tokennode.tostring.md) | | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.tojson.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.tojson.md new file mode 100644 index 000000000..932b000b5 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.tojson.md @@ -0,0 +1,18 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [TokenNode](./css-parser-algorithms.tokennode.md) > [toJSON](./css-parser-algorithms.tokennode.tojson.md) + +## TokenNode.toJSON() method + +**Signature:** + +```typescript +toJSON(): { + type: ComponentValueType; + tokens: CSSToken[]; + }; +``` +**Returns:** + +{ type: [ComponentValueType](./css-parser-algorithms.componentvaluetype.md); tokens: CSSToken\[\]; } + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.tokens.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.tokens.md new file mode 100644 index 000000000..92ed963b9 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [TokenNode](./css-parser-algorithms.tokennode.md) > [tokens](./css-parser-algorithms.tokennode.tokens.md) + +## TokenNode.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.tostring.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.tostring.md new file mode 100644 index 000000000..20c89fafc --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [TokenNode](./css-parser-algorithms.tokennode.md) > [toString](./css-parser-algorithms.tokennode.tostring.md) + +## TokenNode.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.type.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.type.md new file mode 100644 index 000000000..214a6a1b8 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [TokenNode](./css-parser-algorithms.tokennode.md) > [type](./css-parser-algorithms.tokennode.type.md) + +## TokenNode.type property + +**Signature:** + +```typescript +type: ComponentValueType; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.value.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.value.md new file mode 100644 index 000000000..cfb6875ff --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.tokennode.value.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [TokenNode](./css-parser-algorithms.tokennode.md) > [value](./css-parser-algorithms.tokennode.value.md) + +## TokenNode.value property + +**Signature:** + +```typescript +value: CSSToken; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.walkerindexgenerator.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.walkerindexgenerator.md new file mode 100644 index 000000000..f0ae2fb26 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.walkerindexgenerator.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [walkerIndexGenerator](./css-parser-algorithms.walkerindexgenerator.md) + +## walkerIndexGenerator() function + +Generate a function that finds the next element that should be visited when walking an AST. Rules : - the previous iteration is used as a reference, so any checks are relative to the start of the current iteration. - the next element always appears after the current index. - the next element always exists in the list. - replacing an element does not cause the replaced element to be visited. - removing an element does not cause elements to be skipped. - an element added later in the list will be visited. + +**Signature:** + +```typescript +export declare function walkerIndexGenerator(initialList: Array): (list: Array, child: T, index: number) => number; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| initialList | Array<T> | | + +**Returns:** + +(list: Array<T>, child: T, index: number) => number + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode._constructor_.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode._constructor_.md new file mode 100644 index 000000000..b71c7d80a --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode._constructor_.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) > [(constructor)](./css-parser-algorithms.whitespacenode._constructor_.md) + +## WhitespaceNode.(constructor) + +Constructs a new instance of the `WhitespaceNode` class + +**Signature:** + +```typescript +constructor(value: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| value | Array<CSSToken> | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.iswhitespacenode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.iswhitespacenode.md new file mode 100644 index 000000000..50334b316 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.iswhitespacenode.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) > [isWhitespaceNode](./css-parser-algorithms.whitespacenode.iswhitespacenode.md) + +## WhitespaceNode.isWhitespaceNode() method + +**Signature:** + +```typescript +static isWhitespaceNode(x: unknown): x is WhitespaceNode; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.md new file mode 100644 index 000000000..fcc0b888a --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.md @@ -0,0 +1,35 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) + +## WhitespaceNode class + +**Signature:** + +```typescript +export declare class WhitespaceNode +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(value)](./css-parser-algorithms.whitespacenode._constructor_.md) | | Constructs a new instance of the WhitespaceNode class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [type](./css-parser-algorithms.whitespacenode.type.md) | | [ComponentValueType](./css-parser-algorithms.componentvaluetype.md) | | +| [value](./css-parser-algorithms.whitespacenode.value.md) | | Array<CSSToken> | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [isWhitespaceNode()](./css-parser-algorithms.whitespacenode.iswhitespacenode.md) | | | +| [isWhitespaceNode(x)](./css-parser-algorithms.whitespacenode.iswhitespacenode.md) | static | | +| [toJSON()](./css-parser-algorithms.whitespacenode.tojson.md) | | | +| [tokens()](./css-parser-algorithms.whitespacenode.tokens.md) | | | +| [toString()](./css-parser-algorithms.whitespacenode.tostring.md) | | | + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.tojson.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.tojson.md new file mode 100644 index 000000000..5d498a1b5 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.tojson.md @@ -0,0 +1,18 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) > [toJSON](./css-parser-algorithms.whitespacenode.tojson.md) + +## WhitespaceNode.toJSON() method + +**Signature:** + +```typescript +toJSON(): { + type: ComponentValueType; + tokens: CSSToken[]; + }; +``` +**Returns:** + +{ type: [ComponentValueType](./css-parser-algorithms.componentvaluetype.md); tokens: CSSToken\[\]; } + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.tokens.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.tokens.md new file mode 100644 index 000000000..ac1e044d5 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) > [tokens](./css-parser-algorithms.whitespacenode.tokens.md) + +## WhitespaceNode.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.tostring.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.tostring.md new file mode 100644 index 000000000..1b0d9affd --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) > [toString](./css-parser-algorithms.whitespacenode.tostring.md) + +## WhitespaceNode.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.type.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.type.md new file mode 100644 index 000000000..d55810d20 --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) > [type](./css-parser-algorithms.whitespacenode.type.md) + +## WhitespaceNode.type property + +**Signature:** + +```typescript +type: ComponentValueType; +``` diff --git a/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.value.md b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.value.md new file mode 100644 index 000000000..1feca8f0a --- /dev/null +++ b/packages/css-parser-algorithms/docs/css-parser-algorithms.whitespacenode.value.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/css-parser-algorithms](./css-parser-algorithms.md) > [WhitespaceNode](./css-parser-algorithms.whitespacenode.md) > [value](./css-parser-algorithms.whitespacenode.value.md) + +## WhitespaceNode.value property + +**Signature:** + +```typescript +value: Array; +``` diff --git a/packages/css-parser-algorithms/docs/index.md b/packages/css-parser-algorithms/docs/index.md new file mode 100644 index 000000000..7fa81a230 --- /dev/null +++ b/packages/css-parser-algorithms/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [@csstools/css-parser-algorithms](./css-parser-algorithms.md) | | + diff --git a/packages/css-parser-algorithms/package.json b/packages/css-parser-algorithms/package.json index dc7976123..0e39c395c 100644 --- a/packages/css-parser-algorithms/package.json +++ b/packages/css-parser-algorithms/package.json @@ -52,6 +52,7 @@ }, "scripts": { "build": "rollup -c ../../rollup/default.mjs", + "docs": "node ../../.github/bin/generate-docs/api-documenter.mjs", "lint": "node ../../.github/bin/format-package-json.mjs", "prepublishOnly": "npm run build && npm run test", "stryker": "stryker run --logLevel error", diff --git a/packages/css-tokenizer/README.md b/packages/css-tokenizer/README.md index 810e47c8f..ece9e1efb 100644 --- a/packages/css-tokenizer/README.md +++ b/packages/css-tokenizer/README.md @@ -6,6 +6,10 @@ Implemented from : https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/ +## API + +[Read the API docs](./docs/css-tokenizer.md) + ## Usage Add [CSS Tokenizer] to your project: @@ -17,7 +21,7 @@ npm install @csstools/css-tokenizer --save-dev ```js import { tokenizer, TokenType } from '@csstools/css-tokenizer'; -const myCSS = `@media only screen and (min-width: 768rem) { +const myCSS = `@media only screen and (min-width: 768rem) { .foo { content: 'Some content!' !important; } @@ -68,7 +72,6 @@ console.log(tokens); #### `onParseError` The tokenizer is forgiving and won't stop when a parse error is encountered. -Parse errors also aren't tokens. To receive parsing error information you can set a callback. @@ -87,8 +90,8 @@ while (true) { } ``` -Parser errors will try to inform you about the point in the tokenizer logic the error happened. -This tells you the kind of error. +Parser errors will try to inform you where in the tokenizer logic the error happened. +This tells you what kind of error occurred. ## Goals and non-goals diff --git a/packages/css-tokenizer/api-extractor.json b/packages/css-tokenizer/api-extractor.json index 42058be51..ccef9beeb 100644 --- a/packages/css-tokenizer/api-extractor.json +++ b/packages/css-tokenizer/api-extractor.json @@ -1,4 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.json" + "extends": "../../api-extractor.json", + "docModel": { + "enabled": true + } } diff --git a/packages/css-tokenizer/dist/index.d.ts b/packages/css-tokenizer/dist/index.d.ts index cd3757979..04d4a2d3f 100644 --- a/packages/css-tokenizer/dist/index.d.ts +++ b/packages/css-tokenizer/dist/index.d.ts @@ -1,3 +1,35 @@ +/** + * Tokenize CSS following the CSS Syntax Level 3 specification. + * + * @remarks + * The tokenizing and parsing tools provided by CSSTools are designed to be low level and generic with strong ties to their respective specifications. + * + * Any analysis or mutation of CSS source code should be done with the least powerful tool that can accomplish the task. + * For many applications it is sufficient to work with tokens. + * For others you might need to use {@link https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms | `@csstools/css-parser-algorithms`} or even a specific parser. + * + * @example + * Tokenize a string of CSS into an array of tokens: + * ```js + * import { tokenize } from '@csstools/css-tokenizer'; + * + * const myCSS = `@media only screen and (min-width: 768rem) { + * .foo { + * content: 'Some content!' !important; + * } + * } + * `; + * + * const tokens = tokenize({ + * css: myCSS, + * }); + * + * console.log(tokens); + * ``` + * + * @packageDocumentation + */ + export declare function cloneTokens(tokens: Array): Array; export declare type CodePointReader = { @@ -13,6 +45,9 @@ export declare type CodePointReader = { resetRepresentation(): void; }; +/** + * The union of all possible CSS tokens + */ export declare type CSSToken = TokenAtKeyword | TokenBadString | TokenBadURL | TokenCDC | TokenCDO | TokenColon | TokenComma | TokenComment | TokenDelim | TokenDimension | TokenEOF | TokenFunction | TokenHash | TokenIdent | TokenNumber | TokenPercentage | TokenSemicolon | TokenString | TokenURL | TokenWhitespace | TokenOpenParen | TokenCloseParen | TokenOpenSquare | TokenCloseSquare | TokenOpenCurly | TokenCloseCurly | TokenUnicodeRange; export declare enum HashType { @@ -43,6 +78,9 @@ export declare class ParseError extends Error { constructor(message: string, sourceStart: number, sourceEnd: number, parserState: Array); } +/** + * @internal + */ export declare class Reader implements CodePointReader { cursor: number; source: string; @@ -60,16 +98,50 @@ export declare class Reader implements CodePointReader { export declare function stringify(...tokens: Array): string; +/** + * The CSS Token interface + * + * @remarks + * CSS Tokens are fully typed and have a strict structure. + * This makes it easier to iterate and analyze a token stream. + * + * The string representation and the parsed value are stored separately for many token types. + * It is always assumed that the string representation will be used when stringifying, while the parsed value should be used when analyzing tokens. + */ export declare type Token = [ -/** The type of token */ +/** +* The type of token +*/ T, -/** The token representation */ +/** +* The token representation +* +* @remarks +* This field will be used when stringifying the token. +* Any stored value is assumed to be valid CSS. +* +* You should never use this field when analyzing the token when there is a parsed value available. +* But you must store mutated values here. +*/ string, -/** Start position of representation */ +/** +* Start position of representation +*/ number, -/** End position of representation */ +/** +* End position of representation +*/ number, -/** Extra data */ +/** +* Extra data +* +* @remarks +* This holds the parsed value of each token. +* These values are unescaped, unquoted, converted to numbers, etc. +* +* You should always use this field when analyzing the token. +* But you must not assume that mutating only this field will have any effect. +*/ U ]; diff --git a/packages/css-tokenizer/docs/css-tokenizer.api.json b/packages/css-tokenizer/docs/css-tokenizer.api.json new file mode 100644 index 000000000..c17c01e08 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.api.json @@ -0,0 +1,3077 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@csstools/css-tokenizer!", + "docComment": "/**\n * Tokenize CSS following the CSS Syntax Level 3 specification.\n *\n * @remarks\n *\n * The tokenizing and parsing tools provided by CSSTools are designed to be low level and generic with strong ties to their respective specifications.\n *\n * Any analysis or mutation of CSS source code should be done with the least powerful tool that can accomplish the task. For many applications it is sufficient to work with tokens. For others you might need to use {@link https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms | `@csstools/css-parser-algorithms`} or even a specific parser.\n *\n * @example\n *\n * Tokenize a string of CSS into an array of tokens:\n * ```js\n * import { tokenize } from '@csstools/css-tokenizer';\n *\n * const myCSS = `@media only screen and (min-width: 768rem) {\n * \t.foo {\n * \t\tcontent: 'Some content!' !important;\n * \t}\n * }\n * `;\n *\n * const tokens = tokenize({\n * \tcss: myCSS,\n * });\n *\n * console.log(tokens);\n * ```\n *\n * @packageDocumentation\n */\n", + "name": "@csstools/css-tokenizer", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@csstools/css-tokenizer!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@csstools/css-tokenizer!cloneTokens:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function cloneTokens(tokens: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/clone-tokens.d.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tokens", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + } + ], + "name": "cloneTokens" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!CodePointReader:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type CodePointReader = " + }, + { + "kind": "Content", + "text": "{\n representationStart: number;\n representationEnd: number;\n cursor: number;\n codePointSource: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": ";\n representationIndices: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": ";\n source: string;\n advanceCodePoint(n?: number): void;\n readCodePoint(n?: number): number | false;\n unreadCodePoint(n?: number): void;\n resetRepresentation(): void;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/code-point-reader.d.ts", + "releaseTag": "Public", + "name": "CodePointReader", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type", + "docComment": "/**\n * The union of all possible CSS tokens\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type CSSToken = " + }, + { + "kind": "Reference", + "text": "TokenAtKeyword", + "canonicalReference": "@csstools/css-tokenizer!TokenAtKeyword:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenBadString", + "canonicalReference": "@csstools/css-tokenizer!TokenBadString:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenBadURL", + "canonicalReference": "@csstools/css-tokenizer!TokenBadURL:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenCDC", + "canonicalReference": "@csstools/css-tokenizer!TokenCDC:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenCDO", + "canonicalReference": "@csstools/css-tokenizer!TokenCDO:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenColon", + "canonicalReference": "@csstools/css-tokenizer!TokenColon:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenComma", + "canonicalReference": "@csstools/css-tokenizer!TokenComma:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenComment", + "canonicalReference": "@csstools/css-tokenizer!TokenComment:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenDimension", + "canonicalReference": "@csstools/css-tokenizer!TokenDimension:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenEOF", + "canonicalReference": "@csstools/css-tokenizer!TokenEOF:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenFunction", + "canonicalReference": "@csstools/css-tokenizer!TokenFunction:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenHash", + "canonicalReference": "@csstools/css-tokenizer!TokenHash:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenIdent", + "canonicalReference": "@csstools/css-tokenizer!TokenIdent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenNumber", + "canonicalReference": "@csstools/css-tokenizer!TokenNumber:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenPercentage", + "canonicalReference": "@csstools/css-tokenizer!TokenPercentage:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenSemicolon", + "canonicalReference": "@csstools/css-tokenizer!TokenSemicolon:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenString", + "canonicalReference": "@csstools/css-tokenizer!TokenString:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenURL", + "canonicalReference": "@csstools/css-tokenizer!TokenURL:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenWhitespace", + "canonicalReference": "@csstools/css-tokenizer!TokenWhitespace:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenOpenParen", + "canonicalReference": "@csstools/css-tokenizer!TokenOpenParen:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenCloseParen", + "canonicalReference": "@csstools/css-tokenizer!TokenCloseParen:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenOpenSquare", + "canonicalReference": "@csstools/css-tokenizer!TokenOpenSquare:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenCloseSquare", + "canonicalReference": "@csstools/css-tokenizer!TokenCloseSquare:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenOpenCurly", + "canonicalReference": "@csstools/css-tokenizer!TokenOpenCurly:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenCloseCurly", + "canonicalReference": "@csstools/css-tokenizer!TokenCloseCurly:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "TokenUnicodeRange", + "canonicalReference": "@csstools/css-tokenizer!TokenUnicodeRange:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "CSSToken", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 54 + } + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/css-tokenizer!HashType:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum HashType " + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "HashType", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!HashType.ID:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "ID = " + }, + { + "kind": "Content", + "text": "\"id\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "ID" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!HashType.Unrestricted:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Unrestricted = " + }, + { + "kind": "Content", + "text": "\"unrestricted\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Unrestricted" + } + ] + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-tokenizer!isToken:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isToken(x: " + }, + { + "kind": "Content", + "text": "any" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/css-tokenizer!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isToken" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-tokenizer!mirrorVariant:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function mirrorVariant(token: " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "token", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "mirrorVariant" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-tokenizer!mirrorVariantType:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function mirrorVariantType(type: " + }, + { + "kind": "Reference", + "text": "TokenType", + "canonicalReference": "@csstools/css-tokenizer!TokenType:enum" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "TokenType", + "canonicalReference": "@csstools/css-tokenizer!TokenType:enum" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "type", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "mirrorVariantType" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-tokenizer!mutateIdent:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function mutateIdent(ident: " + }, + { + "kind": "Reference", + "text": "TokenIdent", + "canonicalReference": "@csstools/css-tokenizer!TokenIdent:type" + }, + { + "kind": "Content", + "text": ", newValue: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "void" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/mutations.d.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "ident", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "newValue", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "mutateIdent" + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/css-tokenizer!NumberType:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum NumberType " + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "NumberType", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!NumberType.Integer:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Integer = " + }, + { + "kind": "Content", + "text": "\"integer\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Integer" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!NumberType.Number:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Number = " + }, + { + "kind": "Content", + "text": "\"number\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Number" + } + ] + }, + { + "kind": "Class", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class ParseError extends " + }, + { + "kind": "Reference", + "text": "Error", + "canonicalReference": "!Error:interface" + }, + { + "kind": "Content", + "text": " " + } + ], + "fileUrlPath": "dist/_types/interfaces/error.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "ParseError", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/css-tokenizer!ParseError:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `ParseError` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(message: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", sourceStart: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", sourceEnd: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ", parserState: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "message", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "sourceStart", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "sourceEnd", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "parserState", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "isOptional": false + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-tokenizer!ParseError#parserState:member", + "docComment": "/**\n * The parser steps that preceded the error.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "parserState: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "parserState", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-tokenizer!ParseError#sourceEnd:member", + "docComment": "/**\n * The index of the end character of the current token.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "sourceEnd: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "sourceEnd", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/css-tokenizer!ParseError#sourceStart:member", + "docComment": "/**\n * The index of the start character of the current token.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "sourceStart: " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "sourceStart", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "extendsTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "implementsTokenRanges": [] + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-tokenizer!stringify:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function stringify(...tokens: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/stringify.d.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tokens", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + } + ], + "name": "stringify" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!Token:type", + "docComment": "/**\n * The CSS Token interface\n *\n * @remarks\n *\n * CSS Tokens are fully typed and have a strict structure. This makes it easier to iterate and analyze a token stream.\n *\n * The string representation and the parsed value are stored separately for many token types. It is always assumed that the string representation will be used when stringifying, while the parsed value should be used when analyzing tokens.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type Token = " + }, + { + "kind": "Content", + "text": "[\n /**\n * The type of token\n */\n T,\n /**\n * The token representation\n *\n * @remarks\n * This field will be used when stringifying the token.\n * Any stored value is assumed to be valid CSS.\n *\n * You should never use this field when analyzing the token when there is a parsed value available.\n * But you must store mutated values here.\n */\n string,\n /**\n * Start position of representation\n */\n number,\n /**\n * End position of representation\n */\n number,\n /**\n * Extra data\n *\n * @remarks\n * This holds the parsed value of each token.\n * These values are unescaped, unquoted, converted to numbers, etc.\n *\n * You should always use this field when analyzing the token.\n * But you must not assume that mutating only this field will have any effect.\n */\n U\n]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "Token", + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + }, + { + "typeParameterName": "U", + "constraintTokenRange": { + "startIndex": 0, + "endIndex": 0 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "typeTokenRange": { + "startIndex": 3, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenAtKeyword:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenAtKeyword = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.AtKeyword", + "canonicalReference": "@csstools/css-tokenizer!TokenType.AtKeyword:member" + }, + { + "kind": "Content", + "text": ", {\n value: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenAtKeyword", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenBadString:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenBadString = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.BadString", + "canonicalReference": "@csstools/css-tokenizer!TokenType.BadString:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenBadString", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenBadURL:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenBadURL = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.BadURL", + "canonicalReference": "@csstools/css-tokenizer!TokenType.BadURL:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenBadURL", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenCDC:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenCDC = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.CDC", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CDC:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenCDC", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenCDO:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenCDO = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.CDO", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CDO:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenCDO", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenCloseCurly:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenCloseCurly = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.CloseCurly", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CloseCurly:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenCloseCurly", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenCloseParen:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenCloseParen = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.CloseParen", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CloseParen:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenCloseParen", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenCloseSquare:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenCloseSquare = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.CloseSquare", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CloseSquare:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenCloseSquare", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenColon:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenColon = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Colon", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Colon:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenColon", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenComma:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenComma = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Comma", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Comma:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenComma", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenComment:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenComment = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Comment", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Comment:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenComment", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenDelim = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Delim", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Delim:member" + }, + { + "kind": "Content", + "text": ", {\n value: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenDelim", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenDimension:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenDimension = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Dimension", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Dimension:member" + }, + { + "kind": "Content", + "text": ", {\n value: number;\n signCharacter?: '+' | '-';\n unit: string;\n type: " + }, + { + "kind": "Reference", + "text": "NumberType", + "canonicalReference": "@csstools/css-tokenizer!NumberType:enum" + }, + { + "kind": "Content", + "text": ";\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenDimension", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenEOF:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenEOF = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.EOF", + "canonicalReference": "@csstools/css-tokenizer!TokenType.EOF:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenEOF", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenFunction:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenFunction = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Function", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Function:member" + }, + { + "kind": "Content", + "text": ", {\n value: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenFunction", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenHash:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenHash = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Hash", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Hash:member" + }, + { + "kind": "Content", + "text": ", {\n value: string;\n type: " + }, + { + "kind": "Reference", + "text": "HashType", + "canonicalReference": "@csstools/css-tokenizer!HashType:enum" + }, + { + "kind": "Content", + "text": ";\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenHash", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenIdent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenIdent = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Ident", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Ident:member" + }, + { + "kind": "Content", + "text": ", {\n value: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenIdent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-tokenizer!tokenize:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function tokenize(input: " + }, + { + "kind": "Content", + "text": "{\n css: {\n valueOf(): string;\n };\n unicodeRangesAllowed?: boolean;\n}" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/tokenizer.d.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 11 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "input", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "tokenize" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/css-tokenizer!tokenizer:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function tokenizer(input: " + }, + { + "kind": "Content", + "text": "{\n css: {\n valueOf(): string;\n };\n unicodeRangesAllowed?: boolean;\n}" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "{\n nextToken: () => " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": " | undefined;\n endOfFile: () => boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/tokenizer.d.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "input", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "tokenizer" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenNumber:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenNumber = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Number", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Number:member" + }, + { + "kind": "Content", + "text": ", {\n value: number;\n signCharacter?: '+' | '-';\n type: " + }, + { + "kind": "Reference", + "text": "NumberType", + "canonicalReference": "@csstools/css-tokenizer!NumberType:enum" + }, + { + "kind": "Content", + "text": ";\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenNumber", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 7 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenOpenCurly:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenOpenCurly = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.OpenCurly", + "canonicalReference": "@csstools/css-tokenizer!TokenType.OpenCurly:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenOpenCurly", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenOpenParen:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenOpenParen = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.OpenParen", + "canonicalReference": "@csstools/css-tokenizer!TokenType.OpenParen:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenOpenParen", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenOpenSquare:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenOpenSquare = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.OpenSquare", + "canonicalReference": "@csstools/css-tokenizer!TokenType.OpenSquare:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenOpenSquare", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenPercentage:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenPercentage = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Percentage", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Percentage:member" + }, + { + "kind": "Content", + "text": ", {\n value: number;\n signCharacter?: '+' | '-';\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenPercentage", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenSemicolon:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenSemicolon = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Semicolon", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Semicolon:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenSemicolon", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenString:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenString = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.String", + "canonicalReference": "@csstools/css-tokenizer!TokenType.String:member" + }, + { + "kind": "Content", + "text": ", {\n value: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenString", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/css-tokenizer!TokenType:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum TokenType " + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenType", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.AtKeyword:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-at-keyword-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "AtKeyword = " + }, + { + "kind": "Content", + "text": "\"at-keyword-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "AtKeyword" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.BadString:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-bad-string-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "BadString = " + }, + { + "kind": "Content", + "text": "\"bad-string-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "BadString" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.BadURL:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-bad-url-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "BadURL = " + }, + { + "kind": "Content", + "text": "\"bad-url-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "BadURL" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CDC:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-cdc-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "CDC = " + }, + { + "kind": "Content", + "text": "\"CDC-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "CDC" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CDO:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-cdo-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "CDO = " + }, + { + "kind": "Content", + "text": "\"CDO-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "CDO" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CloseCurly:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#tokendef-close-curly\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "CloseCurly = " + }, + { + "kind": "Content", + "text": "\"}-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "CloseCurly" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CloseParen:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#tokendef-close-paren\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "CloseParen = " + }, + { + "kind": "Content", + "text": "\")-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "CloseParen" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.CloseSquare:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#tokendef-close-square\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "CloseSquare = " + }, + { + "kind": "Content", + "text": "\"]-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "CloseSquare" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Colon:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-colon-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Colon = " + }, + { + "kind": "Content", + "text": "\"colon-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Colon" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Comma:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-comma-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Comma = " + }, + { + "kind": "Content", + "text": "\"comma-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Comma" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Comment:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#comment-diagram\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Comment = " + }, + { + "kind": "Content", + "text": "\"comment\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Comment" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Delim:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-delim-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Delim = " + }, + { + "kind": "Content", + "text": "\"delim-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Delim" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Dimension:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-dimension-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Dimension = " + }, + { + "kind": "Content", + "text": "\"dimension-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Dimension" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.EOF:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-eof-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "EOF = " + }, + { + "kind": "Content", + "text": "\"EOF-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "EOF" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Function:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-function-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Function = " + }, + { + "kind": "Content", + "text": "\"function-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Function" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Hash:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-hash-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Hash = " + }, + { + "kind": "Content", + "text": "\"hash-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Hash" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Ident:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-ident-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Ident = " + }, + { + "kind": "Content", + "text": "\"ident-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Ident" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Number:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-percentage-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Number = " + }, + { + "kind": "Content", + "text": "\"number-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Number" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.OpenCurly:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#tokendef-open-curly\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "OpenCurly = " + }, + { + "kind": "Content", + "text": "\"{-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "OpenCurly" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.OpenParen:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#tokendef-open-paren\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "OpenParen = " + }, + { + "kind": "Content", + "text": "\"(-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "OpenParen" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.OpenSquare:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#tokendef-open-square\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "OpenSquare = " + }, + { + "kind": "Content", + "text": "\"[-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "OpenSquare" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Percentage:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-percentage-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Percentage = " + }, + { + "kind": "Content", + "text": "\"percentage-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Percentage" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Semicolon:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-semicolon-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Semicolon = " + }, + { + "kind": "Content", + "text": "\"semicolon-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Semicolon" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.String:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-string-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "String = " + }, + { + "kind": "Content", + "text": "\"string-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "String" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.UnicodeRange:member", + "docComment": "/**\n * https://drafts.csswg.org/css-syntax/#typedef-unicode-range-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "UnicodeRange = " + }, + { + "kind": "Content", + "text": "\"unicode-range-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "UnicodeRange" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.URL:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-url-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "URL = " + }, + { + "kind": "Content", + "text": "\"url-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "URL" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Whitespace:member", + "docComment": "/**\n * https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-whitespace-token\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Whitespace = " + }, + { + "kind": "Content", + "text": "\"whitespace-token\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Whitespace" + } + ] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenUnicodeRange:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenUnicodeRange = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.UnicodeRange", + "canonicalReference": "@csstools/css-tokenizer!TokenType.UnicodeRange:member" + }, + { + "kind": "Content", + "text": ", {\n startOfRange: number;\n endOfRange: number;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenUnicodeRange", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenURL:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenURL = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.URL", + "canonicalReference": "@csstools/css-tokenizer!TokenType.URL:member" + }, + { + "kind": "Content", + "text": ", {\n value: string;\n}>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenURL", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/css-tokenizer!TokenWhitespace:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TokenWhitespace = " + }, + { + "kind": "Reference", + "text": "Token", + "canonicalReference": "@csstools/css-tokenizer!Token:type" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "TokenType.Whitespace", + "canonicalReference": "@csstools/css-tokenizer!TokenType.Whitespace:member" + }, + { + "kind": "Content", + "text": ", undefined>" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/interfaces/token.d.ts", + "releaseTag": "Public", + "name": "TokenWhitespace", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 5 + } + } + ] + } + ] +} diff --git a/packages/css-tokenizer/docs/css-tokenizer.clonetokens.md b/packages/css-tokenizer/docs/css-tokenizer.clonetokens.md new file mode 100644 index 000000000..775b271b2 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.clonetokens.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [cloneTokens](./css-tokenizer.clonetokens.md) + +## cloneTokens() function + +**Signature:** + +```typescript +export declare function cloneTokens(tokens: Array): Array; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| tokens | Array<[CSSToken](./css-tokenizer.csstoken.md)> | | + +**Returns:** + +Array<[CSSToken](./css-tokenizer.csstoken.md)> + diff --git a/packages/css-tokenizer/docs/css-tokenizer.codepointreader.md b/packages/css-tokenizer/docs/css-tokenizer.codepointreader.md new file mode 100644 index 000000000..1a32acbe2 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.codepointreader.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [CodePointReader](./css-tokenizer.codepointreader.md) + +## CodePointReader type + +**Signature:** + +```typescript +export type CodePointReader = { + representationStart: number; + representationEnd: number; + cursor: number; + codePointSource: Array; + representationIndices: Array; + source: string; + advanceCodePoint(n?: number): void; + readCodePoint(n?: number): number | false; + unreadCodePoint(n?: number): void; + resetRepresentation(): void; +}; +``` diff --git a/packages/css-tokenizer/docs/css-tokenizer.csstoken.md b/packages/css-tokenizer/docs/css-tokenizer.csstoken.md new file mode 100644 index 000000000..0c683783b --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.csstoken.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [CSSToken](./css-tokenizer.csstoken.md) + +## CSSToken type + +The union of all possible CSS tokens + +**Signature:** + +```typescript +export type CSSToken = TokenAtKeyword | TokenBadString | TokenBadURL | TokenCDC | TokenCDO | TokenColon | TokenComma | TokenComment | TokenDelim | TokenDimension | TokenEOF | TokenFunction | TokenHash | TokenIdent | TokenNumber | TokenPercentage | TokenSemicolon | TokenString | TokenURL | TokenWhitespace | TokenOpenParen | TokenCloseParen | TokenOpenSquare | TokenCloseSquare | TokenOpenCurly | TokenCloseCurly | TokenUnicodeRange; +``` +**References:** [TokenAtKeyword](./css-tokenizer.tokenatkeyword.md), [TokenBadString](./css-tokenizer.tokenbadstring.md), [TokenBadURL](./css-tokenizer.tokenbadurl.md), [TokenCDC](./css-tokenizer.tokencdc.md), [TokenCDO](./css-tokenizer.tokencdo.md), [TokenColon](./css-tokenizer.tokencolon.md), [TokenComma](./css-tokenizer.tokencomma.md), [TokenComment](./css-tokenizer.tokencomment.md), [TokenDelim](./css-tokenizer.tokendelim.md), [TokenDimension](./css-tokenizer.tokendimension.md), [TokenEOF](./css-tokenizer.tokeneof.md), [TokenFunction](./css-tokenizer.tokenfunction.md), [TokenHash](./css-tokenizer.tokenhash.md), [TokenIdent](./css-tokenizer.tokenident.md), [TokenNumber](./css-tokenizer.tokennumber.md), [TokenPercentage](./css-tokenizer.tokenpercentage.md), [TokenSemicolon](./css-tokenizer.tokensemicolon.md), [TokenString](./css-tokenizer.tokenstring.md), [TokenURL](./css-tokenizer.tokenurl.md), [TokenWhitespace](./css-tokenizer.tokenwhitespace.md), [TokenOpenParen](./css-tokenizer.tokenopenparen.md), [TokenCloseParen](./css-tokenizer.tokencloseparen.md), [TokenOpenSquare](./css-tokenizer.tokenopensquare.md), [TokenCloseSquare](./css-tokenizer.tokenclosesquare.md), [TokenOpenCurly](./css-tokenizer.tokenopencurly.md), [TokenCloseCurly](./css-tokenizer.tokenclosecurly.md), [TokenUnicodeRange](./css-tokenizer.tokenunicoderange.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.hashtype.md b/packages/css-tokenizer/docs/css-tokenizer.hashtype.md new file mode 100644 index 000000000..f7895558c --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.hashtype.md @@ -0,0 +1,19 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [HashType](./css-tokenizer.hashtype.md) + +## HashType enum + +**Signature:** + +```typescript +export declare enum HashType +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| ID | "id" | | +| Unrestricted | "unrestricted" | | + diff --git a/packages/css-tokenizer/docs/css-tokenizer.istoken.md b/packages/css-tokenizer/docs/css-tokenizer.istoken.md new file mode 100644 index 000000000..b8fd7f05f --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.istoken.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [isToken](./css-tokenizer.istoken.md) + +## isToken() function + +**Signature:** + +```typescript +export declare function isToken(x: any): x is CSSToken; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | any | | + +**Returns:** + +x is [CSSToken](./css-tokenizer.csstoken.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.md b/packages/css-tokenizer/docs/css-tokenizer.md new file mode 100644 index 000000000..3e0d0b867 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.md @@ -0,0 +1,97 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) + +## css-tokenizer package + +Tokenize CSS following the CSS Syntax Level 3 specification. + +## Remarks + +The tokenizing and parsing tools provided by CSSTools are designed to be low level and generic with strong ties to their respective specifications. + +Any analysis or mutation of CSS source code should be done with the least powerful tool that can accomplish the task. For many applications it is sufficient to work with tokens. For others you might need to use [\`@csstools/css-parser-algorithms\`](https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms) or even a specific parser. + +## Example + +Tokenize a string of CSS into an array of tokens: + +```js +import { tokenize } from '@csstools/css-tokenizer'; + +const myCSS = `@media only screen and (min-width: 768rem) { + .foo { + content: 'Some content!' !important; + } +} +`; + +const tokens = tokenize({ + css: myCSS, +}); + +console.log(tokens); +``` + +## Classes + +| Class | Description | +| --- | --- | +| [ParseError](./css-tokenizer.parseerror.md) | | + +## Enumerations + +| Enumeration | Description | +| --- | --- | +| [HashType](./css-tokenizer.hashtype.md) | | +| [NumberType](./css-tokenizer.numbertype.md) | | +| [TokenType](./css-tokenizer.tokentype.md) | | + +## Functions + +| Function | Description | +| --- | --- | +| [cloneTokens(tokens)](./css-tokenizer.clonetokens.md) | | +| [isToken(x)](./css-tokenizer.istoken.md) | | +| [mirrorVariant(token)](./css-tokenizer.mirrorvariant.md) | | +| [mirrorVariantType(type)](./css-tokenizer.mirrorvarianttype.md) | | +| [mutateIdent(ident, newValue)](./css-tokenizer.mutateident.md) | | +| [stringify(tokens)](./css-tokenizer.stringify.md) | | +| [tokenize(input, options)](./css-tokenizer.tokenize.md) | | +| [tokenizer(input, options)](./css-tokenizer.tokenizer.md) | | + +## Type Aliases + +| Type Alias | Description | +| --- | --- | +| [CodePointReader](./css-tokenizer.codepointreader.md) | | +| [CSSToken](./css-tokenizer.csstoken.md) | The union of all possible CSS tokens | +| [Token](./css-tokenizer.token.md) | The CSS Token interface | +| [TokenAtKeyword](./css-tokenizer.tokenatkeyword.md) | | +| [TokenBadString](./css-tokenizer.tokenbadstring.md) | | +| [TokenBadURL](./css-tokenizer.tokenbadurl.md) | | +| [TokenCDC](./css-tokenizer.tokencdc.md) | | +| [TokenCDO](./css-tokenizer.tokencdo.md) | | +| [TokenCloseCurly](./css-tokenizer.tokenclosecurly.md) | | +| [TokenCloseParen](./css-tokenizer.tokencloseparen.md) | | +| [TokenCloseSquare](./css-tokenizer.tokenclosesquare.md) | | +| [TokenColon](./css-tokenizer.tokencolon.md) | | +| [TokenComma](./css-tokenizer.tokencomma.md) | | +| [TokenComment](./css-tokenizer.tokencomment.md) | | +| [TokenDelim](./css-tokenizer.tokendelim.md) | | +| [TokenDimension](./css-tokenizer.tokendimension.md) | | +| [TokenEOF](./css-tokenizer.tokeneof.md) | | +| [TokenFunction](./css-tokenizer.tokenfunction.md) | | +| [TokenHash](./css-tokenizer.tokenhash.md) | | +| [TokenIdent](./css-tokenizer.tokenident.md) | | +| [TokenNumber](./css-tokenizer.tokennumber.md) | | +| [TokenOpenCurly](./css-tokenizer.tokenopencurly.md) | | +| [TokenOpenParen](./css-tokenizer.tokenopenparen.md) | | +| [TokenOpenSquare](./css-tokenizer.tokenopensquare.md) | | +| [TokenPercentage](./css-tokenizer.tokenpercentage.md) | | +| [TokenSemicolon](./css-tokenizer.tokensemicolon.md) | | +| [TokenString](./css-tokenizer.tokenstring.md) | | +| [TokenUnicodeRange](./css-tokenizer.tokenunicoderange.md) | | +| [TokenURL](./css-tokenizer.tokenurl.md) | | +| [TokenWhitespace](./css-tokenizer.tokenwhitespace.md) | | + diff --git a/packages/css-tokenizer/docs/css-tokenizer.mirrorvariant.md b/packages/css-tokenizer/docs/css-tokenizer.mirrorvariant.md new file mode 100644 index 000000000..47b7f864a --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.mirrorvariant.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [mirrorVariant](./css-tokenizer.mirrorvariant.md) + +## mirrorVariant() function + +**Signature:** + +```typescript +export declare function mirrorVariant(token: CSSToken): CSSToken | null; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| token | [CSSToken](./css-tokenizer.csstoken.md) | | + +**Returns:** + +[CSSToken](./css-tokenizer.csstoken.md) \| null + diff --git a/packages/css-tokenizer/docs/css-tokenizer.mirrorvarianttype.md b/packages/css-tokenizer/docs/css-tokenizer.mirrorvarianttype.md new file mode 100644 index 000000000..27be3b7cc --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.mirrorvarianttype.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [mirrorVariantType](./css-tokenizer.mirrorvarianttype.md) + +## mirrorVariantType() function + +**Signature:** + +```typescript +export declare function mirrorVariantType(type: TokenType): TokenType | null; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| type | [TokenType](./css-tokenizer.tokentype.md) | | + +**Returns:** + +[TokenType](./css-tokenizer.tokentype.md) \| null + diff --git a/packages/css-tokenizer/docs/css-tokenizer.mutateident.md b/packages/css-tokenizer/docs/css-tokenizer.mutateident.md new file mode 100644 index 000000000..352b7d05a --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.mutateident.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [mutateIdent](./css-tokenizer.mutateident.md) + +## mutateIdent() function + +**Signature:** + +```typescript +export declare function mutateIdent(ident: TokenIdent, newValue: string): void; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| ident | [TokenIdent](./css-tokenizer.tokenident.md) | | +| newValue | string | | + +**Returns:** + +void + diff --git a/packages/css-tokenizer/docs/css-tokenizer.numbertype.md b/packages/css-tokenizer/docs/css-tokenizer.numbertype.md new file mode 100644 index 000000000..56e7e5977 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.numbertype.md @@ -0,0 +1,19 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [NumberType](./css-tokenizer.numbertype.md) + +## NumberType enum + +**Signature:** + +```typescript +export declare enum NumberType +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| Integer | "integer" | | +| Number | "number" | | + diff --git a/packages/css-tokenizer/docs/css-tokenizer.parseerror._constructor_.md b/packages/css-tokenizer/docs/css-tokenizer.parseerror._constructor_.md new file mode 100644 index 000000000..e1f5013b7 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.parseerror._constructor_.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [ParseError](./css-tokenizer.parseerror.md) > [(constructor)](./css-tokenizer.parseerror._constructor_.md) + +## ParseError.(constructor) + +Constructs a new instance of the `ParseError` class + +**Signature:** + +```typescript +constructor(message: string, sourceStart: number, sourceEnd: number, parserState: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| message | string | | +| sourceStart | number | | +| sourceEnd | number | | +| parserState | Array<string> | | + diff --git a/packages/css-tokenizer/docs/css-tokenizer.parseerror.md b/packages/css-tokenizer/docs/css-tokenizer.parseerror.md new file mode 100644 index 000000000..eb964baff --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.parseerror.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [ParseError](./css-tokenizer.parseerror.md) + +## ParseError class + +**Signature:** + +```typescript +export declare class ParseError extends Error +``` +**Extends:** Error + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(message, sourceStart, sourceEnd, parserState)](./css-tokenizer.parseerror._constructor_.md) | | Constructs a new instance of the ParseError class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [parserState](./css-tokenizer.parseerror.parserstate.md) | | Array<string> | The parser steps that preceded the error. | +| [sourceEnd](./css-tokenizer.parseerror.sourceend.md) | | number | The index of the end character of the current token. | +| [sourceStart](./css-tokenizer.parseerror.sourcestart.md) | | number | The index of the start character of the current token. | + diff --git a/packages/css-tokenizer/docs/css-tokenizer.parseerror.parserstate.md b/packages/css-tokenizer/docs/css-tokenizer.parseerror.parserstate.md new file mode 100644 index 000000000..9106b8653 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.parseerror.parserstate.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [ParseError](./css-tokenizer.parseerror.md) > [parserState](./css-tokenizer.parseerror.parserstate.md) + +## ParseError.parserState property + +The parser steps that preceded the error. + +**Signature:** + +```typescript +parserState: Array; +``` diff --git a/packages/css-tokenizer/docs/css-tokenizer.parseerror.sourceend.md b/packages/css-tokenizer/docs/css-tokenizer.parseerror.sourceend.md new file mode 100644 index 000000000..78d60265e --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.parseerror.sourceend.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [ParseError](./css-tokenizer.parseerror.md) > [sourceEnd](./css-tokenizer.parseerror.sourceend.md) + +## ParseError.sourceEnd property + +The index of the end character of the current token. + +**Signature:** + +```typescript +sourceEnd: number; +``` diff --git a/packages/css-tokenizer/docs/css-tokenizer.parseerror.sourcestart.md b/packages/css-tokenizer/docs/css-tokenizer.parseerror.sourcestart.md new file mode 100644 index 000000000..40c230089 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.parseerror.sourcestart.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [ParseError](./css-tokenizer.parseerror.md) > [sourceStart](./css-tokenizer.parseerror.sourcestart.md) + +## ParseError.sourceStart property + +The index of the start character of the current token. + +**Signature:** + +```typescript +sourceStart: number; +``` diff --git a/packages/css-tokenizer/docs/css-tokenizer.stringify.md b/packages/css-tokenizer/docs/css-tokenizer.stringify.md new file mode 100644 index 000000000..7e7f0431f --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.stringify.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [stringify](./css-tokenizer.stringify.md) + +## stringify() function + +**Signature:** + +```typescript +export declare function stringify(...tokens: Array): string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| tokens | Array<[CSSToken](./css-tokenizer.csstoken.md)> | | + +**Returns:** + +string + diff --git a/packages/css-tokenizer/docs/css-tokenizer.token.md b/packages/css-tokenizer/docs/css-tokenizer.token.md new file mode 100644 index 000000000..48e1031b9 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.token.md @@ -0,0 +1,56 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [Token](./css-tokenizer.token.md) + +## Token type + +The CSS Token interface + +**Signature:** + +```typescript +export type Token = [ + /** + * The type of token + */ + T, + /** + * The token representation + * + * @remarks + * This field will be used when stringifying the token. + * Any stored value is assumed to be valid CSS. + * + * You should never use this field when analyzing the token when there is a parsed value available. + * But you must store mutated values here. + */ + string, + /** + * Start position of representation + */ + number, + /** + * End position of representation + */ + number, + /** + * Extra data + * + * @remarks + * This holds the parsed value of each token. + * These values are unescaped, unquoted, converted to numbers, etc. + * + * You should always use this field when analyzing the token. + * But you must not assume that mutating only this field will have any effect. + */ + U +]; +``` +**References:** [TokenType](./css-tokenizer.tokentype.md) + +## Remarks + +CSS Tokens are fully typed and have a strict structure. This makes it easier to iterate and analyze a token stream. + +The string representation and the parsed value are stored separately for many token types. It is always assumed that the string representation will be used when stringifying, while the parsed value should be used when analyzing tokens. + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenatkeyword.md b/packages/css-tokenizer/docs/css-tokenizer.tokenatkeyword.md new file mode 100644 index 000000000..7f9c946d1 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenatkeyword.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenAtKeyword](./css-tokenizer.tokenatkeyword.md) + +## TokenAtKeyword type + +**Signature:** + +```typescript +export type TokenAtKeyword = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.AtKeyword](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenbadstring.md b/packages/css-tokenizer/docs/css-tokenizer.tokenbadstring.md new file mode 100644 index 000000000..bb7923cc1 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenbadstring.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenBadString](./css-tokenizer.tokenbadstring.md) + +## TokenBadString type + +**Signature:** + +```typescript +export type TokenBadString = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.BadString](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenbadurl.md b/packages/css-tokenizer/docs/css-tokenizer.tokenbadurl.md new file mode 100644 index 000000000..c650a07e2 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenbadurl.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenBadURL](./css-tokenizer.tokenbadurl.md) + +## TokenBadURL type + +**Signature:** + +```typescript +export type TokenBadURL = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.BadURL](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokencdc.md b/packages/css-tokenizer/docs/css-tokenizer.tokencdc.md new file mode 100644 index 000000000..44adac2ab --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokencdc.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenCDC](./css-tokenizer.tokencdc.md) + +## TokenCDC type + +**Signature:** + +```typescript +export type TokenCDC = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.CDC](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokencdo.md b/packages/css-tokenizer/docs/css-tokenizer.tokencdo.md new file mode 100644 index 000000000..5226f9f9a --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokencdo.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenCDO](./css-tokenizer.tokencdo.md) + +## TokenCDO type + +**Signature:** + +```typescript +export type TokenCDO = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.CDO](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenclosecurly.md b/packages/css-tokenizer/docs/css-tokenizer.tokenclosecurly.md new file mode 100644 index 000000000..6d168ed39 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenclosecurly.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenCloseCurly](./css-tokenizer.tokenclosecurly.md) + +## TokenCloseCurly type + +**Signature:** + +```typescript +export type TokenCloseCurly = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.CloseCurly](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokencloseparen.md b/packages/css-tokenizer/docs/css-tokenizer.tokencloseparen.md new file mode 100644 index 000000000..3a9b86289 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokencloseparen.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenCloseParen](./css-tokenizer.tokencloseparen.md) + +## TokenCloseParen type + +**Signature:** + +```typescript +export type TokenCloseParen = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.CloseParen](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenclosesquare.md b/packages/css-tokenizer/docs/css-tokenizer.tokenclosesquare.md new file mode 100644 index 000000000..4f0263804 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenclosesquare.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenCloseSquare](./css-tokenizer.tokenclosesquare.md) + +## TokenCloseSquare type + +**Signature:** + +```typescript +export type TokenCloseSquare = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.CloseSquare](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokencolon.md b/packages/css-tokenizer/docs/css-tokenizer.tokencolon.md new file mode 100644 index 000000000..244a52c3a --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokencolon.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenColon](./css-tokenizer.tokencolon.md) + +## TokenColon type + +**Signature:** + +```typescript +export type TokenColon = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Colon](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokencomma.md b/packages/css-tokenizer/docs/css-tokenizer.tokencomma.md new file mode 100644 index 000000000..1fa617d53 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokencomma.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenComma](./css-tokenizer.tokencomma.md) + +## TokenComma type + +**Signature:** + +```typescript +export type TokenComma = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Comma](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokencomment.md b/packages/css-tokenizer/docs/css-tokenizer.tokencomment.md new file mode 100644 index 000000000..32b018a13 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokencomment.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenComment](./css-tokenizer.tokencomment.md) + +## TokenComment type + +**Signature:** + +```typescript +export type TokenComment = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Comment](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokendelim.md b/packages/css-tokenizer/docs/css-tokenizer.tokendelim.md new file mode 100644 index 000000000..f4889480b --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokendelim.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenDelim](./css-tokenizer.tokendelim.md) + +## TokenDelim type + +**Signature:** + +```typescript +export type TokenDelim = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Delim](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokendimension.md b/packages/css-tokenizer/docs/css-tokenizer.tokendimension.md new file mode 100644 index 000000000..2ac86944b --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokendimension.md @@ -0,0 +1,18 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenDimension](./css-tokenizer.tokendimension.md) + +## TokenDimension type + +**Signature:** + +```typescript +export type TokenDimension = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Dimension](./css-tokenizer.tokentype.md), [NumberType](./css-tokenizer.numbertype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokeneof.md b/packages/css-tokenizer/docs/css-tokenizer.tokeneof.md new file mode 100644 index 000000000..1a95abf9b --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokeneof.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenEOF](./css-tokenizer.tokeneof.md) + +## TokenEOF type + +**Signature:** + +```typescript +export type TokenEOF = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.EOF](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenfunction.md b/packages/css-tokenizer/docs/css-tokenizer.tokenfunction.md new file mode 100644 index 000000000..667b03ceb --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenfunction.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenFunction](./css-tokenizer.tokenfunction.md) + +## TokenFunction type + +**Signature:** + +```typescript +export type TokenFunction = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Function](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenhash.md b/packages/css-tokenizer/docs/css-tokenizer.tokenhash.md new file mode 100644 index 000000000..13ebd77e5 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenhash.md @@ -0,0 +1,16 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenHash](./css-tokenizer.tokenhash.md) + +## TokenHash type + +**Signature:** + +```typescript +export type TokenHash = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Hash](./css-tokenizer.tokentype.md), [HashType](./css-tokenizer.hashtype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenident.md b/packages/css-tokenizer/docs/css-tokenizer.tokenident.md new file mode 100644 index 000000000..6d5e00be3 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenident.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenIdent](./css-tokenizer.tokenident.md) + +## TokenIdent type + +**Signature:** + +```typescript +export type TokenIdent = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Ident](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenize.md b/packages/css-tokenizer/docs/css-tokenizer.tokenize.md new file mode 100644 index 000000000..0354fe87b --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenize.md @@ -0,0 +1,30 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [tokenize](./css-tokenizer.tokenize.md) + +## tokenize() function + +**Signature:** + +```typescript +export declare function tokenize(input: { + css: { + valueOf(): string; + }; + unicodeRangesAllowed?: boolean; +}, options?: { + onParseError?: (error: ParseError) => void; +}): Array; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| input | { css: { valueOf(): string; }; unicodeRangesAllowed?: boolean; } | | +| options | { onParseError?: (error: [ParseError](./css-tokenizer.parseerror.md)) => void; } | _(Optional)_ | + +**Returns:** + +Array<[CSSToken](./css-tokenizer.csstoken.md)> + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenizer.md b/packages/css-tokenizer/docs/css-tokenizer.tokenizer.md new file mode 100644 index 000000000..b1abc22a2 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenizer.md @@ -0,0 +1,33 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [tokenizer](./css-tokenizer.tokenizer.md) + +## tokenizer() function + +**Signature:** + +```typescript +export declare function tokenizer(input: { + css: { + valueOf(): string; + }; + unicodeRangesAllowed?: boolean; +}, options?: { + onParseError?: (error: ParseError) => void; +}): { + nextToken: () => CSSToken | undefined; + endOfFile: () => boolean; +}; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| input | { css: { valueOf(): string; }; unicodeRangesAllowed?: boolean; } | | +| options | { onParseError?: (error: [ParseError](./css-tokenizer.parseerror.md)) => void; } | _(Optional)_ | + +**Returns:** + +{ nextToken: () => [CSSToken](./css-tokenizer.csstoken.md) \| undefined; endOfFile: () => boolean; } + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokennumber.md b/packages/css-tokenizer/docs/css-tokenizer.tokennumber.md new file mode 100644 index 000000000..8ad307a81 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokennumber.md @@ -0,0 +1,17 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenNumber](./css-tokenizer.tokennumber.md) + +## TokenNumber type + +**Signature:** + +```typescript +export type TokenNumber = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Number](./css-tokenizer.tokentype.md), [NumberType](./css-tokenizer.numbertype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenopencurly.md b/packages/css-tokenizer/docs/css-tokenizer.tokenopencurly.md new file mode 100644 index 000000000..fe7fe3a2a --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenopencurly.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenOpenCurly](./css-tokenizer.tokenopencurly.md) + +## TokenOpenCurly type + +**Signature:** + +```typescript +export type TokenOpenCurly = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.OpenCurly](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenopenparen.md b/packages/css-tokenizer/docs/css-tokenizer.tokenopenparen.md new file mode 100644 index 000000000..b32a54700 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenopenparen.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenOpenParen](./css-tokenizer.tokenopenparen.md) + +## TokenOpenParen type + +**Signature:** + +```typescript +export type TokenOpenParen = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.OpenParen](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenopensquare.md b/packages/css-tokenizer/docs/css-tokenizer.tokenopensquare.md new file mode 100644 index 000000000..cfb8ea14f --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenopensquare.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenOpenSquare](./css-tokenizer.tokenopensquare.md) + +## TokenOpenSquare type + +**Signature:** + +```typescript +export type TokenOpenSquare = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.OpenSquare](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenpercentage.md b/packages/css-tokenizer/docs/css-tokenizer.tokenpercentage.md new file mode 100644 index 000000000..ab8f17b05 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenpercentage.md @@ -0,0 +1,16 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenPercentage](./css-tokenizer.tokenpercentage.md) + +## TokenPercentage type + +**Signature:** + +```typescript +export type TokenPercentage = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Percentage](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokensemicolon.md b/packages/css-tokenizer/docs/css-tokenizer.tokensemicolon.md new file mode 100644 index 000000000..096864ae3 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokensemicolon.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenSemicolon](./css-tokenizer.tokensemicolon.md) + +## TokenSemicolon type + +**Signature:** + +```typescript +export type TokenSemicolon = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Semicolon](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenstring.md b/packages/css-tokenizer/docs/css-tokenizer.tokenstring.md new file mode 100644 index 000000000..678be952b --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenstring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenString](./css-tokenizer.tokenstring.md) + +## TokenString type + +**Signature:** + +```typescript +export type TokenString = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.String](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokentype.md b/packages/css-tokenizer/docs/css-tokenizer.tokentype.md new file mode 100644 index 000000000..856a89fbb --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokentype.md @@ -0,0 +1,44 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenType](./css-tokenizer.tokentype.md) + +## TokenType enum + +**Signature:** + +```typescript +export declare enum TokenType +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| AtKeyword | "at-keyword-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-at-keyword-token | +| BadString | "bad-string-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-bad-string-token | +| BadURL | "bad-url-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-bad-url-token | +| CDC | "CDC-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-cdc-token | +| CDO | "CDO-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-cdo-token | +| CloseCurly | "}-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#tokendef-close-curly | +| CloseParen | ")-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#tokendef-close-paren | +| CloseSquare | "]-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#tokendef-close-square | +| Colon | "colon-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-colon-token | +| Comma | "comma-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-comma-token | +| Comment | "comment" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#comment-diagram | +| Delim | "delim-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-delim-token | +| Dimension | "dimension-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-dimension-token | +| EOF | "EOF-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-eof-token | +| Function | "function-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-function-token | +| Hash | "hash-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-hash-token | +| Ident | "ident-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-ident-token | +| Number | "number-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-percentage-token | +| OpenCurly | "{-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#tokendef-open-curly | +| OpenParen | "(-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#tokendef-open-paren | +| OpenSquare | "[-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#tokendef-open-square | +| Percentage | "percentage-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-percentage-token | +| Semicolon | "semicolon-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-semicolon-token | +| String | "string-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-string-token | +| UnicodeRange | "unicode-range-token" | https://drafts.csswg.org/css-syntax/\#typedef-unicode-range-token | +| URL | "url-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-url-token | +| Whitespace | "whitespace-token" | https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/\#typedef-whitespace-token | + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenunicoderange.md b/packages/css-tokenizer/docs/css-tokenizer.tokenunicoderange.md new file mode 100644 index 000000000..209edcdf8 --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenunicoderange.md @@ -0,0 +1,16 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenUnicodeRange](./css-tokenizer.tokenunicoderange.md) + +## TokenUnicodeRange type + +**Signature:** + +```typescript +export type TokenUnicodeRange = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.UnicodeRange](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenurl.md b/packages/css-tokenizer/docs/css-tokenizer.tokenurl.md new file mode 100644 index 000000000..6fba7753f --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenurl.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenURL](./css-tokenizer.tokenurl.md) + +## TokenURL type + +**Signature:** + +```typescript +export type TokenURL = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.URL](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/css-tokenizer.tokenwhitespace.md b/packages/css-tokenizer/docs/css-tokenizer.tokenwhitespace.md new file mode 100644 index 000000000..178813c4e --- /dev/null +++ b/packages/css-tokenizer/docs/css-tokenizer.tokenwhitespace.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/css-tokenizer](./css-tokenizer.md) > [TokenWhitespace](./css-tokenizer.tokenwhitespace.md) + +## TokenWhitespace type + +**Signature:** + +```typescript +export type TokenWhitespace = Token; +``` +**References:** [Token](./css-tokenizer.token.md), [TokenType.Whitespace](./css-tokenizer.tokentype.md) + diff --git a/packages/css-tokenizer/docs/index.md b/packages/css-tokenizer/docs/index.md new file mode 100644 index 000000000..4882196b2 --- /dev/null +++ b/packages/css-tokenizer/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [@csstools/css-tokenizer](./css-tokenizer.md) | Tokenize CSS following the CSS Syntax Level 3 specification. | + diff --git a/packages/css-tokenizer/package.json b/packages/css-tokenizer/package.json index e41a01cdb..3324f08ed 100644 --- a/packages/css-tokenizer/package.json +++ b/packages/css-tokenizer/package.json @@ -55,6 +55,7 @@ "scripts": { "benchmark": "node ./test/benchmark.mjs", "build": "rollup -c ../../rollup/default.mjs", + "docs": "node ../../.github/bin/generate-docs/api-documenter.mjs", "lint": "node ../../.github/bin/format-package-json.mjs", "prepublishOnly": "npm run build && npm run test", "stryker": "stryker run --logLevel error", diff --git a/packages/css-tokenizer/src/index.ts b/packages/css-tokenizer/src/index.ts index 5f29d011b..72b0ce1e2 100644 --- a/packages/css-tokenizer/src/index.ts +++ b/packages/css-tokenizer/src/index.ts @@ -1,3 +1,35 @@ +/** + * Tokenize CSS following the CSS Syntax Level 3 specification. + * + * @remarks + * The tokenizing and parsing tools provided by CSSTools are designed to be low level and generic with strong ties to their respective specifications. + * + * Any analysis or mutation of CSS source code should be done with the least powerful tool that can accomplish the task. + * For many applications it is sufficient to work with tokens. + * For others you might need to use {@link https://github.com/csstools/postcss-plugins/tree/main/packages/css-parser-algorithms | `@csstools/css-parser-algorithms`} or even a specific parser. + * + * @example + * Tokenize a string of CSS into an array of tokens: + * ```js + * import { tokenize } from '@csstools/css-tokenizer'; + * + * const myCSS = `@media only screen and (min-width: 768rem) { + * .foo { + * content: 'Some content!' !important; + * } + * } + * `; + * + * const tokens = tokenize({ + * css: myCSS, + * }); + * + * console.log(tokens); + * ``` + * + * @packageDocumentation + */ + export type { CSSToken } from './interfaces/token'; export type { CodePointReader } from './interfaces/code-point-reader'; export type { Token } from './interfaces/token'; diff --git a/packages/css-tokenizer/src/interfaces/token.ts b/packages/css-tokenizer/src/interfaces/token.ts index 826e58a77..994be3338 100644 --- a/packages/css-tokenizer/src/interfaces/token.ts +++ b/packages/css-tokenizer/src/interfaces/token.ts @@ -99,6 +99,9 @@ export type TokenCloseCurly = Token; export type TokenUnicodeRange = Token; +/** + * The union of all possible CSS tokens + */ export type CSSToken = TokenAtKeyword | TokenBadString | TokenBadURL | @@ -127,16 +130,50 @@ export type CSSToken = TokenAtKeyword | TokenCloseCurly | TokenUnicodeRange; +/** + * The CSS Token interface + * + * @remarks + * CSS Tokens are fully typed and have a strict structure. + * This makes it easier to iterate and analyze a token stream. + * + * The string representation and the parsed value are stored separately for many token types. + * It is always assumed that the string representation will be used when stringifying, while the parsed value should be used when analyzing tokens. + */ export type Token = [ - /** The type of token */ + /** + * The type of token + */ T, - /** The token representation */ + /** + * The token representation + * + * @remarks + * This field will be used when stringifying the token. + * Any stored value is assumed to be valid CSS. + * + * You should never use this field when analyzing the token when there is a parsed value available. + * But you must store mutated values here. + */ string, - /** Start position of representation */ + /** + * Start position of representation + */ number, - /** End position of representation */ + /** + * End position of representation + */ number, - /** Extra data */ + /** + * Extra data + * + * @remarks + * This holds the parsed value of each token. + * These values are unescaped, unquoted, converted to numbers, etc. + * + * You should always use this field when analyzing the token. + * But you must not assume that mutating only this field will have any effect. + */ U, ] diff --git a/packages/css-tokenizer/src/reader.ts b/packages/css-tokenizer/src/reader.ts index 67adcee53..ffcfc02fd 100644 --- a/packages/css-tokenizer/src/reader.ts +++ b/packages/css-tokenizer/src/reader.ts @@ -1,5 +1,8 @@ import { CodePointReader } from './interfaces/code-point-reader'; +/** + * @internal + */ export class Reader implements CodePointReader { cursor = 0; source = ''; diff --git a/packages/media-query-list-parser/api-extractor.json b/packages/media-query-list-parser/api-extractor.json index 42058be51..ccef9beeb 100644 --- a/packages/media-query-list-parser/api-extractor.json +++ b/packages/media-query-list-parser/api-extractor.json @@ -1,4 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.json" + "extends": "../../api-extractor.json", + "docModel": { + "enabled": true + } } diff --git a/packages/media-query-list-parser/dist/index.d.ts b/packages/media-query-list-parser/dist/index.d.ts index 36188a6b1..69738ea8a 100644 --- a/packages/media-query-list-parser/dist/index.d.ts +++ b/packages/media-query-list-parser/dist/index.d.ts @@ -23,6 +23,9 @@ export declare class CustomMedia { hasFalseKeyword(): boolean; tokens(): Array; toString(): string; + /** + * @internal + */ toJSON(): { type: NodeType; string: string; @@ -48,6 +51,9 @@ export declare class CustomMedia { media: ComponentValue[]; })[] | undefined; }; + /** + * @internal + */ isCustomMedia(): this is CustomMedia; static isCustomMedia(x: unknown): x is CustomMedia; } @@ -65,10 +71,16 @@ export declare class GeneralEnclosed { parent: GeneralEnclosedWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; tokens: CSSToken[]; }; + /** + * @internal + */ isGeneralEnclosed(): this is GeneralEnclosed; static isGeneralEnclosed(x: unknown): x is GeneralEnclosed; } @@ -145,7 +157,13 @@ export declare class MediaAnd { parent: MediaAndWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): unknown; + /** + * @internal + */ isMediaAnd(): this is MediaAnd; static isMediaAnd(x: unknown): x is MediaAnd; } @@ -167,7 +185,13 @@ export declare class MediaCondition { parent: MediaConditionWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): unknown; + /** + * @internal + */ isMediaCondition(): this is MediaCondition; static isMediaCondition(x: unknown): x is MediaCondition; } @@ -215,7 +239,13 @@ export declare class MediaConditionListWithOr { parent: MediaConditionListWithOrWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): unknown; + /** + * @internal + */ isMediaConditionListWithOr(): this is MediaConditionListWithOr; static isMediaConditionListWithOr(x: unknown): x is MediaConditionListWithOr; } @@ -245,6 +275,9 @@ export declare class MediaFeature { parent: MediaFeatureWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; feature: { @@ -259,6 +292,9 @@ export declare class MediaFeature { before: CSSToken[]; after: CSSToken[]; }; + /** + * @internal + */ isMediaFeature(): this is MediaFeature; static isMediaFeature(x: unknown): x is MediaFeature; } @@ -273,6 +309,9 @@ export declare class MediaFeatureBoolean { toString(): string; indexOf(item: MediaFeatureName): number | string; at(index: number | string): MediaFeatureName | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; name: { @@ -282,6 +321,9 @@ export declare class MediaFeatureBoolean { }; tokens: CSSToken[]; }; + /** + * @internal + */ isMediaFeatureBoolean(): this is MediaFeatureBoolean; static isMediaFeatureBoolean(x: unknown): x is MediaFeatureBoolean; } @@ -314,11 +356,17 @@ export declare class MediaFeatureName { toString(): string; indexOf(item: ComponentValue): number | string; at(index: number | string): ComponentValue | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; name: string; tokens: CSSToken[]; }; + /** + * @internal + */ isMediaFeatureName(): this is MediaFeatureName; static isMediaFeatureName(x: unknown): x is MediaFeatureName; } @@ -340,6 +388,9 @@ export declare class MediaFeaturePlain { parent: MediaFeaturePlainWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; name: { @@ -354,6 +405,9 @@ export declare class MediaFeaturePlain { }; tokens: CSSToken[]; }; + /** + * @internal + */ isMediaFeaturePlain(): this is MediaFeaturePlain; static isMediaFeaturePlain(x: unknown): x is MediaFeaturePlain; } @@ -382,6 +436,9 @@ export declare class MediaFeatureRangeNameValue { parent: MediaFeatureRangeWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; name: { @@ -396,6 +453,9 @@ export declare class MediaFeatureRangeNameValue { }; tokens: CSSToken[]; }; + /** + * @internal + */ isMediaFeatureRangeNameValue(): this is MediaFeatureRangeNameValue; static isMediaFeatureRangeNameValue(x: unknown): x is MediaFeatureRangeNameValue; } @@ -418,6 +478,9 @@ export declare class MediaFeatureRangeValueName { parent: MediaFeatureRangeWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; name: { @@ -432,6 +495,9 @@ export declare class MediaFeatureRangeValueName { }; tokens: CSSToken[]; }; + /** + * @internal + */ isMediaFeatureRangeValueName(): this is MediaFeatureRangeValueName; static isMediaFeatureRangeValueName(x: unknown): x is MediaFeatureRangeValueName; } @@ -457,6 +523,9 @@ export declare class MediaFeatureRangeValueNameValue { parent: MediaFeatureRangeWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; name: { @@ -476,6 +545,9 @@ export declare class MediaFeatureRangeValueNameValue { }; tokens: CSSToken[]; }; + /** + * @internal + */ isMediaFeatureRangeValueNameValue(): this is MediaFeatureRangeValueNameValue; static isMediaFeatureRangeValueNameValue(x: unknown): x is MediaFeatureRangeValueNameValue; } @@ -499,11 +571,17 @@ export declare class MediaFeatureValue { parent: MediaFeatureValueWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; value: unknown; tokens: CSSToken[]; }; + /** + * @internal + */ isMediaFeatureValue(): this is MediaFeatureValue; static isMediaFeatureValue(x: unknown): x is MediaFeatureValue; } @@ -531,12 +609,18 @@ export declare class MediaInParens { parent: MediaInParensWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; media: unknown; before: CSSToken[]; after: CSSToken[]; }; + /** + * @internal + */ isMediaInParens(): this is MediaInParens; static isMediaInParens(x: unknown): x is MediaInParens; } @@ -559,6 +643,9 @@ export declare class MediaNot { parent: MediaNotWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; modifier: CSSToken[]; @@ -569,6 +656,9 @@ export declare class MediaNot { after: CSSToken[]; }; }; + /** + * @internal + */ isMediaNot(): this is MediaNot; static isMediaNot(x: unknown): x is MediaNot; } @@ -591,6 +681,9 @@ export declare class MediaOr { parent: MediaOrWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; modifier: CSSToken[]; @@ -601,6 +694,9 @@ export declare class MediaOr { after: CSSToken[]; }; }; + /** + * @internal + */ isMediaOr(): this is MediaOr; static isMediaOr(x: unknown): x is MediaOr; } @@ -623,11 +719,17 @@ export declare class MediaQueryInvalid { parent: MediaQueryInvalidWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; string: string; media: ComponentValue[]; }; + /** + * @internal + */ isMediaQueryInvalid(): this is MediaQueryInvalid; static isMediaQueryInvalid(x: unknown): x is MediaQueryInvalid; } @@ -655,11 +757,17 @@ export declare class MediaQueryWithoutType { parent: MediaQueryWithoutTypeWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; string: string; media: MediaCondition; }; + /** + * @internal + */ isMediaQueryWithoutType(): this is MediaQueryWithoutType; static isMediaQueryWithoutType(x: unknown): x is MediaQueryWithoutType; } @@ -687,6 +795,9 @@ export declare class MediaQueryWithType { parent: MediaQueryWithTypeWalkerParent; state?: T; }, index: number | string) => boolean | void, state?: T): false | undefined; + /** + * @internal + */ toJSON(): { type: NodeType; string: string; @@ -695,6 +806,9 @@ export declare class MediaQueryWithType { and: CSSToken[] | undefined; media: MediaCondition | undefined; }; + /** + * @internal + */ isMediaQueryWithType(): this is MediaQueryWithType; static isMediaQueryWithType(x: unknown): x is MediaQueryWithType; } diff --git a/packages/media-query-list-parser/docs/index.md b/packages/media-query-list-parser/docs/index.md new file mode 100644 index 000000000..39c3c7cf8 --- /dev/null +++ b/packages/media-query-list-parser/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [@csstools/media-query-list-parser](./media-query-list-parser.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.api.json b/packages/media-query-list-parser/docs/media-query-list-parser.api.json new file mode 100644 index 000000000..5ff277e9c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.api.json @@ -0,0 +1,17233 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@csstools/media-query-list-parser!", + "docComment": "", + "name": "@csstools/media-query-list-parser", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@csstools/media-query-list-parser!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!cloneMediaQuery:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function cloneMediaQuery(x: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/clone-media-query.d.ts", + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "isOptional": false + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "name": "cloneMediaQuery" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!comparisonFromTokens:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function comparisonFromTokens(tokens: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "] | [" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeatureComparison", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureComparison:type" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-comparison.d.ts", + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 11 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tokens", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isOptional": false + } + ], + "name": "comparisonFromTokens" + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class CustomMedia " + } + ], + "fileUrlPath": "dist/_types/nodes/custom-media.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "CustomMedia", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `CustomMedia` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(name: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", mediaQueryList: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "MediaQuery", + "canonicalReference": "@csstools/media-query-list-parser!MediaQuery:type" + }, + { + "kind": "Content", + "text": "> | null" + }, + { + "kind": "Content", + "text": ", trueOrFalseKeyword?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "mediaQueryList", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 10 + }, + "isOptional": false + }, + { + "parameterName": "trueOrFalseKeyword", + "parameterTypeTokenRange": { + "startIndex": 11, + "endIndex": 15 + }, + "isOptional": true + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#getName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getName(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getName" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#getNameToken:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getNameToken(): " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getNameToken" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#hasFalseKeyword:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hasFalseKeyword(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "hasFalseKeyword" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#hasMediaQueryList:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hasMediaQueryList(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "hasMediaQueryList" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#hasTrueKeyword:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "hasTrueKeyword(): " + }, + { + "kind": "Content", + "text": "boolean" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "hasTrueKeyword" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia.isCustomMedia:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isCustomMedia(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "CustomMedia", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isCustomMedia" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#mediaQueryList:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "mediaQueryList: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "MediaQuery", + "canonicalReference": "@csstools/media-query-list-parser!MediaQuery:type" + }, + { + "kind": "Content", + "text": "> | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "mediaQueryList", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#trueOrFalseKeyword:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "trueOrFalseKeyword: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": "> | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "trueOrFalseKeyword", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class GeneralEnclosed " + } + ], + "fileUrlPath": "dist/_types/nodes/general-enclosed.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "GeneralEnclosed", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `GeneralEnclosed` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(value: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed.isGeneralEnclosed:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isGeneralEnclosed(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isGeneralEnclosed" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed#value:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "GeneralEnclosedWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosedWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "GeneralEnclosedWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosedWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosedWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type GeneralEnclosedWalkerEntry = " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/general-enclosed.d.ts", + "releaseTag": "Public", + "name": "GeneralEnclosedWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosedWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type GeneralEnclosedWalkerParent = " + }, + { + "kind": "Reference", + "text": "ContainerNode", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNode:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/general-enclosed.d.ts", + "releaseTag": "Public", + "name": "GeneralEnclosedWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!invertComparison:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function invertComparison(operator: " + }, + { + "kind": "Reference", + "text": "MediaFeatureComparison", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureComparison:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeatureComparison", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureComparison:type" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-comparison.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "operator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "invertComparison" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isCustomMedia:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isCustomMedia(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isCustomMedia" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isGeneralEnclosed:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isGeneralEnclosed(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isGeneralEnclosed" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaAnd:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaAnd(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaAnd" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaCondition:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaCondition(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaCondition" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaConditionList:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaConditionList(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaConditionList", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionList:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaConditionList" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaConditionListWithAnd:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaConditionListWithAnd(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaConditionListWithAnd" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaConditionListWithOr:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaConditionListWithOr(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaConditionListWithOr" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaFeature:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaFeature(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaFeature" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaFeatureBoolean:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaFeatureBoolean(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureBoolean", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaFeatureBoolean" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaFeatureName:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaFeatureName(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaFeatureName" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaFeaturePlain:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaFeaturePlain(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaFeaturePlain" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaFeatureRange:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaFeatureRange(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureRange", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaFeatureRange" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaFeatureRangeNameValue:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaFeatureRangeNameValue(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeNameValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaFeatureRangeNameValue" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaFeatureRangeValueName:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaFeatureRangeValueName(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeValueName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaFeatureRangeValueName" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaFeatureRangeValueNameValue:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaFeatureRangeValueNameValue(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeValueNameValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaFeatureRangeValueNameValue" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaFeatureValue:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaFeatureValue(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaFeatureValue" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaInParens:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaInParens(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaInParens" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaNot:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaNot(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaNot" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaOr:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaOr(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaOr" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaQuery:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaQuery(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaQuery", + "canonicalReference": "@csstools/media-query-list-parser!MediaQuery:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaQuery" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaQueryInvalid:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaQueryInvalid(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaQueryInvalid", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaQueryInvalid" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaQueryWithoutType:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaQueryWithoutType(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaQueryWithoutType", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaQueryWithoutType" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!isMediaQueryWithType:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function isMediaQueryWithType(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaQueryWithType", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/util/type-predicates.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "isMediaQueryWithType" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!matchesComparison:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function matchesComparison(componentValues: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | [number, number]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-comparison.d.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "componentValues", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + } + ], + "name": "matchesComparison" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!matchesRatio:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function matchesRatio(componentValues: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number[] | -1" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-value.d.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "componentValues", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + } + ], + "name": "matchesRatio" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!matchesRatioExactly:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function matchesRatioExactly(componentValues: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number[] | -1" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-value.d.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "componentValues", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + } + ], + "name": "matchesRatioExactly" + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaAnd " + } + ], + "fileUrlPath": "dist/_types/nodes/media-and.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaAnd", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaAnd` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(modifier: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", media: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "modifier", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "media", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | null" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd.isMediaAnd:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaAnd(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaAnd" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd#media:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "media: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "media", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd#modifier:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "modifier: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "modifier", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaAndWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaAndWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaAndWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaAndWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaAndWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaAndWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaInParensWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-and.d.ts", + "releaseTag": "Public", + "name": "MediaAndWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaAndWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaAndWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaInParensWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-and.d.ts", + "releaseTag": "Public", + "name": "MediaAndWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaCondition " + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaCondition", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaCondition` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(media: " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "media", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 11 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 9, + "endIndex": 10 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition.isMediaCondition:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaCondition(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaCondition" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition#media:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "media: " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "media", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaConditionWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaConditionWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionList:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaConditionList = " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition-list.d.ts", + "releaseTag": "Public", + "name": "MediaConditionList", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaConditionListWithAnd " + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition-list.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaConditionListWithAnd", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaConditionListWithAnd` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(leading: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ", list: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", before?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", after?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "leading", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "list", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "before", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 12 + }, + "isOptional": true + }, + { + "parameterName": "after", + "parameterTypeTokenRange": { + "startIndex": 13, + "endIndex": 17 + }, + "isOptional": true + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#after:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "after: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "after", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#before:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "before: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "before", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#isMediaConditionListWithAnd:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "isMediaConditionListWithAnd(): " + }, + { + "kind": "Content", + "text": "this is " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "isMediaConditionListWithAnd" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd.isMediaConditionListWithAnd:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaConditionListWithAnd(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaConditionListWithAnd" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#leading:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "leading: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "leading", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#list:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "list: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "list", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#toJSON:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toJSON(): " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toJSON" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAndWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAndWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAndWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAndWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAndWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaConditionListWithAndWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaAndWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaAndWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition-list.d.ts", + "releaseTag": "Public", + "name": "MediaConditionListWithAndWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAndWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaConditionListWithAndWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaAndWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaAndWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition-list.d.ts", + "releaseTag": "Public", + "name": "MediaConditionListWithAndWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaConditionListWithOr " + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition-list.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaConditionListWithOr", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaConditionListWithOr` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(leading: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ", list: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", before?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", after?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "leading", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "list", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "before", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 12 + }, + "isOptional": true + }, + { + "parameterName": "after", + "parameterTypeTokenRange": { + "startIndex": 13, + "endIndex": 17 + }, + "isOptional": true + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#after:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "after: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "after", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#before:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "before: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "before", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr.isMediaConditionListWithOr:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaConditionListWithOr(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaConditionListWithOr" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#leading:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "leading: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "leading", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#list:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "list: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "list", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOrWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOrWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOrWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOrWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOrWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaConditionListWithOrWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaOrWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaOrWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition-list.d.ts", + "releaseTag": "Public", + "name": "MediaConditionListWithOrWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOrWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaConditionListWithOrWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaOrWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaOrWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition-list.d.ts", + "releaseTag": "Public", + "name": "MediaConditionListWithOrWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaConditionWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaNotWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaNotWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAndWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAndWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOrWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOrWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAnd:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition.d.ts", + "releaseTag": "Public", + "name": "MediaConditionWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaConditionWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaNotWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaNotWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithAndWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithAndWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionListWithOrWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionListWithOrWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-condition.d.ts", + "releaseTag": "Public", + "name": "MediaConditionWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 8 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaFeature " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaFeature", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaFeature` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(feature: " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureBoolean", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRange", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type" + }, + { + "kind": "Content", + "text": ", before?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", after?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "feature", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "before", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 11 + }, + "isOptional": true + }, + { + "parameterName": "after", + "parameterTypeTokenRange": { + "startIndex": 12, + "endIndex": 16 + }, + "isOptional": true + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#after:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "after: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "after", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeatureBoolean", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRange", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 9 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#before:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "before: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "before", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#feature:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "feature: " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureBoolean", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRange", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "feature", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#getName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getName(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getName" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#getNameToken:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getNameToken(): " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getNameToken" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureBoolean", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRange", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature.isMediaFeature:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaFeature(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaFeature" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaFeatureWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaFeatureWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaFeatureBoolean " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-boolean.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaFeatureBoolean", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaFeatureBoolean` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean#getName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getName(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getName" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean#getNameToken:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getNameToken(): " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getNameToken" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean.isMediaFeatureBoolean:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaFeatureBoolean(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureBoolean", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaFeatureBoolean" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureComparison:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeatureComparison = " + }, + { + "kind": "Reference", + "text": "MediaFeatureLT", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureLT:enum" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureGT", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureGT:enum" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureEQ", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureEQ:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-comparison.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureComparison", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureEQ:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum MediaFeatureEQ " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-comparison.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureEQ", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureEQ.EQ:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "EQ = " + }, + { + "kind": "Content", + "text": "\"=\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "EQ" + } + ] + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureGT:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum MediaFeatureGT " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-comparison.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureGT", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureGT.GT:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "GT = " + }, + { + "kind": "Content", + "text": "\">\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "GT" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureGT.GT_OR_EQ:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "GT_OR_EQ = " + }, + { + "kind": "Content", + "text": "\">=\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "GT_OR_EQ" + } + ] + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureLT:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum MediaFeatureLT " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-comparison.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureLT", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureLT.LT:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "LT = " + }, + { + "kind": "Content", + "text": "\"<\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "LT" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureLT.LT_OR_EQ:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "LT_OR_EQ = " + }, + { + "kind": "Content", + "text": "\"<=\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "LT_OR_EQ" + } + ] + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaFeatureName " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-name.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaFeatureName", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaFeatureName` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(name: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ", before?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", after?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "before", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "isOptional": true + }, + { + "parameterName": "after", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 12 + }, + "isOptional": true + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#after:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "after: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "after", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#before:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "before: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "before", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#getName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getName(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getName" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#getNameToken:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getNameToken(): " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getNameToken" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName.isMediaFeatureName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaFeatureName(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaFeatureName" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaFeaturePlain " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-plain.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaFeaturePlain", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaFeaturePlain` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ", colon: " + }, + { + "kind": "Reference", + "text": "TokenColon", + "canonicalReference": "@csstools/css-tokenizer!TokenColon:type" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "colon", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#colon:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "colon: " + }, + { + "kind": "Reference", + "text": "TokenColon", + "canonicalReference": "@csstools/css-tokenizer!TokenColon:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "colon", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#getName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getName(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getName" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#getNameToken:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getNameToken(): " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getNameToken" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain.isMediaFeaturePlain:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaFeaturePlain(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaFeaturePlain" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#value:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlainWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlainWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlainWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlainWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlainWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeaturePlainWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaFeatureValueWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValueWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-plain.d.ts", + "releaseTag": "Public", + "name": "MediaFeaturePlainWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlainWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeaturePlainWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaFeatureValueWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValueWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-plain.d.ts", + "releaseTag": "Public", + "name": "MediaFeaturePlainWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeatureRange = " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeNameValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeValueName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeValueNameValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-range.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureRange", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaFeatureRangeNameValue " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-range.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaFeatureRangeNameValue", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaFeatureRangeNameValue` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ", operator: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "] | [" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "operator", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 10 + }, + "isOptional": false + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#getName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getName(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getName" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#getNameToken:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getNameToken(): " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getNameToken" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue.isMediaFeatureRangeNameValue:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaFeatureRangeNameValue(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeNameValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaFeatureRangeNameValue" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#operator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "operator: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "] | [" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "operator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#operatorKind:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "operatorKind(): " + }, + { + "kind": "Reference", + "text": "MediaFeatureComparison", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureComparison:type" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "operatorKind" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#value:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeNameValue#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaFeatureRangeValueName " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-range.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaFeatureRangeValueName", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaFeatureRangeValueName` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ", operator: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "] | [" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ", value: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "operator", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 10 + }, + "isOptional": false + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 11, + "endIndex": 12 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#getName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getName(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getName" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#getNameToken:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getNameToken(): " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getNameToken" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName.isMediaFeatureRangeValueName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaFeatureRangeValueName(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeValueName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaFeatureRangeValueName" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#operator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "operator: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "] | [" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "operator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#operatorKind:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "operatorKind(): " + }, + { + "kind": "Reference", + "text": "MediaFeatureComparison", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureComparison:type" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "operatorKind" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#value:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueName#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaFeatureRangeValueNameValue " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-range.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaFeatureRangeValueNameValue", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaFeatureRangeValueNameValue` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ", valueOne: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ", valueOneOperator: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "] | [" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ", valueTwo: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ", valueTwoOperator: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "] | [" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "valueOne", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + }, + { + "parameterName": "valueOneOperator", + "parameterTypeTokenRange": { + "startIndex": 5, + "endIndex": 12 + }, + "isOptional": false + }, + { + "parameterName": "valueTwo", + "parameterTypeTokenRange": { + "startIndex": 13, + "endIndex": 14 + }, + "isOptional": false + }, + { + "parameterName": "valueTwoOperator", + "parameterTypeTokenRange": { + "startIndex": 15, + "endIndex": 22 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#getName:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getName(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getName" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#getNameToken:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getNameToken(): " + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getNameToken" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue.isMediaFeatureRangeValueNameValue:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaFeatureRangeValueNameValue(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeValueNameValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaFeatureRangeValueNameValue" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#name:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "name: " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "name", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#valueOne:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "valueOne: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "valueOne", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#valueOneOperator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "valueOneOperator: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "] | [" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "valueOneOperator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#valueOneOperatorKind:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "valueOneOperatorKind(): " + }, + { + "kind": "Reference", + "text": "MediaFeatureComparison", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureComparison:type" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "valueOneOperatorKind" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#valueTwo:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "valueTwo: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "valueTwo", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#valueTwoOperator:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "valueTwoOperator: " + }, + { + "kind": "Content", + "text": "[" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": ", " + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "] | [" + }, + { + "kind": "Reference", + "text": "TokenDelim", + "canonicalReference": "@csstools/css-tokenizer!TokenDelim:type" + }, + { + "kind": "Content", + "text": "]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "valueTwoOperator", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 8 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#valueTwoOperatorKind:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "valueTwoOperatorKind(): " + }, + { + "kind": "Reference", + "text": "MediaFeatureComparison", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureComparison:type" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "valueTwoOperatorKind" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeValueNameValue#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeatureRangeWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaFeatureValueWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValueWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-range.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureRangeWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeatureRangeWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaFeatureValueWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValueWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRange", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-range.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureRangeWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaFeatureValue " + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-value.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaFeatureValue", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaFeatureValue` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(value: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", before?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", after?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "isOptional": false + }, + { + "parameterName": "before", + "parameterTypeTokenRange": { + "startIndex": 8, + "endIndex": 12 + }, + "isOptional": true + }, + { + "parameterName": "after", + "parameterTypeTokenRange": { + "startIndex": 13, + "endIndex": 17 + }, + "isOptional": true + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue#after:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "after: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "after", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "> | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 9 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue#before:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "before: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "before", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue.isMediaFeatureValue:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaFeatureValue(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaFeatureValue" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue#value:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "value: " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "value", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 7 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValueWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValueWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaFeatureValueWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValueWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValueWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeatureValueWalkerEntry = " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-value.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureValueWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValueWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeatureValueWalkerParent = " + }, + { + "kind": "Reference", + "text": "ContainerNode", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNode:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature-value.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureValueWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeatureWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlainWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlainWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureBoolean", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRange", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 10 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaFeatureWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlainWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlainWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRangeWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRangeWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature.d.ts", + "releaseTag": "Public", + "name": "MediaFeatureWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaInParens " + } + ], + "fileUrlPath": "dist/_types/nodes/media-in-parens.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaInParens", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaInParens` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(media: " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": ", before?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", after?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "media", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isOptional": false + }, + { + "parameterName": "before", + "parameterTypeTokenRange": { + "startIndex": 7, + "endIndex": 11 + }, + "isOptional": true + }, + { + "parameterName": "after", + "parameterTypeTokenRange": { + "startIndex": 12, + "endIndex": 16 + }, + "isOptional": true + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens#after:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "after: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "after", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 9 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens#before:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "before: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "before", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 8 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens.isMediaInParens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaInParens(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaInParens" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens#media:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "media: " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "media", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 6 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaInParensWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaInParensWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaInParensWalkerEntry = " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionList", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionList:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureBoolean", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRange", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-in-parens.d.ts", + "releaseTag": "Public", + "name": "MediaInParensWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 30 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaInParensWalkerParent = " + }, + { + "kind": "Reference", + "text": "ContainerNode", + "canonicalReference": "@csstools/css-parser-algorithms!ContainerNode:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaAnd", + "canonicalReference": "@csstools/media-query-list-parser!MediaAnd:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaConditionList", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionList:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureBoolean", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureBoolean:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureName", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureName:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeaturePlain", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeaturePlain:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureRange", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureRange:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeatureValue", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeatureValue:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "GeneralEnclosed", + "canonicalReference": "@csstools/media-query-list-parser!GeneralEnclosed:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-in-parens.d.ts", + "releaseTag": "Public", + "name": "MediaInParensWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 30 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaNot " + } + ], + "fileUrlPath": "dist/_types/nodes/media-not.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaNot", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaNot` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(modifier: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", media: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "modifier", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "media", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot.isMediaNot:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaNot(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaNot" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot#media:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "media: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "media", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot#modifier:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "modifier: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "modifier", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaNotWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaNotWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaNotWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaNotWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaNotWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaNotWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaInParensWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-not.d.ts", + "releaseTag": "Public", + "name": "MediaNotWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaNotWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaNotWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaInParensWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaNot", + "canonicalReference": "@csstools/media-query-list-parser!MediaNot:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-not.d.ts", + "releaseTag": "Public", + "name": "MediaNotWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaOr " + } + ], + "fileUrlPath": "dist/_types/nodes/media-or.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaOr", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaOr` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(modifier: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", media: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "modifier", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "media", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 7 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr.isMediaOr:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaOr(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaOr" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr#media:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "media: " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "media", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr#modifier:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "modifier: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "modifier", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaOrWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaOrWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaOrWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaOrWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaOrWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaOrWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaInParensWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaInParens", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParens:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-or.d.ts", + "releaseTag": "Public", + "name": "MediaOrWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaOrWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaOrWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaInParensWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaInParensWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaOr", + "canonicalReference": "@csstools/media-query-list-parser!MediaOr:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-or.d.ts", + "releaseTag": "Public", + "name": "MediaOrWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaQuery:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaQuery = " + }, + { + "kind": "Reference", + "text": "MediaQueryWithType", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaQueryWithoutType", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType:class" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaQueryInvalid", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "name": "MediaQuery", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 6 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaQueryInvalid " + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaQueryInvalid", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaQueryInvalid` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(media: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "media", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid.isMediaQueryInvalid:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaQueryInvalid(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaQueryInvalid", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaQueryInvalid" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid#media:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "media: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "media", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid#negateQuery:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "negateQuery(): " + }, + { + "kind": "Reference", + "text": "MediaQuery", + "canonicalReference": "@csstools/media-query-list-parser!MediaQuery:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "negateQuery" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaQueryInvalidWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalidWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaQueryInvalidWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalidWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalidWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaQueryInvalidWalkerEntry = " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "name": "MediaQueryInvalidWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalidWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaQueryInvalidWalkerParent = " + }, + { + "kind": "Reference", + "text": "ComponentValue", + "canonicalReference": "@csstools/css-parser-algorithms!ComponentValue:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaQueryInvalid", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryInvalid:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "name": "MediaQueryInvalidWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryModifier:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum MediaQueryModifier " + } + ], + "fileUrlPath": "dist/_types/nodes/media-query-modifier.d.ts", + "releaseTag": "Public", + "name": "MediaQueryModifier", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryModifier.Not:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Not = " + }, + { + "kind": "Content", + "text": "\"not\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Not" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryModifier.Only:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Only = " + }, + { + "kind": "Content", + "text": "\"only\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Only" + } + ] + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaQueryWithoutType " + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaQueryWithoutType", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaQueryWithoutType` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(media: " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "media", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ] + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType.isMediaQueryWithoutType:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaQueryWithoutType(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaQueryWithoutType", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaQueryWithoutType" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType#media:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "media: " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "media", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType#negateQuery:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "negateQuery(): " + }, + { + "kind": "Reference", + "text": "MediaQuery", + "canonicalReference": "@csstools/media-query-list-parser!MediaQuery:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "negateQuery" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaQueryWithoutTypeWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutTypeWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaQueryWithoutTypeWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutTypeWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutTypeWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaQueryWithoutTypeWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaConditionWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "name": "MediaQueryWithoutTypeWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutTypeWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaQueryWithoutTypeWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaConditionWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaQueryWithoutType", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithoutType:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "name": "MediaQueryWithoutTypeWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Class", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType:class", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare class MediaQueryWithType " + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "isAbstract": false, + "name": "MediaQueryWithType", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Constructor", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType:constructor(1)", + "docComment": "/**\n * Constructs a new instance of the `MediaQueryWithType` class\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "constructor(modifier: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", mediaType: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", and?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": "> | undefined" + }, + { + "kind": "Content", + "text": ", media?: " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ");" + } + ], + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "modifier", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "mediaType", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 10 + }, + "isOptional": false + }, + { + "parameterName": "and", + "parameterTypeTokenRange": { + "startIndex": 11, + "endIndex": 15 + }, + "isOptional": true + }, + { + "parameterName": "media", + "parameterTypeTokenRange": { + "startIndex": 16, + "endIndex": 18 + }, + "isOptional": true + } + ] + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#and:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "and: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": "> | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "and", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#at:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "at(index: " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "index", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "at" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#getMediaType:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getMediaType(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getMediaType" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#getModifier:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "getModifier(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "getModifier" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#indexOf:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "indexOf(item: " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number | string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "item", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "indexOf" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType.isMediaQueryWithType:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "static isMediaQueryWithType(x: " + }, + { + "kind": "Content", + "text": "unknown" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "x", + "canonicalReference": "@csstools/media-query-list-parser!~x" + }, + { + "kind": "Content", + "text": " is " + }, + { + "kind": "Reference", + "text": "MediaQueryWithType", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": true, + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "x", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "isOptional": false, + "isAbstract": false, + "name": "isMediaQueryWithType" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#media:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "media: " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": " | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "media", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#mediaType:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "mediaType: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "mediaType", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#modifier:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "modifier: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "modifier", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#negateQuery:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "negateQuery(): " + }, + { + "kind": "Reference", + "text": "MediaQuery", + "canonicalReference": "@csstools/media-query-list-parser!MediaQuery:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "negateQuery" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#tokens:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "tokens(): " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "tokens" + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#toString:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "toString(): " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [], + "isOptional": false, + "isAbstract": false, + "name": "toString" + }, + { + "kind": "Property", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#type:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "type: " + }, + { + "kind": "Reference", + "text": "NodeType", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum" + }, + { + "kind": "Content", + "text": ";" + } + ], + "isReadonly": false, + "isOptional": false, + "releaseTag": "Public", + "name": "type", + "propertyTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isStatic": false, + "isProtected": false, + "isAbstract": false + }, + { + "kind": "Method", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType#walk:member(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "walk" + }, + { + "kind": "Content", + "text": ">(cb: " + }, + { + "kind": "Content", + "text": "(entry: {\n node: " + }, + { + "kind": "Reference", + "text": "MediaQueryWithTypeWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithTypeWalkerEntry:type" + }, + { + "kind": "Content", + "text": ";\n parent: " + }, + { + "kind": "Reference", + "text": "MediaQueryWithTypeWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithTypeWalkerParent:type" + }, + { + "kind": "Content", + "text": ";\n state?: T;\n }, index: number | string) => boolean | void" + }, + { + "kind": "Content", + "text": ", state?: " + }, + { + "kind": "Content", + "text": "T" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "false | undefined" + }, + { + "kind": "Content", + "text": ";" + } + ], + "typeParameters": [ + { + "typeParameterName": "T", + "constraintTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "defaultTypeTokenRange": { + "startIndex": 0, + "endIndex": 0 + } + } + ], + "isStatic": false, + "returnTypeTokenRange": { + "startIndex": 12, + "endIndex": 13 + }, + "releaseTag": "Public", + "isProtected": false, + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "cb", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 9 + }, + "isOptional": false + }, + { + "parameterName": "state", + "parameterTypeTokenRange": { + "startIndex": 10, + "endIndex": 11 + }, + "isOptional": true + } + ], + "isOptional": false, + "isAbstract": false, + "name": "walk" + } + ], + "implementsTokenRanges": [] + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithTypeWalkerEntry:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaQueryWithTypeWalkerEntry = " + }, + { + "kind": "Reference", + "text": "MediaConditionWalkerEntry", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionWalkerEntry:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaCondition", + "canonicalReference": "@csstools/media-query-list-parser!MediaCondition:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "name": "MediaQueryWithTypeWalkerEntry", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithTypeWalkerParent:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type MediaQueryWithTypeWalkerParent = " + }, + { + "kind": "Reference", + "text": "MediaConditionWalkerParent", + "canonicalReference": "@csstools/media-query-list-parser!MediaConditionWalkerParent:type" + }, + { + "kind": "Content", + "text": " | " + }, + { + "kind": "Reference", + "text": "MediaQueryWithType", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryWithType:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-query.d.ts", + "releaseTag": "Public", + "name": "MediaQueryWithTypeWalkerParent", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/media-query-list-parser!MediaType:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum MediaType " + } + ], + "fileUrlPath": "dist/_types/nodes/media-type.d.ts", + "releaseTag": "Public", + "name": "MediaType", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.All:member", + "docComment": "/**\n * Always matches\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "All = " + }, + { + "kind": "Content", + "text": "\"all\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "All" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Aural:member", + "docComment": "/**\n * Never matches\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Aural = " + }, + { + "kind": "Content", + "text": "\"aural\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Aural" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Braille:member", + "docComment": "/**\n * Never matches\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Braille = " + }, + { + "kind": "Content", + "text": "\"braille\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Braille" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Embossed:member", + "docComment": "/**\n * Never matches\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Embossed = " + }, + { + "kind": "Content", + "text": "\"embossed\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Embossed" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Handheld:member", + "docComment": "/**\n * Never matches\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Handheld = " + }, + { + "kind": "Content", + "text": "\"handheld\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Handheld" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Print:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Print = " + }, + { + "kind": "Content", + "text": "\"print\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Print" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Projection:member", + "docComment": "/**\n * Never matches\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Projection = " + }, + { + "kind": "Content", + "text": "\"projection\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Projection" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Screen:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "Screen = " + }, + { + "kind": "Content", + "text": "\"screen\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Screen" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Speech:member", + "docComment": "/**\n * Never matches\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Speech = " + }, + { + "kind": "Content", + "text": "\"speech\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Speech" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Tty:member", + "docComment": "/**\n * Never matches\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Tty = " + }, + { + "kind": "Content", + "text": "\"tty\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Tty" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!MediaType.Tv:member", + "docComment": "/**\n * Never matches\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "Tv = " + }, + { + "kind": "Content", + "text": "\"tv\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "Tv" + } + ] + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!modifierFromToken:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function modifierFromToken(token: " + }, + { + "kind": "Reference", + "text": "TokenIdent", + "canonicalReference": "@csstools/css-tokenizer!TokenIdent:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaQueryModifier", + "canonicalReference": "@csstools/media-query-list-parser!MediaQueryModifier:enum" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-query-modifier.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "token", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "modifierFromToken" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!newMediaFeatureBoolean:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function newMediaFeatureBoolean(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "newMediaFeatureBoolean" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!newMediaFeaturePlain:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function newMediaFeaturePlain(name: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", ...value: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaFeature", + "canonicalReference": "@csstools/media-query-list-parser!MediaFeature:class" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-feature.d.ts", + "returnTypeTokenRange": { + "startIndex": 8, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "name", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "value", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 7 + }, + "isOptional": false + } + ], + "name": "newMediaFeaturePlain" + }, + { + "kind": "Enum", + "canonicalReference": "@csstools/media-query-list-parser!NodeType:enum", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare enum NodeType " + } + ], + "fileUrlPath": "dist/_types/util/node-type.d.ts", + "releaseTag": "Public", + "name": "NodeType", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.CustomMedia:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "CustomMedia = " + }, + { + "kind": "Content", + "text": "\"custom-media\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "CustomMedia" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.GeneralEnclosed:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "GeneralEnclosed = " + }, + { + "kind": "Content", + "text": "\"general-enclosed\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "GeneralEnclosed" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaAnd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaAnd = " + }, + { + "kind": "Content", + "text": "\"media-and\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaAnd" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaCondition:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaCondition = " + }, + { + "kind": "Content", + "text": "\"media-condition\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaCondition" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaConditionListWithAnd:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaConditionListWithAnd = " + }, + { + "kind": "Content", + "text": "\"media-condition-list-and\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaConditionListWithAnd" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaConditionListWithOr:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaConditionListWithOr = " + }, + { + "kind": "Content", + "text": "\"media-condition-list-or\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaConditionListWithOr" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaFeature:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaFeature = " + }, + { + "kind": "Content", + "text": "\"media-feature\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaFeature" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaFeatureBoolean:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaFeatureBoolean = " + }, + { + "kind": "Content", + "text": "\"mf-boolean\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaFeatureBoolean" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaFeatureName:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaFeatureName = " + }, + { + "kind": "Content", + "text": "\"mf-name\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaFeatureName" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaFeaturePlain:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaFeaturePlain = " + }, + { + "kind": "Content", + "text": "\"mf-plain\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaFeaturePlain" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaFeatureRangeNameValue:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaFeatureRangeNameValue = " + }, + { + "kind": "Content", + "text": "\"mf-range-name-value\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaFeatureRangeNameValue" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaFeatureRangeValueName:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaFeatureRangeValueName = " + }, + { + "kind": "Content", + "text": "\"mf-range-value-name\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaFeatureRangeValueName" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaFeatureRangeValueNameValue:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaFeatureRangeValueNameValue = " + }, + { + "kind": "Content", + "text": "\"mf-range-value-name-value\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaFeatureRangeValueNameValue" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaFeatureValue:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaFeatureValue = " + }, + { + "kind": "Content", + "text": "\"mf-value\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaFeatureValue" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaInParens:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaInParens = " + }, + { + "kind": "Content", + "text": "\"media-in-parens\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaInParens" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaNot:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaNot = " + }, + { + "kind": "Content", + "text": "\"media-not\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaNot" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaOr:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaOr = " + }, + { + "kind": "Content", + "text": "\"media-or\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaOr" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaQueryInvalid:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaQueryInvalid = " + }, + { + "kind": "Content", + "text": "\"media-query-invalid\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaQueryInvalid" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaQueryWithoutType:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaQueryWithoutType = " + }, + { + "kind": "Content", + "text": "\"media-query-without-type\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaQueryWithoutType" + }, + { + "kind": "EnumMember", + "canonicalReference": "@csstools/media-query-list-parser!NodeType.MediaQueryWithType:member", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "MediaQueryWithType = " + }, + { + "kind": "Content", + "text": "\"media-query-with-type\"" + } + ], + "initializerTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "releaseTag": "Public", + "name": "MediaQueryWithType" + } + ] + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!parse:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parse(source: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n preserveInvalidMediaQueries?: boolean;\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaQuery", + "canonicalReference": "@csstools/media-query-list-parser!MediaQuery:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/parser/parse.d.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "parse" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!parseCustomMedia:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parseCustomMedia(source: " + }, + { + "kind": "Content", + "text": "string" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n preserveInvalidMediaQueries?: boolean;\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "CustomMedia", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia:class" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/parser/parse-custom-media.d.ts", + "returnTypeTokenRange": { + "startIndex": 7, + "endIndex": 9 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "source", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 6 + }, + "isOptional": true + } + ], + "name": "parseCustomMedia" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!parseCustomMediaFromTokens:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parseCustomMediaFromTokens(tokens: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n preserveInvalidMediaQueries?: boolean;\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "CustomMedia", + "canonicalReference": "@csstools/media-query-list-parser!CustomMedia:class" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/parser/parse-custom-media.d.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tokens", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 9 + }, + "isOptional": true + } + ], + "name": "parseCustomMediaFromTokens" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!parseFromTokens:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function parseFromTokens(tokens: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "CSSToken", + "canonicalReference": "@csstools/css-tokenizer!CSSToken:type" + }, + { + "kind": "Content", + "text": ">" + }, + { + "kind": "Content", + "text": ", options?: " + }, + { + "kind": "Content", + "text": "{\n preserveInvalidMediaQueries?: boolean;\n onParseError?: (error: " + }, + { + "kind": "Reference", + "text": "ParseError", + "canonicalReference": "@csstools/css-tokenizer!ParseError:class" + }, + { + "kind": "Content", + "text": ") => void;\n}" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaQuery", + "canonicalReference": "@csstools/media-query-list-parser!MediaQuery:type" + }, + { + "kind": "Content", + "text": "[]" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/parser/parse.d.ts", + "returnTypeTokenRange": { + "startIndex": 10, + "endIndex": 12 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "tokens", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 5 + }, + "isOptional": false + }, + { + "parameterName": "options", + "parameterTypeTokenRange": { + "startIndex": 6, + "endIndex": 9 + }, + "isOptional": true + } + ], + "name": "parseFromTokens" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/media-query-list-parser!typeFromToken:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function typeFromToken(token: " + }, + { + "kind": "Reference", + "text": "TokenIdent", + "canonicalReference": "@csstools/css-tokenizer!TokenIdent:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "MediaType", + "canonicalReference": "@csstools/media-query-list-parser!MediaType:enum" + }, + { + "kind": "Content", + "text": " | false" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/nodes/media-type.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 5 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "token", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "typeFromToken" + } + ] + } + ] +} diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.clonemediaquery.md b/packages/media-query-list-parser/docs/media-query-list-parser.clonemediaquery.md new file mode 100644 index 000000000..1bfd569bb --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.clonemediaquery.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [cloneMediaQuery](./media-query-list-parser.clonemediaquery.md) + +## cloneMediaQuery() function + +**Signature:** + +```typescript +export declare function cloneMediaQuery(x: T): T; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | T | | + +**Returns:** + +T + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.comparisonfromtokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.comparisonfromtokens.md new file mode 100644 index 000000000..9a0ac1730 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.comparisonfromtokens.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [comparisonFromTokens](./media-query-list-parser.comparisonfromtokens.md) + +## comparisonFromTokens() function + +**Signature:** + +```typescript +export declare function comparisonFromTokens(tokens: [TokenDelim, TokenDelim] | [TokenDelim]): MediaFeatureComparison | false; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| tokens | \[TokenDelim, TokenDelim\] \| \[TokenDelim\] | | + +**Returns:** + +[MediaFeatureComparison](./media-query-list-parser.mediafeaturecomparison.md) \| false + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia._constructor_.md new file mode 100644 index 000000000..e6cf9aa42 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [(constructor)](./media-query-list-parser.custommedia._constructor_.md) + +## CustomMedia.(constructor) + +Constructs a new instance of the `CustomMedia` class + +**Signature:** + +```typescript +constructor(name: Array, mediaQueryList: Array | null, trueOrFalseKeyword?: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | Array<CSSToken> | | +| mediaQueryList | Array<[MediaQuery](./media-query-list-parser.mediaquery.md)> \| null | | +| trueOrFalseKeyword | Array<CSSToken> | _(Optional)_ | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.getname.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.getname.md new file mode 100644 index 000000000..cee9a9db0 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.getname.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [getName](./media-query-list-parser.custommedia.getname.md) + +## CustomMedia.getName() method + +**Signature:** + +```typescript +getName(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.getnametoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.getnametoken.md new file mode 100644 index 000000000..c756bd810 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.getnametoken.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [getNameToken](./media-query-list-parser.custommedia.getnametoken.md) + +## CustomMedia.getNameToken() method + +**Signature:** + +```typescript +getNameToken(): CSSToken | null; +``` +**Returns:** + +CSSToken \| null + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.hasfalsekeyword.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.hasfalsekeyword.md new file mode 100644 index 000000000..863bf8423 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.hasfalsekeyword.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [hasFalseKeyword](./media-query-list-parser.custommedia.hasfalsekeyword.md) + +## CustomMedia.hasFalseKeyword() method + +**Signature:** + +```typescript +hasFalseKeyword(): boolean; +``` +**Returns:** + +boolean + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.hasmediaquerylist.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.hasmediaquerylist.md new file mode 100644 index 000000000..dea844e97 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.hasmediaquerylist.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [hasMediaQueryList](./media-query-list-parser.custommedia.hasmediaquerylist.md) + +## CustomMedia.hasMediaQueryList() method + +**Signature:** + +```typescript +hasMediaQueryList(): boolean; +``` +**Returns:** + +boolean + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.hastruekeyword.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.hastruekeyword.md new file mode 100644 index 000000000..6442de921 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.hastruekeyword.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [hasTrueKeyword](./media-query-list-parser.custommedia.hastruekeyword.md) + +## CustomMedia.hasTrueKeyword() method + +**Signature:** + +```typescript +hasTrueKeyword(): boolean; +``` +**Returns:** + +boolean + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.iscustommedia.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.iscustommedia.md new file mode 100644 index 000000000..2bdd13626 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.iscustommedia.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [isCustomMedia](./media-query-list-parser.custommedia.iscustommedia.md) + +## CustomMedia.isCustomMedia() method + +**Signature:** + +```typescript +static isCustomMedia(x: unknown): x is CustomMedia; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [CustomMedia](./media-query-list-parser.custommedia.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.md new file mode 100644 index 000000000..029e9ce98 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.md @@ -0,0 +1,40 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) + +## CustomMedia class + +**Signature:** + +```typescript +export declare class CustomMedia +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(name, mediaQueryList, trueOrFalseKeyword)](./media-query-list-parser.custommedia._constructor_.md) | | Constructs a new instance of the CustomMedia class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [mediaQueryList](./media-query-list-parser.custommedia.mediaquerylist.md) | | Array<[MediaQuery](./media-query-list-parser.mediaquery.md)> \| null | | +| [name](./media-query-list-parser.custommedia.name.md) | | Array<CSSToken> | | +| [trueOrFalseKeyword](./media-query-list-parser.custommedia.trueorfalsekeyword.md) | | Array<CSSToken> \| null | | +| [type](./media-query-list-parser.custommedia.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [getName()](./media-query-list-parser.custommedia.getname.md) | | | +| [getNameToken()](./media-query-list-parser.custommedia.getnametoken.md) | | | +| [hasFalseKeyword()](./media-query-list-parser.custommedia.hasfalsekeyword.md) | | | +| [hasMediaQueryList()](./media-query-list-parser.custommedia.hasmediaquerylist.md) | | | +| [hasTrueKeyword()](./media-query-list-parser.custommedia.hastruekeyword.md) | | | +| [isCustomMedia(x)](./media-query-list-parser.custommedia.iscustommedia.md) | static | | +| [tokens()](./media-query-list-parser.custommedia.tokens.md) | | | +| [toString()](./media-query-list-parser.custommedia.tostring.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.mediaquerylist.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.mediaquerylist.md new file mode 100644 index 000000000..cea91feb5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.mediaquerylist.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [mediaQueryList](./media-query-list-parser.custommedia.mediaquerylist.md) + +## CustomMedia.mediaQueryList property + +**Signature:** + +```typescript +mediaQueryList: Array | null; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.name.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.name.md new file mode 100644 index 000000000..f93d4a197 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.name.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [name](./media-query-list-parser.custommedia.name.md) + +## CustomMedia.name property + +**Signature:** + +```typescript +name: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.tokens.md new file mode 100644 index 000000000..2625a322d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [tokens](./media-query-list-parser.custommedia.tokens.md) + +## CustomMedia.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.tostring.md new file mode 100644 index 000000000..e0df576d6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [toString](./media-query-list-parser.custommedia.tostring.md) + +## CustomMedia.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.trueorfalsekeyword.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.trueorfalsekeyword.md new file mode 100644 index 000000000..8e803aad7 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.trueorfalsekeyword.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [trueOrFalseKeyword](./media-query-list-parser.custommedia.trueorfalsekeyword.md) + +## CustomMedia.trueOrFalseKeyword property + +**Signature:** + +```typescript +trueOrFalseKeyword: Array | null; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.type.md new file mode 100644 index 000000000..dbb9b9d2e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.custommedia.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [CustomMedia](./media-query-list-parser.custommedia.md) > [type](./media-query-list-parser.custommedia.type.md) + +## CustomMedia.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed._constructor_.md new file mode 100644 index 000000000..1abf0f9e3 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed._constructor_.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) > [(constructor)](./media-query-list-parser.generalenclosed._constructor_.md) + +## GeneralEnclosed.(constructor) + +Constructs a new instance of the `GeneralEnclosed` class + +**Signature:** + +```typescript +constructor(value: ComponentValue); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| value | ComponentValue | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.at.md new file mode 100644 index 000000000..c75242b99 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) > [at](./media-query-list-parser.generalenclosed.at.md) + +## GeneralEnclosed.at() method + +**Signature:** + +```typescript +at(index: number | string): ComponentValue | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +ComponentValue \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.indexof.md new file mode 100644 index 000000000..3bbf8e54a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) > [indexOf](./media-query-list-parser.generalenclosed.indexof.md) + +## GeneralEnclosed.indexOf() method + +**Signature:** + +```typescript +indexOf(item: ComponentValue): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | ComponentValue | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.isgeneralenclosed.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.isgeneralenclosed.md new file mode 100644 index 000000000..a71c65c36 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.isgeneralenclosed.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) > [isGeneralEnclosed](./media-query-list-parser.generalenclosed.isgeneralenclosed.md) + +## GeneralEnclosed.isGeneralEnclosed() method + +**Signature:** + +```typescript +static isGeneralEnclosed(x: unknown): x is GeneralEnclosed; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.md new file mode 100644 index 000000000..94b246ee2 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.md @@ -0,0 +1,36 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) + +## GeneralEnclosed class + +**Signature:** + +```typescript +export declare class GeneralEnclosed +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(value)](./media-query-list-parser.generalenclosed._constructor_.md) | | Constructs a new instance of the GeneralEnclosed class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [type](./media-query-list-parser.generalenclosed.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | +| [value](./media-query-list-parser.generalenclosed.value.md) | | ComponentValue | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.generalenclosed.at.md) | | | +| [indexOf(item)](./media-query-list-parser.generalenclosed.indexof.md) | | | +| [isGeneralEnclosed(x)](./media-query-list-parser.generalenclosed.isgeneralenclosed.md) | static | | +| [tokens()](./media-query-list-parser.generalenclosed.tokens.md) | | | +| [toString()](./media-query-list-parser.generalenclosed.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.generalenclosed.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.tokens.md new file mode 100644 index 000000000..18d83bd1a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) > [tokens](./media-query-list-parser.generalenclosed.tokens.md) + +## GeneralEnclosed.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.tostring.md new file mode 100644 index 000000000..d7d19e56c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) > [toString](./media-query-list-parser.generalenclosed.tostring.md) + +## GeneralEnclosed.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.type.md new file mode 100644 index 000000000..d28a7ae79 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) > [type](./media-query-list-parser.generalenclosed.type.md) + +## GeneralEnclosed.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.value.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.value.md new file mode 100644 index 000000000..c7cab26c8 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.value.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) > [value](./media-query-list-parser.generalenclosed.value.md) + +## GeneralEnclosed.value property + +**Signature:** + +```typescript +value: ComponentValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.walk.md new file mode 100644 index 000000000..0f90c3509 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosed.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) > [walk](./media-query-list-parser.generalenclosed.walk.md) + +## GeneralEnclosed.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: GeneralEnclosedWalkerEntry; + parent: GeneralEnclosedWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [GeneralEnclosedWalkerEntry](./media-query-list-parser.generalenclosedwalkerentry.md); parent: [GeneralEnclosedWalkerParent](./media-query-list-parser.generalenclosedwalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosedwalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosedwalkerentry.md new file mode 100644 index 000000000..e801e0add --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosedwalkerentry.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosedWalkerEntry](./media-query-list-parser.generalenclosedwalkerentry.md) + +## GeneralEnclosedWalkerEntry type + +**Signature:** + +```typescript +export type GeneralEnclosedWalkerEntry = ComponentValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosedwalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosedwalkerparent.md new file mode 100644 index 000000000..74f8fb1a2 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.generalenclosedwalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [GeneralEnclosedWalkerParent](./media-query-list-parser.generalenclosedwalkerparent.md) + +## GeneralEnclosedWalkerParent type + +**Signature:** + +```typescript +export type GeneralEnclosedWalkerParent = ContainerNode | GeneralEnclosed; +``` +**References:** [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.invertcomparison.md b/packages/media-query-list-parser/docs/media-query-list-parser.invertcomparison.md new file mode 100644 index 000000000..bb829bf58 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.invertcomparison.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [invertComparison](./media-query-list-parser.invertcomparison.md) + +## invertComparison() function + +**Signature:** + +```typescript +export declare function invertComparison(operator: MediaFeatureComparison): MediaFeatureComparison | false; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| operator | [MediaFeatureComparison](./media-query-list-parser.mediafeaturecomparison.md) | | + +**Returns:** + +[MediaFeatureComparison](./media-query-list-parser.mediafeaturecomparison.md) \| false + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.iscustommedia.md b/packages/media-query-list-parser/docs/media-query-list-parser.iscustommedia.md new file mode 100644 index 000000000..8c57fb5ce --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.iscustommedia.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isCustomMedia](./media-query-list-parser.iscustommedia.md) + +## isCustomMedia() function + +**Signature:** + +```typescript +export declare function isCustomMedia(x: unknown): x is GeneralEnclosed; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.isgeneralenclosed.md b/packages/media-query-list-parser/docs/media-query-list-parser.isgeneralenclosed.md new file mode 100644 index 000000000..bc0c53348 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.isgeneralenclosed.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isGeneralEnclosed](./media-query-list-parser.isgeneralenclosed.md) + +## isGeneralEnclosed() function + +**Signature:** + +```typescript +export declare function isGeneralEnclosed(x: unknown): x is GeneralEnclosed; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediaand.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaand.md new file mode 100644 index 000000000..0733a4a4b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaand.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaAnd](./media-query-list-parser.ismediaand.md) + +## isMediaAnd() function + +**Signature:** + +```typescript +export declare function isMediaAnd(x: unknown): x is MediaAnd; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaAnd](./media-query-list-parser.mediaand.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediacondition.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediacondition.md new file mode 100644 index 000000000..b838bde08 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediacondition.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaCondition](./media-query-list-parser.ismediacondition.md) + +## isMediaCondition() function + +**Signature:** + +```typescript +export declare function isMediaCondition(x: unknown): x is MediaCondition; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaCondition](./media-query-list-parser.mediacondition.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediaconditionlist.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaconditionlist.md new file mode 100644 index 000000000..6af1e5555 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaconditionlist.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaConditionList](./media-query-list-parser.ismediaconditionlist.md) + +## isMediaConditionList() function + +**Signature:** + +```typescript +export declare function isMediaConditionList(x: unknown): x is MediaConditionList; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaConditionList](./media-query-list-parser.mediaconditionlist.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediaconditionlistwithand.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaconditionlistwithand.md new file mode 100644 index 000000000..6066e9c9c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaconditionlistwithand.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaConditionListWithAnd](./media-query-list-parser.ismediaconditionlistwithand.md) + +## isMediaConditionListWithAnd() function + +**Signature:** + +```typescript +export declare function isMediaConditionListWithAnd(x: unknown): x is MediaConditionListWithAnd; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediaconditionlistwithor.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaconditionlistwithor.md new file mode 100644 index 000000000..d04e7b33d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaconditionlistwithor.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaConditionListWithOr](./media-query-list-parser.ismediaconditionlistwithor.md) + +## isMediaConditionListWithOr() function + +**Signature:** + +```typescript +export declare function isMediaConditionListWithOr(x: unknown): x is MediaConditionListWithOr; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeature.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeature.md new file mode 100644 index 000000000..7bfe85e1a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeature.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaFeature](./media-query-list-parser.ismediafeature.md) + +## isMediaFeature() function + +**Signature:** + +```typescript +export declare function isMediaFeature(x: unknown): x is MediaFeature; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeature](./media-query-list-parser.mediafeature.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeatureboolean.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeatureboolean.md new file mode 100644 index 000000000..def705696 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeatureboolean.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaFeatureBoolean](./media-query-list-parser.ismediafeatureboolean.md) + +## isMediaFeatureBoolean() function + +**Signature:** + +```typescript +export declare function isMediaFeatureBoolean(x: unknown): x is MediaFeatureBoolean; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturename.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturename.md new file mode 100644 index 000000000..e66d8c831 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturename.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaFeatureName](./media-query-list-parser.ismediafeaturename.md) + +## isMediaFeatureName() function + +**Signature:** + +```typescript +export declare function isMediaFeatureName(x: unknown): x is MediaFeatureName; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeatureplain.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeatureplain.md new file mode 100644 index 000000000..c31dc1f21 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeatureplain.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaFeaturePlain](./media-query-list-parser.ismediafeatureplain.md) + +## isMediaFeaturePlain() function + +**Signature:** + +```typescript +export declare function isMediaFeaturePlain(x: unknown): x is MediaFeaturePlain; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerange.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerange.md new file mode 100644 index 000000000..638d0adec --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerange.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaFeatureRange](./media-query-list-parser.ismediafeaturerange.md) + +## isMediaFeatureRange() function + +**Signature:** + +```typescript +export declare function isMediaFeatureRange(x: unknown): x is MediaFeatureRange; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerangenamevalue.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerangenamevalue.md new file mode 100644 index 000000000..64682f05d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerangenamevalue.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaFeatureRangeNameValue](./media-query-list-parser.ismediafeaturerangenamevalue.md) + +## isMediaFeatureRangeNameValue() function + +**Signature:** + +```typescript +export declare function isMediaFeatureRangeNameValue(x: unknown): x is MediaFeatureRangeNameValue; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerangevaluename.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerangevaluename.md new file mode 100644 index 000000000..6a58432ad --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerangevaluename.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaFeatureRangeValueName](./media-query-list-parser.ismediafeaturerangevaluename.md) + +## isMediaFeatureRangeValueName() function + +**Signature:** + +```typescript +export declare function isMediaFeatureRangeValueName(x: unknown): x is MediaFeatureRangeValueName; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerangevaluenamevalue.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerangevaluenamevalue.md new file mode 100644 index 000000000..53dd91910 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturerangevaluenamevalue.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaFeatureRangeValueNameValue](./media-query-list-parser.ismediafeaturerangevaluenamevalue.md) + +## isMediaFeatureRangeValueNameValue() function + +**Signature:** + +```typescript +export declare function isMediaFeatureRangeValueNameValue(x: unknown): x is MediaFeatureRangeValueNameValue; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturevalue.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturevalue.md new file mode 100644 index 000000000..c6bf8efe9 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediafeaturevalue.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaFeatureValue](./media-query-list-parser.ismediafeaturevalue.md) + +## isMediaFeatureValue() function + +**Signature:** + +```typescript +export declare function isMediaFeatureValue(x: unknown): x is MediaFeatureValue; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediainparens.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediainparens.md new file mode 100644 index 000000000..aab289053 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediainparens.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaInParens](./media-query-list-parser.ismediainparens.md) + +## isMediaInParens() function + +**Signature:** + +```typescript +export declare function isMediaInParens(x: unknown): x is MediaInParens; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaInParens](./media-query-list-parser.mediainparens.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismedianot.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismedianot.md new file mode 100644 index 000000000..a5415eb94 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismedianot.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaNot](./media-query-list-parser.ismedianot.md) + +## isMediaNot() function + +**Signature:** + +```typescript +export declare function isMediaNot(x: unknown): x is MediaNot; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaNot](./media-query-list-parser.medianot.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediaor.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaor.md new file mode 100644 index 000000000..235028047 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaor.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaOr](./media-query-list-parser.ismediaor.md) + +## isMediaOr() function + +**Signature:** + +```typescript +export declare function isMediaOr(x: unknown): x is MediaOr; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaOr](./media-query-list-parser.mediaor.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediaquery.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaquery.md new file mode 100644 index 000000000..6d3c730b5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaquery.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaQuery](./media-query-list-parser.ismediaquery.md) + +## isMediaQuery() function + +**Signature:** + +```typescript +export declare function isMediaQuery(x: unknown): x is MediaQuery; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaQuery](./media-query-list-parser.mediaquery.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediaqueryinvalid.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaqueryinvalid.md new file mode 100644 index 000000000..20d1ce7f0 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaqueryinvalid.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaQueryInvalid](./media-query-list-parser.ismediaqueryinvalid.md) + +## isMediaQueryInvalid() function + +**Signature:** + +```typescript +export declare function isMediaQueryInvalid(x: unknown): x is MediaQueryInvalid; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediaquerywithouttype.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaquerywithouttype.md new file mode 100644 index 000000000..692d54890 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaquerywithouttype.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaQueryWithoutType](./media-query-list-parser.ismediaquerywithouttype.md) + +## isMediaQueryWithoutType() function + +**Signature:** + +```typescript +export declare function isMediaQueryWithoutType(x: unknown): x is MediaQueryWithoutType; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.ismediaquerywithtype.md b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaquerywithtype.md new file mode 100644 index 000000000..57cca5617 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.ismediaquerywithtype.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [isMediaQueryWithType](./media-query-list-parser.ismediaquerywithtype.md) + +## isMediaQueryWithType() function + +**Signature:** + +```typescript +export declare function isMediaQueryWithType(x: unknown): x is MediaQueryWithType; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.matchescomparison.md b/packages/media-query-list-parser/docs/media-query-list-parser.matchescomparison.md new file mode 100644 index 000000000..9879f1576 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.matchescomparison.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [matchesComparison](./media-query-list-parser.matchescomparison.md) + +## matchesComparison() function + +**Signature:** + +```typescript +export declare function matchesComparison(componentValues: Array): false | [number, number]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| componentValues | Array<ComponentValue> | | + +**Returns:** + +false \| \[number, number\] + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.matchesratio.md b/packages/media-query-list-parser/docs/media-query-list-parser.matchesratio.md new file mode 100644 index 000000000..2986a0bde --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.matchesratio.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [matchesRatio](./media-query-list-parser.matchesratio.md) + +## matchesRatio() function + +**Signature:** + +```typescript +export declare function matchesRatio(componentValues: Array): number[] | -1; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| componentValues | Array<ComponentValue> | | + +**Returns:** + +number\[\] \| -1 + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.matchesratioexactly.md b/packages/media-query-list-parser/docs/media-query-list-parser.matchesratioexactly.md new file mode 100644 index 000000000..8e4394223 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.matchesratioexactly.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [matchesRatioExactly](./media-query-list-parser.matchesratioexactly.md) + +## matchesRatioExactly() function + +**Signature:** + +```typescript +export declare function matchesRatioExactly(componentValues: Array): number[] | -1; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| componentValues | Array<ComponentValue> | | + +**Returns:** + +number\[\] \| -1 + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.md b/packages/media-query-list-parser/docs/media-query-list-parser.md new file mode 100644 index 000000000..62bc6b031 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.md @@ -0,0 +1,123 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) + +## media-query-list-parser package + +## Classes + +| Class | Description | +| --- | --- | +| [CustomMedia](./media-query-list-parser.custommedia.md) | | +| [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) | | +| [MediaAnd](./media-query-list-parser.mediaand.md) | | +| [MediaCondition](./media-query-list-parser.mediacondition.md) | | +| [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) | | +| [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) | | +| [MediaFeature](./media-query-list-parser.mediafeature.md) | | +| [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) | | +| [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) | | +| [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) | | +| [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) | | +| [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) | | +| [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | +| [MediaInParens](./media-query-list-parser.mediainparens.md) | | +| [MediaNot](./media-query-list-parser.medianot.md) | | +| [MediaOr](./media-query-list-parser.mediaor.md) | | +| [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) | | +| [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) | | +| [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) | | + +## Enumerations + +| Enumeration | Description | +| --- | --- | +| [MediaFeatureEQ](./media-query-list-parser.mediafeatureeq.md) | | +| [MediaFeatureGT](./media-query-list-parser.mediafeaturegt.md) | | +| [MediaFeatureLT](./media-query-list-parser.mediafeaturelt.md) | | +| [MediaQueryModifier](./media-query-list-parser.mediaquerymodifier.md) | | +| [MediaType](./media-query-list-parser.mediatype.md) | | +| [NodeType](./media-query-list-parser.nodetype.md) | | + +## Functions + +| Function | Description | +| --- | --- | +| [cloneMediaQuery(x)](./media-query-list-parser.clonemediaquery.md) | | +| [comparisonFromTokens(tokens)](./media-query-list-parser.comparisonfromtokens.md) | | +| [invertComparison(operator)](./media-query-list-parser.invertcomparison.md) | | +| [isCustomMedia(x)](./media-query-list-parser.iscustommedia.md) | | +| [isGeneralEnclosed(x)](./media-query-list-parser.isgeneralenclosed.md) | | +| [isMediaAnd(x)](./media-query-list-parser.ismediaand.md) | | +| [isMediaCondition(x)](./media-query-list-parser.ismediacondition.md) | | +| [isMediaConditionList(x)](./media-query-list-parser.ismediaconditionlist.md) | | +| [isMediaConditionListWithAnd(x)](./media-query-list-parser.ismediaconditionlistwithand.md) | | +| [isMediaConditionListWithOr(x)](./media-query-list-parser.ismediaconditionlistwithor.md) | | +| [isMediaFeature(x)](./media-query-list-parser.ismediafeature.md) | | +| [isMediaFeatureBoolean(x)](./media-query-list-parser.ismediafeatureboolean.md) | | +| [isMediaFeatureName(x)](./media-query-list-parser.ismediafeaturename.md) | | +| [isMediaFeaturePlain(x)](./media-query-list-parser.ismediafeatureplain.md) | | +| [isMediaFeatureRange(x)](./media-query-list-parser.ismediafeaturerange.md) | | +| [isMediaFeatureRangeNameValue(x)](./media-query-list-parser.ismediafeaturerangenamevalue.md) | | +| [isMediaFeatureRangeValueName(x)](./media-query-list-parser.ismediafeaturerangevaluename.md) | | +| [isMediaFeatureRangeValueNameValue(x)](./media-query-list-parser.ismediafeaturerangevaluenamevalue.md) | | +| [isMediaFeatureValue(x)](./media-query-list-parser.ismediafeaturevalue.md) | | +| [isMediaInParens(x)](./media-query-list-parser.ismediainparens.md) | | +| [isMediaNot(x)](./media-query-list-parser.ismedianot.md) | | +| [isMediaOr(x)](./media-query-list-parser.ismediaor.md) | | +| [isMediaQuery(x)](./media-query-list-parser.ismediaquery.md) | | +| [isMediaQueryInvalid(x)](./media-query-list-parser.ismediaqueryinvalid.md) | | +| [isMediaQueryWithoutType(x)](./media-query-list-parser.ismediaquerywithouttype.md) | | +| [isMediaQueryWithType(x)](./media-query-list-parser.ismediaquerywithtype.md) | | +| [matchesComparison(componentValues)](./media-query-list-parser.matchescomparison.md) | | +| [matchesRatio(componentValues)](./media-query-list-parser.matchesratio.md) | | +| [matchesRatioExactly(componentValues)](./media-query-list-parser.matchesratioexactly.md) | | +| [modifierFromToken(token)](./media-query-list-parser.modifierfromtoken.md) | | +| [newMediaFeatureBoolean(name)](./media-query-list-parser.newmediafeatureboolean.md) | | +| [newMediaFeaturePlain(name, value)](./media-query-list-parser.newmediafeatureplain.md) | | +| [parse(source, options)](./media-query-list-parser.parse.md) | | +| [parseCustomMedia(source, options)](./media-query-list-parser.parsecustommedia.md) | | +| [parseCustomMediaFromTokens(tokens, options)](./media-query-list-parser.parsecustommediafromtokens.md) | | +| [parseFromTokens(tokens, options)](./media-query-list-parser.parsefromtokens.md) | | +| [typeFromToken(token)](./media-query-list-parser.typefromtoken.md) | | + +## Type Aliases + +| Type Alias | Description | +| --- | --- | +| [GeneralEnclosedWalkerEntry](./media-query-list-parser.generalenclosedwalkerentry.md) | | +| [GeneralEnclosedWalkerParent](./media-query-list-parser.generalenclosedwalkerparent.md) | | +| [MediaAndWalkerEntry](./media-query-list-parser.mediaandwalkerentry.md) | | +| [MediaAndWalkerParent](./media-query-list-parser.mediaandwalkerparent.md) | | +| [MediaConditionList](./media-query-list-parser.mediaconditionlist.md) | | +| [MediaConditionListWithAndWalkerEntry](./media-query-list-parser.mediaconditionlistwithandwalkerentry.md) | | +| [MediaConditionListWithAndWalkerParent](./media-query-list-parser.mediaconditionlistwithandwalkerparent.md) | | +| [MediaConditionListWithOrWalkerEntry](./media-query-list-parser.mediaconditionlistwithorwalkerentry.md) | | +| [MediaConditionListWithOrWalkerParent](./media-query-list-parser.mediaconditionlistwithorwalkerparent.md) | | +| [MediaConditionWalkerEntry](./media-query-list-parser.mediaconditionwalkerentry.md) | | +| [MediaConditionWalkerParent](./media-query-list-parser.mediaconditionwalkerparent.md) | | +| [MediaFeatureComparison](./media-query-list-parser.mediafeaturecomparison.md) | | +| [MediaFeaturePlainWalkerEntry](./media-query-list-parser.mediafeatureplainwalkerentry.md) | | +| [MediaFeaturePlainWalkerParent](./media-query-list-parser.mediafeatureplainwalkerparent.md) | | +| [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md) | | +| [MediaFeatureRangeWalkerEntry](./media-query-list-parser.mediafeaturerangewalkerentry.md) | | +| [MediaFeatureRangeWalkerParent](./media-query-list-parser.mediafeaturerangewalkerparent.md) | | +| [MediaFeatureValueWalkerEntry](./media-query-list-parser.mediafeaturevaluewalkerentry.md) | | +| [MediaFeatureValueWalkerParent](./media-query-list-parser.mediafeaturevaluewalkerparent.md) | | +| [MediaFeatureWalkerEntry](./media-query-list-parser.mediafeaturewalkerentry.md) | | +| [MediaFeatureWalkerParent](./media-query-list-parser.mediafeaturewalkerparent.md) | | +| [MediaInParensWalkerEntry](./media-query-list-parser.mediainparenswalkerentry.md) | | +| [MediaInParensWalkerParent](./media-query-list-parser.mediainparenswalkerparent.md) | | +| [MediaNotWalkerEntry](./media-query-list-parser.medianotwalkerentry.md) | | +| [MediaNotWalkerParent](./media-query-list-parser.medianotwalkerparent.md) | | +| [MediaOrWalkerEntry](./media-query-list-parser.mediaorwalkerentry.md) | | +| [MediaOrWalkerParent](./media-query-list-parser.mediaorwalkerparent.md) | | +| [MediaQuery](./media-query-list-parser.mediaquery.md) | | +| [MediaQueryInvalidWalkerEntry](./media-query-list-parser.mediaqueryinvalidwalkerentry.md) | | +| [MediaQueryInvalidWalkerParent](./media-query-list-parser.mediaqueryinvalidwalkerparent.md) | | +| [MediaQueryWithoutTypeWalkerEntry](./media-query-list-parser.mediaquerywithouttypewalkerentry.md) | | +| [MediaQueryWithoutTypeWalkerParent](./media-query-list-parser.mediaquerywithouttypewalkerparent.md) | | +| [MediaQueryWithTypeWalkerEntry](./media-query-list-parser.mediaquerywithtypewalkerentry.md) | | +| [MediaQueryWithTypeWalkerParent](./media-query-list-parser.mediaquerywithtypewalkerparent.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand._constructor_.md new file mode 100644 index 000000000..4d7a3a7df --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand._constructor_.md @@ -0,0 +1,21 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [(constructor)](./media-query-list-parser.mediaand._constructor_.md) + +## MediaAnd.(constructor) + +Constructs a new instance of the `MediaAnd` class + +**Signature:** + +```typescript +constructor(modifier: Array, media: MediaInParens); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| modifier | Array<CSSToken> | | +| media | [MediaInParens](./media-query-list-parser.mediainparens.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.at.md new file mode 100644 index 000000000..307dc19bf --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [at](./media-query-list-parser.mediaand.at.md) + +## MediaAnd.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaInParens | null; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaInParens](./media-query-list-parser.mediainparens.md) \| null + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.indexof.md new file mode 100644 index 000000000..aa7a554b5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [indexOf](./media-query-list-parser.mediaand.indexof.md) + +## MediaAnd.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaInParens): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaInParens](./media-query-list-parser.mediainparens.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.ismediaand.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.ismediaand.md new file mode 100644 index 000000000..99aac855f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.ismediaand.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [isMediaAnd](./media-query-list-parser.mediaand.ismediaand.md) + +## MediaAnd.isMediaAnd() method + +**Signature:** + +```typescript +static isMediaAnd(x: unknown): x is MediaAnd; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaAnd](./media-query-list-parser.mediaand.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.md new file mode 100644 index 000000000..b27d08ce7 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.md @@ -0,0 +1,37 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) + +## MediaAnd class + +**Signature:** + +```typescript +export declare class MediaAnd +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(modifier, media)](./media-query-list-parser.mediaand._constructor_.md) | | Constructs a new instance of the MediaAnd class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [media](./media-query-list-parser.mediaand.media.md) | | [MediaInParens](./media-query-list-parser.mediainparens.md) | | +| [modifier](./media-query-list-parser.mediaand.modifier.md) | | Array<CSSToken> | | +| [type](./media-query-list-parser.mediaand.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediaand.at.md) | | | +| [indexOf(item)](./media-query-list-parser.mediaand.indexof.md) | | | +| [isMediaAnd(x)](./media-query-list-parser.mediaand.ismediaand.md) | static | | +| [tokens()](./media-query-list-parser.mediaand.tokens.md) | | | +| [toString()](./media-query-list-parser.mediaand.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediaand.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.media.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.media.md new file mode 100644 index 000000000..87398b1da --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.media.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [media](./media-query-list-parser.mediaand.media.md) + +## MediaAnd.media property + +**Signature:** + +```typescript +media: MediaInParens; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.modifier.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.modifier.md new file mode 100644 index 000000000..e09b7dbb6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.modifier.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [modifier](./media-query-list-parser.mediaand.modifier.md) + +## MediaAnd.modifier property + +**Signature:** + +```typescript +modifier: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.tokens.md new file mode 100644 index 000000000..ddcc74705 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [tokens](./media-query-list-parser.mediaand.tokens.md) + +## MediaAnd.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.tostring.md new file mode 100644 index 000000000..21ece64cc --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [toString](./media-query-list-parser.mediaand.tostring.md) + +## MediaAnd.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.type.md new file mode 100644 index 000000000..b881136b5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [type](./media-query-list-parser.mediaand.type.md) + +## MediaAnd.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.walk.md new file mode 100644 index 000000000..cf83c148b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaand.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAnd](./media-query-list-parser.mediaand.md) > [walk](./media-query-list-parser.mediaand.walk.md) + +## MediaAnd.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaAndWalkerEntry; + parent: MediaAndWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaAndWalkerEntry](./media-query-list-parser.mediaandwalkerentry.md); parent: [MediaAndWalkerParent](./media-query-list-parser.mediaandwalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaandwalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaandwalkerentry.md new file mode 100644 index 000000000..0f7e3f37f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaandwalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAndWalkerEntry](./media-query-list-parser.mediaandwalkerentry.md) + +## MediaAndWalkerEntry type + +**Signature:** + +```typescript +export type MediaAndWalkerEntry = MediaInParensWalkerEntry | MediaInParens; +``` +**References:** [MediaInParensWalkerEntry](./media-query-list-parser.mediainparenswalkerentry.md), [MediaInParens](./media-query-list-parser.mediainparens.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaandwalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaandwalkerparent.md new file mode 100644 index 000000000..c349530a4 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaandwalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaAndWalkerParent](./media-query-list-parser.mediaandwalkerparent.md) + +## MediaAndWalkerParent type + +**Signature:** + +```typescript +export type MediaAndWalkerParent = MediaInParensWalkerParent | MediaAnd; +``` +**References:** [MediaInParensWalkerParent](./media-query-list-parser.mediainparenswalkerparent.md), [MediaAnd](./media-query-list-parser.mediaand.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition._constructor_.md new file mode 100644 index 000000000..9c20a8f23 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition._constructor_.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) > [(constructor)](./media-query-list-parser.mediacondition._constructor_.md) + +## MediaCondition.(constructor) + +Constructs a new instance of the `MediaCondition` class + +**Signature:** + +```typescript +constructor(media: MediaNot | MediaInParens | MediaConditionListWithAnd | MediaConditionListWithOr); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| media | [MediaNot](./media-query-list-parser.medianot.md) \| [MediaInParens](./media-query-list-parser.mediainparens.md) \| [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) \| [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.at.md new file mode 100644 index 000000000..528f5d3bb --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) > [at](./media-query-list-parser.mediacondition.at.md) + +## MediaCondition.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaNot | MediaInParens | MediaConditionListWithAnd | MediaConditionListWithOr | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaNot](./media-query-list-parser.medianot.md) \| [MediaInParens](./media-query-list-parser.mediainparens.md) \| [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) \| [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.indexof.md new file mode 100644 index 000000000..24b5c92d4 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) > [indexOf](./media-query-list-parser.mediacondition.indexof.md) + +## MediaCondition.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaNot | MediaInParens | MediaConditionListWithAnd | MediaConditionListWithOr): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaNot](./media-query-list-parser.medianot.md) \| [MediaInParens](./media-query-list-parser.mediainparens.md) \| [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) \| [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.ismediacondition.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.ismediacondition.md new file mode 100644 index 000000000..96ec3d716 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.ismediacondition.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) > [isMediaCondition](./media-query-list-parser.mediacondition.ismediacondition.md) + +## MediaCondition.isMediaCondition() method + +**Signature:** + +```typescript +static isMediaCondition(x: unknown): x is MediaCondition; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaCondition](./media-query-list-parser.mediacondition.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.md new file mode 100644 index 000000000..ca040a760 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.md @@ -0,0 +1,36 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) + +## MediaCondition class + +**Signature:** + +```typescript +export declare class MediaCondition +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(media)](./media-query-list-parser.mediacondition._constructor_.md) | | Constructs a new instance of the MediaCondition class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [media](./media-query-list-parser.mediacondition.media.md) | | [MediaNot](./media-query-list-parser.medianot.md) \| [MediaInParens](./media-query-list-parser.mediainparens.md) \| [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) \| [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) | | +| [type](./media-query-list-parser.mediacondition.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediacondition.at.md) | | | +| [indexOf(item)](./media-query-list-parser.mediacondition.indexof.md) | | | +| [isMediaCondition(x)](./media-query-list-parser.mediacondition.ismediacondition.md) | static | | +| [tokens()](./media-query-list-parser.mediacondition.tokens.md) | | | +| [toString()](./media-query-list-parser.mediacondition.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediacondition.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.media.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.media.md new file mode 100644 index 000000000..6754a6e1b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.media.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) > [media](./media-query-list-parser.mediacondition.media.md) + +## MediaCondition.media property + +**Signature:** + +```typescript +media: MediaNot | MediaInParens | MediaConditionListWithAnd | MediaConditionListWithOr; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.tokens.md new file mode 100644 index 000000000..eda0c9783 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) > [tokens](./media-query-list-parser.mediacondition.tokens.md) + +## MediaCondition.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.tostring.md new file mode 100644 index 000000000..e63d8b75e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) > [toString](./media-query-list-parser.mediacondition.tostring.md) + +## MediaCondition.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.type.md new file mode 100644 index 000000000..c3fe39d16 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) > [type](./media-query-list-parser.mediacondition.type.md) + +## MediaCondition.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.walk.md new file mode 100644 index 000000000..183470cda --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediacondition.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaCondition](./media-query-list-parser.mediacondition.md) > [walk](./media-query-list-parser.mediacondition.walk.md) + +## MediaCondition.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaConditionWalkerEntry; + parent: MediaConditionWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaConditionWalkerEntry](./media-query-list-parser.mediaconditionwalkerentry.md); parent: [MediaConditionWalkerParent](./media-query-list-parser.mediaconditionwalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlist.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlist.md new file mode 100644 index 000000000..5b98f29c1 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlist.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionList](./media-query-list-parser.mediaconditionlist.md) + +## MediaConditionList type + +**Signature:** + +```typescript +export type MediaConditionList = MediaConditionListWithAnd | MediaConditionListWithOr; +``` +**References:** [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md), [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand._constructor_.md new file mode 100644 index 000000000..a39895585 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand._constructor_.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [(constructor)](./media-query-list-parser.mediaconditionlistwithand._constructor_.md) + +## MediaConditionListWithAnd.(constructor) + +Constructs a new instance of the `MediaConditionListWithAnd` class + +**Signature:** + +```typescript +constructor(leading: MediaInParens, list: Array, before?: Array, after?: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| leading | [MediaInParens](./media-query-list-parser.mediainparens.md) | | +| list | Array<[MediaAnd](./media-query-list-parser.mediaand.md)> | | +| before | Array<CSSToken> | _(Optional)_ | +| after | Array<CSSToken> | _(Optional)_ | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.after.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.after.md new file mode 100644 index 000000000..cbedd41f9 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.after.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [after](./media-query-list-parser.mediaconditionlistwithand.after.md) + +## MediaConditionListWithAnd.after property + +**Signature:** + +```typescript +after: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.at.md new file mode 100644 index 000000000..978f5c51f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [at](./media-query-list-parser.mediaconditionlistwithand.at.md) + +## MediaConditionListWithAnd.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaInParens | MediaAnd | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaInParens](./media-query-list-parser.mediainparens.md) \| [MediaAnd](./media-query-list-parser.mediaand.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.before.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.before.md new file mode 100644 index 000000000..6e5a8b804 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.before.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [before](./media-query-list-parser.mediaconditionlistwithand.before.md) + +## MediaConditionListWithAnd.before property + +**Signature:** + +```typescript +before: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.indexof.md new file mode 100644 index 000000000..8c9654646 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [indexOf](./media-query-list-parser.mediaconditionlistwithand.indexof.md) + +## MediaConditionListWithAnd.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaInParens | MediaAnd): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaInParens](./media-query-list-parser.mediainparens.md) \| [MediaAnd](./media-query-list-parser.mediaand.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.ismediaconditionlistwithand.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.ismediaconditionlistwithand.md new file mode 100644 index 000000000..ffbdf7104 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.ismediaconditionlistwithand.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [isMediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.ismediaconditionlistwithand.md) + +## MediaConditionListWithAnd.isMediaConditionListWithAnd() method + +**Signature:** + +```typescript +static isMediaConditionListWithAnd(x: unknown): x is MediaConditionListWithAnd; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.leading.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.leading.md new file mode 100644 index 000000000..a3076f52d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.leading.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [leading](./media-query-list-parser.mediaconditionlistwithand.leading.md) + +## MediaConditionListWithAnd.leading property + +**Signature:** + +```typescript +leading: MediaInParens; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.list.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.list.md new file mode 100644 index 000000000..3230dbfce --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.list.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [list](./media-query-list-parser.mediaconditionlistwithand.list.md) + +## MediaConditionListWithAnd.list property + +**Signature:** + +```typescript +list: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.md new file mode 100644 index 000000000..9734bc9b5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.md @@ -0,0 +1,41 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) + +## MediaConditionListWithAnd class + +**Signature:** + +```typescript +export declare class MediaConditionListWithAnd +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(leading, list, before, after)](./media-query-list-parser.mediaconditionlistwithand._constructor_.md) | | Constructs a new instance of the MediaConditionListWithAnd class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [after](./media-query-list-parser.mediaconditionlistwithand.after.md) | | Array<CSSToken> | | +| [before](./media-query-list-parser.mediaconditionlistwithand.before.md) | | Array<CSSToken> | | +| [leading](./media-query-list-parser.mediaconditionlistwithand.leading.md) | | [MediaInParens](./media-query-list-parser.mediainparens.md) | | +| [list](./media-query-list-parser.mediaconditionlistwithand.list.md) | | Array<[MediaAnd](./media-query-list-parser.mediaand.md)> | | +| [type](./media-query-list-parser.mediaconditionlistwithand.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediaconditionlistwithand.at.md) | | | +| [indexOf(item)](./media-query-list-parser.mediaconditionlistwithand.indexof.md) | | | +| [isMediaConditionListWithAnd()](./media-query-list-parser.mediaconditionlistwithand.ismediaconditionlistwithand.md) | | | +| [isMediaConditionListWithAnd(x)](./media-query-list-parser.mediaconditionlistwithand.ismediaconditionlistwithand.md) | static | | +| [toJSON()](./media-query-list-parser.mediaconditionlistwithand.tojson.md) | | | +| [tokens()](./media-query-list-parser.mediaconditionlistwithand.tokens.md) | | | +| [toString()](./media-query-list-parser.mediaconditionlistwithand.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediaconditionlistwithand.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.tojson.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.tojson.md new file mode 100644 index 000000000..3c9d4364d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.tojson.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [toJSON](./media-query-list-parser.mediaconditionlistwithand.tojson.md) + +## MediaConditionListWithAnd.toJSON() method + +**Signature:** + +```typescript +toJSON(): unknown; +``` +**Returns:** + +unknown + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.tokens.md new file mode 100644 index 000000000..144245ede --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [tokens](./media-query-list-parser.mediaconditionlistwithand.tokens.md) + +## MediaConditionListWithAnd.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.tostring.md new file mode 100644 index 000000000..1f5fa5a68 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [toString](./media-query-list-parser.mediaconditionlistwithand.tostring.md) + +## MediaConditionListWithAnd.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.type.md new file mode 100644 index 000000000..6a1af5d46 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [type](./media-query-list-parser.mediaconditionlistwithand.type.md) + +## MediaConditionListWithAnd.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.walk.md new file mode 100644 index 000000000..daf45d846 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithand.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) > [walk](./media-query-list-parser.mediaconditionlistwithand.walk.md) + +## MediaConditionListWithAnd.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaConditionListWithAndWalkerEntry; + parent: MediaConditionListWithAndWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaConditionListWithAndWalkerEntry](./media-query-list-parser.mediaconditionlistwithandwalkerentry.md); parent: [MediaConditionListWithAndWalkerParent](./media-query-list-parser.mediaconditionlistwithandwalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithandwalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithandwalkerentry.md new file mode 100644 index 000000000..712ad41f1 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithandwalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAndWalkerEntry](./media-query-list-parser.mediaconditionlistwithandwalkerentry.md) + +## MediaConditionListWithAndWalkerEntry type + +**Signature:** + +```typescript +export type MediaConditionListWithAndWalkerEntry = MediaAndWalkerEntry | MediaAnd; +``` +**References:** [MediaAndWalkerEntry](./media-query-list-parser.mediaandwalkerentry.md), [MediaAnd](./media-query-list-parser.mediaand.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithandwalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithandwalkerparent.md new file mode 100644 index 000000000..cea81fe8d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithandwalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithAndWalkerParent](./media-query-list-parser.mediaconditionlistwithandwalkerparent.md) + +## MediaConditionListWithAndWalkerParent type + +**Signature:** + +```typescript +export type MediaConditionListWithAndWalkerParent = MediaAndWalkerParent | MediaConditionListWithAnd; +``` +**References:** [MediaAndWalkerParent](./media-query-list-parser.mediaandwalkerparent.md), [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor._constructor_.md new file mode 100644 index 000000000..2cf7cc81c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor._constructor_.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [(constructor)](./media-query-list-parser.mediaconditionlistwithor._constructor_.md) + +## MediaConditionListWithOr.(constructor) + +Constructs a new instance of the `MediaConditionListWithOr` class + +**Signature:** + +```typescript +constructor(leading: MediaInParens, list: Array, before?: Array, after?: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| leading | [MediaInParens](./media-query-list-parser.mediainparens.md) | | +| list | Array<[MediaOr](./media-query-list-parser.mediaor.md)> | | +| before | Array<CSSToken> | _(Optional)_ | +| after | Array<CSSToken> | _(Optional)_ | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.after.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.after.md new file mode 100644 index 000000000..feabe5eab --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.after.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [after](./media-query-list-parser.mediaconditionlistwithor.after.md) + +## MediaConditionListWithOr.after property + +**Signature:** + +```typescript +after: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.at.md new file mode 100644 index 000000000..cf5ece575 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [at](./media-query-list-parser.mediaconditionlistwithor.at.md) + +## MediaConditionListWithOr.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaInParens | MediaOr | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaInParens](./media-query-list-parser.mediainparens.md) \| [MediaOr](./media-query-list-parser.mediaor.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.before.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.before.md new file mode 100644 index 000000000..f5a69a0cd --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.before.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [before](./media-query-list-parser.mediaconditionlistwithor.before.md) + +## MediaConditionListWithOr.before property + +**Signature:** + +```typescript +before: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.indexof.md new file mode 100644 index 000000000..44f4fab27 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [indexOf](./media-query-list-parser.mediaconditionlistwithor.indexof.md) + +## MediaConditionListWithOr.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaInParens | MediaOr): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaInParens](./media-query-list-parser.mediainparens.md) \| [MediaOr](./media-query-list-parser.mediaor.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.ismediaconditionlistwithor.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.ismediaconditionlistwithor.md new file mode 100644 index 000000000..f59e033cf --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.ismediaconditionlistwithor.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [isMediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.ismediaconditionlistwithor.md) + +## MediaConditionListWithOr.isMediaConditionListWithOr() method + +**Signature:** + +```typescript +static isMediaConditionListWithOr(x: unknown): x is MediaConditionListWithOr; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.leading.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.leading.md new file mode 100644 index 000000000..795fa9274 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.leading.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [leading](./media-query-list-parser.mediaconditionlistwithor.leading.md) + +## MediaConditionListWithOr.leading property + +**Signature:** + +```typescript +leading: MediaInParens; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.list.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.list.md new file mode 100644 index 000000000..a10f007b2 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.list.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [list](./media-query-list-parser.mediaconditionlistwithor.list.md) + +## MediaConditionListWithOr.list property + +**Signature:** + +```typescript +list: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.md new file mode 100644 index 000000000..9c320039e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.md @@ -0,0 +1,39 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) + +## MediaConditionListWithOr class + +**Signature:** + +```typescript +export declare class MediaConditionListWithOr +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(leading, list, before, after)](./media-query-list-parser.mediaconditionlistwithor._constructor_.md) | | Constructs a new instance of the MediaConditionListWithOr class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [after](./media-query-list-parser.mediaconditionlistwithor.after.md) | | Array<CSSToken> | | +| [before](./media-query-list-parser.mediaconditionlistwithor.before.md) | | Array<CSSToken> | | +| [leading](./media-query-list-parser.mediaconditionlistwithor.leading.md) | | [MediaInParens](./media-query-list-parser.mediainparens.md) | | +| [list](./media-query-list-parser.mediaconditionlistwithor.list.md) | | Array<[MediaOr](./media-query-list-parser.mediaor.md)> | | +| [type](./media-query-list-parser.mediaconditionlistwithor.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediaconditionlistwithor.at.md) | | | +| [indexOf(item)](./media-query-list-parser.mediaconditionlistwithor.indexof.md) | | | +| [isMediaConditionListWithOr(x)](./media-query-list-parser.mediaconditionlistwithor.ismediaconditionlistwithor.md) | static | | +| [tokens()](./media-query-list-parser.mediaconditionlistwithor.tokens.md) | | | +| [toString()](./media-query-list-parser.mediaconditionlistwithor.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediaconditionlistwithor.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.tokens.md new file mode 100644 index 000000000..089b6fa89 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [tokens](./media-query-list-parser.mediaconditionlistwithor.tokens.md) + +## MediaConditionListWithOr.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.tostring.md new file mode 100644 index 000000000..900ca4276 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [toString](./media-query-list-parser.mediaconditionlistwithor.tostring.md) + +## MediaConditionListWithOr.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.type.md new file mode 100644 index 000000000..cf4322360 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [type](./media-query-list-parser.mediaconditionlistwithor.type.md) + +## MediaConditionListWithOr.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.walk.md new file mode 100644 index 000000000..4eec79c88 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithor.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) > [walk](./media-query-list-parser.mediaconditionlistwithor.walk.md) + +## MediaConditionListWithOr.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaConditionListWithOrWalkerEntry; + parent: MediaConditionListWithOrWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaConditionListWithOrWalkerEntry](./media-query-list-parser.mediaconditionlistwithorwalkerentry.md); parent: [MediaConditionListWithOrWalkerParent](./media-query-list-parser.mediaconditionlistwithorwalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithorwalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithorwalkerentry.md new file mode 100644 index 000000000..536868669 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithorwalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOrWalkerEntry](./media-query-list-parser.mediaconditionlistwithorwalkerentry.md) + +## MediaConditionListWithOrWalkerEntry type + +**Signature:** + +```typescript +export type MediaConditionListWithOrWalkerEntry = MediaOrWalkerEntry | MediaOr; +``` +**References:** [MediaOrWalkerEntry](./media-query-list-parser.mediaorwalkerentry.md), [MediaOr](./media-query-list-parser.mediaor.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithorwalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithorwalkerparent.md new file mode 100644 index 000000000..8814c29ef --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionlistwithorwalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionListWithOrWalkerParent](./media-query-list-parser.mediaconditionlistwithorwalkerparent.md) + +## MediaConditionListWithOrWalkerParent type + +**Signature:** + +```typescript +export type MediaConditionListWithOrWalkerParent = MediaOrWalkerParent | MediaConditionListWithOr; +``` +**References:** [MediaOrWalkerParent](./media-query-list-parser.mediaorwalkerparent.md), [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionwalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionwalkerentry.md new file mode 100644 index 000000000..eb10f2265 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionwalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionWalkerEntry](./media-query-list-parser.mediaconditionwalkerentry.md) + +## MediaConditionWalkerEntry type + +**Signature:** + +```typescript +export type MediaConditionWalkerEntry = MediaNotWalkerEntry | MediaConditionListWithAndWalkerEntry | MediaConditionListWithOrWalkerEntry | MediaNot | MediaConditionListWithAnd | MediaConditionListWithOr; +``` +**References:** [MediaNotWalkerEntry](./media-query-list-parser.medianotwalkerentry.md), [MediaConditionListWithAndWalkerEntry](./media-query-list-parser.mediaconditionlistwithandwalkerentry.md), [MediaConditionListWithOrWalkerEntry](./media-query-list-parser.mediaconditionlistwithorwalkerentry.md), [MediaNot](./media-query-list-parser.medianot.md), [MediaConditionListWithAnd](./media-query-list-parser.mediaconditionlistwithand.md), [MediaConditionListWithOr](./media-query-list-parser.mediaconditionlistwithor.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionwalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionwalkerparent.md new file mode 100644 index 000000000..dae74a653 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaconditionwalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaConditionWalkerParent](./media-query-list-parser.mediaconditionwalkerparent.md) + +## MediaConditionWalkerParent type + +**Signature:** + +```typescript +export type MediaConditionWalkerParent = MediaNotWalkerParent | MediaConditionListWithAndWalkerParent | MediaConditionListWithOrWalkerParent | MediaCondition; +``` +**References:** [MediaNotWalkerParent](./media-query-list-parser.medianotwalkerparent.md), [MediaConditionListWithAndWalkerParent](./media-query-list-parser.mediaconditionlistwithandwalkerparent.md), [MediaConditionListWithOrWalkerParent](./media-query-list-parser.mediaconditionlistwithorwalkerparent.md), [MediaCondition](./media-query-list-parser.mediacondition.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature._constructor_.md new file mode 100644 index 000000000..74afde36e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [(constructor)](./media-query-list-parser.mediafeature._constructor_.md) + +## MediaFeature.(constructor) + +Constructs a new instance of the `MediaFeature` class + +**Signature:** + +```typescript +constructor(feature: MediaFeaturePlain | MediaFeatureBoolean | MediaFeatureRange, before?: Array, after?: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| feature | [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) \| [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) \| [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md) | | +| before | Array<CSSToken> | _(Optional)_ | +| after | Array<CSSToken> | _(Optional)_ | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.after.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.after.md new file mode 100644 index 000000000..6f98c728a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.after.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [after](./media-query-list-parser.mediafeature.after.md) + +## MediaFeature.after property + +**Signature:** + +```typescript +after: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.at.md new file mode 100644 index 000000000..9b047cce6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [at](./media-query-list-parser.mediafeature.at.md) + +## MediaFeature.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaFeatureBoolean | MediaFeaturePlain | MediaFeatureRange | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) \| [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) \| [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.before.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.before.md new file mode 100644 index 000000000..dd0f81ea2 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.before.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [before](./media-query-list-parser.mediafeature.before.md) + +## MediaFeature.before property + +**Signature:** + +```typescript +before: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.feature.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.feature.md new file mode 100644 index 000000000..ba9a6e230 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.feature.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [feature](./media-query-list-parser.mediafeature.feature.md) + +## MediaFeature.feature property + +**Signature:** + +```typescript +feature: MediaFeaturePlain | MediaFeatureBoolean | MediaFeatureRange; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.getname.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.getname.md new file mode 100644 index 000000000..0170ccb88 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.getname.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [getName](./media-query-list-parser.mediafeature.getname.md) + +## MediaFeature.getName() method + +**Signature:** + +```typescript +getName(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.getnametoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.getnametoken.md new file mode 100644 index 000000000..b9632e99a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.getnametoken.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [getNameToken](./media-query-list-parser.mediafeature.getnametoken.md) + +## MediaFeature.getNameToken() method + +**Signature:** + +```typescript +getNameToken(): CSSToken; +``` +**Returns:** + +CSSToken + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.indexof.md new file mode 100644 index 000000000..0eafcf9d3 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [indexOf](./media-query-list-parser.mediafeature.indexof.md) + +## MediaFeature.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaFeaturePlain | MediaFeatureBoolean | MediaFeatureRange): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) \| [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) \| [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.ismediafeature.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.ismediafeature.md new file mode 100644 index 000000000..b76f03ff2 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.ismediafeature.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [isMediaFeature](./media-query-list-parser.mediafeature.ismediafeature.md) + +## MediaFeature.isMediaFeature() method + +**Signature:** + +```typescript +static isMediaFeature(x: unknown): x is MediaFeature; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeature](./media-query-list-parser.mediafeature.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.md new file mode 100644 index 000000000..1e79bf015 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.md @@ -0,0 +1,40 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) + +## MediaFeature class + +**Signature:** + +```typescript +export declare class MediaFeature +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(feature, before, after)](./media-query-list-parser.mediafeature._constructor_.md) | | Constructs a new instance of the MediaFeature class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [after](./media-query-list-parser.mediafeature.after.md) | | Array<CSSToken> | | +| [before](./media-query-list-parser.mediafeature.before.md) | | Array<CSSToken> | | +| [feature](./media-query-list-parser.mediafeature.feature.md) | | [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) \| [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) \| [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md) | | +| [type](./media-query-list-parser.mediafeature.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediafeature.at.md) | | | +| [getName()](./media-query-list-parser.mediafeature.getname.md) | | | +| [getNameToken()](./media-query-list-parser.mediafeature.getnametoken.md) | | | +| [indexOf(item)](./media-query-list-parser.mediafeature.indexof.md) | | | +| [isMediaFeature(x)](./media-query-list-parser.mediafeature.ismediafeature.md) | static | | +| [tokens()](./media-query-list-parser.mediafeature.tokens.md) | | | +| [toString()](./media-query-list-parser.mediafeature.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediafeature.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.tokens.md new file mode 100644 index 000000000..544826fe6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [tokens](./media-query-list-parser.mediafeature.tokens.md) + +## MediaFeature.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.tostring.md new file mode 100644 index 000000000..831389a68 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [toString](./media-query-list-parser.mediafeature.tostring.md) + +## MediaFeature.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.type.md new file mode 100644 index 000000000..9de58be1e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [type](./media-query-list-parser.mediafeature.type.md) + +## MediaFeature.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.walk.md new file mode 100644 index 000000000..970b1d1d0 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeature.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeature](./media-query-list-parser.mediafeature.md) > [walk](./media-query-list-parser.mediafeature.walk.md) + +## MediaFeature.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaFeatureWalkerEntry; + parent: MediaFeatureWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaFeatureWalkerEntry](./media-query-list-parser.mediafeaturewalkerentry.md); parent: [MediaFeatureWalkerParent](./media-query-list-parser.mediafeaturewalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean._constructor_.md new file mode 100644 index 000000000..60ebc3649 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean._constructor_.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [(constructor)](./media-query-list-parser.mediafeatureboolean._constructor_.md) + +## MediaFeatureBoolean.(constructor) + +Constructs a new instance of the `MediaFeatureBoolean` class + +**Signature:** + +```typescript +constructor(name: MediaFeatureName); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.at.md new file mode 100644 index 000000000..e8b5716cd --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [at](./media-query-list-parser.mediafeatureboolean.at.md) + +## MediaFeatureBoolean.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaFeatureName | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaFeatureName](./media-query-list-parser.mediafeaturename.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.getname.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.getname.md new file mode 100644 index 000000000..28ffefd57 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.getname.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [getName](./media-query-list-parser.mediafeatureboolean.getname.md) + +## MediaFeatureBoolean.getName() method + +**Signature:** + +```typescript +getName(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.getnametoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.getnametoken.md new file mode 100644 index 000000000..da0dc9b55 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.getnametoken.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [getNameToken](./media-query-list-parser.mediafeatureboolean.getnametoken.md) + +## MediaFeatureBoolean.getNameToken() method + +**Signature:** + +```typescript +getNameToken(): CSSToken; +``` +**Returns:** + +CSSToken + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.indexof.md new file mode 100644 index 000000000..d4676f6c3 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [indexOf](./media-query-list-parser.mediafeatureboolean.indexof.md) + +## MediaFeatureBoolean.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaFeatureName): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.ismediafeatureboolean.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.ismediafeatureboolean.md new file mode 100644 index 000000000..554ba3b5b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.ismediafeatureboolean.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [isMediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.ismediafeatureboolean.md) + +## MediaFeatureBoolean.isMediaFeatureBoolean() method + +**Signature:** + +```typescript +static isMediaFeatureBoolean(x: unknown): x is MediaFeatureBoolean; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.md new file mode 100644 index 000000000..4eb30278b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.md @@ -0,0 +1,37 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) + +## MediaFeatureBoolean class + +**Signature:** + +```typescript +export declare class MediaFeatureBoolean +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(name)](./media-query-list-parser.mediafeatureboolean._constructor_.md) | | Constructs a new instance of the MediaFeatureBoolean class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [name](./media-query-list-parser.mediafeatureboolean.name.md) | | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| [type](./media-query-list-parser.mediafeatureboolean.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediafeatureboolean.at.md) | | | +| [getName()](./media-query-list-parser.mediafeatureboolean.getname.md) | | | +| [getNameToken()](./media-query-list-parser.mediafeatureboolean.getnametoken.md) | | | +| [indexOf(item)](./media-query-list-parser.mediafeatureboolean.indexof.md) | | | +| [isMediaFeatureBoolean(x)](./media-query-list-parser.mediafeatureboolean.ismediafeatureboolean.md) | static | | +| [tokens()](./media-query-list-parser.mediafeatureboolean.tokens.md) | | | +| [toString()](./media-query-list-parser.mediafeatureboolean.tostring.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.name.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.name.md new file mode 100644 index 000000000..0249d5997 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.name.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [name](./media-query-list-parser.mediafeatureboolean.name.md) + +## MediaFeatureBoolean.name property + +**Signature:** + +```typescript +name: MediaFeatureName; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.tokens.md new file mode 100644 index 000000000..b17abad79 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [tokens](./media-query-list-parser.mediafeatureboolean.tokens.md) + +## MediaFeatureBoolean.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.tostring.md new file mode 100644 index 000000000..c3a04bcce --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [toString](./media-query-list-parser.mediafeatureboolean.tostring.md) + +## MediaFeatureBoolean.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.type.md new file mode 100644 index 000000000..61d7a6f13 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureboolean.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md) > [type](./media-query-list-parser.mediafeatureboolean.type.md) + +## MediaFeatureBoolean.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturecomparison.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturecomparison.md new file mode 100644 index 000000000..20b271162 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturecomparison.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureComparison](./media-query-list-parser.mediafeaturecomparison.md) + +## MediaFeatureComparison type + +**Signature:** + +```typescript +export type MediaFeatureComparison = MediaFeatureLT | MediaFeatureGT | MediaFeatureEQ; +``` +**References:** [MediaFeatureLT](./media-query-list-parser.mediafeaturelt.md), [MediaFeatureGT](./media-query-list-parser.mediafeaturegt.md), [MediaFeatureEQ](./media-query-list-parser.mediafeatureeq.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureeq.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureeq.md new file mode 100644 index 000000000..5d646772e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureeq.md @@ -0,0 +1,18 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureEQ](./media-query-list-parser.mediafeatureeq.md) + +## MediaFeatureEQ enum + +**Signature:** + +```typescript +export declare enum MediaFeatureEQ +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| EQ | "=" | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturegt.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturegt.md new file mode 100644 index 000000000..1e29a3784 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturegt.md @@ -0,0 +1,19 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureGT](./media-query-list-parser.mediafeaturegt.md) + +## MediaFeatureGT enum + +**Signature:** + +```typescript +export declare enum MediaFeatureGT +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| GT | ">" | | +| GT\_OR\_EQ | ">=" | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturelt.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturelt.md new file mode 100644 index 000000000..e08affdab --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturelt.md @@ -0,0 +1,19 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureLT](./media-query-list-parser.mediafeaturelt.md) + +## MediaFeatureLT enum + +**Signature:** + +```typescript +export declare enum MediaFeatureLT +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| LT | "<" | | +| LT\_OR\_EQ | "<=" | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename._constructor_.md new file mode 100644 index 000000000..05892e71e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [(constructor)](./media-query-list-parser.mediafeaturename._constructor_.md) + +## MediaFeatureName.(constructor) + +Constructs a new instance of the `MediaFeatureName` class + +**Signature:** + +```typescript +constructor(name: ComponentValue, before?: Array, after?: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | ComponentValue | | +| before | Array<CSSToken> | _(Optional)_ | +| after | Array<CSSToken> | _(Optional)_ | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.after.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.after.md new file mode 100644 index 000000000..8cbc026da --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.after.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [after](./media-query-list-parser.mediafeaturename.after.md) + +## MediaFeatureName.after property + +**Signature:** + +```typescript +after: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.at.md new file mode 100644 index 000000000..24d843997 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [at](./media-query-list-parser.mediafeaturename.at.md) + +## MediaFeatureName.at() method + +**Signature:** + +```typescript +at(index: number | string): ComponentValue | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +ComponentValue \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.before.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.before.md new file mode 100644 index 000000000..8e24a6877 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.before.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [before](./media-query-list-parser.mediafeaturename.before.md) + +## MediaFeatureName.before property + +**Signature:** + +```typescript +before: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.getname.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.getname.md new file mode 100644 index 000000000..f92212ff7 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.getname.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [getName](./media-query-list-parser.mediafeaturename.getname.md) + +## MediaFeatureName.getName() method + +**Signature:** + +```typescript +getName(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.getnametoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.getnametoken.md new file mode 100644 index 000000000..5d87aee1e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.getnametoken.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [getNameToken](./media-query-list-parser.mediafeaturename.getnametoken.md) + +## MediaFeatureName.getNameToken() method + +**Signature:** + +```typescript +getNameToken(): CSSToken; +``` +**Returns:** + +CSSToken + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.indexof.md new file mode 100644 index 000000000..ea54df930 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [indexOf](./media-query-list-parser.mediafeaturename.indexof.md) + +## MediaFeatureName.indexOf() method + +**Signature:** + +```typescript +indexOf(item: ComponentValue): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | ComponentValue | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.ismediafeaturename.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.ismediafeaturename.md new file mode 100644 index 000000000..41b7c2d50 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.ismediafeaturename.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [isMediaFeatureName](./media-query-list-parser.mediafeaturename.ismediafeaturename.md) + +## MediaFeatureName.isMediaFeatureName() method + +**Signature:** + +```typescript +static isMediaFeatureName(x: unknown): x is MediaFeatureName; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.md new file mode 100644 index 000000000..a086b8ba2 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.md @@ -0,0 +1,39 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) + +## MediaFeatureName class + +**Signature:** + +```typescript +export declare class MediaFeatureName +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(name, before, after)](./media-query-list-parser.mediafeaturename._constructor_.md) | | Constructs a new instance of the MediaFeatureName class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [after](./media-query-list-parser.mediafeaturename.after.md) | | Array<CSSToken> | | +| [before](./media-query-list-parser.mediafeaturename.before.md) | | Array<CSSToken> | | +| [name](./media-query-list-parser.mediafeaturename.name.md) | | ComponentValue | | +| [type](./media-query-list-parser.mediafeaturename.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediafeaturename.at.md) | | | +| [getName()](./media-query-list-parser.mediafeaturename.getname.md) | | | +| [getNameToken()](./media-query-list-parser.mediafeaturename.getnametoken.md) | | | +| [indexOf(item)](./media-query-list-parser.mediafeaturename.indexof.md) | | | +| [isMediaFeatureName(x)](./media-query-list-parser.mediafeaturename.ismediafeaturename.md) | static | | +| [tokens()](./media-query-list-parser.mediafeaturename.tokens.md) | | | +| [toString()](./media-query-list-parser.mediafeaturename.tostring.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.name.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.name.md new file mode 100644 index 000000000..594c0bc88 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.name.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [name](./media-query-list-parser.mediafeaturename.name.md) + +## MediaFeatureName.name property + +**Signature:** + +```typescript +name: ComponentValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.tokens.md new file mode 100644 index 000000000..5f4a3fdee --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [tokens](./media-query-list-parser.mediafeaturename.tokens.md) + +## MediaFeatureName.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.tostring.md new file mode 100644 index 000000000..12445a073 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [toString](./media-query-list-parser.mediafeaturename.tostring.md) + +## MediaFeatureName.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.type.md new file mode 100644 index 000000000..c47eab3e5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturename.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) > [type](./media-query-list-parser.mediafeaturename.type.md) + +## MediaFeatureName.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain._constructor_.md new file mode 100644 index 000000000..8fe4ec827 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [(constructor)](./media-query-list-parser.mediafeatureplain._constructor_.md) + +## MediaFeaturePlain.(constructor) + +Constructs a new instance of the `MediaFeaturePlain` class + +**Signature:** + +```typescript +constructor(name: MediaFeatureName, colon: TokenColon, value: MediaFeatureValue); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| colon | TokenColon | | +| value | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.at.md new file mode 100644 index 000000000..c6a544e59 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [at](./media-query-list-parser.mediafeatureplain.at.md) + +## MediaFeaturePlain.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaFeatureName | MediaFeatureValue | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaFeatureName](./media-query-list-parser.mediafeaturename.md) \| [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.colon.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.colon.md new file mode 100644 index 000000000..42ffae040 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.colon.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [colon](./media-query-list-parser.mediafeatureplain.colon.md) + +## MediaFeaturePlain.colon property + +**Signature:** + +```typescript +colon: TokenColon; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.getname.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.getname.md new file mode 100644 index 000000000..6242ebeaf --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.getname.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [getName](./media-query-list-parser.mediafeatureplain.getname.md) + +## MediaFeaturePlain.getName() method + +**Signature:** + +```typescript +getName(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.getnametoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.getnametoken.md new file mode 100644 index 000000000..618eafa49 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.getnametoken.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [getNameToken](./media-query-list-parser.mediafeatureplain.getnametoken.md) + +## MediaFeaturePlain.getNameToken() method + +**Signature:** + +```typescript +getNameToken(): CSSToken; +``` +**Returns:** + +CSSToken + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.indexof.md new file mode 100644 index 000000000..3aa723e03 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [indexOf](./media-query-list-parser.mediafeatureplain.indexof.md) + +## MediaFeaturePlain.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaFeatureName | MediaFeatureValue): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) \| [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.ismediafeatureplain.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.ismediafeatureplain.md new file mode 100644 index 000000000..9cbe5a5c3 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.ismediafeatureplain.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [isMediaFeaturePlain](./media-query-list-parser.mediafeatureplain.ismediafeatureplain.md) + +## MediaFeaturePlain.isMediaFeaturePlain() method + +**Signature:** + +```typescript +static isMediaFeaturePlain(x: unknown): x is MediaFeaturePlain; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.md new file mode 100644 index 000000000..f774d06c0 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.md @@ -0,0 +1,40 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) + +## MediaFeaturePlain class + +**Signature:** + +```typescript +export declare class MediaFeaturePlain +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(name, colon, value)](./media-query-list-parser.mediafeatureplain._constructor_.md) | | Constructs a new instance of the MediaFeaturePlain class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [colon](./media-query-list-parser.mediafeatureplain.colon.md) | | TokenColon | | +| [name](./media-query-list-parser.mediafeatureplain.name.md) | | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| [type](./media-query-list-parser.mediafeatureplain.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | +| [value](./media-query-list-parser.mediafeatureplain.value.md) | | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediafeatureplain.at.md) | | | +| [getName()](./media-query-list-parser.mediafeatureplain.getname.md) | | | +| [getNameToken()](./media-query-list-parser.mediafeatureplain.getnametoken.md) | | | +| [indexOf(item)](./media-query-list-parser.mediafeatureplain.indexof.md) | | | +| [isMediaFeaturePlain(x)](./media-query-list-parser.mediafeatureplain.ismediafeatureplain.md) | static | | +| [tokens()](./media-query-list-parser.mediafeatureplain.tokens.md) | | | +| [toString()](./media-query-list-parser.mediafeatureplain.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediafeatureplain.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.name.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.name.md new file mode 100644 index 000000000..61de0eb44 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.name.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [name](./media-query-list-parser.mediafeatureplain.name.md) + +## MediaFeaturePlain.name property + +**Signature:** + +```typescript +name: MediaFeatureName; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.tokens.md new file mode 100644 index 000000000..8e5f042a6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [tokens](./media-query-list-parser.mediafeatureplain.tokens.md) + +## MediaFeaturePlain.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.tostring.md new file mode 100644 index 000000000..3c3f32d6d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [toString](./media-query-list-parser.mediafeatureplain.tostring.md) + +## MediaFeaturePlain.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.type.md new file mode 100644 index 000000000..6f45b68c9 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [type](./media-query-list-parser.mediafeatureplain.type.md) + +## MediaFeaturePlain.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.value.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.value.md new file mode 100644 index 000000000..45b27b29c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.value.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [value](./media-query-list-parser.mediafeatureplain.value.md) + +## MediaFeaturePlain.value property + +**Signature:** + +```typescript +value: MediaFeatureValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.walk.md new file mode 100644 index 000000000..963ff25b5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplain.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) > [walk](./media-query-list-parser.mediafeatureplain.walk.md) + +## MediaFeaturePlain.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaFeaturePlainWalkerEntry; + parent: MediaFeaturePlainWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaFeaturePlainWalkerEntry](./media-query-list-parser.mediafeatureplainwalkerentry.md); parent: [MediaFeaturePlainWalkerParent](./media-query-list-parser.mediafeatureplainwalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplainwalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplainwalkerentry.md new file mode 100644 index 000000000..948d1c0dd --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplainwalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlainWalkerEntry](./media-query-list-parser.mediafeatureplainwalkerentry.md) + +## MediaFeaturePlainWalkerEntry type + +**Signature:** + +```typescript +export type MediaFeaturePlainWalkerEntry = MediaFeatureValueWalkerEntry | MediaFeatureValue; +``` +**References:** [MediaFeatureValueWalkerEntry](./media-query-list-parser.mediafeaturevaluewalkerentry.md), [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplainwalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplainwalkerparent.md new file mode 100644 index 000000000..ccc1f8e66 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeatureplainwalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeaturePlainWalkerParent](./media-query-list-parser.mediafeatureplainwalkerparent.md) + +## MediaFeaturePlainWalkerParent type + +**Signature:** + +```typescript +export type MediaFeaturePlainWalkerParent = MediaFeatureValueWalkerParent | MediaFeaturePlain; +``` +**References:** [MediaFeatureValueWalkerParent](./media-query-list-parser.mediafeaturevaluewalkerparent.md), [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerange.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerange.md new file mode 100644 index 000000000..a756f2cf4 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerange.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md) + +## MediaFeatureRange type + +**Signature:** + +```typescript +export type MediaFeatureRange = MediaFeatureRangeNameValue | MediaFeatureRangeValueName | MediaFeatureRangeValueNameValue; +``` +**References:** [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md), [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md), [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue._constructor_.md new file mode 100644 index 000000000..7ef3bd4c6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [(constructor)](./media-query-list-parser.mediafeaturerangenamevalue._constructor_.md) + +## MediaFeatureRangeNameValue.(constructor) + +Constructs a new instance of the `MediaFeatureRangeNameValue` class + +**Signature:** + +```typescript +constructor(name: MediaFeatureName, operator: [TokenDelim, TokenDelim] | [TokenDelim], value: MediaFeatureValue); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| operator | \[TokenDelim, TokenDelim\] \| \[TokenDelim\] | | +| value | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.at.md new file mode 100644 index 000000000..da8a269e9 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [at](./media-query-list-parser.mediafeaturerangenamevalue.at.md) + +## MediaFeatureRangeNameValue.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaFeatureName | MediaFeatureValue | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaFeatureName](./media-query-list-parser.mediafeaturename.md) \| [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.getname.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.getname.md new file mode 100644 index 000000000..441b869e2 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.getname.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [getName](./media-query-list-parser.mediafeaturerangenamevalue.getname.md) + +## MediaFeatureRangeNameValue.getName() method + +**Signature:** + +```typescript +getName(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.getnametoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.getnametoken.md new file mode 100644 index 000000000..a436ca00b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.getnametoken.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [getNameToken](./media-query-list-parser.mediafeaturerangenamevalue.getnametoken.md) + +## MediaFeatureRangeNameValue.getNameToken() method + +**Signature:** + +```typescript +getNameToken(): CSSToken; +``` +**Returns:** + +CSSToken + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.indexof.md new file mode 100644 index 000000000..a4fe5ab44 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [indexOf](./media-query-list-parser.mediafeaturerangenamevalue.indexof.md) + +## MediaFeatureRangeNameValue.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaFeatureName | MediaFeatureValue): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) \| [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.ismediafeaturerangenamevalue.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.ismediafeaturerangenamevalue.md new file mode 100644 index 000000000..4140efa26 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.ismediafeaturerangenamevalue.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [isMediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.ismediafeaturerangenamevalue.md) + +## MediaFeatureRangeNameValue.isMediaFeatureRangeNameValue() method + +**Signature:** + +```typescript +static isMediaFeatureRangeNameValue(x: unknown): x is MediaFeatureRangeNameValue; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.md new file mode 100644 index 000000000..9c919bf83 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.md @@ -0,0 +1,41 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) + +## MediaFeatureRangeNameValue class + +**Signature:** + +```typescript +export declare class MediaFeatureRangeNameValue +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(name, operator, value)](./media-query-list-parser.mediafeaturerangenamevalue._constructor_.md) | | Constructs a new instance of the MediaFeatureRangeNameValue class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [name](./media-query-list-parser.mediafeaturerangenamevalue.name.md) | | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| [operator](./media-query-list-parser.mediafeaturerangenamevalue.operator.md) | | \[TokenDelim, TokenDelim\] \| \[TokenDelim\] | | +| [type](./media-query-list-parser.mediafeaturerangenamevalue.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | +| [value](./media-query-list-parser.mediafeaturerangenamevalue.value.md) | | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediafeaturerangenamevalue.at.md) | | | +| [getName()](./media-query-list-parser.mediafeaturerangenamevalue.getname.md) | | | +| [getNameToken()](./media-query-list-parser.mediafeaturerangenamevalue.getnametoken.md) | | | +| [indexOf(item)](./media-query-list-parser.mediafeaturerangenamevalue.indexof.md) | | | +| [isMediaFeatureRangeNameValue(x)](./media-query-list-parser.mediafeaturerangenamevalue.ismediafeaturerangenamevalue.md) | static | | +| [operatorKind()](./media-query-list-parser.mediafeaturerangenamevalue.operatorkind.md) | | | +| [tokens()](./media-query-list-parser.mediafeaturerangenamevalue.tokens.md) | | | +| [toString()](./media-query-list-parser.mediafeaturerangenamevalue.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediafeaturerangenamevalue.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.name.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.name.md new file mode 100644 index 000000000..ac987b0dc --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.name.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [name](./media-query-list-parser.mediafeaturerangenamevalue.name.md) + +## MediaFeatureRangeNameValue.name property + +**Signature:** + +```typescript +name: MediaFeatureName; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.operator.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.operator.md new file mode 100644 index 000000000..5269150b5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.operator.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [operator](./media-query-list-parser.mediafeaturerangenamevalue.operator.md) + +## MediaFeatureRangeNameValue.operator property + +**Signature:** + +```typescript +operator: [TokenDelim, TokenDelim] | [TokenDelim]; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.operatorkind.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.operatorkind.md new file mode 100644 index 000000000..d6282b22a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.operatorkind.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [operatorKind](./media-query-list-parser.mediafeaturerangenamevalue.operatorkind.md) + +## MediaFeatureRangeNameValue.operatorKind() method + +**Signature:** + +```typescript +operatorKind(): MediaFeatureComparison | false; +``` +**Returns:** + +[MediaFeatureComparison](./media-query-list-parser.mediafeaturecomparison.md) \| false + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.tokens.md new file mode 100644 index 000000000..d923762ed --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [tokens](./media-query-list-parser.mediafeaturerangenamevalue.tokens.md) + +## MediaFeatureRangeNameValue.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.tostring.md new file mode 100644 index 000000000..d994bcfde --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [toString](./media-query-list-parser.mediafeaturerangenamevalue.tostring.md) + +## MediaFeatureRangeNameValue.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.type.md new file mode 100644 index 000000000..5e5699e42 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [type](./media-query-list-parser.mediafeaturerangenamevalue.type.md) + +## MediaFeatureRangeNameValue.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.value.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.value.md new file mode 100644 index 000000000..5c3e36d79 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.value.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [value](./media-query-list-parser.mediafeaturerangenamevalue.value.md) + +## MediaFeatureRangeNameValue.value property + +**Signature:** + +```typescript +value: MediaFeatureValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.walk.md new file mode 100644 index 000000000..3fcb1cccb --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangenamevalue.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeNameValue](./media-query-list-parser.mediafeaturerangenamevalue.md) > [walk](./media-query-list-parser.mediafeaturerangenamevalue.walk.md) + +## MediaFeatureRangeNameValue.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaFeatureRangeWalkerEntry; + parent: MediaFeatureRangeWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaFeatureRangeWalkerEntry](./media-query-list-parser.mediafeaturerangewalkerentry.md); parent: [MediaFeatureRangeWalkerParent](./media-query-list-parser.mediafeaturerangewalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename._constructor_.md new file mode 100644 index 000000000..27452f508 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [(constructor)](./media-query-list-parser.mediafeaturerangevaluename._constructor_.md) + +## MediaFeatureRangeValueName.(constructor) + +Constructs a new instance of the `MediaFeatureRangeValueName` class + +**Signature:** + +```typescript +constructor(name: MediaFeatureName, operator: [TokenDelim, TokenDelim] | [TokenDelim], value: MediaFeatureValue); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| operator | \[TokenDelim, TokenDelim\] \| \[TokenDelim\] | | +| value | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.at.md new file mode 100644 index 000000000..a5fe1e0c0 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [at](./media-query-list-parser.mediafeaturerangevaluename.at.md) + +## MediaFeatureRangeValueName.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaFeatureName | MediaFeatureValue | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaFeatureName](./media-query-list-parser.mediafeaturename.md) \| [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.getname.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.getname.md new file mode 100644 index 000000000..1e849e1e6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.getname.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [getName](./media-query-list-parser.mediafeaturerangevaluename.getname.md) + +## MediaFeatureRangeValueName.getName() method + +**Signature:** + +```typescript +getName(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.getnametoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.getnametoken.md new file mode 100644 index 000000000..590553368 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.getnametoken.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [getNameToken](./media-query-list-parser.mediafeaturerangevaluename.getnametoken.md) + +## MediaFeatureRangeValueName.getNameToken() method + +**Signature:** + +```typescript +getNameToken(): CSSToken; +``` +**Returns:** + +CSSToken + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.indexof.md new file mode 100644 index 000000000..976ce8680 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [indexOf](./media-query-list-parser.mediafeaturerangevaluename.indexof.md) + +## MediaFeatureRangeValueName.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaFeatureName | MediaFeatureValue): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) \| [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.ismediafeaturerangevaluename.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.ismediafeaturerangevaluename.md new file mode 100644 index 000000000..cfaf1b440 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.ismediafeaturerangevaluename.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [isMediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.ismediafeaturerangevaluename.md) + +## MediaFeatureRangeValueName.isMediaFeatureRangeValueName() method + +**Signature:** + +```typescript +static isMediaFeatureRangeValueName(x: unknown): x is MediaFeatureRangeValueName; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.md new file mode 100644 index 000000000..4a63070e1 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.md @@ -0,0 +1,41 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) + +## MediaFeatureRangeValueName class + +**Signature:** + +```typescript +export declare class MediaFeatureRangeValueName +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(name, operator, value)](./media-query-list-parser.mediafeaturerangevaluename._constructor_.md) | | Constructs a new instance of the MediaFeatureRangeValueName class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [name](./media-query-list-parser.mediafeaturerangevaluename.name.md) | | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| [operator](./media-query-list-parser.mediafeaturerangevaluename.operator.md) | | \[TokenDelim, TokenDelim\] \| \[TokenDelim\] | | +| [type](./media-query-list-parser.mediafeaturerangevaluename.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | +| [value](./media-query-list-parser.mediafeaturerangevaluename.value.md) | | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediafeaturerangevaluename.at.md) | | | +| [getName()](./media-query-list-parser.mediafeaturerangevaluename.getname.md) | | | +| [getNameToken()](./media-query-list-parser.mediafeaturerangevaluename.getnametoken.md) | | | +| [indexOf(item)](./media-query-list-parser.mediafeaturerangevaluename.indexof.md) | | | +| [isMediaFeatureRangeValueName(x)](./media-query-list-parser.mediafeaturerangevaluename.ismediafeaturerangevaluename.md) | static | | +| [operatorKind()](./media-query-list-parser.mediafeaturerangevaluename.operatorkind.md) | | | +| [tokens()](./media-query-list-parser.mediafeaturerangevaluename.tokens.md) | | | +| [toString()](./media-query-list-parser.mediafeaturerangevaluename.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediafeaturerangevaluename.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.name.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.name.md new file mode 100644 index 000000000..bb0e67ee5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.name.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [name](./media-query-list-parser.mediafeaturerangevaluename.name.md) + +## MediaFeatureRangeValueName.name property + +**Signature:** + +```typescript +name: MediaFeatureName; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.operator.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.operator.md new file mode 100644 index 000000000..9729514bc --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.operator.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [operator](./media-query-list-parser.mediafeaturerangevaluename.operator.md) + +## MediaFeatureRangeValueName.operator property + +**Signature:** + +```typescript +operator: [TokenDelim, TokenDelim] | [TokenDelim]; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.operatorkind.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.operatorkind.md new file mode 100644 index 000000000..9cd3c8dad --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.operatorkind.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [operatorKind](./media-query-list-parser.mediafeaturerangevaluename.operatorkind.md) + +## MediaFeatureRangeValueName.operatorKind() method + +**Signature:** + +```typescript +operatorKind(): MediaFeatureComparison | false; +``` +**Returns:** + +[MediaFeatureComparison](./media-query-list-parser.mediafeaturecomparison.md) \| false + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.tokens.md new file mode 100644 index 000000000..ef84b3f94 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [tokens](./media-query-list-parser.mediafeaturerangevaluename.tokens.md) + +## MediaFeatureRangeValueName.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.tostring.md new file mode 100644 index 000000000..d82965e1b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [toString](./media-query-list-parser.mediafeaturerangevaluename.tostring.md) + +## MediaFeatureRangeValueName.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.type.md new file mode 100644 index 000000000..0b6f73452 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [type](./media-query-list-parser.mediafeaturerangevaluename.type.md) + +## MediaFeatureRangeValueName.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.value.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.value.md new file mode 100644 index 000000000..0e014fc9a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.value.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [value](./media-query-list-parser.mediafeaturerangevaluename.value.md) + +## MediaFeatureRangeValueName.value property + +**Signature:** + +```typescript +value: MediaFeatureValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.walk.md new file mode 100644 index 000000000..c4c27cfee --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluename.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueName](./media-query-list-parser.mediafeaturerangevaluename.md) > [walk](./media-query-list-parser.mediafeaturerangevaluename.walk.md) + +## MediaFeatureRangeValueName.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaFeatureRangeWalkerEntry; + parent: MediaFeatureRangeWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaFeatureRangeWalkerEntry](./media-query-list-parser.mediafeaturerangewalkerentry.md); parent: [MediaFeatureRangeWalkerParent](./media-query-list-parser.mediafeaturerangewalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue._constructor_.md new file mode 100644 index 000000000..18766a931 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue._constructor_.md @@ -0,0 +1,24 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [(constructor)](./media-query-list-parser.mediafeaturerangevaluenamevalue._constructor_.md) + +## MediaFeatureRangeValueNameValue.(constructor) + +Constructs a new instance of the `MediaFeatureRangeValueNameValue` class + +**Signature:** + +```typescript +constructor(name: MediaFeatureName, valueOne: MediaFeatureValue, valueOneOperator: [TokenDelim, TokenDelim] | [TokenDelim], valueTwo: MediaFeatureValue, valueTwoOperator: [TokenDelim, TokenDelim] | [TokenDelim]); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| valueOne | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | +| valueOneOperator | \[TokenDelim, TokenDelim\] \| \[TokenDelim\] | | +| valueTwo | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | +| valueTwoOperator | \[TokenDelim, TokenDelim\] \| \[TokenDelim\] | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.at.md new file mode 100644 index 000000000..919515058 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [at](./media-query-list-parser.mediafeaturerangevaluenamevalue.at.md) + +## MediaFeatureRangeValueNameValue.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaFeatureName | MediaFeatureValue | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaFeatureName](./media-query-list-parser.mediafeaturename.md) \| [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.getname.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.getname.md new file mode 100644 index 000000000..30a2366b0 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.getname.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [getName](./media-query-list-parser.mediafeaturerangevaluenamevalue.getname.md) + +## MediaFeatureRangeValueNameValue.getName() method + +**Signature:** + +```typescript +getName(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.getnametoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.getnametoken.md new file mode 100644 index 000000000..65d4ed10d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.getnametoken.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [getNameToken](./media-query-list-parser.mediafeaturerangevaluenamevalue.getnametoken.md) + +## MediaFeatureRangeValueNameValue.getNameToken() method + +**Signature:** + +```typescript +getNameToken(): CSSToken; +``` +**Returns:** + +CSSToken + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.indexof.md new file mode 100644 index 000000000..cb3754de6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [indexOf](./media-query-list-parser.mediafeaturerangevaluenamevalue.indexof.md) + +## MediaFeatureRangeValueNameValue.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaFeatureName | MediaFeatureValue): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) \| [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.ismediafeaturerangevaluenamevalue.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.ismediafeaturerangevaluenamevalue.md new file mode 100644 index 000000000..1d49348fb --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.ismediafeaturerangevaluenamevalue.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [isMediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.ismediafeaturerangevaluenamevalue.md) + +## MediaFeatureRangeValueNameValue.isMediaFeatureRangeValueNameValue() method + +**Signature:** + +```typescript +static isMediaFeatureRangeValueNameValue(x: unknown): x is MediaFeatureRangeValueNameValue; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.md new file mode 100644 index 000000000..06b6bff0a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.md @@ -0,0 +1,44 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) + +## MediaFeatureRangeValueNameValue class + +**Signature:** + +```typescript +export declare class MediaFeatureRangeValueNameValue +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(name, valueOne, valueOneOperator, valueTwo, valueTwoOperator)](./media-query-list-parser.mediafeaturerangevaluenamevalue._constructor_.md) | | Constructs a new instance of the MediaFeatureRangeValueNameValue class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [name](./media-query-list-parser.mediafeaturerangevaluenamevalue.name.md) | | [MediaFeatureName](./media-query-list-parser.mediafeaturename.md) | | +| [type](./media-query-list-parser.mediafeaturerangevaluenamevalue.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | +| [valueOne](./media-query-list-parser.mediafeaturerangevaluenamevalue.valueone.md) | | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | +| [valueOneOperator](./media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperator.md) | | \[TokenDelim, TokenDelim\] \| \[TokenDelim\] | | +| [valueTwo](./media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwo.md) | | [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) | | +| [valueTwoOperator](./media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperator.md) | | \[TokenDelim, TokenDelim\] \| \[TokenDelim\] | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediafeaturerangevaluenamevalue.at.md) | | | +| [getName()](./media-query-list-parser.mediafeaturerangevaluenamevalue.getname.md) | | | +| [getNameToken()](./media-query-list-parser.mediafeaturerangevaluenamevalue.getnametoken.md) | | | +| [indexOf(item)](./media-query-list-parser.mediafeaturerangevaluenamevalue.indexof.md) | | | +| [isMediaFeatureRangeValueNameValue(x)](./media-query-list-parser.mediafeaturerangevaluenamevalue.ismediafeaturerangevaluenamevalue.md) | static | | +| [tokens()](./media-query-list-parser.mediafeaturerangevaluenamevalue.tokens.md) | | | +| [toString()](./media-query-list-parser.mediafeaturerangevaluenamevalue.tostring.md) | | | +| [valueOneOperatorKind()](./media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperatorkind.md) | | | +| [valueTwoOperatorKind()](./media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperatorkind.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediafeaturerangevaluenamevalue.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.name.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.name.md new file mode 100644 index 000000000..aa8cf88d4 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.name.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [name](./media-query-list-parser.mediafeaturerangevaluenamevalue.name.md) + +## MediaFeatureRangeValueNameValue.name property + +**Signature:** + +```typescript +name: MediaFeatureName; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.tokens.md new file mode 100644 index 000000000..5d3b99a4b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [tokens](./media-query-list-parser.mediafeaturerangevaluenamevalue.tokens.md) + +## MediaFeatureRangeValueNameValue.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.tostring.md new file mode 100644 index 000000000..e377b8658 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [toString](./media-query-list-parser.mediafeaturerangevaluenamevalue.tostring.md) + +## MediaFeatureRangeValueNameValue.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.type.md new file mode 100644 index 000000000..ac608a43d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [type](./media-query-list-parser.mediafeaturerangevaluenamevalue.type.md) + +## MediaFeatureRangeValueNameValue.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valueone.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valueone.md new file mode 100644 index 000000000..8bf0b25ac --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valueone.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [valueOne](./media-query-list-parser.mediafeaturerangevaluenamevalue.valueone.md) + +## MediaFeatureRangeValueNameValue.valueOne property + +**Signature:** + +```typescript +valueOne: MediaFeatureValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperator.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperator.md new file mode 100644 index 000000000..0201c51ad --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperator.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [valueOneOperator](./media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperator.md) + +## MediaFeatureRangeValueNameValue.valueOneOperator property + +**Signature:** + +```typescript +valueOneOperator: [TokenDelim, TokenDelim] | [TokenDelim]; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperatorkind.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperatorkind.md new file mode 100644 index 000000000..fcc20c45b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperatorkind.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [valueOneOperatorKind](./media-query-list-parser.mediafeaturerangevaluenamevalue.valueoneoperatorkind.md) + +## MediaFeatureRangeValueNameValue.valueOneOperatorKind() method + +**Signature:** + +```typescript +valueOneOperatorKind(): MediaFeatureComparison | false; +``` +**Returns:** + +[MediaFeatureComparison](./media-query-list-parser.mediafeaturecomparison.md) \| false + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwo.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwo.md new file mode 100644 index 000000000..a237160c7 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwo.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [valueTwo](./media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwo.md) + +## MediaFeatureRangeValueNameValue.valueTwo property + +**Signature:** + +```typescript +valueTwo: MediaFeatureValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperator.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperator.md new file mode 100644 index 000000000..edc43be3d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperator.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [valueTwoOperator](./media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperator.md) + +## MediaFeatureRangeValueNameValue.valueTwoOperator property + +**Signature:** + +```typescript +valueTwoOperator: [TokenDelim, TokenDelim] | [TokenDelim]; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperatorkind.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperatorkind.md new file mode 100644 index 000000000..37cfd84cb --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperatorkind.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [valueTwoOperatorKind](./media-query-list-parser.mediafeaturerangevaluenamevalue.valuetwooperatorkind.md) + +## MediaFeatureRangeValueNameValue.valueTwoOperatorKind() method + +**Signature:** + +```typescript +valueTwoOperatorKind(): MediaFeatureComparison | false; +``` +**Returns:** + +[MediaFeatureComparison](./media-query-list-parser.mediafeaturecomparison.md) \| false + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.walk.md new file mode 100644 index 000000000..335ff0df1 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangevaluenamevalue.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeValueNameValue](./media-query-list-parser.mediafeaturerangevaluenamevalue.md) > [walk](./media-query-list-parser.mediafeaturerangevaluenamevalue.walk.md) + +## MediaFeatureRangeValueNameValue.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaFeatureRangeWalkerEntry; + parent: MediaFeatureRangeWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaFeatureRangeWalkerEntry](./media-query-list-parser.mediafeaturerangewalkerentry.md); parent: [MediaFeatureRangeWalkerParent](./media-query-list-parser.mediafeaturerangewalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangewalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangewalkerentry.md new file mode 100644 index 000000000..261260434 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangewalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeWalkerEntry](./media-query-list-parser.mediafeaturerangewalkerentry.md) + +## MediaFeatureRangeWalkerEntry type + +**Signature:** + +```typescript +export type MediaFeatureRangeWalkerEntry = MediaFeatureValueWalkerEntry | MediaFeatureValue; +``` +**References:** [MediaFeatureValueWalkerEntry](./media-query-list-parser.mediafeaturevaluewalkerentry.md), [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangewalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangewalkerparent.md new file mode 100644 index 000000000..8c46e3042 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturerangewalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureRangeWalkerParent](./media-query-list-parser.mediafeaturerangewalkerparent.md) + +## MediaFeatureRangeWalkerParent type + +**Signature:** + +```typescript +export type MediaFeatureRangeWalkerParent = MediaFeatureValueWalkerParent | MediaFeatureRange; +``` +**References:** [MediaFeatureValueWalkerParent](./media-query-list-parser.mediafeaturevaluewalkerparent.md), [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue._constructor_.md new file mode 100644 index 000000000..143777790 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [(constructor)](./media-query-list-parser.mediafeaturevalue._constructor_.md) + +## MediaFeatureValue.(constructor) + +Constructs a new instance of the `MediaFeatureValue` class + +**Signature:** + +```typescript +constructor(value: ComponentValue | Array, before?: Array, after?: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| value | ComponentValue \| Array<ComponentValue> | | +| before | Array<CSSToken> | _(Optional)_ | +| after | Array<CSSToken> | _(Optional)_ | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.after.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.after.md new file mode 100644 index 000000000..c77bc9a6f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.after.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [after](./media-query-list-parser.mediafeaturevalue.after.md) + +## MediaFeatureValue.after property + +**Signature:** + +```typescript +after: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.at.md new file mode 100644 index 000000000..4fc7a01ce --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [at](./media-query-list-parser.mediafeaturevalue.at.md) + +## MediaFeatureValue.at() method + +**Signature:** + +```typescript +at(index: number | string): ComponentValue | Array | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +ComponentValue \| Array<ComponentValue> \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.before.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.before.md new file mode 100644 index 000000000..13c21748f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.before.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [before](./media-query-list-parser.mediafeaturevalue.before.md) + +## MediaFeatureValue.before property + +**Signature:** + +```typescript +before: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.indexof.md new file mode 100644 index 000000000..75975f3f4 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [indexOf](./media-query-list-parser.mediafeaturevalue.indexof.md) + +## MediaFeatureValue.indexOf() method + +**Signature:** + +```typescript +indexOf(item: ComponentValue): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | ComponentValue | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.ismediafeaturevalue.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.ismediafeaturevalue.md new file mode 100644 index 000000000..2de38a802 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.ismediafeaturevalue.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [isMediaFeatureValue](./media-query-list-parser.mediafeaturevalue.ismediafeaturevalue.md) + +## MediaFeatureValue.isMediaFeatureValue() method + +**Signature:** + +```typescript +static isMediaFeatureValue(x: unknown): x is MediaFeatureValue; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.md new file mode 100644 index 000000000..92784e1ef --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.md @@ -0,0 +1,38 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) + +## MediaFeatureValue class + +**Signature:** + +```typescript +export declare class MediaFeatureValue +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(value, before, after)](./media-query-list-parser.mediafeaturevalue._constructor_.md) | | Constructs a new instance of the MediaFeatureValue class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [after](./media-query-list-parser.mediafeaturevalue.after.md) | | Array<CSSToken> | | +| [before](./media-query-list-parser.mediafeaturevalue.before.md) | | Array<CSSToken> | | +| [type](./media-query-list-parser.mediafeaturevalue.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | +| [value](./media-query-list-parser.mediafeaturevalue.value.md) | | ComponentValue \| Array<ComponentValue> | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediafeaturevalue.at.md) | | | +| [indexOf(item)](./media-query-list-parser.mediafeaturevalue.indexof.md) | | | +| [isMediaFeatureValue(x)](./media-query-list-parser.mediafeaturevalue.ismediafeaturevalue.md) | static | | +| [tokens()](./media-query-list-parser.mediafeaturevalue.tokens.md) | | | +| [toString()](./media-query-list-parser.mediafeaturevalue.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediafeaturevalue.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.tokens.md new file mode 100644 index 000000000..55a0e6b4c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [tokens](./media-query-list-parser.mediafeaturevalue.tokens.md) + +## MediaFeatureValue.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.tostring.md new file mode 100644 index 000000000..81efe6263 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [toString](./media-query-list-parser.mediafeaturevalue.tostring.md) + +## MediaFeatureValue.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.type.md new file mode 100644 index 000000000..11e0ca4af --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [type](./media-query-list-parser.mediafeaturevalue.type.md) + +## MediaFeatureValue.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.value.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.value.md new file mode 100644 index 000000000..9995d6e14 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.value.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [value](./media-query-list-parser.mediafeaturevalue.value.md) + +## MediaFeatureValue.value property + +**Signature:** + +```typescript +value: ComponentValue | Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.walk.md new file mode 100644 index 000000000..155360957 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevalue.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) > [walk](./media-query-list-parser.mediafeaturevalue.walk.md) + +## MediaFeatureValue.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaFeatureValueWalkerEntry; + parent: MediaFeatureValueWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaFeatureValueWalkerEntry](./media-query-list-parser.mediafeaturevaluewalkerentry.md); parent: [MediaFeatureValueWalkerParent](./media-query-list-parser.mediafeaturevaluewalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevaluewalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevaluewalkerentry.md new file mode 100644 index 000000000..e7a7bb03f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevaluewalkerentry.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValueWalkerEntry](./media-query-list-parser.mediafeaturevaluewalkerentry.md) + +## MediaFeatureValueWalkerEntry type + +**Signature:** + +```typescript +export type MediaFeatureValueWalkerEntry = ComponentValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevaluewalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevaluewalkerparent.md new file mode 100644 index 000000000..2c7b84fc6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturevaluewalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureValueWalkerParent](./media-query-list-parser.mediafeaturevaluewalkerparent.md) + +## MediaFeatureValueWalkerParent type + +**Signature:** + +```typescript +export type MediaFeatureValueWalkerParent = ContainerNode | MediaFeatureValue; +``` +**References:** [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturewalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturewalkerentry.md new file mode 100644 index 000000000..784a78467 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturewalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureWalkerEntry](./media-query-list-parser.mediafeaturewalkerentry.md) + +## MediaFeatureWalkerEntry type + +**Signature:** + +```typescript +export type MediaFeatureWalkerEntry = MediaFeaturePlainWalkerEntry | MediaFeatureRangeWalkerEntry | MediaFeaturePlain | MediaFeatureBoolean | MediaFeatureRange; +``` +**References:** [MediaFeaturePlainWalkerEntry](./media-query-list-parser.mediafeatureplainwalkerentry.md), [MediaFeatureRangeWalkerEntry](./media-query-list-parser.mediafeaturerangewalkerentry.md), [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md), [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md), [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturewalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturewalkerparent.md new file mode 100644 index 000000000..beb42a01b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediafeaturewalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaFeatureWalkerParent](./media-query-list-parser.mediafeaturewalkerparent.md) + +## MediaFeatureWalkerParent type + +**Signature:** + +```typescript +export type MediaFeatureWalkerParent = MediaFeaturePlainWalkerParent | MediaFeatureRangeWalkerParent | MediaFeature; +``` +**References:** [MediaFeaturePlainWalkerParent](./media-query-list-parser.mediafeatureplainwalkerparent.md), [MediaFeatureRangeWalkerParent](./media-query-list-parser.mediafeaturerangewalkerparent.md), [MediaFeature](./media-query-list-parser.mediafeature.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens._constructor_.md new file mode 100644 index 000000000..eefc74e08 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens._constructor_.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [(constructor)](./media-query-list-parser.mediainparens._constructor_.md) + +## MediaInParens.(constructor) + +Constructs a new instance of the `MediaInParens` class + +**Signature:** + +```typescript +constructor(media: MediaCondition | MediaFeature | GeneralEnclosed, before?: Array, after?: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| media | [MediaCondition](./media-query-list-parser.mediacondition.md) \| [MediaFeature](./media-query-list-parser.mediafeature.md) \| [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) | | +| before | Array<CSSToken> | _(Optional)_ | +| after | Array<CSSToken> | _(Optional)_ | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.after.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.after.md new file mode 100644 index 000000000..d61593756 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.after.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [after](./media-query-list-parser.mediainparens.after.md) + +## MediaInParens.after property + +**Signature:** + +```typescript +after: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.at.md new file mode 100644 index 000000000..a4aa48402 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [at](./media-query-list-parser.mediainparens.at.md) + +## MediaInParens.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaCondition | MediaFeature | GeneralEnclosed | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaCondition](./media-query-list-parser.mediacondition.md) \| [MediaFeature](./media-query-list-parser.mediafeature.md) \| [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.before.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.before.md new file mode 100644 index 000000000..d83666c2a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.before.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [before](./media-query-list-parser.mediainparens.before.md) + +## MediaInParens.before property + +**Signature:** + +```typescript +before: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.indexof.md new file mode 100644 index 000000000..c81b53547 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [indexOf](./media-query-list-parser.mediainparens.indexof.md) + +## MediaInParens.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaCondition | MediaFeature | GeneralEnclosed): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaCondition](./media-query-list-parser.mediacondition.md) \| [MediaFeature](./media-query-list-parser.mediafeature.md) \| [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.ismediainparens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.ismediainparens.md new file mode 100644 index 000000000..e69dd5502 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.ismediainparens.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [isMediaInParens](./media-query-list-parser.mediainparens.ismediainparens.md) + +## MediaInParens.isMediaInParens() method + +**Signature:** + +```typescript +static isMediaInParens(x: unknown): x is MediaInParens; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaInParens](./media-query-list-parser.mediainparens.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.md new file mode 100644 index 000000000..9f02e22ea --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.md @@ -0,0 +1,38 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) + +## MediaInParens class + +**Signature:** + +```typescript +export declare class MediaInParens +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(media, before, after)](./media-query-list-parser.mediainparens._constructor_.md) | | Constructs a new instance of the MediaInParens class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [after](./media-query-list-parser.mediainparens.after.md) | | Array<CSSToken> | | +| [before](./media-query-list-parser.mediainparens.before.md) | | Array<CSSToken> | | +| [media](./media-query-list-parser.mediainparens.media.md) | | [MediaCondition](./media-query-list-parser.mediacondition.md) \| [MediaFeature](./media-query-list-parser.mediafeature.md) \| [GeneralEnclosed](./media-query-list-parser.generalenclosed.md) | | +| [type](./media-query-list-parser.mediainparens.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediainparens.at.md) | | | +| [indexOf(item)](./media-query-list-parser.mediainparens.indexof.md) | | | +| [isMediaInParens(x)](./media-query-list-parser.mediainparens.ismediainparens.md) | static | | +| [tokens()](./media-query-list-parser.mediainparens.tokens.md) | | | +| [toString()](./media-query-list-parser.mediainparens.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediainparens.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.media.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.media.md new file mode 100644 index 000000000..fc868bb63 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.media.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [media](./media-query-list-parser.mediainparens.media.md) + +## MediaInParens.media property + +**Signature:** + +```typescript +media: MediaCondition | MediaFeature | GeneralEnclosed; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.tokens.md new file mode 100644 index 000000000..e54970c9b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [tokens](./media-query-list-parser.mediainparens.tokens.md) + +## MediaInParens.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.tostring.md new file mode 100644 index 000000000..6b20d5289 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [toString](./media-query-list-parser.mediainparens.tostring.md) + +## MediaInParens.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.type.md new file mode 100644 index 000000000..f8be9294d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [type](./media-query-list-parser.mediainparens.type.md) + +## MediaInParens.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.walk.md new file mode 100644 index 000000000..cb41b7d85 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparens.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParens](./media-query-list-parser.mediainparens.md) > [walk](./media-query-list-parser.mediainparens.walk.md) + +## MediaInParens.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaInParensWalkerEntry; + parent: MediaInParensWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaInParensWalkerEntry](./media-query-list-parser.mediainparenswalkerentry.md); parent: [MediaInParensWalkerParent](./media-query-list-parser.mediainparenswalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparenswalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparenswalkerentry.md new file mode 100644 index 000000000..870f3409e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparenswalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParensWalkerEntry](./media-query-list-parser.mediainparenswalkerentry.md) + +## MediaInParensWalkerEntry type + +**Signature:** + +```typescript +export type MediaInParensWalkerEntry = ComponentValue | GeneralEnclosed | MediaAnd | MediaNot | MediaOr | MediaConditionList | MediaCondition | MediaFeatureBoolean | MediaFeatureName | MediaFeaturePlain | MediaFeatureRange | MediaFeatureValue | MediaFeature | GeneralEnclosed | MediaInParens; +``` +**References:** [GeneralEnclosed](./media-query-list-parser.generalenclosed.md), [MediaAnd](./media-query-list-parser.mediaand.md), [MediaNot](./media-query-list-parser.medianot.md), [MediaOr](./media-query-list-parser.mediaor.md), [MediaConditionList](./media-query-list-parser.mediaconditionlist.md), [MediaCondition](./media-query-list-parser.mediacondition.md), [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md), [MediaFeatureName](./media-query-list-parser.mediafeaturename.md), [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md), [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md), [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md), [MediaFeature](./media-query-list-parser.mediafeature.md), [MediaInParens](./media-query-list-parser.mediainparens.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediainparenswalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparenswalkerparent.md new file mode 100644 index 000000000..29ef868dd --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediainparenswalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaInParensWalkerParent](./media-query-list-parser.mediainparenswalkerparent.md) + +## MediaInParensWalkerParent type + +**Signature:** + +```typescript +export type MediaInParensWalkerParent = ContainerNode | GeneralEnclosed | MediaAnd | MediaNot | MediaOr | MediaConditionList | MediaCondition | MediaFeatureBoolean | MediaFeatureName | MediaFeaturePlain | MediaFeatureRange | MediaFeatureValue | MediaFeature | GeneralEnclosed | MediaInParens; +``` +**References:** [GeneralEnclosed](./media-query-list-parser.generalenclosed.md), [MediaAnd](./media-query-list-parser.mediaand.md), [MediaNot](./media-query-list-parser.medianot.md), [MediaOr](./media-query-list-parser.mediaor.md), [MediaConditionList](./media-query-list-parser.mediaconditionlist.md), [MediaCondition](./media-query-list-parser.mediacondition.md), [MediaFeatureBoolean](./media-query-list-parser.mediafeatureboolean.md), [MediaFeatureName](./media-query-list-parser.mediafeaturename.md), [MediaFeaturePlain](./media-query-list-parser.mediafeatureplain.md), [MediaFeatureRange](./media-query-list-parser.mediafeaturerange.md), [MediaFeatureValue](./media-query-list-parser.mediafeaturevalue.md), [MediaFeature](./media-query-list-parser.mediafeature.md), [MediaInParens](./media-query-list-parser.mediainparens.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot._constructor_.md new file mode 100644 index 000000000..1b81c78ee --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot._constructor_.md @@ -0,0 +1,21 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [(constructor)](./media-query-list-parser.medianot._constructor_.md) + +## MediaNot.(constructor) + +Constructs a new instance of the `MediaNot` class + +**Signature:** + +```typescript +constructor(modifier: Array, media: MediaInParens); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| modifier | Array<CSSToken> | | +| media | [MediaInParens](./media-query-list-parser.mediainparens.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.at.md new file mode 100644 index 000000000..85df421c0 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [at](./media-query-list-parser.medianot.at.md) + +## MediaNot.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaInParens | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaInParens](./media-query-list-parser.mediainparens.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.indexof.md new file mode 100644 index 000000000..3c2a8d119 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [indexOf](./media-query-list-parser.medianot.indexof.md) + +## MediaNot.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaInParens): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaInParens](./media-query-list-parser.mediainparens.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.ismedianot.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.ismedianot.md new file mode 100644 index 000000000..331bf54a9 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.ismedianot.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [isMediaNot](./media-query-list-parser.medianot.ismedianot.md) + +## MediaNot.isMediaNot() method + +**Signature:** + +```typescript +static isMediaNot(x: unknown): x is MediaNot; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaNot](./media-query-list-parser.medianot.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.md new file mode 100644 index 000000000..18c23645a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.md @@ -0,0 +1,37 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) + +## MediaNot class + +**Signature:** + +```typescript +export declare class MediaNot +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(modifier, media)](./media-query-list-parser.medianot._constructor_.md) | | Constructs a new instance of the MediaNot class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [media](./media-query-list-parser.medianot.media.md) | | [MediaInParens](./media-query-list-parser.mediainparens.md) | | +| [modifier](./media-query-list-parser.medianot.modifier.md) | | Array<CSSToken> | | +| [type](./media-query-list-parser.medianot.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.medianot.at.md) | | | +| [indexOf(item)](./media-query-list-parser.medianot.indexof.md) | | | +| [isMediaNot(x)](./media-query-list-parser.medianot.ismedianot.md) | static | | +| [tokens()](./media-query-list-parser.medianot.tokens.md) | | | +| [toString()](./media-query-list-parser.medianot.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.medianot.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.media.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.media.md new file mode 100644 index 000000000..96437df73 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.media.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [media](./media-query-list-parser.medianot.media.md) + +## MediaNot.media property + +**Signature:** + +```typescript +media: MediaInParens; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.modifier.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.modifier.md new file mode 100644 index 000000000..c1715ba0b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.modifier.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [modifier](./media-query-list-parser.medianot.modifier.md) + +## MediaNot.modifier property + +**Signature:** + +```typescript +modifier: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.tokens.md new file mode 100644 index 000000000..ab9e0f4df --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [tokens](./media-query-list-parser.medianot.tokens.md) + +## MediaNot.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.tostring.md new file mode 100644 index 000000000..8bb11a1db --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [toString](./media-query-list-parser.medianot.tostring.md) + +## MediaNot.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.type.md new file mode 100644 index 000000000..94119f598 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [type](./media-query-list-parser.medianot.type.md) + +## MediaNot.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianot.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.walk.md new file mode 100644 index 000000000..830318696 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianot.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNot](./media-query-list-parser.medianot.md) > [walk](./media-query-list-parser.medianot.walk.md) + +## MediaNot.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaNotWalkerEntry; + parent: MediaNotWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaNotWalkerEntry](./media-query-list-parser.medianotwalkerentry.md); parent: [MediaNotWalkerParent](./media-query-list-parser.medianotwalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianotwalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianotwalkerentry.md new file mode 100644 index 000000000..4768a8975 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianotwalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNotWalkerEntry](./media-query-list-parser.medianotwalkerentry.md) + +## MediaNotWalkerEntry type + +**Signature:** + +```typescript +export type MediaNotWalkerEntry = MediaInParensWalkerEntry | MediaInParens; +``` +**References:** [MediaInParensWalkerEntry](./media-query-list-parser.mediainparenswalkerentry.md), [MediaInParens](./media-query-list-parser.mediainparens.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.medianotwalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.medianotwalkerparent.md new file mode 100644 index 000000000..2c4534553 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.medianotwalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaNotWalkerParent](./media-query-list-parser.medianotwalkerparent.md) + +## MediaNotWalkerParent type + +**Signature:** + +```typescript +export type MediaNotWalkerParent = MediaInParensWalkerParent | MediaNot; +``` +**References:** [MediaInParensWalkerParent](./media-query-list-parser.mediainparenswalkerparent.md), [MediaNot](./media-query-list-parser.medianot.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor._constructor_.md new file mode 100644 index 000000000..82de37206 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor._constructor_.md @@ -0,0 +1,21 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [(constructor)](./media-query-list-parser.mediaor._constructor_.md) + +## MediaOr.(constructor) + +Constructs a new instance of the `MediaOr` class + +**Signature:** + +```typescript +constructor(modifier: Array, media: MediaInParens); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| modifier | Array<CSSToken> | | +| media | [MediaInParens](./media-query-list-parser.mediainparens.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.at.md new file mode 100644 index 000000000..02e61e364 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [at](./media-query-list-parser.mediaor.at.md) + +## MediaOr.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaInParens | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaInParens](./media-query-list-parser.mediainparens.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.indexof.md new file mode 100644 index 000000000..d913efb3c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [indexOf](./media-query-list-parser.mediaor.indexof.md) + +## MediaOr.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaInParens): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaInParens](./media-query-list-parser.mediainparens.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.ismediaor.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.ismediaor.md new file mode 100644 index 000000000..3a812d6e1 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.ismediaor.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [isMediaOr](./media-query-list-parser.mediaor.ismediaor.md) + +## MediaOr.isMediaOr() method + +**Signature:** + +```typescript +static isMediaOr(x: unknown): x is MediaOr; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaOr](./media-query-list-parser.mediaor.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.md new file mode 100644 index 000000000..32e96fdcb --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.md @@ -0,0 +1,37 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) + +## MediaOr class + +**Signature:** + +```typescript +export declare class MediaOr +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(modifier, media)](./media-query-list-parser.mediaor._constructor_.md) | | Constructs a new instance of the MediaOr class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [media](./media-query-list-parser.mediaor.media.md) | | [MediaInParens](./media-query-list-parser.mediainparens.md) | | +| [modifier](./media-query-list-parser.mediaor.modifier.md) | | Array<CSSToken> | | +| [type](./media-query-list-parser.mediaor.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediaor.at.md) | | | +| [indexOf(item)](./media-query-list-parser.mediaor.indexof.md) | | | +| [isMediaOr(x)](./media-query-list-parser.mediaor.ismediaor.md) | static | | +| [tokens()](./media-query-list-parser.mediaor.tokens.md) | | | +| [toString()](./media-query-list-parser.mediaor.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediaor.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.media.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.media.md new file mode 100644 index 000000000..cb44f9443 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.media.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [media](./media-query-list-parser.mediaor.media.md) + +## MediaOr.media property + +**Signature:** + +```typescript +media: MediaInParens; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.modifier.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.modifier.md new file mode 100644 index 000000000..d5464290a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.modifier.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [modifier](./media-query-list-parser.mediaor.modifier.md) + +## MediaOr.modifier property + +**Signature:** + +```typescript +modifier: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.tokens.md new file mode 100644 index 000000000..043580ed0 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [tokens](./media-query-list-parser.mediaor.tokens.md) + +## MediaOr.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.tostring.md new file mode 100644 index 000000000..06300c51c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [toString](./media-query-list-parser.mediaor.tostring.md) + +## MediaOr.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.type.md new file mode 100644 index 000000000..2fe8553d6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [type](./media-query-list-parser.mediaor.type.md) + +## MediaOr.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.walk.md new file mode 100644 index 000000000..c155debda --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaor.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOr](./media-query-list-parser.mediaor.md) > [walk](./media-query-list-parser.mediaor.walk.md) + +## MediaOr.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaOrWalkerEntry; + parent: MediaOrWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaOrWalkerEntry](./media-query-list-parser.mediaorwalkerentry.md); parent: [MediaOrWalkerParent](./media-query-list-parser.mediaorwalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaorwalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaorwalkerentry.md new file mode 100644 index 000000000..9e359af44 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaorwalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOrWalkerEntry](./media-query-list-parser.mediaorwalkerentry.md) + +## MediaOrWalkerEntry type + +**Signature:** + +```typescript +export type MediaOrWalkerEntry = MediaInParensWalkerEntry | MediaInParens; +``` +**References:** [MediaInParensWalkerEntry](./media-query-list-parser.mediainparenswalkerentry.md), [MediaInParens](./media-query-list-parser.mediainparens.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaorwalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaorwalkerparent.md new file mode 100644 index 000000000..cd8a3f82f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaorwalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaOrWalkerParent](./media-query-list-parser.mediaorwalkerparent.md) + +## MediaOrWalkerParent type + +**Signature:** + +```typescript +export type MediaOrWalkerParent = MediaInParensWalkerParent | MediaOr; +``` +**References:** [MediaInParensWalkerParent](./media-query-list-parser.mediainparenswalkerparent.md), [MediaOr](./media-query-list-parser.mediaor.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquery.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquery.md new file mode 100644 index 000000000..2f9fa61a7 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquery.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQuery](./media-query-list-parser.mediaquery.md) + +## MediaQuery type + +**Signature:** + +```typescript +export type MediaQuery = MediaQueryWithType | MediaQueryWithoutType | MediaQueryInvalid; +``` +**References:** [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md), [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md), [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid._constructor_.md new file mode 100644 index 000000000..4d9da3bee --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid._constructor_.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) > [(constructor)](./media-query-list-parser.mediaqueryinvalid._constructor_.md) + +## MediaQueryInvalid.(constructor) + +Constructs a new instance of the `MediaQueryInvalid` class + +**Signature:** + +```typescript +constructor(media: Array); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| media | Array<ComponentValue> | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.ismediaqueryinvalid.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.ismediaqueryinvalid.md new file mode 100644 index 000000000..b48911f51 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.ismediaqueryinvalid.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) > [isMediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.ismediaqueryinvalid.md) + +## MediaQueryInvalid.isMediaQueryInvalid() method + +**Signature:** + +```typescript +static isMediaQueryInvalid(x: unknown): x is MediaQueryInvalid; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.md new file mode 100644 index 000000000..664a7a9a2 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.md @@ -0,0 +1,35 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) + +## MediaQueryInvalid class + +**Signature:** + +```typescript +export declare class MediaQueryInvalid +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(media)](./media-query-list-parser.mediaqueryinvalid._constructor_.md) | | Constructs a new instance of the MediaQueryInvalid class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [media](./media-query-list-parser.mediaqueryinvalid.media.md) | | Array<ComponentValue> | | +| [type](./media-query-list-parser.mediaqueryinvalid.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [isMediaQueryInvalid(x)](./media-query-list-parser.mediaqueryinvalid.ismediaqueryinvalid.md) | static | | +| [negateQuery()](./media-query-list-parser.mediaqueryinvalid.negatequery.md) | | | +| [tokens()](./media-query-list-parser.mediaqueryinvalid.tokens.md) | | | +| [toString()](./media-query-list-parser.mediaqueryinvalid.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediaqueryinvalid.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.media.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.media.md new file mode 100644 index 000000000..ee779b6dc --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.media.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) > [media](./media-query-list-parser.mediaqueryinvalid.media.md) + +## MediaQueryInvalid.media property + +**Signature:** + +```typescript +media: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.negatequery.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.negatequery.md new file mode 100644 index 000000000..2cbc8bbe1 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.negatequery.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) > [negateQuery](./media-query-list-parser.mediaqueryinvalid.negatequery.md) + +## MediaQueryInvalid.negateQuery() method + +**Signature:** + +```typescript +negateQuery(): MediaQuery; +``` +**Returns:** + +[MediaQuery](./media-query-list-parser.mediaquery.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.tokens.md new file mode 100644 index 000000000..0e68eef54 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) > [tokens](./media-query-list-parser.mediaqueryinvalid.tokens.md) + +## MediaQueryInvalid.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.tostring.md new file mode 100644 index 000000000..79512da72 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) > [toString](./media-query-list-parser.mediaqueryinvalid.tostring.md) + +## MediaQueryInvalid.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.type.md new file mode 100644 index 000000000..05feaf061 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) > [type](./media-query-list-parser.mediaqueryinvalid.type.md) + +## MediaQueryInvalid.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.walk.md new file mode 100644 index 000000000..11f693af8 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalid.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) > [walk](./media-query-list-parser.mediaqueryinvalid.walk.md) + +## MediaQueryInvalid.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaQueryInvalidWalkerEntry; + parent: MediaQueryInvalidWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaQueryInvalidWalkerEntry](./media-query-list-parser.mediaqueryinvalidwalkerentry.md); parent: [MediaQueryInvalidWalkerParent](./media-query-list-parser.mediaqueryinvalidwalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalidwalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalidwalkerentry.md new file mode 100644 index 000000000..70a9522ff --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalidwalkerentry.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalidWalkerEntry](./media-query-list-parser.mediaqueryinvalidwalkerentry.md) + +## MediaQueryInvalidWalkerEntry type + +**Signature:** + +```typescript +export type MediaQueryInvalidWalkerEntry = ComponentValue; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalidwalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalidwalkerparent.md new file mode 100644 index 000000000..e19206d98 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaqueryinvalidwalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryInvalidWalkerParent](./media-query-list-parser.mediaqueryinvalidwalkerparent.md) + +## MediaQueryInvalidWalkerParent type + +**Signature:** + +```typescript +export type MediaQueryInvalidWalkerParent = ComponentValue | MediaQueryInvalid; +``` +**References:** [MediaQueryInvalid](./media-query-list-parser.mediaqueryinvalid.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerymodifier.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerymodifier.md new file mode 100644 index 000000000..37562e0b5 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerymodifier.md @@ -0,0 +1,19 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryModifier](./media-query-list-parser.mediaquerymodifier.md) + +## MediaQueryModifier enum + +**Signature:** + +```typescript +export declare enum MediaQueryModifier +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| Not | "not" | | +| Only | "only" | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype._constructor_.md new file mode 100644 index 000000000..1df69c394 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype._constructor_.md @@ -0,0 +1,20 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [(constructor)](./media-query-list-parser.mediaquerywithouttype._constructor_.md) + +## MediaQueryWithoutType.(constructor) + +Constructs a new instance of the `MediaQueryWithoutType` class + +**Signature:** + +```typescript +constructor(media: MediaCondition); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| media | [MediaCondition](./media-query-list-parser.mediacondition.md) | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.at.md new file mode 100644 index 000000000..30b205343 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [at](./media-query-list-parser.mediaquerywithouttype.at.md) + +## MediaQueryWithoutType.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaCondition | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaCondition](./media-query-list-parser.mediacondition.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.indexof.md new file mode 100644 index 000000000..1fea3cfee --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [indexOf](./media-query-list-parser.mediaquerywithouttype.indexof.md) + +## MediaQueryWithoutType.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaCondition): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaCondition](./media-query-list-parser.mediacondition.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.ismediaquerywithouttype.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.ismediaquerywithouttype.md new file mode 100644 index 000000000..a1b2c3f3c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.ismediaquerywithouttype.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [isMediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.ismediaquerywithouttype.md) + +## MediaQueryWithoutType.isMediaQueryWithoutType() method + +**Signature:** + +```typescript +static isMediaQueryWithoutType(x: unknown): x is MediaQueryWithoutType; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.md new file mode 100644 index 000000000..195df87f3 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.md @@ -0,0 +1,37 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) + +## MediaQueryWithoutType class + +**Signature:** + +```typescript +export declare class MediaQueryWithoutType +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(media)](./media-query-list-parser.mediaquerywithouttype._constructor_.md) | | Constructs a new instance of the MediaQueryWithoutType class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [media](./media-query-list-parser.mediaquerywithouttype.media.md) | | [MediaCondition](./media-query-list-parser.mediacondition.md) | | +| [type](./media-query-list-parser.mediaquerywithouttype.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediaquerywithouttype.at.md) | | | +| [indexOf(item)](./media-query-list-parser.mediaquerywithouttype.indexof.md) | | | +| [isMediaQueryWithoutType(x)](./media-query-list-parser.mediaquerywithouttype.ismediaquerywithouttype.md) | static | | +| [negateQuery()](./media-query-list-parser.mediaquerywithouttype.negatequery.md) | | | +| [tokens()](./media-query-list-parser.mediaquerywithouttype.tokens.md) | | | +| [toString()](./media-query-list-parser.mediaquerywithouttype.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediaquerywithouttype.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.media.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.media.md new file mode 100644 index 000000000..da54c07c3 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.media.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [media](./media-query-list-parser.mediaquerywithouttype.media.md) + +## MediaQueryWithoutType.media property + +**Signature:** + +```typescript +media: MediaCondition; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.negatequery.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.negatequery.md new file mode 100644 index 000000000..0e4c0c476 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.negatequery.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [negateQuery](./media-query-list-parser.mediaquerywithouttype.negatequery.md) + +## MediaQueryWithoutType.negateQuery() method + +**Signature:** + +```typescript +negateQuery(): MediaQuery; +``` +**Returns:** + +[MediaQuery](./media-query-list-parser.mediaquery.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.tokens.md new file mode 100644 index 000000000..e7dead10f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [tokens](./media-query-list-parser.mediaquerywithouttype.tokens.md) + +## MediaQueryWithoutType.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.tostring.md new file mode 100644 index 000000000..68c7571d6 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [toString](./media-query-list-parser.mediaquerywithouttype.tostring.md) + +## MediaQueryWithoutType.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.type.md new file mode 100644 index 000000000..81bdf912f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [type](./media-query-list-parser.mediaquerywithouttype.type.md) + +## MediaQueryWithoutType.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.walk.md new file mode 100644 index 000000000..7acac5c9c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttype.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) > [walk](./media-query-list-parser.mediaquerywithouttype.walk.md) + +## MediaQueryWithoutType.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaQueryWithoutTypeWalkerEntry; + parent: MediaQueryWithoutTypeWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaQueryWithoutTypeWalkerEntry](./media-query-list-parser.mediaquerywithouttypewalkerentry.md); parent: [MediaQueryWithoutTypeWalkerParent](./media-query-list-parser.mediaquerywithouttypewalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttypewalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttypewalkerentry.md new file mode 100644 index 000000000..5d6aa1a1f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttypewalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutTypeWalkerEntry](./media-query-list-parser.mediaquerywithouttypewalkerentry.md) + +## MediaQueryWithoutTypeWalkerEntry type + +**Signature:** + +```typescript +export type MediaQueryWithoutTypeWalkerEntry = MediaConditionWalkerEntry | MediaCondition; +``` +**References:** [MediaConditionWalkerEntry](./media-query-list-parser.mediaconditionwalkerentry.md), [MediaCondition](./media-query-list-parser.mediacondition.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttypewalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttypewalkerparent.md new file mode 100644 index 000000000..857d7aa3b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithouttypewalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithoutTypeWalkerParent](./media-query-list-parser.mediaquerywithouttypewalkerparent.md) + +## MediaQueryWithoutTypeWalkerParent type + +**Signature:** + +```typescript +export type MediaQueryWithoutTypeWalkerParent = MediaConditionWalkerParent | MediaQueryWithoutType; +``` +**References:** [MediaConditionWalkerParent](./media-query-list-parser.mediaconditionwalkerparent.md), [MediaQueryWithoutType](./media-query-list-parser.mediaquerywithouttype.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype._constructor_.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype._constructor_.md new file mode 100644 index 000000000..a120d8a3a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype._constructor_.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [(constructor)](./media-query-list-parser.mediaquerywithtype._constructor_.md) + +## MediaQueryWithType.(constructor) + +Constructs a new instance of the `MediaQueryWithType` class + +**Signature:** + +```typescript +constructor(modifier: Array, mediaType: Array, and?: Array | undefined, media?: MediaCondition | undefined); +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| modifier | Array<CSSToken> | | +| mediaType | Array<CSSToken> | | +| and | Array<CSSToken> \| undefined | _(Optional)_ | +| media | [MediaCondition](./media-query-list-parser.mediacondition.md) \| undefined | _(Optional)_ | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.and.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.and.md new file mode 100644 index 000000000..e1eb37fc7 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.and.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [and](./media-query-list-parser.mediaquerywithtype.and.md) + +## MediaQueryWithType.and property + +**Signature:** + +```typescript +and: Array | undefined; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.at.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.at.md new file mode 100644 index 000000000..2bc90952e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.at.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [at](./media-query-list-parser.mediaquerywithtype.at.md) + +## MediaQueryWithType.at() method + +**Signature:** + +```typescript +at(index: number | string): MediaCondition | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| index | number \| string | | + +**Returns:** + +[MediaCondition](./media-query-list-parser.mediacondition.md) \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.getmediatype.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.getmediatype.md new file mode 100644 index 000000000..931468bbf --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.getmediatype.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [getMediaType](./media-query-list-parser.mediaquerywithtype.getmediatype.md) + +## MediaQueryWithType.getMediaType() method + +**Signature:** + +```typescript +getMediaType(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.getmodifier.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.getmodifier.md new file mode 100644 index 000000000..4095e463c --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.getmodifier.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [getModifier](./media-query-list-parser.mediaquerywithtype.getmodifier.md) + +## MediaQueryWithType.getModifier() method + +**Signature:** + +```typescript +getModifier(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.indexof.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.indexof.md new file mode 100644 index 000000000..0b2b82e35 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.indexof.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [indexOf](./media-query-list-parser.mediaquerywithtype.indexof.md) + +## MediaQueryWithType.indexOf() method + +**Signature:** + +```typescript +indexOf(item: MediaCondition): number | string; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| item | [MediaCondition](./media-query-list-parser.mediacondition.md) | | + +**Returns:** + +number \| string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.ismediaquerywithtype.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.ismediaquerywithtype.md new file mode 100644 index 000000000..fa7e3500f --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.ismediaquerywithtype.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [isMediaQueryWithType](./media-query-list-parser.mediaquerywithtype.ismediaquerywithtype.md) + +## MediaQueryWithType.isMediaQueryWithType() method + +**Signature:** + +```typescript +static isMediaQueryWithType(x: unknown): x is MediaQueryWithType; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| x | unknown | | + +**Returns:** + +x is [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.md new file mode 100644 index 000000000..6189802df --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.md @@ -0,0 +1,42 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) + +## MediaQueryWithType class + +**Signature:** + +```typescript +export declare class MediaQueryWithType +``` + +## Constructors + +| Constructor | Modifiers | Description | +| --- | --- | --- | +| [(constructor)(modifier, mediaType, and, media)](./media-query-list-parser.mediaquerywithtype._constructor_.md) | | Constructs a new instance of the MediaQueryWithType class | + +## Properties + +| Property | Modifiers | Type | Description | +| --- | --- | --- | --- | +| [and](./media-query-list-parser.mediaquerywithtype.and.md) | | Array<CSSToken> \| undefined | | +| [media](./media-query-list-parser.mediaquerywithtype.media.md) | | [MediaCondition](./media-query-list-parser.mediacondition.md) \| undefined | | +| [mediaType](./media-query-list-parser.mediaquerywithtype.mediatype.md) | | Array<CSSToken> | | +| [modifier](./media-query-list-parser.mediaquerywithtype.modifier.md) | | Array<CSSToken> | | +| [type](./media-query-list-parser.mediaquerywithtype.type.md) | | [NodeType](./media-query-list-parser.nodetype.md) | | + +## Methods + +| Method | Modifiers | Description | +| --- | --- | --- | +| [at(index)](./media-query-list-parser.mediaquerywithtype.at.md) | | | +| [getMediaType()](./media-query-list-parser.mediaquerywithtype.getmediatype.md) | | | +| [getModifier()](./media-query-list-parser.mediaquerywithtype.getmodifier.md) | | | +| [indexOf(item)](./media-query-list-parser.mediaquerywithtype.indexof.md) | | | +| [isMediaQueryWithType(x)](./media-query-list-parser.mediaquerywithtype.ismediaquerywithtype.md) | static | | +| [negateQuery()](./media-query-list-parser.mediaquerywithtype.negatequery.md) | | | +| [tokens()](./media-query-list-parser.mediaquerywithtype.tokens.md) | | | +| [toString()](./media-query-list-parser.mediaquerywithtype.tostring.md) | | | +| [walk(cb, state)](./media-query-list-parser.mediaquerywithtype.walk.md) | | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.media.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.media.md new file mode 100644 index 000000000..7563898b0 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.media.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [media](./media-query-list-parser.mediaquerywithtype.media.md) + +## MediaQueryWithType.media property + +**Signature:** + +```typescript +media: MediaCondition | undefined; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.mediatype.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.mediatype.md new file mode 100644 index 000000000..71e7ca1c3 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.mediatype.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [mediaType](./media-query-list-parser.mediaquerywithtype.mediatype.md) + +## MediaQueryWithType.mediaType property + +**Signature:** + +```typescript +mediaType: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.modifier.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.modifier.md new file mode 100644 index 000000000..d33d14d54 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.modifier.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [modifier](./media-query-list-parser.mediaquerywithtype.modifier.md) + +## MediaQueryWithType.modifier property + +**Signature:** + +```typescript +modifier: Array; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.negatequery.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.negatequery.md new file mode 100644 index 000000000..26c34668b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.negatequery.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [negateQuery](./media-query-list-parser.mediaquerywithtype.negatequery.md) + +## MediaQueryWithType.negateQuery() method + +**Signature:** + +```typescript +negateQuery(): MediaQuery; +``` +**Returns:** + +[MediaQuery](./media-query-list-parser.mediaquery.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.tokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.tokens.md new file mode 100644 index 000000000..c906cb486 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.tokens.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [tokens](./media-query-list-parser.mediaquerywithtype.tokens.md) + +## MediaQueryWithType.tokens() method + +**Signature:** + +```typescript +tokens(): Array; +``` +**Returns:** + +Array<CSSToken> + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.tostring.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.tostring.md new file mode 100644 index 000000000..8241688aa --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.tostring.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [toString](./media-query-list-parser.mediaquerywithtype.tostring.md) + +## MediaQueryWithType.toString() method + +**Signature:** + +```typescript +toString(): string; +``` +**Returns:** + +string + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.type.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.type.md new file mode 100644 index 000000000..be2a2d75a --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.type.md @@ -0,0 +1,11 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [type](./media-query-list-parser.mediaquerywithtype.type.md) + +## MediaQueryWithType.type property + +**Signature:** + +```typescript +type: NodeType; +``` diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.walk.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.walk.md new file mode 100644 index 000000000..ec830b688 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtype.walk.md @@ -0,0 +1,27 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) > [walk](./media-query-list-parser.mediaquerywithtype.walk.md) + +## MediaQueryWithType.walk() method + +**Signature:** + +```typescript +walk>(cb: (entry: { + node: MediaQueryWithTypeWalkerEntry; + parent: MediaQueryWithTypeWalkerParent; + state?: T; + }, index: number | string) => boolean | void, state?: T): false | undefined; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| cb | (entry: { node: [MediaQueryWithTypeWalkerEntry](./media-query-list-parser.mediaquerywithtypewalkerentry.md); parent: [MediaQueryWithTypeWalkerParent](./media-query-list-parser.mediaquerywithtypewalkerparent.md); state?: T; }, index: number \| string) => boolean \| void | | +| state | T | _(Optional)_ | + +**Returns:** + +false \| undefined + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtypewalkerentry.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtypewalkerentry.md new file mode 100644 index 000000000..c5b0d331e --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtypewalkerentry.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithTypeWalkerEntry](./media-query-list-parser.mediaquerywithtypewalkerentry.md) + +## MediaQueryWithTypeWalkerEntry type + +**Signature:** + +```typescript +export type MediaQueryWithTypeWalkerEntry = MediaConditionWalkerEntry | MediaCondition; +``` +**References:** [MediaConditionWalkerEntry](./media-query-list-parser.mediaconditionwalkerentry.md), [MediaCondition](./media-query-list-parser.mediacondition.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtypewalkerparent.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtypewalkerparent.md new file mode 100644 index 000000000..b14f95c2b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediaquerywithtypewalkerparent.md @@ -0,0 +1,13 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaQueryWithTypeWalkerParent](./media-query-list-parser.mediaquerywithtypewalkerparent.md) + +## MediaQueryWithTypeWalkerParent type + +**Signature:** + +```typescript +export type MediaQueryWithTypeWalkerParent = MediaConditionWalkerParent | MediaQueryWithType; +``` +**References:** [MediaConditionWalkerParent](./media-query-list-parser.mediaconditionwalkerparent.md), [MediaQueryWithType](./media-query-list-parser.mediaquerywithtype.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.mediatype.md b/packages/media-query-list-parser/docs/media-query-list-parser.mediatype.md new file mode 100644 index 000000000..54deb0d6d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.mediatype.md @@ -0,0 +1,28 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [MediaType](./media-query-list-parser.mediatype.md) + +## MediaType enum + +**Signature:** + +```typescript +export declare enum MediaType +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| All | "all" | Always matches | +| Aural | "aural" | Never matches | +| Braille | "braille" | Never matches | +| Embossed | "embossed" | Never matches | +| Handheld | "handheld" | Never matches | +| Print | "print" | | +| Projection | "projection" | Never matches | +| Screen | "screen" | | +| Speech | "speech" | Never matches | +| Tty | "tty" | Never matches | +| Tv | "tv" | Never matches | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.modifierfromtoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.modifierfromtoken.md new file mode 100644 index 000000000..42ca87d80 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.modifierfromtoken.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [modifierFromToken](./media-query-list-parser.modifierfromtoken.md) + +## modifierFromToken() function + +**Signature:** + +```typescript +export declare function modifierFromToken(token: TokenIdent): MediaQueryModifier | false; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| token | TokenIdent | | + +**Returns:** + +[MediaQueryModifier](./media-query-list-parser.mediaquerymodifier.md) \| false + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.newmediafeatureboolean.md b/packages/media-query-list-parser/docs/media-query-list-parser.newmediafeatureboolean.md new file mode 100644 index 000000000..3ee41f0ff --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.newmediafeatureboolean.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [newMediaFeatureBoolean](./media-query-list-parser.newmediafeatureboolean.md) + +## newMediaFeatureBoolean() function + +**Signature:** + +```typescript +export declare function newMediaFeatureBoolean(name: string): MediaFeature; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | string | | + +**Returns:** + +[MediaFeature](./media-query-list-parser.mediafeature.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.newmediafeatureplain.md b/packages/media-query-list-parser/docs/media-query-list-parser.newmediafeatureplain.md new file mode 100644 index 000000000..98b479dfa --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.newmediafeatureplain.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [newMediaFeaturePlain](./media-query-list-parser.newmediafeatureplain.md) + +## newMediaFeaturePlain() function + +**Signature:** + +```typescript +export declare function newMediaFeaturePlain(name: string, ...value: Array): MediaFeature; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| name | string | | +| value | Array<CSSToken> | | + +**Returns:** + +[MediaFeature](./media-query-list-parser.mediafeature.md) + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.nodetype.md b/packages/media-query-list-parser/docs/media-query-list-parser.nodetype.md new file mode 100644 index 000000000..310e55fd3 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.nodetype.md @@ -0,0 +1,37 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [NodeType](./media-query-list-parser.nodetype.md) + +## NodeType enum + +**Signature:** + +```typescript +export declare enum NodeType +``` + +## Enumeration Members + +| Member | Value | Description | +| --- | --- | --- | +| CustomMedia | "custom-media" | | +| GeneralEnclosed | "general-enclosed" | | +| MediaAnd | "media-and" | | +| MediaCondition | "media-condition" | | +| MediaConditionListWithAnd | "media-condition-list-and" | | +| MediaConditionListWithOr | "media-condition-list-or" | | +| MediaFeature | "media-feature" | | +| MediaFeatureBoolean | "mf-boolean" | | +| MediaFeatureName | "mf-name" | | +| MediaFeaturePlain | "mf-plain" | | +| MediaFeatureRangeNameValue | "mf-range-name-value" | | +| MediaFeatureRangeValueName | "mf-range-value-name" | | +| MediaFeatureRangeValueNameValue | "mf-range-value-name-value" | | +| MediaFeatureValue | "mf-value" | | +| MediaInParens | "media-in-parens" | | +| MediaNot | "media-not" | | +| MediaOr | "media-or" | | +| MediaQueryInvalid | "media-query-invalid" | | +| MediaQueryWithoutType | "media-query-without-type" | | +| MediaQueryWithType | "media-query-with-type" | | + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.parse.md b/packages/media-query-list-parser/docs/media-query-list-parser.parse.md new file mode 100644 index 000000000..95d353c93 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.parse.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [parse](./media-query-list-parser.parse.md) + +## parse() function + +**Signature:** + +```typescript +export declare function parse(source: string, options?: { + preserveInvalidMediaQueries?: boolean; + onParseError?: (error: ParseError) => void; +}): MediaQuery[]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| source | string | | +| options | { preserveInvalidMediaQueries?: boolean; onParseError?: (error: ParseError) => void; } | _(Optional)_ | + +**Returns:** + +[MediaQuery](./media-query-list-parser.mediaquery.md)\[\] + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.parsecustommedia.md b/packages/media-query-list-parser/docs/media-query-list-parser.parsecustommedia.md new file mode 100644 index 000000000..667d1a53b --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.parsecustommedia.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [parseCustomMedia](./media-query-list-parser.parsecustommedia.md) + +## parseCustomMedia() function + +**Signature:** + +```typescript +export declare function parseCustomMedia(source: string, options?: { + preserveInvalidMediaQueries?: boolean; + onParseError?: (error: ParseError) => void; +}): CustomMedia | false; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| source | string | | +| options | { preserveInvalidMediaQueries?: boolean; onParseError?: (error: ParseError) => void; } | _(Optional)_ | + +**Returns:** + +[CustomMedia](./media-query-list-parser.custommedia.md) \| false + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.parsecustommediafromtokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.parsecustommediafromtokens.md new file mode 100644 index 000000000..fdb42c553 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.parsecustommediafromtokens.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [parseCustomMediaFromTokens](./media-query-list-parser.parsecustommediafromtokens.md) + +## parseCustomMediaFromTokens() function + +**Signature:** + +```typescript +export declare function parseCustomMediaFromTokens(tokens: Array, options?: { + preserveInvalidMediaQueries?: boolean; + onParseError?: (error: ParseError) => void; +}): CustomMedia | false; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| tokens | Array<CSSToken> | | +| options | { preserveInvalidMediaQueries?: boolean; onParseError?: (error: ParseError) => void; } | _(Optional)_ | + +**Returns:** + +[CustomMedia](./media-query-list-parser.custommedia.md) \| false + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.parsefromtokens.md b/packages/media-query-list-parser/docs/media-query-list-parser.parsefromtokens.md new file mode 100644 index 000000000..0f6757043 --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.parsefromtokens.md @@ -0,0 +1,26 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [parseFromTokens](./media-query-list-parser.parsefromtokens.md) + +## parseFromTokens() function + +**Signature:** + +```typescript +export declare function parseFromTokens(tokens: Array, options?: { + preserveInvalidMediaQueries?: boolean; + onParseError?: (error: ParseError) => void; +}): MediaQuery[]; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| tokens | Array<CSSToken> | | +| options | { preserveInvalidMediaQueries?: boolean; onParseError?: (error: ParseError) => void; } | _(Optional)_ | + +**Returns:** + +[MediaQuery](./media-query-list-parser.mediaquery.md)\[\] + diff --git a/packages/media-query-list-parser/docs/media-query-list-parser.typefromtoken.md b/packages/media-query-list-parser/docs/media-query-list-parser.typefromtoken.md new file mode 100644 index 000000000..b6d7df14d --- /dev/null +++ b/packages/media-query-list-parser/docs/media-query-list-parser.typefromtoken.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/media-query-list-parser](./media-query-list-parser.md) > [typeFromToken](./media-query-list-parser.typefromtoken.md) + +## typeFromToken() function + +**Signature:** + +```typescript +export declare function typeFromToken(token: TokenIdent): MediaType | false; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| token | TokenIdent | | + +**Returns:** + +[MediaType](./media-query-list-parser.mediatype.md) \| false + diff --git a/packages/media-query-list-parser/package.json b/packages/media-query-list-parser/package.json index 4d99d5c0c..03b46a3c8 100644 --- a/packages/media-query-list-parser/package.json +++ b/packages/media-query-list-parser/package.json @@ -53,6 +53,7 @@ }, "scripts": { "build": "rollup -c ../../rollup/default.mjs", + "docs": "node ../../.github/bin/generate-docs/api-documenter.mjs", "lint": "node ../../.github/bin/format-package-json.mjs", "prepublishOnly": "npm run build && npm run test", "stryker": "stryker run --logLevel error", diff --git a/packages/media-query-list-parser/src/nodes/custom-media.ts b/packages/media-query-list-parser/src/nodes/custom-media.ts index 0a8b7dadc..15032d496 100644 --- a/packages/media-query-list-parser/src/nodes/custom-media.ts +++ b/packages/media-query-list-parser/src/nodes/custom-media.ts @@ -127,6 +127,9 @@ export class CustomMedia { return stringify(...this.tokens()); } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -140,6 +143,9 @@ export class CustomMedia { }; } + /** + * @internal + */ isCustomMedia(): this is CustomMedia { return CustomMedia.isCustomMedia(this); } diff --git a/packages/media-query-list-parser/src/nodes/general-enclosed.ts b/packages/media-query-list-parser/src/nodes/general-enclosed.ts index e55672f11..d6536ae25 100644 --- a/packages/media-query-list-parser/src/nodes/general-enclosed.ts +++ b/packages/media-query-list-parser/src/nodes/general-enclosed.ts @@ -50,6 +50,9 @@ export class GeneralEnclosed { } } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -57,6 +60,9 @@ export class GeneralEnclosed { }; } + /** + * @internal + */ isGeneralEnclosed(): this is GeneralEnclosed { return GeneralEnclosed.isGeneralEnclosed(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-and.ts b/packages/media-query-list-parser/src/nodes/media-and.ts index 49d7bcd3f..4544a9218 100644 --- a/packages/media-query-list-parser/src/nodes/media-and.ts +++ b/packages/media-query-list-parser/src/nodes/media-and.ts @@ -56,6 +56,9 @@ export class MediaAnd { return this.media.walk(cb, stateClone); } + /** + * @internal + */ toJSON(): unknown { return { type: this.type, @@ -64,6 +67,9 @@ export class MediaAnd { }; } + /** + * @internal + */ isMediaAnd(): this is MediaAnd { return MediaAnd.isMediaAnd(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-condition-list.ts b/packages/media-query-list-parser/src/nodes/media-condition-list.ts index 7d3aadc58..30afb66c5 100644 --- a/packages/media-query-list-parser/src/nodes/media-condition-list.ts +++ b/packages/media-query-list-parser/src/nodes/media-condition-list.ts @@ -245,6 +245,9 @@ export class MediaConditionListWithOr { } } + /** + * @internal + */ toJSON(): unknown { return { type: this.type, @@ -255,6 +258,9 @@ export class MediaConditionListWithOr { }; } + /** + * @internal + */ isMediaConditionListWithOr(): this is MediaConditionListWithOr { return MediaConditionListWithOr.isMediaConditionListWithOr(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-condition.ts b/packages/media-query-list-parser/src/nodes/media-condition.ts index 691982899..8c9274f45 100644 --- a/packages/media-query-list-parser/src/nodes/media-condition.ts +++ b/packages/media-query-list-parser/src/nodes/media-condition.ts @@ -50,6 +50,9 @@ export class MediaCondition { return this.media.walk(cb, stateClone); } + /** + * @internal + */ toJSON(): unknown { return { type: this.type, @@ -57,6 +60,9 @@ export class MediaCondition { }; } + /** + * @internal + */ isMediaCondition(): this is MediaCondition { return MediaCondition.isMediaCondition(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-feature-boolean.ts b/packages/media-query-list-parser/src/nodes/media-feature-boolean.ts index 81a967097..d826f29e0 100644 --- a/packages/media-query-list-parser/src/nodes/media-feature-boolean.ts +++ b/packages/media-query-list-parser/src/nodes/media-feature-boolean.ts @@ -42,6 +42,9 @@ export class MediaFeatureBoolean { } } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -50,6 +53,9 @@ export class MediaFeatureBoolean { }; } + /** + * @internal + */ isMediaFeatureBoolean(): this is MediaFeatureBoolean { return MediaFeatureBoolean.isMediaFeatureBoolean(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-feature-name.ts b/packages/media-query-list-parser/src/nodes/media-feature-name.ts index 6312732a7..58e43faa2 100644 --- a/packages/media-query-list-parser/src/nodes/media-feature-name.ts +++ b/packages/media-query-list-parser/src/nodes/media-feature-name.ts @@ -52,6 +52,9 @@ export class MediaFeatureName { } } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -60,6 +63,9 @@ export class MediaFeatureName { }; } + /** + * @internal + */ isMediaFeatureName(): this is MediaFeatureName { return MediaFeatureName.isMediaFeatureName(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-feature-plain.ts b/packages/media-query-list-parser/src/nodes/media-feature-plain.ts index 271fd589a..fc9cf7130 100644 --- a/packages/media-query-list-parser/src/nodes/media-feature-plain.ts +++ b/packages/media-query-list-parser/src/nodes/media-feature-plain.ts @@ -74,6 +74,9 @@ export class MediaFeaturePlain { return this.value.walk(cb, stateClone); } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -83,6 +86,9 @@ export class MediaFeaturePlain { }; } + /** + * @internal + */ isMediaFeaturePlain(): this is MediaFeaturePlain { return MediaFeaturePlain.isMediaFeaturePlain(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-feature-range.ts b/packages/media-query-list-parser/src/nodes/media-feature-range.ts index e493d9666..0fcbd68f5 100644 --- a/packages/media-query-list-parser/src/nodes/media-feature-range.ts +++ b/packages/media-query-list-parser/src/nodes/media-feature-range.ts @@ -85,6 +85,9 @@ export class MediaFeatureRangeNameValue { } } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -94,6 +97,9 @@ export class MediaFeatureRangeNameValue { }; } + /** + * @internal + */ isMediaFeatureRangeNameValue(): this is MediaFeatureRangeNameValue { return MediaFeatureRangeNameValue.isMediaFeatureRangeNameValue(this); } @@ -187,6 +193,9 @@ export class MediaFeatureRangeValueName { } } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -196,6 +205,9 @@ export class MediaFeatureRangeValueName { }; } + /** + * @internal + */ isMediaFeatureRangeValueName(): this is MediaFeatureRangeValueName { return MediaFeatureRangeValueName.isMediaFeatureRangeValueName(this); } @@ -325,6 +337,9 @@ export class MediaFeatureRangeValueNameValue { } } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -335,6 +350,9 @@ export class MediaFeatureRangeValueNameValue { }; } + /** + * @internal + */ isMediaFeatureRangeValueNameValue(): this is MediaFeatureRangeValueNameValue { return MediaFeatureRangeValueNameValue.isMediaFeatureRangeValueNameValue(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-feature-value.ts b/packages/media-query-list-parser/src/nodes/media-feature-value.ts index 87f53323c..56a03c8d7 100644 --- a/packages/media-query-list-parser/src/nodes/media-feature-value.ts +++ b/packages/media-query-list-parser/src/nodes/media-feature-value.ts @@ -118,6 +118,9 @@ export class MediaFeatureValue { } } + /** + * @internal + */ toJSON() { if (Array.isArray(this.value)) { return { @@ -134,6 +137,9 @@ export class MediaFeatureValue { }; } + /** + * @internal + */ isMediaFeatureValue(): this is MediaFeatureValue { return MediaFeatureValue.isMediaFeatureValue(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-feature.ts b/packages/media-query-list-parser/src/nodes/media-feature.ts index 0caf57005..49d2c0e26 100644 --- a/packages/media-query-list-parser/src/nodes/media-feature.ts +++ b/packages/media-query-list-parser/src/nodes/media-feature.ts @@ -71,6 +71,9 @@ export class MediaFeature { } } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -80,6 +83,9 @@ export class MediaFeature { }; } + /** + * @internal + */ isMediaFeature(): this is MediaFeature { return MediaFeature.isMediaFeature(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-in-parens.ts b/packages/media-query-list-parser/src/nodes/media-in-parens.ts index ea94349b1..8b1d180f6 100644 --- a/packages/media-query-list-parser/src/nodes/media-in-parens.ts +++ b/packages/media-query-list-parser/src/nodes/media-in-parens.ts @@ -70,6 +70,9 @@ export class MediaInParens { } } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -79,6 +82,9 @@ export class MediaInParens { }; } + /** + * @internal + */ isMediaInParens(): this is MediaInParens { return MediaInParens.isMediaInParens(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-not.ts b/packages/media-query-list-parser/src/nodes/media-not.ts index 44d13a9be..510f5f28d 100644 --- a/packages/media-query-list-parser/src/nodes/media-not.ts +++ b/packages/media-query-list-parser/src/nodes/media-not.ts @@ -53,6 +53,9 @@ export class MediaNot { return this.media.walk(cb, stateClone); } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -61,6 +64,9 @@ export class MediaNot { }; } + /** + * @internal + */ isMediaNot(): this is MediaNot { return MediaNot.isMediaNot(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-or.ts b/packages/media-query-list-parser/src/nodes/media-or.ts index cc7786cdb..a639613e0 100644 --- a/packages/media-query-list-parser/src/nodes/media-or.ts +++ b/packages/media-query-list-parser/src/nodes/media-or.ts @@ -53,6 +53,9 @@ export class MediaOr { return this.media.walk(cb, stateClone); } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -61,6 +64,9 @@ export class MediaOr { }; } + /** + * @internal + */ isMediaOr(): this is MediaOr { return MediaOr.isMediaOr(this); } diff --git a/packages/media-query-list-parser/src/nodes/media-query.ts b/packages/media-query-list-parser/src/nodes/media-query.ts index 46e1f8ebb..a46a870cd 100644 --- a/packages/media-query-list-parser/src/nodes/media-query.ts +++ b/packages/media-query-list-parser/src/nodes/media-query.ts @@ -141,6 +141,9 @@ export class MediaQueryWithType { return this.media.walk(cb, stateClone); } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -152,6 +155,9 @@ export class MediaQueryWithType { }; } + /** + * @internal + */ isMediaQueryWithType(): this is MediaQueryWithType { return MediaQueryWithType.isMediaQueryWithType(this); } @@ -261,6 +267,9 @@ export class MediaQueryWithoutType { return this.media.walk(cb, stateClone); } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -269,6 +278,9 @@ export class MediaQueryWithoutType { }; } + /** + * @internal + */ isMediaQueryWithoutType(): this is MediaQueryWithoutType { return MediaQueryWithoutType.isMediaQueryWithoutType(this); } @@ -345,6 +357,9 @@ export class MediaQueryInvalid { } } + /** + * @internal + */ toJSON() { return { type: this.type, @@ -353,6 +368,9 @@ export class MediaQueryInvalid { }; } + /** + * @internal + */ isMediaQueryInvalid(): this is MediaQueryInvalid { return MediaQueryInvalid.isMediaQueryInvalid(this); } diff --git a/packages/postcss-tape/README.md b/packages/postcss-tape/README.md index b5777d3f6..d23fa95ff 100644 --- a/packages/postcss-tape/README.md +++ b/packages/postcss-tape/README.md @@ -1,4 +1,7 @@ -# PostCSS Tape for csstools/postcss-plugins +# PostCSS Tape + +[npm version][npm-url] +[Build Status][cli-url] - compare the output of your PostCSS plugin with the expected output - test that the output can be re-parsed by PostCSS @@ -36,9 +39,13 @@ postcssTape(plugin)({ Browse the [source code and tests here](https://github.com/csstools/postcss-plugins/tree/main/packages/postcss-tape) or see [tests in plugins](https://github.com/csstools/postcss-plugins/tree/main/plugins) for more usage details. > [!NOTE] -> We use `test/_tape.mjs` for our tests, but you can use any file name you want. +> We use `test/_tape.mjs` for our tests, but you can use any file name you want. > We like to group things in a `test` directory and we use a leading underscore to sort it before the css files. +## API + +[Read the API docs](./docs/postcss-tape.md) + ## File name format and test case naming Test source files and test case names are related. @@ -66,25 +73,13 @@ Set env variable `REWRITE_EXPECTS` to `true` to update all `.expect` files. example : ```json +{ "scripts": { "test": "node --test", "test:rewrite-expects": "REWRITE_EXPECTS=true node --test" - }, + } +} ``` -## Options - -### `skipPackageNameCheck` - -When your plugin name does not start with `postcss-`: - -```js -import { postcssTape } from '@csstools/postcss-tape'; -import plugin from ''; - -postcssTape(plugin, { skipPackageNameCheck: true })({ - basic: { - message: "supports basic usage", - }, -}); -``` +[cli-url]: https://github.com/csstools/postcss-plugins/actions/workflows/test.yml?query=workflow/test +[npm-url]: https://www.npmjs.com/package/@csstools/media-query-list-parser diff --git a/packages/postcss-tape/api-extractor.json b/packages/postcss-tape/api-extractor.json index 42058be51..ccef9beeb 100644 --- a/packages/postcss-tape/api-extractor.json +++ b/packages/postcss-tape/api-extractor.json @@ -1,4 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.json" + "extends": "../../api-extractor.json", + "docModel": { + "enabled": true + } } diff --git a/packages/postcss-tape/dist/index.d.ts b/packages/postcss-tape/dist/index.d.ts index e0af67192..f396aa34c 100644 --- a/packages/postcss-tape/dist/index.d.ts +++ b/packages/postcss-tape/dist/index.d.ts @@ -63,6 +63,7 @@ export declare const declarationClonerPlugin: { * postcssTape(plugin, { * skipPackageNameCheck: true, * })(...); + * ``` */ export declare type Options = { /** @@ -75,7 +76,7 @@ export declare type Options = { /** * Create a test suite for a PostCSS plugin. */ -export declare function postcssTape(currentPlugin: PluginCreator, runOptions?: Options): (options: Record) => Promise; +export declare function postcssTape(pluginCreator: PluginCreator, runOptions?: Options): (options: Record) => Promise; /** * A dummy PostCSS plugin that clones any rule with the selector `to-clone` to a new rule with the selector `cloned`. @@ -87,6 +88,9 @@ export declare const ruleClonerPlugin: { }; }; +/** + * Options for a test case. + */ export declare type TestCaseOptions = { /** Debug message */ message?: string; diff --git a/packages/postcss-tape/docs/index.md b/packages/postcss-tape/docs/index.md new file mode 100644 index 000000000..29fb206c3 --- /dev/null +++ b/packages/postcss-tape/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [@csstools/postcss-tape](./postcss-tape.md) | A test suite for PostCSS plugins. | + diff --git a/packages/postcss-tape/docs/postcss-tape.api.json b/packages/postcss-tape/docs/postcss-tape.api.json new file mode 100644 index 000000000..1e7f3a4fa --- /dev/null +++ b/packages/postcss-tape/docs/postcss-tape.api.json @@ -0,0 +1,465 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@csstools/postcss-tape!", + "docComment": "/**\n * A test suite for PostCSS plugins.\n *\n * @example\n * ```sh\n * node --test\n * ```\n *\n * ```js\n * // test/_tape.mjs\n * import { postcssTape } from '@csstools/postcss-tape';\n * import plugin from '';\n *\n * postcssTape(plugin)({\n * \tbasic: {\n * \t\tmessage: \"supports basic usage\",\n * \t},\n * \t'basic:color': {\n * \t\tmessage: \"supports { color: '' }\",\n * \t\toptions: {\n * \t\t\tcolor: 'purple'\n * \t\t}\n * \t},\n * });\n * ```\n *\n * @packageDocumentation\n */\n", + "name": "@csstools/postcss-tape", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@csstools/postcss-tape!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Variable", + "canonicalReference": "@csstools/postcss-tape!atRuleClonerPlugin:var", + "docComment": "/**\n * A dummy PostCSS plugin that clones any at rule with params `to-clone` to a new at rule with params `cloned`.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "atRuleClonerPlugin: " + }, + { + "kind": "Content", + "text": "{\n postcssPlugin: string;\n prepare(): {\n AtRuleExit(atRule: " + }, + { + "kind": "Reference", + "text": "AtRule", + "canonicalReference": "postcss!AtRule_:class" + }, + { + "kind": "Content", + "text": "): void;\n };\n}" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "atRuleClonerPlugin", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "Variable", + "canonicalReference": "@csstools/postcss-tape!declarationClonerPlugin:var", + "docComment": "/**\n * A dummy PostCSS plugin that clones any declaration with the property `to-clone` to a new declaration with the property `cloned`.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "declarationClonerPlugin: " + }, + { + "kind": "Content", + "text": "{\n postcssPlugin: string;\n Declaration(decl: " + }, + { + "kind": "Reference", + "text": "Declaration", + "canonicalReference": "postcss!Declaration_:class" + }, + { + "kind": "Content", + "text": "): void;\n}" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "declarationClonerPlugin", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/postcss-tape!Options:type", + "docComment": "/**\n * General options for `@csstools/postcss-tape`. These affect the entire test run, not individual test cases.\n *\n * @example\n * ```js\n * import { postcssTape } from '@csstools/postcss-tape';\n * import plugin from 'your-postcss-plugin';\n *\n * postcssTape(plugin, {\n * skipPackageNameCheck: true,\n * })(...);\n * ```\n *\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type Options = " + }, + { + "kind": "Content", + "text": "{\n skipPackageNameCheck?: boolean;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "releaseTag": "Public", + "name": "Options", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + }, + { + "kind": "Function", + "canonicalReference": "@csstools/postcss-tape!postcssTape:function(1)", + "docComment": "/**\n * Create a test suite for a PostCSS plugin.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function postcssTape(pluginCreator: " + }, + { + "kind": "Reference", + "text": "PluginCreator", + "canonicalReference": "postcss!postcss.PluginCreator:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ", runOptions?: " + }, + { + "kind": "Reference", + "text": "Options", + "canonicalReference": "@csstools/postcss-tape!Options:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "(options: " + }, + { + "kind": "Reference", + "text": "Record", + "canonicalReference": "!Record:type" + }, + { + "kind": "Content", + "text": ") => " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": "" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 6, + "endIndex": 13 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "pluginCreator", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 3 + }, + "isOptional": false + }, + { + "parameterName": "runOptions", + "parameterTypeTokenRange": { + "startIndex": 4, + "endIndex": 5 + }, + "isOptional": true + } + ], + "name": "postcssTape" + }, + { + "kind": "Variable", + "canonicalReference": "@csstools/postcss-tape!ruleClonerPlugin:var", + "docComment": "/**\n * A dummy PostCSS plugin that clones any rule with the selector `to-clone` to a new rule with the selector `cloned`.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "ruleClonerPlugin: " + }, + { + "kind": "Content", + "text": "{\n postcssPlugin: string;\n prepare(): {\n RuleExit(rule: " + }, + { + "kind": "Reference", + "text": "Rule", + "canonicalReference": "postcss!Rule_:class" + }, + { + "kind": "Content", + "text": "): void;\n };\n}" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "isReadonly": true, + "releaseTag": "Public", + "name": "ruleClonerPlugin", + "variableTypeTokenRange": { + "startIndex": 1, + "endIndex": 4 + } + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/postcss-tape!TestCaseOptions:type", + "docComment": "/**\n * Options for a test case.\n */\n", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type TestCaseOptions = " + }, + { + "kind": "Content", + "text": "{\n message?: string;\n options?: unknown;\n plugins?: " + }, + { + "kind": "Reference", + "text": "Array", + "canonicalReference": "!Array:interface" + }, + { + "kind": "Content", + "text": "<" + }, + { + "kind": "Reference", + "text": "Plugin", + "canonicalReference": "postcss!postcss.Plugin:interface" + }, + { + "kind": "Content", + "text": ">;\n warnings?: number;\n exception?: " + }, + { + "kind": "Reference", + "text": "RegExp", + "canonicalReference": "!RegExp:interface" + }, + { + "kind": "Content", + "text": ";\n expect?: string;\n result?: string;\n before?: () => void | " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": ";\n after?: () => void | " + }, + { + "kind": "Reference", + "text": "Promise", + "canonicalReference": "!Promise:interface" + }, + { + "kind": "Content", + "text": ";\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/test-case-options.d.ts", + "releaseTag": "Public", + "name": "TestCaseOptions", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 12 + } + } + ] + } + ] +} diff --git a/packages/postcss-tape/docs/postcss-tape.atruleclonerplugin.md b/packages/postcss-tape/docs/postcss-tape.atruleclonerplugin.md new file mode 100644 index 000000000..968fc025b --- /dev/null +++ b/packages/postcss-tape/docs/postcss-tape.atruleclonerplugin.md @@ -0,0 +1,18 @@ + + +[Home](./index.md) > [@csstools/postcss-tape](./postcss-tape.md) > [atRuleClonerPlugin](./postcss-tape.atruleclonerplugin.md) + +## atRuleClonerPlugin variable + +A dummy PostCSS plugin that clones any at rule with params `to-clone` to a new at rule with params `cloned`. + +**Signature:** + +```typescript +atRuleClonerPlugin: { + postcssPlugin: string; + prepare(): { + AtRuleExit(atRule: AtRule): void; + }; +} +``` diff --git a/packages/postcss-tape/docs/postcss-tape.declarationclonerplugin.md b/packages/postcss-tape/docs/postcss-tape.declarationclonerplugin.md new file mode 100644 index 000000000..baa6a3952 --- /dev/null +++ b/packages/postcss-tape/docs/postcss-tape.declarationclonerplugin.md @@ -0,0 +1,16 @@ + + +[Home](./index.md) > [@csstools/postcss-tape](./postcss-tape.md) > [declarationClonerPlugin](./postcss-tape.declarationclonerplugin.md) + +## declarationClonerPlugin variable + +A dummy PostCSS plugin that clones any declaration with the property `to-clone` to a new declaration with the property `cloned`. + +**Signature:** + +```typescript +declarationClonerPlugin: { + postcssPlugin: string; + Declaration(decl: Declaration): void; +} +``` diff --git a/packages/postcss-tape/docs/postcss-tape.md b/packages/postcss-tape/docs/postcss-tape.md new file mode 100644 index 000000000..74dc3621c --- /dev/null +++ b/packages/postcss-tape/docs/postcss-tape.md @@ -0,0 +1,54 @@ + + +[Home](./index.md) > [@csstools/postcss-tape](./postcss-tape.md) + +## postcss-tape package + +A test suite for PostCSS plugins. + +## Example + + +```sh +node --test +``` + +```js +// test/_tape.mjs +import { postcssTape } from '@csstools/postcss-tape'; +import plugin from ''; + +postcssTape(plugin)({ + basic: { + message: "supports basic usage", + }, + 'basic:color': { + message: "supports { color: '' }", + options: { + color: 'purple' + } + }, +}); +``` + +## Functions + +| Function | Description | +| --- | --- | +| [postcssTape(pluginCreator, runOptions)](./postcss-tape.postcsstape.md) | Create a test suite for a PostCSS plugin. | + +## Variables + +| Variable | Description | +| --- | --- | +| [atRuleClonerPlugin](./postcss-tape.atruleclonerplugin.md) | A dummy PostCSS plugin that clones any at rule with params to-clone to a new at rule with params cloned. | +| [declarationClonerPlugin](./postcss-tape.declarationclonerplugin.md) | A dummy PostCSS plugin that clones any declaration with the property to-clone to a new declaration with the property cloned. | +| [ruleClonerPlugin](./postcss-tape.ruleclonerplugin.md) | A dummy PostCSS plugin that clones any rule with the selector to-clone to a new rule with the selector cloned. | + +## Type Aliases + +| Type Alias | Description | +| --- | --- | +| [Options](./postcss-tape.options.md) | General options for @csstools/postcss-tape. These affect the entire test run, not individual test cases. | +| [TestCaseOptions](./postcss-tape.testcaseoptions.md) | Options for a test case. | + diff --git a/packages/postcss-tape/docs/postcss-tape.options.md b/packages/postcss-tape/docs/postcss-tape.options.md new file mode 100644 index 000000000..aecade468 --- /dev/null +++ b/packages/postcss-tape/docs/postcss-tape.options.md @@ -0,0 +1,28 @@ + + +[Home](./index.md) > [@csstools/postcss-tape](./postcss-tape.md) > [Options](./postcss-tape.options.md) + +## Options type + +General options for `@csstools/postcss-tape`. These affect the entire test run, not individual test cases. + +**Signature:** + +```typescript +export type Options = { + skipPackageNameCheck?: boolean; +}; +``` + +## Example + + +```js +import { postcssTape } from '@csstools/postcss-tape'; +import plugin from 'your-postcss-plugin'; + +postcssTape(plugin, { + skipPackageNameCheck: true, +})(...); +``` + diff --git a/packages/postcss-tape/docs/postcss-tape.postcsstape.md b/packages/postcss-tape/docs/postcss-tape.postcsstape.md new file mode 100644 index 000000000..7479fa8c9 --- /dev/null +++ b/packages/postcss-tape/docs/postcss-tape.postcsstape.md @@ -0,0 +1,25 @@ + + +[Home](./index.md) > [@csstools/postcss-tape](./postcss-tape.md) > [postcssTape](./postcss-tape.postcsstape.md) + +## postcssTape() function + +Create a test suite for a PostCSS plugin. + +**Signature:** + +```typescript +export declare function postcssTape(pluginCreator: PluginCreator, runOptions?: Options): (options: Record) => Promise; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| pluginCreator | PluginCreator<unknown> | | +| runOptions | [Options](./postcss-tape.options.md) | _(Optional)_ | + +**Returns:** + +(options: Record<string, [TestCaseOptions](./postcss-tape.testcaseoptions.md)>) => Promise<void> + diff --git a/packages/postcss-tape/docs/postcss-tape.ruleclonerplugin.md b/packages/postcss-tape/docs/postcss-tape.ruleclonerplugin.md new file mode 100644 index 000000000..a0f74d903 --- /dev/null +++ b/packages/postcss-tape/docs/postcss-tape.ruleclonerplugin.md @@ -0,0 +1,18 @@ + + +[Home](./index.md) > [@csstools/postcss-tape](./postcss-tape.md) > [ruleClonerPlugin](./postcss-tape.ruleclonerplugin.md) + +## ruleClonerPlugin variable + +A dummy PostCSS plugin that clones any rule with the selector `to-clone` to a new rule with the selector `cloned`. + +**Signature:** + +```typescript +ruleClonerPlugin: { + postcssPlugin: string; + prepare(): { + RuleExit(rule: Rule): void; + }; +} +``` diff --git a/packages/postcss-tape/docs/postcss-tape.testcaseoptions.md b/packages/postcss-tape/docs/postcss-tape.testcaseoptions.md new file mode 100644 index 000000000..39df9421e --- /dev/null +++ b/packages/postcss-tape/docs/postcss-tape.testcaseoptions.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/postcss-tape](./postcss-tape.md) > [TestCaseOptions](./postcss-tape.testcaseoptions.md) + +## TestCaseOptions type + +Options for a test case. + +**Signature:** + +```typescript +export type TestCaseOptions = { + message?: string; + options?: unknown; + plugins?: Array; + warnings?: number; + exception?: RegExp; + expect?: string; + result?: string; + before?: () => void | Promise; + after?: () => void | Promise; +}; +``` diff --git a/packages/postcss-tape/package.json b/packages/postcss-tape/package.json index e6eab7737..d36032ea6 100644 --- a/packages/postcss-tape/package.json +++ b/packages/postcss-tape/package.json @@ -54,6 +54,7 @@ }, "scripts": { "build": "rollup -c ../../rollup/default.mjs", + "docs": "node ../../.github/bin/generate-docs/api-documenter.mjs", "lint": "node ../../.github/bin/format-package-json.mjs", "test": "bash ./test-self/test.sh" }, diff --git a/packages/postcss-tape/src/index.ts b/packages/postcss-tape/src/index.ts index cc62fb633..de270e63a 100644 --- a/packages/postcss-tape/src/index.ts +++ b/packages/postcss-tape/src/index.ts @@ -56,6 +56,7 @@ export type { TestCaseOptions } from './test-case-options'; * postcssTape(plugin, { * skipPackageNameCheck: true, * })(...); + * ``` */ export type Options = { /** @@ -68,23 +69,23 @@ export type Options = { /** * Create a test suite for a PostCSS plugin. */ -export function postcssTape(currentPlugin: PluginCreator, runOptions?: Options) { +export function postcssTape(pluginCreator: PluginCreator, runOptions?: Options) { runOptions = runOptions ?? {}; // Plugin conforms to https://github.com/postcss/postcss/blob/main/docs/guidelines/plugin.md test('`postcss` flag is set on exported plugin creator', () => { - assert.strictEqual(currentPlugin.postcss, true); + assert.strictEqual(pluginCreator.postcss, true); }); test('exported plugin creator is a function', () => { - assert.strictEqual(typeof currentPlugin, 'function'); + assert.strictEqual(typeof pluginCreator, 'function'); }); test('`postcssPlugin` is set on a plugin instance', () => { // https://github.com/postcss/postcss/blob/main/docs/guidelines/plugin.md#15-set-pluginpostcssplugin-with-plugin-name // Set plugin.postcssPlugin with plugin name - const plugin = currentPlugin() as Plugin; + const plugin = pluginCreator() as Plugin; assert.ok(plugin.postcssPlugin); assert.strictEqual(typeof plugin.postcssPlugin, 'string'); @@ -115,7 +116,7 @@ export function postcssTape(currentPlugin: PluginCreator, runOptions?: assert.ok(packageName.startsWith('postcss-'), `package name "${packageName}" does not start with "postcss-"`); }); - await t.test('`postcss` is a peer dependency and not a direct dependency', { skip: ('postcssTapeSelfTest' in currentPlugin) }, () => { + await t.test('`postcss` is a peer dependency and not a direct dependency', { skip: ('postcssTapeSelfTest' in pluginCreator) }, () => { // https://github.com/postcss/postcss/blob/main/docs/guidelines/plugin.md#14-keep-postcss-to-peerdependencies // Keep postcss to peerDependencies @@ -125,7 +126,7 @@ export function postcssTape(currentPlugin: PluginCreator, runOptions?: }); }); - const pluginName = (currentPlugin() as Plugin).postcssPlugin; + const pluginName = (pluginCreator() as Plugin).postcssPlugin; // Test cases return async (options: Record) => { @@ -154,7 +155,7 @@ export function postcssTape(currentPlugin: PluginCreator, runOptions?: resultFilePath = path.join('.', 'test', testCaseOptions.result); } - const plugins = testCaseOptions.plugins ?? [currentPlugin(testCaseOptions.options)]; + const plugins = testCaseOptions.plugins ?? [pluginCreator(testCaseOptions.options)]; const input = await fileContentsOrEmptyString(testFilePath); const expected = await fileContentsOrEmptyString(expectFilePath); diff --git a/packages/postcss-tape/src/test-case-options.ts b/packages/postcss-tape/src/test-case-options.ts index c4461c6e9..82f15ed31 100644 --- a/packages/postcss-tape/src/test-case-options.ts +++ b/packages/postcss-tape/src/test-case-options.ts @@ -1,5 +1,8 @@ import type { Plugin } from 'postcss'; +/** + * Options for a test case. + */ export type TestCaseOptions = { /** Debug message */ message?: string, diff --git a/packages/selector-specificity/api-extractor.json b/packages/selector-specificity/api-extractor.json index 42058be51..ccef9beeb 100644 --- a/packages/selector-specificity/api-extractor.json +++ b/packages/selector-specificity/api-extractor.json @@ -1,4 +1,7 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "extends": "../../api-extractor.json" + "extends": "../../api-extractor.json", + "docModel": { + "enabled": true + } } diff --git a/packages/selector-specificity/docs/index.md b/packages/selector-specificity/docs/index.md new file mode 100644 index 000000000..fc63b63af --- /dev/null +++ b/packages/selector-specificity/docs/index.md @@ -0,0 +1,12 @@ + + +[Home](./index.md) + +## API Reference + +## Packages + +| Package | Description | +| --- | --- | +| [@csstools/selector-specificity](./selector-specificity.md) | | + diff --git a/packages/selector-specificity/docs/selector-specificity.api.json b/packages/selector-specificity/docs/selector-specificity.api.json new file mode 100644 index 000000000..b06284301 --- /dev/null +++ b/packages/selector-specificity/docs/selector-specificity.api.json @@ -0,0 +1,314 @@ +{ + "metadata": { + "toolPackage": "@microsoft/api-extractor", + "toolVersion": "7.39.0", + "schemaVersion": 1011, + "oldestForwardsCompatibleVersion": 1001, + "tsdocConfig": { + "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json", + "noStandardTags": true, + "tagDefinitions": [ + { + "tagName": "@alpha", + "syntaxKind": "modifier" + }, + { + "tagName": "@beta", + "syntaxKind": "modifier" + }, + { + "tagName": "@defaultValue", + "syntaxKind": "block" + }, + { + "tagName": "@decorator", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@deprecated", + "syntaxKind": "block" + }, + { + "tagName": "@eventProperty", + "syntaxKind": "modifier" + }, + { + "tagName": "@example", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@experimental", + "syntaxKind": "modifier" + }, + { + "tagName": "@inheritDoc", + "syntaxKind": "inline" + }, + { + "tagName": "@internal", + "syntaxKind": "modifier" + }, + { + "tagName": "@label", + "syntaxKind": "inline" + }, + { + "tagName": "@link", + "syntaxKind": "inline", + "allowMultiple": true + }, + { + "tagName": "@override", + "syntaxKind": "modifier" + }, + { + "tagName": "@packageDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@param", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@privateRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@public", + "syntaxKind": "modifier" + }, + { + "tagName": "@readonly", + "syntaxKind": "modifier" + }, + { + "tagName": "@remarks", + "syntaxKind": "block" + }, + { + "tagName": "@returns", + "syntaxKind": "block" + }, + { + "tagName": "@sealed", + "syntaxKind": "modifier" + }, + { + "tagName": "@see", + "syntaxKind": "block" + }, + { + "tagName": "@throws", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@typeParam", + "syntaxKind": "block", + "allowMultiple": true + }, + { + "tagName": "@virtual", + "syntaxKind": "modifier" + }, + { + "tagName": "@betaDocumentation", + "syntaxKind": "modifier" + }, + { + "tagName": "@internalRemarks", + "syntaxKind": "block" + }, + { + "tagName": "@preapproved", + "syntaxKind": "modifier" + } + ], + "supportForTags": { + "@alpha": true, + "@beta": true, + "@defaultValue": true, + "@decorator": true, + "@deprecated": true, + "@eventProperty": true, + "@example": true, + "@experimental": true, + "@inheritDoc": true, + "@internal": true, + "@label": true, + "@link": true, + "@override": true, + "@packageDocumentation": true, + "@param": true, + "@privateRemarks": true, + "@public": true, + "@readonly": true, + "@remarks": true, + "@returns": true, + "@sealed": true, + "@see": true, + "@throws": true, + "@typeParam": true, + "@virtual": true, + "@betaDocumentation": true, + "@internalRemarks": true, + "@preapproved": true + }, + "reportUnsupportedHtmlElements": false + } + }, + "kind": "Package", + "canonicalReference": "@csstools/selector-specificity!", + "docComment": "", + "name": "@csstools/selector-specificity", + "preserveMemberOrder": false, + "members": [ + { + "kind": "EntryPoint", + "canonicalReference": "@csstools/selector-specificity!", + "name": "", + "preserveMemberOrder": false, + "members": [ + { + "kind": "Function", + "canonicalReference": "@csstools/selector-specificity!compare:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function compare(s1: " + }, + { + "kind": "Reference", + "text": "Specificity", + "canonicalReference": "@csstools/selector-specificity!Specificity:type" + }, + { + "kind": "Content", + "text": ", s2: " + }, + { + "kind": "Reference", + "text": "Specificity", + "canonicalReference": "@csstools/selector-specificity!Specificity:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Content", + "text": "number" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 5, + "endIndex": 6 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "s1", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + }, + { + "parameterName": "s2", + "parameterTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "isOptional": false + } + ], + "name": "compare" + }, + { + "kind": "Function", + "canonicalReference": "@csstools/selector-specificity!selectorSpecificity:function(1)", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export declare function selectorSpecificity(node: " + }, + { + "kind": "Reference", + "text": "Node", + "canonicalReference": "postcss-selector-parser!parser.Node:type" + }, + { + "kind": "Content", + "text": "): " + }, + { + "kind": "Reference", + "text": "Specificity", + "canonicalReference": "@csstools/selector-specificity!Specificity:type" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "returnTypeTokenRange": { + "startIndex": 3, + "endIndex": 4 + }, + "releaseTag": "Public", + "overloadIndex": 1, + "parameters": [ + { + "parameterName": "node", + "parameterTypeTokenRange": { + "startIndex": 1, + "endIndex": 2 + }, + "isOptional": false + } + ], + "name": "selectorSpecificity" + }, + { + "kind": "TypeAlias", + "canonicalReference": "@csstools/selector-specificity!Specificity:type", + "docComment": "", + "excerptTokens": [ + { + "kind": "Content", + "text": "export type Specificity = " + }, + { + "kind": "Content", + "text": "{\n a: number;\n b: number;\n c: number;\n}" + }, + { + "kind": "Content", + "text": ";" + } + ], + "fileUrlPath": "dist/_types/index.d.ts", + "releaseTag": "Public", + "name": "Specificity", + "typeTokenRange": { + "startIndex": 1, + "endIndex": 2 + } + } + ] + } + ] +} diff --git a/packages/selector-specificity/docs/selector-specificity.compare.md b/packages/selector-specificity/docs/selector-specificity.compare.md new file mode 100644 index 000000000..d3dd5e74a --- /dev/null +++ b/packages/selector-specificity/docs/selector-specificity.compare.md @@ -0,0 +1,23 @@ + + +[Home](./index.md) > [@csstools/selector-specificity](./selector-specificity.md) > [compare](./selector-specificity.compare.md) + +## compare() function + +**Signature:** + +```typescript +export declare function compare(s1: Specificity, s2: Specificity): number; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| s1 | [Specificity](./selector-specificity.specificity.md) | | +| s2 | [Specificity](./selector-specificity.specificity.md) | | + +**Returns:** + +number + diff --git a/packages/selector-specificity/docs/selector-specificity.md b/packages/selector-specificity/docs/selector-specificity.md new file mode 100644 index 000000000..4e0f356db --- /dev/null +++ b/packages/selector-specificity/docs/selector-specificity.md @@ -0,0 +1,19 @@ + + +[Home](./index.md) > [@csstools/selector-specificity](./selector-specificity.md) + +## selector-specificity package + +## Functions + +| Function | Description | +| --- | --- | +| [compare(s1, s2)](./selector-specificity.compare.md) | | +| [selectorSpecificity(node)](./selector-specificity.selectorspecificity.md) | | + +## Type Aliases + +| Type Alias | Description | +| --- | --- | +| [Specificity](./selector-specificity.specificity.md) | | + diff --git a/packages/selector-specificity/docs/selector-specificity.selectorspecificity.md b/packages/selector-specificity/docs/selector-specificity.selectorspecificity.md new file mode 100644 index 000000000..7b18b4979 --- /dev/null +++ b/packages/selector-specificity/docs/selector-specificity.selectorspecificity.md @@ -0,0 +1,22 @@ + + +[Home](./index.md) > [@csstools/selector-specificity](./selector-specificity.md) > [selectorSpecificity](./selector-specificity.selectorspecificity.md) + +## selectorSpecificity() function + +**Signature:** + +```typescript +export declare function selectorSpecificity(node: Node): Specificity; +``` + +## Parameters + +| Parameter | Type | Description | +| --- | --- | --- | +| node | Node | | + +**Returns:** + +[Specificity](./selector-specificity.specificity.md) + diff --git a/packages/selector-specificity/docs/selector-specificity.specificity.md b/packages/selector-specificity/docs/selector-specificity.specificity.md new file mode 100644 index 000000000..22d64b7d1 --- /dev/null +++ b/packages/selector-specificity/docs/selector-specificity.specificity.md @@ -0,0 +1,15 @@ + + +[Home](./index.md) > [@csstools/selector-specificity](./selector-specificity.md) > [Specificity](./selector-specificity.specificity.md) + +## Specificity type + +**Signature:** + +```typescript +export type Specificity = { + a: number; + b: number; + c: number; +}; +``` diff --git a/packages/selector-specificity/package.json b/packages/selector-specificity/package.json index e4b1b4f2b..879871e47 100644 --- a/packages/selector-specificity/package.json +++ b/packages/selector-specificity/package.json @@ -55,6 +55,7 @@ }, "scripts": { "build": "rollup -c ../../rollup/default.mjs", + "docs": "node ../../.github/bin/generate-docs/api-documenter.mjs", "lint": "node ../../.github/bin/format-package-json.mjs", "prepublishOnly": "npm run build && npm run test", "stryker": "stryker run --logLevel error",