nwui-cli 0.4.1 → 0.4.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.
Files changed (312) hide show
  1. package/.turbo/turbo-build.log +2 -1
  2. package/build/index.js +33 -17
  3. package/build/install-component.js +105 -48
  4. package/build/login.js +14 -11
  5. package/build/utils/env.js +1 -1
  6. package/package.json +2 -1
  7. package/build/cli/src/index.js +0 -41
  8. package/build/cli/src/install-component.js +0 -42
  9. package/build/cli/src/login.js +0 -77
  10. package/build/cli/src/net.js +0 -12
  11. package/build/cli/src/project-setup.js +0 -1
  12. package/build/cli/src/prompts.js +0 -119
  13. package/build/cli/src/utils/local-storage.js +0 -19
  14. package/build/docs/app/data.js +0 -1380
  15. package/build/log/index.js +0 -81
  16. package/build/prompts.js +0 -119
  17. package/my-expo-app-2/app/+html.tsx +0 -46
  18. package/my-expo-app-2/app/+not-found.tsx +0 -33
  19. package/my-expo-app-2/app/_layout.tsx +0 -22
  20. package/my-expo-app-2/app/details.tsx +0 -17
  21. package/my-expo-app-2/app/index.tsx +0 -23
  22. package/my-expo-app-2/app-env.d.ts +0 -2
  23. package/my-expo-app-2/app.json +0 -48
  24. package/my-expo-app-2/assets/adaptive-icon.png +0 -0
  25. package/my-expo-app-2/assets/favicon.png +0 -0
  26. package/my-expo-app-2/assets/icon.png +0 -0
  27. package/my-expo-app-2/assets/splash.png +0 -0
  28. package/my-expo-app-2/babel.config.js +0 -18
  29. package/my-expo-app-2/cesconfig.json +0 -35
  30. package/my-expo-app-2/components/Button.tsx +0 -19
  31. package/my-expo-app-2/components/Container.tsx +0 -9
  32. package/my-expo-app-2/components/EditScreenInfo.tsx +0 -34
  33. package/my-expo-app-2/components/ScreenContent.tsx +0 -25
  34. package/my-expo-app-2/components/nativewindui/ActivityIndicator.tsx +0 -13
  35. package/my-expo-app-2/components/nativewindui/AdaptiveSearchHeader/AdaptiveSearchHeader.ios.tsx +0 -97
  36. package/my-expo-app-2/components/nativewindui/AdaptiveSearchHeader/AdaptiveSearchHeader.tsx +0 -264
  37. package/my-expo-app-2/components/nativewindui/AdaptiveSearchHeader/index.ts +0 -1
  38. package/my-expo-app-2/components/nativewindui/AdaptiveSearchHeader/types.ts +0 -95
  39. package/my-expo-app-2/components/nativewindui/Alert/Alert.ios.tsx +0 -65
  40. package/my-expo-app-2/components/nativewindui/Alert/Alert.tsx +0 -291
  41. package/my-expo-app-2/components/nativewindui/Alert/index.ts +0 -1
  42. package/my-expo-app-2/components/nativewindui/Alert/types.ts +0 -27
  43. package/my-expo-app-2/components/nativewindui/Badge.tsx +0 -84
  44. package/my-expo-app-2/components/nativewindui/Button.tsx +0 -156
  45. package/my-expo-app-2/components/nativewindui/Checkbox.tsx +0 -61
  46. package/my-expo-app-2/components/nativewindui/ContextMenu/ContextMenu.ios.tsx +0 -221
  47. package/my-expo-app-2/components/nativewindui/ContextMenu/ContextMenu.tsx +0 -420
  48. package/my-expo-app-2/components/nativewindui/ContextMenu/index.ts +0 -1
  49. package/my-expo-app-2/components/nativewindui/ContextMenu/types.ts +0 -91
  50. package/my-expo-app-2/components/nativewindui/ContextMenu/utils.ts +0 -14
  51. package/my-expo-app-2/components/nativewindui/DrawerContent.tsx +0 -145
  52. package/my-expo-app-2/components/nativewindui/DropdownMenu/DropdownMenu.ios.tsx +0 -168
  53. package/my-expo-app-2/components/nativewindui/DropdownMenu/DropdownMenu.tsx +0 -330
  54. package/my-expo-app-2/components/nativewindui/DropdownMenu/index.ts +0 -1
  55. package/my-expo-app-2/components/nativewindui/DropdownMenu/types.ts +0 -93
  56. package/my-expo-app-2/components/nativewindui/DropdownMenu/utils.ts +0 -14
  57. package/my-expo-app-2/components/nativewindui/Form.tsx +0 -125
  58. package/my-expo-app-2/components/nativewindui/LargeTitleHeader/LargeTitleHeader.ios.tsx +0 -99
  59. package/my-expo-app-2/components/nativewindui/LargeTitleHeader/LargeTitleHeader.tsx +0 -288
  60. package/my-expo-app-2/components/nativewindui/LargeTitleHeader/index.ts +0 -1
  61. package/my-expo-app-2/components/nativewindui/LargeTitleHeader/types.ts +0 -89
  62. package/my-expo-app-2/components/nativewindui/List.tsx +0 -433
  63. package/my-expo-app-2/components/nativewindui/SearchInput/SearchInput.ios.tsx +0 -177
  64. package/my-expo-app-2/components/nativewindui/SearchInput/SearchInput.tsx +0 -86
  65. package/my-expo-app-2/components/nativewindui/SearchInput/index.tsx +0 -1
  66. package/my-expo-app-2/components/nativewindui/SearchInput/types.ts +0 -12
  67. package/my-expo-app-2/components/nativewindui/SegmentedControl/SegmentedControl.ios.tsx +0 -31
  68. package/my-expo-app-2/components/nativewindui/SegmentedControl/SegmentedControl.tsx +0 -55
  69. package/my-expo-app-2/components/nativewindui/SegmentedControl/index.ts +0 -1
  70. package/my-expo-app-2/components/nativewindui/SegmentedControl/types.ts +0 -15
  71. package/my-expo-app-2/components/nativewindui/Stepper.tsx +0 -62
  72. package/my-expo-app-2/components/nativewindui/Text.tsx +0 -55
  73. package/my-expo-app-2/components/nativewindui/TextField/TextField.ios.tsx +0 -85
  74. package/my-expo-app-2/components/nativewindui/TextField/TextField.tsx +0 -326
  75. package/my-expo-app-2/components/nativewindui/TextField/index.tsx +0 -1
  76. package/my-expo-app-2/components/nativewindui/TextField/types.ts +0 -26
  77. package/my-expo-app-2/components/nativewindui/Toolbar.tsx +0 -116
  78. package/my-expo-app-2/global.css +0 -3
  79. package/my-expo-app-2/metro.config.js +0 -12
  80. package/my-expo-app-2/package-lock.json +0 -19162
  81. package/my-expo-app-2/package.json +0 -74
  82. package/my-expo-app-2/prettier.config.js +0 -11
  83. package/my-expo-app-2/tailwind.config.js +0 -11
  84. package/my-expo-app-3/app/+html.tsx +0 -46
  85. package/my-expo-app-3/app/+not-found.tsx +0 -33
  86. package/my-expo-app-3/app/_layout.tsx +0 -22
  87. package/my-expo-app-3/app/details.tsx +0 -17
  88. package/my-expo-app-3/app/index.tsx +0 -23
  89. package/my-expo-app-3/app-env.d.ts +0 -2
  90. package/my-expo-app-3/app.json +0 -48
  91. package/my-expo-app-3/assets/adaptive-icon.png +0 -0
  92. package/my-expo-app-3/assets/favicon.png +0 -0
  93. package/my-expo-app-3/assets/icon.png +0 -0
  94. package/my-expo-app-3/assets/splash.png +0 -0
  95. package/my-expo-app-3/babel.config.js +0 -18
  96. package/my-expo-app-3/cesconfig.json +0 -35
  97. package/my-expo-app-3/components/Button.tsx +0 -19
  98. package/my-expo-app-3/components/Container.tsx +0 -9
  99. package/my-expo-app-3/components/EditScreenInfo.tsx +0 -34
  100. package/my-expo-app-3/components/ScreenContent.tsx +0 -25
  101. package/my-expo-app-3/components/nativewindui/ActivityIndicator.tsx +0 -13
  102. package/my-expo-app-3/components/nativewindui/AdaptiveSearchHeader/AdaptiveSearchHeader.ios.tsx +0 -97
  103. package/my-expo-app-3/components/nativewindui/AdaptiveSearchHeader/AdaptiveSearchHeader.tsx +0 -264
  104. package/my-expo-app-3/components/nativewindui/AdaptiveSearchHeader/index.ts +0 -1
  105. package/my-expo-app-3/components/nativewindui/AdaptiveSearchHeader/types.ts +0 -95
  106. package/my-expo-app-3/components/nativewindui/Alert/Alert.ios.tsx +0 -65
  107. package/my-expo-app-3/components/nativewindui/Alert/Alert.tsx +0 -291
  108. package/my-expo-app-3/components/nativewindui/Alert/index.ts +0 -1
  109. package/my-expo-app-3/components/nativewindui/Alert/types.ts +0 -27
  110. package/my-expo-app-3/components/nativewindui/Badge.tsx +0 -84
  111. package/my-expo-app-3/components/nativewindui/Button.tsx +0 -156
  112. package/my-expo-app-3/components/nativewindui/Checkbox.tsx +0 -61
  113. package/my-expo-app-3/components/nativewindui/ContextMenu/ContextMenu.ios.tsx +0 -221
  114. package/my-expo-app-3/components/nativewindui/ContextMenu/ContextMenu.tsx +0 -420
  115. package/my-expo-app-3/components/nativewindui/ContextMenu/index.ts +0 -1
  116. package/my-expo-app-3/components/nativewindui/ContextMenu/types.ts +0 -91
  117. package/my-expo-app-3/components/nativewindui/ContextMenu/utils.ts +0 -14
  118. package/my-expo-app-3/components/nativewindui/DrawerContent.tsx +0 -145
  119. package/my-expo-app-3/components/nativewindui/DropdownMenu/DropdownMenu.ios.tsx +0 -168
  120. package/my-expo-app-3/components/nativewindui/DropdownMenu/DropdownMenu.tsx +0 -330
  121. package/my-expo-app-3/components/nativewindui/DropdownMenu/index.ts +0 -1
  122. package/my-expo-app-3/components/nativewindui/DropdownMenu/types.ts +0 -93
  123. package/my-expo-app-3/components/nativewindui/DropdownMenu/utils.ts +0 -14
  124. package/my-expo-app-3/components/nativewindui/Form.tsx +0 -125
  125. package/my-expo-app-3/components/nativewindui/LargeTitleHeader/LargeTitleHeader.ios.tsx +0 -99
  126. package/my-expo-app-3/components/nativewindui/LargeTitleHeader/LargeTitleHeader.tsx +0 -288
  127. package/my-expo-app-3/components/nativewindui/LargeTitleHeader/index.ts +0 -1
  128. package/my-expo-app-3/components/nativewindui/LargeTitleHeader/types.ts +0 -89
  129. package/my-expo-app-3/components/nativewindui/List.tsx +0 -433
  130. package/my-expo-app-3/components/nativewindui/SearchInput/SearchInput.ios.tsx +0 -177
  131. package/my-expo-app-3/components/nativewindui/SearchInput/SearchInput.tsx +0 -86
  132. package/my-expo-app-3/components/nativewindui/SearchInput/index.tsx +0 -1
  133. package/my-expo-app-3/components/nativewindui/SearchInput/types.ts +0 -12
  134. package/my-expo-app-3/components/nativewindui/SegmentedControl/SegmentedControl.ios.tsx +0 -31
  135. package/my-expo-app-3/components/nativewindui/SegmentedControl/SegmentedControl.tsx +0 -55
  136. package/my-expo-app-3/components/nativewindui/SegmentedControl/index.ts +0 -1
  137. package/my-expo-app-3/components/nativewindui/SegmentedControl/types.ts +0 -15
  138. package/my-expo-app-3/components/nativewindui/Stepper.tsx +0 -62
  139. package/my-expo-app-3/components/nativewindui/Text.tsx +0 -55
  140. package/my-expo-app-3/components/nativewindui/TextField/TextField.ios.tsx +0 -85
  141. package/my-expo-app-3/components/nativewindui/TextField/TextField.tsx +0 -326
  142. package/my-expo-app-3/components/nativewindui/TextField/index.tsx +0 -1
  143. package/my-expo-app-3/components/nativewindui/TextField/types.ts +0 -26
  144. package/my-expo-app-3/components/nativewindui/Toolbar.tsx +0 -116
  145. package/my-expo-app-3/components/nativewindui/examples/selectable-text.tsx +0 -43
  146. package/my-expo-app-3/components/nativewindui/examples/text.tsx +0 -43
  147. package/my-expo-app-3/global.css +0 -3
  148. package/my-expo-app-3/metro.config.js +0 -12
  149. package/my-expo-app-3/package-lock.json +0 -19141
  150. package/my-expo-app-3/package.json +0 -73
  151. package/my-expo-app-3/prettier.config.js +0 -11
  152. package/my-expo-app-3/tailwind.config.js +0 -11
  153. package/my-expo-app-test-case/app/+html.tsx +0 -46
  154. package/my-expo-app-test-case/app/+not-found.tsx +0 -33
  155. package/my-expo-app-test-case/app/_layout.tsx +0 -22
  156. package/my-expo-app-test-case/app/details.tsx +0 -17
  157. package/my-expo-app-test-case/app/index.tsx +0 -23
  158. package/my-expo-app-test-case/app-env.d.ts +0 -2
  159. package/my-expo-app-test-case/app.json +0 -48
  160. package/my-expo-app-test-case/assets/adaptive-icon.png +0 -0
  161. package/my-expo-app-test-case/assets/favicon.png +0 -0
  162. package/my-expo-app-test-case/assets/icon.png +0 -0
  163. package/my-expo-app-test-case/assets/splash.png +0 -0
  164. package/my-expo-app-test-case/babel.config.js +0 -18
  165. package/my-expo-app-test-case/cesconfig.json +0 -35
  166. package/my-expo-app-test-case/components/Button.tsx +0 -19
  167. package/my-expo-app-test-case/components/Container.tsx +0 -9
  168. package/my-expo-app-test-case/components/EditScreenInfo.tsx +0 -34
  169. package/my-expo-app-test-case/components/ScreenContent.tsx +0 -25
  170. package/my-expo-app-test-case/components/nativewindui/ActivityIndicator.tsx +0 -13
  171. package/my-expo-app-test-case/components/nativewindui/AdaptiveSearchHeader/AdaptiveSearchHeader.ios.tsx +0 -97
  172. package/my-expo-app-test-case/components/nativewindui/AdaptiveSearchHeader/AdaptiveSearchHeader.tsx +0 -264
  173. package/my-expo-app-test-case/components/nativewindui/AdaptiveSearchHeader/index.ts +0 -1
  174. package/my-expo-app-test-case/components/nativewindui/AdaptiveSearchHeader/types.ts +0 -95
  175. package/my-expo-app-test-case/components/nativewindui/Alert/Alert.ios.tsx +0 -65
  176. package/my-expo-app-test-case/components/nativewindui/Alert/Alert.tsx +0 -291
  177. package/my-expo-app-test-case/components/nativewindui/Alert/index.ts +0 -1
  178. package/my-expo-app-test-case/components/nativewindui/Alert/types.ts +0 -27
  179. package/my-expo-app-test-case/components/nativewindui/Badge.tsx +0 -84
  180. package/my-expo-app-test-case/components/nativewindui/Button.tsx +0 -156
  181. package/my-expo-app-test-case/components/nativewindui/Checkbox.tsx +0 -61
  182. package/my-expo-app-test-case/components/nativewindui/ContextMenu/ContextMenu.ios.tsx +0 -221
  183. package/my-expo-app-test-case/components/nativewindui/ContextMenu/ContextMenu.tsx +0 -420
  184. package/my-expo-app-test-case/components/nativewindui/ContextMenu/index.ts +0 -1
  185. package/my-expo-app-test-case/components/nativewindui/ContextMenu/types.ts +0 -91
  186. package/my-expo-app-test-case/components/nativewindui/ContextMenu/utils.ts +0 -14
  187. package/my-expo-app-test-case/components/nativewindui/DrawerContent.tsx +0 -145
  188. package/my-expo-app-test-case/components/nativewindui/DropdownMenu/DropdownMenu.ios.tsx +0 -168
  189. package/my-expo-app-test-case/components/nativewindui/DropdownMenu/DropdownMenu.tsx +0 -330
  190. package/my-expo-app-test-case/components/nativewindui/DropdownMenu/index.ts +0 -1
  191. package/my-expo-app-test-case/components/nativewindui/DropdownMenu/types.ts +0 -93
  192. package/my-expo-app-test-case/components/nativewindui/DropdownMenu/utils.ts +0 -14
  193. package/my-expo-app-test-case/components/nativewindui/Form.tsx +0 -125
  194. package/my-expo-app-test-case/components/nativewindui/LargeTitleHeader/LargeTitleHeader.ios.tsx +0 -99
  195. package/my-expo-app-test-case/components/nativewindui/LargeTitleHeader/LargeTitleHeader.tsx +0 -288
  196. package/my-expo-app-test-case/components/nativewindui/LargeTitleHeader/index.ts +0 -1
  197. package/my-expo-app-test-case/components/nativewindui/LargeTitleHeader/types.ts +0 -89
  198. package/my-expo-app-test-case/components/nativewindui/List.tsx +0 -433
  199. package/my-expo-app-test-case/components/nativewindui/SearchInput/SearchInput.ios.tsx +0 -177
  200. package/my-expo-app-test-case/components/nativewindui/SearchInput/SearchInput.tsx +0 -86
  201. package/my-expo-app-test-case/components/nativewindui/SearchInput/index.tsx +0 -1
  202. package/my-expo-app-test-case/components/nativewindui/SearchInput/types.ts +0 -12
  203. package/my-expo-app-test-case/components/nativewindui/SegmentedControl/SegmentedControl.ios.tsx +0 -31
  204. package/my-expo-app-test-case/components/nativewindui/SegmentedControl/SegmentedControl.tsx +0 -55
  205. package/my-expo-app-test-case/components/nativewindui/SegmentedControl/index.ts +0 -1
  206. package/my-expo-app-test-case/components/nativewindui/SegmentedControl/types.ts +0 -15
  207. package/my-expo-app-test-case/components/nativewindui/Stepper.tsx +0 -62
  208. package/my-expo-app-test-case/components/nativewindui/Text.tsx +0 -55
  209. package/my-expo-app-test-case/components/nativewindui/TextField/TextField.ios.tsx +0 -85
  210. package/my-expo-app-test-case/components/nativewindui/TextField/TextField.tsx +0 -326
  211. package/my-expo-app-test-case/components/nativewindui/TextField/index.tsx +0 -1
  212. package/my-expo-app-test-case/components/nativewindui/TextField/types.ts +0 -26
  213. package/my-expo-app-test-case/components/nativewindui/Toolbar.tsx +0 -116
  214. package/my-expo-app-test-case/components/nativewindui/examples/a-user-created-file.tsx +0 -0
  215. package/my-expo-app-test-case/components/nativewindui/examples/selectable-text.tsx +0 -43
  216. package/my-expo-app-test-case/components/nativewindui/examples/text.tsx +0 -43
  217. package/my-expo-app-test-case/global.css +0 -3
  218. package/my-expo-app-test-case/metro.config.js +0 -12
  219. package/my-expo-app-test-case/package-lock.json +0 -19141
  220. package/my-expo-app-test-case/package.json +0 -73
  221. package/my-expo-app-test-case/prettier.config.js +0 -11
  222. package/my-expo-app-test-case/tailwind.config.js +0 -11
  223. package/no-install/app/+html.tsx +0 -46
  224. package/no-install/app/+not-found.tsx +0 -25
  225. package/no-install/app/_layout.tsx +0 -7
  226. package/no-install/app/details.tsx +0 -20
  227. package/no-install/app/index.tsx +0 -19
  228. package/no-install/app-env.d.ts +0 -2
  229. package/no-install/app.json +0 -41
  230. package/no-install/assets/adaptive-icon.png +0 -0
  231. package/no-install/assets/favicon.png +0 -0
  232. package/no-install/assets/icon.png +0 -0
  233. package/no-install/assets/splash.png +0 -0
  234. package/no-install/babel.config.js +0 -13
  235. package/no-install/cesconfig.json +0 -35
  236. package/no-install/components/Button.tsx +0 -25
  237. package/no-install/components/Container.tsx +0 -9
  238. package/no-install/components/EditScreenInfo.tsx +0 -31
  239. package/no-install/components/ScreenContent.tsx +0 -29
  240. package/no-install/components/nativewindui/Slider.tsx +0 -26
  241. package/no-install/global.css +0 -3
  242. package/no-install/metro.config.js +0 -10
  243. package/no-install/package-lock.json +0 -17505
  244. package/no-install/package.json +0 -59
  245. package/no-install/prettier.config.js +0 -10
  246. package/no-install/tailwind.config.js +0 -14
  247. package/test-app/app/+html.tsx +0 -46
  248. package/test-app/app/+not-found.tsx +0 -25
  249. package/test-app/app/_layout.tsx +0 -7
  250. package/test-app/app/details.tsx +0 -20
  251. package/test-app/app/index.tsx +0 -19
  252. package/test-app/app-env.d.ts +0 -2
  253. package/test-app/app.json +0 -41
  254. package/test-app/assets/adaptive-icon.png +0 -0
  255. package/test-app/assets/favicon.png +0 -0
  256. package/test-app/assets/icon.png +0 -0
  257. package/test-app/assets/splash.png +0 -0
  258. package/test-app/babel.config.js +0 -13
  259. package/test-app/cesconfig.json +0 -35
  260. package/test-app/components/Button.tsx +0 -25
  261. package/test-app/components/Container.tsx +0 -9
  262. package/test-app/components/EditScreenInfo.tsx +0 -31
  263. package/test-app/components/ScreenContent.tsx +0 -29
  264. package/test-app/components/nativewindui/ActivityIndicator.tsx +0 -13
  265. package/test-app/components/nativewindui/Avatar.tsx +0 -133
  266. package/test-app/components/nativewindui/DatePicker/DatePicker.android.tsx +0 -72
  267. package/test-app/components/nativewindui/DatePicker/DatePicker.tsx +0 -23
  268. package/test-app/components/nativewindui/DatePicker/index.ts +0 -1
  269. package/test-app/components/nativewindui/Picker.tsx +0 -42
  270. package/test-app/components/nativewindui/ProgressIndicator.tsx +0 -78
  271. package/test-app/components/nativewindui/Sheet.tsx +0 -52
  272. package/test-app/components/nativewindui/Slider.tsx +0 -26
  273. package/test-app/components/nativewindui/Text.tsx +0 -55
  274. package/test-app/components/nativewindui/Toggle.tsx +0 -20
  275. package/test-app/global.css +0 -3
  276. package/test-app/metro.config.js +0 -10
  277. package/test-app/package.json +0 -64
  278. package/test-app/prettier.config.js +0 -10
  279. package/test-app/tailwind.config.js +0 -14
  280. package/test-no-install/app/+html.tsx +0 -46
  281. package/test-no-install/app/+not-found.tsx +0 -25
  282. package/test-no-install/app/_layout.tsx +0 -7
  283. package/test-no-install/app/details.tsx +0 -20
  284. package/test-no-install/app/index.tsx +0 -19
  285. package/test-no-install/app-env.d.ts +0 -2
  286. package/test-no-install/app.json +0 -41
  287. package/test-no-install/assets/adaptive-icon.png +0 -0
  288. package/test-no-install/assets/favicon.png +0 -0
  289. package/test-no-install/assets/icon.png +0 -0
  290. package/test-no-install/assets/splash.png +0 -0
  291. package/test-no-install/babel.config.js +0 -13
  292. package/test-no-install/cesconfig.json +0 -35
  293. package/test-no-install/components/Button.tsx +0 -25
  294. package/test-no-install/components/Container.tsx +0 -9
  295. package/test-no-install/components/EditScreenInfo.tsx +0 -31
  296. package/test-no-install/components/ScreenContent.tsx +0 -29
  297. package/test-no-install/components/nativewindui/ActivityIndicator.tsx +0 -13
  298. package/test-no-install/components/nativewindui/Avatar.tsx +0 -133
  299. package/test-no-install/components/nativewindui/DatePicker/DatePicker.android.tsx +0 -72
  300. package/test-no-install/components/nativewindui/DatePicker/DatePicker.tsx +0 -23
  301. package/test-no-install/components/nativewindui/DatePicker/index.ts +0 -1
  302. package/test-no-install/components/nativewindui/Picker.tsx +0 -42
  303. package/test-no-install/components/nativewindui/ProgressIndicator.tsx +0 -78
  304. package/test-no-install/components/nativewindui/Sheet.tsx +0 -52
  305. package/test-no-install/components/nativewindui/Slider.tsx +0 -26
  306. package/test-no-install/components/nativewindui/Text.tsx +0 -55
  307. package/test-no-install/components/nativewindui/Toggle.tsx +0 -20
  308. package/test-no-install/global.css +0 -3
  309. package/test-no-install/metro.config.js +0 -10
  310. package/test-no-install/package.json +0 -64
  311. package/test-no-install/prettier.config.js +0 -10
  312. package/test-no-install/tailwind.config.js +0 -14
