@hero-design/rn 8.103.7 → 8.104.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 (29) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +12 -0
  3. package/es/index.js +215 -18
  4. package/lib/index.js +215 -17
  5. package/package.json +1 -1
  6. package/src/components/FilterTrigger/StyledFilterTrigger.tsx +104 -0
  7. package/src/components/FilterTrigger/__tests__/__snapshots__/index.spec.tsx.snap +637 -0
  8. package/src/components/FilterTrigger/__tests__/index.spec.tsx +161 -0
  9. package/src/components/FilterTrigger/index.tsx +106 -0
  10. package/src/components/Icon/HeroIcon/index.tsx +3 -1
  11. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +45 -0
  12. package/src/components/Icon/__tests__/index.spec.tsx +1 -0
  13. package/src/components/Icon/index.tsx +2 -1
  14. package/src/components/Toolbar/StyledToolbar.tsx +0 -1
  15. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarMessage.spec.tsx.snap +0 -4
  16. package/src/index.ts +2 -0
  17. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +71 -0
  18. package/src/theme/components/filterTrigger.ts +88 -0
  19. package/src/theme/components/icon.ts +1 -0
  20. package/src/theme/getTheme.ts +3 -0
  21. package/stats/8.104.0/rn-stats.html +4844 -0
  22. package/types/components/FilterTrigger/StyledFilterTrigger.d.ts +20 -0
  23. package/types/components/FilterTrigger/index.d.ts +39 -0
  24. package/types/components/Icon/HeroIcon/index.d.ts +1 -1
  25. package/types/components/Icon/index.d.ts +1 -1
  26. package/types/index.d.ts +2 -1
  27. package/types/theme/components/filterTrigger.d.ts +72 -0
  28. package/types/theme/components/icon.d.ts +1 -0
  29. package/types/theme/getTheme.d.ts +2 -0
