create-proto 0.1.5 → 0.1.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-proto",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Scaffold a new Proto prototype: `npm create proto@latest myapp`. Designer-first native iOS prototyping environment that pairs with Claude Code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@clack/prompts": "^0.7.0",
|
|
45
|
-
"@sherizan/proto-cli": "^0.1.
|
|
45
|
+
"@sherizan/proto-cli": "^0.1.6",
|
|
46
46
|
"fs-extra": "^11.2.0",
|
|
47
47
|
"qrcode-terminal": "^0.12.0",
|
|
48
48
|
"validate-npm-package-name": "^5.0.1"
|
|
@@ -14,25 +14,35 @@ export function Screen({ title, scrollable = true, children }: ScreenProps) {
|
|
|
14
14
|
const theme = useTheme();
|
|
15
15
|
const Body = scrollable ? ScrollView : View;
|
|
16
16
|
return (
|
|
17
|
-
<
|
|
18
|
-
style={{ flex: 1,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
17
|
+
<View style={{ flex: 1, backgroundColor: theme.surface.primary }}>
|
|
18
|
+
<SafeAreaView style={{ flex: 1 }} edges={['top', 'left', 'right']}>
|
|
19
|
+
{title ? (
|
|
20
|
+
<View
|
|
21
|
+
style={{
|
|
22
|
+
paddingHorizontal: theme.space.md,
|
|
23
|
+
paddingBottom: theme.space.xs,
|
|
24
|
+
}}
|
|
25
|
+
>
|
|
26
|
+
<Text size="title">{title}</Text>
|
|
27
|
+
</View>
|
|
28
|
+
) : null}
|
|
29
|
+
<Body
|
|
30
|
+
style={{ flex: 1 }}
|
|
31
|
+
contentContainerStyle={
|
|
32
|
+
scrollable
|
|
33
|
+
? { padding: theme.space.md, gap: theme.space.md }
|
|
34
|
+
: undefined
|
|
35
|
+
}
|
|
36
|
+
>
|
|
37
|
+
{scrollable ? (
|
|
38
|
+
children
|
|
39
|
+
) : (
|
|
40
|
+
<View style={{ flex: 1, padding: theme.space.md, gap: theme.space.md }}>
|
|
41
|
+
{children}
|
|
42
|
+
</View>
|
|
43
|
+
)}
|
|
44
|
+
</Body>
|
|
45
|
+
</SafeAreaView>
|
|
46
|
+
</View>
|
|
37
47
|
);
|
|
38
48
|
}
|
package/template/package.json
CHANGED