linked-data-browser 0.0.7 → 0.0.8-alpha.1
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/.env +2 -0
- package/.eslintrc.js +1 -0
- package/{index.js → App.js} +1 -4
- package/README.md +6 -0
- package/app/index.tsx +4 -2
- package/app.json +1 -0
- package/babel.config.js +7 -8
- package/components/DataBrowser.tsx +9 -19
- package/components/DataBrowserContext.ts +23 -0
- package/components/TargetResourceProvider.tsx +1 -1
- package/components/ThemeProvider.tsx +2 -4
- package/components/common/LoadingBar.tsx +11 -1
- package/components/common/ProfileAvatar.tsx +4 -7
- package/components/nav/Layout.tsx +20 -4
- package/components/nav/header/AddressBox.tsx +104 -48
- package/components/nav/header/AvatarMenu.tsx +42 -10
- package/components/nav/header/Header.tsx +26 -19
- package/components/nav/header/SignInMenu.tsx +63 -36
- package/components/nav/header/ThemeToggleMenu.tsx +21 -9
- package/components/nav/header/ViewMenu.tsx +79 -71
- package/components/sharing/AccessDropdown.tsx +18 -7
- package/components/sharing/CopyLink.tsx +15 -3
- package/components/sharing/PermissionRow.tsx +17 -2
- package/components/sharing/SharingModal.tsx +30 -3
- package/components/sharing/WacRuleForm.tsx +12 -3
- package/components/sharing/agentPermissions/AgentInformation.tsx +16 -3
- package/components/sharing/agentPermissions/AgentInput.tsx +19 -4
- package/components/sharing/agentPermissions/AgentPermissionRow.tsx +24 -6
- package/components/ui/accordion.tsx +77 -33
- package/components/ui/alert.tsx +75 -42
- package/components/ui/avatar.tsx +38 -13
- package/components/ui/badge.tsx +76 -48
- package/components/ui/button.tsx +226 -108
- package/components/ui/card.tsx +60 -30
- package/components/ui/checkbox.tsx +53 -16
- package/components/ui/context-menu.tsx +238 -117
- package/components/ui/dialog.tsx +116 -65
- package/components/ui/dropdown-menu.tsx +304 -105
- package/components/ui/hover-card.tsx +36 -13
- package/components/ui/icon.tsx +23 -0
- package/components/ui/input-dropdown.tsx +42 -5
- package/components/ui/input.tsx +85 -22
- package/components/ui/label.tsx +16 -7
- package/components/ui/menubar.tsx +284 -136
- package/components/ui/navigation-menu.tsx +157 -90
- package/components/ui/popover.tsx +36 -9
- package/components/ui/progress.tsx +53 -27
- package/components/ui/radio-group.tsx +61 -17
- package/components/ui/select.tsx +139 -67
- package/components/ui/separator.tsx +22 -7
- package/components/ui/skeleton.tsx +16 -11
- package/components/ui/switch.tsx +83 -51
- package/components/ui/table.tsx +57 -35
- package/components/ui/tabs.tsx +66 -35
- package/components/ui/text.tsx +221 -30
- package/components/ui/textarea.tsx +34 -10
- package/components/ui/toggle-group.tsx +103 -46
- package/components/ui/toggle.tsx +97 -74
- package/components/ui/tooltip.tsx +38 -9
- package/components/ui/typography.tsx +94 -65
- package/components/useViewContext.tsx +8 -8
- package/global.css +93 -3
- package/lib/index.js +88 -0
- package/metro.config.js +1 -3
- package/package.json +14 -10
- package/resourceViews/Container/ContainerConfig.tsx +1 -1
- package/resourceViews/Container/ContainerView.tsx +63 -25
- package/resourceViews/Profile/ProfileConfig.tsx +1 -1
- package/resourceViews/Profile/ProfileKnows.tsx +17 -9
- package/resourceViews/Profile/ProfileView.tsx +21 -4
- package/resourceViews/RawCode/RawCodeConfig.tsx +1 -1
- package/resourceViews/RawCode/RawCodeView.tsx +20 -6
- package/components.json +0 -7
- package/lib/icons/ArrowRight.tsx +0 -4
- package/lib/icons/Check.tsx +0 -4
- package/lib/icons/ChevronDown.tsx +0 -4
- package/lib/icons/ChevronRight.tsx +0 -4
- package/lib/icons/ChevronUp.tsx +0 -4
- package/lib/icons/ChevronsRight.tsx +0 -4
- package/lib/icons/CircleSlash.tsx +0 -4
- package/lib/icons/CircleX.tsx +0 -4
- package/lib/icons/Code.tsx +0 -4
- package/lib/icons/EllipsisVertical.tsx +0 -4
- package/lib/icons/EyeOff.tsx +0 -4
- package/lib/icons/File.tsx +0 -4
- package/lib/icons/Fingerprint.tsx +0 -4
- package/lib/icons/Folder.tsx +0 -4
- package/lib/icons/Folders.tsx +0 -4
- package/lib/icons/Info.tsx +0 -4
- package/lib/icons/Link.tsx +0 -4
- package/lib/icons/Loader.tsx +0 -4
- package/lib/icons/LogOut.tsx +0 -4
- package/lib/icons/MonitorSmartphone.tsx +0 -4
- package/lib/icons/MoonStar.tsx +0 -4
- package/lib/icons/OctagonX.tsx +0 -4
- package/lib/icons/Plus.tsx +0 -4
- package/lib/icons/RefreshCw.tsx +0 -4
- package/lib/icons/Save.tsx +0 -4
- package/lib/icons/ShieldX.tsx +0 -4
- package/lib/icons/Sun.tsx +0 -4
- package/lib/icons/TextCursorInput.tsx +0 -4
- package/lib/icons/Trash.tsx +0 -4
- package/lib/icons/User.tsx +0 -4
- package/lib/icons/UserPlus.tsx +0 -4
- package/lib/icons/Users.tsx +0 -4
- package/lib/icons/ViewIcon.tsx +0 -4
- package/lib/icons/X.tsx +0 -4
- package/lib/icons/iconWithClassName.ts +0 -14
- package/lib/utils.ts +0 -6
- package/nativewind-env.d.ts +0 -1
- package/tailwind.config.js +0 -69
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { FunctionComponent, useCallback } from 'react';
|
|
2
|
-
import { View, FlatList,
|
|
2
|
+
import { View, FlatList, StyleSheet, Pressable } from 'react-native';
|
|
3
3
|
import { Text } from '../../components/ui/text';
|
|
4
4
|
import { Button } from '../../components/ui/button';
|
|
5
5
|
import {
|
|
@@ -9,12 +9,12 @@ import {
|
|
|
9
9
|
DropdownMenuItem,
|
|
10
10
|
} from '../../components/ui/dropdown-menu';
|
|
11
11
|
import { ErrorMessageResourceView } from '../../components/utilityResourceViews/ErrorMessageResourceView';
|
|
12
|
-
import { CircleX } from '
|
|
13
|
-
import { Folder } from '
|
|
14
|
-
import { Code } from '
|
|
15
|
-
import { File } from '
|
|
16
|
-
import { Trash } from '
|
|
17
|
-
import { Plus } from '
|
|
12
|
+
import { CircleX } from 'lucide-react-native';
|
|
13
|
+
import { Folder } from 'lucide-react-native';
|
|
14
|
+
import { Code } from 'lucide-react-native';
|
|
15
|
+
import { File } from 'lucide-react-native';
|
|
16
|
+
import { Trash } from 'lucide-react-native';
|
|
17
|
+
import { Plus } from 'lucide-react-native';
|
|
18
18
|
import { Separator } from '../../components/ui/separator';
|
|
19
19
|
import { useDialog } from '../../components/nav/DialogProvider';
|
|
20
20
|
import {
|
|
@@ -24,10 +24,13 @@ import {
|
|
|
24
24
|
} from '@ldo/connected-solid';
|
|
25
25
|
import { Notifier } from 'react-native-notifier';
|
|
26
26
|
import { useViewContext } from '../../components/useViewContext';
|
|
27
|
+
import { useTheme } from '@react-navigation/native';
|
|
28
|
+
import { Icon } from '../../components/ui/icon';
|
|
27
29
|
|
|
28
30
|
export const ContainerView: FunctionComponent = () => {
|
|
29
31
|
const { targetResource, navigateTo } = useViewContext();
|
|
30
32
|
const { prompt } = useDialog();
|
|
33
|
+
const { colors } = useTheme();
|
|
31
34
|
|
|
32
35
|
const onCreateContainer = useCallback(async () => {
|
|
33
36
|
if (targetResource?.type !== 'SolidContainer') return;
|
|
@@ -83,12 +86,12 @@ export const ContainerView: FunctionComponent = () => {
|
|
|
83
86
|
}
|
|
84
87
|
|
|
85
88
|
return (
|
|
86
|
-
<View
|
|
89
|
+
<View style={styles.mainContainer}>
|
|
87
90
|
{/* Left Panel */}
|
|
88
|
-
<View
|
|
91
|
+
<View style={styles.leftPanel}>
|
|
89
92
|
<DropdownMenu>
|
|
90
93
|
<DropdownMenuTrigger asChild>
|
|
91
|
-
<Button text=
|
|
94
|
+
<Button text="Create" iconLeft={Plus} />
|
|
92
95
|
</DropdownMenuTrigger>
|
|
93
96
|
<DropdownMenuContent>
|
|
94
97
|
<DropdownMenuItem onPress={onCreateContainer}>
|
|
@@ -105,12 +108,12 @@ export const ContainerView: FunctionComponent = () => {
|
|
|
105
108
|
</View>
|
|
106
109
|
|
|
107
110
|
{/* Right Panel */}
|
|
108
|
-
<View
|
|
111
|
+
<View style={styles.rightPanel}>
|
|
109
112
|
<FlatList
|
|
110
113
|
data={targetResource.children()}
|
|
111
114
|
keyExtractor={(item) => item.uri}
|
|
112
115
|
renderItem={({ item, index }) => {
|
|
113
|
-
const
|
|
116
|
+
const TypeIcon =
|
|
114
117
|
item.type === 'SolidContainer'
|
|
115
118
|
? Folder
|
|
116
119
|
: item.uri.endsWith('.ttl')
|
|
@@ -119,23 +122,25 @@ export const ContainerView: FunctionComponent = () => {
|
|
|
119
122
|
return (
|
|
120
123
|
<>
|
|
121
124
|
{index === 0 && <Separator />}
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
<Pressable
|
|
126
|
+
onPress={() => navigateTo(item.uri)}
|
|
127
|
+
style={({ hovered }) => ({
|
|
128
|
+
backgroundColor: hovered ? colors.border : undefined,
|
|
129
|
+
})}
|
|
130
|
+
>
|
|
131
|
+
<View style={styles.listItem}>
|
|
132
|
+
<View style={styles.listItemText}>
|
|
133
|
+
<Icon icon={TypeIcon} />
|
|
134
|
+
<Text>{item.uri.replace(targetResource.uri, '')}</Text>
|
|
135
|
+
</View>
|
|
128
136
|
<Button
|
|
129
137
|
variant="ghost"
|
|
130
|
-
|
|
138
|
+
style={styles.deleteButton}
|
|
131
139
|
onPress={() => onDelete(item)}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
<Trash size={20} />
|
|
135
|
-
</Text>
|
|
136
|
-
</Button>
|
|
140
|
+
iconLeft={Trash}
|
|
141
|
+
/>
|
|
137
142
|
</View>
|
|
138
|
-
</
|
|
143
|
+
</Pressable>
|
|
139
144
|
<Separator />
|
|
140
145
|
</>
|
|
141
146
|
);
|
|
@@ -145,3 +150,36 @@ export const ContainerView: FunctionComponent = () => {
|
|
|
145
150
|
</View>
|
|
146
151
|
);
|
|
147
152
|
};
|
|
153
|
+
|
|
154
|
+
const styles = StyleSheet.create({
|
|
155
|
+
mainContainer: {
|
|
156
|
+
flex: 1,
|
|
157
|
+
flexDirection: 'row',
|
|
158
|
+
},
|
|
159
|
+
leftPanel: {
|
|
160
|
+
maxWidth: 200,
|
|
161
|
+
flex: 1,
|
|
162
|
+
padding: 16,
|
|
163
|
+
},
|
|
164
|
+
rightPanel: {
|
|
165
|
+
flex: 3,
|
|
166
|
+
paddingTop: 16,
|
|
167
|
+
paddingBottom: 16,
|
|
168
|
+
paddingRight: 16,
|
|
169
|
+
},
|
|
170
|
+
listItem: {
|
|
171
|
+
flexDirection: 'row',
|
|
172
|
+
padding: 16,
|
|
173
|
+
borderRadius: 4,
|
|
174
|
+
justifyContent: 'space-between',
|
|
175
|
+
alignItems: 'center',
|
|
176
|
+
},
|
|
177
|
+
listItemText: {
|
|
178
|
+
flexDirection: 'row',
|
|
179
|
+
gap: 12,
|
|
180
|
+
},
|
|
181
|
+
deleteButton: {
|
|
182
|
+
height: 24,
|
|
183
|
+
padding: 0,
|
|
184
|
+
},
|
|
185
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SolidProfileShapeType } from '../../.ldo/profile.shapeTypes';
|
|
2
2
|
import { ResourceViewConfig } from '../../components/ResourceView';
|
|
3
|
-
import { User } from '
|
|
3
|
+
import { User } from 'lucide-react-native';
|
|
4
4
|
import { ProfileView } from './ProfileView';
|
|
5
5
|
|
|
6
6
|
export const ProfileConfig: ResourceViewConfig = {
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { Input } from '../../components/ui/input';
|
|
2
2
|
import React, { FunctionComponent, useCallback, useState } from 'react';
|
|
3
|
-
import { Plus } from '
|
|
3
|
+
import { Plus } from 'lucide-react-native';
|
|
4
4
|
import { SolidProfile } from '../../.ldo/profile.typings';
|
|
5
5
|
import { AgentInformation } from '../../components/sharing/agentPermissions/AgentInformation';
|
|
6
|
-
import { View } from 'react-native';
|
|
6
|
+
import { View, StyleSheet } from 'react-native';
|
|
7
7
|
import { useChangeSetData } from '@ldo/react';
|
|
8
8
|
import { SolidLeaf } from '@ldo/connected-solid';
|
|
9
9
|
import { Button } from '../../components/ui/button';
|
|
10
|
-
import { Trash } from '
|
|
10
|
+
import { Trash } from 'lucide-react-native';
|
|
11
11
|
import { ConnectedPlugin } from '@ldo/connected';
|
|
12
12
|
|
|
13
13
|
export interface ProfileKnowsProps {
|
|
14
14
|
resource: SolidLeaf;
|
|
15
15
|
profile: SolidProfile;
|
|
16
|
-
setProfile: useChangeSetData<
|
|
16
|
+
setProfile: useChangeSetData<
|
|
17
|
+
SolidProfile,
|
|
18
|
+
ConnectedPlugin<any, any, any, any, any>[]
|
|
19
|
+
>;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
export const ProfileKnows: FunctionComponent<ProfileKnowsProps> = ({
|
|
@@ -21,8 +24,6 @@ export const ProfileKnows: FunctionComponent<ProfileKnowsProps> = ({
|
|
|
21
24
|
profile,
|
|
22
25
|
setProfile,
|
|
23
26
|
}) => {
|
|
24
|
-
console.log(profile.knows?.size);
|
|
25
|
-
|
|
26
27
|
const [newContact, setNewContact] = useState('');
|
|
27
28
|
const addNewContact = useCallback(() => {
|
|
28
29
|
setProfile(resource, (cProfile) => {
|
|
@@ -32,12 +33,12 @@ export const ProfileKnows: FunctionComponent<ProfileKnowsProps> = ({
|
|
|
32
33
|
}, [newContact, resource, setProfile]);
|
|
33
34
|
|
|
34
35
|
return (
|
|
35
|
-
<View
|
|
36
|
+
<View style={styles.container}>
|
|
36
37
|
<Input
|
|
37
38
|
placeholder="https://example.pod/john/profile/card#me"
|
|
38
39
|
label="New Contact WebId"
|
|
39
40
|
buttonRight={{
|
|
40
|
-
iconRight:
|
|
41
|
+
iconRight: Plus,
|
|
41
42
|
onPress: addNewContact,
|
|
42
43
|
variant: 'secondary',
|
|
43
44
|
}}
|
|
@@ -47,11 +48,12 @@ export const ProfileKnows: FunctionComponent<ProfileKnowsProps> = ({
|
|
|
47
48
|
/>
|
|
48
49
|
{profile.knows?.map((friend) => (
|
|
49
50
|
<AgentInformation
|
|
51
|
+
key={friend['@id']}
|
|
50
52
|
webId={friend['@id']}
|
|
51
53
|
accessoryRight={
|
|
52
54
|
<Button
|
|
53
55
|
variant="ghost"
|
|
54
|
-
iconRight={
|
|
56
|
+
iconRight={Trash}
|
|
55
57
|
onPress={() => {
|
|
56
58
|
setProfile(resource, (cProfile) => {
|
|
57
59
|
cProfile.knows?.delete(friend);
|
|
@@ -64,3 +66,9 @@ export const ProfileKnows: FunctionComponent<ProfileKnowsProps> = ({
|
|
|
64
66
|
</View>
|
|
65
67
|
);
|
|
66
68
|
};
|
|
69
|
+
|
|
70
|
+
const styles = StyleSheet.create({
|
|
71
|
+
container: {
|
|
72
|
+
gap: 16, // gap-4 equivalent (4 * 4px = 16px)
|
|
73
|
+
},
|
|
74
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScrollView, View } from 'react-native';
|
|
1
|
+
import { ScrollView, View, StyleSheet } from 'react-native';
|
|
2
2
|
import { Text } from '../../components/ui/text';
|
|
3
3
|
import React, { FunctionComponent } from 'react';
|
|
4
4
|
import { Input } from '../../components/ui/input';
|
|
@@ -26,8 +26,8 @@ export const ProfileView: FunctionComponent = () => {
|
|
|
26
26
|
return <></>;
|
|
27
27
|
|
|
28
28
|
return (
|
|
29
|
-
<ScrollView
|
|
30
|
-
<View
|
|
29
|
+
<ScrollView contentContainerStyle={styles.scrollContainer}>
|
|
30
|
+
<View style={styles.container}>
|
|
31
31
|
<Text variant="h1">Profile</Text>
|
|
32
32
|
<Input
|
|
33
33
|
placeholder="John Doe"
|
|
@@ -49,7 +49,7 @@ export const ProfileView: FunctionComponent = () => {
|
|
|
49
49
|
<Button
|
|
50
50
|
disabled={!transactionDataset.hasChanges()}
|
|
51
51
|
text="Update Profile"
|
|
52
|
-
|
|
52
|
+
style={styles.updateButton}
|
|
53
53
|
onPress={commitProfile}
|
|
54
54
|
isLoading={profileResource.isLoading()}
|
|
55
55
|
/>
|
|
@@ -57,3 +57,20 @@ export const ProfileView: FunctionComponent = () => {
|
|
|
57
57
|
</ScrollView>
|
|
58
58
|
);
|
|
59
59
|
};
|
|
60
|
+
|
|
61
|
+
const styles = StyleSheet.create({
|
|
62
|
+
scrollContainer: {
|
|
63
|
+
flexDirection: 'row',
|
|
64
|
+
justifyContent: 'center',
|
|
65
|
+
padding: 16,
|
|
66
|
+
},
|
|
67
|
+
container: {
|
|
68
|
+
maxWidth: 600,
|
|
69
|
+
flex: 1,
|
|
70
|
+
padding: 16,
|
|
71
|
+
gap: 16,
|
|
72
|
+
},
|
|
73
|
+
updateButton: {
|
|
74
|
+
alignSelf: 'flex-end',
|
|
75
|
+
},
|
|
76
|
+
});
|
|
@@ -6,16 +6,17 @@ import React, {
|
|
|
6
6
|
useState,
|
|
7
7
|
} from 'react';
|
|
8
8
|
import { RawCodeEditor } from './RawCodeEditor';
|
|
9
|
-
import { View } from 'react-native';
|
|
9
|
+
import { View, StyleSheet } from 'react-native';
|
|
10
10
|
import { Button } from '../../components/ui/button';
|
|
11
|
-
import { Text } from '../../components/ui/text';
|
|
12
11
|
import { Notifier } from 'react-native-notifier';
|
|
13
12
|
import { useViewContext } from '../../components/useViewContext';
|
|
14
13
|
import { LoadingBar } from '../../components/common/LoadingBar';
|
|
15
|
-
import { Save } from
|
|
14
|
+
import { Save } from 'lucide-react-native';
|
|
15
|
+
import { useTheme } from '@react-navigation/native';
|
|
16
16
|
|
|
17
17
|
export const RawCodeView: FunctionComponent = () => {
|
|
18
18
|
const { fetch } = useSolidAuth();
|
|
19
|
+
const { colors } = useTheme();
|
|
19
20
|
const [content, setContent] = useState<string>('');
|
|
20
21
|
const [contentType, setContentType] = useState<string>('');
|
|
21
22
|
const [didEdit, setDidEdit] = useState(false);
|
|
@@ -71,7 +72,7 @@ export const RawCodeView: FunctionComponent = () => {
|
|
|
71
72
|
}, [fetchContent]);
|
|
72
73
|
|
|
73
74
|
return (
|
|
74
|
-
<View
|
|
75
|
+
<View style={[styles.container, { backgroundColor: colors.background }]}>
|
|
75
76
|
<LoadingBar isLoading={isFetching || isSaving} />
|
|
76
77
|
<RawCodeEditor
|
|
77
78
|
value={content}
|
|
@@ -81,13 +82,26 @@ export const RawCodeView: FunctionComponent = () => {
|
|
|
81
82
|
}}
|
|
82
83
|
/>
|
|
83
84
|
<Button
|
|
84
|
-
|
|
85
|
+
style={styles.saveButton}
|
|
85
86
|
onPress={submitChanges}
|
|
86
87
|
text="Save Changes"
|
|
87
|
-
iconLeft={
|
|
88
|
+
iconLeft={Save}
|
|
88
89
|
isLoading={isSaving}
|
|
89
90
|
disabled={!didEdit || isSaving}
|
|
90
91
|
/>
|
|
91
92
|
</View>
|
|
92
93
|
);
|
|
93
94
|
};
|
|
95
|
+
|
|
96
|
+
const styles = StyleSheet.create({
|
|
97
|
+
container: {
|
|
98
|
+
flex: 1,
|
|
99
|
+
position: 'relative',
|
|
100
|
+
},
|
|
101
|
+
saveButton: {
|
|
102
|
+
position: 'absolute',
|
|
103
|
+
bottom: 8,
|
|
104
|
+
right: 8,
|
|
105
|
+
zIndex: 10,
|
|
106
|
+
},
|
|
107
|
+
});
|
package/components.json
DELETED
package/lib/icons/ArrowRight.tsx
DELETED
package/lib/icons/Check.tsx
DELETED
package/lib/icons/ChevronUp.tsx
DELETED
package/lib/icons/CircleX.tsx
DELETED
package/lib/icons/Code.tsx
DELETED
package/lib/icons/EyeOff.tsx
DELETED
package/lib/icons/File.tsx
DELETED
package/lib/icons/Folder.tsx
DELETED
package/lib/icons/Folders.tsx
DELETED
package/lib/icons/Info.tsx
DELETED
package/lib/icons/Link.tsx
DELETED
package/lib/icons/Loader.tsx
DELETED
package/lib/icons/LogOut.tsx
DELETED
package/lib/icons/MoonStar.tsx
DELETED
package/lib/icons/OctagonX.tsx
DELETED
package/lib/icons/Plus.tsx
DELETED
package/lib/icons/RefreshCw.tsx
DELETED
package/lib/icons/Save.tsx
DELETED
package/lib/icons/ShieldX.tsx
DELETED
package/lib/icons/Sun.tsx
DELETED
package/lib/icons/Trash.tsx
DELETED
package/lib/icons/User.tsx
DELETED
package/lib/icons/UserPlus.tsx
DELETED
package/lib/icons/Users.tsx
DELETED
package/lib/icons/ViewIcon.tsx
DELETED
package/lib/icons/X.tsx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { LucideIcon } from 'lucide-react-native';
|
|
2
|
-
import { cssInterop } from 'nativewind';
|
|
3
|
-
|
|
4
|
-
export function iconWithClassName(icon: LucideIcon) {
|
|
5
|
-
cssInterop(icon, {
|
|
6
|
-
className: {
|
|
7
|
-
target: 'style',
|
|
8
|
-
nativeStyleToProp: {
|
|
9
|
-
color: true,
|
|
10
|
-
opacity: true,
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
}
|
package/lib/utils.ts
DELETED
package/nativewind-env.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="nativewind/types" />
|