1 | import * as CSS from "csstype";
|
2 |
|
3 | export function get(obj: any, ...paths: Array<string | number>): any;
|
4 |
|
5 | export type ObjectOrArray<T, K extends keyof any = keyof any> = T[] | Record<K, T | Record<K, T> | T[]>;
|
6 |
|
7 | export type Scale = ObjectOrArray<number | string>;
|
8 |
|
9 | export type TLengthStyledSystem = string | 0 | number;
|
10 |
|
11 | export interface Theme<TLength = TLengthStyledSystem> {
|
12 | breakpoints?: ObjectOrArray<number | string | symbol> | undefined;
|
13 | mediaQueries?: { [size: string]: string } | undefined;
|
14 | space?: ObjectOrArray<CSS.Property.Margin<number | string>> | undefined;
|
15 | fontSizes?: ObjectOrArray<CSS.Property.FontSize<number>> | undefined;
|
16 | colors?: ObjectOrArray<CSS.Property.Color> | undefined;
|
17 | fonts?: ObjectOrArray<CSS.Property.FontFamily> | undefined;
|
18 | fontWeights?: ObjectOrArray<CSS.Property.FontWeight> | undefined;
|
19 | lineHeights?: ObjectOrArray<CSS.Property.LineHeight<TLength>> | undefined;
|
20 | letterSpacings?: ObjectOrArray<CSS.Property.LetterSpacing<TLength>> | undefined;
|
21 | sizes?: ObjectOrArray<CSS.Property.Height<{}> | CSS.Property.Width<{}>> | undefined;
|
22 | borders?: ObjectOrArray<CSS.Property.Border<{}>> | undefined;
|
23 | borderStyles?: ObjectOrArray<CSS.Property.Border<{}>> | undefined;
|
24 | borderWidths?: ObjectOrArray<CSS.Property.BorderWidth<TLength>> | undefined;
|
25 | radii?: ObjectOrArray<CSS.Property.BorderRadius<TLength>> | undefined;
|
26 | shadows?: ObjectOrArray<CSS.Property.BoxShadow> | undefined;
|
27 | zIndices?: ObjectOrArray<CSS.Property.ZIndex> | undefined;
|
28 | buttons?: ObjectOrArray<CSS.StandardProperties> | undefined;
|
29 | colorStyles?: ObjectOrArray<CSS.StandardProperties> | undefined;
|
30 | textStyles?: ObjectOrArray<CSS.StandardProperties> | undefined;
|
31 | }
|
32 |
|
33 | export type RequiredTheme = Required<Theme>;
|
34 |
|
35 | export type ResponsiveValue<
|
36 | T,
|
37 | ThemeType extends Theme = RequiredTheme,
|
38 | > = T | null | Array<T | null> | { [key in ThemeValue<"breakpoints", ThemeType> & string | number]?: T };
|
39 |
|
40 | export type ThemeValue<K extends keyof ThemeType, ThemeType, TVal = any> = ThemeType[K] extends TVal[] ? number
|
41 | : ThemeType[K] extends Record<infer E, TVal> ? E
|
42 | : ThemeType[K] extends ObjectOrArray<infer F> ? F
|
43 | : never;
|
44 |
|
45 | export interface SpaceProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<"space", ThemeType>> {
|
46 |
|
47 | m?: ResponsiveValue<TVal, ThemeType> | undefined;
|
48 |
|
49 | margin?: ResponsiveValue<TVal, ThemeType> | undefined;
|
50 |
|
51 | mt?: ResponsiveValue<TVal, ThemeType> | undefined;
|
52 |
|
53 | marginTop?: ResponsiveValue<TVal, ThemeType> | undefined;
|
54 |
|
55 | mr?: ResponsiveValue<TVal, ThemeType> | undefined;
|
56 |
|
57 | marginRight?: ResponsiveValue<TVal, ThemeType> | undefined;
|
58 |
|
59 | mb?: ResponsiveValue<TVal, ThemeType> | undefined;
|
60 |
|
61 | marginBottom?: ResponsiveValue<TVal, ThemeType> | undefined;
|
62 |
|
63 | ml?: ResponsiveValue<TVal, ThemeType> | undefined;
|
64 |
|
65 | marginLeft?: ResponsiveValue<TVal, ThemeType> | undefined;
|
66 |
|
67 | mx?: ResponsiveValue<TVal, ThemeType> | undefined;
|
68 |
|
69 | marginX?: ResponsiveValue<TVal, ThemeType> | undefined;
|
70 |
|
71 | my?: ResponsiveValue<TVal, ThemeType> | undefined;
|
72 |
|
73 | marginY?: ResponsiveValue<TVal, ThemeType> | undefined;
|
74 |
|
75 | p?: ResponsiveValue<TVal, ThemeType> | undefined;
|
76 |
|
77 | padding?: ResponsiveValue<TVal, ThemeType> | undefined;
|
78 |
|
79 | pt?: ResponsiveValue<TVal, ThemeType> | undefined;
|
80 |
|
81 | paddingTop?: ResponsiveValue<TVal, ThemeType> | undefined;
|
82 |
|
83 | pr?: ResponsiveValue<TVal, ThemeType> | undefined;
|
84 |
|
85 | paddingRight?: ResponsiveValue<TVal, ThemeType> | undefined;
|
86 |
|
87 | pb?: ResponsiveValue<TVal, ThemeType> | undefined;
|
88 |
|
89 | paddingBottom?: ResponsiveValue<TVal, ThemeType> | undefined;
|
90 |
|
91 | pl?: ResponsiveValue<TVal, ThemeType> | undefined;
|
92 |
|
93 | paddingLeft?: ResponsiveValue<TVal, ThemeType> | undefined;
|
94 |
|
95 | px?: ResponsiveValue<TVal, ThemeType> | undefined;
|
96 |
|
97 | paddingX?: ResponsiveValue<TVal, ThemeType> | undefined;
|
98 |
|
99 | py?: ResponsiveValue<TVal, ThemeType> | undefined;
|
100 |
|
101 | paddingY?: ResponsiveValue<TVal, ThemeType> | undefined;
|
102 | }
|
103 |
|
104 |
|
105 |
|
106 | export interface LowLevelStyleFunctionArguments<N, S> {
|
107 | prop: string;
|
108 | cssProperty?: string | undefined;
|
109 | alias?: string | undefined;
|
110 | key?: string | undefined;
|
111 | transformValue?: ((n: N, scale?: S) => any) | undefined;
|
112 | scale?: S | undefined;
|
113 | // new v5 api
|
114 | properties?: string[] | undefined;
|
115 | }
|
116 |
|
117 | // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
118 | export function style<N = string | number, S = Scale>(
|
119 | args: LowLevelStyleFunctionArguments<N, S>,
|
120 | ): styleFn;
|
121 |
|
122 | export interface styleFn {
|
123 | (...args: any[]): any;
|
124 |
|
125 | config?: object | undefined;
|
126 | propNames?: string[] | undefined;
|
127 | cache?: object | undefined;
|
128 | }
|
129 |
|
130 | export interface ConfigFunction {
|
131 | (value: any, scale: Scale | undefined, props: any): any;
|
132 | /** A string referencing a key in the `theme` object. */
|
133 | scale?: string;
|
134 | /** A fallback scale object for when there isn't one defined in the `theme` object. */
|
135 | defaults?: Scale;
|
136 | }
|
137 |
|
138 | export interface ConfigStyle {
|
139 | /** The CSS property to use in the returned style object (overridden by `properties` if present). */
|
140 | property?: keyof CSS.Properties | undefined;
|
141 | /**
|
142 | * An array of multiple properties (e.g. `['marginLeft', 'marginRight']`) to which this style's value will be
|
143 | * assigned (overrides `property` when present).
|
144 | */
|
145 | properties?: Array<keyof CSS.Properties> | undefined;
|
146 | /** A string referencing a key in the `theme` object. */
|
147 | scale?: string | undefined;
|
148 | /** A fallback scale object for when there isn't one defined in the `theme` object. */
|
149 | defaultScale?: Scale | undefined;
|
150 | /** A function to transform the raw value based on the scale. */
|
151 | transform?: ((value: any, scale?: Scale) => any) | undefined;
|
152 | }
|
153 |
|
154 | export interface Config {
|
155 | /** Property name exposed for use in components */
|
156 | [customStyleName: string]: ConfigStyle | ConfigFunction | boolean;
|
157 | }
|
158 |
|
159 | export function compose(...parsers: styleFn[]): styleFn;
|
160 |
|
161 | export function system(styleDefinitions: Config): styleFn;
|
162 |
|
163 | export function createParser(config: ConfigStyle): styleFn;
|
164 |
|
165 | export function createStyleFunction(args: ConfigStyle): styleFn;
|
166 |
|
167 | export interface VariantArgs<
|
168 | TStyle = object,
|
169 | K extends string = string,
|
170 | TPropName = string,
|
171 | > {
|
172 | key?: string | undefined;
|
173 | /** Component prop, defaults to "variant" */
|
174 | prop?: TPropName | undefined;
|
175 | /** theme key for variant definitions */
|
176 | scale?: string | undefined;
|
177 | /** inline theme aware variants definitions */
|
178 | variants?:
|
179 | | {
|
180 | [key in K]: TStyle;
|
181 | }
|
182 | | undefined;
|
183 | }
|
184 |
|
185 | export function variant<
|
186 | // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
187 | TStyle = object,
|
188 | // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
189 | K extends string = string,
|
190 | // eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
191 | TPropName = string,
|
192 | >(
|
193 | props: VariantArgs<TStyle, K, TPropName>,
|
194 | ): (...args: any[]) => any;
|
195 |
|
196 |
|
197 |
|
198 |
|
199 |
|
200 |
|
201 |
|
202 |
|
203 |
|
204 |
|
205 | export const space: styleFn;
|
206 |
|
207 | export interface MarginProps<ThemeType extends Theme = RequiredTheme> extends
|
208 | Pick<
|
209 | SpaceProps<ThemeType>,
|
210 | | "m"
|
211 | | "margin"
|
212 | | "mt"
|
213 | | "marginTop"
|
214 | | "mb"
|
215 | | "marginBottom"
|
216 | | "ml"
|
217 | | "marginLeft"
|
218 | | "mr"
|
219 | | "marginRight"
|
220 | | "my"
|
221 | | "marginY"
|
222 | | "mx"
|
223 | | "marginX"
|
224 | >
|
225 | {
|
226 | }
|
227 |
|
228 | export interface MarginTopProps<ThemeType extends Theme = RequiredTheme>
|
229 | extends Pick<SpaceProps<ThemeType>, "mt" | "marginTop">
|
230 | {
|
231 | }
|
232 |
|
233 | export interface MarginBottomProps<ThemeType extends Theme = RequiredTheme>
|
234 | extends Pick<SpaceProps<ThemeType>, "mb" | "marginBottom">
|
235 | {
|
236 | }
|
237 |
|
238 | export interface MarginLeftProps<ThemeType extends Theme = RequiredTheme>
|
239 | extends Pick<SpaceProps<ThemeType>, "ml" | "marginLeft">
|
240 | {
|
241 | }
|
242 |
|
243 | export interface MarginRightProps<ThemeType extends Theme = RequiredTheme>
|
244 | extends Pick<SpaceProps<ThemeType>, "mr" | "marginRight">
|
245 | {
|
246 | }
|
247 |
|
248 | export const margin: styleFn;
|
249 | export const marginTop: styleFn;
|
250 | export const marginBottom: styleFn;
|
251 | export const marginLeft: styleFn;
|
252 | export const marginRight: styleFn;
|
253 |
|
254 | export interface PaddingProps<ThemeType extends Theme = RequiredTheme> extends
|
255 | Pick<
|
256 | SpaceProps<ThemeType>,
|
257 | | "p"
|
258 | | "padding"
|
259 | | "pt"
|
260 | | "paddingTop"
|
261 | | "pb"
|
262 | | "paddingBottom"
|
263 | | "pl"
|
264 | | "paddingLeft"
|
265 | | "pr"
|
266 | | "paddingRight"
|
267 | | "py"
|
268 | | "paddingY"
|
269 | | "px"
|
270 | | "paddingX"
|
271 | >
|
272 | {
|
273 | }
|
274 |
|
275 | export interface PaddingTopProps<ThemeType extends Theme = RequiredTheme>
|
276 | extends Pick<SpaceProps<ThemeType>, "pt" | "paddingTop">
|
277 | {
|
278 | }
|
279 |
|
280 | export interface PaddingBottomProps<ThemeType extends Theme = RequiredTheme>
|
281 | extends Pick<SpaceProps<ThemeType>, "pb" | "paddingBottom">
|
282 | {
|
283 | }
|
284 |
|
285 | export interface PaddingLeftProps<ThemeType extends Theme = RequiredTheme>
|
286 | extends Pick<SpaceProps<ThemeType>, "pl" | "paddingLeft">
|
287 | {
|
288 | }
|
289 |
|
290 | export interface PaddingRightProps<ThemeType extends Theme = RequiredTheme>
|
291 | extends Pick<SpaceProps<ThemeType>, "pr" | "paddingRight">
|
292 | {
|
293 | }
|
294 |
|
295 | export const padding: styleFn;
|
296 | export const paddingTop: styleFn;
|
297 | export const paddingBottom: styleFn;
|
298 | export const paddingLeft: styleFn;
|
299 | export const paddingRight: styleFn;
|
300 |
|
301 |
|
302 |
|
303 |
|
304 |
|
305 | export interface TextColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<"colors", ThemeType>> {
|
306 | |
307 |
|
308 |
|
309 |
|
310 |
|
311 |
|
312 |
|
313 |
|
314 |
|
315 | color?: ResponsiveValue<TVal, ThemeType> | undefined;
|
316 | }
|
317 |
|
318 | export const textColor: styleFn;
|
319 |
|
320 | export interface BackgroundColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<"colors", ThemeType>> {
|
321 | |
322 |
|
323 |
|
324 |
|
325 |
|
326 |
|
327 |
|
328 |
|
329 |
|
330 | bg?: ResponsiveValue<TVal, ThemeType> | undefined;
|
331 | backgroundColor?: ResponsiveValue<TVal, ThemeType> | undefined;
|
332 | }
|
333 |
|
334 | export const backgroundColor: styleFn;
|
335 |
|
336 | export interface ColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<"colors", ThemeType>>
|
337 | extends TextColorProps<ThemeType, TVal>, BackgroundColorProps<ThemeType, TVal>, OpacityProps
|
338 | {
|
339 | }
|
340 |
|
341 | export const color: styleFn;
|
342 |
|
343 |
|
344 |
|
345 |
|
346 |
|
347 | export function getPx(n: any, scale: any): string;
|
348 |
|
349 | export interface FontSizeProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<"fontSizes", ThemeType>> {
|
350 | |
351 |
|
352 |
|
353 |
|
354 |
|
355 |
|
356 |
|
357 |
|
358 | fontSize?: ResponsiveValue<TVal, ThemeType> | undefined;
|
359 | }
|
360 |
|
361 | export const fontSize: styleFn;
|
362 |
|
363 | export interface FontFamilyProps<ThemeType extends Theme = RequiredTheme> {
|
364 | fontFamily?: ResponsiveValue<CSS.Property.FontFamily, ThemeType> | undefined;
|
365 | }
|
366 |
|
367 | export const fontFamily: styleFn;
|
368 |
|
369 | export interface FontWeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<"fontWeights", ThemeType>> {
|
370 | |
371 |
|
372 |
|
373 |
|
374 |
|
375 |
|
376 |
|
377 | fontWeight?: ResponsiveValue<TVal, ThemeType> | undefined;
|
378 | }
|
379 |
|
380 | export const fontWeight: styleFn;
|
381 |
|
382 | export interface LineHeightProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<"lineHeights", ThemeType>> {
|
383 | |
384 |
|
385 |
|
386 |
|
387 |
|
388 |
|
389 |
|
390 |
|
391 | lineHeight?: ResponsiveValue<TVal, ThemeType> | undefined;
|
392 | }
|
393 |
|
394 | export const lineHeight: styleFn;
|
395 |
|
396 | export interface TextAlignProps<ThemeType extends Theme = RequiredTheme> {
|
397 | |
398 |
|
399 |
|
400 |
|
401 |
|
402 | textAlign?: ResponsiveValue<CSS.Property.TextAlign, ThemeType> | undefined;
|
403 | }
|
404 |
|
405 | export const textAlign: styleFn;
|
406 |
|
407 | export interface FontStyleProps<ThemeType extends Theme = RequiredTheme> {
|
408 | |
409 |
|
410 |
|
411 |
|
412 |
|
413 |
|
414 | fontStyle?: ResponsiveValue<CSS.Property.FontStyle, ThemeType> | undefined;
|
415 | }
|
416 |
|
417 | export const fontStyle: styleFn;
|
418 |
|
419 | export interface LetterSpacingProps<
|
420 | ThemeType extends Theme = RequiredTheme,
|
421 | TVal = ThemeValue<"letterSpacings", ThemeType>,
|
422 | > {
|
423 | |
424 |
|
425 |
|
426 |
|
427 |
|
428 | letterSpacing?: ResponsiveValue<TVal, ThemeType> | undefined;
|
429 | }
|
430 |
|
431 | export const letterSpacing: styleFn;
|
432 |
|
433 |
|
434 |
|
435 |
|
436 |
|
437 |
|
438 |
|
439 | export interface TypographyProps<ThemeType extends Theme = RequiredTheme>
|
440 | extends
|
441 | FontFamilyProps<ThemeType>,
|
442 | FontSizeProps<ThemeType>,
|
443 | FontWeightProps<ThemeType>,
|
444 | LineHeightProps<ThemeType>,
|
445 | LetterSpacingProps<ThemeType>,
|
446 | FontStyleProps<ThemeType>,
|
447 | TextAlignProps<ThemeType>
|
448 | {
|
449 | }
|
450 |
|
451 | export const typography: styleFn;
|
452 |
|
453 |
|
454 |
|
455 |
|
456 |
|
457 | export interface DisplayProps<ThemeType extends Theme = RequiredTheme> {
|
458 | |
459 |
|
460 |
|
461 |
|
462 |
|
463 |
|
464 |
|
465 | display?: ResponsiveValue<CSS.Property.Display, ThemeType> | undefined;
|
466 | }
|
467 |
|
468 | export const display: styleFn;
|
469 |
|
470 | export interface WidthProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Width<TLengthStyledSystem>> {
|
471 | |
472 |
|
473 |
|
474 |
|
475 |
|
476 |
|
477 |
|
478 |
|
479 | width?: ResponsiveValue<TVal, ThemeType> | undefined;
|
480 | }
|
481 |
|
482 | export const width: styleFn;
|
483 |
|
484 | export interface MaxWidthProps<
|
485 | ThemeType extends Theme = RequiredTheme,
|
486 | TVal = CSS.Property.MaxWidth<TLengthStyledSystem>,
|
487 | > {
|
488 | |
489 |
|
490 |
|
491 |
|
492 |
|
493 |
|
494 | maxWidth?: ResponsiveValue<TVal, ThemeType> | undefined;
|
495 | }
|
496 |
|
497 | export const maxWidth: styleFn;
|
498 |
|
499 | export interface MinWidthProps<
|
500 | ThemeType extends Theme = RequiredTheme,
|
501 | TVal = CSS.Property.MinWidth<TLengthStyledSystem>,
|
502 | > {
|
503 | |
504 |
|
505 |
|
506 |
|
507 |
|
508 |
|
509 | minWidth?: ResponsiveValue<TVal, ThemeType> | undefined;
|
510 | }
|
511 |
|
512 | export const minWidth: styleFn;
|
513 |
|
514 | export interface HeightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Height<TLengthStyledSystem>> {
|
515 | |
516 |
|
517 |
|
518 |
|
519 |
|
520 |
|
521 | height?: ResponsiveValue<TVal, ThemeType> | undefined;
|
522 | }
|
523 |
|
524 | export const height: styleFn;
|
525 |
|
526 | export interface MaxHeightProps<
|
527 | ThemeType extends Theme = RequiredTheme,
|
528 | TVal = CSS.Property.MaxHeight<TLengthStyledSystem>,
|
529 | > {
|
530 | |
531 |
|
532 |
|
533 |
|
534 |
|
535 |
|
536 | maxHeight?: ResponsiveValue<TVal, ThemeType> | undefined;
|
537 | }
|
538 |
|
539 | export const maxHeight: styleFn;
|
540 |
|
541 | export interface MinHeightProps<
|
542 | ThemeType extends Theme = RequiredTheme,
|
543 | TVal = CSS.Property.MinHeight<TLengthStyledSystem>,
|
544 | > {
|
545 | |
546 |
|
547 |
|
548 |
|
549 |
|
550 |
|
551 | minHeight?: ResponsiveValue<TVal, ThemeType> | undefined;
|
552 | }
|
553 |
|
554 | export const minHeight: styleFn;
|
555 |
|
556 | export interface SizeProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Height<TLengthStyledSystem>> {
|
557 | size?: ResponsiveValue<TVal, ThemeType> | undefined;
|
558 | }
|
559 |
|
560 | export const size: styleFn;
|
561 |
|
562 | export interface VerticalAlignProps<
|
563 | ThemeType extends Theme = RequiredTheme,
|
564 | TVal = CSS.Property.VerticalAlign<TLengthStyledSystem>,
|
565 | > {
|
566 | |
567 |
|
568 |
|
569 |
|
570 |
|
571 | verticalAlign?: ResponsiveValue<TVal, ThemeType> | undefined;
|
572 | }
|
573 |
|
574 | export const verticalAlign: styleFn;
|
575 |
|
576 |
|
577 |
|
578 |
|
579 | export interface AlignItemsProps<ThemeType extends Theme = RequiredTheme> {
|
580 | |
581 |
|
582 |
|
583 |
|
584 |
|
585 |
|
586 |
|
587 |
|
588 |
|
589 | alignItems?: ResponsiveValue<CSS.Property.AlignItems, ThemeType> | undefined;
|
590 | }
|
591 |
|
592 | export const alignItems: styleFn;
|
593 |
|
594 | export interface AlignContentProps<ThemeType extends Theme = RequiredTheme> {
|
595 | |
596 |
|
597 |
|
598 |
|
599 |
|
600 |
|
601 | alignContent?: ResponsiveValue<CSS.Property.AlignContent, ThemeType> | undefined;
|
602 | }
|
603 |
|
604 | export const alignContent: styleFn;
|
605 |
|
606 | export interface JustifyItemsProps<ThemeType extends Theme = RequiredTheme> {
|
607 | |
608 |
|
609 |
|
610 |
|
611 |
|
612 |
|
613 | justifyItems?: ResponsiveValue<CSS.Property.JustifyItems, ThemeType> | undefined;
|
614 | }
|
615 |
|
616 | export const justifyItems: styleFn;
|
617 |
|
618 | export interface JustifyContentProps<ThemeType extends Theme = RequiredTheme> {
|
619 | |
620 |
|
621 |
|
622 |
|
623 |
|
624 |
|
625 | justifyContent?: ResponsiveValue<CSS.Property.JustifyContent, ThemeType> | undefined;
|
626 | }
|
627 |
|
628 | export const justifyContent: styleFn;
|
629 |
|
630 | export interface FlexWrapProps<ThemeType extends Theme = RequiredTheme> {
|
631 | |
632 |
|
633 |
|
634 |
|
635 |
|
636 |
|
637 | flexWrap?: ResponsiveValue<CSS.Property.FlexWrap, ThemeType> | undefined;
|
638 | }
|
639 |
|
640 | export const flexWrap: styleFn;
|
641 |
|
642 | export interface FlexBasisProps<
|
643 | ThemeType extends Theme = RequiredTheme,
|
644 | TVal = CSS.Property.FlexBasis<TLengthStyledSystem>,
|
645 | > {
|
646 |
|
647 |
|
648 |
|
649 |
|
650 | flexBasis?: ResponsiveValue<TVal, ThemeType> | undefined;
|
651 | }
|
652 |
|
653 | export const flexBasis: styleFn;
|
654 |
|
655 | export interface FlexDirectionProps<ThemeType extends Theme = RequiredTheme> {
|
656 | |
657 |
|
658 |
|
659 |
|
660 |
|
661 |
|
662 | flexDirection?: ResponsiveValue<CSS.Property.FlexDirection, ThemeType> | undefined;
|
663 | }
|
664 |
|
665 | export const flexDirection: styleFn;
|
666 |
|
667 | export interface FlexProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Flex<TLengthStyledSystem>> {
|
668 | |
669 |
|
670 |
|
671 |
|
672 |
|
673 |
|
674 | flex?: ResponsiveValue<TVal, ThemeType> | undefined;
|
675 | }
|
676 |
|
677 | export const flex: styleFn;
|
678 |
|
679 | export interface JustifySelfProps<ThemeType extends Theme = RequiredTheme> {
|
680 | |
681 |
|
682 |
|
683 |
|
684 |
|
685 |
|
686 | justifySelf?: ResponsiveValue<CSS.Property.JustifySelf, ThemeType> | undefined;
|
687 | }
|
688 |
|
689 | export const justifySelf: styleFn;
|
690 |
|
691 | export interface AlignSelfProps<ThemeType extends Theme = RequiredTheme> {
|
692 | |
693 |
|
694 |
|
695 |
|
696 |
|
697 |
|
698 |
|
699 |
|
700 | alignSelf?: ResponsiveValue<CSS.Property.AlignSelf, ThemeType> | undefined;
|
701 | }
|
702 |
|
703 | export const alignSelf: styleFn;
|
704 |
|
705 | export interface OrderProps<ThemeType extends Theme = RequiredTheme> {
|
706 | |
707 |
|
708 |
|
709 |
|
710 |
|
711 |
|
712 | order?: ResponsiveValue<CSS.Property.Order, ThemeType> | undefined;
|
713 | }
|
714 |
|
715 | export const order: styleFn;
|
716 |
|
717 | export interface FlexGrowProps<ThemeType extends Theme = RequiredTheme> {
|
718 | |
719 |
|
720 |
|
721 |
|
722 |
|
723 |
|
724 | flexGrow?: ResponsiveValue<CSS.Property.FlexGrow, ThemeType> | undefined;
|
725 | }
|
726 |
|
727 | export const flexGrow: styleFn;
|
728 |
|
729 | export interface FlexShrinkProps<ThemeType extends Theme = RequiredTheme> {
|
730 | |
731 |
|
732 |
|
733 |
|
734 |
|
735 |
|
736 | flexShrink?: ResponsiveValue<CSS.Property.FlexShrink, ThemeType> | undefined;
|
737 | }
|
738 |
|
739 | export const flexShrink: styleFn;
|
740 |
|
741 |
|
742 |
|
743 |
|
744 |
|
745 |
|
746 |
|
747 | export interface FlexboxProps<ThemeType extends Theme = RequiredTheme>
|
748 | extends
|
749 | AlignItemsProps<ThemeType>,
|
750 | AlignContentProps<ThemeType>,
|
751 | JustifyItemsProps<ThemeType>,
|
752 | JustifyContentProps<ThemeType>,
|
753 | FlexWrapProps<ThemeType>,
|
754 | FlexDirectionProps<ThemeType>,
|
755 | FlexProps<ThemeType>,
|
756 | FlexGrowProps<ThemeType>,
|
757 | FlexShrinkProps<ThemeType>,
|
758 | FlexBasisProps<ThemeType>,
|
759 | JustifySelfProps<ThemeType>,
|
760 | AlignSelfProps<ThemeType>,
|
761 | OrderProps<ThemeType>
|
762 | {
|
763 | }
|
764 |
|
765 | export const flexbox: styleFn;
|
766 |
|
767 |
|
768 |
|
769 |
|
770 |
|
771 | export interface GridGapProps<
|
772 | ThemeType extends Theme = RequiredTheme,
|
773 | TVal = CSS.Property.GridGap<TLengthStyledSystem>,
|
774 | > {
|
775 | |
776 |
|
777 |
|
778 |
|
779 |
|
780 |
|
781 |
|
782 |
|
783 | gridGap?: ResponsiveValue<TVal, ThemeType> | undefined;
|
784 | }
|
785 |
|
786 | export const gridGap: styleFn;
|
787 |
|
788 | export interface GridColumnGapProps<
|
789 | ThemeType extends Theme = RequiredTheme,
|
790 | TVal = CSS.Property.GridColumnGap<TLengthStyledSystem>,
|
791 | > {
|
792 | |
793 |
|
794 |
|
795 |
|
796 |
|
797 |
|
798 |
|
799 | gridColumnGap?: ResponsiveValue<TVal, ThemeType> | undefined;
|
800 | }
|
801 |
|
802 | export const gridColumnGap: styleFn;
|
803 |
|
804 | export interface GridRowGapProps<
|
805 | ThemeType extends Theme = RequiredTheme,
|
806 | TVal = CSS.Property.GridRowGap<TLengthStyledSystem>,
|
807 | > {
|
808 | |
809 |
|
810 |
|
811 |
|
812 |
|
813 |
|
814 |
|
815 | gridRowGap?: ResponsiveValue<TVal, ThemeType> | undefined;
|
816 | }
|
817 |
|
818 | export const gridRowGap: styleFn;
|
819 |
|
820 | export interface GridColumnProps<ThemeType extends Theme = RequiredTheme> {
|
821 | |
822 |
|
823 |
|
824 |
|
825 |
|
826 |
|
827 |
|
828 | gridColumn?: ResponsiveValue<CSS.Property.GridColumn, ThemeType> | undefined;
|
829 | }
|
830 |
|
831 | export const gridColumn: styleFn;
|
832 |
|
833 | export interface GridRowProps<ThemeType extends Theme = RequiredTheme> {
|
834 | |
835 |
|
836 |
|
837 |
|
838 |
|
839 |
|
840 |
|
841 | gridRow?: ResponsiveValue<CSS.Property.GridRow, ThemeType> | undefined;
|
842 | }
|
843 |
|
844 | export const gridRow: styleFn;
|
845 |
|
846 | export interface GridAutoFlowProps<ThemeType extends Theme = RequiredTheme> {
|
847 | |
848 |
|
849 |
|
850 |
|
851 |
|
852 |
|
853 | gridAutoFlow?: ResponsiveValue<CSS.Property.GridAutoFlow, ThemeType> | undefined;
|
854 | }
|
855 |
|
856 | export const gridAutoFlow: styleFn;
|
857 |
|
858 | export interface GridAutoColumnsProps<
|
859 | ThemeType extends Theme = RequiredTheme,
|
860 | TVal = CSS.Property.GridAutoColumns<TLengthStyledSystem>,
|
861 | > {
|
862 | |
863 |
|
864 |
|
865 |
|
866 |
|
867 | gridAutoColumns?: ResponsiveValue<TVal, ThemeType> | undefined;
|
868 | }
|
869 |
|
870 | export const gridAutoColumns: styleFn;
|
871 |
|
872 | export interface GridAutoRowsProps<
|
873 | ThemeType extends Theme = RequiredTheme,
|
874 | TVal = CSS.Property.GridAutoRows<TLengthStyledSystem>,
|
875 | > {
|
876 | |
877 |
|
878 |
|
879 |
|
880 |
|
881 | gridAutoRows?: ResponsiveValue<TVal, ThemeType> | undefined;
|
882 | }
|
883 |
|
884 | export const gridAutoRows: styleFn;
|
885 |
|
886 | export interface GridTemplateColumnsProps<
|
887 | ThemeType extends Theme = RequiredTheme,
|
888 | TVal = CSS.Property.GridTemplateColumns<TLengthStyledSystem>,
|
889 | > {
|
890 | |
891 |
|
892 |
|
893 |
|
894 |
|
895 | gridTemplateColumns?: ResponsiveValue<TVal, ThemeType> | undefined;
|
896 | }
|
897 |
|
898 | export const gridTemplateColumns: styleFn;
|
899 |
|
900 | export interface GridTemplateRowsProps<
|
901 | ThemeType extends Theme = RequiredTheme,
|
902 | TVal = CSS.Property.GridTemplateRows<TLengthStyledSystem>,
|
903 | > {
|
904 | |
905 |
|
906 |
|
907 |
|
908 |
|
909 | gridTemplateRows?: ResponsiveValue<TVal, ThemeType> | undefined;
|
910 | }
|
911 |
|
912 | export const gridTemplateRows: styleFn;
|
913 |
|
914 | export interface GridTemplateAreasProps<ThemeType extends Theme = RequiredTheme> {
|
915 | |
916 |
|
917 |
|
918 |
|
919 |
|
920 | gridTemplateAreas?: ResponsiveValue<CSS.Property.GridTemplateAreas, ThemeType> | undefined;
|
921 | }
|
922 |
|
923 | export const gridTemplateAreas: styleFn;
|
924 |
|
925 | export interface GridAreaProps<ThemeType extends Theme = RequiredTheme> {
|
926 | |
927 |
|
928 |
|
929 |
|
930 |
|
931 |
|
932 |
|
933 | gridArea?: ResponsiveValue<CSS.Property.GridArea, ThemeType> | undefined;
|
934 | }
|
935 |
|
936 | export const gridArea: styleFn;
|
937 |
|
938 |
|
939 |
|
940 |
|
941 |
|
942 |
|
943 |
|
944 | export interface GridProps<ThemeType extends Theme = RequiredTheme>
|
945 | extends
|
946 | GridGapProps<ThemeType>,
|
947 | GridColumnGapProps<ThemeType>,
|
948 | GridRowGapProps<ThemeType>,
|
949 | GridColumnProps<ThemeType>,
|
950 | GridRowProps<ThemeType>,
|
951 | GridAutoFlowProps<ThemeType>,
|
952 | GridAutoColumnsProps<ThemeType>,
|
953 | GridAutoRowsProps<ThemeType>,
|
954 | GridTemplateColumnsProps<ThemeType>,
|
955 | GridTemplateRowsProps<ThemeType>,
|
956 | GridTemplateAreasProps<ThemeType>,
|
957 | GridAreaProps<ThemeType>
|
958 | {
|
959 | }
|
960 |
|
961 | export const grid: styleFn;
|
962 |
|
963 |
|
964 |
|
965 |
|
966 |
|
967 |
|
968 |
|
969 |
|
970 |
|
971 | export interface LayoutProps<ThemeType extends Theme = RequiredTheme>
|
972 | extends
|
973 | WidthProps<ThemeType>,
|
974 | HeightProps<ThemeType>,
|
975 | MinWidthProps<ThemeType>,
|
976 | MinHeightProps<ThemeType>,
|
977 | MaxWidthProps<ThemeType>,
|
978 | MaxHeightProps<ThemeType>,
|
979 | DisplayProps<ThemeType>,
|
980 | VerticalAlignProps<ThemeType>,
|
981 | SizeProps<ThemeType>,
|
982 | OverflowProps<ThemeType>
|
983 | {
|
984 | }
|
985 |
|
986 | export const layout: styleFn;
|
987 |
|
988 |
|
989 |
|
990 |
|
991 |
|
992 | export interface BorderWidthProps<
|
993 | ThemeType extends Theme = RequiredTheme,
|
994 | TVal = ThemeValue<"borderWidths", ThemeType>,
|
995 | > {
|
996 | |
997 |
|
998 |
|
999 |
|
1000 |
|
1001 | borderWidth?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1002 | |
1003 |
|
1004 |
|
1005 |
|
1006 |
|
1007 | borderTopWidth?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1008 | |
1009 |
|
1010 |
|
1011 |
|
1012 |
|
1013 | borderBottomWidth?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1014 | |
1015 |
|
1016 |
|
1017 |
|
1018 |
|
1019 | borderLeftWidth?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1020 | |
1021 |
|
1022 |
|
1023 |
|
1024 |
|
1025 | borderRightWidth?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1026 | }
|
1027 |
|
1028 | export const borderWidth: styleFn;
|
1029 |
|
1030 | export interface BorderStyleProps<ThemeType extends Theme = RequiredTheme> {
|
1031 | |
1032 |
|
1033 |
|
1034 |
|
1035 |
|
1036 | borderStyle?: ResponsiveValue<CSS.Property.BorderStyle, ThemeType> | undefined;
|
1037 | |
1038 |
|
1039 |
|
1040 |
|
1041 |
|
1042 | borderTopStyle?: ResponsiveValue<CSS.Property.BorderTopStyle, ThemeType> | undefined;
|
1043 | |
1044 |
|
1045 |
|
1046 |
|
1047 |
|
1048 | borderBottomStyle?: ResponsiveValue<CSS.Property.BorderBottomStyle, ThemeType> | undefined;
|
1049 | |
1050 |
|
1051 |
|
1052 |
|
1053 |
|
1054 | borderLeftStyle?: ResponsiveValue<CSS.Property.BorderLeftStyle, ThemeType> | undefined;
|
1055 | |
1056 |
|
1057 |
|
1058 |
|
1059 |
|
1060 | borderRightStyle?: ResponsiveValue<CSS.Property.BorderRightStyle, ThemeType> | undefined;
|
1061 | }
|
1062 |
|
1063 | export const borderStyle: styleFn;
|
1064 |
|
1065 | export interface BorderColorProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<"colors", ThemeType>> {
|
1066 | |
1067 |
|
1068 |
|
1069 |
|
1070 |
|
1071 | borderColor?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1072 | |
1073 |
|
1074 |
|
1075 |
|
1076 |
|
1077 | borderTopColor?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1078 | |
1079 |
|
1080 |
|
1081 |
|
1082 |
|
1083 | borderBottomColor?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1084 | |
1085 |
|
1086 |
|
1087 |
|
1088 |
|
1089 | borderLeftColor?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1090 | |
1091 |
|
1092 |
|
1093 |
|
1094 |
|
1095 | borderRightColor?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1096 | }
|
1097 |
|
1098 | export const borderColor: styleFn;
|
1099 |
|
1100 | export interface BorderTopProps<
|
1101 | ThemeType extends Theme = RequiredTheme,
|
1102 | TVal = CSS.Property.BorderTop<TLengthStyledSystem>,
|
1103 | > {
|
1104 | |
1105 |
|
1106 |
|
1107 |
|
1108 |
|
1109 |
|
1110 | borderTop?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1111 | }
|
1112 |
|
1113 | export const borderTop: styleFn;
|
1114 |
|
1115 | export interface BorderRightProps<
|
1116 | ThemeType extends Theme = RequiredTheme,
|
1117 | TVal = CSS.Property.BorderRight<TLengthStyledSystem>,
|
1118 | > {
|
1119 | |
1120 |
|
1121 |
|
1122 |
|
1123 |
|
1124 |
|
1125 | borderRight?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1126 | }
|
1127 |
|
1128 | export const borderRight: styleFn;
|
1129 |
|
1130 | export interface BorderBottomProps<
|
1131 | ThemeType extends Theme = RequiredTheme,
|
1132 | TVal = CSS.Property.BorderBottom<TLengthStyledSystem>,
|
1133 | > {
|
1134 | |
1135 |
|
1136 |
|
1137 |
|
1138 |
|
1139 |
|
1140 | borderBottom?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1141 | }
|
1142 |
|
1143 | export const borderBottom: styleFn;
|
1144 |
|
1145 | export interface BorderLeftProps<
|
1146 | ThemeType extends Theme = RequiredTheme,
|
1147 | TVal = CSS.Property.BorderLeft<TLengthStyledSystem>,
|
1148 | > {
|
1149 | |
1150 |
|
1151 |
|
1152 |
|
1153 |
|
1154 |
|
1155 | borderLeft?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1156 | }
|
1157 |
|
1158 | export const borderLeft: styleFn;
|
1159 |
|
1160 | export interface BorderRadiusProps<ThemeType extends Theme = RequiredTheme, TVal = ThemeValue<"radii", ThemeType>> {
|
1161 | |
1162 |
|
1163 |
|
1164 |
|
1165 |
|
1166 |
|
1167 | borderRadius?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1168 | |
1169 |
|
1170 |
|
1171 |
|
1172 |
|
1173 | borderTopLeftRadius?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1174 | |
1175 |
|
1176 |
|
1177 |
|
1178 |
|
1179 | borderTopRightRadius?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1180 | |
1181 |
|
1182 |
|
1183 |
|
1184 |
|
1185 | borderBottomLeftRadius?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1186 | |
1187 |
|
1188 |
|
1189 |
|
1190 |
|
1191 | borderBottomRightRadius?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1192 | }
|
1193 |
|
1194 | export const borderRadius: styleFn;
|
1195 |
|
1196 | export interface BordersProps<ThemeType extends Theme = RequiredTheme>
|
1197 | extends
|
1198 | BorderProps<ThemeType>,
|
1199 | BorderTopProps<ThemeType>,
|
1200 | BorderRightProps<ThemeType>,
|
1201 | BorderBottomProps<ThemeType>,
|
1202 | BorderLeftProps<ThemeType>,
|
1203 | BorderWidthProps<ThemeType>,
|
1204 | BorderColorProps<ThemeType>,
|
1205 | BorderStyleProps<ThemeType>,
|
1206 | BorderRadiusProps<ThemeType>
|
1207 | {
|
1208 | }
|
1209 |
|
1210 | export const borders: styleFn;
|
1211 |
|
1212 | export interface BorderProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Border<TLengthStyledSystem>>
|
1213 | extends
|
1214 | BorderWidthProps<ThemeType>,
|
1215 | BorderStyleProps<ThemeType>,
|
1216 | BorderColorProps<ThemeType>,
|
1217 | BorderRadiusProps<ThemeType>,
|
1218 | BorderTopProps<ThemeType>,
|
1219 | BorderRightProps<ThemeType>,
|
1220 | BorderBottomProps<ThemeType>,
|
1221 | BorderLeftProps<ThemeType>
|
1222 | {
|
1223 | |
1224 |
|
1225 |
|
1226 |
|
1227 |
|
1228 |
|
1229 | border?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1230 | borderX?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1231 | borderY?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1232 | }
|
1233 |
|
1234 | export const border: styleFn;
|
1235 |
|
1236 | export interface BoxShadowProps<ThemeType extends Theme = RequiredTheme> {
|
1237 | |
1238 |
|
1239 |
|
1240 |
|
1241 |
|
1242 |
|
1243 | boxShadow?: ResponsiveValue<CSS.Property.BoxShadow | number, ThemeType> | undefined;
|
1244 | }
|
1245 |
|
1246 | export const boxShadow: styleFn;
|
1247 |
|
1248 | export interface TextShadowProps<ThemeType extends Theme = RequiredTheme> {
|
1249 | |
1250 |
|
1251 |
|
1252 |
|
1253 |
|
1254 |
|
1255 |
|
1256 | textShadow?: ResponsiveValue<CSS.Property.TextShadow | number, ThemeType> | undefined;
|
1257 | }
|
1258 |
|
1259 | export const textShadow: styleFn;
|
1260 |
|
1261 | export interface ShadowProps<ThemeType extends Theme = RequiredTheme>
|
1262 | extends BoxShadowProps<ThemeType>, TextShadowProps<ThemeType>
|
1263 | {
|
1264 | }
|
1265 |
|
1266 | export const shadow: styleFn;
|
1267 |
|
1268 | export interface OpacityProps<ThemeType extends Theme = RequiredTheme> {
|
1269 | |
1270 |
|
1271 |
|
1272 |
|
1273 |
|
1274 |
|
1275 | opacity?: ResponsiveValue<CSS.Property.Opacity, ThemeType> | undefined;
|
1276 | }
|
1277 |
|
1278 | export const opacity: styleFn;
|
1279 |
|
1280 | export interface OverflowProps<ThemeType extends Theme = RequiredTheme> {
|
1281 | |
1282 |
|
1283 |
|
1284 |
|
1285 |
|
1286 |
|
1287 | overflow?: ResponsiveValue<CSS.Property.Overflow, ThemeType> | undefined;
|
1288 | |
1289 |
|
1290 |
|
1291 |
|
1292 |
|
1293 |
|
1294 | overflowX?: ResponsiveValue<CSS.Property.OverflowX, ThemeType> | undefined;
|
1295 | |
1296 |
|
1297 |
|
1298 |
|
1299 |
|
1300 |
|
1301 | overflowY?: ResponsiveValue<CSS.Property.OverflowY, ThemeType> | undefined;
|
1302 | }
|
1303 |
|
1304 | export const overflow: styleFn;
|
1305 | export const overflowX: styleFn;
|
1306 | export const overflowY: styleFn;
|
1307 |
|
1308 |
|
1309 |
|
1310 |
|
1311 |
|
1312 | export interface BackgroundImageProps<ThemeType extends Theme = RequiredTheme> {
|
1313 | |
1314 |
|
1315 |
|
1316 |
|
1317 |
|
1318 | backgroundImage?: ResponsiveValue<CSS.Property.BackgroundImage, ThemeType> | undefined;
|
1319 | }
|
1320 |
|
1321 | export const backgroundImage: styleFn;
|
1322 |
|
1323 | export interface BackgroundSizeProps<
|
1324 | ThemeType extends Theme = RequiredTheme,
|
1325 | TVal = CSS.Property.BackgroundSize<TLengthStyledSystem>,
|
1326 | > {
|
1327 | |
1328 |
|
1329 |
|
1330 |
|
1331 |
|
1332 |
|
1333 | backgroundSize?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1334 | }
|
1335 |
|
1336 | export const backgroundSize: styleFn;
|
1337 |
|
1338 | export interface BackgroundPositionProps<
|
1339 | ThemeType extends Theme = RequiredTheme,
|
1340 | TVal = CSS.Property.BackgroundPosition<TLengthStyledSystem>,
|
1341 | > {
|
1342 | |
1343 |
|
1344 |
|
1345 |
|
1346 |
|
1347 |
|
1348 | backgroundPosition?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1349 | }
|
1350 |
|
1351 | export const backgroundPosition: styleFn;
|
1352 |
|
1353 | export interface BackgroundRepeatProps<ThemeType extends Theme = RequiredTheme> {
|
1354 | |
1355 |
|
1356 |
|
1357 |
|
1358 |
|
1359 |
|
1360 | backgroundRepeat?: ResponsiveValue<CSS.Property.BackgroundRepeat, ThemeType> | undefined;
|
1361 | }
|
1362 |
|
1363 | export const backgroundRepeat: styleFn;
|
1364 |
|
1365 | export interface BackgroundProps<
|
1366 | ThemeType extends Theme = RequiredTheme,
|
1367 | TVal = CSS.Property.Background<TLengthStyledSystem>,
|
1368 | > extends
|
1369 | BackgroundImageProps<ThemeType>,
|
1370 | BackgroundSizeProps<ThemeType>,
|
1371 | BackgroundPositionProps<ThemeType>,
|
1372 | BackgroundRepeatProps<ThemeType>
|
1373 | {
|
1374 | |
1375 |
|
1376 |
|
1377 |
|
1378 |
|
1379 |
|
1380 | background?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1381 | }
|
1382 |
|
1383 | export const background: styleFn;
|
1384 |
|
1385 |
|
1386 |
|
1387 |
|
1388 |
|
1389 | export interface ZIndexProps<ThemeType extends Theme = RequiredTheme> {
|
1390 | |
1391 |
|
1392 |
|
1393 |
|
1394 |
|
1395 |
|
1396 | zIndex?: ResponsiveValue<CSS.Property.ZIndex, ThemeType> | undefined;
|
1397 | }
|
1398 |
|
1399 | export const zIndex: styleFn;
|
1400 |
|
1401 | export interface TopProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Top<TLengthStyledSystem>> {
|
1402 | |
1403 |
|
1404 |
|
1405 |
|
1406 |
|
1407 |
|
1408 | top?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1409 | }
|
1410 |
|
1411 | export const top: styleFn;
|
1412 |
|
1413 | export interface RightProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Right<TLengthStyledSystem>> {
|
1414 | |
1415 |
|
1416 |
|
1417 |
|
1418 |
|
1419 |
|
1420 | right?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1421 | }
|
1422 |
|
1423 | export const right: styleFn;
|
1424 |
|
1425 | export interface BottomProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Bottom<TLengthStyledSystem>> {
|
1426 | |
1427 |
|
1428 |
|
1429 |
|
1430 |
|
1431 |
|
1432 | bottom?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1433 | }
|
1434 |
|
1435 | export const bottom: styleFn;
|
1436 |
|
1437 | export interface LeftProps<ThemeType extends Theme = RequiredTheme, TVal = CSS.Property.Left<TLengthStyledSystem>> {
|
1438 | |
1439 |
|
1440 |
|
1441 |
|
1442 |
|
1443 |
|
1444 | left?: ResponsiveValue<TVal, ThemeType> | undefined;
|
1445 | }
|
1446 |
|
1447 | export const left: styleFn;
|
1448 |
|
1449 | export interface PositionProps<ThemeType extends Theme = RequiredTheme>
|
1450 | extends
|
1451 | ZIndexProps<ThemeType>,
|
1452 | TopProps<ThemeType>,
|
1453 | RightProps<ThemeType>,
|
1454 | BottomProps<ThemeType>,
|
1455 | LeftProps<ThemeType>
|
1456 | {
|
1457 | |
1458 |
|
1459 |
|
1460 |
|
1461 |
|
1462 |
|
1463 | position?: ResponsiveValue<CSS.Property.Position, ThemeType> | undefined;
|
1464 | }
|
1465 |
|
1466 | export const position: styleFn;
|
1467 |
|
1468 | export interface ButtonStyleProps<ThemeType extends Theme = RequiredTheme> {
|
1469 | variant?: ResponsiveValue<string, ThemeType> | undefined;
|
1470 | }
|
1471 |
|
1472 | export const buttonStyle: styleFn;
|
1473 |
|
1474 | export interface TextStyleProps<ThemeType extends Theme = RequiredTheme> {
|
1475 | textStyle?: ResponsiveValue<string, ThemeType> | undefined;
|
1476 | }
|
1477 |
|
1478 | export const textStyle: styleFn;
|
1479 |
|
1480 | export interface ColorStyleProps<ThemeType extends Theme = RequiredTheme> {
|
1481 | colors?: ResponsiveValue<string, ThemeType> | undefined;
|
1482 | }
|
1483 |
|
1484 | export const colorStyle: styleFn;
|
1485 |
|
1486 | export interface StylesProps {
|
1487 | space: typeof space;
|
1488 | margin: typeof margin;
|
1489 | marginTop: typeof marginTop;
|
1490 | marginBottom: typeof marginBottom;
|
1491 | marginLeft: typeof marginLeft;
|
1492 | marginRight: typeof marginRight;
|
1493 | padding: typeof padding;
|
1494 | paddingTop: typeof paddingTop;
|
1495 | paddingBottom: typeof paddingBottom;
|
1496 | paddingLeft: typeof paddingLeft;
|
1497 | paddingRight: typeof paddingRight;
|
1498 | width: typeof width;
|
1499 | fontSize: typeof fontSize;
|
1500 | textColor: typeof textColor;
|
1501 | backgroundColor: typeof backgroundColor;
|
1502 | color: typeof color;
|
1503 | fontFamily: typeof fontFamily;
|
1504 | textAlign: typeof textAlign;
|
1505 | lineHeight: typeof lineHeight;
|
1506 | fontWeight: typeof fontWeight;
|
1507 | fontStyle: typeof fontStyle;
|
1508 | letterSpacing: typeof letterSpacing;
|
1509 | display: typeof display;
|
1510 | maxWidth: typeof maxWidth;
|
1511 | minWidth: typeof minWidth;
|
1512 | height: typeof height;
|
1513 | maxHeight: typeof maxHeight;
|
1514 | minHeight: typeof minHeight;
|
1515 | size: typeof size;
|
1516 | verticalAlign: typeof verticalAlign;
|
1517 | alignItems: typeof alignItems;
|
1518 | alignContent: typeof alignContent;
|
1519 | justifyItems: typeof justifyItems;
|
1520 | justifyContent: typeof justifyContent;
|
1521 | flexWrap: typeof flexWrap;
|
1522 | flexBasis: typeof flexBasis;
|
1523 | flexDirection: typeof flexDirection;
|
1524 | flex: typeof flex;
|
1525 | justifySelf: typeof justifySelf;
|
1526 | alignSelf: typeof alignSelf;
|
1527 | order: typeof order;
|
1528 | gridGap: typeof gridGap;
|
1529 | gridColumnGap: typeof gridColumnGap;
|
1530 | gridRowGap: typeof gridRowGap;
|
1531 | gridColumn: typeof gridColumn;
|
1532 | gridRow: typeof gridRow;
|
1533 | gridAutoFlow: typeof gridAutoFlow;
|
1534 | gridAutoColumns: typeof gridAutoColumns;
|
1535 | gridAutoRows: typeof gridAutoRows;
|
1536 | gridTemplateColumns: typeof gridTemplateColumns;
|
1537 | gridTemplateRows: typeof gridTemplateRows;
|
1538 | gridTemplateAreas: typeof gridTemplateAreas;
|
1539 | gridArea: typeof gridArea;
|
1540 | border: typeof border;
|
1541 | borderTop: typeof borderTop;
|
1542 | borderRight: typeof borderRight;
|
1543 | borderBottom: typeof borderBottom;
|
1544 | borderLeft: typeof borderLeft;
|
1545 | borders: typeof borders;
|
1546 | borderColor: typeof borderColor;
|
1547 | borderRadius: typeof borderRadius;
|
1548 | boxShadow: typeof boxShadow;
|
1549 | opacity: typeof opacity;
|
1550 | overflow: typeof overflow;
|
1551 | background: typeof background;
|
1552 | backgroundImage: typeof backgroundImage;
|
1553 | backgroundPosition: typeof backgroundPosition;
|
1554 | backgroundRepeat: typeof backgroundRepeat;
|
1555 | backgroundSize: typeof backgroundSize;
|
1556 | position: typeof position;
|
1557 | zIndex: typeof zIndex;
|
1558 | top: typeof top;
|
1559 | right: typeof right;
|
1560 | bottom: typeof bottom;
|
1561 | left: typeof left;
|
1562 | textStyle: typeof textStyle;
|
1563 | colorStyle: typeof colorStyle;
|
1564 | buttonStyle: typeof buttonStyle;
|
1565 | }
|
1566 |
|
1567 | export const styles: StylesProps;
|