shweet 0.0.34 → 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 +355 -386
- 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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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;
|
|
52
|
+
|
|
53
|
+
type V = string | number | boolean;
|
|
54
|
+
type obj<T> = Record<string, T>;
|
|
139
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,100 +99,25 @@ 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;
|
|
202
|
-
}
|
|
203
|
-
declare class returner {
|
|
204
|
-
static arr<T = string>(val?: any): T[];
|
|
205
|
-
static num(val: any, iferr?: any): number;
|
|
206
|
-
static str(val: any): string;
|
|
207
|
-
static arr2obj(val: any[], switched?: boolean): any;
|
|
208
|
-
}
|
|
209
|
-
declare class Formatteer {
|
|
210
|
-
val: any;
|
|
211
|
-
constructor(val: any);
|
|
212
|
-
get px(): string;
|
|
213
|
-
get rem(): string;
|
|
214
|
-
get pr(): string;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
declare class _Var {
|
|
218
|
-
k: string;
|
|
219
|
-
fallback?: CSSValue;
|
|
220
|
-
var: string;
|
|
221
|
-
value: media;
|
|
222
|
-
constructor(vr?: obj<CSSValue | media>, fallback?: CSSValue);
|
|
223
|
-
__(fallback?: CSSValue): string;
|
|
224
|
-
new(val: CSSValue, fallback?: CSSValue): _Var;
|
|
225
|
-
}
|
|
226
|
-
declare const Var: (vr: obj<CSSValue | media>, fallback?: CSSValue) => _Var;
|
|
227
|
-
declare const Vars: <T extends Record<string, CSSValue | media>>(vr: T) => { [K in keyof T]: _Var; };
|
|
228
|
-
|
|
229
|
-
type CSSValue = V | _Var | undefined | CSSValue[];
|
|
230
|
-
type VarType = _Var;
|
|
231
|
-
interface xtraCSS extends Partial<CSSStyleDeclaration> {
|
|
232
|
-
src?: string;
|
|
233
|
-
webkitBackdropFilter?: string;
|
|
234
|
-
webkitTextFillColor?: string;
|
|
235
|
-
webkitFontSmoothing?: string;
|
|
236
|
-
webkitTapHighlightColor?: string;
|
|
237
|
-
textFillColor?: string;
|
|
238
|
-
lineClamp?: string;
|
|
239
|
-
textJustify?: string;
|
|
240
|
-
webkitBoxDecorationBreak: string;
|
|
241
|
-
boxDecorationBreak: string;
|
|
242
|
-
webkitBoxReflect: string;
|
|
117
|
+
static format(value: any): Formatteer;
|
|
118
|
+
static compareObjects: typeof compareObjects;
|
|
119
|
+
static isObjectUdpated: typeof hasObjectChanges;
|
|
243
120
|
}
|
|
244
|
-
interface fontFace {
|
|
245
|
-
src?: string;
|
|
246
|
-
fontStretch?: "condensed" | "ultra-condensed" | "extra-condensed" | "semi-condensed" | "expanded" | "semi-expanded" | "extra-expanded" | "ultra-expanded";
|
|
247
|
-
fontStyle?: "normal" | "italic" | "oblique";
|
|
248
|
-
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
249
|
-
unicodeRange?: CSSValue;
|
|
250
|
-
}
|
|
251
|
-
type CSSinR = {
|
|
252
|
-
[P in keyof xtraCSS]?: CSSValue | media;
|
|
253
|
-
} | {
|
|
254
|
-
[p: string]: CSSValue | media;
|
|
255
|
-
} | CSSinR[];
|
|
256
|
-
type atCSS = string;
|
|
257
|
-
type CSS = Record<string, CSSinR | Record<string, CSSinR>>;
|
|
258
|
-
type KFX = CSSinR | Medyas<any, {}>;
|
|
259
|
-
type KFCSS = obj<{
|
|
260
|
-
from?: KFX;
|
|
261
|
-
to?: KFX;
|
|
262
|
-
[percent: `${string}%`]: KFX;
|
|
263
|
-
}>;
|
|
264
121
|
|
|
265
122
|
interface mtype {
|
|
266
123
|
xs?: CSSValue;
|
|
@@ -283,7 +140,15 @@ declare class media {
|
|
|
283
140
|
static readonly prop: mtype;
|
|
284
141
|
static readonly extra: mtype;
|
|
285
142
|
constructor(defValue?: CSSValue, g?: obj<any>);
|
|
286
|
-
static get breakpoints():
|
|
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
|
+
};
|
|
287
152
|
}
|
|
288
153
|
type exmed$1 = {
|
|
289
154
|
[k: string]: undefined | CSSValue;
|
|
@@ -291,17 +156,24 @@ type exmed$1 = {
|
|
|
291
156
|
declare function med(g: mtype & exmed$1): media;
|
|
292
157
|
declare function med(defValue: CSSValue): media;
|
|
293
158
|
declare function med(defValue: CSSValue, g: mtype & exmed$1): media;
|
|
294
|
-
|
|
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>> {
|
|
295
167
|
prefix?: string;
|
|
296
|
-
data
|
|
297
|
-
values
|
|
168
|
+
data?: Q;
|
|
169
|
+
values?: Record<string, media>;
|
|
298
170
|
}
|
|
299
171
|
declare class Medyas<T extends Medyas<T>, Q = Record<string, any>> {
|
|
300
172
|
[k: number]: this;
|
|
301
173
|
_prefix?: string | undefined;
|
|
302
174
|
data: Q;
|
|
303
175
|
protected _values: Record<string, media>;
|
|
304
|
-
constructor({ prefix, data, values }?:
|
|
176
|
+
constructor({ prefix, data, values }?: MedyasOptions<Q>);
|
|
305
177
|
get XS(): T;
|
|
306
178
|
get SM(): T;
|
|
307
179
|
get SMD(): T;
|
|
@@ -315,343 +187,359 @@ declare class Medyas<T extends Medyas<T>, Q = Record<string, any>> {
|
|
|
315
187
|
get SCREEN(): T;
|
|
316
188
|
get DARK(): T;
|
|
317
189
|
set _value(val: CSSinR);
|
|
318
|
-
get _value():
|
|
190
|
+
get _value(): Record<string, media>;
|
|
319
191
|
}
|
|
320
192
|
|
|
321
|
-
declare class
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
193
|
+
declare class _Var {
|
|
194
|
+
k: string;
|
|
195
|
+
fallback?: CSSValue;
|
|
196
|
+
var: string;
|
|
197
|
+
value: media;
|
|
198
|
+
constructor(vr?: obj<CSSValue | media>, fallback?: CSSValue);
|
|
199
|
+
__(fallback?: CSSValue): string;
|
|
200
|
+
new(val: CSSValue, fallback?: CSSValue): _Var;
|
|
325
201
|
}
|
|
326
|
-
declare
|
|
202
|
+
declare const Var: (vr: obj<CSSValue | media>, fallback?: CSSValue) => _Var;
|
|
203
|
+
declare const Vars: <T extends Record<string, CSSValue | media>>(vr: T) => { [K in keyof T]: _Var; };
|
|
327
204
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
205
|
+
type CSSValue = V | _Var | undefined | CSSValue[];
|
|
206
|
+
type VarType = _Var;
|
|
207
|
+
interface xtraCSS extends Partial<CSSStyleDeclaration> {
|
|
208
|
+
src?: string;
|
|
209
|
+
webkitBackdropFilter?: string;
|
|
210
|
+
webkitTextFillColor?: string;
|
|
211
|
+
webkitFontSmoothing?: string;
|
|
212
|
+
webkitTapHighlightColor?: string;
|
|
213
|
+
textFillColor?: string;
|
|
214
|
+
lineClamp?: string;
|
|
215
|
+
textJustify?: string;
|
|
216
|
+
webkitBoxDecorationBreak: string;
|
|
217
|
+
boxDecorationBreak: string;
|
|
218
|
+
webkitBoxReflect: string;
|
|
219
|
+
webkitTouchCallout: string;
|
|
336
220
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
PS: Proc;
|
|
345
|
-
PREFIX: string;
|
|
346
|
-
ARR: Mapper<string, Set<string>>;
|
|
347
|
-
CID: Mapper<string, string>;
|
|
348
|
-
DATA: CMapper;
|
|
349
|
-
ANIM: Mapper<string, Set<string>>;
|
|
350
|
-
IMPORTED: Base[];
|
|
351
|
-
constructor(PRE?: string, prefix?: string, EXPORT?: boolean | undefined, UNIT?: string | undefined);
|
|
352
|
-
get(target: Base, prop: string, receiver: any): any;
|
|
353
|
-
set(target: any, prop: string, val: any): boolean;
|
|
354
|
-
get css(): T;
|
|
355
|
-
load(css: Base): this;
|
|
356
|
-
__(f: CSS): void;
|
|
221
|
+
interface fontFace {
|
|
222
|
+
src?: string | string[];
|
|
223
|
+
fontStretch?: "condensed" | "ultra-condensed" | "extra-condensed" | "semi-condensed" | "expanded" | "semi-expanded" | "extra-expanded" | "ultra-expanded";
|
|
224
|
+
fontStyle?: "normal" | "italic" | "oblique";
|
|
225
|
+
fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900";
|
|
226
|
+
unicodeRange?: CSSValue;
|
|
227
|
+
fontDisplay: "auto" | "block" | "swap" | "fallback" | "optional";
|
|
357
228
|
}
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
229
|
+
type CSSinR = {
|
|
230
|
+
[P in keyof xtraCSS]?: CSSValue | media;
|
|
231
|
+
} | {
|
|
232
|
+
[p: string]: CSSValue | media;
|
|
233
|
+
} | CSSinR[];
|
|
234
|
+
type atCSS = string;
|
|
235
|
+
type CSSF = CSSinR | Record<string, CSSinR> | Medyas<any, {}>;
|
|
236
|
+
type CSS = Record<string, CSSinR | Record<string, CSSinR>>;
|
|
237
|
+
type KFX = CSSinR | Medyas<any, {}>;
|
|
238
|
+
type KFCSS = obj<{
|
|
239
|
+
from?: KFX;
|
|
240
|
+
to?: KFX;
|
|
241
|
+
[percent: `${string}%`]: KFX;
|
|
242
|
+
}>;
|
|
243
|
+
|
|
244
|
+
declare class support {
|
|
245
|
+
value: Mapped<string, CSSinR[]>;
|
|
246
|
+
__: (...css: CSSinR[]) => this;
|
|
247
|
+
constructor(css: CSSinR | string);
|
|
361
248
|
}
|
|
249
|
+
declare function supports(css: CSSinR | string): (...css: CSSinR[]) => support;
|
|
362
250
|
|
|
363
251
|
declare class ps {
|
|
364
252
|
static attr(d: obj<string>): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
365
|
-
[x: string]: (
|
|
253
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
366
254
|
};
|
|
367
255
|
static after(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
368
|
-
[x: string]: (
|
|
256
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
369
257
|
};
|
|
370
258
|
static before(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
371
|
-
[x: string]: (
|
|
259
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
372
260
|
};
|
|
373
261
|
static backdrop(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
374
|
-
[x: string]: (
|
|
262
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
375
263
|
};
|
|
376
264
|
static cue(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
377
|
-
[x: string]: (
|
|
265
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
378
266
|
};
|
|
379
267
|
static cueRegion(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
380
|
-
[x: string]: (
|
|
268
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
381
269
|
};
|
|
382
270
|
static firstLetter(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
383
|
-
[x: string]: (
|
|
271
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
384
272
|
};
|
|
385
273
|
static firstLine(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
386
|
-
[x: string]: (
|
|
274
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
387
275
|
};
|
|
388
276
|
static marker(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
389
|
-
[x: string]: (
|
|
277
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
390
278
|
};
|
|
391
279
|
static part(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
392
|
-
[x: string]: (
|
|
280
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
393
281
|
};
|
|
394
282
|
static placeholder(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
395
|
-
[x: string]: (
|
|
283
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
396
284
|
};
|
|
397
285
|
static selection(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
398
|
-
[x: string]: (
|
|
286
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
399
287
|
};
|
|
400
288
|
static slotted(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
401
|
-
[x: string]: (
|
|
289
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
402
290
|
};
|
|
403
291
|
static spellingError(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
404
|
-
[x: string]: (
|
|
292
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
405
293
|
};
|
|
406
294
|
static targetText(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
407
|
-
[x: string]: (
|
|
295
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
408
296
|
};
|
|
409
297
|
static viewTransition(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
410
|
-
[x: string]: (
|
|
298
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
411
299
|
};
|
|
412
300
|
static viewTransitionGroup(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
413
|
-
[x: string]: (
|
|
301
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
414
302
|
};
|
|
415
303
|
static viewTransitionImagePair(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
416
|
-
[x: string]: (
|
|
304
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
417
305
|
};
|
|
418
306
|
static viewTransitionNew(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
419
|
-
[x: string]: (
|
|
307
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
420
308
|
};
|
|
421
309
|
static viewTransitionOld(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
422
|
-
[x: string]: (
|
|
310
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
423
311
|
};
|
|
424
312
|
static scrollbar(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
425
|
-
[x: string]: (
|
|
313
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
426
314
|
};
|
|
427
315
|
static scrollbarThumb(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
428
|
-
[x: string]: (
|
|
316
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
429
317
|
};
|
|
430
318
|
static scrollbarTrack(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
431
|
-
[x: string]: (
|
|
319
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
432
320
|
};
|
|
433
321
|
static scrollbarCorner(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
434
|
-
[x: string]: (
|
|
322
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
435
323
|
};
|
|
436
324
|
static active(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
437
|
-
[x: string]: (
|
|
325
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
438
326
|
};
|
|
439
327
|
static anyLink(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
440
|
-
[x: string]: (
|
|
328
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
441
329
|
};
|
|
442
330
|
static autofill(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
443
|
-
[x: string]: (
|
|
331
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
444
332
|
};
|
|
445
333
|
static blank(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
446
|
-
[x: string]: (
|
|
334
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
447
335
|
};
|
|
448
336
|
static checked(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
449
|
-
[x: string]: (
|
|
337
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
450
338
|
};
|
|
451
339
|
static current(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
452
|
-
[x: string]: (
|
|
340
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
453
341
|
};
|
|
454
342
|
static default(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
455
|
-
[x: string]: (
|
|
343
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
456
344
|
};
|
|
457
345
|
static defined(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
458
|
-
[x: string]: (
|
|
346
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
459
347
|
};
|
|
460
348
|
static disabled(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
461
|
-
[x: string]: (
|
|
349
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
462
350
|
};
|
|
463
351
|
static empty(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
464
|
-
[x: string]: (
|
|
352
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
465
353
|
};
|
|
466
354
|
static enabled(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
467
|
-
[x: string]: (
|
|
355
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
468
356
|
};
|
|
469
357
|
static first(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
470
|
-
[x: string]: (
|
|
358
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
471
359
|
};
|
|
472
360
|
static firstChild(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
473
|
-
[x: string]: (
|
|
361
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
474
362
|
};
|
|
475
363
|
static firstOfType(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
476
|
-
[x: string]: (
|
|
364
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
477
365
|
};
|
|
478
366
|
static fullscreen(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
479
|
-
[x: string]: (
|
|
367
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
480
368
|
};
|
|
481
369
|
static future(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
482
|
-
[x: string]: (
|
|
370
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
483
371
|
};
|
|
484
372
|
static focus(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
485
|
-
[x: string]: (
|
|
373
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
486
374
|
};
|
|
487
375
|
static focusVisible(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
488
|
-
[x: string]: (
|
|
376
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
489
377
|
};
|
|
490
378
|
static focusWithin(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
491
|
-
[x: string]: (
|
|
379
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
492
380
|
};
|
|
493
381
|
static host(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
494
|
-
[x: string]: (
|
|
382
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
495
383
|
};
|
|
496
384
|
static hover(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
497
|
-
[x: string]: (
|
|
385
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
498
386
|
};
|
|
499
387
|
static indeterminate(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
500
|
-
[x: string]: (
|
|
388
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
501
389
|
};
|
|
502
390
|
static inRange(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
503
|
-
[x: string]: (
|
|
391
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
504
392
|
};
|
|
505
393
|
static invalid(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
506
|
-
[x: string]: (
|
|
394
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
507
395
|
};
|
|
508
396
|
static lastChild(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
509
|
-
[x: string]: (
|
|
397
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
510
398
|
};
|
|
511
399
|
static lastOfType(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
512
|
-
[x: string]: (
|
|
400
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
513
401
|
};
|
|
514
402
|
static left(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
515
|
-
[x: string]: (
|
|
403
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
516
404
|
};
|
|
517
405
|
static link(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
518
|
-
[x: string]: (
|
|
406
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
519
407
|
};
|
|
520
408
|
static localLink(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
521
|
-
[x: string]: (
|
|
409
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
522
410
|
};
|
|
523
411
|
static modal(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
524
|
-
[x: string]: (
|
|
412
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
525
413
|
};
|
|
526
414
|
static onlyChild(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
527
|
-
[x: string]: (
|
|
415
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
528
416
|
};
|
|
529
417
|
static onlyOfType(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
530
|
-
[x: string]: (
|
|
418
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
531
419
|
};
|
|
532
420
|
static optional(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
533
|
-
[x: string]: (
|
|
421
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
534
422
|
};
|
|
535
423
|
static outOfRange(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
536
|
-
[x: string]: (
|
|
424
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
537
425
|
};
|
|
538
426
|
static past(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
539
|
-
[x: string]: (
|
|
427
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
540
428
|
};
|
|
541
429
|
static pictureInPicture(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
542
|
-
[x: string]: (
|
|
430
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
543
431
|
};
|
|
544
432
|
static placeholderShown(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
545
|
-
[x: string]: (
|
|
433
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
546
434
|
};
|
|
547
435
|
static paused(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
548
|
-
[x: string]: (
|
|
436
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
549
437
|
};
|
|
550
438
|
static playing(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
551
|
-
[x: string]: (
|
|
439
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
552
440
|
};
|
|
553
441
|
static readOnly(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
554
|
-
[x: string]: (
|
|
442
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
555
443
|
};
|
|
556
444
|
static readWrite(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
557
|
-
[x: string]: (
|
|
445
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
558
446
|
};
|
|
559
447
|
static required(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
560
|
-
[x: string]: (
|
|
448
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
561
449
|
};
|
|
562
450
|
static right(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
563
|
-
[x: string]: (
|
|
451
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
564
452
|
};
|
|
565
453
|
static root(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
566
|
-
[x: string]: (
|
|
454
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
567
455
|
};
|
|
568
456
|
static scope(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
569
|
-
[x: string]: (
|
|
457
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
570
458
|
};
|
|
571
459
|
static target(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
572
|
-
[x: string]: (
|
|
460
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
573
461
|
};
|
|
574
462
|
static targetWithin(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
575
|
-
[x: string]: (
|
|
463
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
576
464
|
};
|
|
577
465
|
static userInvalid(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
578
|
-
[x: string]: (
|
|
466
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
579
467
|
};
|
|
580
468
|
static valid(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
581
|
-
[x: string]: (
|
|
469
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
582
470
|
};
|
|
583
471
|
static visited(xx?: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
584
|
-
[x: string]: (
|
|
472
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
585
473
|
};
|
|
586
474
|
static dir(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
587
|
-
[x: string]: (
|
|
475
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
588
476
|
};
|
|
589
477
|
static has(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
590
|
-
[x: string]: (
|
|
478
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
591
479
|
};
|
|
592
480
|
static host_(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
593
|
-
[x: string]: (
|
|
481
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
594
482
|
};
|
|
595
483
|
static hostContext(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
596
|
-
[x: string]: (
|
|
484
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
597
485
|
};
|
|
598
486
|
static is(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
599
|
-
[x: string]: (
|
|
487
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
600
488
|
};
|
|
601
489
|
static lang(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
602
|
-
[x: string]: (
|
|
490
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
603
491
|
};
|
|
604
492
|
static not(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
605
|
-
[x: string]: (
|
|
493
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
606
494
|
};
|
|
607
495
|
static nthChild(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
608
|
-
[x: string]: (
|
|
496
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
609
497
|
};
|
|
610
498
|
static nthCol(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
611
|
-
[x: string]: (
|
|
499
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
612
500
|
};
|
|
613
501
|
static nthLastChild(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
614
|
-
[x: string]: (
|
|
502
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
615
503
|
};
|
|
616
504
|
static nthLastCol(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
617
|
-
[x: string]: (
|
|
505
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
618
506
|
};
|
|
619
507
|
static nthLastOfType(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
620
|
-
[x: string]: (
|
|
508
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
621
509
|
};
|
|
622
510
|
static nthOfType(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
623
|
-
[x: string]: (
|
|
511
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
624
512
|
};
|
|
625
513
|
static state(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
626
|
-
[x: string]: (
|
|
514
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
627
515
|
};
|
|
628
516
|
static where(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
629
|
-
[x: string]: (
|
|
517
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
630
518
|
};
|
|
631
519
|
/**
|
|
632
520
|
* i.e outer-spin-button
|
|
633
521
|
* @param xx string
|
|
634
522
|
*/
|
|
635
523
|
static webkit(xx: V): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
636
|
-
[x: string]: (
|
|
524
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
637
525
|
};
|
|
638
526
|
static and(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
639
|
-
[x: string]: (
|
|
527
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
640
528
|
};
|
|
641
529
|
static child(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
642
|
-
[x: string]: (
|
|
530
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
643
531
|
};
|
|
644
532
|
static desc(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
645
|
-
[x: string]: (
|
|
533
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
646
534
|
};
|
|
647
535
|
static next(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
648
|
-
[x: string]: (
|
|
536
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
649
537
|
};
|
|
650
538
|
static general(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
651
|
-
[x: string]: (
|
|
539
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
652
540
|
};
|
|
653
541
|
static withClass(str: string): (...itm: (CSSinR | _Var | support | obj<CSSValue> | Medyas<any> | undefined)[]) => {
|
|
654
|
-
[x: string]: (
|
|
542
|
+
[x: string]: (Medyas<any, Record<string, any>> | _Var | obj<CSSValue> | support | CSSinR | undefined)[];
|
|
655
543
|
};
|
|
656
544
|
}
|
|
657
545
|
|
|
@@ -732,6 +620,7 @@ declare class f extends g {
|
|
|
732
620
|
static translateY(Y: CSSValue): string;
|
|
733
621
|
static translateZ(...sfs: CSSValue[]): string;
|
|
734
622
|
static url(url: CSSValue): string;
|
|
623
|
+
static format(format: string): string;
|
|
735
624
|
static var(st: string, opt?: CSSValue): string;
|
|
736
625
|
}
|
|
737
626
|
|
|
@@ -796,38 +685,53 @@ interface propCfg {
|
|
|
796
685
|
type undefNull = CSSValue | undefined | null | undefNull[];
|
|
797
686
|
declare const Value: (val: CSSValue | undefNull, cfg?: propCfg) => string;
|
|
798
687
|
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
name?: string;
|
|
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;
|
|
808
696
|
}
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
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;
|
|
818
721
|
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
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
|
+
|
|
825
728
|
declare class Shweet<T extends exmed = exmed> {
|
|
826
729
|
[k: string]: any;
|
|
827
730
|
path: string;
|
|
828
731
|
name: string | undefined;
|
|
829
732
|
prefix: string;
|
|
830
733
|
exportMap?: boolean | undefined;
|
|
734
|
+
onDiagnostic: DiagnosticHandler | undefined;
|
|
831
735
|
private mediaFeatures;
|
|
832
736
|
protected _imported: Set<string>;
|
|
833
737
|
d: __CSS;
|
|
@@ -842,8 +746,8 @@ declare class Shweet<T extends exmed = exmed> {
|
|
|
842
746
|
};
|
|
843
747
|
font: FontFace["css"];
|
|
844
748
|
shweet: this;
|
|
845
|
-
save: (x?:
|
|
846
|
-
constructor({ __filename, name, prefix, shweets, exportMap, webkitKeyframes, mediaFeature, unit, }:
|
|
749
|
+
save: (x?: SaveOptions) => this;
|
|
750
|
+
constructor({ __filename, name, prefix, shweets, exportMap, webkitKeyframes, mediaFeature, unit, onDiagnostic, }: ShweetOptions<T>);
|
|
847
751
|
get imported(): string[];
|
|
848
752
|
med(g: mtype & T): media;
|
|
849
753
|
med(defValue: CSSValue): media;
|
|
@@ -851,5 +755,70 @@ declare class Shweet<T extends exmed = exmed> {
|
|
|
851
755
|
}
|
|
852
756
|
declare function fileName(path: string): string | undefined;
|
|
853
757
|
|
|
854
|
-
|
|
855
|
-
|
|
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 };
|