@mr.dj2u/library-registry 0.0.0
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/LICENSE +21 -0
- package/README.md +42 -0
- package/THIRD_PARTY_NOTICES.md +90 -0
- package/assets/create-expo-app/sdk-56/assets/images/expo-badge-white.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/expo-badge.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/expo-logo.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/logo-glow.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/react-logo.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/react-logo@2x.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/react-logo@3x.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/tabIcons/explore.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/tabIcons/explore@2x.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/tabIcons/explore@3x.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/tabIcons/home.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/tabIcons/home@2x.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/tabIcons/home@3x.png +0 -0
- package/assets/create-expo-app/sdk-56/assets/images/tutorial-web.png +0 -0
- package/assets/create-expo-app/sdk-56/src/app/_layout.tsx +15 -0
- package/assets/create-expo-app/sdk-56/src/app/explore.tsx +180 -0
- package/assets/create-expo-app/sdk-56/src/app/index.tsx +98 -0
- package/assets/create-expo-app/sdk-56/src/components/animated-icon.module.css +6 -0
- package/assets/create-expo-app/sdk-56/src/components/animated-icon.tsx +132 -0
- package/assets/create-expo-app/sdk-56/src/components/animated-icon.web.tsx +108 -0
- package/assets/create-expo-app/sdk-56/src/components/app-tabs.tsx +32 -0
- package/assets/create-expo-app/sdk-56/src/components/app-tabs.web.tsx +115 -0
- package/assets/create-expo-app/sdk-56/src/components/external-link.tsx +25 -0
- package/assets/create-expo-app/sdk-56/src/components/hint-row.tsx +35 -0
- package/assets/create-expo-app/sdk-56/src/components/themed-text.tsx +73 -0
- package/assets/create-expo-app/sdk-56/src/components/themed-view.tsx +16 -0
- package/assets/create-expo-app/sdk-56/src/components/ui/collapsible.tsx +65 -0
- package/assets/create-expo-app/sdk-56/src/components/web-badge.tsx +43 -0
- package/assets/create-expo-app/sdk-56/src/constants/theme.ts +65 -0
- package/assets/create-expo-app/sdk-56/src/global.css +9 -0
- package/assets/create-expo-app/sdk-56/src/hooks/use-color-scheme.ts +1 -0
- package/assets/create-expo-app/sdk-56/src/hooks/use-color-scheme.web.ts +21 -0
- package/assets/create-expo-app/sdk-56/src/hooks/use-theme.ts +14 -0
- package/assets/create-expo-stack/2.21.3/base/components/BackButton.tsx +23 -0
- package/assets/create-expo-stack/2.21.3/base/components/Button.tsx +42 -0
- package/assets/create-expo-stack/2.21.3/base/components/Container.tsx +14 -0
- package/assets/create-expo-stack/2.21.3/base/components/EditScreenInfo.tsx +36 -0
- package/assets/create-expo-stack/2.21.3/base/components/HeaderButton.tsx +31 -0
- package/assets/create-expo-stack/2.21.3/base/components/ScreenContent.tsx +40 -0
- package/assets/create-expo-stack/2.21.3/base/components/TabBarIcon.tsx +15 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/ActivityIndicator.tsx +10 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Avatar.tsx +32 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Button.tsx +141 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/DatePicker/DatePicker.android.tsx +77 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/DatePicker/DatePicker.tsx +23 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/DatePicker/index.ts +1 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Icon/Icon.ios.tsx +55 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Icon/Icon.tsx +58 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Icon/index.ts +16 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Icon/types.ts +19 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Picker.tsx +42 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/ProgressIndicator.tsx +68 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Slider.tsx +28 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Text.tsx +55 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/ThemeToggle.tsx +33 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/components/nativewindui/Toggle.tsx +20 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/lib/cn.ts +6 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/lib/useColorScheme.tsx +21 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/lib/useHeaderSearchBar.tsx +33 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/theme/colors.ts +123 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/theme/index.ts +32 -0
- package/assets/create-expo-stack/2.21.3-mrdj.2/src/theme/with-opacity.ts +155 -0
- package/assets/mds/routes/drawer-tabs/data.tsx +1 -0
- package/assets/mds/routes/drawer-tabs/index.tsx +1 -0
- package/assets/mds/routes/drawer-tabs/nativewindui.tsx +1 -0
- package/assets/mds/routes/drawer-tabs/sdk-56.tsx +1 -0
- package/assets/mds/routes/drawer-tabs/stylist.tsx +1 -0
- package/assets/mds/scripts/stylist-sync-android.mjs +39 -0
- package/assets/mds/src/app/exposition/data.tsx +1 -0
- package/assets/mds/src/app/exposition/index.tsx +1 -0
- package/assets/mds/src/app/exposition/nativewindui.tsx +1 -0
- package/assets/mds/src/app/exposition/sdk-56.tsx +1 -0
- package/assets/mds/src/app/exposition/stylist-sync+api.ts +241 -0
- package/assets/mds/src/app/exposition/stylist.tsx +1 -0
- package/assets/mds/src/app/onboarding/account-setup.tsx +1 -0
- package/assets/mds/src/app/onboarding/agreement.tsx +1 -0
- package/assets/mds/src/app/onboarding/terms.tsx +1 -0
- package/assets/mds/src/app/onboarding.tsx +1 -0
- package/assets/mds/src/app/settings.tsx +1 -0
- package/assets/mds/src/components/exposition/index.ts +8 -0
- package/assets/mds/src/components/exposition/notice.tsx +3 -0
- package/assets/mds/src/components/exposition/package-card.tsx +76 -0
- package/assets/mds/src/components/swmansion/animated-pressable.tsx +54 -0
- package/assets/mds/src/components/swmansion/gesture-card.tsx +54 -0
- package/assets/mds/src/components/swmansion/keyboard-form.tsx +73 -0
- package/assets/mds/src/components/swmansion/screens-card.tsx +40 -0
- package/assets/mds/src/components/swmansion/software-mansion-logo.tsx +15 -0
- package/assets/mds/src/components/swmansion/svg-mark.tsx +16 -0
- package/assets/mds/src/data/mock-app.ts +21 -0
- package/assets/mds/src/features/exposition/data-screen.tsx +152 -0
- package/assets/mds/src/features/exposition/embedded-fonts.ts +72 -0
- package/assets/mds/src/features/exposition/expo-sdk-56-screen.tsx +709 -0
- package/assets/mds/src/features/exposition/exposition-screen.tsx +191 -0
- package/assets/mds/src/features/exposition/nativewindui-screen.tsx +125 -0
- package/assets/mds/src/features/exposition/stylist-screen.tsx +3456 -0
- package/assets/mds/src/features/onboarding/account-setup-screen.tsx +54 -0
- package/assets/mds/src/features/onboarding/agreement-screen.tsx +6 -0
- package/assets/mds/src/features/onboarding/components/legal-document-view.tsx +103 -0
- package/assets/mds/src/features/onboarding/legal-documents.ts +80 -0
- package/assets/mds/src/features/onboarding/onboarding-screen.tsx +167 -0
- package/assets/mds/src/features/onboarding/terms-screen.tsx +6 -0
- package/assets/mds/src/features/settings/settings-screen.tsx +57 -0
- package/assets/mds/src/services/local-data.native.ts +103 -0
- package/assets/mds/src/services/local-data.ts +38 -0
- package/assets/mds/src/theme/font-assets.ts +3 -0
- package/assets/mds/src/theme/provider.tsx +59 -0
- package/assets/mds/src/theme/tokens.ts +180 -0
- package/dist/catalog.d.ts +3 -0
- package/dist/catalog.d.ts.map +1 -0
- package/dist/catalog.js +1110 -0
- package/dist/catalog.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/registry.d.ts +7 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +479 -0
- package/dist/registry.js.map +1 -0
- package/dist/types.d.ts +169 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/validation.d.ts +6 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +209 -0
- package/dist/validation.js.map +1 -0
- package/package.json +51 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
import { Pressable, ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
import { ExpositionNotice } from '../../components/exposition';
|
|
5
|
+
import { addLocalTask, getLocalAppSnapshot } from '../../services/local-data';
|
|
6
|
+
import { useAppTheme } from '../../theme/provider';
|
|
7
|
+
|
|
8
|
+
import type { appSnapshot } from '../../data/mock-app';
|
|
9
|
+
|
|
10
|
+
type Snapshot = typeof appSnapshot;
|
|
11
|
+
|
|
12
|
+
export default function DataScreen() {
|
|
13
|
+
const theme = useAppTheme();
|
|
14
|
+
const colors = theme.activeColors;
|
|
15
|
+
const [snapshot, setSnapshot] = useState<Snapshot | null>(null);
|
|
16
|
+
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
void getLocalAppSnapshot().then(setSnapshot);
|
|
19
|
+
}, []);
|
|
20
|
+
|
|
21
|
+
async function addTask() {
|
|
22
|
+
setSnapshot(await addLocalTask());
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<ScrollView
|
|
27
|
+
contentInsetAdjustmentBehavior="automatic"
|
|
28
|
+
contentContainerStyle={styles.content}
|
|
29
|
+
style={[styles.screen, { backgroundColor: colors.background }]}>
|
|
30
|
+
<Text
|
|
31
|
+
style={[
|
|
32
|
+
styles.title,
|
|
33
|
+
{
|
|
34
|
+
color: colors.text,
|
|
35
|
+
fontFamily: theme.typography.fontFamily,
|
|
36
|
+
fontWeight:
|
|
37
|
+
theme.typography.fontFamily === 'System' ||
|
|
38
|
+
theme.typography.fontFamily === 'monospace'
|
|
39
|
+
? '800'
|
|
40
|
+
: 'normal',
|
|
41
|
+
},
|
|
42
|
+
]}>
|
|
43
|
+
Data Exposition
|
|
44
|
+
</Text>
|
|
45
|
+
<Text style={[styles.intro, { color: colors.text }]}>
|
|
46
|
+
This app starts with a web-safe local adapter and a native Expo SQLite adapter. Keep the
|
|
47
|
+
boundary, then swap implementation details when Supabase is ready.
|
|
48
|
+
</Text>
|
|
49
|
+
<ExpositionNotice />
|
|
50
|
+
<Pressable
|
|
51
|
+
onPress={addTask}
|
|
52
|
+
style={[
|
|
53
|
+
styles.button,
|
|
54
|
+
{ backgroundColor: colors.primary, borderRadius: theme.layout.radius },
|
|
55
|
+
]}>
|
|
56
|
+
<Text style={styles.buttonText}>Insert a local task</Text>
|
|
57
|
+
</Pressable>
|
|
58
|
+
{snapshot?.tasks.map((task) => (
|
|
59
|
+
<View
|
|
60
|
+
key={task.id}
|
|
61
|
+
style={[
|
|
62
|
+
styles.taskCard,
|
|
63
|
+
{
|
|
64
|
+
backgroundColor: colors.surface,
|
|
65
|
+
borderColor: colors.primary,
|
|
66
|
+
borderRadius: theme.layout.radius,
|
|
67
|
+
},
|
|
68
|
+
]}>
|
|
69
|
+
<Text style={[styles.taskTitle, { color: colors.text }]}>{task.title}</Text>
|
|
70
|
+
<Text style={[styles.taskStatus, { color: colors.text }]}>{task.status}</Text>
|
|
71
|
+
</View>
|
|
72
|
+
))}
|
|
73
|
+
<View style={styles.guidance}>
|
|
74
|
+
<Text style={styles.sectionTitle}>Later Supabase replacement</Text>
|
|
75
|
+
<Text style={styles.body}>
|
|
76
|
+
Create matching tables, move reads/writes into this adapter, then keep screens unchanged.
|
|
77
|
+
Use separate Supabase projects for test/staging and production so test-to-main promotion
|
|
78
|
+
never writes directly into production data.
|
|
79
|
+
</Text>
|
|
80
|
+
</View>
|
|
81
|
+
</ScrollView>
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const styles = StyleSheet.create({
|
|
86
|
+
screen: {
|
|
87
|
+
backgroundColor: '#f9fafb',
|
|
88
|
+
flex: 1,
|
|
89
|
+
},
|
|
90
|
+
content: {
|
|
91
|
+
gap: 14,
|
|
92
|
+
padding: 20,
|
|
93
|
+
},
|
|
94
|
+
title: {
|
|
95
|
+
color: '#111827',
|
|
96
|
+
fontSize: 30,
|
|
97
|
+
fontWeight: '900',
|
|
98
|
+
},
|
|
99
|
+
intro: {
|
|
100
|
+
color: '#4b5563',
|
|
101
|
+
fontSize: 16,
|
|
102
|
+
lineHeight: 24,
|
|
103
|
+
},
|
|
104
|
+
button: {
|
|
105
|
+
backgroundColor: '#111827',
|
|
106
|
+
borderRadius: 10,
|
|
107
|
+
paddingHorizontal: 16,
|
|
108
|
+
paddingVertical: 12,
|
|
109
|
+
},
|
|
110
|
+
buttonText: {
|
|
111
|
+
color: '#ffffff',
|
|
112
|
+
fontSize: 15,
|
|
113
|
+
fontWeight: '800',
|
|
114
|
+
textAlign: 'center',
|
|
115
|
+
},
|
|
116
|
+
taskCard: {
|
|
117
|
+
backgroundColor: '#ffffff',
|
|
118
|
+
borderColor: '#e5e7eb',
|
|
119
|
+
borderRadius: 10,
|
|
120
|
+
borderWidth: 1,
|
|
121
|
+
padding: 12,
|
|
122
|
+
},
|
|
123
|
+
taskTitle: {
|
|
124
|
+
color: '#111827',
|
|
125
|
+
fontWeight: '700',
|
|
126
|
+
},
|
|
127
|
+
taskStatus: {
|
|
128
|
+
color: '#6b7280',
|
|
129
|
+
fontSize: 12,
|
|
130
|
+
fontWeight: '800',
|
|
131
|
+
marginTop: 4,
|
|
132
|
+
textTransform: 'uppercase',
|
|
133
|
+
},
|
|
134
|
+
guidance: {
|
|
135
|
+
backgroundColor: '#ffffff',
|
|
136
|
+
borderColor: '#e5e7eb',
|
|
137
|
+
borderRadius: 12,
|
|
138
|
+
borderWidth: 1,
|
|
139
|
+
gap: 8,
|
|
140
|
+
padding: 16,
|
|
141
|
+
},
|
|
142
|
+
sectionTitle: {
|
|
143
|
+
color: '#111827',
|
|
144
|
+
fontSize: 18,
|
|
145
|
+
fontWeight: '800',
|
|
146
|
+
},
|
|
147
|
+
body: {
|
|
148
|
+
color: '#4b5563',
|
|
149
|
+
fontSize: 14,
|
|
150
|
+
lineHeight: 21,
|
|
151
|
+
},
|
|
152
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export const EMBEDDED_GOOGLE_FONTS: string[] = [
|
|
2
|
+
'Abril Fatface',
|
|
3
|
+
'Archivo',
|
|
4
|
+
'Assistant',
|
|
5
|
+
'Barlow',
|
|
6
|
+
'Bebas Neue',
|
|
7
|
+
'Bitter',
|
|
8
|
+
'Cabin',
|
|
9
|
+
'Cardo',
|
|
10
|
+
'Cormorant Garamond',
|
|
11
|
+
'Crimson Text',
|
|
12
|
+
'DM Sans',
|
|
13
|
+
'DM Serif Display',
|
|
14
|
+
'Dosis',
|
|
15
|
+
'EB Garamond',
|
|
16
|
+
'Exo 2',
|
|
17
|
+
'Figtree',
|
|
18
|
+
'Fira Code',
|
|
19
|
+
'Fira Sans',
|
|
20
|
+
'Fraunces',
|
|
21
|
+
'Hind',
|
|
22
|
+
'IBM Plex Mono',
|
|
23
|
+
'IBM Plex Sans',
|
|
24
|
+
'Inconsolata',
|
|
25
|
+
'Inria Serif',
|
|
26
|
+
'Inter',
|
|
27
|
+
'JetBrains Mono',
|
|
28
|
+
'Karla',
|
|
29
|
+
'Lato',
|
|
30
|
+
'Libre Baskerville',
|
|
31
|
+
'Libre Franklin',
|
|
32
|
+
'Literata',
|
|
33
|
+
'Lora',
|
|
34
|
+
'Manrope',
|
|
35
|
+
'Merriweather',
|
|
36
|
+
'Montserrat',
|
|
37
|
+
'Mukta',
|
|
38
|
+
'Nanum Gothic',
|
|
39
|
+
'Noto Sans',
|
|
40
|
+
'Noto Sans Display',
|
|
41
|
+
'Noto Sans Mono',
|
|
42
|
+
'Noto Serif',
|
|
43
|
+
'Noto Serif Display',
|
|
44
|
+
'Nunito',
|
|
45
|
+
'Open Sans',
|
|
46
|
+
'Oswald',
|
|
47
|
+
'Outfit',
|
|
48
|
+
'Playfair Display',
|
|
49
|
+
'Plus Jakarta Sans',
|
|
50
|
+
'Poppins',
|
|
51
|
+
'Prompt',
|
|
52
|
+
'Public Sans',
|
|
53
|
+
'Quicksand',
|
|
54
|
+
'Raleway',
|
|
55
|
+
'Red Hat Display',
|
|
56
|
+
'Roboto',
|
|
57
|
+
'Roboto Condensed',
|
|
58
|
+
'Roboto Flex',
|
|
59
|
+
'Roboto Mono',
|
|
60
|
+
'Roboto Slab',
|
|
61
|
+
'Rubik',
|
|
62
|
+
'Sora',
|
|
63
|
+
'Source Code Pro',
|
|
64
|
+
'Source Sans 3',
|
|
65
|
+
'Space Grotesk',
|
|
66
|
+
'Spectral',
|
|
67
|
+
'Syne',
|
|
68
|
+
'Teko',
|
|
69
|
+
'Titillium Web',
|
|
70
|
+
'Ubuntu',
|
|
71
|
+
'Work Sans',
|
|
72
|
+
];
|