feeddo-react-native 0.0.0-stage → 0.1.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.
Files changed (225) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +401 -2
  3. package/android/build.gradle +39 -0
  4. package/android/src/main/AndroidManifest.xml +1 -0
  5. package/android/src/main/java/dev/feeddo/reactnative/FeeddoReactNativeModule.java +380 -0
  6. package/android/src/main/java/dev/feeddo/reactnative/FeeddoReactNativePackage.java +25 -0
  7. package/dist/Feeddo.d.ts +131 -0
  8. package/dist/Feeddo.d.ts.map +1 -0
  9. package/dist/Feeddo.js +176 -0
  10. package/dist/Feeddo.js.map +1 -0
  11. package/dist/FeeddoClient.d.ts +151 -0
  12. package/dist/FeeddoClient.d.ts.map +1 -0
  13. package/dist/FeeddoClient.js +690 -0
  14. package/dist/FeeddoClient.js.map +1 -0
  15. package/dist/FeeddoProvider.d.ts +23 -0
  16. package/dist/FeeddoProvider.d.ts.map +1 -0
  17. package/dist/FeeddoProvider.js +76 -0
  18. package/dist/FeeddoProvider.js.map +1 -0
  19. package/dist/config/FeeddoConfig.d.ts +10 -0
  20. package/dist/config/FeeddoConfig.d.ts.map +1 -0
  21. package/dist/config/FeeddoConfig.js +10 -0
  22. package/dist/config/FeeddoConfig.js.map +1 -0
  23. package/dist/index.d.ts +36 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +38 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/models/Conversation.d.ts +27 -0
  28. package/dist/models/Conversation.d.ts.map +1 -0
  29. package/dist/models/Conversation.js +24 -0
  30. package/dist/models/Conversation.js.map +1 -0
  31. package/dist/models/EndUser.d.ts +49 -0
  32. package/dist/models/EndUser.d.ts.map +1 -0
  33. package/dist/models/EndUser.js +2 -0
  34. package/dist/models/EndUser.js.map +1 -0
  35. package/dist/models/FeeddoNotification.d.ts +15 -0
  36. package/dist/models/FeeddoNotification.d.ts.map +1 -0
  37. package/dist/models/FeeddoNotification.js +15 -0
  38. package/dist/models/FeeddoNotification.js.map +1 -0
  39. package/dist/models/HomeData.d.ts +16 -0
  40. package/dist/models/HomeData.d.ts.map +1 -0
  41. package/dist/models/HomeData.js +19 -0
  42. package/dist/models/HomeData.js.map +1 -0
  43. package/dist/models/Message.d.ts +12 -0
  44. package/dist/models/Message.d.ts.map +1 -0
  45. package/dist/models/Message.js +25 -0
  46. package/dist/models/Message.js.map +1 -0
  47. package/dist/models/PushProvider.d.ts +14 -0
  48. package/dist/models/PushProvider.d.ts.map +1 -0
  49. package/dist/models/PushProvider.js +9 -0
  50. package/dist/models/PushProvider.js.map +1 -0
  51. package/dist/models/Task.d.ts +17 -0
  52. package/dist/models/Task.d.ts.map +1 -0
  53. package/dist/models/Task.js +22 -0
  54. package/dist/models/Task.js.map +1 -0
  55. package/dist/models/TaskComment.d.ts +11 -0
  56. package/dist/models/TaskComment.d.ts.map +1 -0
  57. package/dist/models/TaskComment.js +27 -0
  58. package/dist/models/TaskComment.js.map +1 -0
  59. package/dist/models/Ticket.d.ts +13 -0
  60. package/dist/models/Ticket.d.ts.map +1 -0
  61. package/dist/models/Ticket.js +14 -0
  62. package/dist/models/Ticket.js.map +1 -0
  63. package/dist/native/FeeddoNative.d.ts +58 -0
  64. package/dist/native/FeeddoNative.d.ts.map +1 -0
  65. package/dist/native/FeeddoNative.js +22 -0
  66. package/dist/native/FeeddoNative.js.map +1 -0
  67. package/dist/push/FeeddoPushNotificationApns.d.ts +73 -0
  68. package/dist/push/FeeddoPushNotificationApns.d.ts.map +1 -0
  69. package/dist/push/FeeddoPushNotificationApns.js +301 -0
  70. package/dist/push/FeeddoPushNotificationApns.js.map +1 -0
  71. package/dist/services/ApiService.d.ts +64 -0
  72. package/dist/services/ApiService.d.ts.map +1 -0
  73. package/dist/services/ApiService.js +406 -0
  74. package/dist/services/ApiService.js.map +1 -0
  75. package/dist/services/ConversationService.d.ts +45 -0
  76. package/dist/services/ConversationService.d.ts.map +1 -0
  77. package/dist/services/ConversationService.js +259 -0
  78. package/dist/services/ConversationService.js.map +1 -0
  79. package/dist/services/WebSocketService.d.ts +26 -0
  80. package/dist/services/WebSocketService.d.ts.map +1 -0
  81. package/dist/services/WebSocketService.js +157 -0
  82. package/dist/services/WebSocketService.js.map +1 -0
  83. package/dist/theme/FeeddoTheme.d.ts +31 -0
  84. package/dist/theme/FeeddoTheme.d.ts.map +1 -0
  85. package/dist/theme/FeeddoTheme.js +60 -0
  86. package/dist/theme/FeeddoTheme.js.map +1 -0
  87. package/dist/ui/FeeddoFeedbackCard.d.ts +15 -0
  88. package/dist/ui/FeeddoFeedbackCard.d.ts.map +1 -0
  89. package/dist/ui/FeeddoFeedbackCard.js +188 -0
  90. package/dist/ui/FeeddoFeedbackCard.js.map +1 -0
  91. package/dist/ui/FeeddoModal.d.ts +20 -0
  92. package/dist/ui/FeeddoModal.d.ts.map +1 -0
  93. package/dist/ui/FeeddoModal.js +174 -0
  94. package/dist/ui/FeeddoModal.js.map +1 -0
  95. package/dist/ui/components/AttachmentPreview.d.ts +10 -0
  96. package/dist/ui/components/AttachmentPreview.d.ts.map +1 -0
  97. package/dist/ui/components/AttachmentPreview.js +143 -0
  98. package/dist/ui/components/AttachmentPreview.js.map +1 -0
  99. package/dist/ui/components/ChatInputArea.d.ts +16 -0
  100. package/dist/ui/components/ChatInputArea.d.ts.map +1 -0
  101. package/dist/ui/components/ChatInputArea.js +85 -0
  102. package/dist/ui/components/ChatInputArea.js.map +1 -0
  103. package/dist/ui/components/FeeddoIcon.d.ts +10 -0
  104. package/dist/ui/components/FeeddoIcon.d.ts.map +1 -0
  105. package/dist/ui/components/FeeddoIcon.js +690 -0
  106. package/dist/ui/components/FeeddoIcon.js.map +1 -0
  107. package/dist/ui/components/FeeddoNotificationBadge.d.ts +14 -0
  108. package/dist/ui/components/FeeddoNotificationBadge.d.ts.map +1 -0
  109. package/dist/ui/components/FeeddoNotificationBadge.js +171 -0
  110. package/dist/ui/components/FeeddoNotificationBadge.js.map +1 -0
  111. package/dist/ui/components/MessageBubble.d.ts +13 -0
  112. package/dist/ui/components/MessageBubble.d.ts.map +1 -0
  113. package/dist/ui/components/MessageBubble.js +163 -0
  114. package/dist/ui/components/MessageBubble.js.map +1 -0
  115. package/dist/ui/components/NotificationsSheet.d.ts +10 -0
  116. package/dist/ui/components/NotificationsSheet.d.ts.map +1 -0
  117. package/dist/ui/components/NotificationsSheet.js +252 -0
  118. package/dist/ui/components/NotificationsSheet.js.map +1 -0
  119. package/dist/ui/components/RatingWidget.d.ts +11 -0
  120. package/dist/ui/components/RatingWidget.d.ts.map +1 -0
  121. package/dist/ui/components/RatingWidget.js +34 -0
  122. package/dist/ui/components/RatingWidget.js.map +1 -0
  123. package/dist/ui/components/TaskCard.d.ts +12 -0
  124. package/dist/ui/components/TaskCard.d.ts.map +1 -0
  125. package/dist/ui/components/TaskCard.js +210 -0
  126. package/dist/ui/components/TaskCard.js.map +1 -0
  127. package/dist/ui/components/TaskDetailsSheet.d.ts +15 -0
  128. package/dist/ui/components/TaskDetailsSheet.d.ts.map +1 -0
  129. package/dist/ui/components/TaskDetailsSheet.js +577 -0
  130. package/dist/ui/components/TaskDetailsSheet.js.map +1 -0
  131. package/dist/ui/components/TicketCard.d.ts +11 -0
  132. package/dist/ui/components/TicketCard.d.ts.map +1 -0
  133. package/dist/ui/components/TicketCard.js +100 -0
  134. package/dist/ui/components/TicketCard.js.map +1 -0
  135. package/dist/ui/components/TicketDetailsSheet.d.ts +14 -0
  136. package/dist/ui/components/TicketDetailsSheet.d.ts.map +1 -0
  137. package/dist/ui/components/TicketDetailsSheet.js +254 -0
  138. package/dist/ui/components/TicketDetailsSheet.js.map +1 -0
  139. package/dist/ui/components/TypingIndicator.d.ts +10 -0
  140. package/dist/ui/components/TypingIndicator.d.ts.map +1 -0
  141. package/dist/ui/components/TypingIndicator.js +77 -0
  142. package/dist/ui/components/TypingIndicator.js.map +1 -0
  143. package/dist/ui/screens/FeeddoChatScreen.d.ts +13 -0
  144. package/dist/ui/screens/FeeddoChatScreen.d.ts.map +1 -0
  145. package/dist/ui/screens/FeeddoChatScreen.js +681 -0
  146. package/dist/ui/screens/FeeddoChatScreen.js.map +1 -0
  147. package/dist/ui/screens/FeeddoHomeScreen.d.ts +15 -0
  148. package/dist/ui/screens/FeeddoHomeScreen.d.ts.map +1 -0
  149. package/dist/ui/screens/FeeddoHomeScreen.js +653 -0
  150. package/dist/ui/screens/FeeddoHomeScreen.js.map +1 -0
  151. package/dist/ui/screens/FeeddoMessagesScreen.d.ts +12 -0
  152. package/dist/ui/screens/FeeddoMessagesScreen.d.ts.map +1 -0
  153. package/dist/ui/screens/FeeddoMessagesScreen.js +326 -0
  154. package/dist/ui/screens/FeeddoMessagesScreen.js.map +1 -0
  155. package/dist/ui/screens/FeeddoTasksScreen.d.ts +13 -0
  156. package/dist/ui/screens/FeeddoTasksScreen.d.ts.map +1 -0
  157. package/dist/ui/screens/FeeddoTasksScreen.js +517 -0
  158. package/dist/ui/screens/FeeddoTasksScreen.js.map +1 -0
  159. package/dist/ui/screens/FeeddoTicketsScreen.d.ts +10 -0
  160. package/dist/ui/screens/FeeddoTicketsScreen.d.ts.map +1 -0
  161. package/dist/ui/screens/FeeddoTicketsScreen.js +112 -0
  162. package/dist/ui/screens/FeeddoTicketsScreen.js.map +1 -0
  163. package/dist/utils/DeviceInfoHelper.d.ts +29 -0
  164. package/dist/utils/DeviceInfoHelper.d.ts.map +1 -0
  165. package/dist/utils/DeviceInfoHelper.js +190 -0
  166. package/dist/utils/DeviceInfoHelper.js.map +1 -0
  167. package/dist/utils/MediaHelper.d.ts +20 -0
  168. package/dist/utils/MediaHelper.d.ts.map +1 -0
  169. package/dist/utils/MediaHelper.js +92 -0
  170. package/dist/utils/MediaHelper.js.map +1 -0
  171. package/dist/utils/NotificationSupport.d.ts +22 -0
  172. package/dist/utils/NotificationSupport.d.ts.map +1 -0
  173. package/dist/utils/NotificationSupport.js +211 -0
  174. package/dist/utils/NotificationSupport.js.map +1 -0
  175. package/dist/utils/StorageHelper.d.ts +65 -0
  176. package/dist/utils/StorageHelper.d.ts.map +1 -0
  177. package/dist/utils/StorageHelper.js +273 -0
  178. package/dist/utils/StorageHelper.js.map +1 -0
  179. package/feeddo-react-native.podspec +26 -0
  180. package/ios/FeeddoReactNativeModule.h +8 -0
  181. package/ios/FeeddoReactNativeModule.m +831 -0
  182. package/package.json +56 -4
  183. package/src/Feeddo.ts +247 -0
  184. package/src/FeeddoClient.ts +895 -0
  185. package/src/FeeddoProvider.tsx +139 -0
  186. package/src/config/FeeddoConfig.ts +9 -0
  187. package/src/index.ts +67 -0
  188. package/src/models/Conversation.ts +50 -0
  189. package/src/models/EndUser.ts +65 -0
  190. package/src/models/FeeddoNotification.ts +29 -0
  191. package/src/models/HomeData.ts +33 -0
  192. package/src/models/Message.ts +36 -0
  193. package/src/models/PushProvider.ts +15 -0
  194. package/src/models/Task.ts +40 -0
  195. package/src/models/TaskComment.ts +36 -0
  196. package/src/models/Ticket.ts +25 -0
  197. package/src/native/FeeddoNative.ts +80 -0
  198. package/src/push/FeeddoPushNotificationApns.ts +362 -0
  199. package/src/services/ApiService.ts +456 -0
  200. package/src/services/ConversationService.ts +305 -0
  201. package/src/services/WebSocketService.ts +185 -0
  202. package/src/theme/FeeddoTheme.ts +85 -0
  203. package/src/ui/FeeddoFeedbackCard.tsx +245 -0
  204. package/src/ui/FeeddoModal.tsx +303 -0
  205. package/src/ui/components/AttachmentPreview.tsx +192 -0
  206. package/src/ui/components/ChatInputArea.tsx +154 -0
  207. package/src/ui/components/FeeddoIcon.tsx +903 -0
  208. package/src/ui/components/FeeddoNotificationBadge.tsx +234 -0
  209. package/src/ui/components/MessageBubble.tsx +223 -0
  210. package/src/ui/components/NotificationsSheet.tsx +324 -0
  211. package/src/ui/components/RatingWidget.tsx +64 -0
  212. package/src/ui/components/TaskCard.tsx +259 -0
  213. package/src/ui/components/TaskDetailsSheet.tsx +747 -0
  214. package/src/ui/components/TicketCard.tsx +128 -0
  215. package/src/ui/components/TicketDetailsSheet.tsx +324 -0
  216. package/src/ui/components/TypingIndicator.tsx +104 -0
  217. package/src/ui/screens/FeeddoChatScreen.tsx +877 -0
  218. package/src/ui/screens/FeeddoHomeScreen.tsx +824 -0
  219. package/src/ui/screens/FeeddoMessagesScreen.tsx +414 -0
  220. package/src/ui/screens/FeeddoTasksScreen.tsx +671 -0
  221. package/src/ui/screens/FeeddoTicketsScreen.tsx +164 -0
  222. package/src/utils/DeviceInfoHelper.ts +209 -0
  223. package/src/utils/MediaHelper.ts +105 -0
  224. package/src/utils/NotificationSupport.ts +233 -0
  225. package/src/utils/StorageHelper.ts +305 -0
