@hero-design/rn 8.52.2-rc2.0 → 8.54.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/.eslintrc.js +0 -1
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +11 -13
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +1004 -705
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +1003 -703
- package/package.json +7 -7
- package/sonar-project.properties +9 -0
- 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/DragableDrawer/index.tsx +2 -2
- 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 +9 -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/Accordion/AccordionItem.d.ts +1 -1
- package/types/components/Accordion/StyledAccordion.d.ts +1 -1
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +1 -1
- package/types/components/Avatar/StyledAvatar.d.ts +2 -2
- package/types/components/Badge/StyledBadge.d.ts +2 -2
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
- package/types/components/BottomNavigation/index.d.ts +45 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -1
- package/types/components/Box/config.d.ts +2 -2
- package/types/components/Box/types.d.ts +3 -3
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +2 -2
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/types.d.ts +2 -2
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/Checkbox/index.d.ts +7 -2
- package/types/components/Chip/StyledChip.d.ts +1 -1
- package/types/components/Divider/StyledDivider.d.ts +1 -1
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +1 -1
- package/types/components/Empty/StyledEmpty.d.ts +1 -1
- package/types/components/Error/StyledError.d.ts +1 -1
- package/types/components/Error/index.d.ts +9 -3
- package/types/components/FAB/ActionGroup/index.d.ts +6 -1
- package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +1 -1
- package/types/components/Icon/AnimatedIcon.d.ts +1 -1
- package/types/components/Icon/HeroIcon/index.d.ts +2 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +2 -2
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/List/StyledListItem.d.ts +2 -2
- package/types/components/PinInput/StyledPinInput.d.ts +1 -1
- package/types/components/Portal/reducer.d.ts +1 -1
- package/types/components/Portal/types.d.ts +1 -1
- package/types/components/Progress/types.d.ts +1 -1
- package/types/components/Radio/types.d.ts +1 -1
- package/types/components/RefreshControl/index.d.ts +1 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/types/components/RichTextEditor/types.d.ts +1 -1
- package/types/components/SectionHeading/StyledHeading.d.ts +1 -1
- package/types/components/SectionHeading/index.d.ts +11 -1
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/helpers.d.ts +1 -1
- package/types/components/Select/types.d.ts +6 -6
- package/types/components/Skeleton/StyledSkeleton.d.ts +2 -2
- package/types/components/Success/StyledSuccess.d.ts +1 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +1 -1
- package/types/components/Swipeable/index.d.ts +2 -2
- package/types/components/Switch/SelectorSwitch/index.d.ts +3 -3
- package/types/components/Switch/StyledSwitch.d.ts +1 -1
- package/types/components/Tabs/TabWithBadge.d.ts +3 -3
- package/types/components/Tabs/index.d.ts +2 -2
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/Tag/index.d.ts +6 -1
- package/types/components/TextInput/StyledTextInput.d.ts +2 -2
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/Toast/StyledToast.d.ts +2 -0
- package/types/components/Toast/ToastContext.d.ts +3 -3
- package/types/components/Toast/ToastProvider.d.ts +2 -2
- package/types/components/Toast/index.d.ts +1 -1
- package/types/components/Toast/types.d.ts +7 -3
- package/types/components/Typography/Body/StyledBody.d.ts +1 -1
- package/types/components/Typography/Title/StyledTitle.d.ts +1 -1
- package/types/components/Typography/types.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/theme/ThemeSwitcher.d.ts +1 -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 +21 -19
- package/types/theme/global/colors/types.d.ts +3 -3
- package/types/theme/global/index.d.ts +1 -1
- package/types/theme/global/scale.d.ts +1 -1
- package/types/theme/global/shadows.d.ts +1 -1
- package/types/theme/global/typography.d.ts +1 -1
- package/types/types.d.ts +2 -1
|
@@ -8,8 +8,15 @@ exports[`BottomSheet renders correctly with BottomSheet.ScrollView 1`] = `
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
>
|
|
11
|
+
<Modal
|
|
12
|
+
hardwareAccelerated={false}
|
|
13
|
+
onRequestClose={[MockFunction]}
|
|
14
|
+
transparent={true}
|
|
15
|
+
visible={false}
|
|
16
|
+
/>
|
|
11
17
|
<View
|
|
12
18
|
pointerEvents="box-none"
|
|
19
|
+
position="bottom"
|
|
13
20
|
style={
|
|
14
21
|
[
|
|
15
22
|
{
|
|
@@ -38,8 +45,15 @@ exports[`BottomSheet renders correctly with close state 1`] = `
|
|
|
38
45
|
}
|
|
39
46
|
}
|
|
40
47
|
>
|
|
48
|
+
<Modal
|
|
49
|
+
hardwareAccelerated={false}
|
|
50
|
+
onRequestClose={[MockFunction]}
|
|
51
|
+
transparent={true}
|
|
52
|
+
visible={false}
|
|
53
|
+
/>
|
|
41
54
|
<View
|
|
42
55
|
pointerEvents="box-none"
|
|
56
|
+
position="bottom"
|
|
43
57
|
style={
|
|
44
58
|
[
|
|
45
59
|
{
|
|
@@ -68,37 +82,11 @@ exports[`BottomSheet renders correctly with open state 1`] = `
|
|
|
68
82
|
}
|
|
69
83
|
}
|
|
70
84
|
>
|
|
71
|
-
<
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"bottom": 0,
|
|
77
|
-
"left": 0,
|
|
78
|
-
"opacity": 0.4,
|
|
79
|
-
"position": "absolute",
|
|
80
|
-
"right": 0,
|
|
81
|
-
"top": 0,
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/>
|
|
85
|
-
<View
|
|
86
|
-
collapsable={false}
|
|
87
|
-
style={
|
|
88
|
-
{
|
|
89
|
-
"bottom": 0,
|
|
90
|
-
"left": 0,
|
|
91
|
-
"opacity": 1,
|
|
92
|
-
"position": "absolute",
|
|
93
|
-
"right": 0,
|
|
94
|
-
"top": 0,
|
|
95
|
-
"transform": [
|
|
96
|
-
{
|
|
97
|
-
"translateY": 0,
|
|
98
|
-
},
|
|
99
|
-
],
|
|
100
|
-
}
|
|
101
|
-
}
|
|
85
|
+
<Modal
|
|
86
|
+
hardwareAccelerated={false}
|
|
87
|
+
onRequestClose={[MockFunction]}
|
|
88
|
+
transparent={true}
|
|
89
|
+
visible={true}
|
|
102
90
|
>
|
|
103
91
|
<View
|
|
104
92
|
pointerEvents="box-none"
|
|
@@ -394,9 +382,10 @@ exports[`BottomSheet renders correctly with open state 1`] = `
|
|
|
394
382
|
</RCTSafeAreaView>
|
|
395
383
|
</View>
|
|
396
384
|
</View>
|
|
397
|
-
</
|
|
385
|
+
</Modal>
|
|
398
386
|
<View
|
|
399
387
|
pointerEvents="box-none"
|
|
388
|
+
position="bottom"
|
|
400
389
|
style={
|
|
401
390
|
[
|
|
402
391
|
{
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
Dimensions,
|
|
7
7
|
Easing,
|
|
8
8
|
KeyboardAvoidingViewProps,
|
|
9
|
+
Modal,
|
|
9
10
|
Platform,
|
|
10
11
|
} from 'react-native';
|
|
11
12
|
import BottomSheetContext from './BottomSheetContext';
|
|
@@ -18,7 +19,6 @@ import {
|
|
|
18
19
|
StyledWrapper,
|
|
19
20
|
} from './StyledBottomSheet';
|
|
20
21
|
import ScrollView from './ScrollView';
|
|
21
|
-
import Modal from '../Modal';
|
|
22
22
|
|
|
23
23
|
interface BottomSheetProps {
|
|
24
24
|
/**
|
|
@@ -41,6 +41,7 @@ exports[`Box allows flex props 1`] = `
|
|
|
41
41
|
/>
|
|
42
42
|
<View
|
|
43
43
|
pointerEvents="box-none"
|
|
44
|
+
position="bottom"
|
|
44
45
|
style={
|
|
45
46
|
[
|
|
46
47
|
{
|
|
@@ -96,6 +97,7 @@ exports[`Box map prop to valid property and correct color from theme 1`] = `
|
|
|
96
97
|
/>
|
|
97
98
|
<View
|
|
98
99
|
pointerEvents="box-none"
|
|
100
|
+
position="bottom"
|
|
99
101
|
style={
|
|
100
102
|
[
|
|
101
103
|
{
|
|
@@ -142,6 +144,7 @@ exports[`Box map prop to valid property and correct color from theme 2`] = `
|
|
|
142
144
|
/>
|
|
143
145
|
<View
|
|
144
146
|
pointerEvents="box-none"
|
|
147
|
+
position="bottom"
|
|
145
148
|
style={
|
|
146
149
|
[
|
|
147
150
|
{
|
|
@@ -197,6 +200,7 @@ exports[`Box map prop to valid property and correct color from theme 3`] = `
|
|
|
197
200
|
/>
|
|
198
201
|
<View
|
|
199
202
|
pointerEvents="box-none"
|
|
203
|
+
position="bottom"
|
|
200
204
|
style={
|
|
201
205
|
[
|
|
202
206
|
{
|
|
@@ -243,6 +247,7 @@ exports[`Box map prop to valid property and correct color from theme 4`] = `
|
|
|
243
247
|
/>
|
|
244
248
|
<View
|
|
245
249
|
pointerEvents="box-none"
|
|
250
|
+
position="bottom"
|
|
246
251
|
style={
|
|
247
252
|
[
|
|
248
253
|
{
|
|
@@ -300,6 +305,7 @@ exports[`Box map prop to valid property and correct radius from theme 1`] = `
|
|
|
300
305
|
/>
|
|
301
306
|
<View
|
|
302
307
|
pointerEvents="box-none"
|
|
308
|
+
position="bottom"
|
|
303
309
|
style={
|
|
304
310
|
[
|
|
305
311
|
{
|
|
@@ -357,6 +363,7 @@ exports[`Box map prop to valid property and correct radius from theme 2`] = `
|
|
|
357
363
|
/>
|
|
358
364
|
<View
|
|
359
365
|
pointerEvents="box-none"
|
|
366
|
+
position="bottom"
|
|
360
367
|
style={
|
|
361
368
|
[
|
|
362
369
|
{
|
|
@@ -414,6 +421,7 @@ exports[`Box map prop to valid property and correct radius from theme 3`] = `
|
|
|
414
421
|
/>
|
|
415
422
|
<View
|
|
416
423
|
pointerEvents="box-none"
|
|
424
|
+
position="bottom"
|
|
417
425
|
style={
|
|
418
426
|
[
|
|
419
427
|
{
|
|
@@ -471,6 +479,7 @@ exports[`Box map prop to valid property and correct radius from theme 4`] = `
|
|
|
471
479
|
/>
|
|
472
480
|
<View
|
|
473
481
|
pointerEvents="box-none"
|
|
482
|
+
position="bottom"
|
|
474
483
|
style={
|
|
475
484
|
[
|
|
476
485
|
{
|
|
@@ -528,6 +537,7 @@ exports[`Box map prop to valid property and correct radius from theme 5`] = `
|
|
|
528
537
|
/>
|
|
529
538
|
<View
|
|
530
539
|
pointerEvents="box-none"
|
|
540
|
+
position="bottom"
|
|
531
541
|
style={
|
|
532
542
|
[
|
|
533
543
|
{
|
|
@@ -603,6 +613,7 @@ exports[`Box map prop to valid property and correct space from theme 1`] = `
|
|
|
603
613
|
/>
|
|
604
614
|
<View
|
|
605
615
|
pointerEvents="box-none"
|
|
616
|
+
position="bottom"
|
|
606
617
|
style={
|
|
607
618
|
[
|
|
608
619
|
{
|
|
@@ -678,6 +689,7 @@ exports[`Box map prop to valid property and correct space from theme 2`] = `
|
|
|
678
689
|
/>
|
|
679
690
|
<View
|
|
680
691
|
pointerEvents="box-none"
|
|
692
|
+
position="bottom"
|
|
681
693
|
style={
|
|
682
694
|
[
|
|
683
695
|
{
|
|
@@ -753,6 +765,7 @@ exports[`Box map prop to valid property and correct space from theme 3`] = `
|
|
|
753
765
|
/>
|
|
754
766
|
<View
|
|
755
767
|
pointerEvents="box-none"
|
|
768
|
+
position="bottom"
|
|
756
769
|
style={
|
|
757
770
|
[
|
|
758
771
|
{
|
|
@@ -828,6 +841,7 @@ exports[`Box map prop to valid property and correct space from theme 4`] = `
|
|
|
828
841
|
/>
|
|
829
842
|
<View
|
|
830
843
|
pointerEvents="box-none"
|
|
844
|
+
position="bottom"
|
|
831
845
|
style={
|
|
832
846
|
[
|
|
833
847
|
{
|
|
@@ -877,6 +891,7 @@ exports[`Box map prop to valid property and correctborderWidth from theme 1`] =
|
|
|
877
891
|
/>
|
|
878
892
|
<View
|
|
879
893
|
pointerEvents="box-none"
|
|
894
|
+
position="bottom"
|
|
880
895
|
style={
|
|
881
896
|
[
|
|
882
897
|
{
|
|
@@ -926,6 +941,7 @@ exports[`Box map prop to valid property and correctborderWidth from theme 2`] =
|
|
|
926
941
|
/>
|
|
927
942
|
<View
|
|
928
943
|
pointerEvents="box-none"
|
|
944
|
+
position="bottom"
|
|
929
945
|
style={
|
|
930
946
|
[
|
|
931
947
|
{
|
|
@@ -967,6 +983,7 @@ exports[`Box map prop with shortcut name to valid property and correct color fro
|
|
|
967
983
|
/>
|
|
968
984
|
<View
|
|
969
985
|
pointerEvents="box-none"
|
|
986
|
+
position="bottom"
|
|
970
987
|
style={
|
|
971
988
|
[
|
|
972
989
|
{
|
|
@@ -1006,6 +1023,7 @@ exports[`Box map prop with shortcut name to valid property and correct color fro
|
|
|
1006
1023
|
/>
|
|
1007
1024
|
<View
|
|
1008
1025
|
pointerEvents="box-none"
|
|
1026
|
+
position="bottom"
|
|
1009
1027
|
style={
|
|
1010
1028
|
[
|
|
1011
1029
|
{
|
|
@@ -1047,6 +1065,7 @@ exports[`Box map prop with shortcut name to valid property and correct color fro
|
|
|
1047
1065
|
/>
|
|
1048
1066
|
<View
|
|
1049
1067
|
pointerEvents="box-none"
|
|
1068
|
+
position="bottom"
|
|
1050
1069
|
style={
|
|
1051
1070
|
[
|
|
1052
1071
|
{
|
|
@@ -1086,6 +1105,7 @@ exports[`Box map prop with shortcut name to valid property and correct color fro
|
|
|
1086
1105
|
/>
|
|
1087
1106
|
<View
|
|
1088
1107
|
pointerEvents="box-none"
|
|
1108
|
+
position="bottom"
|
|
1089
1109
|
style={
|
|
1090
1110
|
[
|
|
1091
1111
|
{
|
|
@@ -1129,6 +1149,7 @@ exports[`Box renders content correctly 1`] = `
|
|
|
1129
1149
|
</View>
|
|
1130
1150
|
<View
|
|
1131
1151
|
pointerEvents="box-none"
|
|
1152
|
+
position="bottom"
|
|
1132
1153
|
style={
|
|
1133
1154
|
[
|
|
1134
1155
|
{
|
|
@@ -25,6 +25,7 @@ exports[`StyledLoadingIndicator has basic-transparent style 1`] = `
|
|
|
25
25
|
/>
|
|
26
26
|
<View
|
|
27
27
|
pointerEvents="box-none"
|
|
28
|
+
position="bottom"
|
|
28
29
|
style={
|
|
29
30
|
[
|
|
30
31
|
{
|
|
@@ -70,6 +71,7 @@ exports[`StyledLoadingIndicator has filled-danger style 1`] = `
|
|
|
70
71
|
/>
|
|
71
72
|
<View
|
|
72
73
|
pointerEvents="box-none"
|
|
74
|
+
position="bottom"
|
|
73
75
|
style={
|
|
74
76
|
[
|
|
75
77
|
{
|
|
@@ -115,6 +117,7 @@ exports[`StyledLoadingIndicator has filled-primary style 1`] = `
|
|
|
115
117
|
/>
|
|
116
118
|
<View
|
|
117
119
|
pointerEvents="box-none"
|
|
120
|
+
position="bottom"
|
|
118
121
|
style={
|
|
119
122
|
[
|
|
120
123
|
{
|
|
@@ -160,6 +163,7 @@ exports[`StyledLoadingIndicator has filled-secondary style 1`] = `
|
|
|
160
163
|
/>
|
|
161
164
|
<View
|
|
162
165
|
pointerEvents="box-none"
|
|
166
|
+
position="bottom"
|
|
163
167
|
style={
|
|
164
168
|
[
|
|
165
169
|
{
|
|
@@ -205,6 +209,7 @@ exports[`StyledLoadingIndicator has outlined-danger style 1`] = `
|
|
|
205
209
|
/>
|
|
206
210
|
<View
|
|
207
211
|
pointerEvents="box-none"
|
|
212
|
+
position="bottom"
|
|
208
213
|
style={
|
|
209
214
|
[
|
|
210
215
|
{
|
|
@@ -250,6 +255,7 @@ exports[`StyledLoadingIndicator has outlined-primary style 1`] = `
|
|
|
250
255
|
/>
|
|
251
256
|
<View
|
|
252
257
|
pointerEvents="box-none"
|
|
258
|
+
position="bottom"
|
|
253
259
|
style={
|
|
254
260
|
[
|
|
255
261
|
{
|
|
@@ -295,6 +301,7 @@ exports[`StyledLoadingIndicator has outlined-secondary style 1`] = `
|
|
|
295
301
|
/>
|
|
296
302
|
<View
|
|
297
303
|
pointerEvents="box-none"
|
|
304
|
+
position="bottom"
|
|
298
305
|
style={
|
|
299
306
|
[
|
|
300
307
|
{
|
|
@@ -340,6 +347,7 @@ exports[`StyledLoadingIndicator has text-danger style 1`] = `
|
|
|
340
347
|
/>
|
|
341
348
|
<View
|
|
342
349
|
pointerEvents="box-none"
|
|
350
|
+
position="bottom"
|
|
343
351
|
style={
|
|
344
352
|
[
|
|
345
353
|
{
|
|
@@ -385,6 +393,7 @@ exports[`StyledLoadingIndicator has text-primary style 1`] = `
|
|
|
385
393
|
/>
|
|
386
394
|
<View
|
|
387
395
|
pointerEvents="box-none"
|
|
396
|
+
position="bottom"
|
|
388
397
|
style={
|
|
389
398
|
[
|
|
390
399
|
{
|
|
@@ -430,6 +439,7 @@ exports[`StyledLoadingIndicator has text-secondary style 1`] = `
|
|
|
430
439
|
/>
|
|
431
440
|
<View
|
|
432
441
|
pointerEvents="box-none"
|
|
442
|
+
position="bottom"
|
|
433
443
|
style={
|
|
434
444
|
[
|
|
435
445
|
{
|
|
@@ -114,6 +114,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is basic-transpare
|
|
|
114
114
|
</View>
|
|
115
115
|
<View
|
|
116
116
|
pointerEvents="box-none"
|
|
117
|
+
position="bottom"
|
|
117
118
|
style={
|
|
118
119
|
[
|
|
119
120
|
{
|
|
@@ -248,6 +249,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-danger 1
|
|
|
248
249
|
</View>
|
|
249
250
|
<View
|
|
250
251
|
pointerEvents="box-none"
|
|
252
|
+
position="bottom"
|
|
251
253
|
style={
|
|
252
254
|
[
|
|
253
255
|
{
|
|
@@ -382,6 +384,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-primary
|
|
|
382
384
|
</View>
|
|
383
385
|
<View
|
|
384
386
|
pointerEvents="box-none"
|
|
387
|
+
position="bottom"
|
|
385
388
|
style={
|
|
386
389
|
[
|
|
387
390
|
{
|
|
@@ -516,6 +519,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is filled-secondar
|
|
|
516
519
|
</View>
|
|
517
520
|
<View
|
|
518
521
|
pointerEvents="box-none"
|
|
522
|
+
position="bottom"
|
|
519
523
|
style={
|
|
520
524
|
[
|
|
521
525
|
{
|
|
@@ -650,6 +654,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-danger
|
|
|
650
654
|
</View>
|
|
651
655
|
<View
|
|
652
656
|
pointerEvents="box-none"
|
|
657
|
+
position="bottom"
|
|
653
658
|
style={
|
|
654
659
|
[
|
|
655
660
|
{
|
|
@@ -784,6 +789,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-primar
|
|
|
784
789
|
</View>
|
|
785
790
|
<View
|
|
786
791
|
pointerEvents="box-none"
|
|
792
|
+
position="bottom"
|
|
787
793
|
style={
|
|
788
794
|
[
|
|
789
795
|
{
|
|
@@ -918,6 +924,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is outlined-second
|
|
|
918
924
|
</View>
|
|
919
925
|
<View
|
|
920
926
|
pointerEvents="box-none"
|
|
927
|
+
position="bottom"
|
|
921
928
|
style={
|
|
922
929
|
[
|
|
923
930
|
{
|
|
@@ -1052,6 +1059,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-danger 1`]
|
|
|
1052
1059
|
</View>
|
|
1053
1060
|
<View
|
|
1054
1061
|
pointerEvents="box-none"
|
|
1062
|
+
position="bottom"
|
|
1055
1063
|
style={
|
|
1056
1064
|
[
|
|
1057
1065
|
{
|
|
@@ -1186,6 +1194,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-primary 1`
|
|
|
1186
1194
|
</View>
|
|
1187
1195
|
<View
|
|
1188
1196
|
pointerEvents="box-none"
|
|
1197
|
+
position="bottom"
|
|
1189
1198
|
style={
|
|
1190
1199
|
[
|
|
1191
1200
|
{
|
|
@@ -1320,6 +1329,7 @@ exports[`LoadingIndicator renders correctly when themeVariant is text-secondary
|
|
|
1320
1329
|
</View>
|
|
1321
1330
|
<View
|
|
1322
1331
|
pointerEvents="box-none"
|
|
1332
|
+
position="bottom"
|
|
1323
1333
|
style={
|
|
1324
1334
|
[
|
|
1325
1335
|
{
|
|
@@ -105,6 +105,7 @@ exports[`UtilityButton snapshot has intent primary style 1`] = `
|
|
|
105
105
|
</View>
|
|
106
106
|
<View
|
|
107
107
|
pointerEvents="box-none"
|
|
108
|
+
position="bottom"
|
|
108
109
|
style={
|
|
109
110
|
[
|
|
110
111
|
{
|
|
@@ -230,6 +231,7 @@ exports[`UtilityButton snapshot has intent text style 1`] = `
|
|
|
230
231
|
</View>
|
|
231
232
|
<View
|
|
232
233
|
pointerEvents="box-none"
|
|
234
|
+
position="bottom"
|
|
233
235
|
style={
|
|
234
236
|
[
|
|
235
237
|
{
|
|
@@ -81,6 +81,7 @@ exports[`Button renders correctly 1`] = `
|
|
|
81
81
|
</View>
|
|
82
82
|
<View
|
|
83
83
|
pointerEvents="box-none"
|
|
84
|
+
position="bottom"
|
|
84
85
|
style={
|
|
85
86
|
[
|
|
86
87
|
{
|
|
@@ -256,6 +257,7 @@ exports[`Button renders correctly 2`] = `
|
|
|
256
257
|
</View>
|
|
257
258
|
<View
|
|
258
259
|
pointerEvents="box-none"
|
|
260
|
+
position="bottom"
|
|
259
261
|
style={
|
|
260
262
|
[
|
|
261
263
|
{
|
|
@@ -357,6 +359,7 @@ exports[`Button renders correctly 3`] = `
|
|
|
357
359
|
</View>
|
|
358
360
|
<View
|
|
359
361
|
pointerEvents="box-none"
|
|
362
|
+
position="bottom"
|
|
360
363
|
style={
|
|
361
364
|
[
|
|
362
365
|
{
|
|
@@ -460,6 +463,7 @@ exports[`Button renders correctly 4`] = `
|
|
|
460
463
|
</View>
|
|
461
464
|
<View
|
|
462
465
|
pointerEvents="box-none"
|
|
466
|
+
position="bottom"
|
|
463
467
|
style={
|
|
464
468
|
[
|
|
465
469
|
{
|
|
@@ -637,6 +641,7 @@ exports[`Button renders correctly 5`] = `
|
|
|
637
641
|
</View>
|
|
638
642
|
<View
|
|
639
643
|
pointerEvents="box-none"
|
|
644
|
+
position="bottom"
|
|
640
645
|
style={
|
|
641
646
|
[
|
|
642
647
|
{
|
|
@@ -740,6 +745,7 @@ exports[`Button renders correctly 6`] = `
|
|
|
740
745
|
</View>
|
|
741
746
|
<View
|
|
742
747
|
pointerEvents="box-none"
|
|
748
|
+
position="bottom"
|
|
743
749
|
style={
|
|
744
750
|
[
|
|
745
751
|
{
|
|
@@ -842,6 +848,7 @@ exports[`Button renders correctly 7`] = `
|
|
|
842
848
|
</View>
|
|
843
849
|
<View
|
|
844
850
|
pointerEvents="box-none"
|
|
851
|
+
position="bottom"
|
|
845
852
|
style={
|
|
846
853
|
[
|
|
847
854
|
{
|
|
@@ -1017,6 +1024,7 @@ exports[`Button renders correctly 8`] = `
|
|
|
1017
1024
|
</View>
|
|
1018
1025
|
<View
|
|
1019
1026
|
pointerEvents="box-none"
|
|
1027
|
+
position="bottom"
|
|
1020
1028
|
style={
|
|
1021
1029
|
[
|
|
1022
1030
|
{
|
|
@@ -1119,6 +1127,7 @@ exports[`Button renders correctly 9`] = `
|
|
|
1119
1127
|
</View>
|
|
1120
1128
|
<View
|
|
1121
1129
|
pointerEvents="box-none"
|
|
1130
|
+
position="bottom"
|
|
1122
1131
|
style={
|
|
1123
1132
|
[
|
|
1124
1133
|
{
|
|
@@ -1221,6 +1230,7 @@ exports[`Button renders correctly 10`] = `
|
|
|
1221
1230
|
</View>
|
|
1222
1231
|
<View
|
|
1223
1232
|
pointerEvents="box-none"
|
|
1233
|
+
position="bottom"
|
|
1224
1234
|
style={
|
|
1225
1235
|
[
|
|
1226
1236
|
{
|
|
@@ -1396,6 +1406,7 @@ exports[`Button renders correctly 11`] = `
|
|
|
1396
1406
|
</View>
|
|
1397
1407
|
<View
|
|
1398
1408
|
pointerEvents="box-none"
|
|
1409
|
+
position="bottom"
|
|
1399
1410
|
style={
|
|
1400
1411
|
[
|
|
1401
1412
|
{
|
|
@@ -1498,6 +1509,7 @@ exports[`Button renders correctly 12`] = `
|
|
|
1498
1509
|
</View>
|
|
1499
1510
|
<View
|
|
1500
1511
|
pointerEvents="box-none"
|
|
1512
|
+
position="bottom"
|
|
1501
1513
|
style={
|
|
1502
1514
|
[
|
|
1503
1515
|
{
|
|
@@ -1600,6 +1612,7 @@ exports[`Button renders correctly 13`] = `
|
|
|
1600
1612
|
</View>
|
|
1601
1613
|
<View
|
|
1602
1614
|
pointerEvents="box-none"
|
|
1615
|
+
position="bottom"
|
|
1603
1616
|
style={
|
|
1604
1617
|
[
|
|
1605
1618
|
{
|
|
@@ -1775,6 +1788,7 @@ exports[`Button renders correctly 14`] = `
|
|
|
1775
1788
|
</View>
|
|
1776
1789
|
<View
|
|
1777
1790
|
pointerEvents="box-none"
|
|
1791
|
+
position="bottom"
|
|
1778
1792
|
style={
|
|
1779
1793
|
[
|
|
1780
1794
|
{
|
|
@@ -1877,6 +1891,7 @@ exports[`Button renders correctly 15`] = `
|
|
|
1877
1891
|
</View>
|
|
1878
1892
|
<View
|
|
1879
1893
|
pointerEvents="box-none"
|
|
1894
|
+
position="bottom"
|
|
1880
1895
|
style={
|
|
1881
1896
|
[
|
|
1882
1897
|
{
|
|
@@ -2053,6 +2068,7 @@ exports[`Button renders loading icon 1`] = `
|
|
|
2053
2068
|
</View>
|
|
2054
2069
|
<View
|
|
2055
2070
|
pointerEvents="box-none"
|
|
2071
|
+
position="bottom"
|
|
2056
2072
|
style={
|
|
2057
2073
|
[
|
|
2058
2074
|
{
|