-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMiscTypes.ts
186 lines (139 loc) · 5.32 KB
/
MiscTypes.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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
export type PointPreset =
| 'top'
| 'bottom'
| 'left'
| 'right'
| 'bottomLeft'
| 'bottomRight'
| 'topLeft'
| 'topRight';
export type Point = {
x: number;
y: number;
};
/** Object return by `DynamicColorIOS` */
export type DynamicColor = {
dynamic: {
dark: string;
light: string;
};
};
/** `UIOffset: A structure that specifies an amount to offset a position. */
export type Offset = {
vertical ?: Number;
horizontal?: Number;
};
/** Blur styles available for blur effect objects. */
export type BlurEffectStyle =
// -----------------*
// Adaptable Styles |
// -----------------*
/** An adaptable blur effect that creates the appearance of an ultra-thin material. */
| 'systemUltraThinMaterial'
/** An adaptable blur effect that creates the appearance of a thin material. */
| 'systemThinMaterial'
/** An adaptable blur effect that creates the appearance of a material with normal thickness. */
| 'systemMaterial'
/** An adaptable blur effect that creates the appearance of a material that is thicker than normal. */
| 'systemThickMaterial'
/** An adaptable blur effect that creates the appearance of the system chrome. */
| 'systemChromeMaterial'
// -------------*
// Light Styles |
// -------------*
/** A blur effect that creates the appearance of an ultra-thin material and is always light. */
| 'systemUltraThinMaterialLight'
/** A blur effect that creates the appearance of a thin material and is always light. */
| 'systemThinMaterialLight'
/** A blur effect that creates the appearance of a material with normal thickness and is always light. */
| 'systemMaterialLight'
/** A blur effect that creates the appearance of a material that is thicker than normal and is always light. */
| 'systemThickMaterialLight'
/** A blur effect that creates the appearance of the system chrome and is always light. */
| 'systemChromeMaterialLight'
// ------------*
// Dark Styles |
// ------------*
/** A blur effect that creates the appearance of an ultra-thin material and is always dark. */
| 'systemChromeMaterialDark'
/** A blur effect that creates the appearance of a thin material and is always dark. */
| 'systemMaterialDark'
/** A blur effect that creates the appearance of a material with normal thickness and is always dark. */
| 'systemThickMaterialDark'
/** A blur effect that creates the appearance of a material that is thicker than normal and is always dark. */
| 'systemThinMaterialDark'
/** A blur effect that creates the appearance of the system chrome and is always dark. */
| 'systemUltraThinMaterialDark'
// ------------------*
// Additional Styles |
// ------------------*
/** The area of the view is lighter than the underlying view. */
| 'extraLight'
/** The area of the view is the same approximate lightness of the underlying view. */
| 'light'
/** The area of the view is darker than the underlying view. */
| 'dark'
/** The area of the view is even more dark than the underlying view. */
| 'extraDark'
/** A regular blur style that adapts to the user interface style. */
| 'regular'
/** A blur style for making content more prominent that adapts to the user interface style. */
| 'prominent';
/** Constants to specify metrics to use for appearance. */
export type BarMetrics =
/** Specifies default metrics for the device */
| 'default'
/** Specifies metrics when using the phone idiom */
| 'compact'
/** Specifies default metrics for the device for bars with the prompt property, such as UINavigationBar and UISearchBar. */
| 'defaultPrompt'
/** Specifies metrics for bars with the prompt property when using the phone idiom, such as UINavigationBar and UISearchBar. */
| 'compactPrompt';
export type ControlState =
/** The normal, or default state of a control—that is, enabled but neither selected nor highlighted. */
| 'normal'
/** Highlighted state of a control. */
| 'highlighted'
/** Disabled state of a control. */
| 'disabled'
/** Selected state of a control. */
| 'selected'
/** Focused state of a control. */
| 'focused';
export type EdgeInsets = {
top : number;
bottom: number;
left : number;
right : number;
};
export type Rect = {
x : number;
y : number;
height: number;
width : number;
};
export type ReturnKeyType =
/** Specifies that the visible title of the Return key is return. */
| 'default'
/** Specifies that the visible title of the Return key is Go. */
| 'go'
/** Specifies that the visible title of the Return key is Google. */
| 'google'
/** Specifies that the visible title of the Return key is Join. */
| 'join'
/** Specifies that the visible title of the Return key is Next. */
| 'next'
/** Specifies that the visible title of the Return key is Route. */
| 'route'
/** Specifies that the visible title of the Return key is Search. */
| 'search'
/** Specifies that the visible title of the Return key is Send. */
| 'send'
/** Specifies that the visible title of the Return key is Yahoo. */
| 'yahoo'
/** Specifies that the visible title of the Return key is Done. */
| 'done'
/** Specifies that the visible title of the Return key is Emergency Call. */
| 'emergencyCall'
/** Specifies that the visible title of the Return key is Continue. */
| 'continue';