@hero-design/rn 8.71.0 → 8.73.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 +3 -3
- package/CHANGELOG.md +33 -0
- package/es/index.js +790 -470
- package/lib/index.js +793 -472
- package/package.json +1 -1
- package/src/components/Accordion/AccordionItem.tsx +1 -1
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -8
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Badge/StyledBadge.tsx +17 -2
- package/src/components/Badge/__tests__/Badge.spec.tsx +15 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +187 -0
- package/src/components/Badge/index.tsx +20 -36
- package/src/components/Badge/types.ts +55 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +3 -3
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +7 -7
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +6 -6
- package/src/components/FAB/FAB.tsx +6 -1
- package/src/components/FAB/Pair/StyledFAB.tsx +19 -0
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +276 -0
- package/src/components/FAB/Pair/__tests__/index.spec.tsx +39 -0
- package/src/components/FAB/Pair/index.tsx +46 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +31 -14
- package/src/components/FAB/index.tsx +3 -1
- package/src/components/MapPin/Focussed.tsx +28 -0
- package/src/components/MapPin/StyledMapPin.tsx +72 -0
- package/src/components/MapPin/__tests__/Focussed.spec.tsx +10 -0
- package/src/components/MapPin/__tests__/__snapshots__/Focussed.spec.tsx.snap +72 -0
- package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +470 -0
- package/src/components/MapPin/__tests__/index.spec.tsx +44 -0
- package/src/components/MapPin/index.tsx +64 -0
- package/src/components/MapPin/types.ts +41 -0
- package/src/components/PinInput/__tests__/index.spec.tsx +4 -0
- package/src/components/PinInput/index.tsx +7 -3
- package/src/components/Progress/ProgressStep.tsx +3 -1
- package/src/components/Progress/StyledStep.tsx +13 -11
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +215 -4
- package/src/components/Progress/__tests__/index.spec.js +16 -4
- package/src/components/Search/SearchOneLine.tsx +7 -1
- package/src/components/Search/SearchSuffixIcon.tsx +12 -1
- package/src/components/Search/SearchTwoLine.tsx +7 -1
- package/src/components/Search/StyledSearch.tsx +42 -16
- package/src/components/Search/__tests__/SearchOneLine.spec.tsx +30 -0
- package/src/components/Search/__tests__/SearchTwoLine.spec.tsx +15 -0
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +166 -10
- package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +3 -0
- package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +182 -2
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +9 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +6 -0
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +9 -0
- package/src/components/Toolbar/StyledToolbar.tsx +11 -0
- package/src/components/Toolbar/ToolbarItem.tsx +3 -3
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +24 -4
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +84 -9
- package/src/theme/components/badge.ts +10 -1
- package/src/theme/components/button.ts +2 -2
- package/src/theme/components/fab.ts +3 -0
- package/src/theme/components/mapPin.ts +47 -0
- package/src/theme/components/search.ts +30 -5
- package/src/theme/components/switch.ts +2 -2
- package/src/theme/components/toolbar.ts +1 -1
- package/src/theme/getTheme.ts +3 -0
- package/stats/8.72.0/rn-stats.html +4842 -0
- package/stats/8.73.0/rn-stats.html +4844 -0
- package/types/components/Badge/StyledBadge.d.ts +9 -1
- package/types/components/Badge/index.d.ts +3 -34
- package/types/components/Badge/types.d.ts +53 -0
- package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
- package/types/components/FAB/Pair/index.d.ts +16 -0
- package/types/components/FAB/index.d.ts +1 -0
- package/types/components/MapPin/Focussed.d.ts +13 -0
- package/types/components/MapPin/StyledMapPin.d.ts +32 -0
- package/types/components/MapPin/index.d.ts +5 -0
- package/types/components/MapPin/types.d.ts +38 -0
- package/types/components/Progress/StyledStep.d.ts +2 -0
- package/types/components/Search/SearchOneLine.d.ts +5 -0
- package/types/components/Search/SearchTwoLine.d.ts +5 -0
- package/types/components/Search/StyledSearch.d.ts +7 -2
- package/types/components/Toolbar/StyledToolbar.d.ts +9 -2
- package/types/index.d.ts +2 -1
- package/types/theme/components/badge.d.ts +8 -0
- package/types/theme/components/fab.d.ts +3 -0
- package/types/theme/components/mapPin.d.ts +40 -0
- package/types/theme/components/search.d.ts +31 -5
- package/types/theme/getTheme.d.ts +2 -0
|
@@ -1,28 +1,53 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
2
|
import { TextInput, View } from 'react-native';
|
|
3
|
-
import
|
|
3
|
+
import { Theme } from '../../theme';
|
|
4
|
+
import Badge, { BadgeProps } from '../Badge';
|
|
4
5
|
|
|
5
6
|
export type State = 'default' | 'filled' | 'disabled' | 'readonly';
|
|
6
7
|
|
|
8
|
+
export type Variant = 'basic' | 'reversed';
|
|
9
|
+
|
|
7
10
|
export const StyledContainer = styled(View)(() => ({
|
|
8
11
|
width: '100%',
|
|
9
12
|
}));
|
|
10
13
|
|
|
14
|
+
const getBorderWidth = (
|
|
15
|
+
theme: Theme,
|
|
16
|
+
themeFocused: boolean,
|
|
17
|
+
themeVariant: Variant
|
|
18
|
+
) =>
|
|
19
|
+
themeFocused
|
|
20
|
+
? theme.__hd__.search.borderWidths.container[themeVariant].focused
|
|
21
|
+
: theme.__hd__.search.borderWidths.container[themeVariant].normal;
|
|
22
|
+
|
|
11
23
|
export const StyledInputContainer = styled(View)<{
|
|
12
24
|
themeFocused: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
themeVariant: Variant;
|
|
26
|
+
}>(({ theme, themeFocused, themeVariant }) => {
|
|
27
|
+
const borderWidth = getBorderWidth(theme, themeFocused, themeVariant);
|
|
28
|
+
return {
|
|
29
|
+
flexDirection: 'row',
|
|
30
|
+
alignItems: 'center',
|
|
31
|
+
paddingHorizontal:
|
|
32
|
+
theme.__hd__.search.space.containerHorizontalPadding - borderWidth,
|
|
33
|
+
paddingVertical:
|
|
34
|
+
theme.__hd__.search.space.containerVerticalPadding - borderWidth,
|
|
35
|
+
backgroundColor:
|
|
36
|
+
theme.__hd__.search.colors[themeVariant].containerBackground,
|
|
37
|
+
height: 56,
|
|
38
|
+
borderRadius: theme.__hd__.search.radii.container,
|
|
39
|
+
borderWidth,
|
|
40
|
+
borderColor: themeFocused
|
|
41
|
+
? theme.__hd__.search.colors[themeVariant].focusedBorder
|
|
42
|
+
: theme.__hd__.search.colors[themeVariant].border,
|
|
43
|
+
...(themeVariant === 'reversed' && {
|
|
44
|
+
elevation: theme.__hd__.search.shadows.elevation,
|
|
45
|
+
shadowOffset: theme.__hd__.search.shadows.offset,
|
|
46
|
+
shadowOpacity: theme.__hd__.search.shadows.opacity,
|
|
47
|
+
shadowRadius: theme.__hd__.search.shadows.radius,
|
|
48
|
+
}),
|
|
49
|
+
};
|
|
50
|
+
});
|
|
26
51
|
|
|
27
52
|
export const StyledAffixContainer = styled(View)(({ theme }) => ({
|
|
28
53
|
paddingHorizontal: theme.__hd__.search.space.prefixHorizontalPadding,
|
|
@@ -34,7 +59,7 @@ export const StyledSuffixContainer = styled(View)(({ theme }) => ({
|
|
|
34
59
|
alignItems: 'center',
|
|
35
60
|
width: theme.__hd__.search.sizes.surfixSize,
|
|
36
61
|
height: theme.__hd__.search.sizes.surfixSize,
|
|
37
|
-
backgroundColor: theme.__hd__.search.colors.
|
|
62
|
+
backgroundColor: theme.__hd__.search.colors.suffixBackground,
|
|
38
63
|
borderRadius: theme.__hd__.search.radii.surfix,
|
|
39
64
|
}));
|
|
40
65
|
|
|
@@ -57,9 +82,10 @@ export const StyledHandlerContainer = styled(View)(({ theme }) => ({
|
|
|
57
82
|
flexGrow: 1,
|
|
58
83
|
height: '100%',
|
|
59
84
|
marginHorizontal: theme.__hd__.search.space.inputHorizontalMargin,
|
|
85
|
+
paddingVertical: theme.__hd__.search.space.inputVerticalPadding,
|
|
60
86
|
}));
|
|
61
87
|
|
|
62
|
-
export const StyledBadge = styled(Badge)(({ theme }) => ({
|
|
88
|
+
export const StyledBadge = styled(Badge)<BadgeProps>(({ theme }) => ({
|
|
63
89
|
position: 'absolute',
|
|
64
90
|
top: theme.__hd__.search.space.badgeTop,
|
|
65
91
|
right: theme.__hd__.search.space.badgeRight,
|
|
@@ -56,6 +56,36 @@ describe('SearchOneLine', () => {
|
|
|
56
56
|
).toHaveLength(1);
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
+
it('renders reserved variant correctly', () => {
|
|
60
|
+
const { getByTestId, toJSON } = renderWithTheme(
|
|
61
|
+
<SearchOneLine
|
|
62
|
+
prefix="search-outlined"
|
|
63
|
+
suffix="adjustment"
|
|
64
|
+
testID="idle-search-text-input"
|
|
65
|
+
placeholder="Search"
|
|
66
|
+
variant="reversed"
|
|
67
|
+
/>
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
expect(toJSON()).toMatchSnapshot();
|
|
71
|
+
expect(getByTestId('idle-search-text-input')).toBeTruthy();
|
|
72
|
+
expect(
|
|
73
|
+
within(getByTestId('idle-search-text-input')).queryAllByTestId(
|
|
74
|
+
'text-input'
|
|
75
|
+
)
|
|
76
|
+
).toHaveLength(1);
|
|
77
|
+
expect(
|
|
78
|
+
within(getByTestId('idle-search-text-input')).queryAllByTestId(
|
|
79
|
+
'input-prefix'
|
|
80
|
+
)
|
|
81
|
+
).toHaveLength(1);
|
|
82
|
+
expect(
|
|
83
|
+
within(getByTestId('idle-search-text-input')).queryAllByTestId(
|
|
84
|
+
'input-suffix'
|
|
85
|
+
)
|
|
86
|
+
).toHaveLength(1);
|
|
87
|
+
});
|
|
88
|
+
|
|
59
89
|
it('renders custom affix correctly', () => {
|
|
60
90
|
const { getByTestId, toJSON } = renderWithTheme(
|
|
61
91
|
<SearchOneLine
|
|
@@ -17,4 +17,19 @@ describe('SearchTwoLine', () => {
|
|
|
17
17
|
expect(wrapper.getByText('Anywhere')).toBeDefined();
|
|
18
18
|
expect(wrapper.toJSON()).toMatchSnapshot();
|
|
19
19
|
});
|
|
20
|
+
|
|
21
|
+
it('renders reserved variant correctly', () => {
|
|
22
|
+
const wrapper = renderWithTheme(
|
|
23
|
+
<SearchTwoLine
|
|
24
|
+
label="Find Work"
|
|
25
|
+
content={<Typography.Caption>Anywhere</Typography.Caption>}
|
|
26
|
+
prefix="search-outlined"
|
|
27
|
+
suffix="adjustment"
|
|
28
|
+
variant="reversed"
|
|
29
|
+
/>
|
|
30
|
+
);
|
|
31
|
+
expect(wrapper.getByText('Find Work')).toBeDefined();
|
|
32
|
+
expect(wrapper.getByText('Anywhere')).toBeDefined();
|
|
33
|
+
expect(wrapper.toJSON()).toMatchSnapshot();
|
|
34
|
+
});
|
|
20
35
|
});
|
|
@@ -31,13 +31,14 @@ exports[`SearchOneLine disabled renders correctly 1`] = `
|
|
|
31
31
|
"borderWidth": 2,
|
|
32
32
|
"flexDirection": "row",
|
|
33
33
|
"height": 56,
|
|
34
|
-
"paddingHorizontal":
|
|
35
|
-
"paddingVertical":
|
|
34
|
+
"paddingHorizontal": 6,
|
|
35
|
+
"paddingVertical": 6,
|
|
36
36
|
},
|
|
37
37
|
undefined,
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
40
|
themeFocused={false}
|
|
41
|
+
themeVariant="basic"
|
|
41
42
|
>
|
|
42
43
|
<View
|
|
43
44
|
style={
|
|
@@ -176,13 +177,14 @@ exports[`SearchOneLine filled renders correctly 1`] = `
|
|
|
176
177
|
"borderWidth": 2,
|
|
177
178
|
"flexDirection": "row",
|
|
178
179
|
"height": 56,
|
|
179
|
-
"paddingHorizontal":
|
|
180
|
-
"paddingVertical":
|
|
180
|
+
"paddingHorizontal": 6,
|
|
181
|
+
"paddingVertical": 6,
|
|
181
182
|
},
|
|
182
183
|
undefined,
|
|
183
184
|
]
|
|
184
185
|
}
|
|
185
186
|
themeFocused={false}
|
|
187
|
+
themeVariant="basic"
|
|
186
188
|
>
|
|
187
189
|
<View
|
|
188
190
|
style={
|
|
@@ -320,13 +322,14 @@ exports[`SearchOneLine idle renders correctly 1`] = `
|
|
|
320
322
|
"borderWidth": 2,
|
|
321
323
|
"flexDirection": "row",
|
|
322
324
|
"height": 56,
|
|
323
|
-
"paddingHorizontal":
|
|
324
|
-
"paddingVertical":
|
|
325
|
+
"paddingHorizontal": 6,
|
|
326
|
+
"paddingVertical": 6,
|
|
325
327
|
},
|
|
326
328
|
undefined,
|
|
327
329
|
]
|
|
328
330
|
}
|
|
329
331
|
themeFocused={false}
|
|
332
|
+
themeVariant="basic"
|
|
330
333
|
>
|
|
331
334
|
<View
|
|
332
335
|
style={
|
|
@@ -463,13 +466,14 @@ exports[`SearchOneLine idle renders custom affix correctly 1`] = `
|
|
|
463
466
|
"borderWidth": 2,
|
|
464
467
|
"flexDirection": "row",
|
|
465
468
|
"height": 56,
|
|
466
|
-
"paddingHorizontal":
|
|
467
|
-
"paddingVertical":
|
|
469
|
+
"paddingHorizontal": 6,
|
|
470
|
+
"paddingVertical": 6,
|
|
468
471
|
},
|
|
469
472
|
undefined,
|
|
470
473
|
]
|
|
471
474
|
}
|
|
472
475
|
themeFocused={false}
|
|
476
|
+
themeVariant="basic"
|
|
473
477
|
>
|
|
474
478
|
<Text
|
|
475
479
|
allowFontScaling={false}
|
|
@@ -561,6 +565,157 @@ exports[`SearchOneLine idle renders custom affix correctly 1`] = `
|
|
|
561
565
|
</View>
|
|
562
566
|
`;
|
|
563
567
|
|
|
568
|
+
exports[`SearchOneLine idle renders reserved variant correctly 1`] = `
|
|
569
|
+
<View
|
|
570
|
+
style={
|
|
571
|
+
{
|
|
572
|
+
"flex": 1,
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
>
|
|
576
|
+
<View
|
|
577
|
+
pointerEvents="auto"
|
|
578
|
+
style={
|
|
579
|
+
[
|
|
580
|
+
{
|
|
581
|
+
"width": "100%",
|
|
582
|
+
},
|
|
583
|
+
undefined,
|
|
584
|
+
]
|
|
585
|
+
}
|
|
586
|
+
testID="idle-search-text-input"
|
|
587
|
+
>
|
|
588
|
+
<View
|
|
589
|
+
style={
|
|
590
|
+
[
|
|
591
|
+
{
|
|
592
|
+
"alignItems": "center",
|
|
593
|
+
"backgroundColor": "#ffffff",
|
|
594
|
+
"borderColor": "#e8e9ea",
|
|
595
|
+
"borderRadius": 999,
|
|
596
|
+
"borderWidth": 1,
|
|
597
|
+
"elevation": 3,
|
|
598
|
+
"flexDirection": "row",
|
|
599
|
+
"height": 56,
|
|
600
|
+
"paddingHorizontal": 7,
|
|
601
|
+
"paddingVertical": 7,
|
|
602
|
+
"shadowOffset": {
|
|
603
|
+
"height": 2,
|
|
604
|
+
"width": 0,
|
|
605
|
+
},
|
|
606
|
+
"shadowOpacity": 0.12,
|
|
607
|
+
"shadowRadius": 4,
|
|
608
|
+
},
|
|
609
|
+
undefined,
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
themeFocused={false}
|
|
613
|
+
themeVariant="reversed"
|
|
614
|
+
>
|
|
615
|
+
<View
|
|
616
|
+
style={
|
|
617
|
+
[
|
|
618
|
+
{
|
|
619
|
+
"paddingHorizontal": 4,
|
|
620
|
+
},
|
|
621
|
+
undefined,
|
|
622
|
+
]
|
|
623
|
+
}
|
|
624
|
+
>
|
|
625
|
+
<HeroIcon
|
|
626
|
+
name="search-outlined"
|
|
627
|
+
style={
|
|
628
|
+
[
|
|
629
|
+
{
|
|
630
|
+
"color": "#001f23",
|
|
631
|
+
"fontSize": 20,
|
|
632
|
+
},
|
|
633
|
+
undefined,
|
|
634
|
+
]
|
|
635
|
+
}
|
|
636
|
+
testID="input-prefix"
|
|
637
|
+
themeIntent="text"
|
|
638
|
+
themeSize="small"
|
|
639
|
+
/>
|
|
640
|
+
</View>
|
|
641
|
+
<TextInput
|
|
642
|
+
accessibilityState={
|
|
643
|
+
{
|
|
644
|
+
"disabled": false,
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
editable={true}
|
|
648
|
+
onBlur={[Function]}
|
|
649
|
+
onFocus={[Function]}
|
|
650
|
+
placeholder="Search"
|
|
651
|
+
style={
|
|
652
|
+
[
|
|
653
|
+
{
|
|
654
|
+
"alignSelf": "stretch",
|
|
655
|
+
"flexGrow": 1,
|
|
656
|
+
"flexShrink": 1,
|
|
657
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
658
|
+
"fontSize": 16,
|
|
659
|
+
"marginHorizontal": 8,
|
|
660
|
+
"paddingVertical": 0,
|
|
661
|
+
"textAlignVertical": "center",
|
|
662
|
+
},
|
|
663
|
+
undefined,
|
|
664
|
+
]
|
|
665
|
+
}
|
|
666
|
+
testID="text-input"
|
|
667
|
+
/>
|
|
668
|
+
<View
|
|
669
|
+
style={
|
|
670
|
+
[
|
|
671
|
+
{
|
|
672
|
+
"paddingHorizontal": 4,
|
|
673
|
+
},
|
|
674
|
+
undefined,
|
|
675
|
+
]
|
|
676
|
+
}
|
|
677
|
+
>
|
|
678
|
+
<HeroIcon
|
|
679
|
+
name="adjustment"
|
|
680
|
+
style={
|
|
681
|
+
[
|
|
682
|
+
{
|
|
683
|
+
"color": "#001f23",
|
|
684
|
+
"fontSize": 20,
|
|
685
|
+
},
|
|
686
|
+
undefined,
|
|
687
|
+
]
|
|
688
|
+
}
|
|
689
|
+
testID="input-suffix"
|
|
690
|
+
themeIntent="text"
|
|
691
|
+
themeSize="small"
|
|
692
|
+
/>
|
|
693
|
+
</View>
|
|
694
|
+
</View>
|
|
695
|
+
</View>
|
|
696
|
+
<View
|
|
697
|
+
pointerEvents="box-none"
|
|
698
|
+
position="bottom"
|
|
699
|
+
style={
|
|
700
|
+
[
|
|
701
|
+
{
|
|
702
|
+
"bottom": 0,
|
|
703
|
+
"elevation": 9999,
|
|
704
|
+
"flexDirection": "column-reverse",
|
|
705
|
+
"left": 0,
|
|
706
|
+
"paddingHorizontal": 24,
|
|
707
|
+
"paddingVertical": 16,
|
|
708
|
+
"position": "absolute",
|
|
709
|
+
"right": 0,
|
|
710
|
+
"top": 0,
|
|
711
|
+
},
|
|
712
|
+
undefined,
|
|
713
|
+
]
|
|
714
|
+
}
|
|
715
|
+
/>
|
|
716
|
+
</View>
|
|
717
|
+
`;
|
|
718
|
+
|
|
564
719
|
exports[`SearchOneLine readonly renders correctly 1`] = `
|
|
565
720
|
<View
|
|
566
721
|
style={
|
|
@@ -592,13 +747,14 @@ exports[`SearchOneLine readonly renders correctly 1`] = `
|
|
|
592
747
|
"borderWidth": 2,
|
|
593
748
|
"flexDirection": "row",
|
|
594
749
|
"height": 56,
|
|
595
|
-
"paddingHorizontal":
|
|
596
|
-
"paddingVertical":
|
|
750
|
+
"paddingHorizontal": 6,
|
|
751
|
+
"paddingVertical": 6,
|
|
597
752
|
},
|
|
598
753
|
undefined,
|
|
599
754
|
]
|
|
600
755
|
}
|
|
601
756
|
themeFocused={false}
|
|
757
|
+
themeVariant="basic"
|
|
602
758
|
>
|
|
603
759
|
<View
|
|
604
760
|
style={
|
|
@@ -30,7 +30,9 @@ exports[`SearchSuffixIcon renders correctly 1`] = `
|
|
|
30
30
|
{
|
|
31
31
|
"alignItems": "center",
|
|
32
32
|
"backgroundColor": "#401960",
|
|
33
|
+
"borderColor": "#401960",
|
|
33
34
|
"borderRadius": 999,
|
|
35
|
+
"borderWidth": 2,
|
|
34
36
|
"height": 16,
|
|
35
37
|
"justifyContent": "center",
|
|
36
38
|
"minWidth": 16,
|
|
@@ -50,6 +52,7 @@ exports[`SearchSuffixIcon renders correctly 1`] = `
|
|
|
50
52
|
themeIntent="primary"
|
|
51
53
|
themePadding="narrowContent"
|
|
52
54
|
themeSize="small"
|
|
55
|
+
themeVariant="filled"
|
|
53
56
|
>
|
|
54
57
|
<Text
|
|
55
58
|
allowFontScaling={false}
|
|
@@ -29,13 +29,14 @@ exports[`SearchTwoLine renders correctly 1`] = `
|
|
|
29
29
|
"borderWidth": 2,
|
|
30
30
|
"flexDirection": "row",
|
|
31
31
|
"height": 56,
|
|
32
|
-
"paddingHorizontal":
|
|
33
|
-
"paddingVertical":
|
|
32
|
+
"paddingHorizontal": 6,
|
|
33
|
+
"paddingVertical": 6,
|
|
34
34
|
},
|
|
35
35
|
undefined,
|
|
36
36
|
]
|
|
37
37
|
}
|
|
38
38
|
themeFocused={false}
|
|
39
|
+
themeVariant="basic"
|
|
39
40
|
>
|
|
40
41
|
<View
|
|
41
42
|
style={
|
|
@@ -74,6 +75,185 @@ exports[`SearchTwoLine renders correctly 1`] = `
|
|
|
74
75
|
"height": "100%",
|
|
75
76
|
"justifyContent": "space-between",
|
|
76
77
|
"marginHorizontal": 8,
|
|
78
|
+
"paddingVertical": 2,
|
|
79
|
+
},
|
|
80
|
+
undefined,
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
>
|
|
84
|
+
<Text
|
|
85
|
+
allowFontScaling={false}
|
|
86
|
+
style={
|
|
87
|
+
[
|
|
88
|
+
{
|
|
89
|
+
"color": "#001f23",
|
|
90
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
91
|
+
"fontSize": 12,
|
|
92
|
+
"letterSpacing": 0.24,
|
|
93
|
+
"lineHeight": 16,
|
|
94
|
+
},
|
|
95
|
+
undefined,
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
themeFontWeight="semi-bold"
|
|
99
|
+
themeIntent="body"
|
|
100
|
+
>
|
|
101
|
+
Find Work
|
|
102
|
+
</Text>
|
|
103
|
+
<Text
|
|
104
|
+
allowFontScaling={false}
|
|
105
|
+
style={
|
|
106
|
+
[
|
|
107
|
+
{
|
|
108
|
+
"color": "#001f23",
|
|
109
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
110
|
+
"fontSize": 12,
|
|
111
|
+
"letterSpacing": 0.36,
|
|
112
|
+
"lineHeight": 16,
|
|
113
|
+
},
|
|
114
|
+
undefined,
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
themeFontWeight="regular"
|
|
118
|
+
themeIntent="body"
|
|
119
|
+
>
|
|
120
|
+
Anywhere
|
|
121
|
+
</Text>
|
|
122
|
+
</View>
|
|
123
|
+
<View
|
|
124
|
+
style={
|
|
125
|
+
[
|
|
126
|
+
{
|
|
127
|
+
"paddingHorizontal": 4,
|
|
128
|
+
},
|
|
129
|
+
undefined,
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
>
|
|
133
|
+
<HeroIcon
|
|
134
|
+
name="adjustment"
|
|
135
|
+
style={
|
|
136
|
+
[
|
|
137
|
+
{
|
|
138
|
+
"color": "#001f23",
|
|
139
|
+
"fontSize": 20,
|
|
140
|
+
},
|
|
141
|
+
undefined,
|
|
142
|
+
]
|
|
143
|
+
}
|
|
144
|
+
testID="input-suffix"
|
|
145
|
+
themeIntent="text"
|
|
146
|
+
themeSize="small"
|
|
147
|
+
/>
|
|
148
|
+
</View>
|
|
149
|
+
</View>
|
|
150
|
+
</View>
|
|
151
|
+
<View
|
|
152
|
+
pointerEvents="box-none"
|
|
153
|
+
position="bottom"
|
|
154
|
+
style={
|
|
155
|
+
[
|
|
156
|
+
{
|
|
157
|
+
"bottom": 0,
|
|
158
|
+
"elevation": 9999,
|
|
159
|
+
"flexDirection": "column-reverse",
|
|
160
|
+
"left": 0,
|
|
161
|
+
"paddingHorizontal": 24,
|
|
162
|
+
"paddingVertical": 16,
|
|
163
|
+
"position": "absolute",
|
|
164
|
+
"right": 0,
|
|
165
|
+
"top": 0,
|
|
166
|
+
},
|
|
167
|
+
undefined,
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
/>
|
|
171
|
+
</View>
|
|
172
|
+
`;
|
|
173
|
+
|
|
174
|
+
exports[`SearchTwoLine renders reserved variant correctly 1`] = `
|
|
175
|
+
<View
|
|
176
|
+
style={
|
|
177
|
+
{
|
|
178
|
+
"flex": 1,
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
>
|
|
182
|
+
<View
|
|
183
|
+
style={
|
|
184
|
+
[
|
|
185
|
+
{
|
|
186
|
+
"width": "100%",
|
|
187
|
+
},
|
|
188
|
+
undefined,
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
>
|
|
192
|
+
<View
|
|
193
|
+
style={
|
|
194
|
+
[
|
|
195
|
+
{
|
|
196
|
+
"alignItems": "center",
|
|
197
|
+
"backgroundColor": "#ffffff",
|
|
198
|
+
"borderColor": "#e8e9ea",
|
|
199
|
+
"borderRadius": 999,
|
|
200
|
+
"borderWidth": 1,
|
|
201
|
+
"elevation": 3,
|
|
202
|
+
"flexDirection": "row",
|
|
203
|
+
"height": 56,
|
|
204
|
+
"paddingHorizontal": 7,
|
|
205
|
+
"paddingVertical": 7,
|
|
206
|
+
"shadowOffset": {
|
|
207
|
+
"height": 2,
|
|
208
|
+
"width": 0,
|
|
209
|
+
},
|
|
210
|
+
"shadowOpacity": 0.12,
|
|
211
|
+
"shadowRadius": 4,
|
|
212
|
+
},
|
|
213
|
+
undefined,
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
themeFocused={false}
|
|
217
|
+
themeVariant="reversed"
|
|
218
|
+
>
|
|
219
|
+
<View
|
|
220
|
+
style={
|
|
221
|
+
[
|
|
222
|
+
{
|
|
223
|
+
"paddingHorizontal": 4,
|
|
224
|
+
},
|
|
225
|
+
undefined,
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
>
|
|
229
|
+
<HeroIcon
|
|
230
|
+
name="search-outlined"
|
|
231
|
+
style={
|
|
232
|
+
[
|
|
233
|
+
{
|
|
234
|
+
"color": "#001f23",
|
|
235
|
+
"fontSize": 20,
|
|
236
|
+
},
|
|
237
|
+
undefined,
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
testID="input-prefix"
|
|
241
|
+
themeIntent="text"
|
|
242
|
+
themeSize="small"
|
|
243
|
+
/>
|
|
244
|
+
</View>
|
|
245
|
+
<View
|
|
246
|
+
style={
|
|
247
|
+
[
|
|
248
|
+
{
|
|
249
|
+
"alignItems": "flex-start",
|
|
250
|
+
"display": "flex",
|
|
251
|
+
"flexDirection": "column",
|
|
252
|
+
"flexGrow": 1,
|
|
253
|
+
"height": "100%",
|
|
254
|
+
"justifyContent": "space-between",
|
|
255
|
+
"marginHorizontal": 8,
|
|
256
|
+
"paddingVertical": 2,
|
|
77
257
|
},
|
|
78
258
|
undefined,
|
|
79
259
|
]
|
|
@@ -693,7 +693,9 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
|
|
|
693
693
|
{
|
|
694
694
|
"alignItems": "center",
|
|
695
695
|
"backgroundColor": "#355bfb",
|
|
696
|
+
"borderColor": "#355bfb",
|
|
696
697
|
"borderRadius": 999,
|
|
698
|
+
"borderWidth": 2,
|
|
697
699
|
"height": 24,
|
|
698
700
|
"justifyContent": "center",
|
|
699
701
|
"marginLeft": 4,
|
|
@@ -710,6 +712,7 @@ exports[`Tabs.Scroll lazy not render lazy screen: xxx 1`] = `
|
|
|
710
712
|
themeIntent="info"
|
|
711
713
|
themePadding="wideContent"
|
|
712
714
|
themeSize="medium"
|
|
715
|
+
themeVariant="filled"
|
|
713
716
|
>
|
|
714
717
|
<Text
|
|
715
718
|
allowFontScaling={false}
|
|
@@ -1619,7 +1622,9 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
1619
1622
|
{
|
|
1620
1623
|
"alignItems": "center",
|
|
1621
1624
|
"backgroundColor": "#355bfb",
|
|
1625
|
+
"borderColor": "#355bfb",
|
|
1622
1626
|
"borderRadius": 999,
|
|
1627
|
+
"borderWidth": 2,
|
|
1623
1628
|
"height": 24,
|
|
1624
1629
|
"justifyContent": "center",
|
|
1625
1630
|
"marginLeft": 4,
|
|
@@ -1636,6 +1641,7 @@ exports[`Tabs.Scroll renders correctly 1`] = `
|
|
|
1636
1641
|
themeIntent="info"
|
|
1637
1642
|
themePadding="wideContent"
|
|
1638
1643
|
themeSize="medium"
|
|
1644
|
+
themeVariant="filled"
|
|
1639
1645
|
>
|
|
1640
1646
|
<Text
|
|
1641
1647
|
allowFontScaling={false}
|
|
@@ -2545,7 +2551,9 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
2545
2551
|
{
|
|
2546
2552
|
"alignItems": "center",
|
|
2547
2553
|
"backgroundColor": "#355bfb",
|
|
2554
|
+
"borderColor": "#355bfb",
|
|
2548
2555
|
"borderRadius": 999,
|
|
2556
|
+
"borderWidth": 2,
|
|
2549
2557
|
"height": 24,
|
|
2550
2558
|
"justifyContent": "center",
|
|
2551
2559
|
"marginLeft": 4,
|
|
@@ -2562,6 +2570,7 @@ exports[`useIsFocused renders correctly 1`] = `
|
|
|
2562
2570
|
themeIntent="info"
|
|
2563
2571
|
themePadding="wideContent"
|
|
2564
2572
|
themeSize="medium"
|
|
2573
|
+
themeVariant="filled"
|
|
2565
2574
|
>
|
|
2566
2575
|
<Text
|
|
2567
2576
|
allowFontScaling={false}
|