@take-out/docs 0.0.42 → 0.0.43

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": "@take-out/docs",
3
- "version": "0.0.42",
3
+ "version": "0.0.43",
4
4
  "description": "Documentation files for Takeout starter kit",
5
5
  "type": "module",
6
6
  "files": [
package/sync-prompt.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: sync-prompt
3
- description: Intelligent sync guide for updating forked Takeout with upstream changes while preserving customizations. INVOKE WHEN: sync, upstream sync, fork sync, merging upstream, git merge, tamagui/takeout3, upstream changes, update from takeout, takeout updates.
3
+ description: Intelligent sync guide for updating forked Takeout with upstream changes while preserving customizations. INVOKE WHEN: sync, upstream sync, fork sync, merging upstream, git merge, tamagui/takeout2, upstream changes, update from takeout, takeout updates.
4
4
  ---
5
5
 
6
6
  # Takeout Repository Sync Prompt
@@ -9,7 +9,7 @@ You are helping sync a fork of the Takeout starter kit with the latest upstream
9
9
 
10
10
  ## Context
11
11
 
12
- This application was forked from Takeout, a full-stack starter kit for building production-ready apps. The upstream repository is at `git@github.com:tamagui/takeout3.git`.
12
+ This application was forked from Takeout, a full-stack starter kit for building production-ready apps. The upstream repository is at `git@github.com:tamagui/takeout2.git`.
13
13
 
14
14
  ## Your Task
15
15
 
@@ -22,7 +22,7 @@ Intelligently sync the latest Takeout changes into this repository while preserv
22
22
  Clone the upstream Takeout repository to a temporary directory:
23
23
 
24
24
  ```bash
25
- git clone git@github.com:tamagui/takeout3.git /tmp/takeout-upstream
25
+ git clone git@github.com:tamagui/takeout2.git /tmp/takeout-upstream
26
26
  cd /tmp/takeout-upstream
27
27
  ```
28
28
 
package/tamagui.md CHANGED
@@ -7,6 +7,45 @@ description: Tamagui UI framework guide. Use when styling, components, tokens ($
7
7
 
8
8
  This guide covers the Tamagui configuration and usage patterns in this project.
9
9
 
10
+ ## Version 2 Notes
11
+
12
+ This project uses Tamagui v2. Key changes from v1:
13
+
14
+ ### Web-Aligned Defaults
15
+
16
+ - **`defaultPosition: 'static'`** - Elements no longer default to relative positioning
17
+ - **`box-sizing: border-box`** - All elements use border-box by default
18
+ - **`transition` prop** - Use `transition` for CSS transitions (not `animation` which is for spring/keyframe animations)
19
+
20
+ ### Web-First Props (Breaking Changes)
21
+
22
+ **Accessibility:** Use web-standard props only:
23
+ - ❌ `accessibilityLabel` → ✅ `aria-label`
24
+ - ❌ `accessibilityRole` → ✅ `role`
25
+ - ❌ `focusable` → ✅ `tabIndex`
26
+
27
+ **Events:** Use web-standard event handlers:
28
+ - ❌ `onPress` → ✅ `onClick`
29
+ - ❌ `onPressIn` → ✅ `onPointerDown`
30
+ - ❌ `onPressOut` → ✅ `onPointerUp`
31
+ - ✅ `onChangeText` - Still supported (ergonomic exception for RN devs)
32
+
33
+ **Shadows:** Use CSS `boxShadow` instead of legacy RN shadow props:
34
+ - ❌ `shadowColor`, `shadowOffset`, `shadowOpacity`, `shadowRadius`
35
+ - ✅ `boxShadow="0 2px 10px $shadowColor"` - Supports $token in strings
36
+
37
+ ### Updated Components
38
+
39
+ **Image:** New web-aligned component:
40
+ ```tsx
41
+ <Image src="/path/to/image.png" objectFit="cover" />
42
+ ```
43
+
44
+ **Input:** New props for mobile keyboards:
45
+ ```tsx
46
+ <Input inputMode="email" enterKeyHint="send" />
47
+ ```
48
+
10
49
  ## Configuration Settings
11
50
 
12
51
  **IMPORTANT:** These settings affect how you write Tamagui code in this project.