@@ -1,81 +0,0 @@
1
- // Source: https://github.com/expo/expo/blob/474a7a4/packages/%40expo/cli/src/log.ts
2
- //
3
- // The MIT License (MIT)
4
- //
5
- // Copyright (c) 2015-present 650 Industries, Inc. (aka Expo)
6
- //
7
- // Permission is hereby granted, free of charge, to any person obtaining a copy
8
- // of this software and associated documentation files (the "Software"), to deal
9
- // in the Software without restriction, including without limitation the rights
10
- // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- // copies of the Software, and to permit persons to whom the Software is
12
- // furnished to do so, subject to the following conditions:
13
- //
14
- // The above copyright notice and this permission notice shall be included in all
15
- // copies or substantial portions of the Software.
16
- //
17
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
- // SOFTWARE.
24
- import chalk from 'chalk';
25
- export function time(label) {
26
- console.time(label);
27
- }
28
- export function timeEnd(label) {
29
- console.timeEnd(label);
30
- }
31
- export function error(...message) {
32
- console.error(...message);
33
- }
34
- /** Print an error and provide additional info (the stack trace) in debug mode. */
35
- export function exception(e) {
36
- const { env } = require('./utils/env');
37
- error(chalk.red(e.toString()) + (env.EXPO_DEBUG ? '\n' + chalk.gray(e.stack) : ''));
38
- }
39
- export function warn(...message) {
40
- console.warn(...message.map((value) => chalk.yellow(value)));
41
- }
42
- export function log(...message) {
43
- console.log(...message);
44
- }
45
- /** @deprecated use `debug` package with the `expo:` prefix instead. */
46
- export function debug(...message) {
47
- if (require('./utils/env').env.EXPO_DEBUG)
48
- console.log(...message);
49
- }
50
- /** Clear the terminal of all text. */
51
- export function clear() {
52
- process.stdout.write(process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H');
53
- }
54
- /** Log a message and exit the current process. If the `code` is non-zero then `console.error` will be used instead of `console.log`. */
55
- export function exit(message, code = 1) {
56
- if (message instanceof Error) {
57
- exception(message);
58
- process.exit(code);
59
- }
60
- if (message) {
61
- if (code === 0) {
62
- log(message);
63
- }
64
- else {
65
- error(message);
66
- }
67
- }
68
- process.exit(code);
69
- }
70
- // The re-export makes auto importing easier.
71
- export const Log = {
72
- time,
73
- timeEnd,
74
- error,
75
- exception,
76
- warn,
77
- log,
78
- debug,
79
- clear,
80
- exit,
81
- };
package/build/prompts.js DELETED
@@ -1,119 +0,0 @@
1
- import { ConfirmPrompt, isCancel, SelectPrompt, TextPrompt } from "@clack/core";
2
- import isUnicodeSupported from "is-unicode-supported";
3
- import color from "picocolors";
4
- export { isCancel } from "@clack/core";
5
- const unicode = isUnicodeSupported();
6
- const s = (c, fallback) => (unicode ? c : fallback);
7
- const S_RADIO_ACTIVE = s("●", ">");
8
- const S_RADIO_INACTIVE = s("○", " ");
9
- export const text = (opts) => {
10
- return new TextPrompt({
11
- validate: opts.validate,
12
- placeholder: opts.placeholder,
13
- defaultValue: opts.defaultValue,
14
- initialValue: opts.initialValue,
15
- render() {
16
- const title = `${opts.message} \n ${"\u279C"}`;
17
- const placeholder = opts.placeholder
18
- ? color.inverse(opts.placeholder[0]) +
19
- color.dim(opts.placeholder.slice(1))
20
- : color.inverse(color.hidden("_"));
21
- const value = !this.value ? placeholder : this.valueWithCursor;
22
- switch (this.state) {
23
- case "error":
24
- return `${title.trim()} ${value}\n ${color.yellow(this.error)}\n`;
25
- case "submit":
26
- return `${title} ${color.dim(value || opts.placeholder)}`;
27
- case "cancel":
28
- return `${title} ${color.strikethrough(color.dim(value ?? ""))}${value?.trim() ? "\n" : ""}`;
29
- default:
30
- return `${title} ${value}`;
31
- }
32
- },
33
- }).prompt();
34
- };
35
- export const confirm = (opts) => {
36
- const active = opts.active ?? "Yes";
37
- const inactive = opts.inactive ?? "No";
38
- return new ConfirmPrompt({
39
- active,
40
- inactive,
41
- initialValue: opts.initialValue ?? true,
42
- render() {
43
- const title = `${opts.message}\n`;
44
- const value = this.value ? active : inactive;
45
- switch (this.state) {
46
- case "submit":
47
- return `${title} ${color.dim(value)}\n`;
48
- case "cancel":
49
- return `${title} ${color.strikethrough(color.dim(value))}\n`;
50
- default: {
51
- return `${title} ${this.value ? `${active}` : `${color.dim(active)}`} ${color.dim("/")} ${!this.value ? `${inactive}` : `${color.dim(inactive)}`}\n`;
52
- }
53
- }
54
- },
55
- }).prompt();
56
- };
57
- export const select = (opts) => {
58
- const opt = (option, state) => {
59
- const label = option.label ?? String(option.value);
60
- if (state === "active") {
61
- return `${color.green(S_RADIO_ACTIVE)} ${label} ${option.hint ? color.dim(`(${option.hint})`) : ""}`;
62
- }
63
- else if (state === "selected") {
64
- return `${color.dim(label)}`;
65
- }
66
- else if (state === "cancelled") {
67
- return `${color.strikethrough(color.dim(label))}`;
68
- }
69
- return `${color.dim(S_RADIO_INACTIVE)} ${color.dim(label)}`;
70
- };
71
- return new SelectPrompt({
72
- options: opts.options,
73
- initialValue: opts.initialValue,
74
- render() {
75
- const title = `\n${opts.message}\n`;
76
- switch (this.state) {
77
- case "submit":
78
- return `${title} ${opt(this.options[this.cursor], "selected")}`;
79
- case "cancel":
80
- return `${title} ${opt(this.options[this.cursor], "cancelled")}`;
81
- default: {
82
- return `${title} ${this.options
83
- .map((option, i) => opt(option, i === this.cursor ? "active" : "inactive"))
84
- .join(`\n`)}\n \n`;
85
- }
86
- }
87
- },
88
- }).prompt();
89
- };
90
- export const cancel = (message = "") => {
91
- process.stdout.write(`${color.bold(`${color.red(message)}`)}\n\n`);
92
- };
93
- export const intro = (title = "") => {
94
- process.stdout.write(`${title}\n`);
95
- };
96
- export const outro = (message = "") => {
97
- process.stdout.write(`${message}\n\n`);
98
- };
99
- /**
100
- * Define a group of prompts to be displayed and return a results of objects within the group
101
- */
102
- export const group = async (prompts, opts) => {
103
- const results = {}; //eslint-disable-line
104
- const promptNames = Object.keys(prompts);
105
- for (const name of promptNames) {
106
- const prompt = prompts[name];
107
- //eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
108
- const result = await prompt({ results })?.catch((e) => {
109
- throw e;
110
- });
111
- if (typeof opts?.onCancel === "function" && isCancel(result)) {
112
- results[name] = "canceled"; //eslint-disable-line
113
- opts.onCancel({ results }); //eslint-disable-line
114
- continue;
115
- }
116
- results[name] = result; //eslint-disable-line
117
- }
118
- return results; //eslint-disable-line
119
- };
@@ -1,46 +0,0 @@
1
- import { ScrollViewStyleReset } from 'expo-router/html';
2
-
3
- // This file is web-only and used to configure the root HTML for every
4
- // web page during static rendering.
5
- // The contents of this function only run in Node.js environments and
6
- // do not have access to the DOM or browser APIs.
7
- export default function Root({ children }: { children: React.ReactNode }) {
8
- return (
9
- <html lang="en">
10
- <head>
11
- <meta charSet="utf-8" />
12
- <meta httpEquiv="X-UA-Compatible" content="IE=edge" />
13
-
14
- {/*
15
- This viewport disables scaling which makes the mobile website act more like a native app.
16
- However this does reduce built-in accessibility. If you want to enable scaling, use this instead:
17
- <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
18
- */}
19
- <meta
20
- name="viewport"
21
- content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1.00001,viewport-fit=cover"
22
- />
23
- {/*
24
- Disable body scrolling on web. This makes ScrollView components work closer to how they do on native.
25
- However, body scrolling is often nice to have for mobile web. If you want to enable it, remove this line.
26
- */}
27
- <ScrollViewStyleReset />
28
-
29
- {/* Using raw CSS styles as an escape-hatch to ensure the background color never flickers in dark-mode. */}
30
- <style dangerouslySetInnerHTML={{ __html: responsiveBackground }} />
31
- {/* Add any additional <head> elements that you want globally available on web... */}
32
- </head>
33
- <body>{children}</body>
34
- </html>
35
- );
36
- }
37
-
38
- const responsiveBackground = `
39
- body {
40
- background-color: #fff;
41
- }
42
- @media (prefers-color-scheme: dark) {
43
- body {
44
- background-color: #000;
45
- }
46
- }`;
@@ -1,33 +0,0 @@
1
- import { Link, Stack } from 'expo-router';
2
-
3
- import { Text } from 'react-native';
4
-
5
- import { Container } from '~/components/Container';
6
-
7
-
8
- export default function NotFoundScreen() {
9
-
10
-
11
-
12
-
13
- return (
14
-
15
- <>
16
- <Stack.Screen options={{ title: "Oops!" }} />
17
- <Container>
18
- <Text className={styles.title}>This screen doesn't exist.</Text>
19
- <Link href="/" className={styles.link}>
20
- <Text className={styles.linkText}>Go to home screen!</Text>
21
- </Link>
22
- </Container>
23
- </>
24
-
25
- );
26
- }
27
-
28
-
29
- const styles = {
30
- title: `text-xl font-bold`,
31
- link: `mt-4 pt-4`,
32
- linkText: `text-base text-[#2e78b7]`,
33
- };
@@ -1,22 +0,0 @@
1
-
2
- import '../global.css';
3
-
4
-
5
-
6
-
7
-
8
-
9
- import { Stack } from "expo-router";
10
-
11
-
12
-
13
- export default function Layout() {
14
-
15
-
16
-
17
- return (
18
-
19
- <Stack />
20
-
21
- );
22
- }
@@ -1,17 +0,0 @@
1
- import { Stack, useLocalSearchParams } from 'expo-router';
2
-
3
- import { Container } from '~/components/Container';
4
- import { ScreenContent } from '~/components/ScreenContent';
5
-
6
- export default function Details() {
7
- const { name } = useLocalSearchParams();
8
-
9
- return (
10
- <>
11
- <Stack.Screen options={{ title: 'Details' }} />
12
- <Container>
13
- <ScreenContent path="screens/details.tsx" title={`Showing details for user ${name}`} />
14
- </Container>
15
- </>
16
- );
17
- }
@@ -1,23 +0,0 @@
1
- import { Stack, Link } from 'expo-router';
2
-
3
- import { Button } from '~/components/Button';
4
- import { Container } from '~/components/Container';
5
- import { ScreenContent } from '~/components/ScreenContent';
6
-
7
-
8
-
9
- export default function Home() {
10
- return (
11
- <>
12
- <Stack.Screen options={{ title: 'Home' }} />
13
- <Container>
14
- <ScreenContent path="app/index.tsx" title="Home">
15
-
16
- </ScreenContent>
17
- <Link href={{ pathname: '/details', params: { name: 'Dan' } }} asChild>
18
- <Button title="Show Details" />
19
- </Link>
20
- </Container>
21
- </>
22
- );
23
- }
@@ -1,2 +0,0 @@
1
- // @ts-ignore
2
- /// <reference types="nativewind/types" />
@@ -1,48 +0,0 @@
1
- {
2
- "expo": {
3
- "name": "my-expo-app",
4
- "slug": "my-expo-app",
5
- "version": "1.0.0",
6
-
7
- "scheme": "my-expo-app",
8
- "web": {
9
- "bundler": "metro",
10
- "output": "static",
11
- "favicon": "./assets/favicon.png"
12
- },
13
- "plugins": [
14
- "expo-router"
15
-
16
-
17
- ],
18
- "experiments": {
19
- "typedRoutes": true
20
-
21
- ,"tsconfigPaths": true
22
-
23
- },
24
-
25
- "orientation": "portrait",
26
- "icon": "./assets/icon.png",
27
-
28
- "userInterfaceStyle": "light",
29
-
30
- "splash": {
31
- "image": "./assets/splash.png",
32
- "resizeMode": "contain",
33
- "backgroundColor": "#ffffff"
34
- },
35
- "assetBundlePatterns": [
36
- "**/*"
37
- ],
38
- "ios": {
39
- "supportsTablet": true
40
- },
41
- "android": {
42
- "adaptiveIcon": {
43
- "foregroundImage": "./assets/adaptive-icon.png",
44
- "backgroundColor": "#ffffff"
45
- }
46
- }
47
- }
48
- }
Binary file
Binary file
Binary file
@@ -1,18 +0,0 @@
1
- module.exports = function(api) {
2
- api.cache(true);
3
- let plugins = [];
4
-
5
-
6
-
7
-
8
-
9
- return {
10
-
11
- presets: [
12
- ['babel-preset-expo', { jsxImportSource: 'nativewind' }],
13
- 'nativewind/babel',
14
- ],
15
-
16
- plugins,
17
- };
18
- };
@@ -1,35 +0,0 @@
1
- {
2
- "cesVersion": "2.11.16",
3
- "projectName": "my-expo-app",
4
- "packages": [
5
- {
6
- "name": "expo-router",
7
- "type": "navigation",
8
- "options": {
9
- "type": "stack"
10
- }
11
- },
12
- {
13
- "name": "nativewind",
14
- "type": "styling"
15
- }
16
- ],
17
- "flags": {
18
- "noGit": false,
19
- "noInstall": true,
20
- "overwrite": false,
21
- "importAlias": true,
22
- "packageManager": "npm",
23
- "eas": false
24
- },
25
- "packageManager": {
26
- "type": "npm",
27
- "version": "10.5.0"
28
- },
29
- "os": {
30
- "type": "Darwin",
31
- "platform": "darwin",
32
- "arch": "arm64",
33
- "kernelVersion": "23.3.0"
34
- }
35
- }
@@ -1,19 +0,0 @@
1
- import { forwardRef } from 'react';
2
- import { Text, TouchableOpacity, TouchableOpacityProps } from 'react-native';
3
-
4
- type ButtonProps = {
5
- title: string;
6
- } & TouchableOpacityProps;
7
-
8
- export const Button = forwardRef<TouchableOpacity, ButtonProps>(({ title, ...touchableProps }, ref) => {
9
- return (
10
- <TouchableOpacity ref={ref} {...touchableProps} className={`${styles.button} ${touchableProps.className}`}>
11
- <Text className={styles.buttonText}>{title}</Text>
12
- </TouchableOpacity>
13
- );
14
- });
15
-
16
- const styles = {
17
- button: 'items-center bg-indigo-500 rounded-[28px] shadow-md p-4',
18
- buttonText: 'text-white text-lg font-semibold text-center',
19
- };
@@ -1,9 +0,0 @@
1
- import { SafeAreaView } from 'react-native';
2
-
3
- export const Container = ({ children }: { children: React.ReactNode }) => {
4
- return <SafeAreaView className={styles.container}>{children}</SafeAreaView>;
5
- };
6
-
7
- const styles = {
8
- container: "flex flex-1 p-6"
9
- };
@@ -1,34 +0,0 @@
1
- import { Text, View } from 'react-native';
2
-
3
-
4
-
5
-
6
- export const EditScreenInfo = ({ path }: { path: string }) => {
7
-
8
- const title = "Open up the code for this screen:"
9
- const description = "Change any of the text, save the file, and your app will automatically update."
10
-
11
- return (
12
- <View>
13
- <View className={styles.getStartedContainer}>
14
- <Text className={styles.getStartedText}>{title}</Text>
15
- <View className={styles.codeHighlightContainer + styles.homeScreenFilename}>
16
- <Text>{path}</Text>
17
- </View>
18
- <Text className={styles.getStartedText}>
19
- {description}
20
- </Text>
21
- </View>
22
- </View>
23
- );
24
- };
25
-
26
- const styles = {
27
- codeHighlightContainer: `rounded-md px-1`,
28
- getStartedContainer: `items-center mx-12`,
29
- getStartedText: `text-lg leading-6 text-center`,
30
- helpContainer: `items-center mx-5 mt-4`,
31
- helpLink: `py-4`,
32
- helpLinkText: `text-center`,
33
- homeScreenFilename: `my-2`,
34
- };
@@ -1,25 +0,0 @@
1
- import { Text, View } from 'react-native';
2
-
3
- import { EditScreenInfo } from './EditScreenInfo';
4
-
5
- type ScreenContentProps = {
6
- title: string;
7
- path: string;
8
- children?: React.ReactNode;
9
- };
10
-
11
- export const ScreenContent = ({ title, path, children} : ScreenContentProps) => {
12
- return (
13
- <View className={styles.container}>
14
- <Text className={styles.title}>{title}</Text>
15
- <View className={styles.separator} />
16
- <EditScreenInfo path={path} />
17
- {children}
18
- </View>
19
- );
20
- };
21
- const styles = {
22
- container: `items-center flex-1 justify-center`,
23
- separator: `h-[1px] my-7 w-4/5 bg-gray-200`,
24
- title: `text-xl font-bold`,
25
- };
@@ -1,13 +0,0 @@
1
- import * as React from 'react';
2
- import { ActivityIndicator as RNActivityIndicator } from 'react-native';
3
-
4
- import { useColorScheme } from '~/lib/useColorScheme';
5
-
6
- function ActivityIndicator(
7
- props: React.ComponentPropsWithoutRef<typeof RNActivityIndicator>
8
- ) {
9
- const { colors } = useColorScheme();
10
- return <RNActivityIndicator color={colors.primary} {...props} />;
11
- }
12
-
13
- export { ActivityIndicator }
@@ -1,97 +0,0 @@
1
- import { useHeaderHeight } from '@react-navigation/elements';
2
- import { Portal } from '@rn-primitives/portal';
3
- import { Stack } from 'expo-router';
4
- import * as React from 'react';
5
- import { View } from 'react-native';
6
- import Animated, { FadeIn } from 'react-native-reanimated';
7
-
8
- import type {
9
- AdaptiveSearchHeaderProps,
10
- NativeStackNavigationOptions,
11
- NativeStackNavigationSearchBarOptions,
12
- } from './types';
13
-
14
- import { useColorScheme } from '~/lib/useColorScheme';
15
-
16
- export function AdaptiveSearchHeader(props: AdaptiveSearchHeaderProps) {
17
- const id = React.useId();
18
- const { colors } = useColorScheme();
19
- const headerHeight = useHeaderHeight();
20
- const [isFocused, setIsFocused] = React.useState(false);
21
-
22
- return (
23
- <>
24
- <Stack.Screen options={propsToScreenOptions(props, colors.background, setIsFocused)} />
25
- {props.searchBar?.content && isFocused && (
26
- <Portal name={`large-title:${id}`}>
27
- <Animated.View
28
- entering={FadeIn.delay(100)}
29
- style={{ top: headerHeight + 6 }}
30
- className="absolute bottom-0 left-0 right-0">
31
- {props.searchBar?.content}
32
- </Animated.View>
33
- </Portal>
34
- )}
35
- </>
36
- );
37
- }
38
-
39
- function propsToScreenOptions(
40
- props: AdaptiveSearchHeaderProps,
41
- backgroundColor: string,
42
- setIsFocused: React.Dispatch<React.SetStateAction<boolean>>
43
- ): NativeStackNavigationOptions {
44
- return {
45
- headerLargeTitle: props.iosIsLargeTitle,
46
- headerBackButtonMenuEnabled: props.iosBackButtonMenuEnabled,
47
- headerBackTitle: props.iosBackButtonTitle,
48
- headerBackTitleVisible: props.iosBackButtonTitleVisible,
49
- headerBackVisible: props.iosBackVisible,
50
- headerLargeTitleShadowVisible: props.shadowVisible,
51
- headerBlurEffect:
52
- props.iosBlurEffect === 'none' ? undefined : (props.iosBlurEffect ?? 'systemMaterial'),
53
- headerShadowVisible: props.shadowVisible,
54
- headerLeft: props.leftView
55
- ? (headerProps) => (
56
- <View className="flex-row justify-center gap-4">{props.leftView!(headerProps)}</View>
57
- )
58
- : undefined,
59
- headerRight: props.rightView
60
- ? (headerProps) => (
61
- <View className="flex-row justify-center gap-4">{props.rightView!(headerProps)}</View>
62
- )
63
- : undefined,
64
- headerShown: props.shown,
65
- headerTitle: props.iosTitle,
66
- headerTransparent: props.iosBlurEffect !== 'none',
67
- headerLargeStyle: { backgroundColor: props.backgroundColor ?? backgroundColor },
68
- headerStyle:
69
- props.iosBlurEffect === 'none'
70
- ? { backgroundColor: props.backgroundColor ?? backgroundColor }
71
- : undefined,
72
- headerSearchBarOptions: {
73
- autoCapitalize: props.searchBar?.autoCapitalize,
74
- cancelButtonText: props.searchBar?.iosCancelButtonText,
75
- hideWhenScrolling: props.searchBar?.iosHideWhenScrolling ?? false,
76
- inputType: props.searchBar?.inputType,
77
- tintColor: props.searchBar?.iosTintColor,
78
- onBlur: () => {
79
- setIsFocused(false);
80
- props.searchBar?.onBlur?.();
81
- },
82
- onCancelButtonPress: props.searchBar?.onCancelButtonPress,
83
- onChangeText: props.searchBar?.onChangeText
84
- ? (event) => props.searchBar?.onChangeText!(event.nativeEvent.text)
85
- : undefined,
86
- onFocus: () => {
87
- setIsFocused(true);
88
- props.searchBar?.onFocus?.();
89
- },
90
- onSearchButtonPress: props.searchBar?.onSearchButtonPress,
91
- placeholder: props.searchBar?.placeholder ?? 'Search...',
92
- ref: props.searchBar?.ref as NativeStackNavigationSearchBarOptions['ref'],
93
- textColor: props.searchBar?.textColor,
94
- },
95
- ...props.screen,
96
- };
97
- }