@hero-design/rn 8.52.0 → 8.52.2-rc2.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 +26 -0
- package/es/index.js +399 -709
- package/lib/index.js +397 -708
- package/package.json +7 -7
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +0 -4
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +0 -2
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +0 -2
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +0 -3
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +0 -6
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +0 -2
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +32 -21
- package/src/components/BottomSheet/index.tsx +1 -1
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +0 -21
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -10
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -10
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +0 -16
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +0 -1
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -32
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +0 -5
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +0 -7
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +0 -5
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
- package/src/components/Carousel/CardCarousel.tsx +1 -5
- package/src/components/Carousel/StyledCardCarousel.tsx +1 -16
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +92 -174
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +0 -4
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +0 -1
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1 -803
- package/src/components/Carousel/__tests__/index.spec.tsx +37 -47
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +0 -8
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
- package/src/components/Checkbox/index.tsx +1 -13
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +0 -2
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +0 -15
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +0 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +0 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +309 -329
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +0 -12
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Error/index.tsx +3 -20
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/FAB/ActionGroup/index.tsx +1 -14
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +0 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +0 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +0 -2
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +0 -4
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -9
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +0 -5
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -5
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +0 -2
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +0 -1
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +0 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +0 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +0 -2
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +0 -4
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
- package/src/components/SectionHeading/__tests__/index.spec.tsx +0 -1
- package/src/components/SectionHeading/index.tsx +32 -57
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +128 -42
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +96 -35
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +0 -7
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +0 -1
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +0 -24
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -4
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +0 -5
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +0 -4
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +0 -3
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +0 -1
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +0 -2
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +0 -10
- package/src/components/Tag/index.tsx +0 -12
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +0 -21
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -17
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +0 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +309 -330
- package/src/components/Toast/StyledToast.tsx +7 -9
- package/src/components/Toast/Toast.tsx +1 -4
- package/src/components/Toast/ToastContainer.tsx +2 -6
- package/src/components/Toast/ToastContext.ts +2 -5
- package/src/components/Toast/ToastProvider.tsx +2 -19
- package/src/components/Toast/__tests__/ToastContainer.spec.tsx +12 -15
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -7
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +6 -14
- package/src/components/Toast/types.ts +1 -5
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +0 -3
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +0 -8
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +0 -16
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +0 -19
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +0 -10
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +0 -13
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +0 -8
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +0 -11
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +0 -20
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +0 -20
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +0 -23
- package/src/index.ts +0 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -112
- package/src/theme/components/badge.ts +1 -28
- package/src/theme/components/button.ts +0 -24
- package/src/theme/components/cardCarousel.ts +1 -8
- package/src/theme/components/carousel.ts +1 -28
- package/src/theme/components/empty.ts +1 -23
- package/src/theme/components/error.ts +1 -32
- package/src/theme/components/fab.ts +2 -13
- package/src/theme/components/pinInput.ts +0 -32
- package/src/theme/components/success.ts +1 -23
- package/src/theme/components/tag.ts +1 -28
- package/src/theme/components/textInput.ts +0 -5
- package/src/theme/getTheme.ts +18 -21
- package/src/types.ts +0 -2
- package/types/components/Carousel/StyledCardCarousel.d.ts +1 -7
- package/types/components/Checkbox/index.d.ts +1 -6
- package/types/components/Error/index.d.ts +3 -9
- package/types/components/FAB/ActionGroup/index.d.ts +0 -5
- package/types/components/SectionHeading/index.d.ts +1 -11
- package/types/components/Tag/index.d.ts +1 -6
- package/types/components/Toast/StyledToast.d.ts +0 -2
- 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 +1 -5
- package/types/index.d.ts +1 -2
- package/types/theme/components/badge.d.ts +0 -24
- package/types/theme/components/button.d.ts +0 -20
- package/types/theme/components/cardCarousel.d.ts +0 -10
- package/types/theme/components/carousel.d.ts +0 -24
- package/types/theme/components/empty.d.ts +0 -19
- package/types/theme/components/error.d.ts +0 -27
- package/types/theme/components/fab.d.ts +8 -19
- package/types/theme/components/pinInput.d.ts +0 -27
- package/types/theme/components/success.d.ts +0 -19
- package/types/theme/components/tag.d.ts +0 -24
- package/types/theme/components/textInput.d.ts +0 -5
- package/types/theme/getTheme.d.ts +18 -20
- package/types/types.d.ts +1 -2
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +0 -60
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +0 -413
- package/src/components/BottomNavigation/__tests__/index.spec.tsx +0 -97
- package/src/components/BottomNavigation/index.tsx +0 -166
- package/src/theme/components/bottomNavigation.ts +0 -27
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -52
- package/types/components/BottomNavigation/index.d.ts +0 -45
- package/types/theme/components/bottomNavigation.d.ts +0 -23
|
@@ -46,7 +46,6 @@ exports[`Progress.Bar renders correctly 1`] = `
|
|
|
46
46
|
</View>
|
|
47
47
|
<View
|
|
48
48
|
pointerEvents="box-none"
|
|
49
|
-
position="bottom"
|
|
50
49
|
style={
|
|
51
50
|
[
|
|
52
51
|
{
|
|
@@ -113,7 +112,6 @@ exports[`Progress.Bar renders correctly with intent 1`] = `
|
|
|
113
112
|
</View>
|
|
114
113
|
<View
|
|
115
114
|
pointerEvents="box-none"
|
|
116
|
-
position="bottom"
|
|
117
115
|
style={
|
|
118
116
|
[
|
|
119
117
|
{
|
|
@@ -431,7 +429,6 @@ exports[`Progress.Circle allows to custom value renderer 1`] = `
|
|
|
431
429
|
</View>
|
|
432
430
|
<View
|
|
433
431
|
pointerEvents="box-none"
|
|
434
|
-
position="bottom"
|
|
435
432
|
style={
|
|
436
433
|
[
|
|
437
434
|
{
|
|
@@ -749,7 +746,6 @@ exports[`Progress.Circle renders correctly 1`] = `
|
|
|
749
746
|
</View>
|
|
750
747
|
<View
|
|
751
748
|
pointerEvents="box-none"
|
|
752
|
-
position="bottom"
|
|
753
749
|
style={
|
|
754
750
|
[
|
|
755
751
|
{
|
|
@@ -1067,7 +1063,6 @@ exports[`Progress.Circle renders correctly with intent 1`] = `
|
|
|
1067
1063
|
</View>
|
|
1068
1064
|
<View
|
|
1069
1065
|
pointerEvents="box-none"
|
|
1070
|
-
position="bottom"
|
|
1071
1066
|
style={
|
|
1072
1067
|
[
|
|
1073
1068
|
{
|
|
@@ -121,7 +121,6 @@ exports[`rendering renders correctly when checked 1`] = `
|
|
|
121
121
|
</View>
|
|
122
122
|
<View
|
|
123
123
|
pointerEvents="box-none"
|
|
124
|
-
position="bottom"
|
|
125
124
|
style={
|
|
126
125
|
[
|
|
127
126
|
{
|
|
@@ -248,7 +247,6 @@ exports[`rendering renders correctly when not checked 1`] = `
|
|
|
248
247
|
</View>
|
|
249
248
|
<View
|
|
250
249
|
pointerEvents="box-none"
|
|
251
|
-
position="bottom"
|
|
252
250
|
style={
|
|
253
251
|
[
|
|
254
252
|
{
|
|
@@ -314,7 +314,6 @@ exports[`Rate renders correctly 1`] = `
|
|
|
314
314
|
</View>
|
|
315
315
|
<View
|
|
316
316
|
pointerEvents="box-none"
|
|
317
|
-
position="bottom"
|
|
318
317
|
style={
|
|
319
318
|
[
|
|
320
319
|
{
|
|
@@ -649,7 +648,6 @@ exports[`Rate renders correctly it is readonly 1`] = `
|
|
|
649
648
|
</View>
|
|
650
649
|
<View
|
|
651
650
|
pointerEvents="box-none"
|
|
652
|
-
position="bottom"
|
|
653
651
|
style={
|
|
654
652
|
[
|
|
655
653
|
{
|
|
@@ -984,7 +982,6 @@ exports[`Rate renders correctly when disabled 1`] = `
|
|
|
984
982
|
</View>
|
|
985
983
|
<View
|
|
986
984
|
pointerEvents="box-none"
|
|
987
|
-
position="bottom"
|
|
988
985
|
style={
|
|
989
986
|
[
|
|
990
987
|
{
|
|
@@ -31,7 +31,6 @@ exports[`RefreshControl render correctly with props 1`] = `
|
|
|
31
31
|
</RCTScrollView>
|
|
32
32
|
<View
|
|
33
33
|
pointerEvents="box-none"
|
|
34
|
-
position="bottom"
|
|
35
34
|
style={
|
|
36
35
|
[
|
|
37
36
|
{
|
|
@@ -81,7 +80,6 @@ exports[`RefreshControl renders correctly when refreshing is false 1`] = `
|
|
|
81
80
|
</RCTScrollView>
|
|
82
81
|
<View
|
|
83
82
|
pointerEvents="box-none"
|
|
84
|
-
position="bottom"
|
|
85
83
|
style={
|
|
86
84
|
[
|
|
87
85
|
{
|
|
@@ -131,7 +129,6 @@ exports[`RefreshControl renders correctly when refreshing is true 1`] = `
|
|
|
131
129
|
</RCTScrollView>
|
|
132
130
|
<View
|
|
133
131
|
pointerEvents="box-none"
|
|
134
|
-
position="bottom"
|
|
135
132
|
style={
|
|
136
133
|
[
|
|
137
134
|
{
|
|
@@ -298,7 +298,6 @@ exports[`RichTextEditor onMessage recevied event editor-layout should update hei
|
|
|
298
298
|
</View>
|
|
299
299
|
<View
|
|
300
300
|
pointerEvents="box-none"
|
|
301
|
-
position="bottom"
|
|
302
301
|
style={
|
|
303
302
|
[
|
|
304
303
|
{
|
|
@@ -616,7 +615,6 @@ exports[`RichTextEditor should render correctly 1`] = `
|
|
|
616
615
|
</View>
|
|
617
616
|
<View
|
|
618
617
|
pointerEvents="box-none"
|
|
619
|
-
position="bottom"
|
|
620
618
|
style={
|
|
621
619
|
[
|
|
622
620
|
{
|
|
@@ -28,7 +28,6 @@ exports[`StyledHeading renders correct style with medium 1`] = `
|
|
|
28
28
|
/>
|
|
29
29
|
<View
|
|
30
30
|
pointerEvents="box-none"
|
|
31
|
-
position="bottom"
|
|
32
31
|
style={
|
|
33
32
|
[
|
|
34
33
|
{
|
|
@@ -77,7 +76,6 @@ exports[`StyledHeading renders correct style with small 1`] = `
|
|
|
77
76
|
/>
|
|
78
77
|
<View
|
|
79
78
|
pointerEvents="box-none"
|
|
80
|
-
position="bottom"
|
|
81
79
|
style={
|
|
82
80
|
[
|
|
83
81
|
{
|
|
@@ -118,7 +116,6 @@ exports[`StyledIconWrapper renders correct style 1`] = `
|
|
|
118
116
|
/>
|
|
119
117
|
<View
|
|
120
118
|
pointerEvents="box-none"
|
|
121
|
-
position="bottom"
|
|
122
119
|
style={
|
|
123
120
|
[
|
|
124
121
|
{
|
|
@@ -161,7 +158,6 @@ exports[`StyledWrapper renders correct style 1`] = `
|
|
|
161
158
|
/>
|
|
162
159
|
<View
|
|
163
160
|
pointerEvents="box-none"
|
|
164
|
-
position="bottom"
|
|
165
161
|
style={
|
|
166
162
|
[
|
|
167
163
|
{
|
|
@@ -87,7 +87,6 @@ exports[`SectionHeading allows to customise the icon 1`] = `
|
|
|
87
87
|
</View>
|
|
88
88
|
<View
|
|
89
89
|
pointerEvents="box-none"
|
|
90
|
-
position="bottom"
|
|
91
90
|
style={
|
|
92
91
|
[
|
|
93
92
|
{
|
|
@@ -196,7 +195,6 @@ exports[`SectionHeading render icon correctly 1`] = `
|
|
|
196
195
|
</View>
|
|
197
196
|
<View
|
|
198
197
|
pointerEvents="box-none"
|
|
199
|
-
position="bottom"
|
|
200
198
|
style={
|
|
201
199
|
[
|
|
202
200
|
{
|
|
@@ -310,7 +308,6 @@ exports[`SectionHeading render right children correctly 1`] = `
|
|
|
310
308
|
</View>
|
|
311
309
|
<View
|
|
312
310
|
pointerEvents="box-none"
|
|
313
|
-
position="bottom"
|
|
314
311
|
style={
|
|
315
312
|
[
|
|
316
313
|
{
|
|
@@ -403,7 +400,6 @@ exports[`SectionHeading renders correct style with medium 1`] = `
|
|
|
403
400
|
</View>
|
|
404
401
|
<View
|
|
405
402
|
pointerEvents="box-none"
|
|
406
|
-
position="bottom"
|
|
407
403
|
style={
|
|
408
404
|
[
|
|
409
405
|
{
|
|
@@ -495,7 +491,6 @@ exports[`SectionHeading renders correct style with small 1`] = `
|
|
|
495
491
|
</View>
|
|
496
492
|
<View
|
|
497
493
|
pointerEvents="box-none"
|
|
498
|
-
position="bottom"
|
|
499
494
|
style={
|
|
500
495
|
[
|
|
501
496
|
{
|
|
@@ -589,7 +584,6 @@ exports[`SectionHeading renders correctly 1`] = `
|
|
|
589
584
|
</View>
|
|
590
585
|
<View
|
|
591
586
|
pointerEvents="box-none"
|
|
592
|
-
position="bottom"
|
|
593
587
|
style={
|
|
594
588
|
[
|
|
595
589
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
4
|
+
import type { IconName, IconProps } from '../Icon';
|
|
4
5
|
import Icon from '../Icon';
|
|
5
6
|
import Typography from '../Typography';
|
|
6
7
|
import {
|
|
@@ -8,8 +9,6 @@ import {
|
|
|
8
9
|
StyledIconWrapper,
|
|
9
10
|
StyledWrapper,
|
|
10
11
|
} from './StyledHeading';
|
|
11
|
-
import type { IconName, IconProps } from '../Icon';
|
|
12
|
-
import { useDeprecation } from '../../utils/hooks';
|
|
13
12
|
|
|
14
13
|
export interface SectionHeadingProps extends ViewProps {
|
|
15
14
|
/**
|
|
@@ -24,16 +23,6 @@ export interface SectionHeadingProps extends ViewProps {
|
|
|
24
23
|
* Right corner content
|
|
25
24
|
*/
|
|
26
25
|
rightChildren?: ReactElement;
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated fontSize will be removed in the next major release.
|
|
29
|
-
* Size of the text.
|
|
30
|
-
*/
|
|
31
|
-
fontSize?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated fontWeight will be removed in the next major release.
|
|
34
|
-
* Heading's font-weight.
|
|
35
|
-
*/
|
|
36
|
-
fontWeight?: 'light' | 'regular' | 'semi-bold';
|
|
37
26
|
/**
|
|
38
27
|
* Visual intent color to apply to text.
|
|
39
28
|
*/
|
|
@@ -67,54 +56,40 @@ const SectionHeading = ({
|
|
|
67
56
|
icon,
|
|
68
57
|
text,
|
|
69
58
|
rightChildren,
|
|
70
|
-
fontSize = 'large',
|
|
71
59
|
intent = 'body',
|
|
72
|
-
fontWeight = 'regular',
|
|
73
60
|
size = 'medium',
|
|
74
61
|
style,
|
|
75
62
|
testID,
|
|
76
|
-
}: SectionHeadingProps): ReactElement =>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
size={ICON_SIZE_MAP[size]}
|
|
96
|
-
intent={ICON_INTENT_MAP[intent]}
|
|
97
|
-
/>
|
|
98
|
-
) : (
|
|
99
|
-
React.cloneElement(icon, {
|
|
100
|
-
size: ICON_SIZE_MAP[size],
|
|
101
|
-
intent: ICON_INTENT_MAP[intent],
|
|
102
|
-
...icon.props,
|
|
103
|
-
})
|
|
104
|
-
))}
|
|
105
|
-
</StyledIconWrapper>
|
|
63
|
+
}: SectionHeadingProps): ReactElement => (
|
|
64
|
+
<StyledHeading themeSize={size} style={style} testID={testID}>
|
|
65
|
+
<StyledWrapper>
|
|
66
|
+
<StyledIconWrapper>
|
|
67
|
+
{icon !== undefined &&
|
|
68
|
+
(typeof icon === 'string' ? (
|
|
69
|
+
<Icon
|
|
70
|
+
icon={icon}
|
|
71
|
+
size={ICON_SIZE_MAP[size]}
|
|
72
|
+
intent={ICON_INTENT_MAP[intent]}
|
|
73
|
+
/>
|
|
74
|
+
) : (
|
|
75
|
+
React.cloneElement(icon, {
|
|
76
|
+
size: ICON_SIZE_MAP[size],
|
|
77
|
+
intent: ICON_INTENT_MAP[intent],
|
|
78
|
+
...icon.props,
|
|
79
|
+
})
|
|
80
|
+
))}
|
|
81
|
+
</StyledIconWrapper>
|
|
106
82
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
};
|
|
83
|
+
{size === 'small' ? (
|
|
84
|
+
<Typography.Caption intent={intent}>{text}</Typography.Caption>
|
|
85
|
+
) : (
|
|
86
|
+
<Typography.Body variant="small" intent={intent}>
|
|
87
|
+
{text}
|
|
88
|
+
</Typography.Body>
|
|
89
|
+
)}
|
|
90
|
+
</StyledWrapper>
|
|
91
|
+
{rightChildren}
|
|
92
|
+
</StyledHeading>
|
|
93
|
+
);
|
|
119
94
|
|
|
120
95
|
export default SectionHeading;
|
|
@@ -865,7 +865,6 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
865
865
|
</RCTScrollView>
|
|
866
866
|
<View
|
|
867
867
|
pointerEvents="box-none"
|
|
868
|
-
position="bottom"
|
|
869
868
|
style={
|
|
870
869
|
[
|
|
871
870
|
{
|
|
@@ -1586,7 +1585,6 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
1586
1585
|
</RCTScrollView>
|
|
1587
1586
|
<View
|
|
1588
1587
|
pointerEvents="box-none"
|
|
1589
|
-
position="bottom"
|
|
1590
1588
|
style={
|
|
1591
1589
|
[
|
|
1592
1590
|
{
|
|
@@ -2335,7 +2333,6 @@ exports[`OptionList trigger onPress correctly on changing selection 1`] = `
|
|
|
2335
2333
|
</RCTScrollView>
|
|
2336
2334
|
<View
|
|
2337
2335
|
pointerEvents="box-none"
|
|
2338
|
-
position="bottom"
|
|
2339
2336
|
style={
|
|
2340
2337
|
[
|
|
2341
2338
|
{
|
|
@@ -3056,7 +3053,6 @@ exports[`OptionList trigger onPress correctly on select additional value 1`] = `
|
|
|
3056
3053
|
</RCTScrollView>
|
|
3057
3054
|
<View
|
|
3058
3055
|
pointerEvents="box-none"
|
|
3059
|
-
position="bottom"
|
|
3060
3056
|
style={
|
|
3061
3057
|
[
|
|
3062
3058
|
{
|
|
@@ -263,11 +263,37 @@ exports[`rendering allows custom renderer 1`] = `
|
|
|
263
263
|
</View>
|
|
264
264
|
</View>
|
|
265
265
|
</View>
|
|
266
|
-
<
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
266
|
+
<View
|
|
267
|
+
collapsable={false}
|
|
268
|
+
style={
|
|
269
|
+
{
|
|
270
|
+
"backgroundColor": "transparent",
|
|
271
|
+
"bottom": 0,
|
|
272
|
+
"left": 0,
|
|
273
|
+
"opacity": 0.4,
|
|
274
|
+
"position": "absolute",
|
|
275
|
+
"right": 0,
|
|
276
|
+
"top": 0,
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
/>
|
|
280
|
+
<View
|
|
281
|
+
collapsable={false}
|
|
282
|
+
style={
|
|
283
|
+
{
|
|
284
|
+
"bottom": 0,
|
|
285
|
+
"left": 0,
|
|
286
|
+
"opacity": 1,
|
|
287
|
+
"position": "absolute",
|
|
288
|
+
"right": 0,
|
|
289
|
+
"top": 0,
|
|
290
|
+
"transform": [
|
|
291
|
+
{
|
|
292
|
+
"translateY": 0,
|
|
293
|
+
},
|
|
294
|
+
],
|
|
295
|
+
}
|
|
296
|
+
}
|
|
271
297
|
>
|
|
272
298
|
<View
|
|
273
299
|
pointerEvents="box-none"
|
|
@@ -1508,10 +1534,9 @@ exports[`rendering allows custom renderer 1`] = `
|
|
|
1508
1534
|
</RCTSafeAreaView>
|
|
1509
1535
|
</View>
|
|
1510
1536
|
</View>
|
|
1511
|
-
</
|
|
1537
|
+
</View>
|
|
1512
1538
|
<View
|
|
1513
1539
|
pointerEvents="box-none"
|
|
1514
|
-
position="bottom"
|
|
1515
1540
|
style={
|
|
1516
1541
|
[
|
|
1517
1542
|
{
|
|
@@ -1795,15 +1820,8 @@ exports[`rendering renders correctly when bottom sheet is NOT visible 1`] = `
|
|
|
1795
1820
|
</View>
|
|
1796
1821
|
</View>
|
|
1797
1822
|
</View>
|
|
1798
|
-
<Modal
|
|
1799
|
-
hardwareAccelerated={false}
|
|
1800
|
-
onRequestClose={[Function]}
|
|
1801
|
-
transparent={true}
|
|
1802
|
-
visible={false}
|
|
1803
|
-
/>
|
|
1804
1823
|
<View
|
|
1805
1824
|
pointerEvents="box-none"
|
|
1806
|
-
position="bottom"
|
|
1807
1825
|
style={
|
|
1808
1826
|
[
|
|
1809
1827
|
{
|
|
@@ -2087,11 +2105,37 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
|
2087
2105
|
</View>
|
|
2088
2106
|
</View>
|
|
2089
2107
|
</View>
|
|
2090
|
-
<
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2108
|
+
<View
|
|
2109
|
+
collapsable={false}
|
|
2110
|
+
style={
|
|
2111
|
+
{
|
|
2112
|
+
"backgroundColor": "transparent",
|
|
2113
|
+
"bottom": 0,
|
|
2114
|
+
"left": 0,
|
|
2115
|
+
"opacity": 0.4,
|
|
2116
|
+
"position": "absolute",
|
|
2117
|
+
"right": 0,
|
|
2118
|
+
"top": 0,
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
/>
|
|
2122
|
+
<View
|
|
2123
|
+
collapsable={false}
|
|
2124
|
+
style={
|
|
2125
|
+
{
|
|
2126
|
+
"bottom": 0,
|
|
2127
|
+
"left": 0,
|
|
2128
|
+
"opacity": 1,
|
|
2129
|
+
"position": "absolute",
|
|
2130
|
+
"right": 0,
|
|
2131
|
+
"top": 0,
|
|
2132
|
+
"transform": [
|
|
2133
|
+
{
|
|
2134
|
+
"translateY": 0,
|
|
2135
|
+
},
|
|
2136
|
+
],
|
|
2137
|
+
}
|
|
2138
|
+
}
|
|
2095
2139
|
>
|
|
2096
2140
|
<View
|
|
2097
2141
|
pointerEvents="box-none"
|
|
@@ -3538,10 +3582,9 @@ exports[`rendering renders correctly when bottom sheet is visible 1`] = `
|
|
|
3538
3582
|
</RCTSafeAreaView>
|
|
3539
3583
|
</View>
|
|
3540
3584
|
</View>
|
|
3541
|
-
</
|
|
3585
|
+
</View>
|
|
3542
3586
|
<View
|
|
3543
3587
|
pointerEvents="box-none"
|
|
3544
|
-
position="bottom"
|
|
3545
3588
|
style={
|
|
3546
3589
|
[
|
|
3547
3590
|
{
|
|
@@ -3838,15 +3881,8 @@ exports[`rendering renders correctly when input is loading 1`] = `
|
|
|
3838
3881
|
</View>
|
|
3839
3882
|
</View>
|
|
3840
3883
|
</View>
|
|
3841
|
-
<Modal
|
|
3842
|
-
hardwareAccelerated={false}
|
|
3843
|
-
onRequestClose={[Function]}
|
|
3844
|
-
transparent={true}
|
|
3845
|
-
visible={false}
|
|
3846
|
-
/>
|
|
3847
3884
|
<View
|
|
3848
3885
|
pointerEvents="box-none"
|
|
3849
|
-
position="bottom"
|
|
3850
3886
|
style={
|
|
3851
3887
|
[
|
|
3852
3888
|
{
|
|
@@ -4130,11 +4166,37 @@ exports[`rendering renders correctly when receives sections 1`] = `
|
|
|
4130
4166
|
</View>
|
|
4131
4167
|
</View>
|
|
4132
4168
|
</View>
|
|
4133
|
-
<
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4169
|
+
<View
|
|
4170
|
+
collapsable={false}
|
|
4171
|
+
style={
|
|
4172
|
+
{
|
|
4173
|
+
"backgroundColor": "transparent",
|
|
4174
|
+
"bottom": 0,
|
|
4175
|
+
"left": 0,
|
|
4176
|
+
"opacity": 0.4,
|
|
4177
|
+
"position": "absolute",
|
|
4178
|
+
"right": 0,
|
|
4179
|
+
"top": 0,
|
|
4180
|
+
}
|
|
4181
|
+
}
|
|
4182
|
+
/>
|
|
4183
|
+
<View
|
|
4184
|
+
collapsable={false}
|
|
4185
|
+
style={
|
|
4186
|
+
{
|
|
4187
|
+
"bottom": 0,
|
|
4188
|
+
"left": 0,
|
|
4189
|
+
"opacity": 1,
|
|
4190
|
+
"position": "absolute",
|
|
4191
|
+
"right": 0,
|
|
4192
|
+
"top": 0,
|
|
4193
|
+
"transform": [
|
|
4194
|
+
{
|
|
4195
|
+
"translateY": 0,
|
|
4196
|
+
},
|
|
4197
|
+
],
|
|
4198
|
+
}
|
|
4199
|
+
}
|
|
4138
4200
|
>
|
|
4139
4201
|
<View
|
|
4140
4202
|
pointerEvents="box-none"
|
|
@@ -5161,10 +5223,9 @@ exports[`rendering renders correctly when receives sections 1`] = `
|
|
|
5161
5223
|
</RCTSafeAreaView>
|
|
5162
5224
|
</View>
|
|
5163
5225
|
</View>
|
|
5164
|
-
</
|
|
5226
|
+
</View>
|
|
5165
5227
|
<View
|
|
5166
5228
|
pointerEvents="box-none"
|
|
5167
|
-
position="bottom"
|
|
5168
5229
|
style={
|
|
5169
5230
|
[
|
|
5170
5231
|
{
|
|
@@ -5448,11 +5509,37 @@ exports[`rendering renders correctly when receives sections 2`] = `
|
|
|
5448
5509
|
</View>
|
|
5449
5510
|
</View>
|
|
5450
5511
|
</View>
|
|
5451
|
-
<
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5512
|
+
<View
|
|
5513
|
+
collapsable={false}
|
|
5514
|
+
style={
|
|
5515
|
+
{
|
|
5516
|
+
"backgroundColor": "transparent",
|
|
5517
|
+
"bottom": 0,
|
|
5518
|
+
"left": 0,
|
|
5519
|
+
"opacity": 0.4,
|
|
5520
|
+
"position": "absolute",
|
|
5521
|
+
"right": 0,
|
|
5522
|
+
"top": 0,
|
|
5523
|
+
}
|
|
5524
|
+
}
|
|
5525
|
+
/>
|
|
5526
|
+
<View
|
|
5527
|
+
collapsable={false}
|
|
5528
|
+
style={
|
|
5529
|
+
{
|
|
5530
|
+
"bottom": 0,
|
|
5531
|
+
"left": 0,
|
|
5532
|
+
"opacity": 1,
|
|
5533
|
+
"position": "absolute",
|
|
5534
|
+
"right": 0,
|
|
5535
|
+
"top": 0,
|
|
5536
|
+
"transform": [
|
|
5537
|
+
{
|
|
5538
|
+
"translateY": 0,
|
|
5539
|
+
},
|
|
5540
|
+
],
|
|
5541
|
+
}
|
|
5542
|
+
}
|
|
5456
5543
|
>
|
|
5457
5544
|
<View
|
|
5458
5545
|
pointerEvents="box-none"
|
|
@@ -6451,10 +6538,9 @@ exports[`rendering renders correctly when receives sections 2`] = `
|
|
|
6451
6538
|
</RCTSafeAreaView>
|
|
6452
6539
|
</View>
|
|
6453
6540
|
</View>
|
|
6454
|
-
</
|
|
6541
|
+
</View>
|
|
6455
6542
|
<View
|
|
6456
6543
|
pointerEvents="box-none"
|
|
6457
|
-
position="bottom"
|
|
6458
6544
|
style={
|
|
6459
6545
|
[
|
|
6460
6546
|
{
|
|
@@ -842,7 +842,6 @@ exports[`OptionList render isLoading correctly 1`] = `
|
|
|
842
842
|
</RCTScrollView>
|
|
843
843
|
<View
|
|
844
844
|
pointerEvents="box-none"
|
|
845
|
-
position="bottom"
|
|
846
845
|
style={
|
|
847
846
|
[
|
|
848
847
|
{
|
|
@@ -1540,7 +1539,6 @@ exports[`OptionList renders correctly 1`] = `
|
|
|
1540
1539
|
</RCTScrollView>
|
|
1541
1540
|
<View
|
|
1542
1541
|
pointerEvents="box-none"
|
|
1543
|
-
position="bottom"
|
|
1544
1542
|
style={
|
|
1545
1543
|
[
|
|
1546
1544
|
{
|
|
@@ -2238,7 +2236,6 @@ exports[`OptionList trigger onPress correctly on select new value 1`] = `
|
|
|
2238
2236
|
</RCTScrollView>
|
|
2239
2237
|
<View
|
|
2240
2238
|
pointerEvents="box-none"
|
|
2241
|
-
position="bottom"
|
|
2242
2239
|
style={
|
|
2243
2240
|
[
|
|
2244
2241
|
{
|
|
@@ -2936,7 +2933,6 @@ exports[`OptionList trigger onPress correctly on unselect current value 1`] = `
|
|
|
2936
2933
|
</RCTScrollView>
|
|
2937
2934
|
<View
|
|
2938
2935
|
pointerEvents="box-none"
|
|
2939
|
-
position="bottom"
|
|
2940
2936
|
style={
|
|
2941
2937
|
[
|
|
2942
2938
|
{
|