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.5",
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.5",
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
- <SafeAreaView
18
- style={{ flex: 1, backgroundColor: theme.surface.primary }}
19
- edges={['top', 'left', 'right']}
20
- >
21
- {title ? (
22
- <View style={{ paddingHorizontal: theme.space.md, paddingTop: theme.space.md, paddingBottom: theme.space.sm }}>
23
- <Text size="title">{title}</Text>
24
- </View>
25
- ) : null}
26
- <Body
27
- style={{ flex: 1 }}
28
- contentContainerStyle={
29
- scrollable
30
- ? { padding: theme.space.md, gap: theme.space.md }
31
- : undefined
32
- }
33
- >
34
- {scrollable ? children : <View style={{ flex: 1, padding: theme.space.md, gap: theme.space.md }}>{children}</View>}
35
- </Body>
36
- </SafeAreaView>
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
  }
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@babel/core": "^7.24.0",
29
- "@sherizan/proto-cli": "^0.1.5",
29
+ "@sherizan/proto-cli": "^0.1.6",
30
30
  "@types/react": "~19.2.15",
31
31
  "babel-preset-expo": "~55.0.22",
32
32
  "typescript": "^5.9.2"