@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.
Files changed (71) hide show
  1. package/README.md +7 -5
  2. package/lib/module/components/Badge/index.js +1 -1
  3. package/lib/module/components/Badge/index.js.map +1 -1
  4. package/lib/module/components/Button/index.js +1 -1
  5. package/lib/module/components/Button/index.js.map +1 -1
  6. package/lib/module/components/F0Badge/F0Badge.js +2 -0
  7. package/lib/module/components/F0Badge/F0Badge.js.map +1 -0
  8. package/lib/module/components/F0Badge/F0Badge.md +67 -0
  9. package/lib/module/components/F0Badge/F0Badge.styles.js +2 -0
  10. package/lib/module/components/F0Badge/F0Badge.styles.js.map +1 -0
  11. package/lib/module/components/F0Badge/F0Badge.types.js +2 -0
  12. package/lib/module/components/F0Badge/F0Badge.types.js.map +1 -0
  13. package/lib/module/components/F0Badge/index.js +2 -0
  14. package/lib/module/components/F0Badge/index.js.map +1 -0
  15. package/lib/module/components/F0Button/F0Button.js +2 -0
  16. package/lib/module/components/F0Button/F0Button.js.map +1 -0
  17. package/lib/module/components/F0Button/F0Button.md +163 -0
  18. package/lib/module/components/F0Button/F0Button.styles.js +2 -0
  19. package/lib/module/components/F0Button/F0Button.styles.js.map +1 -0
  20. package/lib/module/components/F0Button/F0Button.types.js +2 -0
  21. package/lib/module/components/F0Button/F0Button.types.js.map +1 -0
  22. package/lib/module/components/F0Button/index.js +2 -0
  23. package/lib/module/components/F0Button/index.js.map +1 -0
  24. package/lib/module/components/Icon/index.js.map +1 -1
  25. package/lib/module/components/exports.js +1 -1
  26. package/lib/module/components/exports.js.map +1 -1
  27. package/lib/typescript/components/Badge/index.d.ts +28 -54
  28. package/lib/typescript/components/Badge/index.d.ts.map +1 -1
  29. package/lib/typescript/components/Button/index.d.ts +18 -0
  30. package/lib/typescript/components/Button/index.d.ts.map +1 -1
  31. package/lib/typescript/components/F0Badge/F0Badge.d.ts +5 -0
  32. package/lib/typescript/components/F0Badge/F0Badge.d.ts.map +1 -0
  33. package/lib/typescript/components/F0Badge/F0Badge.styles.d.ts +57 -0
  34. package/lib/typescript/components/F0Badge/F0Badge.styles.d.ts.map +1 -0
  35. package/lib/typescript/components/F0Badge/F0Badge.types.d.ts +19 -0
  36. package/lib/typescript/components/F0Badge/F0Badge.types.d.ts.map +1 -0
  37. package/lib/typescript/components/F0Badge/index.d.ts +4 -0
  38. package/lib/typescript/components/F0Badge/index.d.ts.map +1 -0
  39. package/lib/typescript/components/F0Button/F0Button.d.ts +6 -0
  40. package/lib/typescript/components/F0Button/F0Button.d.ts.map +1 -0
  41. package/lib/typescript/components/F0Button/F0Button.styles.d.ts +161 -0
  42. package/lib/typescript/components/F0Button/F0Button.styles.d.ts.map +1 -0
  43. package/lib/typescript/components/F0Button/F0Button.types.d.ts +47 -0
  44. package/lib/typescript/components/F0Button/F0Button.types.d.ts.map +1 -0
  45. package/lib/typescript/components/F0Button/index.d.ts +4 -0
  46. package/lib/typescript/components/F0Button/index.d.ts.map +1 -0
  47. package/lib/typescript/components/Icon/index.d.ts +5 -0
  48. package/lib/typescript/components/Icon/index.d.ts.map +1 -1
  49. package/lib/typescript/components/exports.d.ts +2 -0
  50. package/lib/typescript/components/exports.d.ts.map +1 -1
  51. package/package.json +1 -1
  52. package/src/components/Badge/__tests__/index.spec.tsx +29 -0
  53. package/src/components/Badge/index.tsx +38 -40
  54. package/src/components/Button/__snapshots__/index.spec.tsx.snap +11 -11
  55. package/src/components/Button/index.tsx +22 -2
  56. package/src/components/F0Badge/F0Badge.md +67 -0
  57. package/src/components/F0Badge/F0Badge.styles.ts +28 -0
  58. package/src/components/F0Badge/F0Badge.tsx +24 -0
  59. package/src/components/F0Badge/F0Badge.types.ts +34 -0
  60. package/src/components/F0Badge/__tests__/F0Badge.spec.tsx +63 -0
  61. package/src/components/F0Badge/__tests__/__snapshots__/F0Badge.spec.tsx.snap +651 -0
  62. package/src/components/F0Badge/index.ts +7 -0
  63. package/src/components/F0Button/F0Button.md +163 -0
  64. package/src/components/F0Button/F0Button.styles.ts +141 -0
  65. package/src/components/F0Button/F0Button.tsx +228 -0
  66. package/src/components/F0Button/F0Button.types.ts +82 -0
  67. package/src/components/F0Button/__tests__/F0Button.spec.tsx +285 -0
  68. package/src/components/F0Button/__tests__/__snapshots__/F0Button.spec.tsx.snap +966 -0
  69. package/src/components/F0Button/index.ts +7 -0
  70. package/src/components/Icon/index.tsx +5 -0
  71. package/src/components/exports.ts +2 -0
