@factorialco/f0-react-native 0.33.0 → 0.35.0
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/README.md +7 -5
- package/lib/module/components/Badge/index.js +1 -1
- package/lib/module/components/Badge/index.js.map +1 -1
- package/lib/module/components/Button/index.js +1 -1
- package/lib/module/components/Button/index.js.map +1 -1
- package/lib/module/components/F0Badge/F0Badge.js +2 -0
- package/lib/module/components/F0Badge/F0Badge.js.map +1 -0
- package/lib/module/components/F0Badge/F0Badge.md +67 -0
- package/lib/module/components/F0Badge/F0Badge.styles.js +2 -0
- package/lib/module/components/F0Badge/F0Badge.styles.js.map +1 -0
- package/lib/module/components/F0Badge/F0Badge.types.js +2 -0
- package/lib/module/components/F0Badge/F0Badge.types.js.map +1 -0
- package/lib/module/components/F0Badge/index.js +2 -0
- package/lib/module/components/F0Badge/index.js.map +1 -0
- package/lib/module/components/F0Button/F0Button.js +2 -0
- package/lib/module/components/F0Button/F0Button.js.map +1 -0
- package/lib/module/components/F0Button/F0Button.md +163 -0
- package/lib/module/components/F0Button/F0Button.styles.js +2 -0
- package/lib/module/components/F0Button/F0Button.styles.js.map +1 -0
- package/lib/module/components/F0Button/F0Button.types.js +2 -0
- package/lib/module/components/F0Button/F0Button.types.js.map +1 -0
- package/lib/module/components/F0Button/index.js +2 -0
- package/lib/module/components/F0Button/index.js.map +1 -0
- package/lib/module/components/Icon/index.js.map +1 -1
- package/lib/module/components/exports.js +1 -1
- package/lib/module/components/exports.js.map +1 -1
- package/lib/typescript/components/Badge/index.d.ts +28 -54
- package/lib/typescript/components/Badge/index.d.ts.map +1 -1
- package/lib/typescript/components/Button/index.d.ts +18 -0
- package/lib/typescript/components/Button/index.d.ts.map +1 -1
- package/lib/typescript/components/F0Badge/F0Badge.d.ts +5 -0
- package/lib/typescript/components/F0Badge/F0Badge.d.ts.map +1 -0
- package/lib/typescript/components/F0Badge/F0Badge.styles.d.ts +57 -0
- package/lib/typescript/components/F0Badge/F0Badge.styles.d.ts.map +1 -0
- package/lib/typescript/components/F0Badge/F0Badge.types.d.ts +19 -0
- package/lib/typescript/components/F0Badge/F0Badge.types.d.ts.map +1 -0
- package/lib/typescript/components/F0Badge/index.d.ts +4 -0
- package/lib/typescript/components/F0Badge/index.d.ts.map +1 -0
- package/lib/typescript/components/F0Button/F0Button.d.ts +6 -0
- package/lib/typescript/components/F0Button/F0Button.d.ts.map +1 -0
- package/lib/typescript/components/F0Button/F0Button.styles.d.ts +161 -0
- package/lib/typescript/components/F0Button/F0Button.styles.d.ts.map +1 -0
- package/lib/typescript/components/F0Button/F0Button.types.d.ts +47 -0
- package/lib/typescript/components/F0Button/F0Button.types.d.ts.map +1 -0
- package/lib/typescript/components/F0Button/index.d.ts +4 -0
- package/lib/typescript/components/F0Button/index.d.ts.map +1 -0
- package/lib/typescript/components/Icon/index.d.ts +5 -0
- package/lib/typescript/components/Icon/index.d.ts.map +1 -1
- package/lib/typescript/components/exports.d.ts +2 -0
- package/lib/typescript/components/exports.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Badge/__tests__/index.spec.tsx +29 -0
- package/src/components/Badge/index.tsx +38 -40
- package/src/components/Button/__snapshots__/index.spec.tsx.snap +11 -11
- package/src/components/Button/index.tsx +22 -2
- package/src/components/F0Badge/F0Badge.md +67 -0
- package/src/components/F0Badge/F0Badge.styles.ts +28 -0
- package/src/components/F0Badge/F0Badge.tsx +24 -0
- package/src/components/F0Badge/F0Badge.types.ts +34 -0
- package/src/components/F0Badge/__tests__/F0Badge.spec.tsx +63 -0
- package/src/components/F0Badge/__tests__/__snapshots__/F0Badge.spec.tsx.snap +651 -0
- package/src/components/F0Badge/index.ts +7 -0
- package/src/components/F0Button/F0Button.md +163 -0
- package/src/components/F0Button/F0Button.styles.ts +141 -0
- package/src/components/F0Button/F0Button.tsx +228 -0
- package/src/components/F0Button/F0Button.types.ts +82 -0
- package/src/components/F0Button/__tests__/F0Button.spec.tsx +285 -0
- package/src/components/F0Button/__tests__/__snapshots__/F0Button.spec.tsx.snap +966 -0
- package/src/components/F0Button/index.ts +7 -0
- package/src/components/Icon/index.tsx +5 -0
- package/src/components/exports.ts +2 -0
|
@@ -0,0 +1,966 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
2
|
+
|
|
3
|
+
exports[`F0Button Snapshot - critical variant 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
className="flex items-start"
|
|
6
|
+
>
|
|
7
|
+
<View
|
|
8
|
+
accessibilityLabel="Test Button"
|
|
9
|
+
accessibilityRole="button"
|
|
10
|
+
accessibilityState={
|
|
11
|
+
{
|
|
12
|
+
"busy": false,
|
|
13
|
+
"checked": undefined,
|
|
14
|
+
"disabled": false,
|
|
15
|
+
"expanded": undefined,
|
|
16
|
+
"selected": undefined,
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
accessibilityValue={
|
|
20
|
+
{
|
|
21
|
+
"max": undefined,
|
|
22
|
+
"min": undefined,
|
|
23
|
+
"now": undefined,
|
|
24
|
+
"text": undefined,
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
accessible={true}
|
|
28
|
+
className="overflow-hidden"
|
|
29
|
+
collapsable={false}
|
|
30
|
+
focusable={true}
|
|
31
|
+
onBlur={[Function]}
|
|
32
|
+
onClick={[Function]}
|
|
33
|
+
onFocus={[Function]}
|
|
34
|
+
onResponderGrant={[Function]}
|
|
35
|
+
onResponderMove={[Function]}
|
|
36
|
+
onResponderRelease={[Function]}
|
|
37
|
+
onResponderTerminate={[Function]}
|
|
38
|
+
onResponderTerminationRequest={[Function]}
|
|
39
|
+
onStartShouldSetResponder={[Function]}
|
|
40
|
+
style={
|
|
41
|
+
[
|
|
42
|
+
{
|
|
43
|
+
"transform": [
|
|
44
|
+
{
|
|
45
|
+
"scale": 1,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
undefined,
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
>
|
|
53
|
+
<View
|
|
54
|
+
className="absolute inset-0"
|
|
55
|
+
pointerEvents="none"
|
|
56
|
+
style={
|
|
57
|
+
[
|
|
58
|
+
{
|
|
59
|
+
"opacity": 0,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
63
|
+
},
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
/>
|
|
67
|
+
<View
|
|
68
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-secondary border border-f0-border h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
69
|
+
>
|
|
70
|
+
<View
|
|
71
|
+
className="opacity-100"
|
|
72
|
+
testID="f0-button-content"
|
|
73
|
+
>
|
|
74
|
+
<View
|
|
75
|
+
className="flex-row items-center justify-center gap-1"
|
|
76
|
+
>
|
|
77
|
+
<Text
|
|
78
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-critical text-left"
|
|
79
|
+
>
|
|
80
|
+
Test Button
|
|
81
|
+
</Text>
|
|
82
|
+
</View>
|
|
83
|
+
</View>
|
|
84
|
+
</View>
|
|
85
|
+
</View>
|
|
86
|
+
</View>
|
|
87
|
+
`;
|
|
88
|
+
|
|
89
|
+
exports[`F0Button Snapshot - default button 1`] = `
|
|
90
|
+
<View
|
|
91
|
+
className="flex items-start"
|
|
92
|
+
>
|
|
93
|
+
<View
|
|
94
|
+
accessibilityLabel="Test Button"
|
|
95
|
+
accessibilityRole="button"
|
|
96
|
+
accessibilityState={
|
|
97
|
+
{
|
|
98
|
+
"busy": false,
|
|
99
|
+
"checked": undefined,
|
|
100
|
+
"disabled": false,
|
|
101
|
+
"expanded": undefined,
|
|
102
|
+
"selected": undefined,
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
accessibilityValue={
|
|
106
|
+
{
|
|
107
|
+
"max": undefined,
|
|
108
|
+
"min": undefined,
|
|
109
|
+
"now": undefined,
|
|
110
|
+
"text": undefined,
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
accessible={true}
|
|
114
|
+
className="overflow-hidden"
|
|
115
|
+
collapsable={false}
|
|
116
|
+
focusable={true}
|
|
117
|
+
onBlur={[Function]}
|
|
118
|
+
onClick={[Function]}
|
|
119
|
+
onFocus={[Function]}
|
|
120
|
+
onResponderGrant={[Function]}
|
|
121
|
+
onResponderMove={[Function]}
|
|
122
|
+
onResponderRelease={[Function]}
|
|
123
|
+
onResponderTerminate={[Function]}
|
|
124
|
+
onResponderTerminationRequest={[Function]}
|
|
125
|
+
onStartShouldSetResponder={[Function]}
|
|
126
|
+
style={
|
|
127
|
+
[
|
|
128
|
+
{
|
|
129
|
+
"transform": [
|
|
130
|
+
{
|
|
131
|
+
"scale": 1,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
undefined,
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
>
|
|
139
|
+
<View
|
|
140
|
+
className="absolute inset-0"
|
|
141
|
+
pointerEvents="none"
|
|
142
|
+
style={
|
|
143
|
+
[
|
|
144
|
+
{
|
|
145
|
+
"opacity": 0,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
149
|
+
},
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
/>
|
|
153
|
+
<View
|
|
154
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
155
|
+
>
|
|
156
|
+
<View
|
|
157
|
+
className="opacity-100"
|
|
158
|
+
testID="f0-button-content"
|
|
159
|
+
>
|
|
160
|
+
<View
|
|
161
|
+
className="flex-row items-center justify-center gap-1"
|
|
162
|
+
>
|
|
163
|
+
<Text
|
|
164
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-inverse text-left"
|
|
165
|
+
>
|
|
166
|
+
Test Button
|
|
167
|
+
</Text>
|
|
168
|
+
</View>
|
|
169
|
+
</View>
|
|
170
|
+
</View>
|
|
171
|
+
</View>
|
|
172
|
+
</View>
|
|
173
|
+
`;
|
|
174
|
+
|
|
175
|
+
exports[`F0Button Snapshot - different sizes 1`] = `
|
|
176
|
+
<View
|
|
177
|
+
className="flex items-start"
|
|
178
|
+
>
|
|
179
|
+
<View
|
|
180
|
+
accessibilityLabel="Test Button"
|
|
181
|
+
accessibilityRole="button"
|
|
182
|
+
accessibilityState={
|
|
183
|
+
{
|
|
184
|
+
"busy": false,
|
|
185
|
+
"checked": undefined,
|
|
186
|
+
"disabled": false,
|
|
187
|
+
"expanded": undefined,
|
|
188
|
+
"selected": undefined,
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
accessibilityValue={
|
|
192
|
+
{
|
|
193
|
+
"max": undefined,
|
|
194
|
+
"min": undefined,
|
|
195
|
+
"now": undefined,
|
|
196
|
+
"text": undefined,
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
accessible={true}
|
|
200
|
+
className="overflow-hidden"
|
|
201
|
+
collapsable={false}
|
|
202
|
+
focusable={true}
|
|
203
|
+
onBlur={[Function]}
|
|
204
|
+
onClick={[Function]}
|
|
205
|
+
onFocus={[Function]}
|
|
206
|
+
onResponderGrant={[Function]}
|
|
207
|
+
onResponderMove={[Function]}
|
|
208
|
+
onResponderRelease={[Function]}
|
|
209
|
+
onResponderTerminate={[Function]}
|
|
210
|
+
onResponderTerminationRequest={[Function]}
|
|
211
|
+
onStartShouldSetResponder={[Function]}
|
|
212
|
+
style={
|
|
213
|
+
[
|
|
214
|
+
{
|
|
215
|
+
"transform": [
|
|
216
|
+
{
|
|
217
|
+
"scale": 1,
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
},
|
|
221
|
+
undefined,
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
>
|
|
225
|
+
<View
|
|
226
|
+
className="absolute inset-0"
|
|
227
|
+
pointerEvents="none"
|
|
228
|
+
style={
|
|
229
|
+
[
|
|
230
|
+
{
|
|
231
|
+
"opacity": 0,
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
235
|
+
},
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
/>
|
|
239
|
+
<View
|
|
240
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-6 rounded-sm gap-1 px-2 sm:px-3 lg:px-4"
|
|
241
|
+
>
|
|
242
|
+
<View
|
|
243
|
+
className="opacity-100"
|
|
244
|
+
testID="f0-button-content"
|
|
245
|
+
>
|
|
246
|
+
<View
|
|
247
|
+
className="flex-row items-center justify-center gap-1"
|
|
248
|
+
>
|
|
249
|
+
<Text
|
|
250
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-inverse text-left"
|
|
251
|
+
>
|
|
252
|
+
Test Button
|
|
253
|
+
</Text>
|
|
254
|
+
</View>
|
|
255
|
+
</View>
|
|
256
|
+
</View>
|
|
257
|
+
</View>
|
|
258
|
+
</View>
|
|
259
|
+
`;
|
|
260
|
+
|
|
261
|
+
exports[`F0Button Snapshot - different sizes 2`] = `
|
|
262
|
+
<View
|
|
263
|
+
className="flex items-start"
|
|
264
|
+
>
|
|
265
|
+
<View
|
|
266
|
+
accessibilityLabel="Test Button"
|
|
267
|
+
accessibilityRole="button"
|
|
268
|
+
accessibilityState={
|
|
269
|
+
{
|
|
270
|
+
"busy": false,
|
|
271
|
+
"checked": undefined,
|
|
272
|
+
"disabled": false,
|
|
273
|
+
"expanded": undefined,
|
|
274
|
+
"selected": undefined,
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
accessibilityValue={
|
|
278
|
+
{
|
|
279
|
+
"max": undefined,
|
|
280
|
+
"min": undefined,
|
|
281
|
+
"now": undefined,
|
|
282
|
+
"text": undefined,
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
accessible={true}
|
|
286
|
+
className="overflow-hidden"
|
|
287
|
+
collapsable={false}
|
|
288
|
+
focusable={true}
|
|
289
|
+
onBlur={[Function]}
|
|
290
|
+
onClick={[Function]}
|
|
291
|
+
onFocus={[Function]}
|
|
292
|
+
onResponderGrant={[Function]}
|
|
293
|
+
onResponderMove={[Function]}
|
|
294
|
+
onResponderRelease={[Function]}
|
|
295
|
+
onResponderTerminate={[Function]}
|
|
296
|
+
onResponderTerminationRequest={[Function]}
|
|
297
|
+
onStartShouldSetResponder={[Function]}
|
|
298
|
+
style={
|
|
299
|
+
[
|
|
300
|
+
{
|
|
301
|
+
"transform": [
|
|
302
|
+
{
|
|
303
|
+
"scale": 1,
|
|
304
|
+
},
|
|
305
|
+
],
|
|
306
|
+
},
|
|
307
|
+
undefined,
|
|
308
|
+
]
|
|
309
|
+
}
|
|
310
|
+
>
|
|
311
|
+
<View
|
|
312
|
+
className="absolute inset-0"
|
|
313
|
+
pointerEvents="none"
|
|
314
|
+
style={
|
|
315
|
+
[
|
|
316
|
+
{
|
|
317
|
+
"opacity": 0,
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
321
|
+
},
|
|
322
|
+
]
|
|
323
|
+
}
|
|
324
|
+
/>
|
|
325
|
+
<View
|
|
326
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
327
|
+
>
|
|
328
|
+
<View
|
|
329
|
+
className="opacity-100"
|
|
330
|
+
testID="f0-button-content"
|
|
331
|
+
>
|
|
332
|
+
<View
|
|
333
|
+
className="flex-row items-center justify-center gap-1"
|
|
334
|
+
>
|
|
335
|
+
<Text
|
|
336
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-inverse text-left"
|
|
337
|
+
>
|
|
338
|
+
Test Button
|
|
339
|
+
</Text>
|
|
340
|
+
</View>
|
|
341
|
+
</View>
|
|
342
|
+
</View>
|
|
343
|
+
</View>
|
|
344
|
+
</View>
|
|
345
|
+
`;
|
|
346
|
+
|
|
347
|
+
exports[`F0Button Snapshot - different sizes 3`] = `
|
|
348
|
+
<View
|
|
349
|
+
className="flex items-start"
|
|
350
|
+
>
|
|
351
|
+
<View
|
|
352
|
+
accessibilityLabel="Test Button"
|
|
353
|
+
accessibilityRole="button"
|
|
354
|
+
accessibilityState={
|
|
355
|
+
{
|
|
356
|
+
"busy": false,
|
|
357
|
+
"checked": undefined,
|
|
358
|
+
"disabled": false,
|
|
359
|
+
"expanded": undefined,
|
|
360
|
+
"selected": undefined,
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
accessibilityValue={
|
|
364
|
+
{
|
|
365
|
+
"max": undefined,
|
|
366
|
+
"min": undefined,
|
|
367
|
+
"now": undefined,
|
|
368
|
+
"text": undefined,
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
accessible={true}
|
|
372
|
+
className="overflow-hidden"
|
|
373
|
+
collapsable={false}
|
|
374
|
+
focusable={true}
|
|
375
|
+
onBlur={[Function]}
|
|
376
|
+
onClick={[Function]}
|
|
377
|
+
onFocus={[Function]}
|
|
378
|
+
onResponderGrant={[Function]}
|
|
379
|
+
onResponderMove={[Function]}
|
|
380
|
+
onResponderRelease={[Function]}
|
|
381
|
+
onResponderTerminate={[Function]}
|
|
382
|
+
onResponderTerminationRequest={[Function]}
|
|
383
|
+
onStartShouldSetResponder={[Function]}
|
|
384
|
+
style={
|
|
385
|
+
[
|
|
386
|
+
{
|
|
387
|
+
"transform": [
|
|
388
|
+
{
|
|
389
|
+
"scale": 1,
|
|
390
|
+
},
|
|
391
|
+
],
|
|
392
|
+
},
|
|
393
|
+
undefined,
|
|
394
|
+
]
|
|
395
|
+
}
|
|
396
|
+
>
|
|
397
|
+
<View
|
|
398
|
+
className="absolute inset-0"
|
|
399
|
+
pointerEvents="none"
|
|
400
|
+
style={
|
|
401
|
+
[
|
|
402
|
+
{
|
|
403
|
+
"opacity": 0,
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
407
|
+
},
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
/>
|
|
411
|
+
<View
|
|
412
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-10 rounded-md gap-1 px-2 sm:px-3 lg:px-4"
|
|
413
|
+
>
|
|
414
|
+
<View
|
|
415
|
+
className="opacity-100"
|
|
416
|
+
testID="f0-button-content"
|
|
417
|
+
>
|
|
418
|
+
<View
|
|
419
|
+
className="flex-row items-center justify-center gap-1"
|
|
420
|
+
>
|
|
421
|
+
<Text
|
|
422
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-inverse text-left"
|
|
423
|
+
>
|
|
424
|
+
Test Button
|
|
425
|
+
</Text>
|
|
426
|
+
</View>
|
|
427
|
+
</View>
|
|
428
|
+
</View>
|
|
429
|
+
</View>
|
|
430
|
+
</View>
|
|
431
|
+
`;
|
|
432
|
+
|
|
433
|
+
exports[`F0Button Snapshot - disabled state 1`] = `
|
|
434
|
+
<View
|
|
435
|
+
className="flex items-start"
|
|
436
|
+
>
|
|
437
|
+
<View
|
|
438
|
+
accessibilityLabel="Test Button, disabled"
|
|
439
|
+
accessibilityRole="button"
|
|
440
|
+
accessibilityState={
|
|
441
|
+
{
|
|
442
|
+
"busy": false,
|
|
443
|
+
"checked": undefined,
|
|
444
|
+
"disabled": true,
|
|
445
|
+
"expanded": undefined,
|
|
446
|
+
"selected": undefined,
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
accessibilityValue={
|
|
450
|
+
{
|
|
451
|
+
"max": undefined,
|
|
452
|
+
"min": undefined,
|
|
453
|
+
"now": undefined,
|
|
454
|
+
"text": undefined,
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
accessible={true}
|
|
458
|
+
className="overflow-hidden"
|
|
459
|
+
collapsable={false}
|
|
460
|
+
focusable={true}
|
|
461
|
+
onBlur={[Function]}
|
|
462
|
+
onClick={[Function]}
|
|
463
|
+
onFocus={[Function]}
|
|
464
|
+
onResponderGrant={[Function]}
|
|
465
|
+
onResponderMove={[Function]}
|
|
466
|
+
onResponderRelease={[Function]}
|
|
467
|
+
onResponderTerminate={[Function]}
|
|
468
|
+
onResponderTerminationRequest={[Function]}
|
|
469
|
+
onStartShouldSetResponder={[Function]}
|
|
470
|
+
style={
|
|
471
|
+
[
|
|
472
|
+
{
|
|
473
|
+
"transform": [
|
|
474
|
+
{
|
|
475
|
+
"scale": 1,
|
|
476
|
+
},
|
|
477
|
+
],
|
|
478
|
+
},
|
|
479
|
+
undefined,
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
>
|
|
483
|
+
<View
|
|
484
|
+
className="absolute inset-0"
|
|
485
|
+
pointerEvents="none"
|
|
486
|
+
style={
|
|
487
|
+
[
|
|
488
|
+
{
|
|
489
|
+
"opacity": 0,
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
493
|
+
},
|
|
494
|
+
]
|
|
495
|
+
}
|
|
496
|
+
/>
|
|
497
|
+
<View
|
|
498
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded opacity-50 gap-1 px-2 sm:px-3 lg:px-4"
|
|
499
|
+
>
|
|
500
|
+
<View
|
|
501
|
+
className="opacity-100"
|
|
502
|
+
testID="f0-button-content"
|
|
503
|
+
>
|
|
504
|
+
<View
|
|
505
|
+
className="flex-row items-center justify-center gap-1"
|
|
506
|
+
>
|
|
507
|
+
<Text
|
|
508
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-inverse text-left"
|
|
509
|
+
>
|
|
510
|
+
Test Button
|
|
511
|
+
</Text>
|
|
512
|
+
</View>
|
|
513
|
+
</View>
|
|
514
|
+
</View>
|
|
515
|
+
</View>
|
|
516
|
+
</View>
|
|
517
|
+
`;
|
|
518
|
+
|
|
519
|
+
exports[`F0Button Snapshot - loading state 1`] = `
|
|
520
|
+
<View
|
|
521
|
+
className="flex items-start"
|
|
522
|
+
>
|
|
523
|
+
<View
|
|
524
|
+
accessibilityLabel="Test Button, disabled, loading"
|
|
525
|
+
accessibilityRole="button"
|
|
526
|
+
accessibilityState={
|
|
527
|
+
{
|
|
528
|
+
"busy": true,
|
|
529
|
+
"checked": undefined,
|
|
530
|
+
"disabled": true,
|
|
531
|
+
"expanded": undefined,
|
|
532
|
+
"selected": undefined,
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
accessibilityValue={
|
|
536
|
+
{
|
|
537
|
+
"max": undefined,
|
|
538
|
+
"min": undefined,
|
|
539
|
+
"now": undefined,
|
|
540
|
+
"text": undefined,
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
accessible={true}
|
|
544
|
+
className="overflow-hidden"
|
|
545
|
+
collapsable={false}
|
|
546
|
+
focusable={true}
|
|
547
|
+
onBlur={[Function]}
|
|
548
|
+
onClick={[Function]}
|
|
549
|
+
onFocus={[Function]}
|
|
550
|
+
onResponderGrant={[Function]}
|
|
551
|
+
onResponderMove={[Function]}
|
|
552
|
+
onResponderRelease={[Function]}
|
|
553
|
+
onResponderTerminate={[Function]}
|
|
554
|
+
onResponderTerminationRequest={[Function]}
|
|
555
|
+
onStartShouldSetResponder={[Function]}
|
|
556
|
+
style={
|
|
557
|
+
[
|
|
558
|
+
{
|
|
559
|
+
"transform": [
|
|
560
|
+
{
|
|
561
|
+
"scale": 1,
|
|
562
|
+
},
|
|
563
|
+
],
|
|
564
|
+
},
|
|
565
|
+
undefined,
|
|
566
|
+
]
|
|
567
|
+
}
|
|
568
|
+
>
|
|
569
|
+
<View
|
|
570
|
+
className="absolute inset-0"
|
|
571
|
+
pointerEvents="none"
|
|
572
|
+
style={
|
|
573
|
+
[
|
|
574
|
+
{
|
|
575
|
+
"opacity": 0,
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
579
|
+
},
|
|
580
|
+
]
|
|
581
|
+
}
|
|
582
|
+
/>
|
|
583
|
+
<View
|
|
584
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded opacity-50 gap-1 px-2 sm:px-3 lg:px-4"
|
|
585
|
+
>
|
|
586
|
+
<View
|
|
587
|
+
className="opacity-0"
|
|
588
|
+
testID="f0-button-content"
|
|
589
|
+
>
|
|
590
|
+
<View
|
|
591
|
+
className="flex-row items-center justify-center gap-1"
|
|
592
|
+
>
|
|
593
|
+
<Text
|
|
594
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-inverse text-left"
|
|
595
|
+
>
|
|
596
|
+
Test Button
|
|
597
|
+
</Text>
|
|
598
|
+
</View>
|
|
599
|
+
</View>
|
|
600
|
+
<View
|
|
601
|
+
className="absolute inset-0 items-center justify-center"
|
|
602
|
+
pointerEvents="none"
|
|
603
|
+
>
|
|
604
|
+
<View
|
|
605
|
+
accessibilityLabel="Loading indicator"
|
|
606
|
+
className="rounded-full border-solid border-f0-foreground-inverse h-4 w-4 border-2"
|
|
607
|
+
style={
|
|
608
|
+
{
|
|
609
|
+
"borderTopColor": "transparent",
|
|
610
|
+
"transform": [
|
|
611
|
+
{
|
|
612
|
+
"rotateZ": "0deg",
|
|
613
|
+
},
|
|
614
|
+
],
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
testID="f0-button-loading-indicator"
|
|
618
|
+
/>
|
|
619
|
+
</View>
|
|
620
|
+
</View>
|
|
621
|
+
</View>
|
|
622
|
+
</View>
|
|
623
|
+
`;
|
|
624
|
+
|
|
625
|
+
exports[`F0Button Snapshot - outline variant 1`] = `
|
|
626
|
+
<View
|
|
627
|
+
className="flex items-start"
|
|
628
|
+
>
|
|
629
|
+
<View
|
|
630
|
+
accessibilityLabel="Test Button"
|
|
631
|
+
accessibilityRole="button"
|
|
632
|
+
accessibilityState={
|
|
633
|
+
{
|
|
634
|
+
"busy": false,
|
|
635
|
+
"checked": undefined,
|
|
636
|
+
"disabled": false,
|
|
637
|
+
"expanded": undefined,
|
|
638
|
+
"selected": undefined,
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
accessibilityValue={
|
|
642
|
+
{
|
|
643
|
+
"max": undefined,
|
|
644
|
+
"min": undefined,
|
|
645
|
+
"now": undefined,
|
|
646
|
+
"text": undefined,
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
accessible={true}
|
|
650
|
+
className="overflow-hidden"
|
|
651
|
+
collapsable={false}
|
|
652
|
+
focusable={true}
|
|
653
|
+
onBlur={[Function]}
|
|
654
|
+
onClick={[Function]}
|
|
655
|
+
onFocus={[Function]}
|
|
656
|
+
onResponderGrant={[Function]}
|
|
657
|
+
onResponderMove={[Function]}
|
|
658
|
+
onResponderRelease={[Function]}
|
|
659
|
+
onResponderTerminate={[Function]}
|
|
660
|
+
onResponderTerminationRequest={[Function]}
|
|
661
|
+
onStartShouldSetResponder={[Function]}
|
|
662
|
+
style={
|
|
663
|
+
[
|
|
664
|
+
{
|
|
665
|
+
"transform": [
|
|
666
|
+
{
|
|
667
|
+
"scale": 1,
|
|
668
|
+
},
|
|
669
|
+
],
|
|
670
|
+
},
|
|
671
|
+
undefined,
|
|
672
|
+
]
|
|
673
|
+
}
|
|
674
|
+
>
|
|
675
|
+
<View
|
|
676
|
+
className="absolute inset-0"
|
|
677
|
+
pointerEvents="none"
|
|
678
|
+
style={
|
|
679
|
+
[
|
|
680
|
+
{
|
|
681
|
+
"opacity": 0,
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
685
|
+
},
|
|
686
|
+
]
|
|
687
|
+
}
|
|
688
|
+
/>
|
|
689
|
+
<View
|
|
690
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-inverse-secondary border border-f0-border h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
691
|
+
>
|
|
692
|
+
<View
|
|
693
|
+
className="opacity-100"
|
|
694
|
+
testID="f0-button-content"
|
|
695
|
+
>
|
|
696
|
+
<View
|
|
697
|
+
className="flex-row items-center justify-center gap-1"
|
|
698
|
+
>
|
|
699
|
+
<Text
|
|
700
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground text-left"
|
|
701
|
+
>
|
|
702
|
+
Test Button
|
|
703
|
+
</Text>
|
|
704
|
+
</View>
|
|
705
|
+
</View>
|
|
706
|
+
</View>
|
|
707
|
+
</View>
|
|
708
|
+
</View>
|
|
709
|
+
`;
|
|
710
|
+
|
|
711
|
+
exports[`F0Button Snapshot - round button with hidden label 1`] = `
|
|
712
|
+
<View
|
|
713
|
+
className="flex items-start"
|
|
714
|
+
>
|
|
715
|
+
<View
|
|
716
|
+
accessibilityLabel="Test Button"
|
|
717
|
+
accessibilityRole="button"
|
|
718
|
+
accessibilityState={
|
|
719
|
+
{
|
|
720
|
+
"busy": false,
|
|
721
|
+
"checked": undefined,
|
|
722
|
+
"disabled": false,
|
|
723
|
+
"expanded": undefined,
|
|
724
|
+
"selected": undefined,
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
accessibilityValue={
|
|
728
|
+
{
|
|
729
|
+
"max": undefined,
|
|
730
|
+
"min": undefined,
|
|
731
|
+
"now": undefined,
|
|
732
|
+
"text": undefined,
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
accessible={true}
|
|
736
|
+
className="overflow-hidden"
|
|
737
|
+
collapsable={false}
|
|
738
|
+
focusable={true}
|
|
739
|
+
onBlur={[Function]}
|
|
740
|
+
onClick={[Function]}
|
|
741
|
+
onFocus={[Function]}
|
|
742
|
+
onResponderGrant={[Function]}
|
|
743
|
+
onResponderMove={[Function]}
|
|
744
|
+
onResponderRelease={[Function]}
|
|
745
|
+
onResponderTerminate={[Function]}
|
|
746
|
+
onResponderTerminationRequest={[Function]}
|
|
747
|
+
onStartShouldSetResponder={[Function]}
|
|
748
|
+
style={
|
|
749
|
+
[
|
|
750
|
+
{
|
|
751
|
+
"transform": [
|
|
752
|
+
{
|
|
753
|
+
"scale": 1,
|
|
754
|
+
},
|
|
755
|
+
],
|
|
756
|
+
},
|
|
757
|
+
undefined,
|
|
758
|
+
]
|
|
759
|
+
}
|
|
760
|
+
>
|
|
761
|
+
<View
|
|
762
|
+
className="absolute inset-0"
|
|
763
|
+
pointerEvents="none"
|
|
764
|
+
style={
|
|
765
|
+
[
|
|
766
|
+
{
|
|
767
|
+
"opacity": 0,
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
771
|
+
},
|
|
772
|
+
]
|
|
773
|
+
}
|
|
774
|
+
/>
|
|
775
|
+
<View
|
|
776
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded aspect-square p-0"
|
|
777
|
+
>
|
|
778
|
+
<View
|
|
779
|
+
className="opacity-100"
|
|
780
|
+
testID="f0-button-content"
|
|
781
|
+
>
|
|
782
|
+
<View
|
|
783
|
+
className="flex-row items-center justify-center gap-1"
|
|
784
|
+
/>
|
|
785
|
+
</View>
|
|
786
|
+
</View>
|
|
787
|
+
</View>
|
|
788
|
+
</View>
|
|
789
|
+
`;
|
|
790
|
+
|
|
791
|
+
exports[`F0Button Snapshot - with emoji 1`] = `
|
|
792
|
+
<View
|
|
793
|
+
className="flex items-start"
|
|
794
|
+
>
|
|
795
|
+
<View
|
|
796
|
+
accessibilityLabel="Test Button"
|
|
797
|
+
accessibilityRole="button"
|
|
798
|
+
accessibilityState={
|
|
799
|
+
{
|
|
800
|
+
"busy": false,
|
|
801
|
+
"checked": undefined,
|
|
802
|
+
"disabled": false,
|
|
803
|
+
"expanded": undefined,
|
|
804
|
+
"selected": undefined,
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
accessibilityValue={
|
|
808
|
+
{
|
|
809
|
+
"max": undefined,
|
|
810
|
+
"min": undefined,
|
|
811
|
+
"now": undefined,
|
|
812
|
+
"text": undefined,
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
accessible={true}
|
|
816
|
+
className="overflow-hidden"
|
|
817
|
+
collapsable={false}
|
|
818
|
+
focusable={true}
|
|
819
|
+
onBlur={[Function]}
|
|
820
|
+
onClick={[Function]}
|
|
821
|
+
onFocus={[Function]}
|
|
822
|
+
onResponderGrant={[Function]}
|
|
823
|
+
onResponderMove={[Function]}
|
|
824
|
+
onResponderRelease={[Function]}
|
|
825
|
+
onResponderTerminate={[Function]}
|
|
826
|
+
onResponderTerminationRequest={[Function]}
|
|
827
|
+
onStartShouldSetResponder={[Function]}
|
|
828
|
+
style={
|
|
829
|
+
[
|
|
830
|
+
{
|
|
831
|
+
"transform": [
|
|
832
|
+
{
|
|
833
|
+
"scale": 1,
|
|
834
|
+
},
|
|
835
|
+
],
|
|
836
|
+
},
|
|
837
|
+
undefined,
|
|
838
|
+
]
|
|
839
|
+
}
|
|
840
|
+
>
|
|
841
|
+
<View
|
|
842
|
+
className="absolute inset-0"
|
|
843
|
+
pointerEvents="none"
|
|
844
|
+
style={
|
|
845
|
+
[
|
|
846
|
+
{
|
|
847
|
+
"opacity": 0,
|
|
848
|
+
},
|
|
849
|
+
{
|
|
850
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
851
|
+
},
|
|
852
|
+
]
|
|
853
|
+
}
|
|
854
|
+
/>
|
|
855
|
+
<View
|
|
856
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
857
|
+
>
|
|
858
|
+
<View
|
|
859
|
+
className="opacity-100"
|
|
860
|
+
testID="f0-button-content"
|
|
861
|
+
>
|
|
862
|
+
<View
|
|
863
|
+
className="flex-row items-center justify-center gap-1"
|
|
864
|
+
>
|
|
865
|
+
<Text
|
|
866
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-inverse text-left"
|
|
867
|
+
>
|
|
868
|
+
👋
|
|
869
|
+
</Text>
|
|
870
|
+
<Text
|
|
871
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-inverse text-left"
|
|
872
|
+
>
|
|
873
|
+
Test Button
|
|
874
|
+
</Text>
|
|
875
|
+
</View>
|
|
876
|
+
</View>
|
|
877
|
+
</View>
|
|
878
|
+
</View>
|
|
879
|
+
</View>
|
|
880
|
+
`;
|
|
881
|
+
|
|
882
|
+
exports[`F0Button Snapshot - with icon 1`] = `
|
|
883
|
+
<View
|
|
884
|
+
className="flex items-start"
|
|
885
|
+
>
|
|
886
|
+
<View
|
|
887
|
+
accessibilityLabel="Test Button"
|
|
888
|
+
accessibilityRole="button"
|
|
889
|
+
accessibilityState={
|
|
890
|
+
{
|
|
891
|
+
"busy": false,
|
|
892
|
+
"checked": undefined,
|
|
893
|
+
"disabled": false,
|
|
894
|
+
"expanded": undefined,
|
|
895
|
+
"selected": undefined,
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
accessibilityValue={
|
|
899
|
+
{
|
|
900
|
+
"max": undefined,
|
|
901
|
+
"min": undefined,
|
|
902
|
+
"now": undefined,
|
|
903
|
+
"text": undefined,
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
accessible={true}
|
|
907
|
+
className="overflow-hidden"
|
|
908
|
+
collapsable={false}
|
|
909
|
+
focusable={true}
|
|
910
|
+
onBlur={[Function]}
|
|
911
|
+
onClick={[Function]}
|
|
912
|
+
onFocus={[Function]}
|
|
913
|
+
onResponderGrant={[Function]}
|
|
914
|
+
onResponderMove={[Function]}
|
|
915
|
+
onResponderRelease={[Function]}
|
|
916
|
+
onResponderTerminate={[Function]}
|
|
917
|
+
onResponderTerminationRequest={[Function]}
|
|
918
|
+
onStartShouldSetResponder={[Function]}
|
|
919
|
+
style={
|
|
920
|
+
[
|
|
921
|
+
{
|
|
922
|
+
"transform": [
|
|
923
|
+
{
|
|
924
|
+
"scale": 1,
|
|
925
|
+
},
|
|
926
|
+
],
|
|
927
|
+
},
|
|
928
|
+
undefined,
|
|
929
|
+
]
|
|
930
|
+
}
|
|
931
|
+
>
|
|
932
|
+
<View
|
|
933
|
+
className="absolute inset-0"
|
|
934
|
+
pointerEvents="none"
|
|
935
|
+
style={
|
|
936
|
+
[
|
|
937
|
+
{
|
|
938
|
+
"opacity": 0,
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"backgroundColor": "rgba(0, 0, 0, 1)",
|
|
942
|
+
},
|
|
943
|
+
]
|
|
944
|
+
}
|
|
945
|
+
/>
|
|
946
|
+
<View
|
|
947
|
+
className="relative flex-row items-center justify-center border-none grow-0 bg-f0-background-accent-bold h-8 rounded gap-1 px-2 sm:px-3 lg:px-4"
|
|
948
|
+
>
|
|
949
|
+
<View
|
|
950
|
+
className="opacity-100"
|
|
951
|
+
testID="f0-button-content"
|
|
952
|
+
>
|
|
953
|
+
<View
|
|
954
|
+
className="flex-row items-center justify-center gap-1"
|
|
955
|
+
>
|
|
956
|
+
<Text
|
|
957
|
+
className="no-underline normal-case tracking-normal text-[16px] leading-[24px] font-medium text-f0-foreground-inverse text-left"
|
|
958
|
+
>
|
|
959
|
+
Test Button
|
|
960
|
+
</Text>
|
|
961
|
+
</View>
|
|
962
|
+
</View>
|
|
963
|
+
</View>
|
|
964
|
+
</View>
|
|
965
|
+
</View>
|
|
966
|
+
`;
|