@vitus-labs/unistyle 1.2.1 → 1.2.3-alpha.56
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/LICENSE +1 -1
- package/README.md +198 -0
- package/lib/analysis/index.js.html +1 -1
- package/lib/analysis/vitus-labs-unistyle.native.js.html +1 -1
- package/lib/index.d.ts +567 -430
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +1868 -732
- package/lib/index.js.map +1 -1
- package/lib/vitus-labs-unistyle.native.js +1854 -719
- package/lib/vitus-labs-unistyle.native.js.map +1 -1
- package/package.json +17 -18
- package/lib/types/context.d.ts +0 -15
- package/lib/types/context.d.ts.map +0 -1
- package/lib/types/index.d.ts +0 -12
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/responsive/breakpoints.d.ts +0 -14
- package/lib/types/responsive/breakpoints.d.ts.map +0 -1
- package/lib/types/responsive/createMediaQueries.d.ts +0 -8
- package/lib/types/responsive/createMediaQueries.d.ts.map +0 -1
- package/lib/types/responsive/index.d.ts +0 -15
- package/lib/types/responsive/index.d.ts.map +0 -1
- package/lib/types/responsive/makeItResponsive.d.ts +0 -30
- package/lib/types/responsive/makeItResponsive.d.ts.map +0 -1
- package/lib/types/responsive/normalizeTheme.d.ts +0 -7
- package/lib/types/responsive/normalizeTheme.d.ts.map +0 -1
- package/lib/types/responsive/optimizeTheme.d.ts +0 -7
- package/lib/types/responsive/optimizeTheme.d.ts.map +0 -1
- package/lib/types/responsive/sortBreakpoints.d.ts +0 -4
- package/lib/types/responsive/sortBreakpoints.d.ts.map +0 -1
- package/lib/types/responsive/transformTheme.d.ts +0 -7
- package/lib/types/responsive/transformTheme.d.ts.map +0 -1
- package/lib/types/styles/alignContent.d.ts +0 -34
- package/lib/types/styles/alignContent.d.ts.map +0 -1
- package/lib/types/styles/extendCss.d.ts +0 -5
- package/lib/types/styles/extendCss.d.ts.map +0 -1
- package/lib/types/styles/index.d.ts +0 -9
- package/lib/types/styles/index.d.ts.map +0 -1
- package/lib/types/styles/shorthands/borderRadius.d.ts +0 -15
- package/lib/types/styles/shorthands/borderRadius.d.ts.map +0 -1
- package/lib/types/styles/shorthands/edge.d.ts +0 -14
- package/lib/types/styles/shorthands/edge.d.ts.map +0 -1
- package/lib/types/styles/shorthands/index.d.ts +0 -7
- package/lib/types/styles/shorthands/index.d.ts.map +0 -1
- package/lib/types/styles/styles/index.d.ts +0 -11
- package/lib/types/styles/styles/index.d.ts.map +0 -1
- package/lib/types/styles/styles/types.d.ts +0 -247
- package/lib/types/styles/styles/types.d.ts.map +0 -1
- package/lib/types/styles/styles/utils.d.ts +0 -12
- package/lib/types/styles/styles/utils.d.ts.map +0 -1
- package/lib/types/types.d.ts +0 -10
- package/lib/types/types.d.ts.map +0 -1
- package/lib/types/units/index.d.ts +0 -9
- package/lib/types/units/index.d.ts.map +0 -1
- package/lib/types/units/stripUnit.d.ts +0 -6
- package/lib/types/units/stripUnit.d.ts.map +0 -1
- package/lib/types/units/value.d.ts +0 -5
- package/lib/types/units/value.d.ts.map +0 -1
- package/lib/types/units/values.d.ts +0 -5
- package/lib/types/units/values.d.ts.map +0 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,430 +1,567 @@
|
|
|
1
|
-
import { config } from
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
readonly
|
|
29
|
-
readonly
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
1
|
+
import { config, context } from "@vitus-labs/core";
|
|
2
|
+
import { CSSProperties, FC, ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/context.d.ts
|
|
5
|
+
type Theme$2 = {
|
|
6
|
+
rootSize: number;
|
|
7
|
+
breakpoints?: Record<string, number>;
|
|
8
|
+
__VITUS_LABS__?: never;
|
|
9
|
+
} & Partial<Record<string, unknown>>;
|
|
10
|
+
type TProvider = {
|
|
11
|
+
theme: Theme$2;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
} & Partial<Record<string, unknown>>;
|
|
14
|
+
/**
|
|
15
|
+
* Unistyle Provider — wraps the core Provider and enriches the theme
|
|
16
|
+
* with pre-computed sorted breakpoints and media-query tagged-template
|
|
17
|
+
* helpers consumed by `makeItResponsive`.
|
|
18
|
+
*/
|
|
19
|
+
declare const Provider: FC<TProvider>;
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/responsive/breakpoints.d.ts
|
|
22
|
+
declare const breakpoints$1: {
|
|
23
|
+
readonly rootSize: 16;
|
|
24
|
+
readonly breakpoints: {
|
|
25
|
+
readonly xs: 0;
|
|
26
|
+
readonly sm: 576;
|
|
27
|
+
readonly md: 768;
|
|
28
|
+
readonly lg: 992;
|
|
29
|
+
readonly xl: 1200;
|
|
30
|
+
readonly xxl: 1440;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type Breakpoints = typeof breakpoints$1;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region src/responsive/createMediaQueries.d.ts
|
|
36
|
+
type CreateMediaQueries = <B extends Record<string, number>, R extends number, C extends (...args: any) => any>(props: {
|
|
37
|
+
breakpoints: B;
|
|
38
|
+
rootSize: R;
|
|
39
|
+
css: C;
|
|
40
|
+
}) => Record<keyof B, ReturnType<C>>;
|
|
41
|
+
/**
|
|
42
|
+
* Builds a map of breakpoint-name → tagged-template function.
|
|
43
|
+
* The smallest breakpoint (value 0) gets no media wrapper.
|
|
44
|
+
* Others are wrapped in `@media (min-width: <em>)` — em units
|
|
45
|
+
* ensure correct behaviour when users change browser font size.
|
|
46
|
+
*/
|
|
47
|
+
declare const createMediaQueries: CreateMediaQueries;
|
|
48
|
+
//#endregion
|
|
49
|
+
//#region src/types.d.ts
|
|
50
|
+
type Css = typeof config.css;
|
|
51
|
+
type Defaults = 'initial' | 'inherit';
|
|
52
|
+
type Units = 'px' | 'rem' | 'em' | '%' | 'vh' | 'vw' | 'vmin' | 'vmax' | 'ex';
|
|
53
|
+
type UnitValue = number | `${number}${Units}`;
|
|
54
|
+
type PropertyValue = UnitValue | 'auto' | Defaults | `calc(${string | number})`;
|
|
55
|
+
type Size = 'max-content' | 'min-content' | 'fit-content';
|
|
56
|
+
type Color = `#${string | number}` | 'currentColor' | 'transparent' | `rgb(${number}, ${number}, ${number})` | `rgb(${number},${number},${number})` | `rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number},${number},${number},${number})` | `hsl(${number}, ${number}%, ${number}%)` | `hsl(${number},${number}%,${number}%)` | `hsla(${number}, ${number}%, ${number}%, ${number})` | `hsla(${number},${number}%,${number}%,${number})` | BrowserColors | Defaults;
|
|
57
|
+
type BrowserColors = 'black' | 'silver' | 'gray' | 'white' | 'maroon' | 'red' | 'purple' | 'fuchsia' | 'green' | 'lime' | 'olive' | 'yellow' | 'navy' | 'blue' | 'teal' | 'aqua' | 'orange' | 'aliceblue' | 'antiquewhite' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'blanchedalmond' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'darkblue' | 'darkcyan' | 'darkgoldenrod' | 'darkgray' | 'darkgreen' | 'darkgrey' | 'darkkhaki' | 'darkmagenta' | 'darkolivegreen' | 'darkorange' | 'darkorchid' | 'darkred' | 'darksalmon' | 'darkseagreen' | 'darkslateblue' | 'darkslategray' | 'darkslategrey' | 'darkturquoise' | 'darkviolet' | 'deeppink' | 'deepskyblue' | 'dimgray' | 'dimgrey' | 'dodgerblue' | 'firebrick' | 'floralwhite' | 'forestgreen' | 'gainsboro' | 'ghostwhite' | 'gold' | 'goldenrod' | 'greenyellow' | 'grey' | 'honeydew' | 'hotpink' | 'indianred' | 'indigo' | 'ivory' | 'khaki' | 'lavender' | 'lavenderblush' | 'lawngreen' | 'lemonchiffon' | 'lightblue' | 'lightcoral' | 'lightcyan' | 'lightgoldenrodyellow' | 'lightgray' | 'lightgreen' | 'lightgrey' | 'lightpink' | 'lightsalmon' | 'lightseagreen' | 'lightskyblue' | 'lightslategray' | 'lightslategrey' | 'lightsteelblue' | 'lightyellow' | 'limegreen' | 'linen' | 'magenta' | 'mediumaquamarine' | 'mediumblue' | 'mediumorchid' | 'mediumpurple' | 'mediumseagreen' | 'mediumslateblue' | 'mediumspringgreen' | 'mediumturquoise' | 'mediumvioletred' | 'midnightblue' | 'mintcream' | 'mistyrose' | 'moccasin' | 'navajowhite' | 'oldlace' | 'olivedrab' | 'orangered' | 'orchid' | 'palegoldenrod' | 'palegreen' | 'paleturquoise' | 'palevioletred' | 'papayawhip' | 'peachpuff' | 'peru' | 'pink' | 'plum' | 'powderblue' | 'rosybrown' | 'royalblue' | 'saddlebrown' | 'salmon' | 'sandybrown' | 'seagreen' | 'seashell' | 'sienna' | 'skyblue' | 'slateblue' | 'slategray' | 'slategrey' | 'snow' | 'springgreen' | 'steelblue' | 'tan' | 'thistle' | 'tomato' | 'turquoise' | 'violet' | 'wheat' | 'whitesmoke' | 'yellowgreen' | 'rebeccapurple';
|
|
58
|
+
//# sourceMappingURL=types.d.ts.map
|
|
59
|
+
//#endregion
|
|
60
|
+
//#region src/responsive/sortBreakpoints.d.ts
|
|
61
|
+
type SortBreakpoints = <T extends Record<string, number>>(breakpoints: T) => (keyof T)[];
|
|
62
|
+
/** Sorts breakpoint keys by their pixel value (ascending, mobile-first). */
|
|
63
|
+
declare const sortBreakpoints: SortBreakpoints;
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/responsive/makeItResponsive.d.ts
|
|
66
|
+
type CustomTheme = Record<string, Record<string, unknown> | number | string | boolean>;
|
|
67
|
+
type Theme$1 = Partial<{
|
|
68
|
+
rootSize: number;
|
|
69
|
+
breakpoints: Record<string, number>;
|
|
70
|
+
__VITUS_LABS__: Partial<{
|
|
71
|
+
media: ReturnType<typeof createMediaQueries>;
|
|
72
|
+
sortedBreakpoints: ReturnType<typeof sortBreakpoints>;
|
|
73
|
+
}>;
|
|
74
|
+
}> & CustomTheme;
|
|
75
|
+
type MakeItResponsiveStyles<T extends Partial<Record<string, any>> = any> = ({
|
|
76
|
+
theme,
|
|
77
|
+
css,
|
|
78
|
+
rootSize,
|
|
79
|
+
globalTheme
|
|
80
|
+
}: {
|
|
81
|
+
theme: T;
|
|
82
|
+
css: Css;
|
|
83
|
+
rootSize?: number;
|
|
84
|
+
globalTheme?: Record<string, any>;
|
|
85
|
+
}) => ReturnType<typeof css> | string | any;
|
|
86
|
+
type MakeItResponsive = ({
|
|
87
|
+
theme,
|
|
88
|
+
key,
|
|
89
|
+
css,
|
|
90
|
+
styles,
|
|
91
|
+
normalize
|
|
92
|
+
}: {
|
|
93
|
+
theme?: CustomTheme;
|
|
94
|
+
key?: string;
|
|
95
|
+
css: any;
|
|
96
|
+
styles: MakeItResponsiveStyles;
|
|
97
|
+
normalize?: boolean;
|
|
98
|
+
}) => (props: {
|
|
99
|
+
theme?: Theme$1;
|
|
100
|
+
[key: string]: any;
|
|
101
|
+
}) => any;
|
|
102
|
+
/**
|
|
103
|
+
* Core responsive engine used by every styled component in the system.
|
|
104
|
+
*
|
|
105
|
+
* Returns a styled-components interpolation function that:
|
|
106
|
+
* 1. Reads the component's theme prop (via `key` or direct `theme`)
|
|
107
|
+
* 2. Without breakpoints → renders plain CSS
|
|
108
|
+
* 3. With breakpoints → normalizes, transforms (property-per-breakpoint →
|
|
109
|
+
* breakpoint-per-property), optimizes (deduplicates identical breakpoints),
|
|
110
|
+
* and wraps each breakpoint's styles in the appropriate `@media` query.
|
|
111
|
+
*/
|
|
112
|
+
declare const makeItResponsive: MakeItResponsive;
|
|
113
|
+
//#endregion
|
|
114
|
+
//#region src/responsive/normalizeTheme.d.ts
|
|
115
|
+
type NormalizeTheme = ({
|
|
116
|
+
theme,
|
|
117
|
+
breakpoints
|
|
118
|
+
}: {
|
|
119
|
+
theme: Record<string, unknown>;
|
|
120
|
+
breakpoints: string[];
|
|
121
|
+
}) => Record<string, unknown>;
|
|
122
|
+
/**
|
|
123
|
+
* Expands each theme property into a full breakpoint map so every
|
|
124
|
+
* breakpoint has a value. Arrays fill by index (last value carries forward),
|
|
125
|
+
* objects inherit from the previous breakpoint, scalars repeat for all.
|
|
126
|
+
* Skipped entirely when no property is array/object (fast path).
|
|
127
|
+
*/
|
|
128
|
+
declare const normalizeTheme: NormalizeTheme;
|
|
129
|
+
//#endregion
|
|
130
|
+
//#region src/responsive/transformTheme.d.ts
|
|
131
|
+
type TransformTheme = ({
|
|
132
|
+
theme,
|
|
133
|
+
breakpoints
|
|
134
|
+
}: {
|
|
135
|
+
theme: Record<string, unknown>;
|
|
136
|
+
breakpoints: string[];
|
|
137
|
+
}) => any;
|
|
138
|
+
/**
|
|
139
|
+
* Pivots the theme from property-centric to breakpoint-centric layout.
|
|
140
|
+
* Input: `{ fontSize: { xs: 12, md: 15 }, color: 'red' }`
|
|
141
|
+
* Output: `{ xs: { fontSize: 12, color: 'red' }, md: { fontSize: 15 } }`
|
|
142
|
+
* Supports three input shapes per property: scalar, array (positional), or object (keyed).
|
|
143
|
+
*/
|
|
144
|
+
declare const transformTheme: TransformTheme;
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/styles/alignContent.d.ts
|
|
147
|
+
type AlignContentDirectionKeys = keyof typeof ALIGN_CONTENT_DIRECTION;
|
|
148
|
+
type AlignContentAlignXKeys = keyof typeof ALIGN_CONTENT_MAP_X;
|
|
149
|
+
type AlignContentAlignYKeys = keyof typeof ALIGN_CONTENT_MAP_Y;
|
|
150
|
+
declare const ALIGN_CONTENT_MAP_X: {
|
|
151
|
+
readonly center: string;
|
|
152
|
+
readonly spaceBetween: string;
|
|
153
|
+
readonly spaceAround: string;
|
|
154
|
+
readonly block: string;
|
|
155
|
+
readonly left: "flex-start";
|
|
156
|
+
readonly right: "flex-end";
|
|
157
|
+
};
|
|
158
|
+
declare const ALIGN_CONTENT_MAP_Y: {
|
|
159
|
+
readonly center: string;
|
|
160
|
+
readonly spaceBetween: string;
|
|
161
|
+
readonly spaceAround: string;
|
|
162
|
+
readonly block: string;
|
|
163
|
+
readonly top: "flex-start";
|
|
164
|
+
readonly bottom: "flex-end";
|
|
165
|
+
};
|
|
166
|
+
declare const ALIGN_CONTENT_DIRECTION: {
|
|
167
|
+
inline: string;
|
|
168
|
+
reverseInline: string;
|
|
169
|
+
rows: string;
|
|
170
|
+
reverseRows: string;
|
|
171
|
+
};
|
|
172
|
+
type AlignContent = ({
|
|
173
|
+
direction,
|
|
174
|
+
alignX,
|
|
175
|
+
alignY
|
|
176
|
+
}: {
|
|
177
|
+
direction: AlignContentDirectionKeys;
|
|
178
|
+
alignX: AlignContentAlignXKeys;
|
|
179
|
+
alignY: AlignContentAlignYKeys;
|
|
180
|
+
}) => ReturnType<typeof config.css> | null;
|
|
181
|
+
/**
|
|
182
|
+
* Converts semantic direction/alignX/alignY values into `flex-direction`,
|
|
183
|
+
* `align-items`, and `justify-content`. For inline directions (row) the
|
|
184
|
+
* X/Y axes are swapped so that `alignX` always controls the horizontal axis.
|
|
185
|
+
*/
|
|
186
|
+
declare const alignContent: AlignContent;
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region src/styles/extendCss.d.ts
|
|
189
|
+
type ExtendCss = (styles: ((css: typeof config.css) => ReturnType<typeof css>) | string | null | undefined) => string | ReturnType<typeof config.css>;
|
|
190
|
+
/**
|
|
191
|
+
* Evaluates an `extendCss` value — either a callback receiving `css`
|
|
192
|
+
* or a raw CSS string. Returns empty string for null/undefined.
|
|
193
|
+
*/
|
|
194
|
+
declare const extendCss: ExtendCss;
|
|
195
|
+
//#endregion
|
|
196
|
+
//#region src/styles/styles/types.d.ts
|
|
197
|
+
type Func<T> = (...args: any) => T;
|
|
198
|
+
type BorderColor = Color | Defaults;
|
|
199
|
+
type BorderImageRepeat = 'stretch' | 'repeat' | 'round' | 'space' | Defaults;
|
|
200
|
+
type GridProperty = 'auto' | number | `span ${number}`;
|
|
201
|
+
type BorderStyle = 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Defaults;
|
|
202
|
+
type FontSize = 'medium' | 'xx-small' | 'x-small' | 'small' | 'large' | 'x-large' | 'xx-large' | 'smaller' | 'larger' | 'initial' | 'inherit' | PropertyValue;
|
|
203
|
+
type ListStyleType = 'disc' | 'armenian' | 'circle' | 'cjk-ideographic' | 'decimal' | 'decimal-leading-zero' | 'georgian' | 'hebrew' | 'hiragana' | 'hiragana-iroha' | 'katakana' | 'katakana-iroha' | 'lower-alpha' | 'lower-greek' | 'lower-latin' | 'lower-roman' | 'none' | 'square' | 'upper-alpha' | 'upper-greek' | 'upper-latin' | 'upper-roman' | Defaults;
|
|
204
|
+
type Cursor = 'alias' | 'all-scroll' | 'auto' | 'cell' | 'context-menu' | 'col-resize' | 'copy' | 'crosshair' | 'default' | 'e-resize' | 'ew-resize' | 'grab' | 'grabbing' | 'help' | 'move' | 'n-resize' | 'ne-resize' | 'nesw-resize' | 'ns-resize' | 'nw-resize' | 'nwse-resize' | 'no-drop' | 'none' | 'not-allowed' | 'pointer' | 'progress' | 'row-resize' | 's-resize' | 'se-resize' | 'sw-resize' | 'text' | 'URL' | 'vertical-text' | 'w-resize' | 'wait' | 'zoom-in' | 'zoom-out' | Defaults;
|
|
205
|
+
type ITheme = {
|
|
206
|
+
inset: PropertyValue;
|
|
207
|
+
insetX: PropertyValue;
|
|
208
|
+
insetY: PropertyValue;
|
|
209
|
+
top: PropertyValue;
|
|
210
|
+
bottom: PropertyValue;
|
|
211
|
+
left: PropertyValue;
|
|
212
|
+
right: PropertyValue;
|
|
213
|
+
width: PropertyValue | Size;
|
|
214
|
+
height: PropertyValue | Size;
|
|
215
|
+
size: PropertyValue | Size;
|
|
216
|
+
minWidth: PropertyValue | Size;
|
|
217
|
+
minHeight: PropertyValue | Size;
|
|
218
|
+
minSize: PropertyValue | Size;
|
|
219
|
+
maxWidth: PropertyValue | Size;
|
|
220
|
+
maxHeight: PropertyValue | Size;
|
|
221
|
+
maxSize: PropertyValue | Size;
|
|
222
|
+
aspectRatio: CSSProperties['aspectRatio'];
|
|
223
|
+
margin: PropertyValue;
|
|
224
|
+
marginTop: PropertyValue;
|
|
225
|
+
marginBottom: PropertyValue;
|
|
226
|
+
marginLeft: PropertyValue;
|
|
227
|
+
marginRight: PropertyValue;
|
|
228
|
+
marginX: PropertyValue;
|
|
229
|
+
marginY: PropertyValue;
|
|
230
|
+
padding: PropertyValue;
|
|
231
|
+
paddingTop: PropertyValue;
|
|
232
|
+
paddingBottom: PropertyValue;
|
|
233
|
+
paddingLeft: PropertyValue;
|
|
234
|
+
paddingRight: PropertyValue;
|
|
235
|
+
paddingX: PropertyValue;
|
|
236
|
+
paddingY: PropertyValue;
|
|
237
|
+
gap: PropertyValue;
|
|
238
|
+
alignContent: CSSProperties['alignContent'];
|
|
239
|
+
alignItems: CSSProperties['alignItems'];
|
|
240
|
+
alignSelf: CSSProperties['alignSelf'];
|
|
241
|
+
all: CSSProperties['all'];
|
|
242
|
+
display: CSSProperties['display'];
|
|
243
|
+
position: CSSProperties['position'];
|
|
244
|
+
boxSizing: CSSProperties['boxSizing'];
|
|
245
|
+
float: CSSProperties['float'];
|
|
246
|
+
contain: CSSProperties['contain'];
|
|
247
|
+
containerType: CSSProperties['containerType'];
|
|
248
|
+
containerName: CSSProperties['containerName'];
|
|
249
|
+
container: CSSProperties['container'];
|
|
250
|
+
flex: CSSProperties['flex'];
|
|
251
|
+
flexBasis: CSSProperties['flexBasis'];
|
|
252
|
+
flexDirection: CSSProperties['flexDirection'];
|
|
253
|
+
flexFlow: CSSProperties['flexFlow'];
|
|
254
|
+
flexGrow: CSSProperties['flexGrow'];
|
|
255
|
+
flexShrink: CSSProperties['flexShrink'];
|
|
256
|
+
flexWrap: CSSProperties['flexWrap'];
|
|
257
|
+
justifyContent: CSSProperties['justifyContent'];
|
|
258
|
+
justifyItems: CSSProperties['justifyItems'];
|
|
259
|
+
justifySelf: CSSProperties['justifySelf'];
|
|
260
|
+
placeItems: CSSProperties['placeItems'];
|
|
261
|
+
placeContent: CSSProperties['placeContent'];
|
|
262
|
+
placeSelf: CSSProperties['placeSelf'];
|
|
263
|
+
rowGap: PropertyValue;
|
|
264
|
+
columnGap: PropertyValue;
|
|
265
|
+
grid: CSSProperties['grid'];
|
|
266
|
+
gridArea: CSSProperties['gridArea'];
|
|
267
|
+
gridAutoColumns: CSSProperties['gridAutoColumns'];
|
|
268
|
+
gridAutoFlow: CSSProperties['gridAutoFlow'];
|
|
269
|
+
gridAutoRows: CSSProperties['gridAutoRows'];
|
|
270
|
+
gridColumn: number | `${'auto' | string | number} / ${GridProperty}`;
|
|
271
|
+
gridColumnEnd: GridProperty;
|
|
272
|
+
gridColumnGap: PropertyValue;
|
|
273
|
+
gridColumnStart: GridProperty;
|
|
274
|
+
gridGap: PropertyValue;
|
|
275
|
+
gridRow: number | `${'auto' | string | number} / ${GridProperty}`;
|
|
276
|
+
gridRowStart: GridProperty;
|
|
277
|
+
gridRowEnd: GridProperty;
|
|
278
|
+
gridRowGap: PropertyValue;
|
|
279
|
+
gridTemplate: CSSProperties['gridTemplate'];
|
|
280
|
+
gridTemplateAreas: CSSProperties['gridTemplateAreas'];
|
|
281
|
+
gridTemplateColumns: CSSProperties['gridTemplateColumns'];
|
|
282
|
+
gridTemplateRows: CSSProperties['gridTemplateRows'];
|
|
283
|
+
objectFit: CSSProperties['objectFit'];
|
|
284
|
+
objectPosition: CSSProperties['objectPosition'];
|
|
285
|
+
order: CSSProperties['order'];
|
|
286
|
+
opacity: CSSProperties['opacity'];
|
|
287
|
+
resize: CSSProperties['resize'];
|
|
288
|
+
verticalAlign: CSSProperties['verticalAlign'];
|
|
289
|
+
lineHeight: CSSProperties['lineHeight'];
|
|
290
|
+
font: CSSProperties['font'];
|
|
291
|
+
fontFamily: CSSProperties['fontFamily'];
|
|
292
|
+
fontSize: FontSize;
|
|
293
|
+
fontSizeAdjust: CSSProperties['fontSizeAdjust'];
|
|
294
|
+
fontStretch: CSSProperties['fontStretch'];
|
|
295
|
+
fontStyle: CSSProperties['fontStyle'];
|
|
296
|
+
fontVariant: CSSProperties['fontVariant'];
|
|
297
|
+
fontWeight: 'normal' | 'bold' | 'bolder' | 'lighter' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Defaults;
|
|
298
|
+
fontKerning: CSSProperties['fontKerning'];
|
|
299
|
+
fontFeatureSettings: CSSProperties['fontFeatureSettings'];
|
|
300
|
+
fontVariationSettings: CSSProperties['fontVariationSettings'];
|
|
301
|
+
fontOpticalSizing: CSSProperties['fontOpticalSizing'];
|
|
302
|
+
textAlign: CSSProperties['textAlign'];
|
|
303
|
+
textAlignLast: CSSProperties['textAlignLast'];
|
|
304
|
+
textTransform: CSSProperties['textTransform'];
|
|
305
|
+
textDecoration: CSSProperties['textDecoration'];
|
|
306
|
+
textDecorationColor: CSSProperties['textDecorationColor'];
|
|
307
|
+
textDecorationLine: CSSProperties['textDecorationLine'];
|
|
308
|
+
textDecorationStyle: CSSProperties['textDecorationStyle'];
|
|
309
|
+
textDecorationThickness: CSSProperties['textDecorationThickness'];
|
|
310
|
+
textUnderlineOffset: CSSProperties['textUnderlineOffset'];
|
|
311
|
+
textEmphasis: CSSProperties['textEmphasis'];
|
|
312
|
+
textEmphasisColor: CSSProperties['textEmphasisColor'];
|
|
313
|
+
textEmphasisStyle: CSSProperties['textEmphasisStyle'];
|
|
314
|
+
letterSpacing: CSSProperties['letterSpacing'];
|
|
315
|
+
wordSpacing: CSSProperties['wordSpacing'];
|
|
316
|
+
textIndent: CSSProperties['textIndent'];
|
|
317
|
+
textJustify: CSSProperties['textJustify'];
|
|
318
|
+
textOverflow: CSSProperties['textOverflow'];
|
|
319
|
+
textShadow: CSSProperties['textShadow'];
|
|
320
|
+
textWrap: CSSProperties['textWrap'];
|
|
321
|
+
textRendering: CSSProperties['textRendering'];
|
|
322
|
+
whiteSpace: CSSProperties['whiteSpace'];
|
|
323
|
+
wordBreak: CSSProperties['wordBreak'];
|
|
324
|
+
wordWrap: CSSProperties['wordWrap'];
|
|
325
|
+
writingMode: CSSProperties['writingMode'];
|
|
326
|
+
direction: CSSProperties['direction'];
|
|
327
|
+
hyphens: CSSProperties['hyphens'];
|
|
328
|
+
listStyle: CSSProperties['listStyle'];
|
|
329
|
+
listStyleImage: CSSProperties['listStyleImage'];
|
|
330
|
+
listStylePosition: CSSProperties['listStylePosition'];
|
|
331
|
+
listStyleType: ListStyleType;
|
|
332
|
+
color: Color;
|
|
333
|
+
background: string;
|
|
334
|
+
backgroundColor: Color;
|
|
335
|
+
backgroundImage: string | 'none' | Defaults;
|
|
336
|
+
backgroundAttachment: CSSProperties['backgroundAttachment'];
|
|
337
|
+
backgroundClip: CSSProperties['backgroundClip'];
|
|
338
|
+
backgroundOrigin: CSSProperties['backgroundOrigin'];
|
|
339
|
+
backgroundPosition: CSSProperties['backgroundPosition'];
|
|
340
|
+
backgroundRepeat: CSSProperties['backgroundRepeat'];
|
|
341
|
+
backgroundSize: 'auto' | PropertyValue | 'cover' | 'contain' | Defaults;
|
|
342
|
+
border: string;
|
|
343
|
+
borderTop: string;
|
|
344
|
+
borderBottom: string;
|
|
345
|
+
borderLeft: string;
|
|
346
|
+
borderRight: string;
|
|
347
|
+
borderWidth: PropertyValue;
|
|
348
|
+
borderWidthX: PropertyValue;
|
|
349
|
+
borderWidthY: PropertyValue;
|
|
350
|
+
borderWidthTop: PropertyValue;
|
|
351
|
+
borderWidthBottom: PropertyValue;
|
|
352
|
+
borderWidthLeft: PropertyValue;
|
|
353
|
+
borderWidthRight: PropertyValue;
|
|
354
|
+
borderStyle: BorderStyle;
|
|
355
|
+
borderStyleX: BorderStyle;
|
|
356
|
+
borderStyleY: BorderStyle;
|
|
357
|
+
borderStyleTop: BorderStyle;
|
|
358
|
+
borderStyleBottom: BorderStyle;
|
|
359
|
+
borderStyleLeft: BorderStyle;
|
|
360
|
+
borderStyleRight: BorderStyle;
|
|
361
|
+
borderColor: BorderColor;
|
|
362
|
+
borderColorX: BorderColor;
|
|
363
|
+
borderColorY: BorderColor;
|
|
364
|
+
borderColorTop: BorderColor;
|
|
365
|
+
borderColorBottom: BorderColor;
|
|
366
|
+
borderColorLeft: BorderColor;
|
|
367
|
+
borderColorRight: BorderColor;
|
|
368
|
+
borderCollapse: 'separate' | 'collapse' | Defaults;
|
|
369
|
+
borderImage: string;
|
|
370
|
+
borderImageOutset: string;
|
|
371
|
+
borderImageRepeat: `${BorderImageRepeat}` | `${BorderImageRepeat} ${BorderImageRepeat}`;
|
|
372
|
+
borderImageSlice: PropertyValue;
|
|
373
|
+
borderImageSource: string;
|
|
374
|
+
borderImageWidth: string;
|
|
375
|
+
borderSpacing: string;
|
|
376
|
+
borderRadius: PropertyValue;
|
|
377
|
+
borderRadiusTopLeft: PropertyValue;
|
|
378
|
+
borderRadiusLeft: PropertyValue;
|
|
379
|
+
borderRadiusTop: PropertyValue;
|
|
380
|
+
borderRadiusTopRight: PropertyValue;
|
|
381
|
+
borderRadiusRight: PropertyValue;
|
|
382
|
+
borderRadiusBottomLeft: PropertyValue;
|
|
383
|
+
borderRadiusBottom: PropertyValue;
|
|
384
|
+
borderRadiusBottomRight: PropertyValue;
|
|
385
|
+
backfaceVisibility: CSSProperties['backfaceVisibility'];
|
|
386
|
+
boxShadow: CSSProperties['boxShadow'];
|
|
387
|
+
filter: CSSProperties['filter'];
|
|
388
|
+
backdropFilter: CSSProperties['backdropFilter'];
|
|
389
|
+
mixBlendMode: CSSProperties['mixBlendMode'];
|
|
390
|
+
backgroundBlendMode: CSSProperties['backgroundBlendMode'];
|
|
391
|
+
isolation: CSSProperties['isolation'];
|
|
392
|
+
outline: CSSProperties['outline'];
|
|
393
|
+
outlineColor: CSSProperties['outlineColor'];
|
|
394
|
+
outlineOffset: CSSProperties['outlineOffset'];
|
|
395
|
+
outlineStyle: CSSProperties['outlineStyle'];
|
|
396
|
+
outlineWidth: CSSProperties['outlineWidth'];
|
|
397
|
+
animation: CSSProperties['animation'];
|
|
398
|
+
keyframe: any;
|
|
399
|
+
animationName: CSSProperties['animationName'];
|
|
400
|
+
animationDuration: CSSProperties['animationDuration'];
|
|
401
|
+
animationTimingFunction: CSSProperties['animationTimingFunction'];
|
|
402
|
+
animationDelay: CSSProperties['animationDelay'];
|
|
403
|
+
animationIterationCount: CSSProperties['animationIterationCount'];
|
|
404
|
+
animationDirection: CSSProperties['animationDirection'];
|
|
405
|
+
animationFillMode: CSSProperties['animationFillMode'];
|
|
406
|
+
animationPlayState: CSSProperties['animationPlayState'];
|
|
407
|
+
transition: CSSProperties['transition'];
|
|
408
|
+
transitionDelay: CSSProperties['transitionDelay'];
|
|
409
|
+
transitionDuration: CSSProperties['transitionDuration'];
|
|
410
|
+
transitionProperty: CSSProperties['transitionProperty'];
|
|
411
|
+
transitionTimingFunction: CSSProperties['transitionTimingFunction'] | `cubic-bezier(${number},${number},${number},${number})` | `cubic-bezier(${number}, ${number}, ${number}, ${number})`;
|
|
412
|
+
transform: CSSProperties['transform'];
|
|
413
|
+
transformOrigin: CSSProperties['transformOrigin'];
|
|
414
|
+
transformStyle: CSSProperties['transformStyle'];
|
|
415
|
+
translate: CSSProperties['translate'];
|
|
416
|
+
rotate: CSSProperties['rotate'];
|
|
417
|
+
scale: CSSProperties['scale'];
|
|
418
|
+
willChange: CSSProperties['willChange'];
|
|
419
|
+
scrollBehavior: CSSProperties['scrollBehavior'];
|
|
420
|
+
scrollSnapType: CSSProperties['scrollSnapType'];
|
|
421
|
+
scrollSnapAlign: CSSProperties['scrollSnapAlign'];
|
|
422
|
+
scrollSnapStop: CSSProperties['scrollSnapStop'];
|
|
423
|
+
scrollMargin: CSSProperties['scrollMargin'];
|
|
424
|
+
scrollPadding: CSSProperties['scrollPadding'];
|
|
425
|
+
overscrollBehavior: CSSProperties['overscrollBehavior'];
|
|
426
|
+
overscrollBehaviorX: CSSProperties['overscrollBehaviorX'];
|
|
427
|
+
overscrollBehaviorY: CSSProperties['overscrollBehaviorY'];
|
|
428
|
+
cursor: Cursor;
|
|
429
|
+
pointerEvents: CSSProperties['pointerEvents'];
|
|
430
|
+
userSelect: CSSProperties['userSelect'];
|
|
431
|
+
touchAction: CSSProperties['touchAction'];
|
|
432
|
+
scrollbarWidth: CSSProperties['scrollbarWidth'];
|
|
433
|
+
scrollbarColor: CSSProperties['scrollbarColor'];
|
|
434
|
+
scrollbarGutter: CSSProperties['scrollbarGutter'];
|
|
435
|
+
caretColor: CSSProperties['caretColor'];
|
|
436
|
+
accentColor: CSSProperties['accentColor'];
|
|
437
|
+
colorScheme: CSSProperties['colorScheme'];
|
|
438
|
+
inlineSize: PropertyValue | Size;
|
|
439
|
+
blockSize: PropertyValue | Size;
|
|
440
|
+
minInlineSize: PropertyValue | Size;
|
|
441
|
+
minBlockSize: PropertyValue | Size;
|
|
442
|
+
maxInlineSize: PropertyValue | Size;
|
|
443
|
+
maxBlockSize: PropertyValue | Size;
|
|
444
|
+
marginInline: PropertyValue;
|
|
445
|
+
marginInlineStart: PropertyValue;
|
|
446
|
+
marginInlineEnd: PropertyValue;
|
|
447
|
+
marginBlock: PropertyValue;
|
|
448
|
+
marginBlockStart: PropertyValue;
|
|
449
|
+
marginBlockEnd: PropertyValue;
|
|
450
|
+
paddingInline: PropertyValue;
|
|
451
|
+
paddingInlineStart: PropertyValue;
|
|
452
|
+
paddingInlineEnd: PropertyValue;
|
|
453
|
+
paddingBlock: PropertyValue;
|
|
454
|
+
paddingBlockStart: PropertyValue;
|
|
455
|
+
paddingBlockEnd: PropertyValue;
|
|
456
|
+
borderInline: string;
|
|
457
|
+
borderBlock: string;
|
|
458
|
+
borderInlineStart: string;
|
|
459
|
+
borderInlineEnd: string;
|
|
460
|
+
borderBlockStart: string;
|
|
461
|
+
borderBlockEnd: string;
|
|
462
|
+
insetInline: PropertyValue;
|
|
463
|
+
insetInlineStart: PropertyValue;
|
|
464
|
+
insetInlineEnd: PropertyValue;
|
|
465
|
+
insetBlock: PropertyValue;
|
|
466
|
+
insetBlockStart: PropertyValue;
|
|
467
|
+
insetBlockEnd: PropertyValue;
|
|
468
|
+
captionSide: CSSProperties['captionSide'];
|
|
469
|
+
clear: CSSProperties['clear'];
|
|
470
|
+
clip: CSSProperties['clip'];
|
|
471
|
+
clipPath: CSSProperties['clipPath'];
|
|
472
|
+
content: CSSProperties['content'];
|
|
473
|
+
contentVisibility: CSSProperties['contentVisibility'];
|
|
474
|
+
counterIncrement: CSSProperties['counterIncrement'];
|
|
475
|
+
counterReset: CSSProperties['counterReset'];
|
|
476
|
+
emptyCells: CSSProperties['emptyCells'];
|
|
477
|
+
zIndex: CSSProperties['zIndex'];
|
|
478
|
+
overflow: CSSProperties['overflow'];
|
|
479
|
+
overflowWrap: CSSProperties['overflowWrap'];
|
|
480
|
+
overflowX: CSSProperties['overflowX'];
|
|
481
|
+
overflowY: CSSProperties['overflowY'];
|
|
482
|
+
perspective: CSSProperties['perspective'];
|
|
483
|
+
perspectiveOrigin: CSSProperties['perspectiveOrigin'];
|
|
484
|
+
quotes: CSSProperties['quotes'];
|
|
485
|
+
tabSize: CSSProperties['tabSize'];
|
|
486
|
+
tableLayout: CSSProperties['tableLayout'];
|
|
487
|
+
visibility: CSSProperties['visibility'];
|
|
488
|
+
appearance: CSSProperties['appearance'];
|
|
489
|
+
imageRendering: CSSProperties['imageRendering'];
|
|
490
|
+
maskImage: CSSProperties['maskImage'];
|
|
491
|
+
maskSize: CSSProperties['maskSize'];
|
|
492
|
+
maskPosition: CSSProperties['maskPosition'];
|
|
493
|
+
maskRepeat: CSSProperties['maskRepeat'];
|
|
494
|
+
shapeOutside: CSSProperties['shapeOutside'];
|
|
495
|
+
shapeMargin: CSSProperties['shapeMargin'];
|
|
496
|
+
shapeImageThreshold: CSSProperties['shapeImageThreshold'];
|
|
497
|
+
columnCount: CSSProperties['columnCount'];
|
|
498
|
+
columnWidth: CSSProperties['columnWidth'];
|
|
499
|
+
columnRule: CSSProperties['columnRule'];
|
|
500
|
+
columns: CSSProperties['columns'];
|
|
501
|
+
breakBefore: CSSProperties['breakBefore'];
|
|
502
|
+
breakAfter: CSSProperties['breakAfter'];
|
|
503
|
+
breakInside: CSSProperties['breakInside'];
|
|
504
|
+
orphans: CSSProperties['orphans'];
|
|
505
|
+
widows: CSSProperties['widows'];
|
|
506
|
+
printColorAdjust: CSSProperties['printColorAdjust'];
|
|
507
|
+
hideEmpty: boolean;
|
|
508
|
+
clearFix: boolean;
|
|
509
|
+
fullScreen: boolean;
|
|
510
|
+
extendCss: ReturnType<typeof config.css> | string;
|
|
511
|
+
};
|
|
512
|
+
type InnerTheme = { [I in keyof ITheme]: ITheme[I] | null | undefined };
|
|
513
|
+
type Theme = { [I in keyof ITheme]: ITheme[I] | Func<ITheme[I]> | null | undefined };
|
|
514
|
+
//# sourceMappingURL=types.d.ts.map
|
|
515
|
+
//#endregion
|
|
516
|
+
//#region src/styles/styles/index.d.ts
|
|
517
|
+
type Styles = ({
|
|
518
|
+
theme,
|
|
519
|
+
css,
|
|
520
|
+
rootSize
|
|
521
|
+
}: {
|
|
522
|
+
theme: InnerTheme;
|
|
523
|
+
css: Css;
|
|
524
|
+
rootSize?: number;
|
|
525
|
+
}) => ReturnType<typeof css>;
|
|
526
|
+
/**
|
|
527
|
+
* Data-driven style processor. Iterates the `propertyMap` descriptors
|
|
528
|
+
* and delegates each to `processDescriptor`, which maps theme values
|
|
529
|
+
* to CSS strings. The result is a single `css` tagged-template literal
|
|
530
|
+
* containing all non-null property outputs.
|
|
531
|
+
*/
|
|
532
|
+
declare const styles$1: Styles;
|
|
533
|
+
//#endregion
|
|
534
|
+
//#region src/units/stripUnit.d.ts
|
|
535
|
+
type Value$1<V> = V extends string ? number : V;
|
|
536
|
+
type Unit<V> = V extends string ? string : undefined;
|
|
537
|
+
type StripUnit = <V extends string | number, UR extends boolean = false>(value: V, unitReturn?: UR) => UR extends true ? [Value$1<V>, Unit<V>] : Value$1<V>;
|
|
538
|
+
/**
|
|
539
|
+
* Strips the CSS unit suffix from a value.
|
|
540
|
+
* With `unitReturn=true`, returns a `[number, unit]` tuple.
|
|
541
|
+
* Otherwise returns just the numeric part.
|
|
542
|
+
* Non-string inputs are passed through unchanged.
|
|
543
|
+
*/
|
|
544
|
+
declare const stripUnit: StripUnit;
|
|
545
|
+
//#endregion
|
|
546
|
+
//#region src/units/value.d.ts
|
|
547
|
+
type CssUnits = 'px' | 'rem' | '%' | 'em' | 'ex' | 'cm' | 'mm' | 'in' | 'pt' | 'pc' | 'ch' | 'vh' | 'vw' | 'vmin' | 'vmax';
|
|
548
|
+
type Value = (param: string | number | null | undefined, rootSize?: number, outputUnit?: CssUnits) => string | number | null;
|
|
549
|
+
/**
|
|
550
|
+
* Converts a raw numeric value to a CSS string with appropriate units.
|
|
551
|
+
* - Numbers without a unit are divided by `rootSize` and output as rem (web) or px (native).
|
|
552
|
+
* - Values that already carry a unit are returned as-is, unless converting px→rem.
|
|
553
|
+
* - Zero is always returned unitless.
|
|
554
|
+
*/
|
|
555
|
+
declare const value: Value;
|
|
556
|
+
//#endregion
|
|
557
|
+
//#region src/units/values.d.ts
|
|
558
|
+
type Values = (values: unknown[], rootSize?: number, outputUnit?: Units) => string | number | null;
|
|
559
|
+
/**
|
|
560
|
+
* Picks the first non-null value from the array, converts it via `value()`,
|
|
561
|
+
* and returns the result. If the picked value is itself an array, each item
|
|
562
|
+
* is converted and joined with spaces (e.g. for shorthand properties).
|
|
563
|
+
*/
|
|
564
|
+
declare const values: Values;
|
|
565
|
+
//#endregion
|
|
566
|
+
export { ALIGN_CONTENT_DIRECTION, ALIGN_CONTENT_MAP_X, ALIGN_CONTENT_MAP_Y, type AlignContent, type AlignContentAlignXKeys, type AlignContentAlignYKeys, type AlignContentDirectionKeys, type Breakpoints, type BrowserColors, type Color, type CreateMediaQueries, type Defaults, type ExtendCss, type MakeItResponsive, type MakeItResponsiveStyles, type NormalizeTheme, type PropertyValue, Provider, type SortBreakpoints, type StripUnit, type Styles, type Theme as StylesTheme, type TProvider, type TransformTheme, type UnitValue, type Value, type Values, alignContent, breakpoints$1 as breakpoints, context, createMediaQueries, extendCss, makeItResponsive, normalizeTheme, sortBreakpoints, stripUnit, styles$1 as styles, transformTheme, value, values };
|
|
567
|
+
//# sourceMappingURL=index.d.d.ts.map
|