@hero-design/rn 8.33.1 → 8.34.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/.turbo/turbo-build.log +1 -1
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +868 -655
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +871 -656
- package/package.json +8 -7
- package/rollup.config.js +1 -0
- package/src/components/Accordion/AccordionItem.tsx +1 -3
- package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +26 -34
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +36 -48
- package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -39
- package/src/components/Alert/__tests__/index.spec.tsx +8 -2
- package/src/components/Alert/index.tsx +2 -2
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Attachment/index.tsx +3 -1
- package/src/components/Badge/StyledBadge.tsx +1 -4
- package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +18 -48
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -3
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -12
- package/src/components/BottomNavigation/index.tsx +0 -1
- package/src/components/BottomSheet/Header.tsx +1 -3
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Button/Button.tsx +34 -11
- package/src/components/Button/StyledButton.tsx +45 -38
- package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -14
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +66 -90
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +56 -86
- package/src/components/Calendar/CalendarRowItem.tsx +5 -2
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +10 -15
- package/src/components/Calendar/index.tsx +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +12 -18
- package/src/components/Card/__tests__/index.spec.tsx +1 -1
- package/src/components/Carousel/CardCarousel.tsx +2 -0
- package/src/components/Carousel/CarouselItem.tsx +4 -4
- package/src/components/Carousel/StyledCarousel.tsx +1 -4
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +24 -20
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +99 -165
- package/src/components/Checkbox/StyledCheckbox.tsx +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -29
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +124 -17
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
- package/src/components/ContentNavigator/index.tsx +30 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -18
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -18
- package/src/components/Empty/StyledEmpty.tsx +2 -6
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +22 -36
- package/src/components/Empty/index.tsx +4 -2
- package/src/components/Error/StyledError.tsx +2 -8
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +44 -76
- package/src/components/Error/index.tsx +6 -2
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -4
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +54 -116
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/StyledFAB.tsx +1 -4
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +1 -1
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -8
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/List/BasicListItem.tsx +2 -6
- package/src/components/List/ListItem.tsx +3 -5
- package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -10
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +23 -37
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +8 -12
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +8 -12
- package/src/components/Modal/ModalContentWrapper.tsx +112 -0
- package/src/components/Modal/ModalPresenter/ModalPresenter.tsx +135 -0
- package/src/components/Modal/ModalPresenter/index.tsx +9 -0
- package/src/components/Modal/ModalProvider.tsx +8 -0
- package/src/components/Modal/__tests__/ModalContentWrapper.spec.tsx +25 -0
- package/src/components/Modal/__tests__/ModalPresenter.spec.tsx +57 -0
- package/src/components/Modal/__tests__/__snapshots__/ModalContentWrapper.spec.tsx.snap +35 -0
- package/src/components/Modal/__tests__/__snapshots__/ModalPresenter.spec.tsx.snap +55 -0
- package/src/components/Modal/__tests__/index.spec.tsx +50 -0
- package/src/components/Modal/index.tsx +121 -0
- package/src/components/PageControl/index.tsx +0 -1
- package/src/components/PinInput/PinCell.tsx +3 -1
- package/src/components/PinInput/StyledPinInput.tsx +2 -7
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +25 -45
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +18 -34
- package/src/components/PinInput/index.tsx +2 -0
- package/src/components/Progress/ProgressCircle.tsx +1 -3
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -6
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -4
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -6
- package/src/components/RichTextEditor/RichTextEditor.tsx +7 -11
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +16 -24
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/SectionHeading/__tests__/index.spec.tsx +3 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +86 -130
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -10
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +49 -79
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
- package/src/components/Success/StyledSuccess.tsx +2 -6
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +40 -64
- package/src/components/Success/index.tsx +3 -1
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +6 -9
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Swipeable/__tests__/index.spec.tsx +6 -4
- package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
- package/src/components/Tabs/ScrollableTabsHeader.tsx +3 -3
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +4 -4
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +6 -9
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +33 -60
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +7 -13
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -8
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +45 -81
- package/src/components/Tabs/index.tsx +3 -3
- package/src/components/Tag/StyledTag.tsx +1 -4
- package/src/components/Tag/__tests__/Tag.spec.tsx +5 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +47 -93
- package/src/components/Tag/index.tsx +5 -1
- package/src/components/TextInput/StyledTextInput.tsx +8 -16
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +72 -134
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +145 -257
- package/src/components/TextInput/index.tsx +2 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -23
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +21 -35
- package/src/components/Toast/Toast.tsx +6 -5
- package/src/components/Toast/ToastContainer.tsx +2 -0
- package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +26 -39
- package/src/components/Toolbar/StyledToolbar.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +4 -6
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -18
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +14 -21
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/badge.ts +15 -0
- package/src/theme/components/button.ts +16 -0
- package/src/theme/components/carousel.ts +15 -0
- package/src/theme/components/empty.ts +12 -0
- package/src/theme/components/error.ts +16 -0
- package/src/theme/components/fab.ts +11 -0
- package/src/theme/components/pinInput.ts +15 -0
- package/src/theme/components/success.ts +12 -0
- package/src/theme/components/tag.ts +16 -0
- package/src/theme/components/textInput.ts +1 -0
- package/src/theme/getTheme.ts +18 -18
- package/testUtils/setup.tsx +24 -0
- package/types/components/Badge/StyledBadge.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +12 -5
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
- package/types/components/Carousel/StyledCarousel.d.ts +1 -1
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -5
- package/types/components/Empty/StyledEmpty.d.ts +2 -2
- package/types/components/Error/StyledError.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -1
- package/types/components/FAB/StyledFAB.d.ts +1 -1
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Modal/ModalContentWrapper.d.ts +16 -0
- package/types/components/Modal/ModalPresenter/ModalPresenter.d.ts +34 -0
- package/types/components/Modal/ModalPresenter/index.d.ts +3 -0
- package/types/components/Modal/ModalProvider.d.ts +5 -0
- package/types/components/Modal/index.d.ts +33 -0
- package/types/components/PinInput/StyledPinInput.d.ts +2 -2
- package/types/components/RichTextEditor/RichTextEditor.d.ts +2 -2
- package/types/components/Success/StyledSuccess.d.ts +2 -2
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +7 -10
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/theme/components/badge.d.ts +15 -0
- package/types/theme/components/button.d.ts +14 -0
- package/types/theme/components/carousel.d.ts +15 -0
- package/types/theme/components/empty.d.ts +11 -0
- package/types/theme/components/error.d.ts +15 -0
- package/types/theme/components/fab.d.ts +11 -0
- package/types/theme/components/pinInput.d.ts +15 -0
- package/types/theme/components/success.d.ts +11 -0
- package/types/theme/components/tag.d.ts +15 -0
- package/types/theme/components/textInput.d.ts +1 -0
- package/types/theme/getTheme.d.ts +18 -18
|
@@ -69,25 +69,22 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
69
69
|
Object {
|
|
70
70
|
"color": "#001f23",
|
|
71
71
|
"fontFamily": "BeVietnamPro-Regular",
|
|
72
|
-
"fontSize":
|
|
73
|
-
"letterSpacing": 0.
|
|
74
|
-
"lineHeight":
|
|
72
|
+
"fontSize": 16,
|
|
73
|
+
"letterSpacing": 0.48,
|
|
74
|
+
"lineHeight": 24,
|
|
75
75
|
},
|
|
76
76
|
Array [
|
|
77
77
|
Object {
|
|
78
78
|
"flexShrink": 1,
|
|
79
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
80
|
-
"fontSize": 16,
|
|
81
79
|
"textAlign": "center",
|
|
82
80
|
},
|
|
83
81
|
undefined,
|
|
84
82
|
],
|
|
85
83
|
]
|
|
86
84
|
}
|
|
87
|
-
themeFontSize="medium"
|
|
88
|
-
themeFontWeight="regular"
|
|
89
85
|
themeIntent="body"
|
|
90
86
|
themeTypeface="neutral"
|
|
87
|
+
themeVariant="regular"
|
|
91
88
|
>
|
|
92
89
|
Move to Work
|
|
93
90
|
</Text>
|
|
@@ -166,7 +163,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
166
163
|
"color": "#001f23",
|
|
167
164
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
168
165
|
"fontSize": 14,
|
|
169
|
-
"letterSpacing": 0.
|
|
166
|
+
"letterSpacing": 0.24,
|
|
170
167
|
"lineHeight": 22,
|
|
171
168
|
},
|
|
172
169
|
Object {
|
|
@@ -174,10 +171,9 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
174
171
|
},
|
|
175
172
|
]
|
|
176
173
|
}
|
|
177
|
-
themeFontSize="medium"
|
|
178
|
-
themeFontWeight="semi-bold"
|
|
179
174
|
themeIntent="body"
|
|
180
175
|
themeTypeface="neutral"
|
|
176
|
+
themeVariant="small-bold"
|
|
181
177
|
>
|
|
182
178
|
Work
|
|
183
179
|
</Text>
|
|
@@ -214,7 +210,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
214
210
|
"color": "#001f23",
|
|
215
211
|
"fontFamily": "BeVietnamPro-Regular",
|
|
216
212
|
"fontSize": 14,
|
|
217
|
-
"letterSpacing": 0.
|
|
213
|
+
"letterSpacing": 0.48,
|
|
218
214
|
"lineHeight": 22,
|
|
219
215
|
},
|
|
220
216
|
Object {
|
|
@@ -222,10 +218,9 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
222
218
|
},
|
|
223
219
|
]
|
|
224
220
|
}
|
|
225
|
-
themeFontSize="medium"
|
|
226
|
-
themeFontWeight="regular"
|
|
227
221
|
themeIntent="body"
|
|
228
222
|
themeTypeface="neutral"
|
|
223
|
+
themeVariant="small"
|
|
229
224
|
>
|
|
230
225
|
Personal
|
|
231
226
|
</Text>
|
|
@@ -268,7 +263,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
268
263
|
"color": "#001f23",
|
|
269
264
|
"fontFamily": "BeVietnamPro-Regular",
|
|
270
265
|
"fontSize": 14,
|
|
271
|
-
"letterSpacing": 0.
|
|
266
|
+
"letterSpacing": 0.48,
|
|
272
267
|
"lineHeight": 22,
|
|
273
268
|
},
|
|
274
269
|
Object {
|
|
@@ -276,10 +271,9 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
276
271
|
},
|
|
277
272
|
]
|
|
278
273
|
}
|
|
279
|
-
themeFontSize="medium"
|
|
280
|
-
themeFontWeight="regular"
|
|
281
274
|
themeIntent="body"
|
|
282
275
|
themeTypeface="neutral"
|
|
276
|
+
themeVariant="small"
|
|
283
277
|
>
|
|
284
278
|
Home
|
|
285
279
|
</Text>
|
|
@@ -347,7 +341,7 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
347
341
|
"color": "#001f23",
|
|
348
342
|
"fontFamily": "BeVietnamPro-Regular",
|
|
349
343
|
"fontSize": 14,
|
|
350
|
-
"letterSpacing": 0.
|
|
344
|
+
"letterSpacing": 0.48,
|
|
351
345
|
"lineHeight": 22,
|
|
352
346
|
},
|
|
353
347
|
Object {
|
|
@@ -355,10 +349,9 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
355
349
|
},
|
|
356
350
|
]
|
|
357
351
|
}
|
|
358
|
-
themeFontSize="medium"
|
|
359
|
-
themeFontWeight="regular"
|
|
360
352
|
themeIntent="body"
|
|
361
353
|
themeTypeface="neutral"
|
|
354
|
+
themeVariant="small"
|
|
362
355
|
>
|
|
363
356
|
Money
|
|
364
357
|
</Text>
|
|
@@ -392,17 +385,14 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
392
385
|
Object {
|
|
393
386
|
"color": "#001f23",
|
|
394
387
|
"fontFamily": "BeVietnamPro-Regular",
|
|
395
|
-
"fontSize":
|
|
396
|
-
"letterSpacing": 0.
|
|
397
|
-
"lineHeight":
|
|
388
|
+
"fontSize": 12,
|
|
389
|
+
"letterSpacing": 0.48,
|
|
390
|
+
"lineHeight": 16,
|
|
398
391
|
},
|
|
399
392
|
Array [
|
|
400
393
|
Object {
|
|
401
394
|
"color": "#ffffff",
|
|
402
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
403
|
-
"fontSize": 12,
|
|
404
395
|
"includeFontPadding": false,
|
|
405
|
-
"lineHeight": 16,
|
|
406
396
|
"textAlign": "center",
|
|
407
397
|
"textAlignVertical": "center",
|
|
408
398
|
},
|
|
@@ -410,10 +400,8 @@ exports[`Tabs renders correctly 1`] = `
|
|
|
410
400
|
],
|
|
411
401
|
]
|
|
412
402
|
}
|
|
413
|
-
themeFontSize="medium"
|
|
414
403
|
themeFontWeight="regular"
|
|
415
404
|
themeIntent="body"
|
|
416
|
-
themeTypeface="neutral"
|
|
417
405
|
>
|
|
418
406
|
50
|
|
419
407
|
</Text>
|
|
@@ -664,25 +652,22 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
664
652
|
Object {
|
|
665
653
|
"color": "#001f23",
|
|
666
654
|
"fontFamily": "BeVietnamPro-Regular",
|
|
667
|
-
"fontSize":
|
|
668
|
-
"letterSpacing": 0.
|
|
669
|
-
"lineHeight":
|
|
655
|
+
"fontSize": 16,
|
|
656
|
+
"letterSpacing": 0.48,
|
|
657
|
+
"lineHeight": 24,
|
|
670
658
|
},
|
|
671
659
|
Array [
|
|
672
660
|
Object {
|
|
673
661
|
"flexShrink": 1,
|
|
674
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
675
|
-
"fontSize": 16,
|
|
676
662
|
"textAlign": "center",
|
|
677
663
|
},
|
|
678
664
|
undefined,
|
|
679
665
|
],
|
|
680
666
|
]
|
|
681
667
|
}
|
|
682
|
-
themeFontSize="medium"
|
|
683
|
-
themeFontWeight="regular"
|
|
684
668
|
themeIntent="body"
|
|
685
669
|
themeTypeface="neutral"
|
|
670
|
+
themeVariant="regular"
|
|
686
671
|
>
|
|
687
672
|
Move to Work
|
|
688
673
|
</Text>
|
|
@@ -761,7 +746,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
761
746
|
"color": "#001f23",
|
|
762
747
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
763
748
|
"fontSize": 14,
|
|
764
|
-
"letterSpacing": 0.
|
|
749
|
+
"letterSpacing": 0.24,
|
|
765
750
|
"lineHeight": 22,
|
|
766
751
|
},
|
|
767
752
|
Object {
|
|
@@ -769,10 +754,9 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
769
754
|
},
|
|
770
755
|
]
|
|
771
756
|
}
|
|
772
|
-
themeFontSize="medium"
|
|
773
|
-
themeFontWeight="semi-bold"
|
|
774
757
|
themeIntent="body"
|
|
775
758
|
themeTypeface="neutral"
|
|
759
|
+
themeVariant="small-bold"
|
|
776
760
|
>
|
|
777
761
|
Work
|
|
778
762
|
</Text>
|
|
@@ -809,7 +793,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
809
793
|
"color": "#001f23",
|
|
810
794
|
"fontFamily": "BeVietnamPro-Regular",
|
|
811
795
|
"fontSize": 14,
|
|
812
|
-
"letterSpacing": 0.
|
|
796
|
+
"letterSpacing": 0.48,
|
|
813
797
|
"lineHeight": 22,
|
|
814
798
|
},
|
|
815
799
|
Object {
|
|
@@ -817,10 +801,9 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
817
801
|
},
|
|
818
802
|
]
|
|
819
803
|
}
|
|
820
|
-
themeFontSize="medium"
|
|
821
|
-
themeFontWeight="regular"
|
|
822
804
|
themeIntent="body"
|
|
823
805
|
themeTypeface="neutral"
|
|
806
|
+
themeVariant="small"
|
|
824
807
|
>
|
|
825
808
|
Personal
|
|
826
809
|
</Text>
|
|
@@ -863,7 +846,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
863
846
|
"color": "#001f23",
|
|
864
847
|
"fontFamily": "BeVietnamPro-Regular",
|
|
865
848
|
"fontSize": 14,
|
|
866
|
-
"letterSpacing": 0.
|
|
849
|
+
"letterSpacing": 0.48,
|
|
867
850
|
"lineHeight": 22,
|
|
868
851
|
},
|
|
869
852
|
Object {
|
|
@@ -871,10 +854,9 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
871
854
|
},
|
|
872
855
|
]
|
|
873
856
|
}
|
|
874
|
-
themeFontSize="medium"
|
|
875
|
-
themeFontWeight="regular"
|
|
876
857
|
themeIntent="body"
|
|
877
858
|
themeTypeface="neutral"
|
|
859
|
+
themeVariant="small"
|
|
878
860
|
>
|
|
879
861
|
Home
|
|
880
862
|
</Text>
|
|
@@ -942,7 +924,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
942
924
|
"color": "#001f23",
|
|
943
925
|
"fontFamily": "BeVietnamPro-Regular",
|
|
944
926
|
"fontSize": 14,
|
|
945
|
-
"letterSpacing": 0.
|
|
927
|
+
"letterSpacing": 0.48,
|
|
946
928
|
"lineHeight": 22,
|
|
947
929
|
},
|
|
948
930
|
Object {
|
|
@@ -950,10 +932,9 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
950
932
|
},
|
|
951
933
|
]
|
|
952
934
|
}
|
|
953
|
-
themeFontSize="medium"
|
|
954
|
-
themeFontWeight="regular"
|
|
955
935
|
themeIntent="body"
|
|
956
936
|
themeTypeface="neutral"
|
|
937
|
+
themeVariant="small"
|
|
957
938
|
>
|
|
958
939
|
Money
|
|
959
940
|
</Text>
|
|
@@ -987,17 +968,14 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
987
968
|
Object {
|
|
988
969
|
"color": "#001f23",
|
|
989
970
|
"fontFamily": "BeVietnamPro-Regular",
|
|
990
|
-
"fontSize":
|
|
991
|
-
"letterSpacing": 0.
|
|
992
|
-
"lineHeight":
|
|
971
|
+
"fontSize": 12,
|
|
972
|
+
"letterSpacing": 0.48,
|
|
973
|
+
"lineHeight": 16,
|
|
993
974
|
},
|
|
994
975
|
Array [
|
|
995
976
|
Object {
|
|
996
977
|
"color": "#ffffff",
|
|
997
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
998
|
-
"fontSize": 12,
|
|
999
978
|
"includeFontPadding": false,
|
|
1000
|
-
"lineHeight": 16,
|
|
1001
979
|
"textAlign": "center",
|
|
1002
980
|
"textAlignVertical": "center",
|
|
1003
981
|
},
|
|
@@ -1005,10 +983,8 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
1005
983
|
],
|
|
1006
984
|
]
|
|
1007
985
|
}
|
|
1008
|
-
themeFontSize="medium"
|
|
1009
986
|
themeFontWeight="regular"
|
|
1010
987
|
themeIntent="body"
|
|
1011
|
-
themeTypeface="neutral"
|
|
1012
988
|
>
|
|
1013
989
|
50
|
|
1014
990
|
</Text>
|
|
@@ -1259,25 +1235,22 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1259
1235
|
Object {
|
|
1260
1236
|
"color": "#001f23",
|
|
1261
1237
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1262
|
-
"fontSize":
|
|
1263
|
-
"letterSpacing": 0.
|
|
1264
|
-
"lineHeight":
|
|
1238
|
+
"fontSize": 16,
|
|
1239
|
+
"letterSpacing": 0.48,
|
|
1240
|
+
"lineHeight": 24,
|
|
1265
1241
|
},
|
|
1266
1242
|
Array [
|
|
1267
1243
|
Object {
|
|
1268
1244
|
"flexShrink": 1,
|
|
1269
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
1270
|
-
"fontSize": 16,
|
|
1271
1245
|
"textAlign": "center",
|
|
1272
1246
|
},
|
|
1273
1247
|
undefined,
|
|
1274
1248
|
],
|
|
1275
1249
|
]
|
|
1276
1250
|
}
|
|
1277
|
-
themeFontSize="medium"
|
|
1278
|
-
themeFontWeight="regular"
|
|
1279
1251
|
themeIntent="body"
|
|
1280
1252
|
themeTypeface="neutral"
|
|
1253
|
+
themeVariant="regular"
|
|
1281
1254
|
>
|
|
1282
1255
|
Move to Work
|
|
1283
1256
|
</Text>
|
|
@@ -1356,7 +1329,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1356
1329
|
"color": "#001f23",
|
|
1357
1330
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1358
1331
|
"fontSize": 14,
|
|
1359
|
-
"letterSpacing": 0.
|
|
1332
|
+
"letterSpacing": 0.48,
|
|
1360
1333
|
"lineHeight": 22,
|
|
1361
1334
|
},
|
|
1362
1335
|
Object {
|
|
@@ -1364,10 +1337,9 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1364
1337
|
},
|
|
1365
1338
|
]
|
|
1366
1339
|
}
|
|
1367
|
-
themeFontSize="medium"
|
|
1368
|
-
themeFontWeight="regular"
|
|
1369
1340
|
themeIntent="body"
|
|
1370
1341
|
themeTypeface="neutral"
|
|
1342
|
+
themeVariant="small"
|
|
1371
1343
|
>
|
|
1372
1344
|
Work
|
|
1373
1345
|
</Text>
|
|
@@ -1404,7 +1376,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1404
1376
|
"color": "#001f23",
|
|
1405
1377
|
"fontFamily": "BeVietnamPro-SemiBold",
|
|
1406
1378
|
"fontSize": 14,
|
|
1407
|
-
"letterSpacing": 0.
|
|
1379
|
+
"letterSpacing": 0.24,
|
|
1408
1380
|
"lineHeight": 22,
|
|
1409
1381
|
},
|
|
1410
1382
|
Object {
|
|
@@ -1412,10 +1384,9 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1412
1384
|
},
|
|
1413
1385
|
]
|
|
1414
1386
|
}
|
|
1415
|
-
themeFontSize="medium"
|
|
1416
|
-
themeFontWeight="semi-bold"
|
|
1417
1387
|
themeIntent="body"
|
|
1418
1388
|
themeTypeface="neutral"
|
|
1389
|
+
themeVariant="small-bold"
|
|
1419
1390
|
>
|
|
1420
1391
|
Personal
|
|
1421
1392
|
</Text>
|
|
@@ -1458,7 +1429,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1458
1429
|
"color": "#001f23",
|
|
1459
1430
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1460
1431
|
"fontSize": 14,
|
|
1461
|
-
"letterSpacing": 0.
|
|
1432
|
+
"letterSpacing": 0.48,
|
|
1462
1433
|
"lineHeight": 22,
|
|
1463
1434
|
},
|
|
1464
1435
|
Object {
|
|
@@ -1466,10 +1437,9 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1466
1437
|
},
|
|
1467
1438
|
]
|
|
1468
1439
|
}
|
|
1469
|
-
themeFontSize="medium"
|
|
1470
|
-
themeFontWeight="regular"
|
|
1471
1440
|
themeIntent="body"
|
|
1472
1441
|
themeTypeface="neutral"
|
|
1442
|
+
themeVariant="small"
|
|
1473
1443
|
>
|
|
1474
1444
|
Home
|
|
1475
1445
|
</Text>
|
|
@@ -1537,7 +1507,7 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1537
1507
|
"color": "#001f23",
|
|
1538
1508
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1539
1509
|
"fontSize": 14,
|
|
1540
|
-
"letterSpacing": 0.
|
|
1510
|
+
"letterSpacing": 0.48,
|
|
1541
1511
|
"lineHeight": 22,
|
|
1542
1512
|
},
|
|
1543
1513
|
Object {
|
|
@@ -1545,10 +1515,9 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1545
1515
|
},
|
|
1546
1516
|
]
|
|
1547
1517
|
}
|
|
1548
|
-
themeFontSize="medium"
|
|
1549
|
-
themeFontWeight="regular"
|
|
1550
1518
|
themeIntent="body"
|
|
1551
1519
|
themeTypeface="neutral"
|
|
1520
|
+
themeVariant="small"
|
|
1552
1521
|
>
|
|
1553
1522
|
Money
|
|
1554
1523
|
</Text>
|
|
@@ -1582,17 +1551,14 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1582
1551
|
Object {
|
|
1583
1552
|
"color": "#001f23",
|
|
1584
1553
|
"fontFamily": "BeVietnamPro-Regular",
|
|
1585
|
-
"fontSize":
|
|
1586
|
-
"letterSpacing": 0.
|
|
1587
|
-
"lineHeight":
|
|
1554
|
+
"fontSize": 12,
|
|
1555
|
+
"letterSpacing": 0.48,
|
|
1556
|
+
"lineHeight": 16,
|
|
1588
1557
|
},
|
|
1589
1558
|
Array [
|
|
1590
1559
|
Object {
|
|
1591
1560
|
"color": "#ffffff",
|
|
1592
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
1593
|
-
"fontSize": 12,
|
|
1594
1561
|
"includeFontPadding": false,
|
|
1595
|
-
"lineHeight": 16,
|
|
1596
1562
|
"textAlign": "center",
|
|
1597
1563
|
"textAlignVertical": "center",
|
|
1598
1564
|
},
|
|
@@ -1600,10 +1566,8 @@ exports[`useIsFocused renders correctly: xxxxxx 1`] = `
|
|
|
1600
1566
|
],
|
|
1601
1567
|
]
|
|
1602
1568
|
}
|
|
1603
|
-
themeFontSize="medium"
|
|
1604
1569
|
themeFontWeight="regular"
|
|
1605
1570
|
themeIntent="body"
|
|
1606
|
-
themeTypeface="neutral"
|
|
1607
1571
|
>
|
|
1608
1572
|
50
|
|
1609
1573
|
</Text>
|
|
@@ -89,13 +89,13 @@ const getTabItem = ({
|
|
|
89
89
|
}) => {
|
|
90
90
|
if (typeof item === 'string') {
|
|
91
91
|
return (
|
|
92
|
-
<Typography.
|
|
93
|
-
|
|
92
|
+
<Typography.Body
|
|
93
|
+
variant={active ? 'small-bold' : 'small'}
|
|
94
94
|
numberOfLines={1}
|
|
95
95
|
style={{ color }}
|
|
96
96
|
>
|
|
97
97
|
{item}
|
|
98
|
-
</Typography.
|
|
98
|
+
</Typography.Body>
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
|
|
@@ -44,7 +44,7 @@ const StyledView = styled(View)<{
|
|
|
44
44
|
};
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
const StyledText = styled(Typography.
|
|
47
|
+
const StyledText = styled(Typography.Caption)<{
|
|
48
48
|
themeIntent: ThemeIntent;
|
|
49
49
|
themeVariant: ThemeVariant;
|
|
50
50
|
}>(({ themeIntent, themeVariant, theme }) => {
|
|
@@ -54,9 +54,6 @@ const StyledText = styled(Typography.Text)<{
|
|
|
54
54
|
: getOutlinedStyles(themeIntent, theme);
|
|
55
55
|
|
|
56
56
|
return {
|
|
57
|
-
fontFamily: theme.__hd__.tag.fonts.default,
|
|
58
|
-
fontSize: theme.__hd__.tag.fontSizes.default,
|
|
59
|
-
lineHeight: theme.__hd__.tag.lineHeights.default,
|
|
60
57
|
color: textColor,
|
|
61
58
|
includeFontPadding: false,
|
|
62
59
|
textAlignVertical: 'center',
|
|
@@ -29,7 +29,11 @@ describe('Tag', () => {
|
|
|
29
29
|
|
|
30
30
|
it('renders correctly with custom content', () => {
|
|
31
31
|
const { getByText, toJSON } = renderWithTheme(
|
|
32
|
-
<Tag
|
|
32
|
+
<Tag
|
|
33
|
+
content={
|
|
34
|
+
<Typography.Body variant="small">Custom Content</Typography.Body>
|
|
35
|
+
}
|
|
36
|
+
/>
|
|
33
37
|
);
|
|
34
38
|
|
|
35
39
|
expect(toJSON()).toMatchSnapshot();
|