@@ -0,0 +1,637 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`FilterTrigger Rendering should render correctly when active is false 1`] = `
4
+ <View
5
+ style={
6
+ {
7
+ "flex": 1,
8
+ }
9
+ }
10
+ >
11
+ <View
12
+ accessibilityState={
13
+ {
14
+ "busy": undefined,
15
+ "checked": undefined,
16
+ "disabled": undefined,
17
+ "expanded": undefined,
18
+ "selected": undefined,
19
+ }
20
+ }
21
+ accessibilityValue={
22
+ {
23
+ "max": undefined,
24
+ "min": undefined,
25
+ "now": undefined,
26
+ "text": undefined,
27
+ }
28
+ }
29
+ accessible={true}
30
+ collapsable={false}
31
+ focusable={true}
32
+ onClick={[Function]}
33
+ onResponderGrant={[Function]}
34
+ onResponderMove={[Function]}
35
+ onResponderRelease={[Function]}
36
+ onResponderTerminate={[Function]}
37
+ onResponderTerminationRequest={[Function]}
38
+ onStartShouldSetResponder={[Function]}
39
+ style={
40
+ {
41
+ "alignItems": "center",
42
+ "alignSelf": "flex-start",
43
+ "backgroundColor": "#ece8ef",
44
+ "borderColor": "#ece8ef",
45
+ "borderRadius": 24,
46
+ "borderWidth": 2,
47
+ "flexDirection": "row",
48
+ "gap": 4,
49
+ "height": 36,
50
+ "justifyContent": "center",
51
+ "opacity": 1,
52
+ "paddingHorizontal": 12,
53
+ "paddingVertical": 4,
54
+ "position": "relative",
55
+ }
56
+ }
57
+ >
58
+ <Text
59
+ allowFontScaling={false}
60
+ style={
61
+ [
62
+ {
63
+ "color": "#001f23",
64
+ "fontFamily": "BeVietnamPro-SemiBold",
65
+ "fontSize": 14,
66
+ "letterSpacing": 0.24,
67
+ "lineHeight": 22,
68
+ },
69
+ [
70
+ {
71
+ "includeFontPadding": false,
72
+ "lineHeight": 16,
73
+ "textAlignVertical": "center",
74
+ },
75
+ undefined,
76
+ ],
77
+ ]
78
+ }
79
+ themeIntent="body"
80
+ themeTypeface="neutral"
81
+ themeVariant="small-bold"
82
+ >
83
+ Filter
84
+ </Text>
85
+ </View>
86
+ <View
87
+ pointerEvents="box-none"
88
+ position="bottom"
89
+ style={
90
+ [
91
+ {
92
+ "bottom": 0,
93
+ "elevation": 9999,
94
+ "flexDirection": "column-reverse",
95
+ "left": 0,
96
+ "paddingHorizontal": 24,
97
+ "paddingVertical": 16,
98
+ "position": "absolute",
99
+ "right": 0,
100
+ "top": 0,
101
+ },
102
+ undefined,
103
+ ]
104
+ }
105
+ />
106
+ </View>
107
+ `;
108
+
109
+ exports[`FilterTrigger Rendering should render correctly when active is true 1`] = `
110
+ <View
111
+ style={
112
+ {
113
+ "flex": 1,
114
+ }
115
+ }
116
+ >
117
+ <View
118
+ accessibilityState={
119
+ {
120
+ "busy": undefined,
121
+ "checked": undefined,
122
+ "disabled": undefined,
123
+ "expanded": undefined,
124
+ "selected": undefined,
125
+ }
126
+ }
127
+ accessibilityValue={
128
+ {
129
+ "max": undefined,
130
+ "min": undefined,
131
+ "now": undefined,
132
+ "text": undefined,
133
+ }
134
+ }
135
+ accessible={true}
136
+ collapsable={false}
137
+ focusable={true}
138
+ onClick={[Function]}
139
+ onResponderGrant={[Function]}
140
+ onResponderMove={[Function]}
141
+ onResponderRelease={[Function]}
142
+ onResponderTerminate={[Function]}
143
+ onResponderTerminationRequest={[Function]}
144
+ onStartShouldSetResponder={[Function]}
145
+ style={
146
+ {
147
+ "alignItems": "center",
148
+ "alignSelf": "flex-start",
149
+ "backgroundColor": "#ece8ef",
150
+ "borderColor": "#ece8ef",
151
+ "borderRadius": 24,
152
+ "borderWidth": 2,
153
+ "flexDirection": "row",
154
+ "gap": 4,
155
+ "height": 36,
156
+ "justifyContent": "center",
157
+ "opacity": 1,
158
+ "paddingHorizontal": 12,
159
+ "paddingVertical": 4,
160
+ "position": "relative",
161
+ }
162
+ }
163
+ >
164
+ <Text
165
+ allowFontScaling={false}
166
+ style={
167
+ [
168
+ {
169
+ "color": "#001f23",
170
+ "fontFamily": "BeVietnamPro-SemiBold",
171
+ "fontSize": 14,
172
+ "letterSpacing": 0.24,
173
+ "lineHeight": 22,
174
+ },
175
+ [
176
+ {
177
+ "includeFontPadding": false,
178
+ "lineHeight": 16,
179
+ "textAlignVertical": "center",
180
+ },
181
+ undefined,
182
+ ],
183
+ ]
184
+ }
185
+ themeIntent="body"
186
+ themeTypeface="neutral"
187
+ themeVariant="small-bold"
188
+ >
189
+ Filter
190
+ </Text>
191
+ </View>
192
+ <View
193
+ pointerEvents="box-none"
194
+ position="bottom"
195
+ style={
196
+ [
197
+ {
198
+ "bottom": 0,
199
+ "elevation": 9999,
200
+ "flexDirection": "column-reverse",
201
+ "left": 0,
202
+ "paddingHorizontal": 24,
203
+ "paddingVertical": 16,
204
+ "position": "absolute",
205
+ "right": 0,
206
+ "top": 0,
207
+ },
208
+ undefined,
209
+ ]
210
+ }
211
+ />
212
+ </View>
213
+ `;
214
+
215
+ exports[`FilterTrigger Rendering should render correctly with basic props 1`] = `
216
+ <View
217
+ style={
218
+ {
219
+ "flex": 1,
220
+ }
221
+ }
222
+ >
223
+ <View
224
+ accessibilityState={
225
+ {
226
+ "busy": undefined,
227
+ "checked": undefined,
228
+ "disabled": undefined,
229
+ "expanded": undefined,
230
+ "selected": undefined,
231
+ }
232
+ }
233
+ accessibilityValue={
234
+ {
235
+ "max": undefined,
236
+ "min": undefined,
237
+ "now": undefined,
238
+ "text": undefined,
239
+ }
240
+ }
241
+ accessible={true}
242
+ collapsable={false}
243
+ focusable={true}
244
+ onClick={[Function]}
245
+ onResponderGrant={[Function]}
246
+ onResponderMove={[Function]}
247
+ onResponderRelease={[Function]}
248
+ onResponderTerminate={[Function]}
249
+ onResponderTerminationRequest={[Function]}
250
+ onStartShouldSetResponder={[Function]}
251
+ style={
252
+ {
253
+ "alignItems": "center",
254
+ "alignSelf": "flex-start",
255
+ "backgroundColor": "#f6f6f7",
256
+ "borderColor": "#f6f6f7",
257
+ "borderRadius": 24,
258
+ "borderWidth": 2,
259
+ "flexDirection": "row",
260
+ "gap": 4,
261
+ "height": 36,
262
+ "justifyContent": "center",
263
+ "opacity": 1,
264
+ "paddingHorizontal": 12,
265
+ "paddingVertical": 4,
266
+ "position": "relative",
267
+ }
268
+ }
269
+ >
270
+ <Text
271
+ allowFontScaling={false}
272
+ style={
273
+ [
274
+ {
275
+ "color": "#001f23",
276
+ "fontFamily": "BeVietnamPro-Regular",
277
+ "fontSize": 14,
278
+ "letterSpacing": 0.48,
279
+ "lineHeight": 22,
280
+ },
281
+ [
282
+ {
283
+ "includeFontPadding": false,
284
+ "lineHeight": 16,
285
+ "textAlignVertical": "center",
286
+ },
287
+ undefined,
288
+ ],
289
+ ]
290
+ }
291
+ themeIntent="body"
292
+ themeTypeface="neutral"
293
+ themeVariant="small"
294
+ >
295
+ Filter
296
+ </Text>
297
+ </View>
298
+ <View
299
+ pointerEvents="box-none"
300
+ position="bottom"
301
+ style={
302
+ [
303
+ {
304
+ "bottom": 0,
305
+ "elevation": 9999,
306
+ "flexDirection": "column-reverse",
307
+ "left": 0,
308
+ "paddingHorizontal": 24,
309
+ "paddingVertical": 16,
310
+ "position": "absolute",
311
+ "right": 0,
312
+ "top": 0,
313
+ },
314
+ undefined,
315
+ ]
316
+ }
317
+ />
318
+ </View>
319
+ `;
320
+
321
+ exports[`FilterTrigger Rendering should render filled variant correctly 1`] = `
322
+ <View
323
+ style={
324
+ {
325
+ "flex": 1,
326
+ }
327
+ }
328
+ >
329
+ <View
330
+ accessibilityState={
331
+ {
332
+ "busy": undefined,
333
+ "checked": undefined,
334
+ "disabled": undefined,
335
+ "expanded": undefined,
336
+ "selected": undefined,
337
+ }
338
+ }
339
+ accessibilityValue={
340
+ {
341
+ "max": undefined,
342
+ "min": undefined,
343
+ "now": undefined,
344
+ "text": undefined,
345
+ }
346
+ }
347
+ accessible={true}
348
+ collapsable={false}
349
+ focusable={true}
350
+ onClick={[Function]}
351
+ onResponderGrant={[Function]}
352
+ onResponderMove={[Function]}
353
+ onResponderRelease={[Function]}
354
+ onResponderTerminate={[Function]}
355
+ onResponderTerminationRequest={[Function]}
356
+ onStartShouldSetResponder={[Function]}
357
+ style={
358
+ {
359
+ "alignItems": "center",
360
+ "alignSelf": "flex-start",
361
+ "backgroundColor": undefined,
362
+ "borderColor": undefined,
363
+ "borderRadius": 24,
364
+ "borderWidth": undefined,
365
+ "flexDirection": "row",
366
+ "gap": 4,
367
+ "height": 36,
368
+ "justifyContent": "center",
369
+ "opacity": 1,
370
+ "paddingHorizontal": 12,
371
+ "paddingVertical": 4,
372
+ "position": "relative",
373
+ }
374
+ }
375
+ >
376
+ <Text
377
+ allowFontScaling={false}
378
+ style={
379
+ [
380
+ {
381
+ "color": "#001f23",
382
+ "fontFamily": "BeVietnamPro-Regular",
383
+ "fontSize": 14,
384
+ "letterSpacing": 0.48,
385
+ "lineHeight": 22,
386
+ },
387
+ [
388
+ {
389
+ "includeFontPadding": false,
390
+ "lineHeight": 16,
391
+ "textAlignVertical": "center",
392
+ },
393
+ undefined,
394
+ ],
395
+ ]
396
+ }
397
+ themeIntent="body"
398
+ themeTypeface="neutral"
399
+ themeVariant="small"
400
+ >
401
+ Filter
402
+ </Text>
403
+ </View>
404
+ <View
405
+ pointerEvents="box-none"
406
+ position="bottom"
407
+ style={
408
+ [
409
+ {
410
+ "bottom": 0,
411
+ "elevation": 9999,
412
+ "flexDirection": "column-reverse",
413
+ "left": 0,
414
+ "paddingHorizontal": 24,
415
+ "paddingVertical": 16,
416
+ "position": "absolute",
417
+ "right": 0,
418
+ "top": 0,
419
+ },
420
+ undefined,
421
+ ]
422
+ }
423
+ />
424
+ </View>
425
+ `;
426
+
427
+ exports[`FilterTrigger Rendering should render ghost variant correctly 1`] = `
428
+ <View
429
+ style={
430
+ {
431
+ "flex": 1,
432
+ }
433
+ }
434
+ >
435
+ <View
436
+ accessibilityState={
437
+ {
438
+ "busy": undefined,
439
+ "checked": undefined,
440
+ "disabled": undefined,
441
+ "expanded": undefined,
442
+ "selected": undefined,
443
+ }
444
+ }
445
+ accessibilityValue={
446
+ {
447
+ "max": undefined,
448
+ "min": undefined,
449
+ "now": undefined,
450
+ "text": undefined,
451
+ }
452
+ }
453
+ accessible={true}
454
+ collapsable={false}
455
+ focusable={true}
456
+ onClick={[Function]}
457
+ onResponderGrant={[Function]}
458
+ onResponderMove={[Function]}
459
+ onResponderRelease={[Function]}
460
+ onResponderTerminate={[Function]}
461
+ onResponderTerminationRequest={[Function]}
462
+ onStartShouldSetResponder={[Function]}
463
+ style={
464
+ {
465
+ "alignItems": "center",
466
+ "alignSelf": "flex-start",
467
+ "backgroundColor": undefined,
468
+ "borderColor": undefined,
469
+ "borderRadius": 24,
470
+ "borderWidth": undefined,
471
+ "flexDirection": "row",
472
+ "gap": 4,
473
+ "height": 36,
474
+ "justifyContent": "center",
475
+ "opacity": 1,
476
+ "paddingHorizontal": 12,
477
+ "paddingVertical": 4,
478
+ "position": "relative",
479
+ }
480
+ }
481
+ >
482
+ <Text
483
+ allowFontScaling={false}
484
+ style={
485
+ [
486
+ {
487
+ "color": "#001f23",
488
+ "fontFamily": "BeVietnamPro-Regular",
489
+ "fontSize": 14,
490
+ "letterSpacing": 0.48,
491
+ "lineHeight": 22,
492
+ },
493
+ [
494
+ {
495
+ "includeFontPadding": false,
496
+ "lineHeight": 16,
497
+ "textAlignVertical": "center",
498
+ },
499
+ undefined,
500
+ ],
501
+ ]
502
+ }
503
+ themeIntent="body"
504
+ themeTypeface="neutral"
505
+ themeVariant="small"
506
+ >
507
+ Filter
508
+ </Text>
509
+ </View>
510
+ <View
511
+ pointerEvents="box-none"
512
+ position="bottom"
513
+ style={
514
+ [
515
+ {
516
+ "bottom": 0,
517
+ "elevation": 9999,
518
+ "flexDirection": "column-reverse",
519
+ "left": 0,
520
+ "paddingHorizontal": 24,
521
+ "paddingVertical": 16,
522
+ "position": "absolute",
523
+ "right": 0,
524
+ "top": 0,
525
+ },
526
+ undefined,
527
+ ]
528
+ }
529
+ />
530
+ </View>
531
+ `;
532
+
533
+ exports[`FilterTrigger Rendering should render outlined variant correctly 1`] = `
534
+ <View
535
+ style={
536
+ {
537
+ "flex": 1,
538
+ }
539
+ }
540
+ >
541
+ <View
542
+ accessibilityState={
543
+ {
544
+ "busy": undefined,
545
+ "checked": undefined,
546
+ "disabled": undefined,
547
+ "expanded": undefined,
548
+ "selected": undefined,
549
+ }
550
+ }
551
+ accessibilityValue={
552
+ {
553
+ "max": undefined,
554
+ "min": undefined,
555
+ "now": undefined,
556
+ "text": undefined,
557
+ }
558
+ }
559
+ accessible={true}
560
+ collapsable={false}
561
+ focusable={true}
562
+ onClick={[Function]}
563
+ onResponderGrant={[Function]}
564
+ onResponderMove={[Function]}
565
+ onResponderRelease={[Function]}
566
+ onResponderTerminate={[Function]}
567
+ onResponderTerminationRequest={[Function]}
568
+ onStartShouldSetResponder={[Function]}
569
+ style={
570
+ {
571
+ "alignItems": "center",
572
+ "alignSelf": "flex-start",
573
+ "backgroundColor": undefined,
574
+ "borderColor": undefined,
575
+ "borderRadius": 24,
576
+ "borderWidth": undefined,
577
+ "flexDirection": "row",
578
+ "gap": 4,
579
+ "height": 36,
580
+ "justifyContent": "center",
581
+ "opacity": 1,
582
+ "paddingHorizontal": 12,
583
+ "paddingVertical": 4,
584
+ "position": "relative",
585
+ }
586
+ }
587
+ >
588
+ <Text
589
+ allowFontScaling={false}
590
+ style={
591
+ [
592
+ {
593
+ "color": "#001f23",
594
+ "fontFamily": "BeVietnamPro-Regular",
595
+ "fontSize": 14,
596
+ "letterSpacing": 0.48,
597
+ "lineHeight": 22,
598
+ },
599
+ [
600
+ {
601
+ "includeFontPadding": false,
602
+ "lineHeight": 16,
603
+ "textAlignVertical": "center",
604
+ },
605
+ undefined,
606
+ ],
607
+ ]
608
+ }
609
+ themeIntent="body"
610
+ themeTypeface="neutral"
611
+ themeVariant="small"
612
+ >
613
+ Filter
614
+ </Text>
615
+ </View>
616
+ <View
617
+ pointerEvents="box-none"
618
+ position="bottom"
619
+ style={
620
+ [
621
+ {
622
+ "bottom": 0,
623
+ "elevation": 9999,
624
+ "flexDirection": "column-reverse",
625
+ "left": 0,
626
+ "paddingHorizontal": 24,
627
+ "paddingVertical": 16,
628
+ "position": "absolute",
629
+ "right": 0,
630
+ "top": 0,
631
+ },
632
+ undefined,
633
+ ]
634
+ }
635
+ />
636
+ </View>
637
+ `;