@veracity/vui 0.0.9 → 0.0.10
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/avatar/avatar.d.ts +3 -4
- package/avatar/avatar.js +2 -2
- package/avatar/avatar.types.d.ts +2 -6
- package/box/box.d.ts +3 -4
- package/box/box.js +3 -4
- package/box/box.types.d.ts +2 -4
- package/button/button.d.ts +3 -4
- package/button/button.js +5 -6
- package/button/button.types.d.ts +2 -4
- package/button/buttonGroup.d.ts +3 -2
- package/button/buttonGroup.js +3 -4
- package/button/buttonGroup.types.d.ts +2 -4
- package/button/theme.d.ts +1 -0
- package/button/theme.js +1 -0
- package/checkbox/checkbox.d.ts +3 -2
- package/checkbox/checkbox.js +5 -7
- package/checkbox/checkbox.types.d.ts +4 -6
- package/checkbox/checkboxGroup.d.ts +3 -2
- package/checkbox/checkboxGroup.js +3 -4
- package/checkbox/checkboxGroup.types.d.ts +2 -4
- package/divider/divider.d.ts +3 -2
- package/divider/divider.js +3 -4
- package/divider/divider.types.d.ts +2 -4
- package/heading/heading.d.ts +3 -4
- package/heading/heading.js +2 -4
- package/heading/heading.types.d.ts +2 -4
- package/icons/baseIcons/fal/falSignIn.d.ts +3 -0
- package/icons/baseIcons/fal/falSignIn.js +7 -0
- package/icons/baseIcons/types.d.ts +1 -1
- package/input/input.d.ts +4 -5
- package/input/input.js +2 -2
- package/input/input.types.d.ts +2 -4
- package/label/label.d.ts +3 -4
- package/label/label.js +3 -5
- package/label/label.types.d.ts +2 -4
- package/link/link.d.ts +3 -4
- package/link/link.js +2 -4
- package/link/link.types.d.ts +2 -4
- package/list/list.d.ts +3 -2
- package/list/list.js +3 -4
- package/list/list.types.d.ts +2 -4
- package/list/listItem.d.ts +3 -2
- package/list/listItem.js +3 -4
- package/list/listItem.types.d.ts +2 -4
- package/p/p.d.ts +3 -4
- package/p/p.js +2 -4
- package/p/p.types.d.ts +2 -4
- package/package.json +1 -1
- package/radio/radio.d.ts +3 -2
- package/radio/radio.js +5 -7
- package/radio/radio.types.d.ts +4 -6
- package/radio/radioGroup.d.ts +3 -2
- package/radio/radioGroup.js +3 -4
- package/radio/radioGroup.types.d.ts +2 -4
- package/skeleton/skeleton.d.ts +3 -2
- package/skeleton/skeleton.js +3 -4
- package/skeleton/skeleton.types.d.ts +2 -4
- package/spinner/spinner.js +3 -4
- package/spinner/spinner.types.d.ts +2 -2
- package/svg/svg.d.ts +4 -3
- package/svg/svg.js +3 -4
- package/svg/svg.types.d.ts +2 -11
- package/switch/switch.d.ts +3 -2
- package/switch/switch.js +3 -4
- package/switch/switch.types.d.ts +2 -4
- package/switch/switchButton.d.ts +5 -4
- package/switch/switchButton.js +6 -9
- package/switch/switchButton.types.d.ts +2 -8
- package/system/animations.d.ts +9 -7
- package/system/backgrounds.d.ts +8 -8
- package/system/borders.d.ts +138 -129
- package/system/colors.d.ts +1 -2
- package/system/effects.d.ts +15 -12
- package/system/flexboxes.d.ts +43 -54
- package/system/index.d.ts +2 -0
- package/system/index.js +7 -0
- package/system/interactivity.d.ts +17 -23
- package/system/layout.d.ts +69 -74
- package/system/sizing.d.ts +27 -27
- package/system/space.d.ts +89 -87
- package/system/system.d.ts +17 -0
- package/system/system.js +5 -0
- package/system/transforms.d.ts +53 -53
- package/system/transitions.d.ts +20 -25
- package/system/typography.d.ts +68 -61
- package/t/t.d.ts +3 -4
- package/t/t.js +2 -4
- package/t/t.types.d.ts +2 -4
- package/textarea/textarea.d.ts +3 -4
- package/textarea/textarea.js +3 -4
- package/textarea/textarea.types.d.ts +2 -4
- package/theme/components.d.ts +1 -0
- package/theme/defaultTheme.d.ts +1 -0
- package/tile/tile.types.d.ts +2 -4
package/system/layout.d.ts
CHANGED
|
@@ -1,78 +1,73 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProp, VariantsType } from '@xstyled/system';
|
|
2
2
|
import * as CSS from 'csstype';
|
|
3
3
|
import { VuiTheme } from '../theme';
|
|
4
|
-
export declare type InsetGetter
|
|
5
|
-
export declare type ZIndexGetter
|
|
6
|
-
declare type DisplayProp
|
|
7
|
-
export interface DisplayProps
|
|
8
|
-
display?: DisplayProp
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
declare type
|
|
27
|
-
export interface
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
export interface ObjectFitProps<T extends ITheme = VuiTheme> {
|
|
73
|
-
objectFit?: ObjectFitProp<T>;
|
|
74
|
-
hoverObjectFit?: ObjectFitProp<T>;
|
|
75
|
-
}
|
|
76
|
-
export interface LayoutProps<T extends ITheme = VuiTheme> extends DisplayProps<T>, FloatProps<T>, BoxSizingProps<T>, OverflowProps<T>, OverflowXProps<T>, OverflowYProps<T>, PositionProps<T>, ZIndexProps<T>, TopProps<T>, RightProps<T>, BottomProps<T>, LeftProps<T>, VisibilityProps<T>, ObjectFitProps<T> {
|
|
4
|
+
export declare type InsetGetter = VariantsType<unknown>;
|
|
5
|
+
export declare type ZIndexGetter = VariantsType<VuiTheme['zIndices']>;
|
|
6
|
+
declare type DisplayProp = SystemProp<CSS.Property.Display, VuiTheme>;
|
|
7
|
+
export interface DisplayProps {
|
|
8
|
+
display?: DisplayProp;
|
|
9
|
+
}
|
|
10
|
+
declare type FloatProp = SystemProp<CSS.Property.Float, VuiTheme>;
|
|
11
|
+
export interface FloatProps {
|
|
12
|
+
float?: FloatProp;
|
|
13
|
+
}
|
|
14
|
+
declare type BoxSizingProp = SystemProp<CSS.Property.BoxSizing, VuiTheme>;
|
|
15
|
+
export interface BoxSizingProps {
|
|
16
|
+
boxSizing?: BoxSizingProp;
|
|
17
|
+
}
|
|
18
|
+
declare type OverflowProp = SystemProp<CSS.Property.Overflow, VuiTheme>;
|
|
19
|
+
export interface OverflowProps {
|
|
20
|
+
overflow?: OverflowProp;
|
|
21
|
+
}
|
|
22
|
+
declare type OverflowXProp = SystemProp<CSS.Property.OverflowX, VuiTheme>;
|
|
23
|
+
export interface OverflowXProps {
|
|
24
|
+
overflowX?: OverflowXProp;
|
|
25
|
+
}
|
|
26
|
+
declare type OverflowYProp = SystemProp<CSS.Property.OverflowY, VuiTheme>;
|
|
27
|
+
export interface OverflowYProps {
|
|
28
|
+
overflowY?: OverflowYProp;
|
|
29
|
+
}
|
|
30
|
+
declare type ZIndexProp = SystemProp<ZIndexGetter | CSS.Property.ZIndex, VuiTheme>;
|
|
31
|
+
export interface ZIndexProps {
|
|
32
|
+
zIndex?: ZIndexProp;
|
|
33
|
+
}
|
|
34
|
+
declare type PositionProp = SystemProp<CSS.Property.Position, VuiTheme>;
|
|
35
|
+
export interface PositionProps {
|
|
36
|
+
position?: PositionProp;
|
|
37
|
+
}
|
|
38
|
+
declare type TopProp = SystemProp<InsetGetter | CSS.Property.Top, VuiTheme>;
|
|
39
|
+
export interface TopProps {
|
|
40
|
+
top?: TopProp;
|
|
41
|
+
hoverTop?: TopProp;
|
|
42
|
+
}
|
|
43
|
+
declare type RightProp = SystemProp<InsetGetter | CSS.Property.Right, VuiTheme>;
|
|
44
|
+
export interface RightProps {
|
|
45
|
+
right?: RightProp;
|
|
46
|
+
hoverRight?: RightProp;
|
|
47
|
+
}
|
|
48
|
+
declare type BottomProp = SystemProp<InsetGetter | CSS.Property.Bottom, VuiTheme>;
|
|
49
|
+
export interface BottomProps {
|
|
50
|
+
bottom?: BottomProp;
|
|
51
|
+
hoverBottom?: BottomProp;
|
|
52
|
+
}
|
|
53
|
+
declare type LeftProp = SystemProp<InsetGetter | CSS.Property.Left, VuiTheme>;
|
|
54
|
+
export interface LeftProps {
|
|
55
|
+
left?: LeftProp;
|
|
56
|
+
hoverLeft?: LeftProp;
|
|
57
|
+
}
|
|
58
|
+
declare type VisibilityProp = SystemProp<CSS.Property.Visibility, VuiTheme>;
|
|
59
|
+
export interface VisibilityProps {
|
|
60
|
+
visibility?: VisibilityProp;
|
|
61
|
+
hoverVisibility?: VisibilityProp;
|
|
62
|
+
}
|
|
63
|
+
declare type OverscrollBehaviorProp = SystemProp<CSS.Property.OverscrollBehavior, VuiTheme>;
|
|
64
|
+
export interface OverscrollBehaviorProps {
|
|
65
|
+
overscrollBehavior?: OverscrollBehaviorProp;
|
|
66
|
+
}
|
|
67
|
+
declare type ObjectFitProp = SystemProp<CSS.Property.ObjectFit, VuiTheme>;
|
|
68
|
+
export interface ObjectFitProps {
|
|
69
|
+
objectFit?: ObjectFitProp;
|
|
70
|
+
}
|
|
71
|
+
export interface LayoutProps extends DisplayProps, FloatProps, BoxSizingProps, OverflowProps, OverflowXProps, OverflowYProps, PositionProps, ZIndexProps, TopProps, RightProps, BottomProps, LeftProps, VisibilityProps, OverscrollBehaviorProps, ObjectFitProps {
|
|
77
72
|
}
|
|
78
73
|
export {};
|
package/system/sizing.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProp, VariantsType } from '@xstyled/system';
|
|
2
2
|
import { VuiTheme } from '../theme';
|
|
3
|
-
export declare type SizeGetter
|
|
4
|
-
declare type WidthProp
|
|
5
|
-
export interface WidthProps
|
|
6
|
-
w?: WidthProp
|
|
7
|
-
hoverW?: WidthProp
|
|
3
|
+
export declare type SizeGetter = VariantsType<VuiTheme['sizes']>;
|
|
4
|
+
declare type WidthProp = SystemProp<SizeGetter, VuiTheme>;
|
|
5
|
+
export interface WidthProps {
|
|
6
|
+
w?: WidthProp;
|
|
7
|
+
hoverW?: WidthProp;
|
|
8
8
|
}
|
|
9
|
-
declare type HeightProp
|
|
10
|
-
export interface HeightProps
|
|
11
|
-
h?: HeightProp
|
|
12
|
-
hoverH?: HeightProp
|
|
9
|
+
declare type HeightProp = SystemProp<SizeGetter, VuiTheme>;
|
|
10
|
+
export interface HeightProps {
|
|
11
|
+
h?: HeightProp;
|
|
12
|
+
hoverH?: HeightProp;
|
|
13
13
|
}
|
|
14
|
-
declare type MaxHeightProp
|
|
15
|
-
export interface MaxHeightProps
|
|
16
|
-
maxH?: MaxHeightProp
|
|
17
|
-
hoverMaxH?: MaxHeightProp
|
|
14
|
+
declare type MaxHeightProp = SystemProp<SizeGetter, VuiTheme>;
|
|
15
|
+
export interface MaxHeightProps {
|
|
16
|
+
maxH?: MaxHeightProp;
|
|
17
|
+
hoverMaxH?: MaxHeightProp;
|
|
18
18
|
}
|
|
19
|
-
declare type MinHeightProp
|
|
20
|
-
export interface MinHeightProps
|
|
21
|
-
minH?: MinHeightProp
|
|
22
|
-
hoverMinH?: MinHeightProp
|
|
19
|
+
declare type MinHeightProp = SystemProp<SizeGetter, VuiTheme>;
|
|
20
|
+
export interface MinHeightProps {
|
|
21
|
+
minH?: MinHeightProp;
|
|
22
|
+
hoverMinH?: MinHeightProp;
|
|
23
23
|
}
|
|
24
|
-
declare type MaxWidthProp
|
|
25
|
-
export interface MaxWidthProps
|
|
26
|
-
maxW?: MaxWidthProp
|
|
27
|
-
hoverMaxW?: MaxWidthProp
|
|
24
|
+
declare type MaxWidthProp = SystemProp<SizeGetter, VuiTheme>;
|
|
25
|
+
export interface MaxWidthProps {
|
|
26
|
+
maxW?: MaxWidthProp;
|
|
27
|
+
hoverMaxW?: MaxWidthProp;
|
|
28
28
|
}
|
|
29
|
-
declare type MinWidthProp
|
|
30
|
-
export interface MinWidthProps
|
|
31
|
-
minW?: MinWidthProp
|
|
32
|
-
hoverMinW?: MinWidthProp
|
|
29
|
+
declare type MinWidthProp = SystemProp<SizeGetter, VuiTheme>;
|
|
30
|
+
export interface MinWidthProps {
|
|
31
|
+
minW?: MinWidthProp;
|
|
32
|
+
hoverMinW?: MinWidthProp;
|
|
33
33
|
}
|
|
34
|
-
export interface SizingProps
|
|
34
|
+
export interface SizingProps extends WidthProps, HeightProps, MaxWidthProps, MaxHeightProps, MinWidthProps, MinHeightProps {
|
|
35
35
|
}
|
|
36
36
|
export {};
|
package/system/space.d.ts
CHANGED
|
@@ -1,90 +1,92 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProp, VariantsType } from '@xstyled/system';
|
|
2
2
|
import { VuiTheme } from '../theme';
|
|
3
|
-
export declare type SpaceGetter
|
|
4
|
-
declare type MarginProp
|
|
5
|
-
export interface MarginProps
|
|
6
|
-
m?: MarginProp
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
declare type
|
|
35
|
-
export interface
|
|
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
|
-
declare type
|
|
65
|
-
export interface
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
declare type
|
|
83
|
-
export interface
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
3
|
+
export declare type SpaceGetter = VariantsType<VuiTheme['spaces']>;
|
|
4
|
+
declare type MarginProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
5
|
+
export interface MarginProps {
|
|
6
|
+
m?: MarginProp;
|
|
7
|
+
lastM?: MarginProp;
|
|
8
|
+
}
|
|
9
|
+
declare type MarginTopProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
10
|
+
export interface MarginTopProps {
|
|
11
|
+
mt?: MarginTopProp;
|
|
12
|
+
lastMt?: MarginTopProp;
|
|
13
|
+
}
|
|
14
|
+
declare type MarginRightProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
15
|
+
export interface MarginRightProps {
|
|
16
|
+
mr?: MarginRightProp;
|
|
17
|
+
lastMr?: MarginRightProp;
|
|
18
|
+
}
|
|
19
|
+
declare type MarginBottomProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
20
|
+
export interface MarginBottomProps {
|
|
21
|
+
mb?: MarginBottomProp;
|
|
22
|
+
lastMb?: MarginBottomProp;
|
|
23
|
+
}
|
|
24
|
+
declare type MarginLeftProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
25
|
+
export interface MarginLeftProps {
|
|
26
|
+
ml?: MarginLeftProp;
|
|
27
|
+
lastMl?: MarginLeftProp;
|
|
28
|
+
}
|
|
29
|
+
declare type MarginXProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
30
|
+
export interface MarginXProps {
|
|
31
|
+
mx?: MarginXProp;
|
|
32
|
+
lastMx?: MarginXProp;
|
|
33
|
+
}
|
|
34
|
+
declare type MarginYProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
35
|
+
export interface MarginYProps {
|
|
36
|
+
my?: MarginYProp;
|
|
37
|
+
lastMy?: MarginYProp;
|
|
38
|
+
}
|
|
39
|
+
declare type PaddingProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
40
|
+
export interface PaddingProps {
|
|
41
|
+
p?: PaddingProp;
|
|
42
|
+
lastP?: PaddingProp;
|
|
43
|
+
}
|
|
44
|
+
declare type PaddingTopProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
45
|
+
export interface PaddingTopProps {
|
|
46
|
+
pt?: PaddingTopProp;
|
|
47
|
+
lastPt?: PaddingTopProp;
|
|
48
|
+
}
|
|
49
|
+
declare type PaddingRightProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
50
|
+
export interface PaddingRightProps {
|
|
51
|
+
pr?: PaddingRightProp;
|
|
52
|
+
lastPr?: PaddingRightProp;
|
|
53
|
+
}
|
|
54
|
+
declare type PaddingBottomProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
55
|
+
export interface PaddingBottomProps {
|
|
56
|
+
pb?: PaddingBottomProp;
|
|
57
|
+
lastPb?: PaddingBottomProp;
|
|
58
|
+
}
|
|
59
|
+
declare type PaddingLeftProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
60
|
+
export interface PaddingLeftProps {
|
|
61
|
+
pl?: PaddingLeftProp;
|
|
62
|
+
lastPl?: PaddingLeftProp;
|
|
63
|
+
}
|
|
64
|
+
declare type PaddingXProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
65
|
+
export interface PaddingXProps {
|
|
66
|
+
px?: PaddingXProp;
|
|
67
|
+
lastPx?: PaddingXProp;
|
|
68
|
+
}
|
|
69
|
+
declare type PaddingYProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
70
|
+
export interface PaddingYProps {
|
|
71
|
+
py?: PaddingYProp;
|
|
72
|
+
lastPy?: PaddingYProp;
|
|
73
|
+
}
|
|
74
|
+
declare type SpaceXProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
75
|
+
export interface SpaceXProps {
|
|
76
|
+
spaceX?: SpaceXProp;
|
|
77
|
+
}
|
|
78
|
+
declare type SpaceYProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
79
|
+
export interface SpaceYProps {
|
|
80
|
+
spaceY?: SpaceYProp;
|
|
81
|
+
}
|
|
82
|
+
declare type SpaceXReverseProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
83
|
+
export interface SpaceXReverseProps {
|
|
84
|
+
spaceXReverse?: SpaceXReverseProp;
|
|
85
|
+
}
|
|
86
|
+
declare type SpaceYReverseProp = SystemProp<SpaceGetter, VuiTheme>;
|
|
87
|
+
export interface SpaceYReverseProps {
|
|
88
|
+
spaceYReverse?: SpaceYReverseProp;
|
|
89
|
+
}
|
|
90
|
+
export interface SpaceProps extends MarginProps, MarginTopProps, MarginRightProps, MarginBottomProps, MarginLeftProps, MarginXProps, MarginYProps, PaddingProps, PaddingTopProps, PaddingRightProps, PaddingBottomProps, PaddingLeftProps, PaddingXProps, PaddingYProps, SpaceXProps, SpaceYProps, SpaceXReverseProps, SpaceYReverseProps {
|
|
89
91
|
}
|
|
90
92
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AnimationsProps } from './animations';
|
|
2
|
+
import { BackgroundColorProps } from './backgrounds';
|
|
3
|
+
import { BordersProps } from './borders';
|
|
4
|
+
import { EffectsProps } from './effects';
|
|
5
|
+
import { FlexboxesProps } from './flexboxes';
|
|
6
|
+
import { InteractivityProps } from './interactivity';
|
|
7
|
+
import { IsTruncatedProps, MaxLinesProps } from './custom';
|
|
8
|
+
import { LayoutProps } from './layout';
|
|
9
|
+
import { SizingProps } from './sizing';
|
|
10
|
+
import { SpaceProps } from './space';
|
|
11
|
+
import { TransformsProps } from './transforms';
|
|
12
|
+
import { TransitionsProps } from './transitions';
|
|
13
|
+
import { TypographyProps } from './typography';
|
|
14
|
+
export interface SystemProps extends AnimationsProps, BackgroundColorProps, BordersProps, EffectsProps, FlexboxesProps, InteractivityProps, IsTruncatedProps, LayoutProps, MaxLinesProps, SizingProps, SpaceProps, TransformsProps, TransitionsProps, TypographyProps {
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import("@xstyled/system").StyleGenerator;
|
|
17
|
+
export default _default;
|
package/system/system.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var system_1 = require("@xstyled/system");
|
|
4
|
+
var custom_1 = require("./custom");
|
|
5
|
+
exports.default = system_1.compose(system_1.animation, system_1.backgroundColor, system_1.borders, system_1.color, system_1.effects, system_1.flexboxes, system_1.interactivity, custom_1.isTruncated, system_1.layout, custom_1.maxLines, system_1.sizing, system_1.space, system_1.transforms, system_1.transitions, system_1.typography);
|
package/system/transforms.d.ts
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProp, VariantsType } from '@xstyled/system';
|
|
2
2
|
import * as CSS from 'csstype';
|
|
3
3
|
import { VuiTheme } from '../theme';
|
|
4
|
-
export declare type TransformGetter
|
|
5
|
-
declare type TransformProp
|
|
6
|
-
export interface TransformProps
|
|
7
|
-
transform?: TransformProp
|
|
8
|
-
hoverTransform?: TransformProp
|
|
9
|
-
}
|
|
10
|
-
declare type TransformOriginProp
|
|
11
|
-
export interface TransformOriginProps
|
|
12
|
-
transformOrigin?: TransformOriginProp
|
|
13
|
-
hoverTransformOrigin?: TransformOriginProp
|
|
14
|
-
}
|
|
15
|
-
declare type TranslateXProp
|
|
16
|
-
export interface TranslateXProps
|
|
17
|
-
translateX?: TranslateXProp
|
|
18
|
-
hoverTranslateX?: TranslateXProp
|
|
19
|
-
}
|
|
20
|
-
declare type TranslateYProp
|
|
21
|
-
export interface TranslateYProps
|
|
22
|
-
translateY?: TranslateYProp
|
|
23
|
-
hoverTranslateY?: TranslateYProp
|
|
24
|
-
}
|
|
25
|
-
declare type RotateProp
|
|
26
|
-
export interface RotateProps
|
|
27
|
-
rotate?: RotateProp
|
|
28
|
-
hoverRotate?: RotateProp
|
|
29
|
-
}
|
|
30
|
-
declare type SkewXProp
|
|
31
|
-
export interface SkewXProps
|
|
32
|
-
skewX?: SkewXProp
|
|
33
|
-
hoverSkewX?: SkewXProp
|
|
34
|
-
}
|
|
35
|
-
declare type SkewYProp
|
|
36
|
-
export interface SkewYProps
|
|
37
|
-
skewY?: SkewYProp
|
|
38
|
-
hoverSkewY?: SkewYProp
|
|
39
|
-
}
|
|
40
|
-
declare type ScaleProp
|
|
41
|
-
export interface ScaleProps
|
|
42
|
-
scale?: ScaleProp
|
|
43
|
-
hoverScale?: ScaleProp
|
|
44
|
-
}
|
|
45
|
-
declare type ScaleXProp
|
|
46
|
-
export interface ScaleXProps
|
|
47
|
-
scaleX?: ScaleXProp
|
|
48
|
-
hoverScaleX?: ScaleXProp
|
|
49
|
-
}
|
|
50
|
-
declare type ScaleYProp
|
|
51
|
-
export interface ScaleYProps
|
|
52
|
-
scaleY?: ScaleYProp
|
|
53
|
-
hoverScaleY?: ScaleYProp
|
|
54
|
-
}
|
|
55
|
-
export interface TransformsProps
|
|
4
|
+
export declare type TransformGetter = VariantsType<VuiTheme['transforms']>;
|
|
5
|
+
declare type TransformProp = SystemProp<boolean, VuiTheme>;
|
|
6
|
+
export interface TransformProps {
|
|
7
|
+
transform?: TransformProp;
|
|
8
|
+
hoverTransform?: TransformProp;
|
|
9
|
+
}
|
|
10
|
+
declare type TransformOriginProp = SystemProp<CSS.Property.TransformOrigin, VuiTheme>;
|
|
11
|
+
export interface TransformOriginProps {
|
|
12
|
+
transformOrigin?: TransformOriginProp;
|
|
13
|
+
hoverTransformOrigin?: TransformOriginProp;
|
|
14
|
+
}
|
|
15
|
+
declare type TranslateXProp = SystemProp<number | string, VuiTheme>;
|
|
16
|
+
export interface TranslateXProps {
|
|
17
|
+
translateX?: TranslateXProp;
|
|
18
|
+
hoverTranslateX?: TranslateXProp;
|
|
19
|
+
}
|
|
20
|
+
declare type TranslateYProp = SystemProp<number | string, VuiTheme>;
|
|
21
|
+
export interface TranslateYProps {
|
|
22
|
+
translateY?: TranslateYProp;
|
|
23
|
+
hoverTranslateY?: TranslateYProp;
|
|
24
|
+
}
|
|
25
|
+
declare type RotateProp = SystemProp<number | string, VuiTheme>;
|
|
26
|
+
export interface RotateProps {
|
|
27
|
+
rotate?: RotateProp;
|
|
28
|
+
hoverRotate?: RotateProp;
|
|
29
|
+
}
|
|
30
|
+
declare type SkewXProp = SystemProp<number | string, VuiTheme>;
|
|
31
|
+
export interface SkewXProps {
|
|
32
|
+
skewX?: SkewXProp;
|
|
33
|
+
hoverSkewX?: SkewXProp;
|
|
34
|
+
}
|
|
35
|
+
declare type SkewYProp = SystemProp<number | string, VuiTheme>;
|
|
36
|
+
export interface SkewYProps {
|
|
37
|
+
skewY?: SkewYProp;
|
|
38
|
+
hoverSkewY?: SkewYProp;
|
|
39
|
+
}
|
|
40
|
+
declare type ScaleProp = SystemProp<number | string, VuiTheme>;
|
|
41
|
+
export interface ScaleProps {
|
|
42
|
+
scale?: ScaleProp;
|
|
43
|
+
hoverScale?: ScaleProp;
|
|
44
|
+
}
|
|
45
|
+
declare type ScaleXProp = SystemProp<number | string, VuiTheme>;
|
|
46
|
+
export interface ScaleXProps {
|
|
47
|
+
scaleX?: ScaleXProp;
|
|
48
|
+
hoverScaleX?: ScaleXProp;
|
|
49
|
+
}
|
|
50
|
+
declare type ScaleYProp = SystemProp<number | string, VuiTheme>;
|
|
51
|
+
export interface ScaleYProps {
|
|
52
|
+
scaleY?: ScaleYProp;
|
|
53
|
+
hoverScaleY?: ScaleYProp;
|
|
54
|
+
}
|
|
55
|
+
export interface TransformsProps extends TransformProps, TransformOriginProps, TranslateXProps, TranslateYProps, RotateProps, SkewXProps, SkewYProps, ScaleProps, ScaleXProps, ScaleYProps {
|
|
56
56
|
}
|
|
57
57
|
export {};
|
package/system/transitions.d.ts
CHANGED
|
@@ -1,34 +1,29 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SystemProp, VariantsType } from '@xstyled/system';
|
|
2
2
|
import { VuiTheme } from '../theme';
|
|
3
3
|
export declare type DurationGetter = VariantsType<VuiTheme['durations']>;
|
|
4
|
-
export declare type TransitionGetter
|
|
5
|
-
export declare type TransitionPropertyGetter
|
|
6
|
-
export declare type TimingFunctionGetter
|
|
7
|
-
declare type TransitionProp
|
|
8
|
-
export interface TransitionProps
|
|
9
|
-
transition?: TransitionProp
|
|
10
|
-
hoverTransition?: TransitionProp<T>;
|
|
4
|
+
export declare type TransitionGetter = VariantsType<VuiTheme['transitions']>;
|
|
5
|
+
export declare type TransitionPropertyGetter = VariantsType<unknown>;
|
|
6
|
+
export declare type TimingFunctionGetter = VariantsType<unknown>;
|
|
7
|
+
declare type TransitionProp = SystemProp<TransitionGetter, VuiTheme>;
|
|
8
|
+
export interface TransitionProps {
|
|
9
|
+
transition?: TransitionProp;
|
|
11
10
|
}
|
|
12
|
-
declare type TransitionPropertyProp
|
|
13
|
-
export interface TransitionPropertyProps
|
|
14
|
-
transitionProperty?: TransitionPropertyProp
|
|
15
|
-
hoverTransitionProperty?: TransitionPropertyProp<T>;
|
|
11
|
+
declare type TransitionPropertyProp = SystemProp<TransitionPropertyGetter, VuiTheme>;
|
|
12
|
+
export interface TransitionPropertyProps {
|
|
13
|
+
transitionProperty?: TransitionPropertyProp;
|
|
16
14
|
}
|
|
17
|
-
declare type TransitionDurationProp
|
|
18
|
-
export interface TransitionDurationProps
|
|
19
|
-
transitionDuration?: TransitionDurationProp
|
|
20
|
-
hoverTransitionDuration?: TransitionDurationProp<T>;
|
|
15
|
+
declare type TransitionDurationProp = SystemProp<DurationGetter, VuiTheme>;
|
|
16
|
+
export interface TransitionDurationProps {
|
|
17
|
+
transitionDuration?: TransitionDurationProp;
|
|
21
18
|
}
|
|
22
|
-
declare type TransitionTimingFunctionProp
|
|
23
|
-
export interface TransitionTimingFunctionProps
|
|
24
|
-
transitionTimingFunction?: TransitionTimingFunctionProp
|
|
25
|
-
hoverTransitionTimingFunction?: TransitionTimingFunctionProp<T>;
|
|
19
|
+
declare type TransitionTimingFunctionProp = SystemProp<TimingFunctionGetter, VuiTheme>;
|
|
20
|
+
export interface TransitionTimingFunctionProps {
|
|
21
|
+
transitionTimingFunction?: TransitionTimingFunctionProp;
|
|
26
22
|
}
|
|
27
|
-
declare type TransitionDelayProp
|
|
28
|
-
export interface TransitionDelayProps
|
|
29
|
-
transitionDelay?: TransitionDelayProp
|
|
30
|
-
hoverTransitionDelay?: TransitionDelayProp<T>;
|
|
23
|
+
declare type TransitionDelayProp = SystemProp<number, VuiTheme>;
|
|
24
|
+
export interface TransitionDelayProps {
|
|
25
|
+
transitionDelay?: TransitionDelayProp;
|
|
31
26
|
}
|
|
32
|
-
export interface TransitionsProps
|
|
27
|
+
export interface TransitionsProps extends TransitionProps, TransitionPropertyProps, TransitionDurationProps, TransitionTimingFunctionProps, TransitionDelayProps {
|
|
33
28
|
}
|
|
34
29
|
export {};
|