@hero-design/rn 8.92.2 → 8.92.3
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 +2 -2
- package/CHANGELOG.md +18 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +588 -720
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +589 -720
- package/package.json +4 -2
- package/rollup.config.mjs +1 -0
- package/src/components/Button/StyledButton.tsx +15 -8
- package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +5 -3
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +61 -4
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +26 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/components/MapPin/StyledMapPin.tsx +1 -9
- package/src/components/Progress/ProgressCircle.tsx +53 -109
- package/src/components/Progress/StyledProgressBar.tsx +4 -1
- package/src/components/Progress/StyledProgressCircle.tsx +1 -57
- package/src/components/Progress/StyledStep.tsx +1 -1
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +299 -647
- package/src/components/Search/SearchOneLine.tsx +2 -2
- package/src/components/Search/SearchTwoLine.tsx +1 -1
- package/src/components/Search/StyledSearch.tsx +20 -35
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +51 -51
- package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +2 -2
- package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +13 -15
- package/src/components/Search/__tests__/__snapshots__/utils.spec.tsx.snap +4 -4
- package/src/components/Search/utils.tsx +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Tabs/TabWithBadge.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +15 -9
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +6 -6
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -3
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +15 -9
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -0
- package/src/components/Toolbar/StyledToolbar.tsx +1 -0
- package/src/components/Toolbar/ToolbarMessage.tsx +3 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarMessage.spec.tsx.snap +8 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +20 -23
- package/src/theme/components/button.ts +10 -0
- package/src/theme/components/progress.ts +21 -26
- package/src/theme/components/search.ts +2 -10
- package/src/theme/components/toolbar.ts +2 -0
- package/src/utils/helpers.ts +9 -0
- package/stats/8.92.3/rn-stats.html +4842 -0
- package/types/components/Button/StyledButton.d.ts +2 -2
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Progress/StyledProgressCircle.d.ts +1 -32
- package/types/components/Search/StyledSearch.d.ts +0 -1
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/theme/components/button.d.ts +3 -0
- package/types/theme/components/progress.d.ts +6 -6
- package/types/theme/components/search.d.ts +2 -10
- package/types/theme/components/toolbar.d.ts +2 -0
- package/types/utils/helpers.d.ts +1 -0
|
@@ -174,7 +174,7 @@ const SearchOneLine = forwardRef<SearchOneLineHandles, SearchOneLineProps>(
|
|
|
174
174
|
intent="text"
|
|
175
175
|
testID="input-clear-button"
|
|
176
176
|
icon="circle-cancel"
|
|
177
|
-
size="
|
|
177
|
+
size="xsmall"
|
|
178
178
|
disabled={state === 'disabled' || state === 'readonly'}
|
|
179
179
|
/>
|
|
180
180
|
</StyledAffixContainer>
|
|
@@ -192,7 +192,7 @@ const SearchOneLine = forwardRef<SearchOneLineHandles, SearchOneLineProps>(
|
|
|
192
192
|
testID={testID}
|
|
193
193
|
style={style}
|
|
194
194
|
>
|
|
195
|
-
<StyledInputContainer
|
|
195
|
+
<StyledInputContainer themeVariant={variant}>
|
|
196
196
|
{renderPrefix({ prefix })}
|
|
197
197
|
{renderInput({
|
|
198
198
|
nativeInputProps: {
|
|
@@ -53,7 +53,7 @@ const SearchTwoLine = (props: SearchTwoLineProps) => {
|
|
|
53
53
|
} = props;
|
|
54
54
|
return (
|
|
55
55
|
<StyledContainer style={style} testID={testID}>
|
|
56
|
-
<StyledInputContainer
|
|
56
|
+
<StyledInputContainer themeVariant={variant}>
|
|
57
57
|
{renderPrefix({ prefix })}
|
|
58
58
|
<StyledHandlerContainer>
|
|
59
59
|
<Typography.Caption fontWeight="semi-bold">
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import styled from '@emotion/native';
|
|
2
2
|
import { TextInput, View } from 'react-native';
|
|
3
|
-
import { Theme } from '../../theme';
|
|
4
3
|
import Badge, { BadgeProps } from '../Badge';
|
|
5
4
|
|
|
6
5
|
export type State = 'default' | 'filled' | 'disabled' | 'readonly';
|
|
@@ -11,40 +10,25 @@ export const StyledContainer = styled(View)(() => ({
|
|
|
11
10
|
width: '100%',
|
|
12
11
|
}));
|
|
13
12
|
|
|
14
|
-
const
|
|
15
|
-
theme
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
...theme.__hd__.search.shadows.container,
|
|
45
|
-
}),
|
|
46
|
-
};
|
|
47
|
-
});
|
|
13
|
+
export const StyledInputContainer = styled(View)<{ themeVariant: Variant }>(
|
|
14
|
+
({ theme, themeVariant }) => {
|
|
15
|
+
return {
|
|
16
|
+
flexDirection: 'row',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
paddingHorizontal: theme.__hd__.search.space.containerHorizontalPadding,
|
|
19
|
+
paddingVertical: theme.__hd__.search.space.containerVerticalPadding,
|
|
20
|
+
backgroundColor:
|
|
21
|
+
theme.__hd__.search.colors[themeVariant].containerBackground,
|
|
22
|
+
height: 56,
|
|
23
|
+
borderRadius: theme.__hd__.search.radii.container,
|
|
24
|
+
borderWidth: theme.__hd__.search.borderWidths.container.default,
|
|
25
|
+
borderColor: theme.__hd__.search.colors[themeVariant].border,
|
|
26
|
+
...(themeVariant === 'reversed' && {
|
|
27
|
+
...theme.__hd__.search.shadows.container,
|
|
28
|
+
}),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
);
|
|
48
32
|
|
|
49
33
|
export const StyledAffixContainer = styled(View)(({ theme }) => ({
|
|
50
34
|
paddingHorizontal: theme.__hd__.search.space.prefixHorizontalPadding,
|
|
@@ -63,6 +47,7 @@ export const StyledSuffixContainer = styled(View)(({ theme }) => ({
|
|
|
63
47
|
export const StyledInput = styled(TextInput)(({ theme }) => ({
|
|
64
48
|
textAlignVertical: 'center',
|
|
65
49
|
fontSize: theme.__hd__.search.fontSizes.text,
|
|
50
|
+
color: theme.__hd__.textInput.colors.text,
|
|
66
51
|
alignSelf: 'stretch',
|
|
67
52
|
flexGrow: 1,
|
|
68
53
|
flexShrink: 1,
|
|
@@ -28,16 +28,15 @@ exports[`SearchOneLine idle renders correctly 1`] = `
|
|
|
28
28
|
"backgroundColor": "#f6f6f7",
|
|
29
29
|
"borderColor": "#f6f6f7",
|
|
30
30
|
"borderRadius": 999,
|
|
31
|
-
"borderWidth":
|
|
31
|
+
"borderWidth": 1,
|
|
32
32
|
"flexDirection": "row",
|
|
33
33
|
"height": 56,
|
|
34
|
-
"paddingHorizontal":
|
|
35
|
-
"paddingVertical":
|
|
34
|
+
"paddingHorizontal": 8,
|
|
35
|
+
"paddingVertical": 8,
|
|
36
36
|
},
|
|
37
37
|
undefined,
|
|
38
38
|
]
|
|
39
39
|
}
|
|
40
|
-
themeFocused={false}
|
|
41
40
|
themeVariant="basic"
|
|
42
41
|
>
|
|
43
42
|
<View
|
|
@@ -56,14 +55,14 @@ exports[`SearchOneLine idle renders correctly 1`] = `
|
|
|
56
55
|
[
|
|
57
56
|
{
|
|
58
57
|
"color": "#001f23",
|
|
59
|
-
"fontSize":
|
|
58
|
+
"fontSize": 16,
|
|
60
59
|
},
|
|
61
60
|
undefined,
|
|
62
61
|
]
|
|
63
62
|
}
|
|
64
63
|
testID="input-prefix"
|
|
65
64
|
themeIntent="text"
|
|
66
|
-
themeSize="
|
|
65
|
+
themeSize="xsmall"
|
|
67
66
|
/>
|
|
68
67
|
</View>
|
|
69
68
|
<TextInput
|
|
@@ -81,6 +80,7 @@ exports[`SearchOneLine idle renders correctly 1`] = `
|
|
|
81
80
|
[
|
|
82
81
|
{
|
|
83
82
|
"alignSelf": "stretch",
|
|
83
|
+
"color": "#001f23",
|
|
84
84
|
"flexGrow": 1,
|
|
85
85
|
"flexShrink": 1,
|
|
86
86
|
"fontFamily": "BeVietnamPro-Regular",
|
|
@@ -110,14 +110,14 @@ exports[`SearchOneLine idle renders correctly 1`] = `
|
|
|
110
110
|
[
|
|
111
111
|
{
|
|
112
112
|
"color": "#001f23",
|
|
113
|
-
"fontSize":
|
|
113
|
+
"fontSize": 16,
|
|
114
114
|
},
|
|
115
115
|
undefined,
|
|
116
116
|
]
|
|
117
117
|
}
|
|
118
118
|
testID="input-suffix"
|
|
119
119
|
themeIntent="text"
|
|
120
|
-
themeSize="
|
|
120
|
+
themeSize="xsmall"
|
|
121
121
|
/>
|
|
122
122
|
</View>
|
|
123
123
|
</View>
|
|
@@ -173,16 +173,15 @@ exports[`SearchOneLine idle renders custom affix correctly 1`] = `
|
|
|
173
173
|
"backgroundColor": "#f6f6f7",
|
|
174
174
|
"borderColor": "#f6f6f7",
|
|
175
175
|
"borderRadius": 999,
|
|
176
|
-
"borderWidth":
|
|
176
|
+
"borderWidth": 1,
|
|
177
177
|
"flexDirection": "row",
|
|
178
178
|
"height": 56,
|
|
179
|
-
"paddingHorizontal":
|
|
180
|
-
"paddingVertical":
|
|
179
|
+
"paddingHorizontal": 8,
|
|
180
|
+
"paddingVertical": 8,
|
|
181
181
|
},
|
|
182
182
|
undefined,
|
|
183
183
|
]
|
|
184
184
|
}
|
|
185
|
-
themeFocused={false}
|
|
186
185
|
themeVariant="basic"
|
|
187
186
|
>
|
|
188
187
|
<Text
|
|
@@ -219,6 +218,7 @@ exports[`SearchOneLine idle renders custom affix correctly 1`] = `
|
|
|
219
218
|
[
|
|
220
219
|
{
|
|
221
220
|
"alignSelf": "stretch",
|
|
221
|
+
"color": "#001f23",
|
|
222
222
|
"flexGrow": 1,
|
|
223
223
|
"flexShrink": 1,
|
|
224
224
|
"fontFamily": "BeVietnamPro-Regular",
|
|
@@ -308,8 +308,8 @@ exports[`SearchOneLine idle renders reserved variant correctly 1`] = `
|
|
|
308
308
|
"elevation": 6,
|
|
309
309
|
"flexDirection": "row",
|
|
310
310
|
"height": 56,
|
|
311
|
-
"paddingHorizontal":
|
|
312
|
-
"paddingVertical":
|
|
311
|
+
"paddingHorizontal": 8,
|
|
312
|
+
"paddingVertical": 8,
|
|
313
313
|
"shadowColor": "#001f23",
|
|
314
314
|
"shadowOffset": {
|
|
315
315
|
"height": 2,
|
|
@@ -321,7 +321,6 @@ exports[`SearchOneLine idle renders reserved variant correctly 1`] = `
|
|
|
321
321
|
undefined,
|
|
322
322
|
]
|
|
323
323
|
}
|
|
324
|
-
themeFocused={false}
|
|
325
324
|
themeVariant="reversed"
|
|
326
325
|
>
|
|
327
326
|
<View
|
|
@@ -340,14 +339,14 @@ exports[`SearchOneLine idle renders reserved variant correctly 1`] = `
|
|
|
340
339
|
[
|
|
341
340
|
{
|
|
342
341
|
"color": "#001f23",
|
|
343
|
-
"fontSize":
|
|
342
|
+
"fontSize": 16,
|
|
344
343
|
},
|
|
345
344
|
undefined,
|
|
346
345
|
]
|
|
347
346
|
}
|
|
348
347
|
testID="input-prefix"
|
|
349
348
|
themeIntent="text"
|
|
350
|
-
themeSize="
|
|
349
|
+
themeSize="xsmall"
|
|
351
350
|
/>
|
|
352
351
|
</View>
|
|
353
352
|
<TextInput
|
|
@@ -365,6 +364,7 @@ exports[`SearchOneLine idle renders reserved variant correctly 1`] = `
|
|
|
365
364
|
[
|
|
366
365
|
{
|
|
367
366
|
"alignSelf": "stretch",
|
|
367
|
+
"color": "#001f23",
|
|
368
368
|
"flexGrow": 1,
|
|
369
369
|
"flexShrink": 1,
|
|
370
370
|
"fontFamily": "BeVietnamPro-Regular",
|
|
@@ -394,14 +394,14 @@ exports[`SearchOneLine idle renders reserved variant correctly 1`] = `
|
|
|
394
394
|
[
|
|
395
395
|
{
|
|
396
396
|
"color": "#001f23",
|
|
397
|
-
"fontSize":
|
|
397
|
+
"fontSize": 16,
|
|
398
398
|
},
|
|
399
399
|
undefined,
|
|
400
400
|
]
|
|
401
401
|
}
|
|
402
402
|
testID="input-suffix"
|
|
403
403
|
themeIntent="text"
|
|
404
|
-
themeSize="
|
|
404
|
+
themeSize="xsmall"
|
|
405
405
|
/>
|
|
406
406
|
</View>
|
|
407
407
|
</View>
|
|
@@ -457,16 +457,15 @@ exports[`filled disabled renders correctly 1`] = `
|
|
|
457
457
|
"backgroundColor": "#f6f6f7",
|
|
458
458
|
"borderColor": "#f6f6f7",
|
|
459
459
|
"borderRadius": 999,
|
|
460
|
-
"borderWidth":
|
|
460
|
+
"borderWidth": 1,
|
|
461
461
|
"flexDirection": "row",
|
|
462
462
|
"height": 56,
|
|
463
|
-
"paddingHorizontal":
|
|
464
|
-
"paddingVertical":
|
|
463
|
+
"paddingHorizontal": 8,
|
|
464
|
+
"paddingVertical": 8,
|
|
465
465
|
},
|
|
466
466
|
undefined,
|
|
467
467
|
]
|
|
468
468
|
}
|
|
469
|
-
themeFocused={false}
|
|
470
469
|
themeVariant="basic"
|
|
471
470
|
>
|
|
472
471
|
<View
|
|
@@ -485,14 +484,14 @@ exports[`filled disabled renders correctly 1`] = `
|
|
|
485
484
|
[
|
|
486
485
|
{
|
|
487
486
|
"color": "#001f23",
|
|
488
|
-
"fontSize":
|
|
487
|
+
"fontSize": 16,
|
|
489
488
|
},
|
|
490
489
|
undefined,
|
|
491
490
|
]
|
|
492
491
|
}
|
|
493
492
|
testID="input-prefix"
|
|
494
493
|
themeIntent="text"
|
|
495
|
-
themeSize="
|
|
494
|
+
themeSize="xsmall"
|
|
496
495
|
/>
|
|
497
496
|
</View>
|
|
498
497
|
<TextInput
|
|
@@ -511,6 +510,7 @@ exports[`filled disabled renders correctly 1`] = `
|
|
|
511
510
|
[
|
|
512
511
|
{
|
|
513
512
|
"alignSelf": "stretch",
|
|
513
|
+
"color": "#001f23",
|
|
514
514
|
"flexGrow": 1,
|
|
515
515
|
"flexShrink": 1,
|
|
516
516
|
"fontFamily": "BeVietnamPro-Regular",
|
|
@@ -541,14 +541,14 @@ exports[`filled disabled renders correctly 1`] = `
|
|
|
541
541
|
[
|
|
542
542
|
{
|
|
543
543
|
"color": "#001f23",
|
|
544
|
-
"fontSize":
|
|
544
|
+
"fontSize": 16,
|
|
545
545
|
},
|
|
546
546
|
undefined,
|
|
547
547
|
]
|
|
548
548
|
}
|
|
549
549
|
testID="input-suffix"
|
|
550
550
|
themeIntent="text"
|
|
551
|
-
themeSize="
|
|
551
|
+
themeSize="xsmall"
|
|
552
552
|
/>
|
|
553
553
|
</View>
|
|
554
554
|
</View>
|
|
@@ -604,16 +604,15 @@ exports[`filled readonly renders correctly 1`] = `
|
|
|
604
604
|
"backgroundColor": "#f6f6f7",
|
|
605
605
|
"borderColor": "#f6f6f7",
|
|
606
606
|
"borderRadius": 999,
|
|
607
|
-
"borderWidth":
|
|
607
|
+
"borderWidth": 1,
|
|
608
608
|
"flexDirection": "row",
|
|
609
609
|
"height": 56,
|
|
610
|
-
"paddingHorizontal":
|
|
611
|
-
"paddingVertical":
|
|
610
|
+
"paddingHorizontal": 8,
|
|
611
|
+
"paddingVertical": 8,
|
|
612
612
|
},
|
|
613
613
|
undefined,
|
|
614
614
|
]
|
|
615
615
|
}
|
|
616
|
-
themeFocused={false}
|
|
617
616
|
themeVariant="basic"
|
|
618
617
|
>
|
|
619
618
|
<View
|
|
@@ -632,14 +631,14 @@ exports[`filled readonly renders correctly 1`] = `
|
|
|
632
631
|
[
|
|
633
632
|
{
|
|
634
633
|
"color": "#001f23",
|
|
635
|
-
"fontSize":
|
|
634
|
+
"fontSize": 16,
|
|
636
635
|
},
|
|
637
636
|
undefined,
|
|
638
637
|
]
|
|
639
638
|
}
|
|
640
639
|
testID="input-prefix"
|
|
641
640
|
themeIntent="text"
|
|
642
|
-
themeSize="
|
|
641
|
+
themeSize="xsmall"
|
|
643
642
|
/>
|
|
644
643
|
</View>
|
|
645
644
|
<TextInput
|
|
@@ -658,6 +657,7 @@ exports[`filled readonly renders correctly 1`] = `
|
|
|
658
657
|
[
|
|
659
658
|
{
|
|
660
659
|
"alignSelf": "stretch",
|
|
660
|
+
"color": "#001f23",
|
|
661
661
|
"flexGrow": 1,
|
|
662
662
|
"flexShrink": 1,
|
|
663
663
|
"fontFamily": "BeVietnamPro-Regular",
|
|
@@ -688,14 +688,14 @@ exports[`filled readonly renders correctly 1`] = `
|
|
|
688
688
|
[
|
|
689
689
|
{
|
|
690
690
|
"color": "#001f23",
|
|
691
|
-
"fontSize":
|
|
691
|
+
"fontSize": 16,
|
|
692
692
|
},
|
|
693
693
|
undefined,
|
|
694
694
|
]
|
|
695
695
|
}
|
|
696
696
|
testID="input-suffix"
|
|
697
697
|
themeIntent="text"
|
|
698
|
-
themeSize="
|
|
698
|
+
themeSize="xsmall"
|
|
699
699
|
/>
|
|
700
700
|
</View>
|
|
701
701
|
</View>
|
|
@@ -751,16 +751,15 @@ exports[`filled renders clearable input correctly 1`] = `
|
|
|
751
751
|
"backgroundColor": "#f6f6f7",
|
|
752
752
|
"borderColor": "#f6f6f7",
|
|
753
753
|
"borderRadius": 999,
|
|
754
|
-
"borderWidth":
|
|
754
|
+
"borderWidth": 1,
|
|
755
755
|
"flexDirection": "row",
|
|
756
756
|
"height": 56,
|
|
757
|
-
"paddingHorizontal":
|
|
758
|
-
"paddingVertical":
|
|
757
|
+
"paddingHorizontal": 8,
|
|
758
|
+
"paddingVertical": 8,
|
|
759
759
|
},
|
|
760
760
|
undefined,
|
|
761
761
|
]
|
|
762
762
|
}
|
|
763
|
-
themeFocused={false}
|
|
764
763
|
themeVariant="basic"
|
|
765
764
|
>
|
|
766
765
|
<View
|
|
@@ -779,14 +778,14 @@ exports[`filled renders clearable input correctly 1`] = `
|
|
|
779
778
|
[
|
|
780
779
|
{
|
|
781
780
|
"color": "#001f23",
|
|
782
|
-
"fontSize":
|
|
781
|
+
"fontSize": 16,
|
|
783
782
|
},
|
|
784
783
|
undefined,
|
|
785
784
|
]
|
|
786
785
|
}
|
|
787
786
|
testID="input-prefix"
|
|
788
787
|
themeIntent="text"
|
|
789
|
-
themeSize="
|
|
788
|
+
themeSize="xsmall"
|
|
790
789
|
/>
|
|
791
790
|
</View>
|
|
792
791
|
<TextInput
|
|
@@ -804,6 +803,7 @@ exports[`filled renders clearable input correctly 1`] = `
|
|
|
804
803
|
[
|
|
805
804
|
{
|
|
806
805
|
"alignSelf": "stretch",
|
|
806
|
+
"color": "#001f23",
|
|
807
807
|
"flexGrow": 1,
|
|
808
808
|
"flexShrink": 1,
|
|
809
809
|
"fontFamily": "BeVietnamPro-Regular",
|
|
@@ -869,13 +869,13 @@ exports[`filled renders clearable input correctly 1`] = `
|
|
|
869
869
|
[
|
|
870
870
|
{
|
|
871
871
|
"color": "#001f23",
|
|
872
|
-
"fontSize":
|
|
872
|
+
"fontSize": 16,
|
|
873
873
|
},
|
|
874
874
|
undefined,
|
|
875
875
|
]
|
|
876
876
|
}
|
|
877
877
|
themeIntent="text"
|
|
878
|
-
themeSize="
|
|
878
|
+
themeSize="xsmall"
|
|
879
879
|
/>
|
|
880
880
|
</View>
|
|
881
881
|
</View>
|
|
@@ -932,16 +932,15 @@ exports[`filled renders correctly 1`] = `
|
|
|
932
932
|
"backgroundColor": "#f6f6f7",
|
|
933
933
|
"borderColor": "#f6f6f7",
|
|
934
934
|
"borderRadius": 999,
|
|
935
|
-
"borderWidth":
|
|
935
|
+
"borderWidth": 1,
|
|
936
936
|
"flexDirection": "row",
|
|
937
937
|
"height": 56,
|
|
938
|
-
"paddingHorizontal":
|
|
939
|
-
"paddingVertical":
|
|
938
|
+
"paddingHorizontal": 8,
|
|
939
|
+
"paddingVertical": 8,
|
|
940
940
|
},
|
|
941
941
|
undefined,
|
|
942
942
|
]
|
|
943
943
|
}
|
|
944
|
-
themeFocused={false}
|
|
945
944
|
themeVariant="basic"
|
|
946
945
|
>
|
|
947
946
|
<View
|
|
@@ -960,14 +959,14 @@ exports[`filled renders correctly 1`] = `
|
|
|
960
959
|
[
|
|
961
960
|
{
|
|
962
961
|
"color": "#001f23",
|
|
963
|
-
"fontSize":
|
|
962
|
+
"fontSize": 16,
|
|
964
963
|
},
|
|
965
964
|
undefined,
|
|
966
965
|
]
|
|
967
966
|
}
|
|
968
967
|
testID="input-prefix"
|
|
969
968
|
themeIntent="text"
|
|
970
|
-
themeSize="
|
|
969
|
+
themeSize="xsmall"
|
|
971
970
|
/>
|
|
972
971
|
</View>
|
|
973
972
|
<TextInput
|
|
@@ -985,6 +984,7 @@ exports[`filled renders correctly 1`] = `
|
|
|
985
984
|
[
|
|
986
985
|
{
|
|
987
986
|
"alignSelf": "stretch",
|
|
987
|
+
"color": "#001f23",
|
|
988
988
|
"flexGrow": 1,
|
|
989
989
|
"flexShrink": 1,
|
|
990
990
|
"fontFamily": "BeVietnamPro-Regular",
|
|
@@ -1015,14 +1015,14 @@ exports[`filled renders correctly 1`] = `
|
|
|
1015
1015
|
[
|
|
1016
1016
|
{
|
|
1017
1017
|
"color": "#001f23",
|
|
1018
|
-
"fontSize":
|
|
1018
|
+
"fontSize": 16,
|
|
1019
1019
|
},
|
|
1020
1020
|
undefined,
|
|
1021
1021
|
]
|
|
1022
1022
|
}
|
|
1023
1023
|
testID="input-suffix"
|
|
1024
1024
|
themeIntent="text"
|
|
1025
|
-
themeSize="
|
|
1025
|
+
themeSize="xsmall"
|
|
1026
1026
|
/>
|
|
1027
1027
|
</View>
|
|
1028
1028
|
</View>
|
|
@@ -102,14 +102,14 @@ exports[`SearchSuffixIcon renders correctly 1`] = `
|
|
|
102
102
|
[
|
|
103
103
|
{
|
|
104
104
|
"color": "#001f23",
|
|
105
|
-
"fontSize":
|
|
105
|
+
"fontSize": 16,
|
|
106
106
|
},
|
|
107
107
|
undefined,
|
|
108
108
|
]
|
|
109
109
|
}
|
|
110
110
|
testID="input-suffix"
|
|
111
111
|
themeIntent="text"
|
|
112
|
-
themeSize="
|
|
112
|
+
themeSize="xsmall"
|
|
113
113
|
/>
|
|
114
114
|
</View>
|
|
115
115
|
</View>
|
|
@@ -26,16 +26,15 @@ exports[`SearchTwoLine renders correctly 1`] = `
|
|
|
26
26
|
"backgroundColor": "#f6f6f7",
|
|
27
27
|
"borderColor": "#f6f6f7",
|
|
28
28
|
"borderRadius": 999,
|
|
29
|
-
"borderWidth":
|
|
29
|
+
"borderWidth": 1,
|
|
30
30
|
"flexDirection": "row",
|
|
31
31
|
"height": 56,
|
|
32
|
-
"paddingHorizontal":
|
|
33
|
-
"paddingVertical":
|
|
32
|
+
"paddingHorizontal": 8,
|
|
33
|
+
"paddingVertical": 8,
|
|
34
34
|
},
|
|
35
35
|
undefined,
|
|
36
36
|
]
|
|
37
37
|
}
|
|
38
|
-
themeFocused={false}
|
|
39
38
|
themeVariant="basic"
|
|
40
39
|
>
|
|
41
40
|
<View
|
|
@@ -54,14 +53,14 @@ exports[`SearchTwoLine renders correctly 1`] = `
|
|
|
54
53
|
[
|
|
55
54
|
{
|
|
56
55
|
"color": "#001f23",
|
|
57
|
-
"fontSize":
|
|
56
|
+
"fontSize": 16,
|
|
58
57
|
},
|
|
59
58
|
undefined,
|
|
60
59
|
]
|
|
61
60
|
}
|
|
62
61
|
testID="input-prefix"
|
|
63
62
|
themeIntent="text"
|
|
64
|
-
themeSize="
|
|
63
|
+
themeSize="xsmall"
|
|
65
64
|
/>
|
|
66
65
|
</View>
|
|
67
66
|
<View
|
|
@@ -136,14 +135,14 @@ exports[`SearchTwoLine renders correctly 1`] = `
|
|
|
136
135
|
[
|
|
137
136
|
{
|
|
138
137
|
"color": "#001f23",
|
|
139
|
-
"fontSize":
|
|
138
|
+
"fontSize": 16,
|
|
140
139
|
},
|
|
141
140
|
undefined,
|
|
142
141
|
]
|
|
143
142
|
}
|
|
144
143
|
testID="input-suffix"
|
|
145
144
|
themeIntent="text"
|
|
146
|
-
themeSize="
|
|
145
|
+
themeSize="xsmall"
|
|
147
146
|
/>
|
|
148
147
|
</View>
|
|
149
148
|
</View>
|
|
@@ -201,8 +200,8 @@ exports[`SearchTwoLine renders reserved variant correctly 1`] = `
|
|
|
201
200
|
"elevation": 6,
|
|
202
201
|
"flexDirection": "row",
|
|
203
202
|
"height": 56,
|
|
204
|
-
"paddingHorizontal":
|
|
205
|
-
"paddingVertical":
|
|
203
|
+
"paddingHorizontal": 8,
|
|
204
|
+
"paddingVertical": 8,
|
|
206
205
|
"shadowColor": "#001f23",
|
|
207
206
|
"shadowOffset": {
|
|
208
207
|
"height": 2,
|
|
@@ -214,7 +213,6 @@ exports[`SearchTwoLine renders reserved variant correctly 1`] = `
|
|
|
214
213
|
undefined,
|
|
215
214
|
]
|
|
216
215
|
}
|
|
217
|
-
themeFocused={false}
|
|
218
216
|
themeVariant="reversed"
|
|
219
217
|
>
|
|
220
218
|
<View
|
|
@@ -233,14 +231,14 @@ exports[`SearchTwoLine renders reserved variant correctly 1`] = `
|
|
|
233
231
|
[
|
|
234
232
|
{
|
|
235
233
|
"color": "#001f23",
|
|
236
|
-
"fontSize":
|
|
234
|
+
"fontSize": 16,
|
|
237
235
|
},
|
|
238
236
|
undefined,
|
|
239
237
|
]
|
|
240
238
|
}
|
|
241
239
|
testID="input-prefix"
|
|
242
240
|
themeIntent="text"
|
|
243
|
-
themeSize="
|
|
241
|
+
themeSize="xsmall"
|
|
244
242
|
/>
|
|
245
243
|
</View>
|
|
246
244
|
<View
|
|
@@ -315,14 +313,14 @@ exports[`SearchTwoLine renders reserved variant correctly 1`] = `
|
|
|
315
313
|
[
|
|
316
314
|
{
|
|
317
315
|
"color": "#001f23",
|
|
318
|
-
"fontSize":
|
|
316
|
+
"fontSize": 16,
|
|
319
317
|
},
|
|
320
318
|
undefined,
|
|
321
319
|
]
|
|
322
320
|
}
|
|
323
321
|
testID="input-suffix"
|
|
324
322
|
themeIntent="text"
|
|
325
|
-
themeSize="
|
|
323
|
+
themeSize="xsmall"
|
|
326
324
|
/>
|
|
327
325
|
</View>
|
|
328
326
|
</View>
|
|
@@ -24,14 +24,14 @@ exports[`utils renderPrefix renders correctly 1`] = `
|
|
|
24
24
|
[
|
|
25
25
|
{
|
|
26
26
|
"color": "#001f23",
|
|
27
|
-
"fontSize":
|
|
27
|
+
"fontSize": 16,
|
|
28
28
|
},
|
|
29
29
|
undefined,
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
32
|
testID="input-prefix"
|
|
33
33
|
themeIntent="text"
|
|
34
|
-
themeSize="
|
|
34
|
+
themeSize="xsmall"
|
|
35
35
|
/>
|
|
36
36
|
</View>
|
|
37
37
|
<View
|
|
@@ -81,14 +81,14 @@ exports[`utils renderSuffix renders correctly 1`] = `
|
|
|
81
81
|
[
|
|
82
82
|
{
|
|
83
83
|
"color": "#001f23",
|
|
84
|
-
"fontSize":
|
|
84
|
+
"fontSize": 16,
|
|
85
85
|
},
|
|
86
86
|
undefined,
|
|
87
87
|
]
|
|
88
88
|
}
|
|
89
89
|
testID="input-suffix"
|
|
90
90
|
themeIntent="text"
|
|
91
|
-
themeSize="
|
|
91
|
+
themeSize="xsmall"
|
|
92
92
|
/>
|
|
93
93
|
</View>
|
|
94
94
|
<View
|
|
@@ -9,7 +9,7 @@ export const renderPrefix = ({
|
|
|
9
9
|
}) => {
|
|
10
10
|
return typeof prefix === 'string' ? (
|
|
11
11
|
<StyledAffixContainer>
|
|
12
|
-
<Icon intent="text" testID="input-prefix" icon={prefix} size="
|
|
12
|
+
<Icon intent="text" testID="input-prefix" icon={prefix} size="xsmall" />
|
|
13
13
|
</StyledAffixContainer>
|
|
14
14
|
) : (
|
|
15
15
|
prefix
|
|
@@ -23,7 +23,7 @@ export const renderSuffix = ({
|
|
|
23
23
|
}) => {
|
|
24
24
|
return typeof suffix === 'string' ? (
|
|
25
25
|
<StyledAffixContainer>
|
|
26
|
-
<Icon intent="text" testID="input-suffix" icon={suffix} size="
|
|
26
|
+
<Icon intent="text" testID="input-suffix" icon={suffix} size="xsmall" />
|
|
27
27
|
</StyledAffixContainer>
|
|
28
28
|
) : (
|
|
29
29
|
suffix
|