@master/css 2.0.0-beta.197 → 2.0.0-beta.199
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/functions.d.ts +4 -3
- package/dist/config/index.d.ts +47 -35
- package/dist/config/rules.d.ts +274 -273
- package/dist/config/variables.d.ts +70 -54
- package/dist/core.d.ts +16 -15
- package/dist/index.browser.bundle.js +1 -1
- package/dist/index.bundle.js +4 -4
- package/dist/index.bundle.mjs +4 -4
- package/dist/index.d.ts +1 -1
- package/dist/layer.d.ts +8 -10
- package/dist/rule.d.ts +19 -16
- package/package.json +1 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FunctionDefinition } from './';
|
|
2
2
|
declare const functions: {
|
|
3
3
|
$: {
|
|
4
4
|
colored: boolean;
|
|
5
5
|
transform(value: any): {
|
|
6
6
|
type: string;
|
|
7
|
-
name:
|
|
7
|
+
name: string;
|
|
8
|
+
fallback: string;
|
|
8
9
|
}[];
|
|
9
10
|
};
|
|
10
|
-
calc:
|
|
11
|
+
calc: FunctionDefinition;
|
|
11
12
|
translate: {
|
|
12
13
|
unit: string;
|
|
13
14
|
};
|
package/dist/config/index.d.ts
CHANGED
|
@@ -6,56 +6,68 @@ import variables from './variables';
|
|
|
6
6
|
import rules from './rules';
|
|
7
7
|
import functions from './functions';
|
|
8
8
|
import { CSSDeclarations } from '../types/css-declarations';
|
|
9
|
-
import type { Rule,
|
|
9
|
+
import type { Rule, RuleDefinition, ValueComponent } from '../rule';
|
|
10
10
|
declare const config: Config;
|
|
11
11
|
export { config, mediaQueries, selectors, semantics, rules, functions, animations, variables };
|
|
12
|
-
export type
|
|
13
|
-
export type
|
|
14
|
-
[key in '' | `@${string}`]?:
|
|
12
|
+
export type VariableValue = number | string | Array<number | string>;
|
|
13
|
+
export type VariableDefinition = {
|
|
14
|
+
[key in '' | `@${string}`]?: VariableValue;
|
|
15
15
|
} & {
|
|
16
|
-
[key: string]:
|
|
16
|
+
[key: string]: VariableValue | VariableDefinition;
|
|
17
17
|
};
|
|
18
|
-
export type
|
|
19
|
-
unit?: string;
|
|
20
|
-
colored?: boolean;
|
|
21
|
-
transform?(this: Rule, value: string): string | ValueComponent[];
|
|
22
|
-
};
|
|
23
|
-
export type ConfigAnimation = {
|
|
18
|
+
export type AnimationDefinition = {
|
|
24
19
|
[key in 'from' | 'to']?: CSSDeclarations;
|
|
25
20
|
} & {
|
|
26
21
|
[key: string]: CSSDeclarations;
|
|
27
22
|
};
|
|
23
|
+
export type AnimationDefinitions = {
|
|
24
|
+
[key: string]: AnimationDefinition;
|
|
25
|
+
};
|
|
26
|
+
export type SelectorDefinitions = {
|
|
27
|
+
[key: string]: string | string[] | SelectorDefinitions;
|
|
28
|
+
};
|
|
29
|
+
export type MediaQueryDefinitions = {
|
|
30
|
+
[key: string]: number | string | MediaQueryDefinitions;
|
|
31
|
+
};
|
|
32
|
+
export type StyleDefinitions = {
|
|
33
|
+
[key: string]: string | StyleDefinitions;
|
|
34
|
+
};
|
|
35
|
+
export type RuleDefinitions = {
|
|
36
|
+
[key in keyof typeof rules | string]?: RuleDefinition;
|
|
37
|
+
};
|
|
38
|
+
export type VariableDefinitions = {
|
|
39
|
+
[key in keyof typeof rules]?: VariableDefinition;
|
|
40
|
+
} & {
|
|
41
|
+
[key: string]: VariableDefinition | VariableValue;
|
|
42
|
+
};
|
|
43
|
+
export type SemanticDefinitions = {
|
|
44
|
+
[key in keyof typeof semantics]?: CSSDeclarations;
|
|
45
|
+
} & {
|
|
46
|
+
[key: string]: CSSDeclarations;
|
|
47
|
+
};
|
|
48
|
+
export interface FunctionDefinition {
|
|
49
|
+
unit?: string;
|
|
50
|
+
colored?: boolean;
|
|
51
|
+
transform?(this: Rule, value: string): string | ValueComponent[];
|
|
52
|
+
}
|
|
53
|
+
export type FunctionDefinitions = {
|
|
54
|
+
[key: string]: FunctionDefinition;
|
|
55
|
+
};
|
|
28
56
|
export interface Config {
|
|
29
57
|
extends?: (Config | {
|
|
30
58
|
config: Config;
|
|
31
59
|
})[];
|
|
32
|
-
styles?:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
selectors?: {
|
|
39
|
-
[key: string]: string | string[] | Config['selectors'];
|
|
40
|
-
};
|
|
41
|
-
semantics?: {
|
|
42
|
-
[key in keyof typeof semantics]?: CSSDeclarations;
|
|
43
|
-
} & {
|
|
44
|
-
[key: string]: CSSDeclarations;
|
|
45
|
-
};
|
|
46
|
-
variables?: {
|
|
47
|
-
[key in keyof typeof rules]?: ConfigVariableGroup;
|
|
48
|
-
} & {
|
|
49
|
-
[key: string]: ConfigVariableGroup | ConfigVariable;
|
|
50
|
-
};
|
|
51
|
-
rules?: {
|
|
52
|
-
[key in keyof typeof rules | string]?: RuleOptions;
|
|
53
|
-
};
|
|
60
|
+
styles?: StyleDefinitions;
|
|
61
|
+
mediaQueries?: MediaQueryDefinitions;
|
|
62
|
+
selectors?: SelectorDefinitions;
|
|
63
|
+
semantics?: SemanticDefinitions;
|
|
64
|
+
variables?: VariableDefinitions;
|
|
65
|
+
rules?: RuleDefinitions;
|
|
54
66
|
rootSize?: number;
|
|
55
67
|
scope?: string;
|
|
56
68
|
important?: boolean;
|
|
57
69
|
override?: boolean;
|
|
58
|
-
functions?:
|
|
59
|
-
animations?:
|
|
70
|
+
functions?: FunctionDefinitions;
|
|
71
|
+
animations?: AnimationDefinitions;
|
|
60
72
|
themeDriver?: 'class' | 'media' | 'host';
|
|
61
73
|
}
|