Начат фронтенд

This commit is contained in:
Georgiy Syralev
2025-09-16 14:47:30 +03:00
parent f37e85e2e0
commit 40de29041d
2100 changed files with 305701 additions and 11807 deletions

210
node_modules/postcss/lib/input.d.ts generated vendored
View File

@@ -1,56 +1,41 @@
import { CssSyntaxError, ProcessOptions } from './postcss.js'
import PreviousMap from './previous-map.js'
declare namespace Input {
export interface FilePosition {
/**
* Column of inclusive start position in source file.
*/
column: number
export interface FilePosition {
/**
* URL for the source file.
*/
url: string
/**
* Column of exclusive end position in source file.
*/
endColumn?: number
/**
* Absolute path to the source file.
*/
file?: string
/**
* Line of exclusive end position in source file.
*/
endLine?: number
/**
* Line of inclusive start position in source file.
*/
line: number
/**
* Offset of exclusive end position in source file.
*/
endOffset?: number
/**
* Column of inclusive start position in source file.
*/
column: number
/**
* Absolute path to the source file.
*/
file?: string
/**
* Line of exclusive end position in source file.
*/
endLine?: number
/**
* Line of inclusive start position in source file.
*/
line: number
/**
* Column of exclusive end position in source file.
*/
endColumn?: number
/**
* Offset of inclusive start position in source file.
*/
offset: number
/**
* Source code.
*/
source?: string
/**
* URL for the source file.
*/
url: string
}
// eslint-disable-next-line @typescript-eslint/no-use-before-define
export { Input_ as default }
/**
* Source code.
*/
source?: string
}
/**
@@ -61,7 +46,7 @@ declare namespace Input {
* const input = root.source.input
* ```
*/
declare class Input_ {
export default class Input {
/**
* Input CSS source.
*
@@ -73,15 +58,14 @@ declare class Input_ {
css: string
/**
* Input source with support for non-CSS documents.
* The input source map passed from a compilation step before PostCSS
* (for example, from Sass compiler).
*
* ```js
* const input = postcss.parse('a{}', { from: file, document: '<style>a {}</style>' }).input
* input.document //=> "<style>a {}</style>"
* input.css //=> "a{}"
* root.source.input.map.consumer().sources //=> ['a.sass']
* ```
*/
document: string
map: PreviousMap
/**
* The absolute path to the CSS source file defined
@@ -94,11 +78,6 @@ declare class Input_ {
*/
file?: string
/**
* The flag to indicate whether or not the source code has Unicode BOM.
*/
hasBOM: boolean
/**
* The unique ID of the CSS source. It will be created if `from` option
* is not provided (because PostCSS does not know the file path).
@@ -112,14 +91,15 @@ declare class Input_ {
id?: string
/**
* The input source map passed from a compilation step before PostCSS
* (for example, from Sass compiler).
*
* ```js
* root.source.input.map.consumer().sources //=> ['a.sass']
* ```
* The flag to indicate whether or not the source code has Unicode BOM.
*/
map: PreviousMap
hasBOM: boolean
/**
* @param css Input CSS source.
* @param opts Process options.
*/
constructor(css: string, opts?: ProcessOptions)
/**
* The CSS source identifier. Contains `Input#file` if the user
@@ -135,63 +115,6 @@ declare class Input_ {
*/
get from(): string
/**
* @param css Input CSS source.
* @param opts Process options.
*/
constructor(css: string, opts?: ProcessOptions)
/**
* Returns `CssSyntaxError` with information about the error and its position.
*/
error(
message: string,
start:
| {
column: number
line: number
}
| {
offset: number
},
end:
| {
column: number
line: number
}
| {
offset: number
},
opts?: { plugin?: CssSyntaxError['plugin'] }
): CssSyntaxError
error(
message: string,
line: number,
column: number,
opts?: { plugin?: CssSyntaxError['plugin'] }
): CssSyntaxError
error(
message: string,
offset: number,
opts?: { plugin?: CssSyntaxError['plugin'] }
): CssSyntaxError
/**
* Converts source line and column to offset.
*
* @param line Source line.
* @param column Source column.
* @return Source offset.
*/
fromLineAndColumn(line: number, column: number): number
/**
* Converts source offset to line and column.
*
* @param offset Source offset.
*/
fromOffset(offset: number): { col: number; line: number } | null
/**
* Reads the input source map and returns a symbol position
* in the input source (e.g., in a Sass file that was compiled
@@ -216,12 +139,47 @@ declare class Input_ {
column: number,
endLine?: number,
endColumn?: number
): false | Input.FilePosition
): FilePosition | false
/** Converts this to a JSON-friendly object representation. */
toJSON(): object
/**
* Converts source offset to line and column.
*
* @param offset Source offset.
*/
fromOffset(offset: number): { line: number; col: number } | null
/**
* Returns `CssSyntaxError` with information about the error and its position.
*/
error(
message: string,
line: number,
column: number,
opts?: { plugin?: CssSyntaxError['plugin'] }
): CssSyntaxError
error(
message: string,
offset: number,
opts?: { plugin?: CssSyntaxError['plugin'] }
): CssSyntaxError
error(
message: string,
start:
| {
offset: number
}
| {
line: number
column: number
},
end:
| {
offset: number
}
| {
line: number
column: number
},
opts?: { plugin?: CssSyntaxError['plugin'] }
): CssSyntaxError
}
declare class Input extends Input_ {}
export = Input