lucy-cli 2.0.0-alpha.2 → 2.0.0-alpha.3
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/dist/init.js +29 -11
- package/files/expo/.prettierrc.js +16 -0
- package/files/expo/.yarnrc.yml +1 -1
- package/files/expo/app/(tabs)/_layout.tsx +38 -33
- package/files/expo/app/(tabs)/explore.tsx +114 -0
- package/files/expo/app/(tabs)/index.tsx +80 -0
- package/files/expo/app/+not-found.tsx +37 -0
- package/files/expo/app/_layout.tsx +39 -30
- package/files/expo/assets/fonts/SpaceMono-Regular.ttf +0 -0
- package/files/expo/assets/images/adaptive-icon.png +0 -0
- package/files/expo/assets/images/favicon.png +0 -0
- package/files/expo/assets/images/icon.png +0 -0
- package/files/expo/assets/images/partial-react-logo.png +0 -0
- package/files/expo/assets/images/react-logo.png +0 -0
- package/files/expo/assets/images/react-logo@2x.png +0 -0
- package/files/expo/assets/images/react-logo@3x.png +0 -0
- package/files/expo/assets/images/splash-icon.png +0 -0
- package/files/expo/babel.config.js +7 -6
- package/files/expo/components/Collapsible.tsx +52 -0
- package/files/expo/components/ExternalLink.tsx +32 -0
- package/files/expo/components/HapticTab.tsx +24 -0
- package/files/expo/components/HelloWave.tsx +35 -0
- package/files/expo/components/ParallaxScrollView.tsx +85 -0
- package/files/expo/components/ThemedText.tsx +70 -0
- package/files/expo/components/ThemedView.tsx +23 -0
- package/files/expo/components/ui/IconSymbol.ios.tsx +32 -0
- package/files/expo/components/ui/IconSymbol.tsx +41 -0
- package/files/expo/components/ui/TabBarBackground.ios.tsx +19 -0
- package/files/expo/components/ui/TabBarBackground.tsx +6 -0
- package/files/expo/constants/Colors.ts +17 -17
- package/files/expo/constants/theme.ts +17 -17
- package/files/expo/{eslint.config.js → eslint.config.mjs} +15 -19
- package/files/expo/hooks/useColorScheme.ts +13 -7
- package/files/expo/hooks/useColorScheme.web.ts +12 -9
- package/files/expo/hooks/useThemeColor.ts +19 -10
- package/files/expo/lib/data.ts +36 -33
- package/files/expo/lib/utils/index.ts +7 -2
- package/files/expo/lib/utils/polyfills.ts +1 -1
- package/files/expo/lib/wix/client.ts +3 -5
- package/files/expo/lib/wix/error.ts +3 -0
- package/files/expo/lib/wix/index.ts +1 -0
- package/files/expo/metro.config.js +31 -0
- package/files/expo/patches/@wix-sdk-npm-1.15.24-1adbec98e9.patch +20 -0
- package/files/expo/scripts/reset-project.ts +116 -0
- package/files/expo/tailwind.config.js +61 -196
- package/files/expo/tsconfig.json +31 -26
- package/package.json +1 -1
- package/src/init.ts +41 -16
- package/files/expo/.prettierrc.json +0 -16
- /package/files/expo/{readme.md → README.md} +0 -0
- /package/files/expo/{types/nativewind-env.d.ts → nativewind-env.d.ts} +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
import { polyfillWebCrypto } from
|
2
|
+
import { polyfillWebCrypto } from 'expo-standard-web-crypto';
|
3
3
|
// import { Platform } from 'react-native';
|
4
4
|
// // import polyfill from 'react-native-polyfill-globals';
|
5
5
|
// import { TextDecoder, TextEncoder } from "text-encoding";
|
@@ -1,14 +1,12 @@
|
|
1
1
|
import { items } from '@wix/data';
|
2
2
|
import { createClient, OAuthStrategy } from '@wix/sdk';
|
3
|
-
import { Data } from 'effect';
|
4
3
|
|
5
|
-
const clientId = process.env.EXPO_PUBLIC_WIX_CLIENT_ID ||
|
4
|
+
const clientId = process.env.EXPO_PUBLIC_WIX_CLIENT_ID || '';
|
6
5
|
|
7
6
|
//To access the Wix APIs, create a client with the createClient() function imported from the @wix/sdk package.
|
8
7
|
export const client = createClient({
|
9
|
-
|
10
|
-
|
8
|
+
modules: { items },
|
9
|
+
auth: OAuthStrategy({ clientId: clientId }),
|
11
10
|
});
|
12
|
-
export class ClientError extends Data.TaggedError('ErrorParserError') {}
|
13
11
|
|
14
12
|
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
2
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
3
|
+
// @ts-nocheck
|
4
|
+
const { getDefaultConfig } = require('expo/metro-config');
|
5
|
+
const { withNativeWind } = require('nativewind/metro');
|
6
|
+
|
7
|
+
const config = (() => {
|
8
|
+
let config = getDefaultConfig(__dirname);
|
9
|
+
const { transformer, resolver } = config;
|
10
|
+
config.transformer = {
|
11
|
+
...transformer,
|
12
|
+
};
|
13
|
+
config.resolver = {
|
14
|
+
...resolver,
|
15
|
+
};
|
16
|
+
config.resolver.extraNodeModules = {
|
17
|
+
...config.resolver.extraNodeModules,
|
18
|
+
...require('node-libs-react-native'),
|
19
|
+
'node:buffer': require.resolve('buffer/'),
|
20
|
+
'node:crypto': require.resolve('react-native-crypto/'),
|
21
|
+
'node:util': require.resolve('util/'),
|
22
|
+
'node:http': require.resolve('stream-http/'),
|
23
|
+
'node:https': require.resolve('https-browserify/'),
|
24
|
+
'node:events': require.resolve('events/'),
|
25
|
+
};
|
26
|
+
|
27
|
+
return config;
|
28
|
+
})();
|
29
|
+
// console.log('Using Metro config:', JSON.stringify(config, null, 2));
|
30
|
+
module.exports = withNativeWind(config, { input: './global.css' });
|
31
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
diff --git a/build/auth/AppStrategy.js b/build/auth/AppStrategy.js
|
2
|
+
index 36a3bbf1ef7c6e8e52f0eb3d7a20713c505ed483..1c59bf6eda0acf2a3d094a8f665a4c5f75709175 100644
|
3
|
+
--- a/build/auth/AppStrategy.js
|
4
|
+
+++ b/build/auth/AppStrategy.js
|
5
|
+
@@ -1,5 +1,7 @@
|
6
|
+
import { parsePublicKeyIfEncoded } from '../helpers.js';
|
7
|
+
import { getTokenInfo } from '../get-token-info.js';
|
8
|
+
+import { jwtVerify, importSPKI } from 'jose';
|
9
|
+
+
|
10
|
+
/**
|
11
|
+
* Creates an authentication strategy for Wix Apps OAuth installation process.
|
12
|
+
* Use this authentication strategy when making requests to Wix APIs from your Wix App backend.
|
13
|
+
@@ -212,7 +214,6 @@ export function AppStrategy(opts) {
|
14
|
+
if (!opts.publicKey) {
|
15
|
+
throw new Error('Missing public key. Make sure to pass it to the AppStrategy');
|
16
|
+
}
|
17
|
+
- const { jwtVerify, importSPKI } = await import('jose');
|
18
|
+
const publicKey = await importSPKI(parsePublicKeyIfEncoded(opts.publicKey), 'RS256');
|
19
|
+
const decoded = await jwtVerify(token, publicKey, verifyCallerClaims
|
20
|
+
? {
|
@@ -0,0 +1,116 @@
|
|
1
|
+
#!/usr/bin/env ts-node
|
2
|
+
/* eslint-disable no-console */
|
3
|
+
|
4
|
+
/**
|
5
|
+
* This script is used to reset the project to a blank state.
|
6
|
+
* It deletes or moves the /app, /components, /hooks, /scripts, and /constants directories to /app-example based on user input and creates a new /app directory with an index.tsx and _layout.tsx file.
|
7
|
+
* You can remove the `reset-project` script from package.json and safely delete this file after running it.
|
8
|
+
*/
|
9
|
+
|
10
|
+
import fs from 'fs';
|
11
|
+
import path from 'path';
|
12
|
+
import { createInterface } from 'readline/promises';
|
13
|
+
|
14
|
+
const root = process.cwd();
|
15
|
+
const oldDirs = ['app', 'components', 'hooks', 'constants', 'scripts'];
|
16
|
+
const exampleDir = 'app-example';
|
17
|
+
const newAppDir = 'app';
|
18
|
+
const exampleDirPath = path.join(root, exampleDir);
|
19
|
+
|
20
|
+
const indexContent = `import { Text, View } from "react-native";
|
21
|
+
|
22
|
+
export default function Index() {
|
23
|
+
return (
|
24
|
+
<View
|
25
|
+
style={{
|
26
|
+
flex: 1,
|
27
|
+
justifyContent: "center",
|
28
|
+
alignItems: "center",
|
29
|
+
}}
|
30
|
+
>
|
31
|
+
<Text>Edit app/index.tsx to edit this screen.</Text>
|
32
|
+
</View>
|
33
|
+
);
|
34
|
+
}
|
35
|
+
`;
|
36
|
+
|
37
|
+
const layoutContent = `import { Stack } from "expo-router";
|
38
|
+
|
39
|
+
export default function RootLayout() {
|
40
|
+
return <Stack />;
|
41
|
+
}
|
42
|
+
`;
|
43
|
+
|
44
|
+
const moveDirectories = async (userInput: string) => {
|
45
|
+
if (userInput === 'y') {
|
46
|
+
// Create the app-example directory
|
47
|
+
await fs.promises.mkdir(exampleDirPath, { recursive: true });
|
48
|
+
console.log(`📁 /${exampleDir} directory created.`);
|
49
|
+
}
|
50
|
+
|
51
|
+
// Move old directories to new app-example directory or delete them
|
52
|
+
for (const dir of oldDirs) {
|
53
|
+
const oldDirPath = path.join(root, dir);
|
54
|
+
if (fs.existsSync(oldDirPath)) {
|
55
|
+
if (userInput === 'y') {
|
56
|
+
const newDirPath = path.join(root, exampleDir, dir);
|
57
|
+
await fs.promises.rename(oldDirPath, newDirPath);
|
58
|
+
console.log(`➡️ /${dir} moved to /${exampleDir}/${dir}.`);
|
59
|
+
} else {
|
60
|
+
await fs.promises.rm(oldDirPath, { recursive: true, force: true });
|
61
|
+
console.log(`❌ /${dir} deleted.`);
|
62
|
+
}
|
63
|
+
} else {
|
64
|
+
console.log(`➡️ /${dir} does not exist, skipping.`);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
// Create new /app directory
|
69
|
+
const newAppDirPath = path.join(root, newAppDir);
|
70
|
+
await fs.promises.mkdir(newAppDirPath, { recursive: true });
|
71
|
+
console.log('\n📁 New /app directory created.');
|
72
|
+
|
73
|
+
// Create index.tsx
|
74
|
+
const indexPath = path.join(newAppDirPath, 'index.tsx');
|
75
|
+
await fs.promises.writeFile(indexPath, indexContent);
|
76
|
+
console.log('📄 app/index.tsx created.');
|
77
|
+
|
78
|
+
// Create _layout.tsx
|
79
|
+
const layoutPath = path.join(newAppDirPath, '_layout.tsx');
|
80
|
+
await fs.promises.writeFile(layoutPath, layoutContent);
|
81
|
+
console.log('📄 app/_layout.tsx created.');
|
82
|
+
|
83
|
+
console.log('\n✅ Project reset complete. Next steps:');
|
84
|
+
console.log(
|
85
|
+
`1. Run \`npx expo start\` to start a development server.\n2. Edit app/index.tsx to edit the main screen.${
|
86
|
+
userInput === 'y'
|
87
|
+
? `\n3. Delete the /${exampleDir} directory when you're done referencing it.`
|
88
|
+
: ''
|
89
|
+
}`
|
90
|
+
);
|
91
|
+
};
|
92
|
+
|
93
|
+
const main = async () => {
|
94
|
+
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
95
|
+
try {
|
96
|
+
const answer = await rl.question('Do you want to move existing files to /app-example instead of deleting them? (Y/n): ');
|
97
|
+
const userInput = answer.trim().toLowerCase() || 'y';
|
98
|
+
if (userInput === 'y' || userInput === 'n') {
|
99
|
+
await moveDirectories(userInput);
|
100
|
+
} else {
|
101
|
+
console.log("❌ Invalid input. Please enter 'Y' or 'N'.");
|
102
|
+
process.exit(1);
|
103
|
+
}
|
104
|
+
} catch (error) {
|
105
|
+
if (error instanceof Error) {
|
106
|
+
console.error(`❌ Error during script execution: ${error.message}`);
|
107
|
+
} else {
|
108
|
+
console.error('❌ An unexpected error occurred:', error);
|
109
|
+
}
|
110
|
+
process.exit(1);
|
111
|
+
} finally {
|
112
|
+
rl.close();
|
113
|
+
}
|
114
|
+
};
|
115
|
+
|
116
|
+
void main();
|
@@ -1,198 +1,63 @@
|
|
1
|
-
import
|
1
|
+
import { hairlineWidth } from 'nativewind/theme';
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
200: 'rgb(var(--color-error-200)/<alpha-value>)',
|
63
|
-
300: 'rgb(var(--color-error-300)/<alpha-value>)',
|
64
|
-
400: 'rgb(var(--color-error-400)/<alpha-value>)',
|
65
|
-
500: 'rgb(var(--color-error-500)/<alpha-value>)',
|
66
|
-
600: 'rgb(var(--color-error-600)/<alpha-value>)',
|
67
|
-
700: 'rgb(var(--color-error-700)/<alpha-value>)',
|
68
|
-
800: 'rgb(var(--color-error-800)/<alpha-value>)',
|
69
|
-
900: 'rgb(var(--color-error-900)/<alpha-value>)',
|
70
|
-
950: 'rgb(var(--color-error-950)/<alpha-value>)',
|
71
|
-
},
|
72
|
-
success: {
|
73
|
-
0: 'rgb(var(--color-success-0)/<alpha-value>)',
|
74
|
-
50: 'rgb(var(--color-success-50)/<alpha-value>)',
|
75
|
-
100: 'rgb(var(--color-success-100)/<alpha-value>)',
|
76
|
-
200: 'rgb(var(--color-success-200)/<alpha-value>)',
|
77
|
-
300: 'rgb(var(--color-success-300)/<alpha-value>)',
|
78
|
-
400: 'rgb(var(--color-success-400)/<alpha-value>)',
|
79
|
-
500: 'rgb(var(--color-success-500)/<alpha-value>)',
|
80
|
-
600: 'rgb(var(--color-success-600)/<alpha-value>)',
|
81
|
-
700: 'rgb(var(--color-success-700)/<alpha-value>)',
|
82
|
-
800: 'rgb(var(--color-success-800)/<alpha-value>)',
|
83
|
-
900: 'rgb(var(--color-success-900)/<alpha-value>)',
|
84
|
-
950: 'rgb(var(--color-success-950)/<alpha-value>)',
|
85
|
-
},
|
86
|
-
warning: {
|
87
|
-
0: 'rgb(var(--color-warning-0)/<alpha-value>)',
|
88
|
-
50: 'rgb(var(--color-warning-50)/<alpha-value>)',
|
89
|
-
100: 'rgb(var(--color-warning-100)/<alpha-value>)',
|
90
|
-
200: 'rgb(var(--color-warning-200)/<alpha-value>)',
|
91
|
-
300: 'rgb(var(--color-warning-300)/<alpha-value>)',
|
92
|
-
400: 'rgb(var(--color-warning-400)/<alpha-value>)',
|
93
|
-
500: 'rgb(var(--color-warning-500)/<alpha-value>)',
|
94
|
-
600: 'rgb(var(--color-warning-600)/<alpha-value>)',
|
95
|
-
700: 'rgb(var(--color-warning-700)/<alpha-value>)',
|
96
|
-
800: 'rgb(var(--color-warning-800)/<alpha-value>)',
|
97
|
-
900: 'rgb(var(--color-warning-900)/<alpha-value>)',
|
98
|
-
950: 'rgb(var(--color-warning-950)/<alpha-value>)',
|
99
|
-
},
|
100
|
-
info: {
|
101
|
-
0: 'rgb(var(--color-info-0)/<alpha-value>)',
|
102
|
-
50: 'rgb(var(--color-info-50)/<alpha-value>)',
|
103
|
-
100: 'rgb(var(--color-info-100)/<alpha-value>)',
|
104
|
-
200: 'rgb(var(--color-info-200)/<alpha-value>)',
|
105
|
-
300: 'rgb(var(--color-info-300)/<alpha-value>)',
|
106
|
-
400: 'rgb(var(--color-info-400)/<alpha-value>)',
|
107
|
-
500: 'rgb(var(--color-info-500)/<alpha-value>)',
|
108
|
-
600: 'rgb(var(--color-info-600)/<alpha-value>)',
|
109
|
-
700: 'rgb(var(--color-info-700)/<alpha-value>)',
|
110
|
-
800: 'rgb(var(--color-info-800)/<alpha-value>)',
|
111
|
-
900: 'rgb(var(--color-info-900)/<alpha-value>)',
|
112
|
-
950: 'rgb(var(--color-info-950)/<alpha-value>)',
|
113
|
-
},
|
114
|
-
typography: {
|
115
|
-
0: 'rgb(var(--color-typography-0)/<alpha-value>)',
|
116
|
-
50: 'rgb(var(--color-typography-50)/<alpha-value>)',
|
117
|
-
100: 'rgb(var(--color-typography-100)/<alpha-value>)',
|
118
|
-
200: 'rgb(var(--color-typography-200)/<alpha-value>)',
|
119
|
-
300: 'rgb(var(--color-typography-300)/<alpha-value>)',
|
120
|
-
400: 'rgb(var(--color-typography-400)/<alpha-value>)',
|
121
|
-
500: 'rgb(var(--color-typography-500)/<alpha-value>)',
|
122
|
-
600: 'rgb(var(--color-typography-600)/<alpha-value>)',
|
123
|
-
700: 'rgb(var(--color-typography-700)/<alpha-value>)',
|
124
|
-
800: 'rgb(var(--color-typography-800)/<alpha-value>)',
|
125
|
-
900: 'rgb(var(--color-typography-900)/<alpha-value>)',
|
126
|
-
950: 'rgb(var(--color-typography-950)/<alpha-value>)',
|
127
|
-
white: '#FFFFFF',
|
128
|
-
gray: '#D4D4D4',
|
129
|
-
black: '#181718',
|
130
|
-
},
|
131
|
-
outline: {
|
132
|
-
0: 'rgb(var(--color-outline-0)/<alpha-value>)',
|
133
|
-
50: 'rgb(var(--color-outline-50)/<alpha-value>)',
|
134
|
-
100: 'rgb(var(--color-outline-100)/<alpha-value>)',
|
135
|
-
200: 'rgb(var(--color-outline-200)/<alpha-value>)',
|
136
|
-
300: 'rgb(var(--color-outline-300)/<alpha-value>)',
|
137
|
-
400: 'rgb(var(--color-outline-400)/<alpha-value>)',
|
138
|
-
500: 'rgb(var(--color-outline-500)/<alpha-value>)',
|
139
|
-
600: 'rgb(var(--color-outline-600)/<alpha-value>)',
|
140
|
-
700: 'rgb(var(--color-outline-700)/<alpha-value>)',
|
141
|
-
800: 'rgb(var(--color-outline-800)/<alpha-value>)',
|
142
|
-
900: 'rgb(var(--color-outline-900)/<alpha-value>)',
|
143
|
-
950: 'rgb(var(--color-outline-950)/<alpha-value>)',
|
144
|
-
},
|
145
|
-
background: {
|
146
|
-
0: 'rgb(var(--color-background-0)/<alpha-value>)',
|
147
|
-
50: 'rgb(var(--color-background-50)/<alpha-value>)',
|
148
|
-
100: 'rgb(var(--color-background-100)/<alpha-value>)',
|
149
|
-
200: 'rgb(var(--color-background-200)/<alpha-value>)',
|
150
|
-
300: 'rgb(var(--color-background-300)/<alpha-value>)',
|
151
|
-
400: 'rgb(var(--color-background-400)/<alpha-value>)',
|
152
|
-
500: 'rgb(var(--color-background-500)/<alpha-value>)',
|
153
|
-
600: 'rgb(var(--color-background-600)/<alpha-value>)',
|
154
|
-
700: 'rgb(var(--color-background-700)/<alpha-value>)',
|
155
|
-
800: 'rgb(var(--color-background-800)/<alpha-value>)',
|
156
|
-
900: 'rgb(var(--color-background-900)/<alpha-value>)',
|
157
|
-
950: 'rgb(var(--color-background-950)/<alpha-value>)',
|
158
|
-
error: 'rgb(var(--color-background-error)/<alpha-value>)',
|
159
|
-
warning: 'rgb(var(--color-background-warning)/<alpha-value>)',
|
160
|
-
muted: 'rgb(var(--color-background-muted)/<alpha-value>)',
|
161
|
-
success: 'rgb(var(--color-background-success)/<alpha-value>)',
|
162
|
-
info: 'rgb(var(--color-background-info)/<alpha-value>)',
|
163
|
-
light: '#FBFBFB',
|
164
|
-
dark: '#181719',
|
165
|
-
},
|
166
|
-
indicator: {
|
167
|
-
primary: 'rgb(var(--color-indicator-primary)/<alpha-value>)',
|
168
|
-
info: 'rgb(var(--color-indicator-info)/<alpha-value>)',
|
169
|
-
error: 'rgb(var(--color-indicator-error)/<alpha-value>)',
|
170
|
-
},
|
171
|
-
},
|
172
|
-
fontFamily: {
|
173
|
-
heading: undefined,
|
174
|
-
body: undefined,
|
175
|
-
mono: undefined,
|
176
|
-
roboto: ['Roboto', 'sans-serif'],
|
177
|
-
},
|
178
|
-
fontWeight: {
|
179
|
-
extrablack: '950',
|
180
|
-
},
|
181
|
-
fontSize: {
|
182
|
-
'2xs': '10px',
|
183
|
-
},
|
184
|
-
boxShadow: {
|
185
|
-
'hard-1': '-2px 2px 8px 0px rgba(38, 38, 38, 0.20)',
|
186
|
-
'hard-2': '0px 3px 10px 0px rgba(38, 38, 38, 0.20)',
|
187
|
-
'hard-3': '2px 2px 8px 0px rgba(38, 38, 38, 0.20)',
|
188
|
-
'hard-4': '0px -3px 10px 0px rgba(38, 38, 38, 0.20)',
|
189
|
-
'hard-5': '0px 2px 10px 0px rgba(38, 38, 38, 0.10)',
|
190
|
-
'soft-1': '0px 0px 10px rgba(38, 38, 38, 0.1)',
|
191
|
-
'soft-2': '0px 0px 20px rgba(38, 38, 38, 0.2)',
|
192
|
-
'soft-3': '0px 0px 30px rgba(38, 38, 38, 0.1)',
|
193
|
-
'soft-4': '0px 0px 40px rgba(38, 38, 38, 0.1)',
|
194
|
-
},
|
195
|
-
},
|
196
|
-
},
|
197
|
-
plugins: [gluestackPlugin],
|
3
|
+
export const darkMode = 'class';
|
4
|
+
export const content = ['./app/**/*.{ts,tsx}', './components/**/*.{ts,tsx}'];
|
5
|
+
export const presets = [require('nativewind/preset')];
|
6
|
+
|
7
|
+
export const theme = {
|
8
|
+
extend: {
|
9
|
+
colors: {
|
10
|
+
border: 'hsl(var(--border))',
|
11
|
+
input: 'hsl(var(--input))',
|
12
|
+
ring: 'hsl(var(--ring))',
|
13
|
+
background: 'hsl(var(--background))',
|
14
|
+
foreground: 'hsl(var(--foreground))',
|
15
|
+
primary: {
|
16
|
+
DEFAULT: 'hsl(var(--primary))',
|
17
|
+
foreground: 'hsl(var(--primary-foreground))',
|
18
|
+
},
|
19
|
+
secondary: {
|
20
|
+
DEFAULT: 'hsl(var(--secondary))',
|
21
|
+
foreground: 'hsl(var(--secondary-foreground))',
|
22
|
+
},
|
23
|
+
destructive: {
|
24
|
+
DEFAULT: 'hsl(var(--destructive))',
|
25
|
+
foreground: 'hsl(var(--destructive-foreground))',
|
26
|
+
},
|
27
|
+
muted: {
|
28
|
+
DEFAULT: 'hsl(var(--muted))',
|
29
|
+
foreground: 'hsl(var(--muted-foreground))',
|
30
|
+
},
|
31
|
+
accent: {
|
32
|
+
DEFAULT: 'hsl(var(--accent))',
|
33
|
+
foreground: 'hsl(var(--accent-foreground))',
|
34
|
+
},
|
35
|
+
popover: {
|
36
|
+
DEFAULT: 'hsl(var(--popover))',
|
37
|
+
foreground: 'hsl(var(--popover-foreground))',
|
38
|
+
},
|
39
|
+
card: {
|
40
|
+
DEFAULT: 'hsl(var(--card))',
|
41
|
+
foreground: 'hsl(var(--card-foreground))',
|
42
|
+
},
|
43
|
+
},
|
44
|
+
borderWidth: {
|
45
|
+
hairline: hairlineWidth(),
|
46
|
+
},
|
47
|
+
keyframes: {
|
48
|
+
'accordion-down': {
|
49
|
+
from: { height: '0' },
|
50
|
+
to: { height: 'var(--radix-accordion-content-height)' },
|
51
|
+
},
|
52
|
+
'accordion-up': {
|
53
|
+
from: { height: 'var(--radix-accordion-content-height)' },
|
54
|
+
to: { height: '0' },
|
55
|
+
},
|
56
|
+
},
|
57
|
+
animation: {
|
58
|
+
'accordion-down': 'accordion-down 0.2s ease-out',
|
59
|
+
'accordion-up': 'accordion-up 0.2s ease-out',
|
60
|
+
},
|
61
|
+
},
|
198
62
|
};
|
63
|
+
export const plugins = [require('tailwindcss-animate')];
|
package/files/expo/tsconfig.json
CHANGED
@@ -1,30 +1,29 @@
|
|
1
1
|
{
|
2
2
|
"extends": "expo/tsconfig.base",
|
3
3
|
"compilerOptions": {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
],
|
4
|
+
"strict": true,
|
5
|
+
"allowSyntheticDefaultImports": true,
|
6
|
+
"skipLibCheck": true,
|
7
|
+
"forceConsistentCasingInFileNames": true,
|
8
|
+
"alwaysStrict": false,
|
9
|
+
"noImplicitAny": true,
|
10
|
+
"noImplicitReturns": true,
|
11
|
+
"noImplicitThis": true,
|
12
|
+
"strictNullChecks": true,
|
13
|
+
"exactOptionalPropertyTypes": true,
|
14
|
+
"strictBindCallApply": true,
|
15
|
+
"strictFunctionTypes": true,
|
16
|
+
"strictPropertyInitialization": true,
|
17
|
+
// --- Advanced ---
|
18
|
+
"preserveConstEnums": true,
|
19
|
+
"plugins": [
|
20
|
+
{
|
21
|
+
"name": "@styled/typescript-styled-plugin"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"name": "typescript-eslint-language-service"
|
25
|
+
}
|
26
|
+
],
|
28
27
|
"paths": {
|
29
28
|
"@/*": [
|
30
29
|
"./*"
|
@@ -35,6 +34,12 @@
|
|
35
34
|
"**/*.ts",
|
36
35
|
"**/*.tsx",
|
37
36
|
".expo/types/**/*.ts",
|
38
|
-
"expo-env.d.ts"
|
37
|
+
"expo-env.d.ts",
|
38
|
+
"nativewind-env.d.ts",
|
39
|
+
"metro.config.js",
|
40
|
+
"eslint.config.mjs",
|
41
|
+
"tailwind.config.js",
|
42
|
+
"babel.config.js",
|
43
|
+
".prettierrc.js",
|
39
44
|
]
|
40
|
-
}
|
45
|
+
}
|