@hero-design/rn 8.52.2-rc2.0 → 8.53.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/CHANGELOG.md +4 -16
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +997 -700
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +996 -698
- package/package.json +7 -7
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -0
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +2 -0
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -0
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +6 -0
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -0
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +60 -0
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +413 -0
- package/src/components/BottomNavigation/__tests__/index.spec.tsx +97 -0
- package/src/components/BottomNavigation/index.tsx +166 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +21 -32
- package/src/components/BottomSheet/index.tsx +1 -1
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +21 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +10 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +10 -0
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +16 -0
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +32 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +7 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -0
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +4 -0
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +1 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +803 -1
- package/src/components/Carousel/__tests__/index.spec.tsx +47 -37
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +8 -0
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/Checkbox/index.tsx +13 -1
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +2 -0
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +15 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +329 -309
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -0
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/Error/index.tsx +20 -3
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/FAB/ActionGroup/index.tsx +14 -1
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -0
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +7 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +2 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +9 -0
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +5 -0
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +5 -0
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1 -0
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +1 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +4 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/SectionHeading/__tests__/index.spec.tsx +1 -0
- package/src/components/SectionHeading/index.tsx +57 -32
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +42 -128
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +4 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -96
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +1 -0
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +24 -0
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +4 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +5 -0
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +4 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +3 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1 -0
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +10 -0
- package/src/components/Tag/index.tsx +12 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +21 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +17 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +330 -309
- package/src/components/Toast/StyledToast.tsx +9 -7
- package/src/components/Toast/Toast.tsx +4 -1
- package/src/components/Toast/ToastContainer.tsx +6 -2
- package/src/components/Toast/ToastContext.ts +5 -2
- package/src/components/Toast/ToastProvider.tsx +19 -2
- package/src/components/Toast/__tests__/ToastContainer.spec.tsx +15 -12
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -0
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +14 -6
- package/src/components/Toast/types.ts +5 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +3 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -0
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +16 -0
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +10 -0
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +8 -0
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +11 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +20 -0
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +20 -0
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +23 -0
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +102 -0
- package/src/theme/components/badge.ts +28 -1
- package/src/theme/components/bottomNavigation.ts +27 -0
- package/src/theme/components/button.ts +24 -0
- package/src/theme/components/carousel.ts +28 -1
- package/src/theme/components/empty.ts +23 -1
- package/src/theme/components/error.ts +32 -1
- package/src/theme/components/fab.ts +13 -2
- package/src/theme/components/pinInput.ts +32 -0
- package/src/theme/components/success.ts +23 -1
- package/src/theme/components/tag.ts +28 -1
- package/src/theme/components/textInput.ts +5 -0
- package/src/theme/getTheme.ts +21 -18
- package/src/types.ts +2 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
- package/types/components/BottomNavigation/index.d.ts +45 -0
- package/types/components/Checkbox/index.d.ts +6 -1
- package/types/components/Error/index.d.ts +9 -3
- package/types/components/FAB/ActionGroup/index.d.ts +5 -0
- 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/SectionHeading/index.d.ts +11 -1
- package/types/components/Tag/index.d.ts +6 -1
- package/types/components/Toast/StyledToast.d.ts +2 -0
- package/types/components/Toast/ToastContext.d.ts +2 -2
- package/types/components/Toast/ToastProvider.d.ts +1 -1
- package/types/components/Toast/index.d.ts +1 -1
- package/types/components/Toast/types.d.ts +5 -1
- package/types/index.d.ts +2 -1
- package/types/theme/components/badge.d.ts +24 -0
- package/types/theme/components/bottomNavigation.d.ts +23 -0
- package/types/theme/components/button.d.ts +20 -0
- package/types/theme/components/carousel.d.ts +24 -0
- package/types/theme/components/empty.d.ts +19 -0
- package/types/theme/components/error.d.ts +27 -0
- package/types/theme/components/fab.d.ts +19 -8
- package/types/theme/components/pinInput.d.ts +27 -0
- package/types/theme/components/success.d.ts +19 -0
- package/types/theme/components/tag.d.ts +24 -0
- package/types/theme/components/textInput.d.ts +5 -0
- package/types/theme/getTheme.d.ts +20 -18
- package/types/types.d.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.53.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.42.
|
|
24
|
+
"@hero-design/colors": "8.42.5",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
27
|
"hero-editor": "^1.9.21",
|
|
28
28
|
"nanoid": "^4.0.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@hero-design/react-native-month-year-picker": "^8.42.
|
|
31
|
+
"@hero-design/react-native-month-year-picker": "^8.42.6",
|
|
32
32
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
33
33
|
"@react-native-community/slider": "4.4.3",
|
|
34
34
|
"react": "18.2.0",
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"@babel/preset-typescript": "^7.20.0",
|
|
48
48
|
"@babel/runtime": "^7.20.0",
|
|
49
49
|
"@emotion/jest": "^11.11.0",
|
|
50
|
-
"@hero-design/eslint-plugin": "8.42.
|
|
51
|
-
"@hero-design/react-native-month-year-picker": "^8.42.
|
|
50
|
+
"@hero-design/eslint-plugin": "8.42.5",
|
|
51
|
+
"@hero-design/react-native-month-year-picker": "^8.42.6",
|
|
52
52
|
"@react-native-community/datetimepicker": "3.5.2",
|
|
53
53
|
"@react-native-community/slider": "4.4.3",
|
|
54
54
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
65
65
|
"babel-plugin-inline-import": "^3.0.0",
|
|
66
66
|
"core-js": "^3.33.0",
|
|
67
|
-
"eslint-config-hd": "8.42.
|
|
67
|
+
"eslint-config-hd": "8.42.4",
|
|
68
68
|
"eslint-plugin-import": "^2.27.5",
|
|
69
69
|
"jest": "^29.2.1",
|
|
70
70
|
"jest-environment-jsdom": "^29.2.1",
|
|
71
71
|
"jest-junit": "^16.0.0",
|
|
72
|
-
"prettier-config-hd": "8.42.
|
|
72
|
+
"prettier-config-hd": "8.42.4",
|
|
73
73
|
"react": "18.2.0",
|
|
74
74
|
"react-native": "0.71.14",
|
|
75
75
|
"react-native-gesture-handler": "~2.5.0",
|
|
@@ -157,6 +157,7 @@ exports[`AccordionItem renders correctly when header is an element 1`] = `
|
|
|
157
157
|
</View>
|
|
158
158
|
<View
|
|
159
159
|
pointerEvents="box-none"
|
|
160
|
+
position="bottom"
|
|
160
161
|
style={
|
|
161
162
|
[
|
|
162
163
|
{
|
|
@@ -334,6 +335,7 @@ exports[`AccordionItem renders correctly when header is string 1`] = `
|
|
|
334
335
|
</View>
|
|
335
336
|
<View
|
|
336
337
|
pointerEvents="box-none"
|
|
338
|
+
position="bottom"
|
|
337
339
|
style={
|
|
338
340
|
[
|
|
339
341
|
{
|
|
@@ -511,6 +513,7 @@ exports[`AccordionItem renders correctly when open 1`] = `
|
|
|
511
513
|
</View>
|
|
512
514
|
<View
|
|
513
515
|
pointerEvents="box-none"
|
|
516
|
+
position="bottom"
|
|
514
517
|
style={
|
|
515
518
|
[
|
|
516
519
|
{
|
|
@@ -688,6 +691,7 @@ exports[`AccordionItem renders correctly when variant is card 1`] = `
|
|
|
688
691
|
</View>
|
|
689
692
|
<View
|
|
690
693
|
pointerEvents="box-none"
|
|
694
|
+
position="bottom"
|
|
691
695
|
style={
|
|
692
696
|
[
|
|
693
697
|
{
|
|
@@ -23,6 +23,7 @@ exports[`StyledItemWrapper has correct style when variant is card 1`] = `
|
|
|
23
23
|
/>
|
|
24
24
|
<View
|
|
25
25
|
pointerEvents="box-none"
|
|
26
|
+
position="bottom"
|
|
26
27
|
style={
|
|
27
28
|
[
|
|
28
29
|
{
|
|
@@ -66,6 +67,7 @@ exports[`StyledItemWrapper has correct style when variant is default 1`] = `
|
|
|
66
67
|
/>
|
|
67
68
|
<View
|
|
68
69
|
pointerEvents="box-none"
|
|
70
|
+
position="bottom"
|
|
69
71
|
style={
|
|
70
72
|
[
|
|
71
73
|
{
|
|
@@ -313,6 +313,7 @@ exports[`Accordion allows fully controlled 1`] = `
|
|
|
313
313
|
</View>
|
|
314
314
|
<View
|
|
315
315
|
pointerEvents="box-none"
|
|
316
|
+
position="bottom"
|
|
316
317
|
style={
|
|
317
318
|
[
|
|
318
319
|
{
|
|
@@ -646,6 +647,7 @@ exports[`Accordion renders correctly 1`] = `
|
|
|
646
647
|
</View>
|
|
647
648
|
<View
|
|
648
649
|
pointerEvents="box-none"
|
|
650
|
+
position="bottom"
|
|
649
651
|
style={
|
|
650
652
|
[
|
|
651
653
|
{
|
|
@@ -990,6 +992,7 @@ exports[`Accordion renders correctly when variant is card 1`] = `
|
|
|
990
992
|
</View>
|
|
991
993
|
<View
|
|
992
994
|
pointerEvents="box-none"
|
|
995
|
+
position="bottom"
|
|
993
996
|
style={
|
|
994
997
|
[
|
|
995
998
|
{
|
|
@@ -101,6 +101,7 @@ exports[`Alert Icon render custom icon correctly 1`] = `
|
|
|
101
101
|
</View>
|
|
102
102
|
<View
|
|
103
103
|
pointerEvents="box-none"
|
|
104
|
+
position="bottom"
|
|
104
105
|
style={
|
|
105
106
|
[
|
|
106
107
|
{
|
|
@@ -294,6 +295,7 @@ exports[`Alert renders correctly when intent is error 1`] = `
|
|
|
294
295
|
</View>
|
|
295
296
|
<View
|
|
296
297
|
pointerEvents="box-none"
|
|
298
|
+
position="bottom"
|
|
297
299
|
style={
|
|
298
300
|
[
|
|
299
301
|
{
|
|
@@ -487,6 +489,7 @@ exports[`Alert renders correctly when intent is info 1`] = `
|
|
|
487
489
|
</View>
|
|
488
490
|
<View
|
|
489
491
|
pointerEvents="box-none"
|
|
492
|
+
position="bottom"
|
|
490
493
|
style={
|
|
491
494
|
[
|
|
492
495
|
{
|
|
@@ -653,6 +656,7 @@ exports[`Alert renders correctly when intent is notification 1`] = `
|
|
|
653
656
|
</View>
|
|
654
657
|
<View
|
|
655
658
|
pointerEvents="box-none"
|
|
659
|
+
position="bottom"
|
|
656
660
|
style={
|
|
657
661
|
[
|
|
658
662
|
{
|
|
@@ -846,6 +850,7 @@ exports[`Alert renders correctly when intent is success 1`] = `
|
|
|
846
850
|
</View>
|
|
847
851
|
<View
|
|
848
852
|
pointerEvents="box-none"
|
|
853
|
+
position="bottom"
|
|
849
854
|
style={
|
|
850
855
|
[
|
|
851
856
|
{
|
|
@@ -1039,6 +1044,7 @@ exports[`Alert renders correctly when intent is warning 1`] = `
|
|
|
1039
1044
|
</View>
|
|
1040
1045
|
<View
|
|
1041
1046
|
pointerEvents="box-none"
|
|
1047
|
+
position="bottom"
|
|
1042
1048
|
style={
|
|
1043
1049
|
[
|
|
1044
1050
|
{
|
|
@@ -1180,6 +1186,7 @@ exports[`Alert renders correctly without rounded 1`] = `
|
|
|
1180
1186
|
</View>
|
|
1181
1187
|
<View
|
|
1182
1188
|
pointerEvents="box-none"
|
|
1189
|
+
position="bottom"
|
|
1183
1190
|
style={
|
|
1184
1191
|
[
|
|
1185
1192
|
{
|
package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap
CHANGED
|
@@ -101,6 +101,7 @@ exports[`StyledAvatar renders correctly with $variant 1`] = `
|
|
|
101
101
|
</View>
|
|
102
102
|
<View
|
|
103
103
|
pointerEvents="box-none"
|
|
104
|
+
position="bottom"
|
|
104
105
|
style={
|
|
105
106
|
[
|
|
106
107
|
{
|
|
@@ -414,6 +415,7 @@ exports[`StyledWrapper renders correctly with $variant 2`] = `
|
|
|
414
415
|
/>
|
|
415
416
|
<View
|
|
416
417
|
pointerEvents="box-none"
|
|
418
|
+
position="bottom"
|
|
417
419
|
style={
|
|
418
420
|
[
|
|
419
421
|
{
|
|
@@ -2613,6 +2613,7 @@ exports[`AvatarStack renders correctly when variant is vertical 1`] = `
|
|
|
2613
2613
|
</View>
|
|
2614
2614
|
<View
|
|
2615
2615
|
pointerEvents="box-none"
|
|
2616
|
+
position="bottom"
|
|
2616
2617
|
style={
|
|
2617
2618
|
[
|
|
2618
2619
|
{
|
|
@@ -3022,6 +3023,7 @@ exports[`AvatarStack renders correctly with custom props 1`] = `
|
|
|
3022
3023
|
</View>
|
|
3023
3024
|
<View
|
|
3024
3025
|
pointerEvents="box-none"
|
|
3026
|
+
position="bottom"
|
|
3025
3027
|
style={
|
|
3026
3028
|
[
|
|
3027
3029
|
{
|
|
@@ -27,6 +27,7 @@ exports[`StyledImage renders correct style 1`] = `
|
|
|
27
27
|
/>
|
|
28
28
|
<View
|
|
29
29
|
pointerEvents="box-none"
|
|
30
|
+
position="bottom"
|
|
30
31
|
style={
|
|
31
32
|
[
|
|
32
33
|
{
|
|
@@ -96,6 +97,7 @@ exports[`StyledPressable renders correct style 1`] = `
|
|
|
96
97
|
/>
|
|
97
98
|
<View
|
|
98
99
|
pointerEvents="box-none"
|
|
100
|
+
position="bottom"
|
|
99
101
|
style={
|
|
100
102
|
[
|
|
101
103
|
{
|
|
@@ -159,6 +161,7 @@ exports[`StyledText renders correct style 1`] = `
|
|
|
159
161
|
</Text>
|
|
160
162
|
<View
|
|
161
163
|
pointerEvents="box-none"
|
|
164
|
+
position="bottom"
|
|
162
165
|
style={
|
|
163
166
|
[
|
|
164
167
|
{
|
|
@@ -118,6 +118,7 @@ exports[`Avatar fallbacks to title when there image failed to load 1`] = `
|
|
|
118
118
|
</View>
|
|
119
119
|
<View
|
|
120
120
|
pointerEvents="box-none"
|
|
121
|
+
position="bottom"
|
|
121
122
|
style={
|
|
122
123
|
[
|
|
123
124
|
{
|
|
@@ -210,6 +211,7 @@ exports[`Avatar prioritizes source over title 1`] = `
|
|
|
210
211
|
</View>
|
|
211
212
|
<View
|
|
212
213
|
pointerEvents="box-none"
|
|
214
|
+
position="bottom"
|
|
213
215
|
style={
|
|
214
216
|
[
|
|
215
217
|
{
|
|
@@ -328,6 +330,7 @@ exports[`Avatar shows title when there is no source 1`] = `
|
|
|
328
330
|
</View>
|
|
329
331
|
<View
|
|
330
332
|
pointerEvents="box-none"
|
|
333
|
+
position="bottom"
|
|
331
334
|
style={
|
|
332
335
|
[
|
|
333
336
|
{
|
|
@@ -60,6 +60,7 @@ exports[`Badge has danger style when intent is danger 1`] = `
|
|
|
60
60
|
</View>
|
|
61
61
|
<View
|
|
62
62
|
pointerEvents="box-none"
|
|
63
|
+
position="bottom"
|
|
63
64
|
style={
|
|
64
65
|
[
|
|
65
66
|
{
|
|
@@ -140,6 +141,7 @@ exports[`Badge has info style when intent is info 1`] = `
|
|
|
140
141
|
</View>
|
|
141
142
|
<View
|
|
142
143
|
pointerEvents="box-none"
|
|
144
|
+
position="bottom"
|
|
143
145
|
style={
|
|
144
146
|
[
|
|
145
147
|
{
|
|
@@ -220,6 +222,7 @@ exports[`Badge has info style when intent is primary 1`] = `
|
|
|
220
222
|
</View>
|
|
221
223
|
<View
|
|
222
224
|
pointerEvents="box-none"
|
|
225
|
+
position="bottom"
|
|
223
226
|
style={
|
|
224
227
|
[
|
|
225
228
|
{
|
|
@@ -300,6 +303,7 @@ exports[`Badge has success style when intent is success 1`] = `
|
|
|
300
303
|
</View>
|
|
301
304
|
<View
|
|
302
305
|
pointerEvents="box-none"
|
|
306
|
+
position="bottom"
|
|
303
307
|
style={
|
|
304
308
|
[
|
|
305
309
|
{
|
|
@@ -380,6 +384,7 @@ exports[`Badge has warning style when intent is warning 1`] = `
|
|
|
380
384
|
</View>
|
|
381
385
|
<View
|
|
382
386
|
pointerEvents="box-none"
|
|
387
|
+
position="bottom"
|
|
383
388
|
style={
|
|
384
389
|
[
|
|
385
390
|
{
|
|
@@ -461,6 +466,7 @@ exports[`Badge renders correctly with custom props 1`] = `
|
|
|
461
466
|
</View>
|
|
462
467
|
<View
|
|
463
468
|
pointerEvents="box-none"
|
|
469
|
+
position="bottom"
|
|
464
470
|
style={
|
|
465
471
|
[
|
|
466
472
|
{
|
|
@@ -48,6 +48,7 @@ exports[`Status Badge renders correctly 1`] = `
|
|
|
48
48
|
</View>
|
|
49
49
|
<View
|
|
50
50
|
pointerEvents="box-none"
|
|
51
|
+
position="bottom"
|
|
51
52
|
style={
|
|
52
53
|
[
|
|
53
54
|
{
|
|
@@ -121,6 +122,7 @@ exports[`Status Badge renders correctly with intent 1`] = `
|
|
|
121
122
|
</View>
|
|
122
123
|
<View
|
|
123
124
|
pointerEvents="box-none"
|
|
125
|
+
position="bottom"
|
|
124
126
|
style={
|
|
125
127
|
[
|
|
126
128
|
{
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import styled from '@emotion/native';
|
|
3
|
+
import Typography from '../Typography';
|
|
4
|
+
|
|
5
|
+
const BottomNavigationTab = styled(View)<{ themeVisibility?: boolean }>(
|
|
6
|
+
({ themeVisibility }) => ({
|
|
7
|
+
flex: 1,
|
|
8
|
+
display: themeVisibility === false ? 'none' : 'flex',
|
|
9
|
+
})
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
const BottomNavigationContainer = styled(View)({
|
|
13
|
+
flex: 1,
|
|
14
|
+
overflow: 'hidden',
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const ContentWrapper = styled(View)({
|
|
18
|
+
flex: 1,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const BottomBarWrapper = styled(View)<{
|
|
22
|
+
themeInsets: { top: number; right: number; bottom: number; left: number };
|
|
23
|
+
}>(({ themeInsets, theme }) => ({
|
|
24
|
+
height: theme.__hd__.bottomNavigation.sizes.height + themeInsets.bottom,
|
|
25
|
+
paddingBottom: themeInsets.bottom,
|
|
26
|
+
paddingLeft: Math.max(themeInsets.left, themeInsets.right),
|
|
27
|
+
paddingRight: Math.max(themeInsets.left, themeInsets.right),
|
|
28
|
+
backgroundColor: theme.__hd__.bottomNavigation.colors.background,
|
|
29
|
+
shadowColor: theme.__hd__.bottomNavigation.colors.shadow,
|
|
30
|
+
shadowOffset: theme.__hd__.bottomNavigation.shadows.offset,
|
|
31
|
+
shadowOpacity: theme.__hd__.bottomNavigation.shadows.opacity,
|
|
32
|
+
shadowRadius: theme.__hd__.bottomNavigation.shadows.radius,
|
|
33
|
+
elevation: theme.__hd__.bottomNavigation.shadows.elevation,
|
|
34
|
+
}));
|
|
35
|
+
|
|
36
|
+
const BottomBar = styled(View)({
|
|
37
|
+
flex: 1,
|
|
38
|
+
flexDirection: 'row',
|
|
39
|
+
overflow: 'hidden',
|
|
40
|
+
alignItems: 'center',
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const BottomBarItem = styled(View)({
|
|
44
|
+
flex: 1,
|
|
45
|
+
alignItems: 'center',
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const StyledBottomBarText = styled(Typography.Caption)(({ theme }) => ({
|
|
49
|
+
marginTop: theme.__hd__.bottomNavigation.space.titleMarginTop,
|
|
50
|
+
}));
|
|
51
|
+
|
|
52
|
+
export {
|
|
53
|
+
BottomBar,
|
|
54
|
+
BottomBarItem,
|
|
55
|
+
BottomNavigationTab,
|
|
56
|
+
BottomNavigationContainer,
|
|
57
|
+
BottomBarWrapper,
|
|
58
|
+
ContentWrapper,
|
|
59
|
+
StyledBottomBarText,
|
|
60
|
+
};
|