@hero-design/rn 7.16.1 → 7.16.2
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/es/index.js +25 -48
- package/lib/index.js +25 -48
- package/package.json +2 -2
- package/src/components/DatePicker/DatePickerIOS.tsx +2 -2
- package/src/components/List/StyledBasicListItem.tsx +2 -2
- package/src/components/Select/MultiSelect/Option.tsx +7 -10
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +39 -21
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +342 -203
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +366 -224
- package/src/components/Select/SingleSelect/Option.tsx +2 -11
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +21 -14
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +252 -168
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +294 -196
- package/src/components/Select/StyledSelect.tsx +2 -15
- package/src/components/Select/__tests__/StyledSelect.spec.tsx +1 -15
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +0 -54
- package/src/components/TimePicker/TimePickerIOS.tsx +2 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -2
- package/src/theme/components/select.ts +0 -2
- package/types/components/Select/StyledSelect.d.ts +2 -10
- package/types/theme/components/select.d.ts +0 -2
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import Typography from '../../Typography';
|
|
5
|
-
import { OptionWrapper } from '../StyledSelect';
|
|
2
|
+
import List from '../../List';
|
|
6
3
|
|
|
7
4
|
const Option = ({
|
|
8
5
|
text,
|
|
@@ -12,12 +9,6 @@ const Option = ({
|
|
|
12
9
|
text: string;
|
|
13
10
|
selected: boolean;
|
|
14
11
|
onPress: () => void;
|
|
15
|
-
}) =>
|
|
16
|
-
<OptionWrapper themeSelected={selected} onPress={onPress}>
|
|
17
|
-
<View style={{ flex: 1 }}>
|
|
18
|
-
<Typography.Text fontSize="large">{text}</Typography.Text>
|
|
19
|
-
</View>
|
|
20
|
-
</OptionWrapper>
|
|
21
|
-
);
|
|
12
|
+
}) => <List.BasicItem selected={selected} onPress={onPress} title={text} />;
|
|
22
13
|
|
|
23
14
|
export default Option;
|
|
@@ -2,10 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Option renders correctly 1`] = `
|
|
4
4
|
<View
|
|
5
|
+
accessibilityState={
|
|
6
|
+
Object {
|
|
7
|
+
"disabled": false,
|
|
8
|
+
}
|
|
9
|
+
}
|
|
5
10
|
accessible={true}
|
|
6
|
-
collapsable={false}
|
|
7
11
|
focusable={true}
|
|
8
|
-
nativeID="animatedComponent"
|
|
9
12
|
onClick={[Function]}
|
|
10
13
|
onResponderGrant={[Function]}
|
|
11
14
|
onResponderMove={[Function]}
|
|
@@ -14,22 +17,26 @@ exports[`Option renders correctly 1`] = `
|
|
|
14
17
|
onResponderTerminationRequest={[Function]}
|
|
15
18
|
onStartShouldSetResponder={[Function]}
|
|
16
19
|
style={
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
Array [
|
|
21
|
+
Object {
|
|
22
|
+
"alignItems": "center",
|
|
23
|
+
"backgroundColor": "#f1e9fb",
|
|
24
|
+
"flexDirection": "row",
|
|
25
|
+
"opacity": 1,
|
|
26
|
+
"padding": 16,
|
|
27
|
+
},
|
|
28
|
+
undefined,
|
|
29
|
+
]
|
|
26
30
|
}
|
|
27
31
|
>
|
|
28
32
|
<View
|
|
29
33
|
style={
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
Array [
|
|
35
|
+
Object {
|
|
36
|
+
"flex": 1,
|
|
37
|
+
},
|
|
38
|
+
undefined,
|
|
39
|
+
]
|
|
33
40
|
}
|
|
34
41
|
>
|
|
35
42
|
<Text
|