@hero-design/rn 8.43.1 → 8.44.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 +10 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +366 -359
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +366 -359
- package/package.json +1 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +564 -452
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +790 -706
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +848 -652
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +170 -142
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +138 -82
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +745 -689
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +157 -73
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +273 -189
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +391 -223
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +119 -63
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +306 -278
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +317 -233
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -120
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -810
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +196 -140
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1666 -1218
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +70 -42
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1623 -727
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -415
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +205 -65
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +292 -124
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +486 -430
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +196 -84
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1720 -1636
- package/src/components/Carousel/__tests__/index.spec.tsx +7 -6
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +400 -176
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +574 -406
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1170 -834
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +73 -17
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +94 -38
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +421 -337
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +586 -502
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +200 -172
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +192 -164
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +471 -443
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +97 -69
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -243
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +169 -113
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +845 -789
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +98 -42
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +197 -113
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +290 -206
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +45 -17
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +2 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +158 -46
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +164 -52
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +242 -186
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +761 -649
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +268 -156
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +473 -221
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +60 -8
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +83 -55
- package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +293 -153
- package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +809 -697
- package/src/components/Portal/__tests__/PortalHost.spec.tsx +12 -14
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +43 -15
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +743 -603
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +188 -132
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +256 -228
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +864 -780
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +128 -44
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +406 -378
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +64 -36
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +371 -315
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +158 -46
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +394 -226
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +93 -65
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2402 -2290
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +180 -24
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -6
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +73 -45
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2309 -2197
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +150 -20
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +490 -294
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +105 -77
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1308 -636
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +121 -93
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +323 -213
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +210 -126
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +58 -30
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +226 -114
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +145 -117
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +202 -62
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +132 -76
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +7 -7
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +206 -94
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2214 -2130
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +523 -495
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +121 -65
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1637 -1553
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +554 -274
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1542 -646
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3177 -2701
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +390 -334
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +662 -606
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +871 -675
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +582 -498
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +683 -459
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +704 -256
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +855 -323
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +430 -150
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +572 -208
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +328 -104
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +462 -154
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +880 -320
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1035 -391
- package/src/testHelpers/renderWithTheme.tsx +2 -2
- 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
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`rendering allows custom renderer 1`] = `
|
|
4
|
-
|
|
4
|
+
<View
|
|
5
|
+
style={
|
|
6
|
+
{
|
|
7
|
+
"flex": 1,
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
>
|
|
5
11
|
<View
|
|
6
12
|
pointerEvents="auto"
|
|
7
13
|
>
|
|
@@ -239,7 +245,7 @@ exports[`rendering allows custom renderer 1`] = `
|
|
|
239
245
|
</View>
|
|
240
246
|
</View>
|
|
241
247
|
</View>
|
|
242
|
-
</View
|
|
248
|
+
</View>
|
|
243
249
|
<Modal
|
|
244
250
|
hardwareAccelerated={false}
|
|
245
251
|
onRequestClose={[Function]}
|
|
@@ -1485,12 +1491,38 @@ exports[`rendering allows custom renderer 1`] = `
|
|
|
1485
1491
|
</RCTSafeAreaView>
|
|
1486
1492
|
</View>
|
|
1487
1493
|
</View>
|
|
1488
|
-
</Modal
|
|
1489
|
-
|
|
1494
|
+
</Modal>
|
|
1495
|
+
<View
|
|
1496
|
+
pointerEvents="box-none"
|
|
1497
|
+
position="bottom"
|
|
1498
|
+
style={
|
|
1499
|
+
[
|
|
1500
|
+
{
|
|
1501
|
+
"bottom": 0,
|
|
1502
|
+
"elevation": 9999,
|
|
1503
|
+
"flexDirection": "column-reverse",
|
|
1504
|
+
"left": 0,
|
|
1505
|
+
"paddingHorizontal": 24,
|
|
1506
|
+
"paddingVertical": 16,
|
|
1507
|
+
"position": "absolute",
|
|
1508
|
+
"right": 0,
|
|
1509
|
+
"top": 0,
|
|
1510
|
+
},
|
|
1511
|
+
undefined,
|
|
1512
|
+
]
|
|
1513
|
+
}
|
|
1514
|
+
/>
|
|
1515
|
+
</View>
|
|
1490
1516
|
`;
|
|
1491
1517
|
|
|
1492
1518
|
exports[`rendering renders correctly when bottom sheet is NOT visible 1`] = `
|
|
1493
|
-
|
|
1519
|
+
<View
|
|
1520
|
+
style={
|
|
1521
|
+
{
|
|
1522
|
+
"flex": 1,
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
>
|
|
1494
1526
|
<View
|
|
1495
1527
|
pointerEvents="auto"
|
|
1496
1528
|
>
|
|
@@ -1727,18 +1759,44 @@ exports[`rendering renders correctly when bottom sheet is NOT visible 1`] = `
|
|
|
1727
1759
|
</View>
|
|
1728
1760
|
</View>
|
|
1729
1761
|
</View>
|
|
1730
|
-
</View
|
|
1762
|
+
</View>
|
|
1731
1763
|
<Modal
|
|
1732
1764
|
hardwareAccelerated={false}
|
|
1733
1765
|
onRequestClose={[Function]}
|
|
1734
1766
|
transparent={true}
|
|
1735
1767
|
visible={false}
|
|
1736
|
-
|
|
1737
|
-
|
|
1768
|
+
/>
|
|
1769
|
+
<View
|
|
1770
|
+
pointerEvents="box-none"
|
|
1771
|
+
position="bottom"
|
|
1772
|
+
style={
|
|
1773
|
+
[
|
|
1774
|
+
{
|
|
1775
|
+
"bottom": 0,
|
|
1776
|
+
"elevation": 9999,
|
|
1777
|
+
"flexDirection": "column-reverse",
|
|
1778
|
+
"left": 0,
|
|
1779
|
+
"paddingHorizontal": 24,
|
|
1780
|
+
"paddingVertical": 16,
|
|
1781
|
+
"position": "absolute",
|
|
1782
|
+
"right": 0,
|
|
1783
|
+
"top": 0,
|
|
1784
|
+
},
|
|
1785
|
+
undefined,
|
|
1786
|
+
]
|
|
1787
|
+
}
|
|
1788
|
+
/>
|
|
1789
|
+
</View>
|
|
1738
1790
|
`;
|
|
1739
1791
|
|
|
1740
1792
|
exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
1741
|
-
|
|
1793
|
+
<View
|
|
1794
|
+
style={
|
|
1795
|
+
{
|
|
1796
|
+
"flex": 1,
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
>
|
|
1742
1800
|
<View
|
|
1743
1801
|
pointerEvents="auto"
|
|
1744
1802
|
>
|
|
@@ -1975,7 +2033,7 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
|
1975
2033
|
</View>
|
|
1976
2034
|
</View>
|
|
1977
2035
|
</View>
|
|
1978
|
-
</View
|
|
2036
|
+
</View>
|
|
1979
2037
|
<Modal
|
|
1980
2038
|
hardwareAccelerated={false}
|
|
1981
2039
|
onRequestClose={[Function]}
|
|
@@ -3427,12 +3485,38 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
|
3427
3485
|
</RCTSafeAreaView>
|
|
3428
3486
|
</View>
|
|
3429
3487
|
</View>
|
|
3430
|
-
</Modal
|
|
3431
|
-
|
|
3488
|
+
</Modal>
|
|
3489
|
+
<View
|
|
3490
|
+
pointerEvents="box-none"
|
|
3491
|
+
position="bottom"
|
|
3492
|
+
style={
|
|
3493
|
+
[
|
|
3494
|
+
{
|
|
3495
|
+
"bottom": 0,
|
|
3496
|
+
"elevation": 9999,
|
|
3497
|
+
"flexDirection": "column-reverse",
|
|
3498
|
+
"left": 0,
|
|
3499
|
+
"paddingHorizontal": 24,
|
|
3500
|
+
"paddingVertical": 16,
|
|
3501
|
+
"position": "absolute",
|
|
3502
|
+
"right": 0,
|
|
3503
|
+
"top": 0,
|
|
3504
|
+
},
|
|
3505
|
+
undefined,
|
|
3506
|
+
]
|
|
3507
|
+
}
|
|
3508
|
+
/>
|
|
3509
|
+
</View>
|
|
3432
3510
|
`;
|
|
3433
3511
|
|
|
3434
3512
|
exports[`rendering renders correctly when input is loading 1`] = `
|
|
3435
|
-
|
|
3513
|
+
<View
|
|
3514
|
+
style={
|
|
3515
|
+
{
|
|
3516
|
+
"flex": 1,
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3519
|
+
>
|
|
3436
3520
|
<View
|
|
3437
3521
|
pointerEvents="none"
|
|
3438
3522
|
>
|
|
@@ -3682,18 +3766,44 @@ exports[`rendering renders correctly when input is loading 1`] = `
|
|
|
3682
3766
|
</View>
|
|
3683
3767
|
</View>
|
|
3684
3768
|
</View>
|
|
3685
|
-
</View
|
|
3769
|
+
</View>
|
|
3686
3770
|
<Modal
|
|
3687
3771
|
hardwareAccelerated={false}
|
|
3688
3772
|
onRequestClose={[Function]}
|
|
3689
3773
|
transparent={true}
|
|
3690
3774
|
visible={false}
|
|
3691
|
-
|
|
3692
|
-
|
|
3775
|
+
/>
|
|
3776
|
+
<View
|
|
3777
|
+
pointerEvents="box-none"
|
|
3778
|
+
position="bottom"
|
|
3779
|
+
style={
|
|
3780
|
+
[
|
|
3781
|
+
{
|
|
3782
|
+
"bottom": 0,
|
|
3783
|
+
"elevation": 9999,
|
|
3784
|
+
"flexDirection": "column-reverse",
|
|
3785
|
+
"left": 0,
|
|
3786
|
+
"paddingHorizontal": 24,
|
|
3787
|
+
"paddingVertical": 16,
|
|
3788
|
+
"position": "absolute",
|
|
3789
|
+
"right": 0,
|
|
3790
|
+
"top": 0,
|
|
3791
|
+
},
|
|
3792
|
+
undefined,
|
|
3793
|
+
]
|
|
3794
|
+
}
|
|
3795
|
+
/>
|
|
3796
|
+
</View>
|
|
3693
3797
|
`;
|
|
3694
3798
|
|
|
3695
3799
|
exports[`rendering renders correctly when receives sections 1`] = `
|
|
3696
|
-
|
|
3800
|
+
<View
|
|
3801
|
+
style={
|
|
3802
|
+
{
|
|
3803
|
+
"flex": 1,
|
|
3804
|
+
}
|
|
3805
|
+
}
|
|
3806
|
+
>
|
|
3697
3807
|
<View
|
|
3698
3808
|
pointerEvents="auto"
|
|
3699
3809
|
>
|
|
@@ -3930,7 +4040,7 @@ exports[`rendering renders correctly when receives sections 1`] = `
|
|
|
3930
4040
|
</View>
|
|
3931
4041
|
</View>
|
|
3932
4042
|
</View>
|
|
3933
|
-
</View
|
|
4043
|
+
</View>
|
|
3934
4044
|
<Modal
|
|
3935
4045
|
hardwareAccelerated={false}
|
|
3936
4046
|
onRequestClose={[Function]}
|
|
@@ -4962,12 +5072,38 @@ exports[`rendering renders correctly when receives sections 1`] = `
|
|
|
4962
5072
|
</RCTSafeAreaView>
|
|
4963
5073
|
</View>
|
|
4964
5074
|
</View>
|
|
4965
|
-
</Modal
|
|
4966
|
-
|
|
5075
|
+
</Modal>
|
|
5076
|
+
<View
|
|
5077
|
+
pointerEvents="box-none"
|
|
5078
|
+
position="bottom"
|
|
5079
|
+
style={
|
|
5080
|
+
[
|
|
5081
|
+
{
|
|
5082
|
+
"bottom": 0,
|
|
5083
|
+
"elevation": 9999,
|
|
5084
|
+
"flexDirection": "column-reverse",
|
|
5085
|
+
"left": 0,
|
|
5086
|
+
"paddingHorizontal": 24,
|
|
5087
|
+
"paddingVertical": 16,
|
|
5088
|
+
"position": "absolute",
|
|
5089
|
+
"right": 0,
|
|
5090
|
+
"top": 0,
|
|
5091
|
+
},
|
|
5092
|
+
undefined,
|
|
5093
|
+
]
|
|
5094
|
+
}
|
|
5095
|
+
/>
|
|
5096
|
+
</View>
|
|
4967
5097
|
`;
|
|
4968
5098
|
|
|
4969
5099
|
exports[`rendering renders correctly when receives sections 2`] = `
|
|
4970
|
-
|
|
5100
|
+
<View
|
|
5101
|
+
style={
|
|
5102
|
+
{
|
|
5103
|
+
"flex": 1,
|
|
5104
|
+
}
|
|
5105
|
+
}
|
|
5106
|
+
>
|
|
4971
5107
|
<View
|
|
4972
5108
|
pointerEvents="auto"
|
|
4973
5109
|
>
|
|
@@ -5204,7 +5340,7 @@ exports[`rendering renders correctly when receives sections 2`] = `
|
|
|
5204
5340
|
</View>
|
|
5205
5341
|
</View>
|
|
5206
5342
|
</View>
|
|
5207
|
-
</View
|
|
5343
|
+
</View>
|
|
5208
5344
|
<Modal
|
|
5209
5345
|
hardwareAccelerated={false}
|
|
5210
5346
|
onRequestClose={[Function]}
|
|
@@ -6208,6 +6344,26 @@ exports[`rendering renders correctly when receives sections 2`] = `
|
|
|
6208
6344
|
</RCTSafeAreaView>
|
|
6209
6345
|
</View>
|
|
6210
6346
|
</View>
|
|
6211
|
-
</Modal
|
|
6212
|
-
|
|
6347
|
+
</Modal>
|
|
6348
|
+
<View
|
|
6349
|
+
pointerEvents="box-none"
|
|
6350
|
+
position="bottom"
|
|
6351
|
+
style={
|
|
6352
|
+
[
|
|
6353
|
+
{
|
|
6354
|
+
"bottom": 0,
|
|
6355
|
+
"elevation": 9999,
|
|
6356
|
+
"flexDirection": "column-reverse",
|
|
6357
|
+
"left": 0,
|
|
6358
|
+
"paddingHorizontal": 24,
|
|
6359
|
+
"paddingVertical": 16,
|
|
6360
|
+
"position": "absolute",
|
|
6361
|
+
"right": 0,
|
|
6362
|
+
"top": 0,
|
|
6363
|
+
},
|
|
6364
|
+
undefined,
|
|
6365
|
+
]
|
|
6366
|
+
}
|
|
6367
|
+
/>
|
|
6368
|
+
</View>
|
|
6213
6369
|
`;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { fireEvent } from '@testing-library/react-native';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
4
3
|
import MultiSelect from '..';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import renderWithTheme from '../../../../testHelpers/renderWithTheme';
|
|
5
|
+
import theme from '../../../../theme';
|
|
7
6
|
import Box from '../../../Box';
|
|
8
7
|
import Button from '../../../Button/Button';
|
|
8
|
+
import HeroDesignProvider from '../../../HeroDesignProvider';
|
|
9
|
+
import List from '../../../List';
|
|
10
|
+
import Typography from '../../../Typography';
|
|
9
11
|
import type { ListRenderOptionInfo } from '../../types';
|
|
10
|
-
import theme, { ThemeProvider } from '../../../../theme';
|
|
11
12
|
|
|
12
13
|
const options = [
|
|
13
14
|
{ text: 'Monday', value: 'mon' },
|
|
@@ -155,7 +156,7 @@ describe('rendering', () => {
|
|
|
155
156
|
|
|
156
157
|
// should rerender UI if values are changed
|
|
157
158
|
rerender(
|
|
158
|
-
<
|
|
159
|
+
<HeroDesignProvider theme={theme}>
|
|
159
160
|
<MultiSelect
|
|
160
161
|
label="Allow notifications"
|
|
161
162
|
footerLabel="Confirm"
|
|
@@ -163,7 +164,7 @@ describe('rendering', () => {
|
|
|
163
164
|
value={['a', 'a1']}
|
|
164
165
|
onConfirm={jest.fn()}
|
|
165
166
|
/>
|
|
166
|
-
</
|
|
167
|
+
</HeroDesignProvider>
|
|
167
168
|
);
|
|
168
169
|
expect(toJSON()).toMatchSnapshot();
|
|
169
170
|
expect(getByTestId('selected-icon-A1')).toBeTruthy();
|
|
@@ -2,72 +2,100 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Option renders correctly 1`] = `
|
|
4
4
|
<View
|
|
5
|
-
|
|
6
|
-
{
|
|
7
|
-
"disabled": false,
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
accessibilityValue={
|
|
5
|
+
style={
|
|
11
6
|
{
|
|
12
|
-
"
|
|
13
|
-
"min": undefined,
|
|
14
|
-
"now": undefined,
|
|
15
|
-
"text": undefined,
|
|
7
|
+
"flex": 1,
|
|
16
8
|
}
|
|
17
9
|
}
|
|
18
|
-
accessible={true}
|
|
19
|
-
focusable={true}
|
|
20
|
-
onClick={[Function]}
|
|
21
|
-
onResponderGrant={[Function]}
|
|
22
|
-
onResponderMove={[Function]}
|
|
23
|
-
onResponderRelease={[Function]}
|
|
24
|
-
onResponderTerminate={[Function]}
|
|
25
|
-
onResponderTerminationRequest={[Function]}
|
|
26
|
-
onStartShouldSetResponder={[Function]}
|
|
27
|
-
style={
|
|
28
|
-
[
|
|
29
|
-
{
|
|
30
|
-
"alignItems": "center",
|
|
31
|
-
"backgroundColor": "#ece8ef",
|
|
32
|
-
"borderRadius": 4,
|
|
33
|
-
"flexDirection": "row",
|
|
34
|
-
"opacity": 1,
|
|
35
|
-
"padding": 16,
|
|
36
|
-
},
|
|
37
|
-
undefined,
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
10
|
>
|
|
41
11
|
<View
|
|
12
|
+
accessibilityState={
|
|
13
|
+
{
|
|
14
|
+
"disabled": false,
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
accessibilityValue={
|
|
18
|
+
{
|
|
19
|
+
"max": undefined,
|
|
20
|
+
"min": undefined,
|
|
21
|
+
"now": undefined,
|
|
22
|
+
"text": undefined,
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
accessible={true}
|
|
26
|
+
focusable={true}
|
|
27
|
+
onClick={[Function]}
|
|
28
|
+
onResponderGrant={[Function]}
|
|
29
|
+
onResponderMove={[Function]}
|
|
30
|
+
onResponderRelease={[Function]}
|
|
31
|
+
onResponderTerminate={[Function]}
|
|
32
|
+
onResponderTerminationRequest={[Function]}
|
|
33
|
+
onStartShouldSetResponder={[Function]}
|
|
42
34
|
style={
|
|
43
35
|
[
|
|
44
36
|
{
|
|
45
|
-
"
|
|
37
|
+
"alignItems": "center",
|
|
38
|
+
"backgroundColor": "#ece8ef",
|
|
39
|
+
"borderRadius": 4,
|
|
40
|
+
"flexDirection": "row",
|
|
41
|
+
"opacity": 1,
|
|
42
|
+
"padding": 16,
|
|
46
43
|
},
|
|
47
44
|
undefined,
|
|
48
45
|
]
|
|
49
46
|
}
|
|
50
47
|
>
|
|
51
|
-
<
|
|
52
|
-
allowFontScaling={false}
|
|
48
|
+
<View
|
|
53
49
|
style={
|
|
54
50
|
[
|
|
55
51
|
{
|
|
56
|
-
"
|
|
57
|
-
"fontFamily": "BeVietnamPro-Regular",
|
|
58
|
-
"fontSize": 16,
|
|
59
|
-
"letterSpacing": 0.48,
|
|
60
|
-
"lineHeight": 24,
|
|
52
|
+
"flex": 1,
|
|
61
53
|
},
|
|
62
54
|
undefined,
|
|
63
55
|
]
|
|
64
56
|
}
|
|
65
|
-
themeIntent="body"
|
|
66
|
-
themeTypeface="neutral"
|
|
67
|
-
themeVariant="regular"
|
|
68
57
|
>
|
|
69
|
-
|
|
70
|
-
|
|
58
|
+
<Text
|
|
59
|
+
allowFontScaling={false}
|
|
60
|
+
style={
|
|
61
|
+
[
|
|
62
|
+
{
|
|
63
|
+
"color": "#001f23",
|
|
64
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
65
|
+
"fontSize": 16,
|
|
66
|
+
"letterSpacing": 0.48,
|
|
67
|
+
"lineHeight": 24,
|
|
68
|
+
},
|
|
69
|
+
undefined,
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
themeIntent="body"
|
|
73
|
+
themeTypeface="neutral"
|
|
74
|
+
themeVariant="regular"
|
|
75
|
+
>
|
|
76
|
+
testOption
|
|
77
|
+
</Text>
|
|
78
|
+
</View>
|
|
71
79
|
</View>
|
|
80
|
+
<View
|
|
81
|
+
pointerEvents="box-none"
|
|
82
|
+
position="bottom"
|
|
83
|
+
style={
|
|
84
|
+
[
|
|
85
|
+
{
|
|
86
|
+
"bottom": 0,
|
|
87
|
+
"elevation": 9999,
|
|
88
|
+
"flexDirection": "column-reverse",
|
|
89
|
+
"left": 0,
|
|
90
|
+
"paddingHorizontal": 24,
|
|
91
|
+
"paddingVertical": 16,
|
|
92
|
+
"position": "absolute",
|
|
93
|
+
"right": 0,
|
|
94
|
+
"top": 0,
|
|
95
|
+
},
|
|
96
|
+
undefined,
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
/>
|
|
72
100
|
</View>
|
|
73
101
|
`;
|