shweet 0.0.33 → 0.0.35
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/README.md +992 -1
- package/dist/index.d.ts +367 -381
- package/dist/index.js +11 -11
- package/package.json +8 -9
package/dist/index.d.ts
CHANGED
|
@@ -1,155 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type ModuleLike = {
|
|
5
|
-
[Symbol.toStringTag]: "Module";
|
|
6
|
-
default?: unknown;
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
};
|
|
9
|
-
declare const isFN: (v: any) => v is Function;
|
|
10
|
-
declare const isAsync: (v: any) => v is Function;
|
|
11
|
-
declare const isPromise: (v: any) => v is Function;
|
|
12
|
-
declare const isNumber: (value: any) => boolean;
|
|
13
|
-
declare const isObject: (val: any) => val is Record<string, any>;
|
|
14
|
-
declare const isPlainObject: (value: any) => boolean;
|
|
15
|
-
declare const isModule: (obj: any) => obj is ModuleLike;
|
|
16
|
-
declare const isArraybuff: (val: any) => val is string | ArrayBuffer | Uint8Array<ArrayBufferLike>;
|
|
17
|
-
declare const isClassOrId: (k: string) => boolean;
|
|
18
|
-
declare const isBool: (v: any) => v is boolean;
|
|
19
|
-
declare const isStr: (v: any) => v is string;
|
|
20
|
-
declare const isArr: (v: any) => v is any[];
|
|
21
|
-
declare const isObj: (v: any) => v is object;
|
|
22
|
-
declare const isNum: (v: any) => v is number;
|
|
23
|
-
declare const isNull: (v: any) => v is null;
|
|
24
|
-
declare const isNotNull: <T>(v: T) => v is Exclude<T, null>;
|
|
25
|
-
declare const isUndefined: (v: any) => v is undefined;
|
|
26
|
-
declare const isDefined: <T>(v: T) => v is Exclude<T, undefined>;
|
|
27
|
-
declare const isInt: (str: string) => boolean;
|
|
28
|
-
declare const isWindow: boolean;
|
|
29
|
-
declare const isNotWindow: boolean;
|
|
30
|
-
|
|
31
|
-
type is_ModuleLike = ModuleLike;
|
|
32
|
-
declare const is_isArr: typeof isArr;
|
|
33
|
-
declare const is_isArraybuff: typeof isArraybuff;
|
|
34
|
-
declare const is_isAsync: typeof isAsync;
|
|
35
|
-
declare const is_isBool: typeof isBool;
|
|
36
|
-
declare const is_isClassOrId: typeof isClassOrId;
|
|
37
|
-
declare const is_isDefined: typeof isDefined;
|
|
38
|
-
declare const is_isFN: typeof isFN;
|
|
39
|
-
declare const is_isInt: typeof isInt;
|
|
40
|
-
declare const is_isModule: typeof isModule;
|
|
41
|
-
declare const is_isNotNull: typeof isNotNull;
|
|
42
|
-
declare const is_isNotWindow: typeof isNotWindow;
|
|
43
|
-
declare const is_isNull: typeof isNull;
|
|
44
|
-
declare const is_isNum: typeof isNum;
|
|
45
|
-
declare const is_isNumber: typeof isNumber;
|
|
46
|
-
declare const is_isObj: typeof isObj;
|
|
47
|
-
declare const is_isObject: typeof isObject;
|
|
48
|
-
declare const is_isPlainObject: typeof isPlainObject;
|
|
49
|
-
declare const is_isPromise: typeof isPromise;
|
|
50
|
-
declare const is_isStr: typeof isStr;
|
|
51
|
-
declare const is_isUndefined: typeof isUndefined;
|
|
52
|
-
declare const is_isWindow: typeof isWindow;
|
|
53
|
-
declare namespace is {
|
|
54
|
-
export { is_isArr as isArr, is_isArraybuff as isArraybuff, is_isAsync as isAsync, is_isBool as isBool, is_isClassOrId as isClassOrId, is_isDefined as isDefined, is_isFN as isFN, is_isInt as isInt, is_isModule as isModule, is_isNotNull as isNotNull, is_isNotWindow as isNotWindow, is_isNull as isNull, is_isNum as isNum, is_isNumber as isNumber, is_isObj as isObj, is_isObject as isObject, is_isPlainObject as isPlainObject, is_isPromise as isPromise, is_isStr as isStr, is_isUndefined as isUndefined, is_isWindow as isWindow };
|
|
55
|
-
export type { is_ModuleLike as ModuleLike };
|
|
56
|
-
}
|
|
1
|
+
import { isArray, isDefined, isFunction, isNull, isObject, isString, isUndefined, Mapped } from '@ohmyqt/u';
|
|
2
|
+
export { log } from '@ohmyqt/u';
|
|
57
3
|
|
|
58
4
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* @template V - The type of the values in the map.
|
|
5
|
+
* Value-level number guard matching the migrated source's original behavior.
|
|
6
|
+
* Unlike `@ohmyqt/u`'s `isNumber`, `NaN` is still a number here, which keeps
|
|
7
|
+
* `Value` output unchanged for non-finite CSS values.
|
|
63
8
|
*/
|
|
64
|
-
declare
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
9
|
+
declare const isNumber: (value: unknown) => value is number;
|
|
10
|
+
/**
|
|
11
|
+
* Numeric-key guard matching the original helper used for keyframe keys.
|
|
12
|
+
* Accepts numeric strings such as `"50"` so `50` becomes `"50%"`.
|
|
13
|
+
*/
|
|
14
|
+
declare const isNumeric: (value: unknown) => boolean;
|
|
15
|
+
declare const isClassOrId: (key: string) => boolean;
|
|
71
16
|
|
|
72
|
-
declare
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
declare
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
17
|
+
declare const guards_isArray: typeof isArray;
|
|
18
|
+
declare const guards_isClassOrId: typeof isClassOrId;
|
|
19
|
+
declare const guards_isDefined: typeof isDefined;
|
|
20
|
+
declare const guards_isFunction: typeof isFunction;
|
|
21
|
+
declare const guards_isNull: typeof isNull;
|
|
22
|
+
declare const guards_isNumber: typeof isNumber;
|
|
23
|
+
declare const guards_isNumeric: typeof isNumeric;
|
|
24
|
+
declare const guards_isObject: typeof isObject;
|
|
25
|
+
declare const guards_isString: typeof isString;
|
|
26
|
+
declare const guards_isUndefined: typeof isUndefined;
|
|
27
|
+
declare namespace guards {
|
|
28
|
+
export {
|
|
29
|
+
guards_isArray as isArray,
|
|
30
|
+
guards_isClassOrId as isClassOrId,
|
|
31
|
+
guards_isDefined as isDefined,
|
|
32
|
+
guards_isFunction as isFunction,
|
|
33
|
+
guards_isNull as isNull,
|
|
34
|
+
guards_isNumber as isNumber,
|
|
35
|
+
guards_isNumeric as isNumeric,
|
|
36
|
+
guards_isObject as isObject,
|
|
37
|
+
guards_isString as isString,
|
|
38
|
+
guards_isUndefined as isUndefined,
|
|
39
|
+
};
|
|
85
40
|
}
|
|
86
41
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
* - `DD, D` —— Day of Month
|
|
98
|
-
* - `HH, H, hh, h` —— Hour
|
|
99
|
-
* - `mm, m` —— Minute
|
|
100
|
-
* - `ss, s` —— Second
|
|
101
|
-
* - `SSS` —— Millisecond
|
|
102
|
-
* - `A, a` —— AM/PM
|
|
103
|
-
* - `Q` —— Quarter
|
|
104
|
-
* - `DoY` —— Day of Year
|
|
105
|
-
* @param pattern - Format string with tokens (default: `"YYYY-MM-DD HH:mm:ss"`)
|
|
106
|
-
* @param locale - Optional locale or array of locales (default: system locale)
|
|
107
|
-
*/
|
|
108
|
-
format(pattern?: string, locale?: string | string[]): string;
|
|
109
|
-
}
|
|
110
|
-
interface DateConstructor {
|
|
111
|
-
/**
|
|
112
|
-
* Register or override a custom format token.
|
|
113
|
-
* @param token The token string to replace (e.g. "DoY")
|
|
114
|
-
* @param fn A function that returns a string when formatting
|
|
115
|
-
*/
|
|
116
|
-
registerFormat(token: string, fn: (d: Date, locale?: string | string[]) => string): void;
|
|
117
|
-
/**
|
|
118
|
-
*
|
|
119
|
-
* * Format a date using tokens.
|
|
120
|
-
*
|
|
121
|
-
* ### Available tokens:
|
|
122
|
-
* - `YYYY, YY` —— Year
|
|
123
|
-
* - `MMMM, MMM, MM, M` —— Month
|
|
124
|
-
* - `dddd, ddd` —— Weekday
|
|
125
|
-
* - `DD, D` —— Day of Month
|
|
126
|
-
* - `HH, H, hh, h` —— Hour
|
|
127
|
-
* - `mm, m` —— Minute
|
|
128
|
-
* - `ss, s` —— Second
|
|
129
|
-
* - `SSS` —— Millisecond
|
|
130
|
-
* - `A, a` —— AM/PM
|
|
131
|
-
* - `Q` —— Quarter
|
|
132
|
-
* - `DoY` —— Day of Year
|
|
133
|
-
* @param pattern - Format string with tokens (default: `"YYYY-MM-DD HH:mm:ss"`)
|
|
134
|
-
* @param locale - Optional locale or array of locales (default: system locale)
|
|
135
|
-
*/
|
|
136
|
-
format(pattern?: string, locale?: string | string[]): string;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
42
|
+
type ObjectChanges = {
|
|
43
|
+
added: Record<string, unknown>;
|
|
44
|
+
removed: Record<string, unknown>;
|
|
45
|
+
modified: Record<string, {
|
|
46
|
+
old: unknown;
|
|
47
|
+
new: unknown;
|
|
48
|
+
}>;
|
|
49
|
+
};
|
|
50
|
+
declare const compareObjects: (oldObject: object, newObject: object) => ObjectChanges;
|
|
51
|
+
declare const hasObjectChanges: (changes: ObjectChanges) => boolean;
|
|
139
52
|
|
|
53
|
+
type V = string | number | boolean;
|
|
54
|
+
type obj<T> = Record<string, T>;
|
|
55
|
+
|
|
56
|
+
declare class returner {
|
|
57
|
+
static arr<T = string>(value?: unknown): T[];
|
|
58
|
+
static num(value: unknown, fallback?: number): number;
|
|
59
|
+
static str(value: unknown): string;
|
|
60
|
+
static arr2obj(value: unknown[], switched?: boolean): Record<string, any>;
|
|
61
|
+
}
|
|
62
|
+
declare class Formatteer {
|
|
63
|
+
val: unknown;
|
|
64
|
+
constructor(val: unknown);
|
|
65
|
+
get px(): string;
|
|
66
|
+
get rem(): string;
|
|
67
|
+
get pr(): string;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Small public utility namespace preserved from the legacy helper barrel.
|
|
71
|
+
*/
|
|
140
72
|
declare class __ {
|
|
141
73
|
static rand(min?: number, max?: number): number;
|
|
142
|
-
static fill(count: number, fill?:
|
|
74
|
+
static fill(count: number, fill?: unknown): any[];
|
|
143
75
|
static new({ dom, id, inner, }: {
|
|
144
76
|
dom: keyof HTMLElementTagNameMap | keyof SVGElementTagNameMap;
|
|
145
77
|
id?: string;
|
|
146
78
|
inner?: any;
|
|
147
79
|
}): HTMLElement;
|
|
148
|
-
static randFrom(
|
|
149
|
-
static randArray<T>(
|
|
150
|
-
static randomAZ: () => string
|
|
80
|
+
static randFrom(source: unknown[] | object): unknown;
|
|
81
|
+
static randArray<T>(source?: T[], length?: number, unique?: boolean): T[];
|
|
82
|
+
static randomAZ: () => string;
|
|
151
83
|
static makeID: (length: number) => string;
|
|
152
|
-
static class(
|
|
84
|
+
static class(attributes: obj<any>, ...classes: (string | undefined | boolean)[]): void;
|
|
153
85
|
static get O(): {
|
|
154
86
|
vals: {
|
|
155
87
|
<T>(o: {
|
|
@@ -167,51 +99,95 @@ declare class __ {
|
|
|
167
99
|
} | ArrayLike<T>): [string, T][];
|
|
168
100
|
(o: {}): [string, any][];
|
|
169
101
|
};
|
|
170
|
-
has: (
|
|
102
|
+
has: (target: object, key: PropertyKey) => boolean;
|
|
171
103
|
ass: {
|
|
172
104
|
<T extends {}, U>(target: T, source: U): T & U;
|
|
173
105
|
<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
|
|
174
106
|
<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
|
|
175
107
|
(target: object, ...sources: any[]): any;
|
|
176
108
|
};
|
|
177
|
-
len: (
|
|
109
|
+
len: (target?: object) => number;
|
|
178
110
|
};
|
|
179
|
-
static get is(): typeof
|
|
111
|
+
static get is(): typeof guards;
|
|
180
112
|
static get return(): typeof returner;
|
|
181
|
-
static isHREF(
|
|
182
|
-
static sleep: (ms?: number) => Promise<
|
|
113
|
+
static isHREF(path: string, href: string): boolean;
|
|
114
|
+
static sleep: (ms?: number) => Promise<void>;
|
|
183
115
|
static get screen(): "xs" | "sm" | "smd" | "md" | "lg" | "xl" | "xxl" | undefined;
|
|
184
116
|
bytes(bytes: number): string;
|
|
185
|
-
static format(
|
|
186
|
-
static compareObjects:
|
|
187
|
-
|
|
188
|
-
removed: Record<string, any>;
|
|
189
|
-
modified: Record<string, {
|
|
190
|
-
old: any;
|
|
191
|
-
new: any;
|
|
192
|
-
}>;
|
|
193
|
-
};
|
|
194
|
-
static isObjectUdpated: (changes: {
|
|
195
|
-
added: Record<string, any>;
|
|
196
|
-
removed: Record<string, any>;
|
|
197
|
-
modified: Record<string, {
|
|
198
|
-
old: any;
|
|
199
|
-
new: any;
|
|
200
|
-
}>;
|
|
201
|
-
}) => boolean;
|
|
117
|
+
static format(value: any): Formatteer;
|
|
118
|
+
static compareObjects: typeof compareObjects;
|
|
119
|
+
static isObjectUdpated: typeof hasObjectChanges;
|
|
202
120
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
121
|
+
|
|
122
|
+
interface mtype {
|
|
123
|
+
xs?: CSSValue;
|
|
124
|
+
sm?: CSSValue;
|
|
125
|
+
smd?: CSSValue;
|
|
126
|
+
md?: CSSValue;
|
|
127
|
+
lg?: CSSValue;
|
|
128
|
+
xl?: CSSValue;
|
|
129
|
+
xxl?: CSSValue;
|
|
130
|
+
no_hover?: CSSValue;
|
|
131
|
+
mobile?: CSSValue;
|
|
132
|
+
print?: CSSValue;
|
|
133
|
+
dark?: CSSValue;
|
|
134
|
+
light?: CSSValue;
|
|
135
|
+
screen?: CSSValue;
|
|
208
136
|
}
|
|
209
|
-
declare class
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
137
|
+
declare class media {
|
|
138
|
+
[key: string]: any;
|
|
139
|
+
static default: keyof mtype;
|
|
140
|
+
static readonly prop: mtype;
|
|
141
|
+
static readonly extra: mtype;
|
|
142
|
+
constructor(defValue?: CSSValue, g?: obj<any>);
|
|
143
|
+
static get breakpoints(): {
|
|
144
|
+
xs: string;
|
|
145
|
+
sm: string;
|
|
146
|
+
smd: string;
|
|
147
|
+
md: string;
|
|
148
|
+
lg: string;
|
|
149
|
+
xl: string;
|
|
150
|
+
xxl: string;
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
type exmed$1 = {
|
|
154
|
+
[k: string]: undefined | CSSValue;
|
|
155
|
+
};
|
|
156
|
+
declare function med(g: mtype & exmed$1): media;
|
|
157
|
+
declare function med(defValue: CSSValue): media;
|
|
158
|
+
declare function med(defValue: CSSValue, g: mtype & exmed$1): media;
|
|
159
|
+
/**
|
|
160
|
+
* Constructor options for `Medyas` and its subclasses.
|
|
161
|
+
*
|
|
162
|
+
* Every field is optional so a subclass can be instantiated as `new Preset()`,
|
|
163
|
+
* with only a prefix (`new Preset({ prefix: "md" })`), or with its own data and
|
|
164
|
+
* shared media buckets.
|
|
165
|
+
*/
|
|
166
|
+
interface MedyasOptions<Q = Record<string, any>> {
|
|
167
|
+
prefix?: string;
|
|
168
|
+
data?: Q;
|
|
169
|
+
values?: Record<string, media>;
|
|
170
|
+
}
|
|
171
|
+
declare class Medyas<T extends Medyas<T>, Q = Record<string, any>> {
|
|
172
|
+
[k: number]: this;
|
|
173
|
+
_prefix?: string | undefined;
|
|
174
|
+
data: Q;
|
|
175
|
+
protected _values: Record<string, media>;
|
|
176
|
+
constructor({ prefix, data, values }?: MedyasOptions<Q>);
|
|
177
|
+
get XS(): T;
|
|
178
|
+
get SM(): T;
|
|
179
|
+
get SMD(): T;
|
|
180
|
+
get MD(): T;
|
|
181
|
+
get LG(): T;
|
|
182
|
+
get XL(): T;
|
|
183
|
+
get XXL(): T;
|
|
184
|
+
get NO_HOVER(): T;
|
|
185
|
+
get MOBILE(): T;
|
|
186
|
+
get PRINT(): T;
|
|
187
|
+
get SCREEN(): T;
|
|
188
|
+
get DARK(): T;
|
|
189
|
+
set _value(val: CSSinR);
|
|
190
|
+
get _value(): Record<string, media>;
|
|
215
191
|
}
|
|
216
192
|
|
|
217
193
|
declare class _Var {
|
|
@@ -240,13 +216,15 @@ interface xtraCSS extends Partial<CSSStyleDeclaration> {
|
|
|
240
216
|
webkitBoxDecorationBreak: string;
|
|
241
217
|
boxDecorationBreak: string;
|
|
242
218
|
webkitBoxReflect: string;
|
|
219
|
+
webkitTouchCallout: string;
|
|
243
220
|
}
|
|
244
221
|
interface fontFace {
|
|
245
|
-
src?: string;
|
|
222
|
+
src?: string | string[];
|
|
246
223
|
fontStretch?: "condensed" | "ultra-condensed" | "extra-condensed" | "semi-condensed" | "expanded" | "semi-expanded" | "extra-expanded" | "ultra-expanded";
|
|
247
224
|
fontStyle?: "normal" | "italic" | "oblique";
|
|
248
225
|
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
249
226
|
unicodeRange?: CSSValue;
|
|
227
|
+
fontDisplay: "auto" | "block" | "swap" | "fallback" | "optional";
|
|
250
228
|
}
|
|
251
229
|
type CSSinR = {
|
|
252
230
|
[P in keyof xtraCSS]?: CSSValue | media;
|
|
@@ -254,6 +232,7 @@ type CSSinR = {
|
|
|
254
232
|
[p: string]: CSSValue | media;
|
|
255
233
|
} | CSSinR[];
|
|
256
234
|
type atCSS = string;
|
|
235
|
+
type CSSF = CSSinR | Record<string, CSSinR> | Medyas<any, {}>;
|
|
257
236
|
type CSS = Record<string, CSSinR | Record<string, CSSinR>>;
|
|
258
237
|
type KFX = CSSinR | Medyas<any, {}>;
|
|
259
238
|
type KFCSS = obj<{
|
|
@@ -262,388 +241,305 @@ type KFCSS = obj<{
|
|
|
262
241
|
[percent: `${string}%`]: KFX;
|
|
263
242
|
}>;
|
|
264
243
|
|
|
265
|
-
interface mtype {
|
|
266
|
-
xs?: CSSValue;
|
|
267
|
-
sm?: CSSValue;
|
|
268
|
-
smd?: CSSValue;
|
|
269
|
-
md?: CSSValue;
|
|
270
|
-
lg?: CSSValue;
|
|
271
|
-
xl?: CSSValue;
|
|
272
|
-
xxl?: CSSValue;
|
|
273
|
-
no_hover?: CSSValue;
|
|
274
|
-
mobile?: CSSValue;
|
|
275
|
-
print?: CSSValue;
|
|
276
|
-
dark?: CSSValue;
|
|
277
|
-
screen?: CSSValue;
|
|
278
|
-
}
|
|
279
|
-
declare class media {
|
|
280
|
-
[key: string]: any;
|
|
281
|
-
static default: keyof mtype;
|
|
282
|
-
static readonly prop: mtype;
|
|
283
|
-
static readonly extra: mtype;
|
|
284
|
-
constructor(defValue?: CSSValue, g?: obj<any>);
|
|
285
|
-
static get breakpoints(): any;
|
|
286
|
-
}
|
|
287
|
-
declare function med(g: mtype & {
|
|
288
|
-
[k: string]: undefined | CSSValue;
|
|
289
|
-
}): media;
|
|
290
|
-
declare function med(defValue: CSSValue, g: mtype & {
|
|
291
|
-
[k: string]: undefined | CSSValue;
|
|
292
|
-
}): media;
|
|
293
|
-
interface MedCFG<Q = Record<string, any>> {
|
|
294
|
-
prefix?: string;
|
|
295
|
-
data: Q;
|
|
296
|
-
values: Record<string, media>;
|
|
297
|
-
}
|
|
298
|
-
declare class Medyas<T extends Medyas<T>, Q = Record<string, any>> {
|
|
299
|
-
[k: number]: this;
|
|
300
|
-
_prefix?: string | undefined;
|
|
301
|
-
data: Q;
|
|
302
|
-
protected _values: Record<string, media>;
|
|
303
|
-
constructor({ prefix, data, values }?: MedCFG);
|
|
304
|
-
get XS(): Medyas<T, Q>;
|
|
305
|
-
get SM(): T;
|
|
306
|
-
get SMD(): T;
|
|
307
|
-
get MD(): T;
|
|
308
|
-
get LG(): T;
|
|
309
|
-
get XL(): T;
|
|
310
|
-
get XXL(): T;
|
|
311
|
-
get NO_HOVER(): T;
|
|
312
|
-
get MOBILE(): T;
|
|
313
|
-
get PRINT(): T;
|
|
314
|
-
get SCREEN(): T;
|
|
315
|
-
get DARK(): T;
|
|
316
|
-
set _value(val: CSSinR);
|
|
317
|
-
get _value(): CSSinR;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
244
|
declare class support {
|
|
321
|
-
value:
|
|
245
|
+
value: Mapped<string, CSSinR[]>;
|
|
322
246
|
__: (...css: CSSinR[]) => this;
|
|
323
247
|
constructor(css: CSSinR | string);
|
|
324
248
|
}
|
|
325
249
|
declare function supports(css: CSSinR | string): (...css: CSSinR[]) => support;
|
|
326
250
|
|
|
327
|
-
declare class Proc {
|
|
328
|
-
private base;
|
|
329
|
-
constructor(base: Base);
|
|
330
|
-
private props;
|
|
331
|
-
private addPrefixToAnimation;
|
|
332
|
-
private saveAnim;
|
|
333
|
-
private process;
|
|
334
|
-
set(name: string, css: CSSinR, data: CMapper): void;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
type CMapper = Mapper<string, Mapper<string, media | support[]>>;
|
|
338
|
-
declare class Base<T = Record<string, any>> {
|
|
339
|
-
PRE: string;
|
|
340
|
-
EXPORT?: boolean | undefined;
|
|
341
|
-
UNIT?: string | undefined;
|
|
342
|
-
[k: string]: any;
|
|
343
|
-
PS: Proc;
|
|
344
|
-
PREFIX: string;
|
|
345
|
-
ARR: Mapper<string, Set<string>>;
|
|
346
|
-
CID: Mapper<string, string>;
|
|
347
|
-
DATA: CMapper;
|
|
348
|
-
ANIM: Mapper<string, Set<string>>;
|
|
349
|
-
IMPORTED: Base[];
|
|
350
|
-
constructor(PRE?: string, prefix?: string, EXPORT?: boolean | undefined, UNIT?: string | undefined);
|
|
351
|
-
get(target: Base, prop: string, receiver: any): any;
|
|
352
|
-
set(target: any, prop: string, val: any): boolean;
|
|
353
|
-
get css(): T;
|
|
354
|
-
load(css: Base): this;
|
|
355
|
-
__(f: CSS): void;
|
|
356
|
-
}
|
|
357
|
-
declare class FontFace extends Base<obj<fontFace>> {
|
|
358
|
-
constructor(prefix?: string);
|
|
359
|
-
set(target: any, prop: string, val: fontFace): boolean;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
251
|
declare class ps {
|
|
363
252
|
static attr(d: obj<string>): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
364
|
-
[x: string]: (
|
|
253
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
365
254
|
};
|
|
366
255
|
static after(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
367
|
-
[x: string]: (
|
|
256
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
368
257
|
};
|
|
369
258
|
static before(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
370
|
-
[x: string]: (
|
|
259
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
371
260
|
};
|
|
372
261
|
static backdrop(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
373
|
-
[x: string]: (
|
|
262
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
374
263
|
};
|
|
375
264
|
static cue(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
376
|
-
[x: string]: (
|
|
265
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
377
266
|
};
|
|
378
267
|
static cueRegion(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
379
|
-
[x: string]: (
|
|
268
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
380
269
|
};
|
|
381
270
|
static firstLetter(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
382
|
-
[x: string]: (
|
|
271
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
383
272
|
};
|
|
384
273
|
static firstLine(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
385
|
-
[x: string]: (
|
|
274
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
386
275
|
};
|
|
387
276
|
static marker(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
388
|
-
[x: string]: (
|
|
277
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
389
278
|
};
|
|
390
279
|
static part(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
391
|
-
[x: string]: (
|
|
280
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
392
281
|
};
|
|
393
282
|
static placeholder(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
394
|
-
[x: string]: (
|
|
283
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
395
284
|
};
|
|
396
285
|
static selection(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
397
|
-
[x: string]: (
|
|
286
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
398
287
|
};
|
|
399
288
|
static slotted(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
400
|
-
[x: string]: (
|
|
289
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
401
290
|
};
|
|
402
291
|
static spellingError(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
403
|
-
[x: string]: (
|
|
292
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
404
293
|
};
|
|
405
294
|
static targetText(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
406
|
-
[x: string]: (
|
|
295
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
407
296
|
};
|
|
408
297
|
static viewTransition(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
409
|
-
[x: string]: (
|
|
298
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
410
299
|
};
|
|
411
300
|
static viewTransitionGroup(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
412
|
-
[x: string]: (
|
|
301
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
413
302
|
};
|
|
414
303
|
static viewTransitionImagePair(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
415
|
-
[x: string]: (
|
|
304
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
416
305
|
};
|
|
417
306
|
static viewTransitionNew(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
418
|
-
[x: string]: (
|
|
307
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
419
308
|
};
|
|
420
309
|
static viewTransitionOld(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
421
|
-
[x: string]: (
|
|
310
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
422
311
|
};
|
|
423
312
|
static scrollbar(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
424
|
-
[x: string]: (
|
|
313
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
425
314
|
};
|
|
426
315
|
static scrollbarThumb(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
427
|
-
[x: string]: (
|
|
316
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
428
317
|
};
|
|
429
318
|
static scrollbarTrack(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
430
|
-
[x: string]: (
|
|
319
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
431
320
|
};
|
|
432
321
|
static scrollbarCorner(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
433
|
-
[x: string]: (
|
|
322
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
434
323
|
};
|
|
435
324
|
static active(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
436
|
-
[x: string]: (
|
|
325
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
437
326
|
};
|
|
438
327
|
static anyLink(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
439
|
-
[x: string]: (
|
|
328
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
440
329
|
};
|
|
441
330
|
static autofill(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
442
|
-
[x: string]: (
|
|
331
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
443
332
|
};
|
|
444
333
|
static blank(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
445
|
-
[x: string]: (
|
|
334
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
446
335
|
};
|
|
447
336
|
static checked(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
448
|
-
[x: string]: (
|
|
337
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
449
338
|
};
|
|
450
339
|
static current(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
451
|
-
[x: string]: (
|
|
340
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
452
341
|
};
|
|
453
342
|
static default(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
454
|
-
[x: string]: (
|
|
343
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
455
344
|
};
|
|
456
345
|
static defined(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
457
|
-
[x: string]: (
|
|
346
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
458
347
|
};
|
|
459
348
|
static disabled(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
460
|
-
[x: string]: (
|
|
349
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
461
350
|
};
|
|
462
351
|
static empty(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
463
|
-
[x: string]: (
|
|
352
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
464
353
|
};
|
|
465
354
|
static enabled(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
466
|
-
[x: string]: (
|
|
355
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
467
356
|
};
|
|
468
357
|
static first(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
469
|
-
[x: string]: (
|
|
358
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
470
359
|
};
|
|
471
360
|
static firstChild(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
472
|
-
[x: string]: (
|
|
361
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
473
362
|
};
|
|
474
363
|
static firstOfType(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
475
|
-
[x: string]: (
|
|
364
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
476
365
|
};
|
|
477
366
|
static fullscreen(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
478
|
-
[x: string]: (
|
|
367
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
479
368
|
};
|
|
480
369
|
static future(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
481
|
-
[x: string]: (
|
|
370
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
482
371
|
};
|
|
483
372
|
static focus(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
484
|
-
[x: string]: (
|
|
373
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
485
374
|
};
|
|
486
375
|
static focusVisible(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
487
|
-
[x: string]: (
|
|
376
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
488
377
|
};
|
|
489
378
|
static focusWithin(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
490
|
-
[x: string]: (
|
|
379
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
491
380
|
};
|
|
492
381
|
static host(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
493
|
-
[x: string]: (
|
|
382
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
494
383
|
};
|
|
495
384
|
static hover(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
496
|
-
[x: string]: (
|
|
385
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
497
386
|
};
|
|
498
387
|
static indeterminate(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
499
|
-
[x: string]: (
|
|
388
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
500
389
|
};
|
|
501
390
|
static inRange(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
502
|
-
[x: string]: (
|
|
391
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
503
392
|
};
|
|
504
393
|
static invalid(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
505
|
-
[x: string]: (
|
|
394
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
506
395
|
};
|
|
507
396
|
static lastChild(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
508
|
-
[x: string]: (
|
|
397
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
509
398
|
};
|
|
510
399
|
static lastOfType(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
511
|
-
[x: string]: (
|
|
400
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
512
401
|
};
|
|
513
402
|
static left(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
514
|
-
[x: string]: (
|
|
403
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
515
404
|
};
|
|
516
405
|
static link(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
517
|
-
[x: string]: (
|
|
406
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
518
407
|
};
|
|
519
408
|
static localLink(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
520
|
-
[x: string]: (
|
|
409
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
521
410
|
};
|
|
522
411
|
static modal(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
523
|
-
[x: string]: (
|
|
412
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
524
413
|
};
|
|
525
414
|
static onlyChild(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
526
|
-
[x: string]: (
|
|
415
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
527
416
|
};
|
|
528
417
|
static onlyOfType(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
529
|
-
[x: string]: (
|
|
418
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
530
419
|
};
|
|
531
420
|
static optional(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
532
|
-
[x: string]: (
|
|
421
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
533
422
|
};
|
|
534
423
|
static outOfRange(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
535
|
-
[x: string]: (
|
|
424
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
536
425
|
};
|
|
537
426
|
static past(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
538
|
-
[x: string]: (
|
|
427
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
539
428
|
};
|
|
540
429
|
static pictureInPicture(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
541
|
-
[x: string]: (
|
|
430
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
542
431
|
};
|
|
543
432
|
static placeholderShown(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
544
|
-
[x: string]: (
|
|
433
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
545
434
|
};
|
|
546
435
|
static paused(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
547
|
-
[x: string]: (
|
|
436
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
548
437
|
};
|
|
549
438
|
static playing(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
550
|
-
[x: string]: (
|
|
439
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
551
440
|
};
|
|
552
441
|
static readOnly(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
553
|
-
[x: string]: (
|
|
442
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
554
443
|
};
|
|
555
444
|
static readWrite(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
556
|
-
[x: string]: (
|
|
445
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
557
446
|
};
|
|
558
447
|
static required(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
559
|
-
[x: string]: (
|
|
448
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
560
449
|
};
|
|
561
450
|
static right(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
562
|
-
[x: string]: (
|
|
451
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
563
452
|
};
|
|
564
453
|
static root(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
565
|
-
[x: string]: (
|
|
454
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
566
455
|
};
|
|
567
456
|
static scope(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
568
|
-
[x: string]: (
|
|
457
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
569
458
|
};
|
|
570
459
|
static target(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
571
|
-
[x: string]: (
|
|
460
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
572
461
|
};
|
|
573
462
|
static targetWithin(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
574
|
-
[x: string]: (
|
|
463
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
575
464
|
};
|
|
576
465
|
static userInvalid(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
577
|
-
[x: string]: (
|
|
466
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
578
467
|
};
|
|
579
468
|
static valid(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
580
|
-
[x: string]: (
|
|
469
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
581
470
|
};
|
|
582
471
|
static visited(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
583
|
-
[x: string]: (
|
|
472
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
584
473
|
};
|
|
585
474
|
static dir(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
586
|
-
[x: string]: (
|
|
475
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
587
476
|
};
|
|
588
477
|
static has(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
589
|
-
[x: string]: (
|
|
478
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
590
479
|
};
|
|
591
480
|
static host_(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
592
|
-
[x: string]: (
|
|
481
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
593
482
|
};
|
|
594
483
|
static hostContext(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
595
|
-
[x: string]: (
|
|
484
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
596
485
|
};
|
|
597
486
|
static is(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
598
|
-
[x: string]: (
|
|
487
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
599
488
|
};
|
|
600
489
|
static lang(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
601
|
-
[x: string]: (
|
|
490
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
602
491
|
};
|
|
603
492
|
static not(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
604
|
-
[x: string]: (
|
|
493
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
605
494
|
};
|
|
606
495
|
static nthChild(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
607
|
-
[x: string]: (
|
|
496
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
608
497
|
};
|
|
609
498
|
static nthCol(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
610
|
-
[x: string]: (
|
|
499
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
611
500
|
};
|
|
612
501
|
static nthLastChild(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
613
|
-
[x: string]: (
|
|
502
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
614
503
|
};
|
|
615
504
|
static nthLastCol(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
616
|
-
[x: string]: (
|
|
505
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
617
506
|
};
|
|
618
507
|
static nthLastOfType(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
619
|
-
[x: string]: (
|
|
508
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
620
509
|
};
|
|
621
510
|
static nthOfType(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
622
|
-
[x: string]: (
|
|
511
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
623
512
|
};
|
|
624
513
|
static state(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
625
|
-
[x: string]: (
|
|
514
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
626
515
|
};
|
|
627
516
|
static where(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
628
|
-
[x: string]: (
|
|
517
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* i.e outer-spin-button
|
|
521
|
+
* @param xx string
|
|
522
|
+
*/
|
|
523
|
+
static webkit(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
524
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
629
525
|
};
|
|
630
526
|
static and(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
631
|
-
[x: string]: (
|
|
527
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
632
528
|
};
|
|
633
529
|
static child(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
634
|
-
[x: string]: (
|
|
530
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
635
531
|
};
|
|
636
532
|
static desc(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
637
|
-
[x: string]: (
|
|
533
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
638
534
|
};
|
|
639
535
|
static next(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
640
|
-
[x: string]: (
|
|
536
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
641
537
|
};
|
|
642
538
|
static general(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
643
|
-
[x: string]: (
|
|
539
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
644
540
|
};
|
|
645
541
|
static withClass(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
646
|
-
[x: string]: (
|
|
542
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
647
543
|
};
|
|
648
544
|
}
|
|
649
545
|
|
|
@@ -724,6 +620,7 @@ declare class f extends g {
|
|
|
724
620
|
static translateY(Y: CSSValue): string;
|
|
725
621
|
static translateZ(...sfs: CSSValue[]): string;
|
|
726
622
|
static url(url: CSSValue): string;
|
|
623
|
+
static format(format: string): string;
|
|
727
624
|
static var(st: string, opt?: CSSValue): string;
|
|
728
625
|
}
|
|
729
626
|
|
|
@@ -788,33 +685,54 @@ interface propCfg {
|
|
|
788
685
|
type undefNull = CSSValue | undefined | null | undefNull[];
|
|
789
686
|
declare const Value: (val: CSSValue | undefNull, cfg?: propCfg) => string;
|
|
790
687
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
688
|
+
declare class Proc {
|
|
689
|
+
private base;
|
|
690
|
+
constructor(base: Base);
|
|
691
|
+
private prefixAnimationValues;
|
|
692
|
+
private addPrefixToAnimation;
|
|
693
|
+
private saveAnim;
|
|
694
|
+
private processDeclaration;
|
|
695
|
+
set(name: string, css: CSSinR, data: CMapper): void;
|
|
799
696
|
}
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
697
|
+
|
|
698
|
+
type CMapper = Mapped<string, Mapped<string, media | support[]>>;
|
|
699
|
+
declare class Base<T = Record<string, any>> {
|
|
700
|
+
PRE: string;
|
|
701
|
+
EXPORT?: boolean | undefined;
|
|
702
|
+
UNIT?: string | undefined;
|
|
703
|
+
/** Source `__filename` of the instance that owns this handler. */
|
|
704
|
+
SOURCE: string;
|
|
705
|
+
[k: string]: any;
|
|
706
|
+
PS: Proc;
|
|
707
|
+
PREFIX: string;
|
|
708
|
+
ARR: Mapped<string, Set<string>>;
|
|
709
|
+
CID: Mapped<string, string>;
|
|
710
|
+
DATA: CMapper;
|
|
711
|
+
ANIM: Mapped<string, Set<string>>;
|
|
712
|
+
IMPORTED: Base[];
|
|
713
|
+
constructor(PRE?: string, prefix?: string, EXPORT?: boolean | undefined, UNIT?: string | undefined,
|
|
714
|
+
/** Source `__filename` of the instance that owns this handler. */
|
|
715
|
+
SOURCE?: string);
|
|
716
|
+
get(target: Base, prop: string, receiver: any): any;
|
|
717
|
+
set(target: any, prop: string, val: any): boolean;
|
|
718
|
+
get css(): T;
|
|
719
|
+
load(css: Base): this;
|
|
720
|
+
__(f: CSS): void;
|
|
808
721
|
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
722
|
+
|
|
723
|
+
declare class FontFace extends Base<obj<fontFace>> {
|
|
724
|
+
constructor(prefix?: string, source?: string);
|
|
725
|
+
set(target: any, prop: string, val: fontFace): boolean;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
declare class Shweet<T extends exmed = exmed> {
|
|
813
729
|
[k: string]: any;
|
|
814
730
|
path: string;
|
|
815
731
|
name: string | undefined;
|
|
816
732
|
prefix: string;
|
|
817
733
|
exportMap?: boolean | undefined;
|
|
734
|
+
onDiagnostic: DiagnosticHandler | undefined;
|
|
735
|
+
private mediaFeatures;
|
|
818
736
|
protected _imported: Set<string>;
|
|
819
737
|
d: __CSS;
|
|
820
738
|
i: __CSS;
|
|
@@ -828,11 +746,79 @@ declare class Shweet {
|
|
|
828
746
|
};
|
|
829
747
|
font: FontFace["css"];
|
|
830
748
|
shweet: this;
|
|
831
|
-
save: (x?:
|
|
832
|
-
constructor({ __filename, name, prefix, shweets, exportMap, webkitKeyframes, unit, }:
|
|
749
|
+
save: (x?: SaveOptions) => this;
|
|
750
|
+
constructor({ __filename, name, prefix, shweets, exportMap, webkitKeyframes, mediaFeature, unit, onDiagnostic, }: ShweetOptions<T>);
|
|
833
751
|
get imported(): string[];
|
|
752
|
+
med(g: mtype & T): media;
|
|
753
|
+
med(defValue: CSSValue): media;
|
|
754
|
+
med(defValue: CSSValue, g: mtype & T): media;
|
|
834
755
|
}
|
|
835
756
|
declare function fileName(path: string): string | undefined;
|
|
836
757
|
|
|
837
|
-
|
|
838
|
-
|
|
758
|
+
type exmed = {
|
|
759
|
+
[k: string]: undefined | CSSValue;
|
|
760
|
+
};
|
|
761
|
+
type DiagnosticSeverity = "warning" | "error";
|
|
762
|
+
/**
|
|
763
|
+
* Structured, source-aware compiler diagnostic.
|
|
764
|
+
*
|
|
765
|
+
* The Proxy assignment API records no source spans, so diagnostics deliberately
|
|
766
|
+
* carry no line/column information. `sourcePath` is the `__filename` of the
|
|
767
|
+
* instance whose handler produced the diagnostic (including imported
|
|
768
|
+
* instances), and `rule`/`selector` identify the affected at-rule/keyframe
|
|
769
|
+
* step when one exists.
|
|
770
|
+
*/
|
|
771
|
+
interface CompileDiagnostic {
|
|
772
|
+
/** Stable identifier suitable for programmatic filtering. */
|
|
773
|
+
code: string;
|
|
774
|
+
severity: DiagnosticSeverity;
|
|
775
|
+
message: string;
|
|
776
|
+
sourcePath: string;
|
|
777
|
+
/** Affected rule, e.g. `@keyframes spin`. */
|
|
778
|
+
rule?: string;
|
|
779
|
+
/** Affected selector or keyframe step, e.g. `from`. */
|
|
780
|
+
selector?: string;
|
|
781
|
+
}
|
|
782
|
+
type DiagnosticHandler = (diagnostic: CompileDiagnostic) => void;
|
|
783
|
+
interface SaveOptions {
|
|
784
|
+
dir?: string | string[];
|
|
785
|
+
mapDir?: string | string[];
|
|
786
|
+
mapName?: string;
|
|
787
|
+
minify?: boolean;
|
|
788
|
+
shaker?: string[];
|
|
789
|
+
include?: string[];
|
|
790
|
+
includeAnimation?: string[];
|
|
791
|
+
name?: string;
|
|
792
|
+
}
|
|
793
|
+
interface ShweetOptions<T extends exmed> {
|
|
794
|
+
__filename: string;
|
|
795
|
+
name?: string;
|
|
796
|
+
prefix?: string;
|
|
797
|
+
shweets?: Shweet | Shweet[];
|
|
798
|
+
exportMap?: boolean;
|
|
799
|
+
webkitKeyframes?: boolean;
|
|
800
|
+
unit?: "rem" | "em" | "px" | "pt" | "pc";
|
|
801
|
+
mediaFeature?: T;
|
|
802
|
+
/**
|
|
803
|
+
* Optional structured diagnostic sink. When supplied it replaces the
|
|
804
|
+
* default console logging for diagnostics that were previously logged.
|
|
805
|
+
*/
|
|
806
|
+
onDiagnostic?: DiagnosticHandler;
|
|
807
|
+
}
|
|
808
|
+
type __CSS = CSS & {
|
|
809
|
+
__: (a: CSS) => void;
|
|
810
|
+
};
|
|
811
|
+
|
|
812
|
+
declare const Z: (cx: CSS, a: Record<string, [CSSF, Record<string, CSSF>]>) => void;
|
|
813
|
+
declare const X: (cx: CSS, a: Record<string, CSSF | XZ>, mc?: string) => void;
|
|
814
|
+
declare class XZ {
|
|
815
|
+
__: Record<string, CSSF>;
|
|
816
|
+
private merge;
|
|
817
|
+
constructor(__: Record<string, CSSF>, merge?: boolean);
|
|
818
|
+
$(mc: string, cx: CSS): void;
|
|
819
|
+
}
|
|
820
|
+
declare const XX: (a: Record<string, CSSF>) => XZ;
|
|
821
|
+
declare const XY: (a: Record<string, CSSF>) => XZ;
|
|
822
|
+
|
|
823
|
+
export { Medyas, Shweet, Value, Var, Vars, X, XX, XY, Z, __, f, fileName, med, media, ps, supports, v };
|
|
824
|
+
export type { CSS, CSSF, CSSValue, CSSinR, CompileDiagnostic, DiagnosticHandler, DiagnosticSeverity, KFCSS, MedyasOptions, VarType, atCSS, fontFace };
|