lucy-cli 2.0.0-alpha.2 → 2.0.0-alpha.4

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 (37) hide show
  1. package/dist/init.js +37 -16
  2. package/files/expo/.prettierrc.js +16 -0
  3. package/files/expo/.yarnrc.yml +1 -1
  4. package/files/expo/assets/fonts/SpaceMono-Regular.ttf +0 -0
  5. package/files/expo/assets/images/adaptive-icon.png +0 -0
  6. package/files/expo/assets/images/favicon.png +0 -0
  7. package/files/expo/assets/images/icon.png +0 -0
  8. package/files/expo/assets/images/splash-icon.png +0 -0
  9. package/files/expo/babel.config.js +7 -6
  10. package/files/expo/components/.gitkeep +0 -0
  11. package/files/expo/components/ui/.gitkeep +0 -0
  12. package/files/expo/constants/theme.ts +17 -17
  13. package/files/expo/{eslint.config.js → eslint.config.mjs} +15 -19
  14. package/files/expo/hooks/useColorScheme.ts +13 -7
  15. package/files/expo/index.ts +11 -0
  16. package/files/expo/lib/data.ts +36 -33
  17. package/files/expo/lib/utils/index.ts +7 -2
  18. package/files/expo/lib/utils/polyfills.ts +1 -1
  19. package/files/expo/lib/wix/client.ts +3 -5
  20. package/files/expo/lib/wix/error.ts +3 -0
  21. package/files/expo/lib/wix/index.ts +1 -0
  22. package/files/expo/metro.config.js +34 -0
  23. package/files/expo/patches/@wix-sdk-npm-1.15.24-1adbec98e9.patch +20 -0
  24. package/files/expo/scripts/reset-project.ts +116 -0
  25. package/files/expo/tailwind.config.js +61 -196
  26. package/files/expo/tsconfig.json +31 -26
  27. package/package.json +1 -1
  28. package/src/init.ts +52 -20
  29. package/files/expo/.prettierrc.json +0 -16
  30. package/files/expo/app/(tabs)/_layout.tsx +0 -45
  31. package/files/expo/app/_layout.tsx +0 -45
  32. package/files/expo/constants/Colors.ts +0 -27
  33. package/files/expo/hooks/useColorScheme.web.ts +0 -21
  34. package/files/expo/hooks/useColorSchemeRN.ts +0 -1
  35. package/files/expo/hooks/useThemeColor.ts +0 -21
  36. /package/files/expo/{readme.md → README.md} +0 -0
  37. /package/files/expo/{types/nativewind-env.d.ts → nativewind-env.d.ts} +0 -0
@@ -1,21 +0,0 @@
1
- /**
2
- * Learn more about light and dark modes:
3
- * https://docs.expo.dev/guides/color-schemes/
4
- */
5
-
6
- import { Colors } from '@/constants/Colors';
7
- import { useColorScheme } from './useColorSchemeRN';
8
-
9
- export function useThemeColor(
10
- props: { light?: string; dark?: string },
11
- colorName: keyof typeof Colors.light & keyof typeof Colors.dark
12
- ) {
13
- const theme = useColorScheme() ?? 'light';
14
- const colorFromProps = props[theme];
15
-
16
- if (colorFromProps) {
17
- return colorFromProps;
18
- } else {
19
- return Colors[theme][colorName];
20
- }
21
- }
File without changes