-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathprops.ts
120 lines (96 loc) · 2.21 KB
/
props.ts
1
2
3
4
5
6
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import { YogaFlexDirection, YogaAlign, YogaJustifyContent, YogaFlexWrap, YogaDirection } from '@react-pdf/yoga'
export type FlexYogaDirection = YogaDirection | 'ltr' | 'rtl'
export type FlexPlane = 'xy' | 'yz' | 'xz'
export type Value = string | number
export type FlexDirection = YogaFlexDirection | 'row' | 'column' | 'row-reverse' | 'column-reverse'
export type JustifyContent =
| YogaJustifyContent
| 'center'
| 'flex-end'
| 'flex-start'
| 'space-between'
| 'space-evenly'
| 'space-around'
export type Align =
| YogaAlign
| 'auto'
| 'baseline'
| 'center'
| 'flex-end'
| 'flex-start'
| 'space-around'
| 'space-between'
| 'stretch'
export type FlexWrap = YogaFlexWrap | 'no-wrap' | 'wrap' | 'wrap-reverse'
export type R3FlexProps = Partial<{
// Align
alignContent: Align
alignItems: Align
alignSelf: Align
// Shorthand for alignItems
align: Align
// Justify
justifyContent: JustifyContent
// Shorthand for justifyContent
justify: JustifyContent
// Direction
flexDirection: FlexDirection
// Shorthand for flexDirection
flexDir: FlexDirection
// Shorthand for flexDirection
dir: FlexDirection
// Wrap
flexWrap: FlexWrap
// Shorthand for flexWrap
wrap: FlexWrap
// Flex basis
flexBasis: number
// Shorthand for flexBasis
basis: number
// Grow & shrink
flexGrow: number
// Shorthand for flexGrow
grow: number
flexShrink: number
// Shorthand for flexShrink
shrink: number
// Height & width
height: Value
width: Value
maxHeight: Value
maxWidth: Value
minHeight: Value
minWidth: Value
// Padding
padding: Value
// Shorthand for padding
p: Value
paddingTop: Value
// Shorthand for paddingTop
pt: Value
paddingBottom: Value
// Shorthand for paddingBottom
pb: Value
paddingLeft: Value
// Shorthand for paddingLeft
pl: Value
paddingRight: Value
// Shorthand for paddingRight
pr: Value
// Margin
margin: Value
// Shorthand for margin
m: Value
marginTop: Value
// Shorthand for marginTop
mt: Value
marginLeft: Value
// Shorthand for marginLeft
ml: Value
marginRight: Value
// Shorthand for marginRight
mr: Value
marginBottom: Value
// Shorthand for marginBottom
mb: Value
}>