@pyreon/unistyle 0.0.2
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 +21 -0
- package/README.md +194 -0
- package/lib/index.d.ts +499 -0
- package/lib/index.js +1826 -0
- package/package.json +47 -0
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,499 @@
|
|
|
1
|
+
import { config, context } from "@pyreon/ui-core";
|
|
2
|
+
import { VNode } from "@pyreon/core";
|
|
3
|
+
|
|
4
|
+
//#region src/context.d.ts
|
|
5
|
+
type Theme$2 = {
|
|
6
|
+
rootSize: number;
|
|
7
|
+
breakpoints?: Record<string, number>;
|
|
8
|
+
__PYREON__?: never;
|
|
9
|
+
} & Partial<Record<string, unknown>>;
|
|
10
|
+
type TProvider = {
|
|
11
|
+
theme: Theme$2;
|
|
12
|
+
children?: VNode | null;
|
|
13
|
+
};
|
|
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 function Provider(props: TProvider): VNode | null;
|
|
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 Css$2 = (strings: TemplateStringsArray, ...values: any[]) => any;
|
|
37
|
+
type CreateMediaQueries = <B extends Record<string, number>, R extends number, C extends Css$2>(props: {
|
|
38
|
+
breakpoints: B;
|
|
39
|
+
rootSize: R;
|
|
40
|
+
css: C;
|
|
41
|
+
}) => Record<keyof B, (...args: any[]) => string>;
|
|
42
|
+
declare const createMediaQueries: CreateMediaQueries;
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/responsive/sortBreakpoints.d.ts
|
|
45
|
+
type SortBreakpoints = <T extends Record<string, number>>(breakpoints: T) => (keyof T)[];
|
|
46
|
+
declare const sortBreakpoints: SortBreakpoints;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/responsive/makeItResponsive.d.ts
|
|
49
|
+
type Css$1 = (strings: TemplateStringsArray, ...values: any[]) => any;
|
|
50
|
+
type CustomTheme = Record<string, Record<string, unknown> | number | string | boolean>;
|
|
51
|
+
type Theme$1 = Partial<{
|
|
52
|
+
rootSize: number;
|
|
53
|
+
breakpoints: Record<string, number>;
|
|
54
|
+
__PYREON__: Partial<{
|
|
55
|
+
media: ReturnType<typeof createMediaQueries>;
|
|
56
|
+
sortedBreakpoints: ReturnType<typeof sortBreakpoints>;
|
|
57
|
+
}>;
|
|
58
|
+
}> & CustomTheme;
|
|
59
|
+
type MakeItResponsiveStyles<T extends Partial<Record<string, any>> = any> = ({
|
|
60
|
+
theme,
|
|
61
|
+
css,
|
|
62
|
+
rootSize,
|
|
63
|
+
globalTheme
|
|
64
|
+
}: {
|
|
65
|
+
theme: T;
|
|
66
|
+
css: Css$1;
|
|
67
|
+
rootSize?: number | undefined;
|
|
68
|
+
globalTheme?: Record<string, any> | undefined;
|
|
69
|
+
}) => ReturnType<typeof css> | string | any;
|
|
70
|
+
type MakeItResponsive = ({
|
|
71
|
+
theme,
|
|
72
|
+
key,
|
|
73
|
+
css,
|
|
74
|
+
styles,
|
|
75
|
+
normalize
|
|
76
|
+
}: {
|
|
77
|
+
theme?: CustomTheme;
|
|
78
|
+
key?: string;
|
|
79
|
+
css: any;
|
|
80
|
+
styles: MakeItResponsiveStyles;
|
|
81
|
+
normalize?: boolean;
|
|
82
|
+
}) => (props: {
|
|
83
|
+
theme?: Theme$1;
|
|
84
|
+
[prop: string]: any;
|
|
85
|
+
}) => any;
|
|
86
|
+
declare const makeItResponsive: MakeItResponsive;
|
|
87
|
+
//#endregion
|
|
88
|
+
//#region src/responsive/normalizeTheme.d.ts
|
|
89
|
+
type NormalizeTheme = ({
|
|
90
|
+
theme,
|
|
91
|
+
breakpoints
|
|
92
|
+
}: {
|
|
93
|
+
theme: Record<string, unknown>;
|
|
94
|
+
breakpoints: string[];
|
|
95
|
+
}) => Record<string, unknown>;
|
|
96
|
+
declare const normalizeTheme: NormalizeTheme;
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/responsive/transformTheme.d.ts
|
|
99
|
+
type TransformTheme = ({
|
|
100
|
+
theme,
|
|
101
|
+
breakpoints
|
|
102
|
+
}: {
|
|
103
|
+
theme: Record<string, unknown>;
|
|
104
|
+
breakpoints: string[];
|
|
105
|
+
}) => any;
|
|
106
|
+
declare const transformTheme: TransformTheme;
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/styles/alignContent.d.ts
|
|
109
|
+
type AlignContentDirectionKeys = keyof typeof ALIGN_CONTENT_DIRECTION;
|
|
110
|
+
type AlignContentAlignXKeys = keyof typeof ALIGN_CONTENT_MAP_X;
|
|
111
|
+
type AlignContentAlignYKeys = keyof typeof ALIGN_CONTENT_MAP_Y;
|
|
112
|
+
declare const ALIGN_CONTENT_MAP_X: {
|
|
113
|
+
readonly center: string;
|
|
114
|
+
readonly spaceBetween: string;
|
|
115
|
+
readonly spaceAround: string;
|
|
116
|
+
readonly block: string;
|
|
117
|
+
readonly left: "flex-start";
|
|
118
|
+
readonly right: "flex-end";
|
|
119
|
+
};
|
|
120
|
+
declare const ALIGN_CONTENT_MAP_Y: {
|
|
121
|
+
readonly center: string;
|
|
122
|
+
readonly spaceBetween: string;
|
|
123
|
+
readonly spaceAround: string;
|
|
124
|
+
readonly block: string;
|
|
125
|
+
readonly top: "flex-start";
|
|
126
|
+
readonly bottom: "flex-end";
|
|
127
|
+
};
|
|
128
|
+
declare const ALIGN_CONTENT_DIRECTION: {
|
|
129
|
+
readonly inline: "row";
|
|
130
|
+
readonly reverseInline: "row-reverse";
|
|
131
|
+
readonly rows: "column";
|
|
132
|
+
readonly reverseRows: "column-reverse";
|
|
133
|
+
};
|
|
134
|
+
type AlignContent = ({
|
|
135
|
+
direction,
|
|
136
|
+
alignX,
|
|
137
|
+
alignY
|
|
138
|
+
}: {
|
|
139
|
+
direction: AlignContentDirectionKeys;
|
|
140
|
+
alignX: AlignContentAlignXKeys;
|
|
141
|
+
alignY: AlignContentAlignYKeys;
|
|
142
|
+
}) => string | null;
|
|
143
|
+
declare const alignContent: AlignContent;
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/styles/extendCss.d.ts
|
|
146
|
+
type ExtendCss = (styles: ((css: (strings: TemplateStringsArray, ...values: any[]) => string) => string) | string | null | undefined) => string;
|
|
147
|
+
declare const extendCss: ExtendCss;
|
|
148
|
+
//#endregion
|
|
149
|
+
//#region src/styles/styles/types.d.ts
|
|
150
|
+
type PropertyValue$1 = string | number | null | undefined;
|
|
151
|
+
type Color$1 = string | null | undefined;
|
|
152
|
+
interface ITheme {
|
|
153
|
+
fullScreen?: boolean;
|
|
154
|
+
hideEmpty?: boolean;
|
|
155
|
+
clearFix?: boolean;
|
|
156
|
+
extendCss?: string | ((css: (...args: any[]) => string) => string);
|
|
157
|
+
all?: string;
|
|
158
|
+
display?: string;
|
|
159
|
+
position?: string;
|
|
160
|
+
boxSizing?: string;
|
|
161
|
+
float?: string;
|
|
162
|
+
inset?: PropertyValue$1;
|
|
163
|
+
insetX?: PropertyValue$1;
|
|
164
|
+
insetY?: PropertyValue$1;
|
|
165
|
+
top?: PropertyValue$1;
|
|
166
|
+
left?: PropertyValue$1;
|
|
167
|
+
bottom?: PropertyValue$1;
|
|
168
|
+
right?: PropertyValue$1;
|
|
169
|
+
width?: PropertyValue$1;
|
|
170
|
+
minWidth?: PropertyValue$1;
|
|
171
|
+
maxWidth?: PropertyValue$1;
|
|
172
|
+
height?: PropertyValue$1;
|
|
173
|
+
minHeight?: PropertyValue$1;
|
|
174
|
+
maxHeight?: PropertyValue$1;
|
|
175
|
+
size?: PropertyValue$1;
|
|
176
|
+
minSize?: PropertyValue$1;
|
|
177
|
+
maxSize?: PropertyValue$1;
|
|
178
|
+
gap?: PropertyValue$1;
|
|
179
|
+
aspectRatio?: string;
|
|
180
|
+
contain?: string;
|
|
181
|
+
containerType?: string;
|
|
182
|
+
containerName?: string;
|
|
183
|
+
container?: string;
|
|
184
|
+
inlineSize?: PropertyValue$1;
|
|
185
|
+
blockSize?: PropertyValue$1;
|
|
186
|
+
minInlineSize?: PropertyValue$1;
|
|
187
|
+
minBlockSize?: PropertyValue$1;
|
|
188
|
+
maxInlineSize?: PropertyValue$1;
|
|
189
|
+
maxBlockSize?: PropertyValue$1;
|
|
190
|
+
margin?: PropertyValue$1;
|
|
191
|
+
marginX?: PropertyValue$1;
|
|
192
|
+
marginY?: PropertyValue$1;
|
|
193
|
+
marginTop?: PropertyValue$1;
|
|
194
|
+
marginLeft?: PropertyValue$1;
|
|
195
|
+
marginBottom?: PropertyValue$1;
|
|
196
|
+
marginRight?: PropertyValue$1;
|
|
197
|
+
padding?: PropertyValue$1;
|
|
198
|
+
paddingX?: PropertyValue$1;
|
|
199
|
+
paddingY?: PropertyValue$1;
|
|
200
|
+
paddingTop?: PropertyValue$1;
|
|
201
|
+
paddingLeft?: PropertyValue$1;
|
|
202
|
+
paddingBottom?: PropertyValue$1;
|
|
203
|
+
paddingRight?: PropertyValue$1;
|
|
204
|
+
marginInline?: PropertyValue$1;
|
|
205
|
+
marginInlineStart?: PropertyValue$1;
|
|
206
|
+
marginInlineEnd?: PropertyValue$1;
|
|
207
|
+
marginBlock?: PropertyValue$1;
|
|
208
|
+
marginBlockStart?: PropertyValue$1;
|
|
209
|
+
marginBlockEnd?: PropertyValue$1;
|
|
210
|
+
paddingInline?: PropertyValue$1;
|
|
211
|
+
paddingInlineStart?: PropertyValue$1;
|
|
212
|
+
paddingInlineEnd?: PropertyValue$1;
|
|
213
|
+
paddingBlock?: PropertyValue$1;
|
|
214
|
+
paddingBlockStart?: PropertyValue$1;
|
|
215
|
+
paddingBlockEnd?: PropertyValue$1;
|
|
216
|
+
insetInline?: PropertyValue$1;
|
|
217
|
+
insetInlineStart?: PropertyValue$1;
|
|
218
|
+
insetInlineEnd?: PropertyValue$1;
|
|
219
|
+
insetBlock?: PropertyValue$1;
|
|
220
|
+
insetBlockStart?: PropertyValue$1;
|
|
221
|
+
insetBlockEnd?: PropertyValue$1;
|
|
222
|
+
alignContent?: string;
|
|
223
|
+
alignItems?: string;
|
|
224
|
+
alignSelf?: string;
|
|
225
|
+
flex?: string | number;
|
|
226
|
+
flexBasis?: string | number;
|
|
227
|
+
flexDirection?: string;
|
|
228
|
+
flexFlow?: string;
|
|
229
|
+
flexGrow?: number;
|
|
230
|
+
flexShrink?: number;
|
|
231
|
+
flexWrap?: string;
|
|
232
|
+
justifyContent?: string;
|
|
233
|
+
justifyItems?: string;
|
|
234
|
+
justifySelf?: string;
|
|
235
|
+
placeItems?: string;
|
|
236
|
+
placeContent?: string;
|
|
237
|
+
placeSelf?: string;
|
|
238
|
+
rowGap?: PropertyValue$1;
|
|
239
|
+
columnGap?: PropertyValue$1;
|
|
240
|
+
grid?: string;
|
|
241
|
+
gridArea?: string;
|
|
242
|
+
gridAutoColumns?: PropertyValue$1;
|
|
243
|
+
gridAutoFlow?: string;
|
|
244
|
+
gridAutoRows?: PropertyValue$1;
|
|
245
|
+
gridColumn?: string;
|
|
246
|
+
gridColumnEnd?: string;
|
|
247
|
+
gridColumnGap?: PropertyValue$1;
|
|
248
|
+
gridColumnStart?: PropertyValue$1;
|
|
249
|
+
gridGap?: PropertyValue$1;
|
|
250
|
+
gridRow?: string;
|
|
251
|
+
gridRowStart?: string;
|
|
252
|
+
gridRowEnd?: string;
|
|
253
|
+
gridRowGap?: PropertyValue$1;
|
|
254
|
+
gridTemplate?: string;
|
|
255
|
+
gridTemplateAreas?: string;
|
|
256
|
+
gridTemplateColumns?: string;
|
|
257
|
+
gridTemplateRows?: string;
|
|
258
|
+
objectFit?: string;
|
|
259
|
+
objectPosition?: string;
|
|
260
|
+
order?: number;
|
|
261
|
+
opacity?: number | string;
|
|
262
|
+
resize?: string;
|
|
263
|
+
verticalAlign?: string;
|
|
264
|
+
lineHeight?: string | number;
|
|
265
|
+
font?: string;
|
|
266
|
+
fontFamily?: string;
|
|
267
|
+
fontSize?: PropertyValue$1;
|
|
268
|
+
fontSizeAdjust?: PropertyValue$1;
|
|
269
|
+
fontStretch?: PropertyValue$1;
|
|
270
|
+
fontStyle?: string;
|
|
271
|
+
fontVariant?: string;
|
|
272
|
+
fontWeight?: string | number;
|
|
273
|
+
fontKerning?: string;
|
|
274
|
+
fontFeatureSettings?: string;
|
|
275
|
+
fontVariationSettings?: string;
|
|
276
|
+
fontOpticalSizing?: string;
|
|
277
|
+
textAlign?: string;
|
|
278
|
+
textAlignLast?: string;
|
|
279
|
+
textTransform?: string;
|
|
280
|
+
textDecoration?: string;
|
|
281
|
+
textDecorationColor?: Color$1;
|
|
282
|
+
textDecorationLine?: string;
|
|
283
|
+
textDecorationStyle?: string;
|
|
284
|
+
textDecorationThickness?: string;
|
|
285
|
+
textUnderlineOffset?: string;
|
|
286
|
+
textEmphasis?: string;
|
|
287
|
+
textEmphasisColor?: Color$1;
|
|
288
|
+
textEmphasisStyle?: string;
|
|
289
|
+
letterSpacing?: string;
|
|
290
|
+
wordSpacing?: string;
|
|
291
|
+
textIndent?: string;
|
|
292
|
+
textJustify?: string;
|
|
293
|
+
textOverflow?: string;
|
|
294
|
+
textShadow?: string;
|
|
295
|
+
textWrap?: string;
|
|
296
|
+
textRendering?: string;
|
|
297
|
+
whiteSpace?: string;
|
|
298
|
+
wordBreak?: string;
|
|
299
|
+
wordWrap?: string;
|
|
300
|
+
writingMode?: string;
|
|
301
|
+
direction?: string;
|
|
302
|
+
hyphens?: string;
|
|
303
|
+
listStyle?: string;
|
|
304
|
+
listStyleImage?: string;
|
|
305
|
+
listStylePosition?: string;
|
|
306
|
+
listStyleType?: string;
|
|
307
|
+
color?: Color$1;
|
|
308
|
+
background?: string;
|
|
309
|
+
backgroundColor?: Color$1;
|
|
310
|
+
backgroundImage?: string;
|
|
311
|
+
backgroundAttachment?: string;
|
|
312
|
+
backgroundClip?: string;
|
|
313
|
+
backgroundOrigin?: string;
|
|
314
|
+
backgroundPosition?: string;
|
|
315
|
+
backgroundRepeat?: string;
|
|
316
|
+
backgroundSize?: string;
|
|
317
|
+
borderRadius?: PropertyValue$1;
|
|
318
|
+
borderRadiusTop?: PropertyValue$1;
|
|
319
|
+
borderRadiusBottom?: PropertyValue$1;
|
|
320
|
+
borderRadiusLeft?: PropertyValue$1;
|
|
321
|
+
borderRadiusRight?: PropertyValue$1;
|
|
322
|
+
borderRadiusTopLeft?: PropertyValue$1;
|
|
323
|
+
borderRadiusTopRight?: PropertyValue$1;
|
|
324
|
+
borderRadiusBottomLeft?: PropertyValue$1;
|
|
325
|
+
borderRadiusBottomRight?: PropertyValue$1;
|
|
326
|
+
border?: string;
|
|
327
|
+
borderTop?: string;
|
|
328
|
+
borderBottom?: string;
|
|
329
|
+
borderLeft?: string;
|
|
330
|
+
borderRight?: string;
|
|
331
|
+
borderWidth?: PropertyValue$1;
|
|
332
|
+
borderWidthX?: PropertyValue$1;
|
|
333
|
+
borderWidthY?: PropertyValue$1;
|
|
334
|
+
borderWidthTop?: PropertyValue$1;
|
|
335
|
+
borderWidthLeft?: PropertyValue$1;
|
|
336
|
+
borderWidthBottom?: PropertyValue$1;
|
|
337
|
+
borderWidthRight?: PropertyValue$1;
|
|
338
|
+
borderStyle?: string;
|
|
339
|
+
borderStyleX?: string;
|
|
340
|
+
borderStyleY?: string;
|
|
341
|
+
borderStyleTop?: string;
|
|
342
|
+
borderStyleLeft?: string;
|
|
343
|
+
borderStyleBottom?: string;
|
|
344
|
+
borderStyleRight?: string;
|
|
345
|
+
borderColor?: Color$1;
|
|
346
|
+
borderColorX?: Color$1;
|
|
347
|
+
borderColorY?: Color$1;
|
|
348
|
+
borderColorTop?: Color$1;
|
|
349
|
+
borderColorLeft?: Color$1;
|
|
350
|
+
borderColorBottom?: Color$1;
|
|
351
|
+
borderColorRight?: Color$1;
|
|
352
|
+
borderImage?: string;
|
|
353
|
+
borderImageOutset?: string;
|
|
354
|
+
borderImageRepeat?: string;
|
|
355
|
+
borderImageSlice?: string;
|
|
356
|
+
borderImageSource?: string;
|
|
357
|
+
borderImageWidth?: string;
|
|
358
|
+
borderSpacing?: string;
|
|
359
|
+
borderInline?: string;
|
|
360
|
+
borderBlock?: string;
|
|
361
|
+
borderInlineStart?: string;
|
|
362
|
+
borderInlineEnd?: string;
|
|
363
|
+
borderBlockStart?: string;
|
|
364
|
+
borderBlockEnd?: string;
|
|
365
|
+
backfaceVisibility?: string;
|
|
366
|
+
boxShadow?: string;
|
|
367
|
+
filter?: string;
|
|
368
|
+
backdropFilter?: string;
|
|
369
|
+
mixBlendMode?: string;
|
|
370
|
+
backgroundBlendMode?: string;
|
|
371
|
+
isolation?: string;
|
|
372
|
+
outline?: string;
|
|
373
|
+
outlineColor?: Color$1;
|
|
374
|
+
outlineOffset?: string;
|
|
375
|
+
outlineStyle?: string;
|
|
376
|
+
outlineWidth?: string;
|
|
377
|
+
keyframe?: string;
|
|
378
|
+
animation?: string;
|
|
379
|
+
animationName?: string;
|
|
380
|
+
animationDuration?: string;
|
|
381
|
+
animationTimingFunction?: string;
|
|
382
|
+
animationDelay?: string;
|
|
383
|
+
animationIterationCount?: string | number;
|
|
384
|
+
animationDirection?: string;
|
|
385
|
+
animationFillMode?: string;
|
|
386
|
+
animationPlayState?: string;
|
|
387
|
+
transition?: string;
|
|
388
|
+
transitionDelay?: string;
|
|
389
|
+
transitionDuration?: string;
|
|
390
|
+
transitionProperty?: string;
|
|
391
|
+
transitionTimingFunction?: string;
|
|
392
|
+
transform?: string;
|
|
393
|
+
transformOrigin?: string;
|
|
394
|
+
transformStyle?: string;
|
|
395
|
+
translate?: string;
|
|
396
|
+
rotate?: string;
|
|
397
|
+
scale?: string | number;
|
|
398
|
+
willChange?: string;
|
|
399
|
+
scrollBehavior?: string;
|
|
400
|
+
scrollSnapType?: string;
|
|
401
|
+
scrollSnapAlign?: string;
|
|
402
|
+
scrollSnapStop?: string;
|
|
403
|
+
scrollMargin?: string;
|
|
404
|
+
scrollPadding?: string;
|
|
405
|
+
overscrollBehavior?: string;
|
|
406
|
+
overscrollBehaviorX?: string;
|
|
407
|
+
overscrollBehaviorY?: string;
|
|
408
|
+
cursor?: string;
|
|
409
|
+
pointerEvents?: string;
|
|
410
|
+
userSelect?: string;
|
|
411
|
+
touchAction?: string;
|
|
412
|
+
scrollbarWidth?: string;
|
|
413
|
+
scrollbarColor?: string;
|
|
414
|
+
scrollbarGutter?: string;
|
|
415
|
+
caretColor?: Color$1;
|
|
416
|
+
accentColor?: Color$1;
|
|
417
|
+
colorScheme?: string;
|
|
418
|
+
captionSide?: string;
|
|
419
|
+
clear?: string;
|
|
420
|
+
clip?: string;
|
|
421
|
+
clipPath?: string;
|
|
422
|
+
content?: string;
|
|
423
|
+
contentVisibility?: string;
|
|
424
|
+
counterIncrement?: string;
|
|
425
|
+
counterReset?: string;
|
|
426
|
+
emptyCells?: string;
|
|
427
|
+
zIndex?: number | string;
|
|
428
|
+
overflow?: string;
|
|
429
|
+
overflowWrap?: string;
|
|
430
|
+
overflowX?: string;
|
|
431
|
+
overflowY?: string;
|
|
432
|
+
perspective?: string;
|
|
433
|
+
perspectiveOrigin?: string;
|
|
434
|
+
quotes?: string;
|
|
435
|
+
tabSize?: string | number;
|
|
436
|
+
tableLayout?: string;
|
|
437
|
+
visibility?: string;
|
|
438
|
+
appearance?: string;
|
|
439
|
+
imageRendering?: string;
|
|
440
|
+
maskImage?: string;
|
|
441
|
+
maskSize?: string;
|
|
442
|
+
maskPosition?: string;
|
|
443
|
+
maskRepeat?: string;
|
|
444
|
+
shapeOutside?: string;
|
|
445
|
+
shapeMargin?: string;
|
|
446
|
+
shapeImageThreshold?: string | number;
|
|
447
|
+
columnCount?: number | string;
|
|
448
|
+
columnWidth?: string;
|
|
449
|
+
columnRule?: string;
|
|
450
|
+
columns?: string;
|
|
451
|
+
breakBefore?: string;
|
|
452
|
+
breakAfter?: string;
|
|
453
|
+
breakInside?: string;
|
|
454
|
+
orphans?: number;
|
|
455
|
+
widows?: number;
|
|
456
|
+
printColorAdjust?: string;
|
|
457
|
+
}
|
|
458
|
+
type InnerTheme = { [K in keyof ITheme]?: ITheme[K] | null | undefined };
|
|
459
|
+
type Theme = { [K in keyof InnerTheme]?: InnerTheme[K] | (() => ITheme[K]) };
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region src/styles/styles/index.d.ts
|
|
462
|
+
type Css = (strings: TemplateStringsArray, ...args: any[]) => string;
|
|
463
|
+
type Styles = ({
|
|
464
|
+
theme,
|
|
465
|
+
css,
|
|
466
|
+
rootSize
|
|
467
|
+
}: {
|
|
468
|
+
theme: InnerTheme;
|
|
469
|
+
css: Css;
|
|
470
|
+
rootSize?: number;
|
|
471
|
+
}) => string;
|
|
472
|
+
declare const styles$1: Styles;
|
|
473
|
+
//#endregion
|
|
474
|
+
//#region src/types.d.ts
|
|
475
|
+
type Defaults = "initial" | "inherit";
|
|
476
|
+
type Units = "px" | "rem" | "em" | "%" | "vh" | "vw" | "vmin" | "vmax" | "ex";
|
|
477
|
+
type UnitValue = number | `${number}${Units}`;
|
|
478
|
+
type PropertyValue = UnitValue | "auto" | Defaults | `calc(${string | number})`;
|
|
479
|
+
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;
|
|
480
|
+
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";
|
|
481
|
+
//#endregion
|
|
482
|
+
//#region src/units/stripUnit.d.ts
|
|
483
|
+
type Value$1<V> = V extends string ? number : V;
|
|
484
|
+
type Unit<V> = V extends string ? string : undefined;
|
|
485
|
+
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>;
|
|
486
|
+
declare const stripUnit: StripUnit;
|
|
487
|
+
//#endregion
|
|
488
|
+
//#region src/units/value.d.ts
|
|
489
|
+
type CssUnits$1 = "px" | "rem" | "%" | "em" | "ex" | "cm" | "mm" | "in" | "pt" | "pc" | "ch" | "vh" | "vw" | "vmin" | "vmax";
|
|
490
|
+
type Value = (param: string | number | null | undefined, rootSize?: number, outputUnit?: CssUnits$1) => string | number | null;
|
|
491
|
+
declare const value: Value;
|
|
492
|
+
//#endregion
|
|
493
|
+
//#region src/units/values.d.ts
|
|
494
|
+
type CssUnits = "px" | "rem" | "%" | "em" | "ex" | "cm" | "mm" | "in" | "pt" | "pc" | "ch" | "vh" | "vw" | "vmin" | "vmax";
|
|
495
|
+
type Values = (items: unknown[], rootSize?: number, outputUnit?: CssUnits) => string | number | null;
|
|
496
|
+
declare const values: Values;
|
|
497
|
+
//#endregion
|
|
498
|
+
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 };
|
|
499
|
+
//# sourceMappingURL=index2.d.ts.map
|