@@ -0,0 +1,651 @@
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
+
3
+ exports[`F0Badge Snapshot - all sizes 1`] = `
4
+ <RNSVGSvgView
5
+ align="xMidYMid"
6
+ bbHeight="100%"
7
+ bbWidth="100%"
8
+ className="stroke-xs flex shrink-0 items-center justify-center rounded-full bg-transparent text-f0-icon h-2.5 w-2.5"
9
+ fill="none"
10
+ focusable={false}
11
+ meetOrSlice={0}
12
+ minX={0}
13
+ minY={0}
14
+ style={
15
+ [
16
+ {
17
+ "backgroundColor": "transparent",
18
+ "borderWidth": 0,
19
+ },
20
+ [
21
+ {},
22
+ ],
23
+ {
24
+ "flex": 0,
25
+ "height": "100%",
26
+ "width": "100%",
27
+ },
28
+ ]
29
+ }
30
+ vbHeight={24}
31
+ vbWidth={24}
32
+ >
33
+ <RNSVGGroup
34
+ fill={null}
35
+ propList={
36
+ [
37
+ "fill",
38
+ ]
39
+ }
40
+ >
41
+ <RNSVGPath
42
+ d="M12 5v14M12 12H5h14"
43
+ fill={
44
+ {
45
+ "payload": 4278190080,
46
+ "type": 0,
47
+ }
48
+ }
49
+ propList={
50
+ [
51
+ "stroke",
52
+ "strokeLinecap",
53
+ "strokeLinejoin",
54
+ ]
55
+ }
56
+ stroke={
57
+ {
58
+ "type": 2,
59
+ }
60
+ }
61
+ strokeLinecap={1}
62
+ strokeLinejoin={1}
63
+ />
64
+ </RNSVGGroup>
65
+ </RNSVGSvgView>
66
+ `;
67
+
68
+ exports[`F0Badge Snapshot - all sizes 2`] = `
69
+ <RNSVGSvgView
70
+ align="xMidYMid"
71
+ bbHeight="100%"
72
+ bbWidth="100%"
73
+ className="stroke-xs flex shrink-0 items-center justify-center rounded-full bg-transparent text-f0-icon h-3 w-3"
74
+ fill="none"
75
+ focusable={false}
76
+ meetOrSlice={0}
77
+ minX={0}
78
+ minY={0}
79
+ style={
80
+ [
81
+ {
82
+ "backgroundColor": "transparent",
83
+ "borderWidth": 0,
84
+ },
85
+ [
86
+ {},
87
+ ],
88
+ {
89
+ "flex": 0,
90
+ "height": "100%",
91
+ "width": "100%",
92
+ },
93
+ ]
94
+ }
95
+ vbHeight={24}
96
+ vbWidth={24}
97
+ >
98
+ <RNSVGGroup
99
+ fill={null}
100
+ propList={
101
+ [
102
+ "fill",
103
+ ]
104
+ }
105
+ >
106
+ <RNSVGPath
107
+ d="M12 5v14M12 12H5h14"
108
+ fill={
109
+ {
110
+ "payload": 4278190080,
111
+ "type": 0,
112
+ }
113
+ }
114
+ propList={
115
+ [
116
+ "stroke",
117
+ "strokeLinecap",
118
+ "strokeLinejoin",
119
+ ]
120
+ }
121
+ stroke={
122
+ {
123
+ "type": 2,
124
+ }
125
+ }
126
+ strokeLinecap={1}
127
+ strokeLinejoin={1}
128
+ />
129
+ </RNSVGGroup>
130
+ </RNSVGSvgView>
131
+ `;
132
+
133
+ exports[`F0Badge Snapshot - all sizes 3`] = `
134
+ <RNSVGSvgView
135
+ align="xMidYMid"
136
+ bbHeight="100%"
137
+ bbWidth="100%"
138
+ className="stroke-sm flex shrink-0 items-center justify-center rounded-full bg-transparent text-f0-icon h-5 w-5"
139
+ fill="none"
140
+ focusable={false}
141
+ meetOrSlice={0}
142
+ minX={0}
143
+ minY={0}
144
+ style={
145
+ [
146
+ {
147
+ "backgroundColor": "transparent",
148
+ "borderWidth": 0,
149
+ },
150
+ [
151
+ {},
152
+ ],
153
+ {
154
+ "flex": 0,
155
+ "height": "100%",
156
+ "width": "100%",
157
+ },
158
+ ]
159
+ }
160
+ vbHeight={24}
161
+ vbWidth={24}
162
+ >
163
+ <RNSVGGroup
164
+ fill={null}
165
+ propList={
166
+ [
167
+ "fill",
168
+ ]
169
+ }
170
+ >
171
+ <RNSVGPath
172
+ d="M12 5v14M12 12H5h14"
173
+ fill={
174
+ {
175
+ "payload": 4278190080,
176
+ "type": 0,
177
+ }
178
+ }
179
+ propList={
180
+ [
181
+ "stroke",
182
+ "strokeLinecap",
183
+ "strokeLinejoin",
184
+ ]
185
+ }
186
+ stroke={
187
+ {
188
+ "type": 2,
189
+ }
190
+ }
191
+ strokeLinecap={1}
192
+ strokeLinejoin={1}
193
+ />
194
+ </RNSVGGroup>
195
+ </RNSVGSvgView>
196
+ `;
197
+
198
+ exports[`F0Badge Snapshot - all sizes 4`] = `
199
+ <RNSVGSvgView
200
+ align="xMidYMid"
201
+ bbHeight="100%"
202
+ bbWidth="100%"
203
+ className="stroke-md flex shrink-0 items-center justify-center rounded-full bg-transparent text-f0-icon h-6 w-6"
204
+ fill="none"
205
+ focusable={false}
206
+ meetOrSlice={0}
207
+ minX={0}
208
+ minY={0}
209
+ style={
210
+ [
211
+ {
212
+ "backgroundColor": "transparent",
213
+ "borderWidth": 0,
214
+ },
215
+ [
216
+ {},
217
+ ],
218
+ {
219
+ "flex": 0,
220
+ "height": "100%",
221
+ "width": "100%",
222
+ },
223
+ ]
224
+ }
225
+ vbHeight={24}
226
+ vbWidth={24}
227
+ >
228
+ <RNSVGGroup
229
+ fill={null}
230
+ propList={
231
+ [
232
+ "fill",
233
+ ]
234
+ }
235
+ >
236
+ <RNSVGPath
237
+ d="M12 5v14M12 12H5h14"
238
+ fill={
239
+ {
240
+ "payload": 4278190080,
241
+ "type": 0,
242
+ }
243
+ }
244
+ propList={
245
+ [
246
+ "stroke",
247
+ "strokeLinecap",
248
+ "strokeLinejoin",
249
+ ]
250
+ }
251
+ stroke={
252
+ {
253
+ "type": 2,
254
+ }
255
+ }
256
+ strokeLinecap={1}
257
+ strokeLinejoin={1}
258
+ />
259
+ </RNSVGGroup>
260
+ </RNSVGSvgView>
261
+ `;
262
+
263
+ exports[`F0Badge Snapshot - all variants 1`] = `
264
+ <RNSVGSvgView
265
+ align="xMidYMid"
266
+ bbHeight="100%"
267
+ bbWidth="100%"
268
+ className="stroke-sm flex shrink-0 items-center justify-center rounded-full bg-transparent text-f0-icon h-5 w-5"
269
+ fill="none"
270
+ focusable={false}
271
+ meetOrSlice={0}
272
+ minX={0}
273
+ minY={0}
274
+ style={
275
+ [
276
+ {
277
+ "backgroundColor": "transparent",
278
+ "borderWidth": 0,
279
+ },
280
+ [
281
+ {},
282
+ ],
283
+ {
284
+ "flex": 0,
285
+ "height": "100%",
286
+ "width": "100%",
287
+ },
288
+ ]
289
+ }
290
+ vbHeight={24}
291
+ vbWidth={24}
292
+ >
293
+ <RNSVGGroup
294
+ fill={null}
295
+ propList={
296
+ [
297
+ "fill",
298
+ ]
299
+ }
300
+ >
301
+ <RNSVGPath
302
+ d="M12 5v14M12 12H5h14"
303
+ fill={
304
+ {
305
+ "payload": 4278190080,
306
+ "type": 0,
307
+ }
308
+ }
309
+ propList={
310
+ [
311
+ "stroke",
312
+ "strokeLinecap",
313
+ "strokeLinejoin",
314
+ ]
315
+ }
316
+ stroke={
317
+ {
318
+ "type": 2,
319
+ }
320
+ }
321
+ strokeLinecap={1}
322
+ strokeLinejoin={1}
323
+ />
324
+ </RNSVGGroup>
325
+ </RNSVGSvgView>
326
+ `;
327
+
328
+ exports[`F0Badge Snapshot - all variants 2`] = `
329
+ <RNSVGSvgView
330
+ align="xMidYMid"
331
+ bbHeight="100%"
332
+ bbWidth="100%"
333
+ className="stroke-sm flex shrink-0 items-center justify-center rounded-full text-f0-special-highlight h-5 w-5"
334
+ fill="none"
335
+ focusable={false}
336
+ meetOrSlice={0}
337
+ minX={0}
338
+ minY={0}
339
+ style={
340
+ [
341
+ {
342
+ "backgroundColor": "transparent",
343
+ "borderWidth": 0,
344
+ },
345
+ [
346
+ {},
347
+ ],
348
+ {
349
+ "flex": 0,
350
+ "height": "100%",
351
+ "width": "100%",
352
+ },
353
+ ]
354
+ }
355
+ vbHeight={24}
356
+ vbWidth={24}
357
+ >
358
+ <RNSVGGroup
359
+ fill={null}
360
+ propList={
361
+ [
362
+ "fill",
363
+ ]
364
+ }
365
+ >
366
+ <RNSVGPath
367
+ d="M12 5v14M12 12H5h14"
368
+ fill={
369
+ {
370
+ "payload": 4278190080,
371
+ "type": 0,
372
+ }
373
+ }
374
+ propList={
375
+ [
376
+ "stroke",
377
+ "strokeLinecap",
378
+ "strokeLinejoin",
379
+ ]
380
+ }
381
+ stroke={
382
+ {
383
+ "type": 2,
384
+ }
385
+ }
386
+ strokeLinecap={1}
387
+ strokeLinejoin={1}
388
+ />
389
+ </RNSVGGroup>
390
+ </RNSVGSvgView>
391
+ `;
392
+
393
+ exports[`F0Badge Snapshot - all variants 3`] = `
394
+ <RNSVGSvgView
395
+ align="xMidYMid"
396
+ bbHeight="100%"
397
+ bbWidth="100%"
398
+ className="stroke-sm flex shrink-0 items-center justify-center rounded-full bg-f0-background-positive-bold text-f0-foreground-inverse h-5 w-5"
399
+ fill="none"
400
+ focusable={false}
401
+ meetOrSlice={0}
402
+ minX={0}
403
+ minY={0}
404
+ style={
405
+ [
406
+ {
407
+ "backgroundColor": "transparent",
408
+ "borderWidth": 0,
409
+ },
410
+ [
411
+ {},
412
+ ],
413
+ {
414
+ "flex": 0,
415
+ "height": "100%",
416
+ "width": "100%",
417
+ },
418
+ ]
419
+ }
420
+ vbHeight={24}
421
+ vbWidth={24}
422
+ >
423
+ <RNSVGGroup
424
+ fill={null}
425
+ propList={
426
+ [
427
+ "fill",
428
+ ]
429
+ }
430
+ >
431
+ <RNSVGPath
432
+ d="M12 5v14M12 12H5h14"
433
+ fill={
434
+ {
435
+ "payload": 4278190080,
436
+ "type": 0,
437
+ }
438
+ }
439
+ propList={
440
+ [
441
+ "stroke",
442
+ "strokeLinecap",
443
+ "strokeLinejoin",
444
+ ]
445
+ }
446
+ stroke={
447
+ {
448
+ "type": 2,
449
+ }
450
+ }
451
+ strokeLinecap={1}
452
+ strokeLinejoin={1}
453
+ />
454
+ </RNSVGGroup>
455
+ </RNSVGSvgView>
456
+ `;
457
+
458
+ exports[`F0Badge Snapshot - all variants 4`] = `
459
+ <RNSVGSvgView
460
+ align="xMidYMid"
461
+ bbHeight="100%"
462
+ bbWidth="100%"
463
+ className="stroke-sm flex shrink-0 items-center justify-center rounded-full bg-f0-icon-critical text-f0-foreground-inverse h-5 w-5"
464
+ fill="none"
465
+ focusable={false}
466
+ meetOrSlice={0}
467
+ minX={0}
468
+ minY={0}
469
+ style={
470
+ [
471
+ {
472
+ "backgroundColor": "transparent",
473
+ "borderWidth": 0,
474
+ },
475
+ [
476
+ {},
477
+ ],
478
+ {
479
+ "flex": 0,
480
+ "height": "100%",
481
+ "width": "100%",
482
+ },
483
+ ]
484
+ }
485
+ vbHeight={24}
486
+ vbWidth={24}
487
+ >
488
+ <RNSVGGroup
489
+ fill={null}
490
+ propList={
491
+ [
492
+ "fill",
493
+ ]
494
+ }
495
+ >
496
+ <RNSVGPath
497
+ d="M12 5v14M12 12H5h14"
498
+ fill={
499
+ {
500
+ "payload": 4278190080,
501
+ "type": 0,
502
+ }
503
+ }
504
+ propList={
505
+ [
506
+ "stroke",
507
+ "strokeLinecap",
508
+ "strokeLinejoin",
509
+ ]
510
+ }
511
+ stroke={
512
+ {
513
+ "type": 2,
514
+ }
515
+ }
516
+ strokeLinecap={1}
517
+ strokeLinejoin={1}
518
+ />
519
+ </RNSVGGroup>
520
+ </RNSVGSvgView>
521
+ `;
522
+
523
+ exports[`F0Badge Snapshot - all variants 5`] = `
524
+ <RNSVGSvgView
525
+ align="xMidYMid"
526
+ bbHeight="100%"
527
+ bbWidth="100%"
528
+ className="stroke-sm flex shrink-0 items-center justify-center rounded-full bg-f0-background-warning-bold text-f0-foreground-inverse h-5 w-5"
529
+ fill="none"
530
+ focusable={false}
531
+ meetOrSlice={0}
532
+ minX={0}
533
+ minY={0}
534
+ style={
535
+ [
536
+ {
537
+ "backgroundColor": "transparent",
538
+ "borderWidth": 0,
539
+ },
540
+ [
541
+ {},
542
+ ],
543
+ {
544
+ "flex": 0,
545
+ "height": "100%",
546
+ "width": "100%",
547
+ },
548
+ ]
549
+ }
550
+ vbHeight={24}
551
+ vbWidth={24}
552
+ >
553
+ <RNSVGGroup
554
+ fill={null}
555
+ propList={
556
+ [
557
+ "fill",
558
+ ]
559
+ }
560
+ >
561
+ <RNSVGPath
562
+ d="M12 5v14M12 12H5h14"
563
+ fill={
564
+ {
565
+ "payload": 4278190080,
566
+ "type": 0,
567
+ }
568
+ }
569
+ propList={
570
+ [
571
+ "stroke",
572
+ "strokeLinecap",
573
+ "strokeLinejoin",
574
+ ]
575
+ }
576
+ stroke={
577
+ {
578
+ "type": 2,
579
+ }
580
+ }
581
+ strokeLinecap={1}
582
+ strokeLinejoin={1}
583
+ />
584
+ </RNSVGGroup>
585
+ </RNSVGSvgView>
586
+ `;
587
+
588
+ exports[`F0Badge Snapshot - default 1`] = `
589
+ <RNSVGSvgView
590
+ align="xMidYMid"
591
+ bbHeight="100%"
592
+ bbWidth="100%"
593
+ className="stroke-sm flex shrink-0 items-center justify-center rounded-full bg-transparent text-f0-icon h-5 w-5"
594
+ fill="none"
595
+ focusable={false}
596
+ meetOrSlice={0}
597
+ minX={0}
598
+ minY={0}
599
+ style={
600
+ [
601
+ {
602
+ "backgroundColor": "transparent",
603
+ "borderWidth": 0,
604
+ },
605
+ [
606
+ {},
607
+ ],
608
+ {
609
+ "flex": 0,
610
+ "height": "100%",
611
+ "width": "100%",
612
+ },
613
+ ]
614
+ }
615
+ vbHeight={24}
616
+ vbWidth={24}
617
+ >
618
+ <RNSVGGroup
619
+ fill={null}
620
+ propList={
621
+ [
622
+ "fill",
623
+ ]
624
+ }
625
+ >
626
+ <RNSVGPath
627
+ d="M12 5v14M12 12H5h14"
628
+ fill={
629
+ {
630
+ "payload": 4278190080,
631
+ "type": 0,
632
+ }
633
+ }
634
+ propList={
635
+ [
636
+ "stroke",
637
+ "strokeLinecap",
638
+ "strokeLinejoin",
639
+ ]
640
+ }
641
+ stroke={
642
+ {
643
+ "type": 2,
644
+ }
645
+ }
646
+ strokeLinecap={1}
647
+ strokeLinejoin={1}
648
+ />
649
+ </RNSVGGroup>
650
+ </RNSVGSvgView>
651
+ `;
@@ -0,0 +1,7 @@
1
+ export { F0Badge } from "./F0Badge"
2
+ export {
3
+ F0_BADGE_SIZES,
4
+ F0_BADGE_VARIANTS,
5
+ F0_BADGE_ICON_SIZES,
6
+ } from "./F0Badge.types"
7
+ export type { F0BadgeProps, F0BadgeSize, F0BadgeVariant } from "./F0Badge.types"