@@ -0,0 +1,690 @@
1
+ import React from 'react';
2
+ import { View, Text } from 'react-native';
3
+ // -------------------------------------------------------------
4
+ // Real Vector Icon Implementations matching Flutter Material UI
5
+ // -------------------------------------------------------------
6
+ const BellIcon = ({ size, color }) => {
7
+ const stroke = Math.max(1.5, size * 0.08);
8
+ const w = size * 0.65;
9
+ const h = size * 0.7;
10
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
11
+ {/* Top hanger loop */}
12
+ <View style={{
13
+ width: size * 0.16,
14
+ height: size * 0.12,
15
+ borderTopLeftRadius: size * 0.08,
16
+ borderTopRightRadius: size * 0.08,
17
+ borderWidth: stroke,
18
+ borderBottomWidth: 0,
19
+ borderColor: color,
20
+ }}/>
21
+ {/* Dome body */}
22
+ <View style={{
23
+ width: w,
24
+ height: h * 0.68,
25
+ borderTopLeftRadius: w / 2,
26
+ borderTopRightRadius: w / 2,
27
+ borderBottomLeftRadius: 2,
28
+ borderBottomRightRadius: 2,
29
+ borderWidth: stroke,
30
+ borderColor: color,
31
+ borderBottomWidth: 0,
32
+ }}/>
33
+ {/* Bottom lip */}
34
+ <View style={{
35
+ width: size * 0.76,
36
+ height: stroke,
37
+ backgroundColor: color,
38
+ borderRadius: stroke / 2,
39
+ }}/>
40
+ {/* Clapper */}
41
+ <View style={{
42
+ width: size * 0.2,
43
+ height: size * 0.1,
44
+ borderBottomLeftRadius: size * 0.1,
45
+ borderBottomRightRadius: size * 0.1,
46
+ backgroundColor: color,
47
+ marginTop: 1,
48
+ }}/>
49
+ </View>);
50
+ };
51
+ const ChatIcon = ({ size, color }) => {
52
+ const stroke = Math.max(1.5, size * 0.08);
53
+ const w = size * 0.82;
54
+ const h = size * 0.64;
55
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
56
+ <View style={{
57
+ width: w,
58
+ height: h,
59
+ borderRadius: size * 0.18,
60
+ borderWidth: stroke,
61
+ borderColor: color,
62
+ position: 'relative',
63
+ }}>
64
+ {/* Tail */}
65
+ <View style={{
66
+ position: 'absolute',
67
+ bottom: -stroke * 2.2,
68
+ left: size * 0.1,
69
+ width: 0,
70
+ height: 0,
71
+ borderTopWidth: size * 0.18,
72
+ borderTopColor: color,
73
+ borderRightWidth: size * 0.16,
74
+ borderRightColor: 'transparent',
75
+ }}/>
76
+ </View>
77
+ </View>);
78
+ };
79
+ const LightbulbIcon = ({ size, color }) => {
80
+ const stroke = Math.max(1.5, size * 0.08);
81
+ const radius = size * 0.28;
82
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
83
+ {/* Bulb globe */}
84
+ <View style={{
85
+ width: radius * 2,
86
+ height: radius * 2,
87
+ borderRadius: radius,
88
+ borderWidth: stroke,
89
+ borderColor: color,
90
+ }}/>
91
+ {/* Base neck */}
92
+ <View style={{
93
+ width: size * 0.28,
94
+ height: size * 0.14,
95
+ borderLeftWidth: stroke,
96
+ borderRightWidth: stroke,
97
+ borderColor: color,
98
+ marginTop: -stroke,
99
+ }}/>
100
+ {/* Contact tip */}
101
+ <View style={{
102
+ width: size * 0.2,
103
+ height: size * 0.08,
104
+ borderBottomLeftRadius: 2,
105
+ borderBottomRightRadius: 2,
106
+ backgroundColor: color,
107
+ marginTop: 1,
108
+ }}/>
109
+ </View>);
110
+ };
111
+ const TicketIcon = ({ size, color }) => {
112
+ const stroke = Math.max(1.5, size * 0.08);
113
+ const w = size * 0.86;
114
+ const h = size * 0.58;
115
+ const notch = size * 0.14;
116
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
117
+ <View style={{
118
+ width: w,
119
+ height: h,
120
+ borderRadius: 3,
121
+ borderWidth: stroke,
122
+ borderColor: color,
123
+ flexDirection: 'row',
124
+ alignItems: 'center',
125
+ justifyContent: 'space-between',
126
+ overflow: 'hidden',
127
+ }}>
128
+ {/* Left notch cutout */}
129
+ <View style={{
130
+ width: notch,
131
+ height: notch * 2,
132
+ borderRadius: notch,
133
+ borderWidth: stroke,
134
+ borderColor: color,
135
+ marginLeft: -notch - stroke,
136
+ }}/>
137
+ {/* Perforated center divider */}
138
+ <View style={{
139
+ width: stroke,
140
+ height: '60%',
141
+ borderStyle: 'dashed',
142
+ borderLeftWidth: stroke,
143
+ borderLeftColor: color,
144
+ }}/>
145
+ {/* Right notch cutout */}
146
+ <View style={{
147
+ width: notch,
148
+ height: notch * 2,
149
+ borderRadius: notch,
150
+ borderWidth: stroke,
151
+ borderColor: color,
152
+ marginRight: -notch - stroke,
153
+ }}/>
154
+ </View>
155
+ </View>);
156
+ };
157
+ const BugIcon = ({ size, color }) => {
158
+ const stroke = Math.max(1.5, size * 0.08);
159
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
160
+ {/* Antennae */}
161
+ <View style={{ flexDirection: 'row', width: size * 0.44, justifyContent: 'space-between' }}>
162
+ <View style={{ width: stroke, height: size * 0.14, backgroundColor: color, transform: [{ rotate: '-30deg' }] }}/>
163
+ <View style={{ width: stroke, height: size * 0.14, backgroundColor: color, transform: [{ rotate: '30deg' }] }}/>
164
+ </View>
165
+ {/* Head */}
166
+ <View style={{
167
+ width: size * 0.36,
168
+ height: size * 0.14,
169
+ borderTopLeftRadius: size * 0.18,
170
+ borderTopRightRadius: size * 0.18,
171
+ backgroundColor: color,
172
+ marginTop: -1,
173
+ }}/>
174
+ {/* Body with legs */}
175
+ <View style={{ flexDirection: 'row', alignItems: 'center', marginTop: 1 }}>
176
+ <View style={{ gap: 3, marginRight: 2 }}>
177
+ <View style={{ width: size * 0.12, height: stroke, backgroundColor: color }}/>
178
+ <View style={{ width: size * 0.12, height: stroke, backgroundColor: color }}/>
179
+ </View>
180
+ <View style={{
181
+ width: size * 0.44,
182
+ height: size * 0.44,
183
+ borderRadius: size * 0.22,
184
+ borderWidth: stroke,
185
+ borderColor: color,
186
+ alignItems: 'center',
187
+ }}>
188
+ <View style={{ width: stroke, height: '100%', backgroundColor: color }}/>
189
+ </View>
190
+ <View style={{ gap: 3, marginLeft: 2 }}>
191
+ <View style={{ width: size * 0.12, height: stroke, backgroundColor: color }}/>
192
+ <View style={{ width: size * 0.12, height: stroke, backgroundColor: color }}/>
193
+ </View>
194
+ </View>
195
+ </View>);
196
+ };
197
+ const InboxIcon = ({ size, color }) => {
198
+ const stroke = Math.max(1.5, size * 0.08);
199
+ const w = size * 0.84;
200
+ const h = size * 0.64;
201
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
202
+ <View style={{
203
+ width: w,
204
+ height: h,
205
+ borderRadius: 3,
206
+ borderWidth: stroke,
207
+ borderColor: color,
208
+ justifyContent: 'flex-end',
209
+ }}>
210
+ <View style={{
211
+ height: h * 0.44,
212
+ borderTopWidth: stroke,
213
+ borderTopColor: color,
214
+ flexDirection: 'row',
215
+ alignItems: 'flex-start',
216
+ justifyContent: 'center',
217
+ }}>
218
+ <View style={{
219
+ width: w * 0.42,
220
+ height: stroke * 2.4,
221
+ borderBottomLeftRadius: 3,
222
+ borderBottomRightRadius: 3,
223
+ borderWidth: stroke,
224
+ borderTopWidth: 0,
225
+ borderColor: color,
226
+ }}/>
227
+ </View>
228
+ </View>
229
+ </View>);
230
+ };
231
+ const CloseIcon = ({ size, color }) => {
232
+ const stroke = Math.max(1.5, size * 0.09);
233
+ const length = size * 0.65;
234
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
235
+ <View style={{
236
+ position: 'absolute',
237
+ width: length,
238
+ height: stroke,
239
+ backgroundColor: color,
240
+ borderRadius: stroke / 2,
241
+ transform: [{ rotate: '45deg' }],
242
+ }}/>
243
+ <View style={{
244
+ position: 'absolute',
245
+ width: length,
246
+ height: stroke,
247
+ backgroundColor: color,
248
+ borderRadius: stroke / 2,
249
+ transform: [{ rotate: '-45deg' }],
250
+ }}/>
251
+ </View>);
252
+ };
253
+ const ArrowBackIcon = ({ size, color }) => {
254
+ const stroke = Math.max(1.5, size * 0.09);
255
+ const arm = size * 0.32;
256
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
257
+ <View style={{
258
+ width: size * 0.62,
259
+ height: stroke,
260
+ backgroundColor: color,
261
+ borderRadius: stroke / 2,
262
+ marginLeft: size * 0.1,
263
+ }}/>
264
+ <View style={{
265
+ position: 'absolute',
266
+ left: size * 0.16,
267
+ width: arm,
268
+ height: arm,
269
+ borderLeftWidth: stroke,
270
+ borderTopWidth: stroke,
271
+ borderColor: color,
272
+ borderTopLeftRadius: 1,
273
+ transform: [{ rotate: '-45deg' }],
274
+ }}/>
275
+ </View>);
276
+ };
277
+ const ArrowForwardIcon = ({ size, color }) => {
278
+ const stroke = Math.max(1.5, size * 0.09);
279
+ const arm = size * 0.32;
280
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
281
+ <View style={{
282
+ width: size * 0.62,
283
+ height: stroke,
284
+ backgroundColor: color,
285
+ borderRadius: stroke / 2,
286
+ marginRight: size * 0.1,
287
+ }}/>
288
+ <View style={{
289
+ position: 'absolute',
290
+ right: size * 0.16,
291
+ width: arm,
292
+ height: arm,
293
+ borderRightWidth: stroke,
294
+ borderTopWidth: stroke,
295
+ borderColor: color,
296
+ borderTopRightRadius: 1,
297
+ transform: [{ rotate: '45deg' }],
298
+ }}/>
299
+ </View>);
300
+ };
301
+ const ArrowUpIcon = ({ size, color }) => {
302
+ const stroke = Math.max(1.5, size * 0.09);
303
+ const arm = size * 0.32;
304
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
305
+ <View style={{
306
+ width: stroke,
307
+ height: size * 0.62,
308
+ backgroundColor: color,
309
+ borderRadius: stroke / 2,
310
+ marginTop: size * 0.1,
311
+ }}/>
312
+ <View style={{
313
+ position: 'absolute',
314
+ top: size * 0.16,
315
+ width: arm,
316
+ height: arm,
317
+ borderLeftWidth: stroke,
318
+ borderTopWidth: stroke,
319
+ borderColor: color,
320
+ transform: [{ rotate: '45deg' }],
321
+ }}/>
322
+ </View>);
323
+ };
324
+ const ArrowDownIcon = ({ size, color }) => {
325
+ const stroke = Math.max(1.5, size * 0.09);
326
+ const arm = size * 0.32;
327
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
328
+ <View style={{
329
+ width: stroke,
330
+ height: size * 0.62,
331
+ backgroundColor: color,
332
+ borderRadius: stroke / 2,
333
+ marginBottom: size * 0.1,
334
+ }}/>
335
+ <View style={{
336
+ position: 'absolute',
337
+ bottom: size * 0.16,
338
+ width: arm,
339
+ height: arm,
340
+ borderRightWidth: stroke,
341
+ borderBottomWidth: stroke,
342
+ borderColor: color,
343
+ transform: [{ rotate: '45deg' }],
344
+ }}/>
345
+ </View>);
346
+ };
347
+ const ChevronRightIcon = ({ size, color }) => {
348
+ const stroke = Math.max(1.5, size * 0.1);
349
+ const arm = size * 0.34;
350
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
351
+ <View style={{
352
+ width: arm,
353
+ height: arm,
354
+ borderRightWidth: stroke,
355
+ borderTopWidth: stroke,
356
+ borderColor: color,
357
+ borderTopRightRadius: 2,
358
+ transform: [{ rotate: '45deg' }],
359
+ marginRight: size * 0.08,
360
+ }}/>
361
+ </View>);
362
+ };
363
+ const SendIcon = ({ size, color }) => {
364
+ const arm = size * 0.38;
365
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
366
+ <View style={{
367
+ width: 0,
368
+ height: 0,
369
+ borderStyle: 'solid',
370
+ borderTopWidth: arm,
371
+ borderRightWidth: 0,
372
+ borderBottomWidth: arm,
373
+ borderLeftWidth: arm * 1.5,
374
+ borderTopColor: 'transparent',
375
+ borderRightColor: 'transparent',
376
+ borderBottomColor: 'transparent',
377
+ borderLeftColor: color,
378
+ marginLeft: size * 0.08,
379
+ }}/>
380
+ </View>);
381
+ };
382
+ const EditIcon = ({ size, color }) => {
383
+ const stroke = Math.max(1.5, size * 0.08);
384
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
385
+ <View style={{
386
+ width: size * 0.2,
387
+ height: size * 0.58,
388
+ borderRadius: 2,
389
+ borderWidth: stroke,
390
+ borderColor: color,
391
+ transform: [{ rotate: '45deg' }],
392
+ alignItems: 'center',
393
+ justifyContent: 'flex-start',
394
+ }}>
395
+ <View style={{ width: '100%', height: size * 0.1, borderBottomWidth: stroke, borderColor: color }}/>
396
+ </View>
397
+ </View>);
398
+ };
399
+ const TuneIcon = ({ size, color }) => {
400
+ const stroke = Math.max(1.5, size * 0.08);
401
+ const knob = size * 0.22;
402
+ return (<View style={{ width: size, height: size, justifyContent: 'space-around', paddingVertical: size * 0.15 }}>
403
+ <View style={{ flexDirection: 'row', alignItems: 'center', width: size }}>
404
+ <View style={{ flex: 1, height: stroke, backgroundColor: color }}/>
405
+ <View style={{ width: knob, height: knob, borderRadius: knob / 2, backgroundColor: color, marginHorizontal: 2 }}/>
406
+ <View style={{ width: size * 0.2, height: stroke, backgroundColor: color }}/>
407
+ </View>
408
+ <View style={{ flexDirection: 'row', alignItems: 'center', width: size }}>
409
+ <View style={{ width: size * 0.25, height: stroke, backgroundColor: color }}/>
410
+ <View style={{ width: knob, height: knob, borderRadius: knob / 2, backgroundColor: color, marginHorizontal: 2 }}/>
411
+ <View style={{ flex: 1, height: stroke, backgroundColor: color }}/>
412
+ </View>
413
+ </View>);
414
+ };
415
+ const AddIcon = ({ size, color }) => {
416
+ const stroke = Math.max(1.5, size * 0.09);
417
+ const len = size * 0.65;
418
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
419
+ <View style={{ position: 'absolute', width: len, height: stroke, backgroundColor: color, borderRadius: stroke / 2 }}/>
420
+ <View style={{ position: 'absolute', width: stroke, height: len, backgroundColor: color, borderRadius: stroke / 2 }}/>
421
+ </View>);
422
+ };
423
+ const CheckIcon = ({ size, color }) => {
424
+ const stroke = Math.max(1.5, size * 0.09);
425
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
426
+ <View style={{
427
+ width: size * 0.5,
428
+ height: size * 0.28,
429
+ borderLeftWidth: stroke,
430
+ borderBottomWidth: stroke,
431
+ borderColor: color,
432
+ borderRadius: 1,
433
+ transform: [{ rotate: '-45deg' }],
434
+ marginBottom: size * 0.08,
435
+ }}/>
436
+ </View>);
437
+ };
438
+ const CheckCircleIcon = ({ size, color }) => {
439
+ const stroke = Math.max(1.5, size * 0.08);
440
+ return (<View style={{
441
+ width: size,
442
+ height: size,
443
+ borderRadius: size / 2,
444
+ borderWidth: stroke,
445
+ borderColor: color,
446
+ alignItems: 'center',
447
+ justifyContent: 'center',
448
+ }}>
449
+ <View style={{
450
+ width: size * 0.42,
451
+ height: size * 0.24,
452
+ borderLeftWidth: stroke,
453
+ borderBottomWidth: stroke,
454
+ borderColor: color,
455
+ borderRadius: 1,
456
+ transform: [{ rotate: '-45deg' }],
457
+ marginBottom: size * 0.06,
458
+ }}/>
459
+ </View>);
460
+ };
461
+ const AttachIcon = ({ size, color }) => {
462
+ const stroke = Math.max(1.5, size * 0.08);
463
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
464
+ <View style={{
465
+ width: size * 0.36,
466
+ height: size * 0.65,
467
+ borderRadius: size * 0.18,
468
+ borderWidth: stroke,
469
+ borderColor: color,
470
+ transform: [{ rotate: '45deg' }],
471
+ justifyContent: 'flex-start',
472
+ alignItems: 'center',
473
+ paddingTop: 2,
474
+ }}>
475
+ <View style={{
476
+ width: size * 0.18,
477
+ height: size * 0.32,
478
+ borderRadius: size * 0.09,
479
+ borderWidth: stroke,
480
+ borderBottomWidth: 0,
481
+ borderColor: color,
482
+ }}/>
483
+ </View>
484
+ </View>);
485
+ };
486
+ const PersonIcon = ({ size, color }) => {
487
+ const stroke = Math.max(1.5, size * 0.08);
488
+ const headSize = size * 0.36;
489
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
490
+ <View style={{
491
+ width: headSize,
492
+ height: headSize,
493
+ borderRadius: headSize / 2,
494
+ borderWidth: stroke,
495
+ borderColor: color,
496
+ }}/>
497
+ <View style={{
498
+ width: size * 0.72,
499
+ height: size * 0.32,
500
+ borderTopLeftRadius: size * 0.36,
501
+ borderTopRightRadius: size * 0.36,
502
+ borderWidth: stroke,
503
+ borderBottomWidth: 0,
504
+ borderColor: color,
505
+ marginTop: 2,
506
+ }}/>
507
+ </View>);
508
+ };
509
+ const CodeIcon = ({ size, color }) => {
510
+ const stroke = Math.max(1.5, size * 0.08);
511
+ const arm = size * 0.22;
512
+ return (<View style={{ width: size, height: size, flexDirection: 'row', alignItems: 'center', justifyContent: 'center', gap: 3 }}>
513
+ <View style={{ width: arm, height: arm, borderLeftWidth: stroke, borderBottomWidth: stroke, borderColor: color, transform: [{ rotate: '45deg' }] }}/>
514
+ <View style={{ width: arm * 1.5, height: stroke, backgroundColor: color, transform: [{ rotate: '-65deg' }] }}/>
515
+ <View style={{ width: arm, height: arm, borderRightWidth: stroke, borderTopWidth: stroke, borderColor: color, transform: [{ rotate: '45deg' }] }}/>
516
+ </View>);
517
+ };
518
+ const ErrorIcon = ({ size, color }) => {
519
+ const stroke = Math.max(1.5, size * 0.08);
520
+ return (<View style={{
521
+ width: size,
522
+ height: size,
523
+ borderRadius: size / 2,
524
+ borderWidth: stroke,
525
+ borderColor: color,
526
+ alignItems: 'center',
527
+ justifyContent: 'center',
528
+ }}>
529
+ <View style={{ width: stroke, height: size * 0.32, backgroundColor: color, borderRadius: stroke / 2 }}/>
530
+ <View style={{ width: stroke, height: stroke, backgroundColor: color, borderRadius: stroke / 2, marginTop: 2 }}/>
531
+ </View>);
532
+ };
533
+ const InfoIcon = ({ size, color }) => {
534
+ const stroke = Math.max(1.5, size * 0.08);
535
+ return (<View style={{
536
+ width: size,
537
+ height: size,
538
+ borderRadius: size / 2,
539
+ borderWidth: stroke,
540
+ borderColor: color,
541
+ alignItems: 'center',
542
+ justifyContent: 'center',
543
+ }}>
544
+ <View style={{ width: stroke, height: stroke, backgroundColor: color, borderRadius: stroke / 2, marginBottom: 2 }}/>
545
+ <View style={{ width: stroke, height: size * 0.32, backgroundColor: color, borderRadius: stroke / 2 }}/>
546
+ </View>);
547
+ };
548
+ const PendingIcon = ({ size, color }) => {
549
+ const stroke = Math.max(1.5, size * 0.08);
550
+ return (<View style={{
551
+ width: size,
552
+ height: size,
553
+ borderRadius: size / 2,
554
+ borderWidth: stroke,
555
+ borderColor: color,
556
+ alignItems: 'center',
557
+ justifyContent: 'center',
558
+ }}>
559
+ <View style={{ position: 'absolute', width: stroke, height: size * 0.3, backgroundColor: color, top: size * 0.2 }}/>
560
+ <View style={{ position: 'absolute', width: size * 0.24, height: stroke, backgroundColor: color, right: size * 0.25 }}/>
561
+ </View>);
562
+ };
563
+ const StarIcon = ({ size, color, filled }) => {
564
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
565
+ <Text style={{ fontSize: size * 0.9, color, textAlign: 'center', lineHeight: size }}>
566
+ {filled ? '★' : '☆'}
567
+ </Text>
568
+ </View>);
569
+ };
570
+ const PlayIcon = ({ size, color }) => {
571
+ const half = size * 0.34;
572
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
573
+ <View style={{
574
+ width: 0,
575
+ height: 0,
576
+ borderStyle: 'solid',
577
+ borderTopWidth: half,
578
+ borderBottomWidth: half,
579
+ borderLeftWidth: half * 1.6,
580
+ borderTopColor: 'transparent',
581
+ borderBottomColor: 'transparent',
582
+ borderLeftColor: color,
583
+ marginLeft: size * 0.08,
584
+ }}/>
585
+ </View>);
586
+ };
587
+ const AddCommentIcon = ({ size, color }) => {
588
+ const stroke = Math.max(1.5, size * 0.08);
589
+ const w = size * 0.82;
590
+ const h = size * 0.64;
591
+ const plus = size * 0.28;
592
+ return (<View style={{ width: size, height: size, alignItems: 'center', justifyContent: 'center' }}>
593
+ <View style={{
594
+ width: w,
595
+ height: h,
596
+ borderRadius: size * 0.16,
597
+ borderWidth: stroke,
598
+ borderColor: color,
599
+ alignItems: 'center',
600
+ justifyContent: 'center',
601
+ position: 'relative',
602
+ }}>
603
+ <View style={{ width: plus, height: stroke, backgroundColor: color, borderRadius: stroke / 2 }}/>
604
+ <View style={{
605
+ position: 'absolute',
606
+ width: stroke,
607
+ height: plus,
608
+ backgroundColor: color,
609
+ borderRadius: stroke / 2,
610
+ }}/>
611
+ <View style={{
612
+ position: 'absolute',
613
+ bottom: -stroke * 2.2,
614
+ left: size * 0.1,
615
+ width: 0,
616
+ height: 0,
617
+ borderTopWidth: size * 0.18,
618
+ borderTopColor: color,
619
+ borderRightWidth: size * 0.16,
620
+ borderRightColor: 'transparent',
621
+ }}/>
622
+ </View>
623
+ </View>);
624
+ };
625
+ // -------------------------------------------------------------
626
+ // FeeddoIcon Main Component
627
+ // -------------------------------------------------------------
628
+ export const FeeddoIcon = ({ name, size = 20, color = '#FFFFFF', }) => {
629
+ switch (name) {
630
+ case 'notifications':
631
+ return <BellIcon size={size} color={color}/>;
632
+ case 'chat':
633
+ return <ChatIcon size={size} color={color}/>;
634
+ case 'lightbulb':
635
+ return <LightbulbIcon size={size} color={color}/>;
636
+ case 'ticket':
637
+ return <TicketIcon size={size} color={color}/>;
638
+ case 'bug':
639
+ return <BugIcon size={size} color={color}/>;
640
+ case 'inbox':
641
+ return <InboxIcon size={size} color={color}/>;
642
+ case 'close':
643
+ return <CloseIcon size={size} color={color}/>;
644
+ case 'arrow_back':
645
+ return <ArrowBackIcon size={size} color={color}/>;
646
+ case 'arrow_forward':
647
+ return <ArrowForwardIcon size={size} color={color}/>;
648
+ case 'arrow_up':
649
+ return <ArrowUpIcon size={size} color={color}/>;
650
+ case 'arrow_down':
651
+ return <ArrowDownIcon size={size} color={color}/>;
652
+ case 'chevron_right':
653
+ return <ChevronRightIcon size={size} color={color}/>;
654
+ case 'send':
655
+ return <SendIcon size={size} color={color}/>;
656
+ case 'edit':
657
+ return <EditIcon size={size} color={color}/>;
658
+ case 'tune':
659
+ return <TuneIcon size={size} color={color}/>;
660
+ case 'add':
661
+ return <AddIcon size={size} color={color}/>;
662
+ case 'check':
663
+ return <CheckIcon size={size} color={color}/>;
664
+ case 'check_circle':
665
+ return <CheckCircleIcon size={size} color={color}/>;
666
+ case 'attach':
667
+ return <AttachIcon size={size} color={color}/>;
668
+ case 'person':
669
+ return <PersonIcon size={size} color={color}/>;
670
+ case 'code':
671
+ return <CodeIcon size={size} color={color}/>;
672
+ case 'error':
673
+ return <ErrorIcon size={size} color={color}/>;
674
+ case 'info':
675
+ return <InfoIcon size={size} color={color}/>;
676
+ case 'pending':
677
+ return <PendingIcon size={size} color={color}/>;
678
+ case 'star':
679
+ return <StarIcon size={size} color={color} filled={true}/>;
680
+ case 'star_border':
681
+ return <StarIcon size={size} color={color} filled={false}/>;
682
+ case 'play':
683
+ return <PlayIcon size={size} color={color}/>;
684
+ case 'add_comment':
685
+ return <AddCommentIcon size={size} color={color}/>;
686
+ default:
687
+ return <View style={{ width: size, height: size }}/>;
688
+ }
689
+ };
690
+ //# sourceMappingURL=FeeddoIcon.js.map