Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions __tests__/snapshots/__snapshots__/common-components.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,13 @@ exports[`SearchBar snapshots renders with custom placeholder 1`] = `
size={18}
/>
<TextInput
accessibilityLabel="Find records…"
className="h-12 flex-1 text-base text-foreground placeholder:text-muted-foreground"
clearButtonMode="never"
onChangeText={[Function]}
placeholder="Find records…"
placeholderTextColor="#94a3b8"
returnKeyType="search"
value=""
/>
</View>
Expand All @@ -117,10 +120,13 @@ exports[`SearchBar snapshots renders with default placeholder 1`] = `
size={18}
/>
<TextInput
accessibilityLabel="Search…"
className="h-12 flex-1 text-base text-foreground placeholder:text-muted-foreground"
clearButtonMode="never"
onChangeText={[Function]}
placeholder="Search…"
placeholderTextColor="#94a3b8"
returnKeyType="search"
value=""
/>
</View>
Expand All @@ -135,11 +141,54 @@ exports[`SearchBar snapshots renders with value 1`] = `
size={18}
/>
<TextInput
accessibilityLabel="Search…"
className="h-12 flex-1 text-base text-foreground placeholder:text-muted-foreground"
clearButtonMode="never"
onChangeText={[Function]}
placeholder="Search…"
placeholderTextColor="#94a3b8"
returnKeyType="search"
value="test query"
/>
<View
accessibilityLabel="Clear search"
accessibilityRole="button"
accessibilityState={
{
"busy": undefined,
"checked": undefined,
"disabled": undefined,
"expanded": undefined,
"selected": undefined,
}
}
accessibilityValue={
{
"max": undefined,
"min": undefined,
"now": undefined,
"text": undefined,
}
}
accessible={true}
className="rounded-full p-1 active:opacity-60"
collapsable={false}
focusable={true}
hitSlop={8}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
onResponderRelease={[Function]}
onResponderTerminate={[Function]}
onResponderTerminationRequest={[Function]}
onStartShouldSetResponder={[Function]}
>
<View
className="text-muted-foreground"
size={16}
/>
</View>
</View>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ exports[`Checkbox snapshots renders checked 1`] = `
{
"busy": undefined,
"checked": true,
"disabled": undefined,
"disabled": false,
"expanded": undefined,
"selected": undefined,
}
Expand All @@ -72,9 +72,10 @@ exports[`Checkbox snapshots renders checked 1`] = `
}
}
accessible={true}
className="h-5 w-5 items-center justify-center rounded border border-primary bg-primary"
className="h-5 w-5 items-center justify-center rounded border border-primary bg-primary active:opacity-70"
collapsable={false}
focusable={true}
hitSlop={8}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
Expand All @@ -87,7 +88,7 @@ exports[`Checkbox snapshots renders checked 1`] = `
role="checkbox"
>
<View
className="text-primary-foreground"
color="#ffffff"
size={14}
/>
</View>
Expand Down Expand Up @@ -116,6 +117,7 @@ exports[`Checkbox snapshots renders disabled 1`] = `
className="h-5 w-5 items-center justify-center rounded border border-input bg-background opacity-50"
collapsable={false}
focusable={true}
hitSlop={8}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
Expand All @@ -135,7 +137,7 @@ exports[`Checkbox snapshots renders unchecked 1`] = `
{
"busy": undefined,
"checked": false,
"disabled": undefined,
"disabled": false,
"expanded": undefined,
"selected": undefined,
}
Expand All @@ -149,9 +151,10 @@ exports[`Checkbox snapshots renders unchecked 1`] = `
}
}
accessible={true}
className="h-5 w-5 items-center justify-center rounded border border-input bg-background"
className="h-5 w-5 items-center justify-center rounded border border-input bg-background active:opacity-70"
collapsable={false}
focusable={true}
hitSlop={8}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
Expand All @@ -167,10 +170,10 @@ exports[`Checkbox snapshots renders unchecked 1`] = `

exports[`Input snapshots renders default input 1`] = `
<View
className="rounded-xl border border-input bg-background px-4"
className="h-12 flex-row items-center rounded-xl border border-input bg-background px-4"
>
<TextInput
className="h-12 text-base text-foreground placeholder:text-muted-foreground"
className="h-full flex-1 text-base text-foreground placeholder:text-muted-foreground"
onBlur={[Function]}
onFocus={[Function]}
placeholder="Enter text"
Expand All @@ -181,10 +184,10 @@ exports[`Input snapshots renders default input 1`] = `

exports[`Input snapshots renders with custom class 1`] = `
<View
className="rounded-xl border border-input px-4 bg-red-50"
className="h-12 flex-row items-center rounded-xl border border-input px-4 bg-red-50"
>
<TextInput
className="h-12 text-base text-foreground placeholder:text-muted-foreground"
className="h-full flex-1 text-base text-foreground placeholder:text-muted-foreground"
onBlur={[Function]}
onFocus={[Function]}
placeholder="Search"
Expand Down Expand Up @@ -223,7 +226,7 @@ exports[`Switch snapshots renders checked 1`] = `
{
"busy": undefined,
"checked": true,
"disabled": undefined,
"disabled": false,
"expanded": undefined,
"selected": undefined,
}
Expand All @@ -237,9 +240,10 @@ exports[`Switch snapshots renders checked 1`] = `
}
}
accessible={true}
className="h-7 w-12 rounded-full justify-center bg-primary"
className="h-7 w-12 rounded-full justify-center bg-primary active:opacity-80"
collapsable={false}
focusable={true}
hitSlop={6}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
Expand Down Expand Up @@ -289,6 +293,7 @@ exports[`Switch snapshots renders disabled 1`] = `
className="h-7 w-12 rounded-full justify-center bg-input opacity-50"
collapsable={false}
focusable={true}
hitSlop={6}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
Expand Down Expand Up @@ -321,7 +326,7 @@ exports[`Switch snapshots renders unchecked 1`] = `
{
"busy": undefined,
"checked": false,
"disabled": undefined,
"disabled": false,
"expanded": undefined,
"selected": undefined,
}
Expand All @@ -335,9 +340,10 @@ exports[`Switch snapshots renders unchecked 1`] = `
}
}
accessible={true}
className="h-7 w-12 rounded-full justify-center bg-input"
className="h-7 w-12 rounded-full justify-center bg-input active:opacity-80"
collapsable={false}
focusable={true}
hitSlop={6}
onBlur={[Function]}
onClick={[Function]}
onFocus={[Function]}
Expand Down
Loading
Loading