🎉 initiate project *astro_rewrite*
This commit is contained in:
parent
ffd4d5e86c
commit
2ba37bfbe3
8658 changed files with 2268794 additions and 2538 deletions
8
node_modules/emmet/dist/stylesheet/color.d.ts
generated
vendored
Normal file
8
node_modules/emmet/dist/stylesheet/color.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import type { ColorValue } from '@emmetio/css-abbreviation';
|
||||
export default function color(token: ColorValue, shortHex?: boolean): string;
|
||||
/**
|
||||
* Output given color as hex value
|
||||
* @param short Produce short value (e.g. #fff instead of #ffffff), if possible
|
||||
*/
|
||||
export declare function asHex(token: ColorValue, short?: boolean): string;
|
||||
export declare function frac(num: number, digits?: number): string;
|
||||
13
node_modules/emmet/dist/stylesheet/format.d.ts
generated
vendored
Normal file
13
node_modules/emmet/dist/stylesheet/format.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { CSSAbbreviation } from '@emmetio/css-abbreviation';
|
||||
import { Config } from '../config.js';
|
||||
export declare const CSSAbbreviationScope: {
|
||||
/** Include all possible snippets in match */
|
||||
readonly Global: "@@global";
|
||||
/** Include raw snippets only (e.g. no properties) in abbreviation match */
|
||||
readonly Section: "@@section";
|
||||
/** Include properties only in abbreviation match */
|
||||
readonly Property: "@@property";
|
||||
/** Resolve abbreviation in context of CSS property value */
|
||||
readonly Value: "@@value";
|
||||
};
|
||||
export default function css(abbr: CSSAbbreviation, config: Config): string;
|
||||
21
node_modules/emmet/dist/stylesheet/index.d.ts
generated
vendored
Normal file
21
node_modules/emmet/dist/stylesheet/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
import type { CSSAbbreviation } from '@emmetio/css-abbreviation';
|
||||
import { Config, SnippetsMap } from '../config.js';
|
||||
import type { CSSSnippet } from './snippets.js';
|
||||
export { default as stringify, CSSAbbreviationScope } from './format.js';
|
||||
type MatchInput = CSSSnippet | string;
|
||||
/**
|
||||
* Parses given Emmet abbreviation into a final abbreviation tree with all
|
||||
* required transformations applied
|
||||
*/
|
||||
export default function parse(abbr: string | CSSAbbreviation, config: Config): CSSAbbreviation;
|
||||
/**
|
||||
* Converts given raw snippets into internal snippets representation
|
||||
*/
|
||||
export declare function convertSnippets(snippets: SnippetsMap): CSSSnippet[];
|
||||
/**
|
||||
* Finds best matching item from `items` array
|
||||
* @param abbr Abbreviation to match
|
||||
* @param items List of items for match
|
||||
* @param minScore The minimum score the best matched item should have to be a valid match.
|
||||
*/
|
||||
export declare function findBestMatch<T extends MatchInput>(abbr: string, items: T[], minScore?: number, partialMatch?: boolean): T | null;
|
||||
11
node_modules/emmet/dist/stylesheet/score.d.ts
generated
vendored
Normal file
11
node_modules/emmet/dist/stylesheet/score.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/**
|
||||
* Calculates how close `str1` matches `str2` using fuzzy match.
|
||||
* How matching works:
|
||||
* – first characters of both `str1` and `str2` *must* match
|
||||
* – `str1` length larger than `str2` length is allowed only when `unmatched` is true
|
||||
* – ideal match is when `str1` equals to `str2` (score: 1)
|
||||
* – next best match is `str2` starts with `str1` (score: 1 × percent of matched characters)
|
||||
* – other scores depend on how close characters of `str1` to the beginning of `str2`
|
||||
* @param partialMatch Allow length `str1` to be greater than `str2` length
|
||||
*/
|
||||
export default function scoreMatch(str1: string, str2: string, partialMatch?: boolean): number;
|
||||
34
node_modules/emmet/dist/stylesheet/snippets.d.ts
generated
vendored
Normal file
34
node_modules/emmet/dist/stylesheet/snippets.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import type { CSSValue, FunctionCall, Literal } from '@emmetio/css-abbreviation';
|
||||
export type CSSSnippet = CSSSnippetRaw | CSSSnippetProperty;
|
||||
interface KeywordMap {
|
||||
[name: string]: FunctionCall | Literal;
|
||||
}
|
||||
export declare const enum CSSSnippetType {
|
||||
Raw = "Raw",
|
||||
Property = "Property"
|
||||
}
|
||||
interface CSSSnippetBase {
|
||||
type: CSSSnippetType;
|
||||
key: string;
|
||||
}
|
||||
export interface CSSSnippetRaw extends CSSSnippetBase {
|
||||
type: CSSSnippetType.Raw;
|
||||
value: string;
|
||||
}
|
||||
export interface CSSSnippetProperty extends CSSSnippetBase {
|
||||
type: CSSSnippetType.Property;
|
||||
property: string;
|
||||
value: CSSValue[][];
|
||||
keywords: KeywordMap;
|
||||
dependencies: CSSSnippetProperty[];
|
||||
}
|
||||
/**
|
||||
* Creates structure for holding resolved CSS snippet
|
||||
*/
|
||||
export default function createSnippet(key: string, value: string): CSSSnippet;
|
||||
/**
|
||||
* Nests more specific CSS properties into shorthand ones, e.g.
|
||||
* `background-position-x` -> `background-position` -> `background`
|
||||
*/
|
||||
export declare function nest(snippets: CSSSnippet[]): CSSSnippet[];
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue