@hero-design/rn 8.71.0 → 8.72.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 (67) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +23 -0
  3. package/es/index.js +353 -208
  4. package/lib/index.js +353 -208
  5. package/package.json +1 -1
  6. package/src/components/Accordion/AccordionItem.tsx +1 -1
  7. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -8
  8. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  9. package/src/components/Badge/StyledBadge.tsx +17 -2
  10. package/src/components/Badge/__tests__/Badge.spec.tsx +15 -0
  11. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +187 -0
  12. package/src/components/Badge/index.tsx +20 -36
  13. package/src/components/Badge/types.ts +55 -0
  14. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +3 -3
  15. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  16. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +7 -7
  17. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +6 -6
  18. package/src/components/FAB/FAB.tsx +6 -1
  19. package/src/components/FAB/Pair/StyledFAB.tsx +19 -0
  20. package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +276 -0
  21. package/src/components/FAB/Pair/__tests__/index.spec.tsx +39 -0
  22. package/src/components/FAB/Pair/index.tsx +46 -0
  23. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +31 -14
  24. package/src/components/FAB/index.tsx +3 -1
  25. package/src/components/Progress/ProgressStep.tsx +3 -1
  26. package/src/components/Progress/StyledStep.tsx +13 -11
  27. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +215 -4
  28. package/src/components/Progress/__tests__/index.spec.js +16 -4
  29. package/src/components/Search/SearchOneLine.tsx +7 -1
  30. package/src/components/Search/SearchSuffixIcon.tsx +12 -1
  31. package/src/components/Search/SearchTwoLine.tsx +7 -1
  32. package/src/components/Search/StyledSearch.tsx +42 -16
  33. package/src/components/Search/__tests__/SearchOneLine.spec.tsx +30 -0
  34. package/src/components/Search/__tests__/SearchTwoLine.spec.tsx +15 -0
  35. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +166 -10
  36. package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +3 -0
  37. package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +182 -2
  38. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
  39. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -0
  40. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +6 -0
  41. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -0
  42. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +9 -0
  43. package/src/components/Toolbar/StyledToolbar.tsx +11 -0
  44. package/src/components/Toolbar/ToolbarItem.tsx +3 -3
  45. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +24 -4
  46. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +46 -9
  47. package/src/theme/components/badge.ts +10 -1
  48. package/src/theme/components/button.ts +2 -2
  49. package/src/theme/components/fab.ts +3 -0
  50. package/src/theme/components/search.ts +30 -5
  51. package/src/theme/components/switch.ts +2 -2
  52. package/src/theme/components/toolbar.ts +1 -1
  53. package/stats/8.72.0/rn-stats.html +4844 -0
  54. package/types/components/Badge/StyledBadge.d.ts +9 -1
  55. package/types/components/Badge/index.d.ts +3 -34
  56. package/types/components/Badge/types.d.ts +53 -0
  57. package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
  58. package/types/components/FAB/Pair/index.d.ts +16 -0
  59. package/types/components/FAB/index.d.ts +1 -0
  60. package/types/components/Progress/StyledStep.d.ts +2 -0
  61. package/types/components/Search/SearchOneLine.d.ts +5 -0
  62. package/types/components/Search/SearchTwoLine.d.ts +5 -0
  63. package/types/components/Search/StyledSearch.d.ts +7 -2
  64. package/types/components/Toolbar/StyledToolbar.d.ts +9 -2
  65. package/types/theme/components/badge.d.ts +8 -0
  66. package/types/theme/components/fab.d.ts +3 -0
  67. package/types/theme/components/search.d.ts +31 -5
@@ -31,13 +31,14 @@ exports[`SearchOneLine disabled renders correctly 1`] = `
31
31
  "borderWidth": 2,
32
32
  "flexDirection": "row",
33
33
  "height": 56,
34
- "paddingHorizontal": 8,
35
- "paddingVertical": 8,
34
+ "paddingHorizontal": 6,
35
+ "paddingVertical": 6,
36
36
  },
37
37
  undefined,
38
38
  ]
39
39
  }
40
40
  themeFocused={false}
41
+ themeVariant="basic"
41
42
  >
42
43
  <View
43
44
  style={
@@ -176,13 +177,14 @@ exports[`SearchOneLine filled renders correctly 1`] = `
176
177
  "borderWidth": 2,
177
178
  "flexDirection": "row",
178
179
  "height": 56,
179
- "paddingHorizontal": 8,
180
- "paddingVertical": 8,
180
+ "paddingHorizontal": 6,
181
+ "paddingVertical": 6,
181
182
  },
182
183
  undefined,
183
184
  ]
184
185
  }
185
186
  themeFocused={false}
187
+ themeVariant="basic"
186
188
  >
187
189
  <View
188
190
  style={
@@ -320,13 +322,14 @@ exports[`SearchOneLine idle renders correctly 1`] = `
320
322
  "borderWidth": 2,
321
323
  "flexDirection": "row",
322
324
  "height": 56,
323
- "paddingHorizontal": 8,
324
- "paddingVertical": 8,
325
+ "paddingHorizontal": 6,
326
+ "paddingVertical": 6,
325
327
  },
326
328
  undefined,
327
329
  ]
328
330
  }
329
331
  themeFocused={false}
332
+ themeVariant="basic"
330
333
  >
331
334
  <View
332
335
  style={
@@ -463,13 +466,14 @@ exports[`SearchOneLine idle renders custom affix correctly 1`] = `
463
466
  "borderWidth": 2,
464
467
  "flexDirection": "row",
465
468
  "height": 56,
466
- "paddingHorizontal": 8,
467
- "paddingVertical": 8,
469
+ "paddingHorizontal": 6,
470
+ "paddingVertical": 6,
468
471
  },
469
472
  undefined,
470
473
  ]
471
474
  }
472
475
  themeFocused={false}
476
+ themeVariant="basic"
473
477
  >
474
478
  <Text
475
479
  allowFontScaling={false}
@@ -561,6 +565,157 @@ exports[`SearchOneLine idle renders custom affix correctly 1`] = `
561
565
  </View>
562
566
  `;
563
567
 
568
+ exports[`SearchOneLine idle renders reserved variant correctly 1`] = `
569
+ <View
570
+ style={
571
+ {
572
+ "flex": 1,
573
+ }
574
+ }
575
+ >
576
+ <View
577
+ pointerEvents="auto"
578
+ style={
579
+ [
580
+ {
581
+ "width": "100%",
582
+ },
583
+ undefined,
584
+ ]
585
+ }
586
+ testID="idle-search-text-input"
587
+ >
588
+ <View
589
+ style={
590
+ [
591
+ {
592
+ "alignItems": "center",
593
+ "backgroundColor": "#ffffff",
594
+ "borderColor": "#e8e9ea",
595
+ "borderRadius": 999,
596
+ "borderWidth": 1,
597
+ "elevation": 3,
598
+ "flexDirection": "row",
599
+ "height": 56,
600
+ "paddingHorizontal": 7,
601
+ "paddingVertical": 7,
602
+ "shadowOffset": {
603
+ "height": 2,
604
+ "width": 0,
605
+ },
606
+ "shadowOpacity": 0.12,
607
+ "shadowRadius": 4,
608
+ },
609
+ undefined,
610
+ ]
611
+ }
612
+ themeFocused={false}
613
+ themeVariant="reversed"
614
+ >
615
+ <View
616
+ style={
617
+ [
618
+ {
619
+ "paddingHorizontal": 4,
620
+ },
621
+ undefined,
622
+ ]
623
+ }
624
+ >
625
+ <HeroIcon
626
+ name="search-outlined"
627
+ style={
628
+ [
629
+ {
630
+ "color": "#001f23",
631
+ "fontSize": 20,
632
+ },
633
+ undefined,
634
+ ]
635
+ }
636
+ testID="input-prefix"
637
+ themeIntent="text"
638
+ themeSize="small"
639
+ />
640
+ </View>
641
+ <TextInput
642
+ accessibilityState={
643
+ {
644
+ "disabled": false,
645
+ }
646
+ }
647
+ editable={true}
648
+ onBlur={[Function]}
649
+ onFocus={[Function]}
650
+ placeholder="Search"
651
+ style={
652
+ [
653
+ {
654
+ "alignSelf": "stretch",
655
+ "flexGrow": 1,
656
+ "flexShrink": 1,
657
+ "fontFamily": "BeVietnamPro-Regular",
658
+ "fontSize": 16,
659
+ "marginHorizontal": 8,
660
+ "paddingVertical": 0,
661
+ "textAlignVertical": "center",
662
+ },
663
+ undefined,
664
+ ]
665
+ }
666
+ testID="text-input"
667
+ />
668
+ <View
669
+ style={
670
+ [
671
+ {
672
+ "paddingHorizontal": 4,
673
+ },
674
+ undefined,
675
+ ]
676
+ }
677
+ >
678
+ <HeroIcon
679
+ name="adjustment"
680
+ style={
681
+ [
682
+ {
683
+ "color": "#001f23",
684
+ "fontSize": 20,
685
+ },
686
+ undefined,
687
+ ]
688
+ }
689
+ testID="input-suffix"
690
+ themeIntent="text"
691
+ themeSize="small"
692
+ />
693
+ </View>
694
+ </View>
695
+ </View>
696
+ <View
697
+ pointerEvents="box-none"
698
+ position="bottom"
699
+ style={
700
+ [
701
+ {
702
+ "bottom": 0,
703
+ "elevation": 9999,
704
+ "flexDirection": "column-reverse",
705
+ "left": 0,
706
+ "paddingHorizontal": 24,
707
+ "paddingVertical": 16,
708
+ "position": "absolute",
709
+ "right": 0,
710
+ "top": 0,
711
+ },
712
+ undefined,
713
+ ]
714
+ }
715
+ />
716
+ </View>
717
+ `;
718
+
564
719
  exports[`SearchOneLine readonly renders correctly 1`] = `
565
720
  <View
566
721
  style={
@@ -592,13 +747,14 @@ exports[`SearchOneLine readonly renders correctly 1`] = `
592
747
  "borderWidth": 2,
593
748
  "flexDirection": "row",
594
749
  "height": 56,
595
- "paddingHorizontal": 8,
596
- "paddingVertical": 8,
750
+ "paddingHorizontal": 6,
751
+ "paddingVertical": 6,
597
752
  },
598
753
  undefined,
599
754
  ]
600
755
  }
601
756
  themeFocused={false}
757
+ themeVariant="basic"
602
758
  >
603
759
  <View
604
760
  style={
@@ -30,7 +30,9 @@ exports[`SearchSuffixIcon renders correctly 1`] = `
30
30
  {
31
31
  "alignItems": "center",
32
32
  "backgroundColor": "#401960",
33
+ "borderColor": "#401960",
33
34
  "borderRadius": 999,
35
+ "borderWidth": 2,
34
36
  "height": 16,
35
37
  "justifyContent": "center",
36
38
  "minWidth": 16,
@@ -50,6 +52,7 @@ exports[`SearchSuffixIcon renders correctly 1`] = `
50
52
  themeIntent="primary"
51
53
  themePadding="narrowContent"
52
54
  themeSize="small"
55
+ themeVariant="filled"
53
56
  >
54
57
  <Text
55
58
  allowFontScaling={false}
@@ -29,13 +29,14 @@ exports[`SearchTwoLine renders correctly 1`] = `
29
29
  "borderWidth": 2,
30
30
  "flexDirection": "row",
31
31
  "height": 56,
32
- "paddingHorizontal": 8,
33
- "paddingVertical": 8,
32
+ "paddingHorizontal": 6,
33
+ "paddingVertical": 6,
34
34
  },
35
35
  undefined,
36
36
  ]
37
37
  }
38
38
  themeFocused={false}
39
+ themeVariant="basic"
39
40
  >
40
41
  <View
41
42
  style={
@@ -74,6 +75,185 @@ exports[`SearchTwoLine renders correctly 1`] = `
74
75
  "height": "100%",
75
76
  "justifyContent": "space-between",
76
77
  "marginHorizontal": 8,
78
+ "paddingVertical": 2,
79
+ },
80
+ undefined,
81
+ ]
82
+ }
83
+ >
84
+ <Text
85
+ allowFontScaling={false}
86
+ style={
87
+ [
88
+ {
89
+ "color": "#001f23",
90
+ "fontFamily": "BeVietnamPro-SemiBold",
91
+ "fontSize": 12,
92
+ "letterSpacing": 0.24,
93
+ "lineHeight": 16,
94
+ },
95
+ undefined,
96
+ ]
97
+ }
98
+ themeFontWeight="semi-bold"
99
+ themeIntent="body"
100
+ >
101
+ Find Work
102
+ </Text>
103
+ <Text
104
+ allowFontScaling={false}
105
+ style={
106
+ [
107
+ {
108
+ "color": "#001f23",
109
+ "fontFamily": "BeVietnamPro-Regular",
110
+ "fontSize": 12,
111
+ "letterSpacing": 0.36,
112
+ "lineHeight": 16,
113
+ },
114
+ undefined,
115
+ ]
116
+ }
117
+ themeFontWeight="regular"
118
+ themeIntent="body"
119
+ >
120
+ Anywhere
121
+ </Text>
122
+ </View>
123
+ <View
124
+ style={
125
+ [
126
+ {
127
+ "paddingHorizontal": 4,
128
+ },
129
+ undefined,
130
+ ]
131
+ }
132
+ >
133
+ <HeroIcon
134
+ name="adjustment"
135
+ style={
136
+ [
137
+ {
138
+ "color": "#001f23",
139
+ "fontSize": 20,
140
+ },
141
+ undefined,
142
+ ]
143
+ }
144
+ testID="input-suffix"
145
+ themeIntent="text"
146
+ themeSize="small"
147
+ />
148
+ </View>
149
+ </View>
150
+ </View>
151
+ <View
152
+ pointerEvents="box-none"
153
+ position="bottom"
154
+ style={
155
+ [
156
+ {
157
+ "bottom": 0,
158
+ "elevation": 9999,
159
+ "flexDirection": "column-reverse",
160
+ "left": 0,
161
+ "paddingHorizontal": 24,
162
+ "paddingVertical": 16,
163
+ "position": "absolute",
164
+ "right": 0,
165
+ "top": 0,
166
+ },
167
+ undefined,
168
+ ]
169
+ }
170
+ />
171
+ </View>
172
+ `;
173
+
174
+ exports[`SearchTwoLine renders reserved variant correctly 1`] = `
175
+ <View
176
+ style={
177
+ {
178
+ "flex": 1,
179
+ }
180
+ }
181
+ >
182
+ <View
183
+ style={
184
+ [
185
+ {
186
+ "width": "100%",
187
+ },
188
+ undefined,
189
+ ]
190
+ }
191
+ >
192
+ <View
193
+ style={
194
+ [
195
+ {
196
+ "alignItems": "center",
197
+ "backgroundColor": "#ffffff",
198
+ "borderColor": "#e8e9ea",
199
+ "borderRadius": 999,
200
+ "borderWidth": 1,
201
+ "elevation": 3,
202
+ "flexDirection": "row",
203
+ "height": 56,
204
+ "paddingHorizontal": 7,
205
+ "paddingVertical": 7,
206
+ "shadowOffset": {
207
+ "height": 2,
208
+ "width": 0,
209
+ },
210
+ "shadowOpacity": 0.12,
211
+ "shadowRadius": 4,
212
+ },
213
+ undefined,
214
+ ]
215
+ }
216
+ themeFocused={false}
217
+ themeVariant="reversed"
218
+ >
219
+ <View
220
+ style={
221
+ [
222
+ {
223
+ "paddingHorizontal": 4,
224
+ },
225
+ undefined,
226
+ ]
227
+ }
228
+ >
229
+ <HeroIcon
230
+ name="search-outlined"
231
+ style={
232
+ [
233
+ {
234
+ "color": "#001f23",
235
+ "fontSize": 20,
236
+ },
237
+ undefined,
238
+ ]
239
+ }
240
+ testID="input-prefix"
241
+ themeIntent="text"
242
+ themeSize="small"
243
+ />
244
+ </View>
245
+ <View
246
+ style={
247
+ [
248
+ {
249
+ "alignItems": "flex-start",
250
+ "display": "flex",
251
+ "flexDirection": "column",
252
+ "flexGrow": 1,
253
+ "height": "100%",
254
+ "justifyContent": "space-between",
255
+ "marginHorizontal": 8,
256
+ "paddingVertical": 2,
77
257
  },
78
258
  undefined,
79
259
  ]
@@ -150,7 +150,7 @@ exports[`StyledWrapper renders correct style with variant disabled-unchecked 1`]
150
150
  style={
151
151
  [
152
152
  {
153
- "backgroundColor": "#bfc1c5",
153
+ "backgroundColor": "#4d6265",
154
154
  "borderRadius": 999,
155
155
  "display": "flex",
156
156
  "height": 24,
@@ -693,7 +693,9 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
693
693
  {
694
694
  "alignItems": "center",
695
695
  "backgroundColor": "#355bfb",
696
+ "borderColor": "#355bfb",
696
697
  "borderRadius": 999,
698
+ "borderWidth": 2,
697
699
  "height": 24,
698
700
  "justifyContent": "center",
699
701
  "marginLeft": 4,
@@ -710,6 +712,7 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
710
712
  themeIntent="info"
711
713
  themePadding="wideContent"
712
714
  themeSize="medium"
715
+ themeVariant="filled"
713
716
  >
714
717
  <Text
715
718
  allowFontScaling={false}
@@ -1619,7 +1622,9 @@ exports[`Tabs.Scroll renders correctly 1`] = `
1619
1622
  {
1620
1623
  "alignItems": "center",
1621
1624
  "backgroundColor": "#355bfb",
1625
+ "borderColor": "#355bfb",
1622
1626
  "borderRadius": 999,
1627
+ "borderWidth": 2,
1623
1628
  "height": 24,
1624
1629
  "justifyContent": "center",
1625
1630
  "marginLeft": 4,
@@ -1636,6 +1641,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
1636
1641
  themeIntent="info"
1637
1642
  themePadding="wideContent"
1638
1643
  themeSize="medium"
1644
+ themeVariant="filled"
1639
1645
  >
1640
1646
  <Text
1641
1647
  allowFontScaling={false}
@@ -2545,7 +2551,9 @@ exports[`useIsFocused renders correctly 1`] = `
2545
2551
  {
2546
2552
  "alignItems": "center",
2547
2553
  "backgroundColor": "#355bfb",
2554
+ "borderColor": "#355bfb",
2548
2555
  "borderRadius": 999,
2556
+ "borderWidth": 2,
2549
2557
  "height": 24,
2550
2558
  "justifyContent": "center",
2551
2559
  "marginLeft": 4,
@@ -2562,6 +2570,7 @@ exports[`useIsFocused renders correctly 1`] = `
2562
2570
  themeIntent="info"
2563
2571
  themePadding="wideContent"
2564
2572
  themeSize="medium"
2573
+ themeVariant="filled"
2565
2574
  >
2566
2575
  <Text
2567
2576
  allowFontScaling={false}
@@ -588,7 +588,9 @@ exports[`ScrollableTabsHeader highlighted variant renders correctly 1`] = `
588
588
  {
589
589
  "alignItems": "center",
590
590
  "backgroundColor": "#355bfb",
591
+ "borderColor": "#355bfb",
591
592
  "borderRadius": 999,
593
+ "borderWidth": 2,
592
594
  "height": 24,
593
595
  "justifyContent": "center",
594
596
  "marginLeft": 4,
@@ -605,6 +607,7 @@ exports[`ScrollableTabsHeader highlighted variant renders correctly 1`] = `
605
607
  themeIntent="info"
606
608
  themePadding="wideContent"
607
609
  themeSize="medium"
610
+ themeVariant="filled"
608
611
  >
609
612
  <Text
610
613
  allowFontScaling={false}
@@ -1186,7 +1189,9 @@ exports[`ScrollableTabsHeader underlined variant renders correctly 1`] = `
1186
1189
  {
1187
1190
  "alignItems": "center",
1188
1191
  "backgroundColor": "#355bfb",
1192
+ "borderColor": "#355bfb",
1189
1193
  "borderRadius": 999,
1194
+ "borderWidth": 2,
1190
1195
  "height": 24,
1191
1196
  "justifyContent": "center",
1192
1197
  "marginLeft": 4,
@@ -1203,6 +1208,7 @@ exports[`ScrollableTabsHeader underlined variant renders correctly 1`] = `
1203
1208
  themeIntent="info"
1204
1209
  themePadding="wideContent"
1205
1210
  themeSize="medium"
1211
+ themeVariant="filled"
1206
1212
  >
1207
1213
  <Text
1208
1214
  allowFontScaling={false}
@@ -26,7 +26,9 @@ exports[`TabWithBadge renders correctly with counter badge config 1`] = `
26
26
  {
27
27
  "alignItems": "center",
28
28
  "backgroundColor": "#355bfb",
29
+ "borderColor": "#355bfb",
29
30
  "borderRadius": 999,
31
+ "borderWidth": 2,
30
32
  "height": 24,
31
33
  "justifyContent": "center",
32
34
  "marginLeft": 4,
@@ -43,6 +45,7 @@ exports[`TabWithBadge renders correctly with counter badge config 1`] = `
43
45
  themeIntent="info"
44
46
  themePadding="wideContent"
45
47
  themeSize="medium"
48
+ themeVariant="filled"
46
49
  >
47
50
  <Text
48
51
  allowFontScaling={false}
@@ -421,7 +421,9 @@ exports[`Tabs renders correctly 1`] = `
421
421
  {
422
422
  "alignItems": "center",
423
423
  "backgroundColor": "#355bfb",
424
+ "borderColor": "#355bfb",
424
425
  "borderRadius": 999,
426
+ "borderWidth": 2,
425
427
  "height": 24,
426
428
  "justifyContent": "center",
427
429
  "marginLeft": 4,
@@ -438,6 +440,7 @@ exports[`Tabs renders correctly 1`] = `
438
440
  themeIntent="info"
439
441
  themePadding="wideContent"
440
442
  themeSize="medium"
443
+ themeVariant="filled"
441
444
  >
442
445
  <Text
443
446
  allowFontScaling={false}
@@ -1091,7 +1094,9 @@ exports[`useIsFocused renders correctly 1`] = `
1091
1094
  {
1092
1095
  "alignItems": "center",
1093
1096
  "backgroundColor": "#355bfb",
1097
+ "borderColor": "#355bfb",
1094
1098
  "borderRadius": 999,
1099
+ "borderWidth": 2,
1095
1100
  "height": 24,
1096
1101
  "justifyContent": "center",
1097
1102
  "marginLeft": 4,
@@ -1108,6 +1113,7 @@ exports[`useIsFocused renders correctly 1`] = `
1108
1113
  themeIntent="info"
1109
1114
  themePadding="wideContent"
1110
1115
  themeSize="medium"
1116
+ themeVariant="filled"
1111
1117
  >
1112
1118
  <Text
1113
1119
  allowFontScaling={false}
@@ -1761,7 +1767,9 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
1761
1767
  {
1762
1768
  "alignItems": "center",
1763
1769
  "backgroundColor": "#355bfb",
1770
+ "borderColor": "#355bfb",
1764
1771
  "borderRadius": 999,
1772
+ "borderWidth": 2,
1765
1773
  "height": 24,
1766
1774
  "justifyContent": "center",
1767
1775
  "marginLeft": 4,
@@ -1778,6 +1786,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
1778
1786
  themeIntent="info"
1779
1787
  themePadding="wideContent"
1780
1788
  themeSize="medium"
1789
+ themeVariant="filled"
1781
1790
  >
1782
1791
  <Text
1783
1792
  allowFontScaling={false}
@@ -2,6 +2,7 @@ import styled from '@emotion/native';
2
2
  import { TouchableOpacity, View } from 'react-native';
3
3
  import type { ViewProps } from 'react-native';
4
4
  import Typography from '../Typography';
5
+ import { BodyProps } from '../Typography/Body';
5
6
 
6
7
  const ToolbarWrapper = styled(View)<ViewProps>(({ theme }) => ({
7
8
  position: 'absolute',
@@ -55,10 +56,20 @@ const IconButtonLabel = styled(Typography.Body)(({ theme }) => ({
55
56
  marginLeft: theme.__hd__.toolbar.space.iconButtonLabelMarginLeft,
56
57
  }));
57
58
 
59
+ const StyledLabel = styled(Typography.Body)<{
60
+ intent: Exclude<BodyProps['intent'], undefined>;
61
+ }>(({ theme, intent }) => ({
62
+ color:
63
+ intent === 'secondary'
64
+ ? theme.__hd__.toolbar.colors.secondary
65
+ : theme.__hd__.typography.colors[intent],
66
+ }));
67
+
58
68
  export {
59
69
  ToolbarWrapper,
60
70
  ToolbarGroupWrapper,
61
71
  ToolbarItemWrapper,
62
72
  IconButtonWrapper,
63
73
  IconButtonLabel,
74
+ StyledLabel,
64
75
  };
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { StyleProp, ViewStyle } from 'react-native';
3
3
  import Icon from '../Icon';
4
- import Typography from '../Typography';
5
4
  import {
6
5
  IconButtonLabel,
7
6
  IconButtonWrapper,
8
7
  ToolbarItemWrapper,
8
+ StyledLabel,
9
9
  } from './StyledToolbar';
10
10
  import type { IconName } from '../Icon';
11
11
 
@@ -86,14 +86,14 @@ const ToolbarItemContent = ({
86
86
  }
87
87
  if (label) {
88
88
  return (
89
- <Typography.Body
89
+ <StyledLabel
90
90
  variant="regular-bold"
91
91
  intent={disabled ? 'disabled' : intent}
92
92
  allowFontScaling={false}
93
93
  numberOfLines={1}
94
94
  >
95
95
  {label}
96
- </Typography.Body>
96
+ </StyledLabel>
97
97
  );
98
98
  }
99
99
  return null;