react-native-ensys-camera-x 1.0.7

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 (506) hide show
  1. package/CustomCamera.podspec +20 -0
  2. package/LICENSE +20 -0
  3. package/README.md +833 -0
  4. package/android/build.gradle +135 -0
  5. package/android/consumer-rules.pro +47 -0
  6. package/android/src/main/AndroidManifest.xml +72 -0
  7. package/android/src/main/java/android/print/PdfPrint.java +51 -0
  8. package/android/src/main/java/com/customcamera/AnimatedImageViewManager.kt +199 -0
  9. package/android/src/main/java/com/customcamera/AudioPlayerView.kt +322 -0
  10. package/android/src/main/java/com/customcamera/AudioRecorder.kt +506 -0
  11. package/android/src/main/java/com/customcamera/BarcodeScannerActivity.kt +361 -0
  12. package/android/src/main/java/com/customcamera/BlurBackgroundView.kt +199 -0
  13. package/android/src/main/java/com/customcamera/CacheCleanupManager.kt +386 -0
  14. package/android/src/main/java/com/customcamera/CameraAspectRatioMode.kt +77 -0
  15. package/android/src/main/java/com/customcamera/CameraAsset.kt +211 -0
  16. package/android/src/main/java/com/customcamera/CameraTheme.kt +479 -0
  17. package/android/src/main/java/com/customcamera/CompressionCacheStore.kt +504 -0
  18. package/android/src/main/java/com/customcamera/CompressionFileNameUtils.kt +7 -0
  19. package/android/src/main/java/com/customcamera/CompressionProfile.kt +195 -0
  20. package/android/src/main/java/com/customcamera/CustomCameraActivity.kt +7291 -0
  21. package/android/src/main/java/com/customcamera/CustomCameraFileProvider.kt +9 -0
  22. package/android/src/main/java/com/customcamera/CustomCameraModule.kt +2479 -0
  23. package/android/src/main/java/com/customcamera/CustomCameraPackage.kt +53 -0
  24. package/android/src/main/java/com/customcamera/DisplayUtils.kt +9 -0
  25. package/android/src/main/java/com/customcamera/DocumentPreviewView.kt +846 -0
  26. package/android/src/main/java/com/customcamera/DrawingView.kt +214 -0
  27. package/android/src/main/java/com/customcamera/EmojiPickerData.kt +228 -0
  28. package/android/src/main/java/com/customcamera/FilterStripAdapter.kt +158 -0
  29. package/android/src/main/java/com/customcamera/GifSupport.kt +215 -0
  30. package/android/src/main/java/com/customcamera/GlobalAudioPlayer.kt +320 -0
  31. package/android/src/main/java/com/customcamera/ImageExporter.kt +1394 -0
  32. package/android/src/main/java/com/customcamera/ImageFormatSupport.kt +163 -0
  33. package/android/src/main/java/com/customcamera/Localization.kt +206 -0
  34. package/android/src/main/java/com/customcamera/MediaAdapters.kt +758 -0
  35. package/android/src/main/java/com/customcamera/MediaCacheManager.kt +782 -0
  36. package/android/src/main/java/com/customcamera/MediaExportFormats.kt +201 -0
  37. package/android/src/main/java/com/customcamera/MediaFileIo.kt +310 -0
  38. package/android/src/main/java/com/customcamera/MediaMetadataStore.kt +494 -0
  39. package/android/src/main/java/com/customcamera/MediaPreviewEditor.kt +14865 -0
  40. package/android/src/main/java/com/customcamera/MediaPublisher.kt +423 -0
  41. package/android/src/main/java/com/customcamera/MediaStorageWorkflow.kt +722 -0
  42. package/android/src/main/java/com/customcamera/MediaStoreRepository.kt +378 -0
  43. package/android/src/main/java/com/customcamera/MediaThumbnailView.kt +286 -0
  44. package/android/src/main/java/com/customcamera/MediaUtils.kt +37 -0
  45. package/android/src/main/java/com/customcamera/NativeVideoViewManager.kt +845 -0
  46. package/android/src/main/java/com/customcamera/OfficeDocumentConverter.kt +2791 -0
  47. package/android/src/main/java/com/customcamera/PendingCaptureCrops.kt +88 -0
  48. package/android/src/main/java/com/customcamera/PowerPointPreview.kt +4077 -0
  49. package/android/src/main/java/com/customcamera/RecentPickerStore.kt +74 -0
  50. package/android/src/main/java/com/customcamera/SecureFileEraser.kt +411 -0
  51. package/android/src/main/java/com/customcamera/SecureKeyModule.kt +88 -0
  52. package/android/src/main/java/com/customcamera/SecureMediaDeleter.kt +493 -0
  53. package/android/src/main/java/com/customcamera/StickerPickerData.kt +107 -0
  54. package/android/src/main/java/com/customcamera/SvgDrawable.kt +175 -0
  55. package/android/src/main/java/com/customcamera/SvgIconViewManager.kt +77 -0
  56. package/android/src/main/java/com/customcamera/TextEntryController.kt +553 -0
  57. package/android/src/main/java/com/customcamera/ThumbnailLoader.kt +455 -0
  58. package/android/src/main/java/com/customcamera/UploadService.kt +909 -0
  59. package/android/src/main/java/com/customcamera/VideoEditUtils.kt +210 -0
  60. package/android/src/main/java/com/customcamera/VideoRotationTranscoder.kt +1992 -0
  61. package/android/src/main/java/com/customcamera/gif/AnimatedGifEncoder.kt +473 -0
  62. package/android/src/main/java/com/customcamera/gif/GifDecoder.kt +690 -0
  63. package/android/src/main/java/com/customcamera/gif/GifFramesDrawable.kt +160 -0
  64. package/android/src/main/java/com/customcamera/gif/GifHttp.kt +112 -0
  65. package/android/src/main/java/com/customcamera/gif/GifImageLoader.kt +186 -0
  66. package/android/src/main/java/com/customcamera/gif/GifModels.kt +74 -0
  67. package/android/src/main/java/com/customcamera/gif/GifProvider.kt +49 -0
  68. package/android/src/main/java/com/customcamera/gif/GifProviders.kt +27 -0
  69. package/android/src/main/java/com/customcamera/gif/GifRepository.kt +124 -0
  70. package/android/src/main/java/com/customcamera/gif/GifSafety.kt +33 -0
  71. package/android/src/main/java/com/customcamera/gif/GiphyGifProvider.kt +146 -0
  72. package/android/src/main/java/com/customcamera/gif/LZWEncoder.kt +258 -0
  73. package/android/src/main/java/com/customcamera/gif/NeuQuant.kt +435 -0
  74. package/android/src/main/java/com/customcamera/gif/TenorGifProvider.kt +147 -0
  75. package/android/src/main/res/drawable/bg_brush_selected.xml +5 -0
  76. package/android/src/main/res/drawable/bg_color_swatch.xml +5 -0
  77. package/android/src/main/res/drawable/bg_editor_toolbar.xml +6 -0
  78. package/android/src/main/res/drawable/bg_icon_circle.xml +5 -0
  79. package/android/src/main/res/drawable/bg_icon_circle_light.xml +5 -0
  80. package/android/src/main/res/drawable/bg_mode_tab_active.xml +6 -0
  81. package/android/src/main/res/drawable/bg_pill.xml +6 -0
  82. package/android/src/main/res/drawable/bg_recording_dot.xml +6 -0
  83. package/android/src/main/res/drawable/bg_selection_badge.xml +8 -0
  84. package/android/src/main/res/drawable/bg_send_button.xml +5 -0
  85. package/android/src/main/res/drawable/bg_shutter_inner.xml +5 -0
  86. package/android/src/main/res/drawable/bg_shutter_recording.xml +6 -0
  87. package/android/src/main/res/drawable/bg_shutter_ring.xml +8 -0
  88. package/android/src/main/res/drawable/bg_shutter_video_idle.xml +5 -0
  89. package/android/src/main/res/drawable/bg_thumbnail.xml +9 -0
  90. package/android/src/main/res/drawable/ic_aspect_ratio.xml +17 -0
  91. package/android/src/main/res/drawable/ic_audio.xml +10 -0
  92. package/android/src/main/res/drawable/ic_back.xml +10 -0
  93. package/android/src/main/res/drawable/ic_brush_medium.xml +12 -0
  94. package/android/src/main/res/drawable/ic_brush_thick.xml +12 -0
  95. package/android/src/main/res/drawable/ic_brush_thin.xml +12 -0
  96. package/android/src/main/res/drawable/ic_check.xml +17 -0
  97. package/android/src/main/res/drawable/ic_chevron_down.xml +10 -0
  98. package/android/src/main/res/drawable/ic_chevron_up.xml +13 -0
  99. package/android/src/main/res/drawable/ic_clear_drawing.xml +10 -0
  100. package/android/src/main/res/drawable/ic_close.xml +10 -0
  101. package/android/src/main/res/drawable/ic_cover.xml +9 -0
  102. package/android/src/main/res/drawable/ic_crop.xml +10 -0
  103. package/android/src/main/res/drawable/ic_delete.xml +9 -0
  104. package/android/src/main/res/drawable/ic_document.xml +10 -0
  105. package/android/src/main/res/drawable/ic_done.xml +10 -0
  106. package/android/src/main/res/drawable/ic_download.xml +10 -0
  107. package/android/src/main/res/drawable/ic_emoji.xml +10 -0
  108. package/android/src/main/res/drawable/ic_filter.xml +10 -0
  109. package/android/src/main/res/drawable/ic_flash_auto.xml +7 -0
  110. package/android/src/main/res/drawable/ic_flash_off.xml +23 -0
  111. package/android/src/main/res/drawable/ic_flash_on.xml +16 -0
  112. package/android/src/main/res/drawable/ic_flip.xml +15 -0
  113. package/android/src/main/res/drawable/ic_gallery.xml +10 -0
  114. package/android/src/main/res/drawable/ic_gif.xml +24 -0
  115. package/android/src/main/res/drawable/ic_lock.xml +19 -0
  116. package/android/src/main/res/drawable/ic_lock_open.xml +22 -0
  117. package/android/src/main/res/drawable/ic_marker.xml +10 -0
  118. package/android/src/main/res/drawable/ic_more_vert.xml +18 -0
  119. package/android/src/main/res/drawable/ic_overlay_close.xml +19 -0
  120. package/android/src/main/res/drawable/ic_overlay_resize.xml +18 -0
  121. package/android/src/main/res/drawable/ic_pause.xml +10 -0
  122. package/android/src/main/res/drawable/ic_photo_mode.xml +10 -0
  123. package/android/src/main/res/drawable/ic_play.xml +10 -0
  124. package/android/src/main/res/drawable/ic_redo.xml +10 -0
  125. package/android/src/main/res/drawable/ic_rotate.xml +9 -0
  126. package/android/src/main/res/drawable/ic_send.xml +10 -0
  127. package/android/src/main/res/drawable/ic_share.xml +10 -0
  128. package/android/src/main/res/drawable/ic_stat_upload.xml +10 -0
  129. package/android/src/main/res/drawable/ic_sticker.xml +24 -0
  130. package/android/src/main/res/drawable/ic_text.xml +10 -0
  131. package/android/src/main/res/drawable/ic_text_align_center.xml +11 -0
  132. package/android/src/main/res/drawable/ic_text_align_left.xml +11 -0
  133. package/android/src/main/res/drawable/ic_text_align_right.xml +11 -0
  134. package/android/src/main/res/drawable/ic_text_bg.xml +11 -0
  135. package/android/src/main/res/drawable/ic_trim.xml +23 -0
  136. package/android/src/main/res/drawable/ic_undo.xml +10 -0
  137. package/android/src/main/res/drawable/ic_video_mode.xml +10 -0
  138. package/android/src/main/res/drawable/ic_video_note.xml +13 -0
  139. package/android/src/main/res/drawable/ic_volume_off.xml +9 -0
  140. package/android/src/main/res/drawable/ic_volume_on.xml +9 -0
  141. package/android/src/main/res/drawable/sticker_heart.xml +9 -0
  142. package/android/src/main/res/drawable/sticker_smile.xml +9 -0
  143. package/android/src/main/res/drawable/sticker_star.xml +9 -0
  144. package/android/src/main/res/drawable/sticker_thumbsup.xml +9 -0
  145. package/android/src/main/res/values/colors.xml +34 -0
  146. package/android/src/main/res/values/ids.xml +15 -0
  147. package/android/src/main/res/values/strings.xml +15 -0
  148. package/android/src/main/res/values/styles.xml +20 -0
  149. package/android/src/main/res/xml/file_paths.xml +34 -0
  150. package/ios/CustomCamera.h +5 -0
  151. package/ios/CustomCamera.mm +214 -0
  152. package/lib/module/AudioPlayerContext.js +233 -0
  153. package/lib/module/AudioPlayerContext.js.map +1 -0
  154. package/lib/module/CameraPreview.js +304 -0
  155. package/lib/module/CameraPreview.js.map +1 -0
  156. package/lib/module/NativeAnimatedImageView.js +41 -0
  157. package/lib/module/NativeAnimatedImageView.js.map +1 -0
  158. package/lib/module/NativeAudioPlayerView.js +33 -0
  159. package/lib/module/NativeAudioPlayerView.js.map +1 -0
  160. package/lib/module/NativeBlurView.js +35 -0
  161. package/lib/module/NativeBlurView.js.map +1 -0
  162. package/lib/module/NativeCustomCamera.js +128 -0
  163. package/lib/module/NativeCustomCamera.js.map +1 -0
  164. package/lib/module/NativeCustomCamera.web.js +143 -0
  165. package/lib/module/NativeCustomCamera.web.js.map +1 -0
  166. package/lib/module/NativeCustomVideoView.js +5 -0
  167. package/lib/module/NativeCustomVideoView.js.map +1 -0
  168. package/lib/module/NativeDocumentPreviewView.js +156 -0
  169. package/lib/module/NativeDocumentPreviewView.js.map +1 -0
  170. package/lib/module/NativeMediaThumbnailView.js +110 -0
  171. package/lib/module/NativeMediaThumbnailView.js.map +1 -0
  172. package/lib/module/NativeSvgIcon.js +32 -0
  173. package/lib/module/NativeSvgIcon.js.map +1 -0
  174. package/lib/module/ResponsivePreviewContainer.js +171 -0
  175. package/lib/module/ResponsivePreviewContainer.js.map +1 -0
  176. package/lib/module/accessibility.js +61 -0
  177. package/lib/module/accessibility.js.map +1 -0
  178. package/lib/module/config.js +352 -0
  179. package/lib/module/config.js.map +1 -0
  180. package/lib/module/cpuOptimization.js +296 -0
  181. package/lib/module/cpuOptimization.js.map +1 -0
  182. package/lib/module/db/DatabaseManager.js +191 -0
  183. package/lib/module/db/DatabaseManager.js.map +1 -0
  184. package/lib/module/db/MediaMapper.js +284 -0
  185. package/lib/module/db/MediaMapper.js.map +1 -0
  186. package/lib/module/db/MediaRepository.js +242 -0
  187. package/lib/module/db/MediaRepository.js.map +1 -0
  188. package/lib/module/db/index.js +41 -0
  189. package/lib/module/db/index.js.map +1 -0
  190. package/lib/module/db/migrations.js +180 -0
  191. package/lib/module/db/migrations.js.map +1 -0
  192. package/lib/module/db/react-native-sqlcipher.d.js +2 -0
  193. package/lib/module/db/react-native-sqlcipher.d.js.map +1 -0
  194. package/lib/module/db/secureKey.js +87 -0
  195. package/lib/module/db/secureKey.js.map +1 -0
  196. package/lib/module/db/types.js +57 -0
  197. package/lib/module/db/types.js.map +1 -0
  198. package/lib/module/db/useMediaDatabase.js +123 -0
  199. package/lib/module/db/useMediaDatabase.js.map +1 -0
  200. package/lib/module/defaultIcons.js +2259 -0
  201. package/lib/module/defaultIcons.js.map +1 -0
  202. package/lib/module/deviceCapabilities.js +408 -0
  203. package/lib/module/deviceCapabilities.js.map +1 -0
  204. package/lib/module/errors.js +267 -0
  205. package/lib/module/errors.js.map +1 -0
  206. package/lib/module/iconConfig.js +796 -0
  207. package/lib/module/iconConfig.js.map +1 -0
  208. package/lib/module/icons.js +514 -0
  209. package/lib/module/icons.js.map +1 -0
  210. package/lib/module/index.js +251 -0
  211. package/lib/module/index.js.map +1 -0
  212. package/lib/module/jest-globals.d.js +2 -0
  213. package/lib/module/jest-globals.d.js.map +1 -0
  214. package/lib/module/library/MediaLibrary.js +107 -0
  215. package/lib/module/library/MediaLibrary.js.map +1 -0
  216. package/lib/module/library/MediaLibraryScreen.js +2597 -0
  217. package/lib/module/library/MediaLibraryScreen.js.map +1 -0
  218. package/lib/module/library/components/AudioPreview.js +74 -0
  219. package/lib/module/library/components/AudioPreview.js.map +1 -0
  220. package/lib/module/library/components/DocumentPreview.js +331 -0
  221. package/lib/module/library/components/DocumentPreview.js.map +1 -0
  222. package/lib/module/library/components/ExpandableFab.js +343 -0
  223. package/lib/module/library/components/ExpandableFab.js.map +1 -0
  224. package/lib/module/library/components/FileTiles.js +251 -0
  225. package/lib/module/library/components/FileTiles.js.map +1 -0
  226. package/lib/module/library/components/ImagePreview.js +70 -0
  227. package/lib/module/library/components/ImagePreview.js.map +1 -0
  228. package/lib/module/library/components/MediaMetadataHeader.js +175 -0
  229. package/lib/module/library/components/MediaMetadataHeader.js.map +1 -0
  230. package/lib/module/library/components/RecordAudioScreen.js +816 -0
  231. package/lib/module/library/components/RecordAudioScreen.js.map +1 -0
  232. package/lib/module/library/components/VideoPreview.js +453 -0
  233. package/lib/module/library/components/VideoPreview.js.map +1 -0
  234. package/lib/module/library/components/ViewerCounter.js +55 -0
  235. package/lib/module/library/components/ViewerCounter.js.map +1 -0
  236. package/lib/module/library/compressionEstimate.js +507 -0
  237. package/lib/module/library/compressionEstimate.js.map +1 -0
  238. package/lib/module/library/fileMetadata.js +196 -0
  239. package/lib/module/library/fileMetadata.js.map +1 -0
  240. package/lib/module/library/index.js +42 -0
  241. package/lib/module/library/index.js.map +1 -0
  242. package/lib/module/library/libraryIconRegistry.js +69 -0
  243. package/lib/module/library/libraryIconRegistry.js.map +1 -0
  244. package/lib/module/library/libraryIcons.js +858 -0
  245. package/lib/module/library/libraryIcons.js.map +1 -0
  246. package/lib/module/library/localizedFormat.js +181 -0
  247. package/lib/module/library/localizedFormat.js.map +1 -0
  248. package/lib/module/library/palette.js +225 -0
  249. package/lib/module/library/palette.js.map +1 -0
  250. package/lib/module/library/responsive.js +53 -0
  251. package/lib/module/library/responsive.js.map +1 -0
  252. package/lib/module/locales.js +416 -0
  253. package/lib/module/locales.js.map +1 -0
  254. package/lib/module/localization.js +1064 -0
  255. package/lib/module/localization.js.map +1 -0
  256. package/lib/module/logger.js +20 -0
  257. package/lib/module/logger.js.map +1 -0
  258. package/lib/module/lowMemoryCache.js +206 -0
  259. package/lib/module/lowMemoryCache.js.map +1 -0
  260. package/lib/module/mediaHistory.js +33 -0
  261. package/lib/module/mediaHistory.js.map +1 -0
  262. package/lib/module/mediaStorageService.js +402 -0
  263. package/lib/module/mediaStorageService.js.map +1 -0
  264. package/lib/module/memory.js +79 -0
  265. package/lib/module/memory.js.map +1 -0
  266. package/lib/module/nativeActions.js +307 -0
  267. package/lib/module/nativeActions.js.map +1 -0
  268. package/lib/module/nativeComponentSupport.js +61 -0
  269. package/lib/module/nativeComponentSupport.js.map +1 -0
  270. package/lib/module/networkPerformance.js +24 -0
  271. package/lib/module/networkPerformance.js.map +1 -0
  272. package/lib/module/package.json +1 -0
  273. package/lib/module/performance.js +104 -0
  274. package/lib/module/performance.js.map +1 -0
  275. package/lib/module/performanceMonitor.js +155 -0
  276. package/lib/module/performanceMonitor.js.map +1 -0
  277. package/lib/module/permissions.js +370 -0
  278. package/lib/module/permissions.js.map +1 -0
  279. package/lib/module/rendering.js +40 -0
  280. package/lib/module/rendering.js.map +1 -0
  281. package/lib/module/security.js +18 -0
  282. package/lib/module/security.js.map +1 -0
  283. package/lib/module/state.js +266 -0
  284. package/lib/module/state.js.map +1 -0
  285. package/lib/module/storage.js +400 -0
  286. package/lib/module/storage.js.map +1 -0
  287. package/lib/module/theme.js +390 -0
  288. package/lib/module/theme.js.map +1 -0
  289. package/lib/module/types.js +4 -0
  290. package/lib/module/types.js.map +1 -0
  291. package/lib/module/utils.js +115 -0
  292. package/lib/module/utils.js.map +1 -0
  293. package/lib/module/validation.js +288 -0
  294. package/lib/module/validation.js.map +1 -0
  295. package/lib/typescript/package.json +1 -0
  296. package/lib/typescript/src/AudioPlayerContext.d.ts +27 -0
  297. package/lib/typescript/src/AudioPlayerContext.d.ts.map +1 -0
  298. package/lib/typescript/src/CameraPreview.d.ts +13 -0
  299. package/lib/typescript/src/CameraPreview.d.ts.map +1 -0
  300. package/lib/typescript/src/NativeAnimatedImageView.d.ts +33 -0
  301. package/lib/typescript/src/NativeAnimatedImageView.d.ts.map +1 -0
  302. package/lib/typescript/src/NativeAudioPlayerView.d.ts +12 -0
  303. package/lib/typescript/src/NativeAudioPlayerView.d.ts.map +1 -0
  304. package/lib/typescript/src/NativeBlurView.d.ts +12 -0
  305. package/lib/typescript/src/NativeBlurView.d.ts.map +1 -0
  306. package/lib/typescript/src/NativeCustomCamera.d.ts +167 -0
  307. package/lib/typescript/src/NativeCustomCamera.d.ts.map +1 -0
  308. package/lib/typescript/src/NativeCustomCamera.web.d.ts +47 -0
  309. package/lib/typescript/src/NativeCustomCamera.web.d.ts.map +1 -0
  310. package/lib/typescript/src/NativeCustomVideoView.d.ts +30 -0
  311. package/lib/typescript/src/NativeCustomVideoView.d.ts.map +1 -0
  312. package/lib/typescript/src/NativeDocumentPreviewView.d.ts +48 -0
  313. package/lib/typescript/src/NativeDocumentPreviewView.d.ts.map +1 -0
  314. package/lib/typescript/src/NativeMediaThumbnailView.d.ts +54 -0
  315. package/lib/typescript/src/NativeMediaThumbnailView.d.ts.map +1 -0
  316. package/lib/typescript/src/NativeSvgIcon.d.ts +25 -0
  317. package/lib/typescript/src/NativeSvgIcon.d.ts.map +1 -0
  318. package/lib/typescript/src/ResponsivePreviewContainer.d.ts +92 -0
  319. package/lib/typescript/src/ResponsivePreviewContainer.d.ts.map +1 -0
  320. package/lib/typescript/src/accessibility.d.ts +20 -0
  321. package/lib/typescript/src/accessibility.d.ts.map +1 -0
  322. package/lib/typescript/src/config.d.ts +145 -0
  323. package/lib/typescript/src/config.d.ts.map +1 -0
  324. package/lib/typescript/src/cpuOptimization.d.ts +63 -0
  325. package/lib/typescript/src/cpuOptimization.d.ts.map +1 -0
  326. package/lib/typescript/src/db/DatabaseManager.d.ts +48 -0
  327. package/lib/typescript/src/db/DatabaseManager.d.ts.map +1 -0
  328. package/lib/typescript/src/db/MediaMapper.d.ts +77 -0
  329. package/lib/typescript/src/db/MediaMapper.d.ts.map +1 -0
  330. package/lib/typescript/src/db/MediaRepository.d.ts +66 -0
  331. package/lib/typescript/src/db/MediaRepository.d.ts.map +1 -0
  332. package/lib/typescript/src/db/index.d.ts +23 -0
  333. package/lib/typescript/src/db/index.d.ts.map +1 -0
  334. package/lib/typescript/src/db/migrations.d.ts +31 -0
  335. package/lib/typescript/src/db/migrations.d.ts.map +1 -0
  336. package/lib/typescript/src/db/secureKey.d.ts +10 -0
  337. package/lib/typescript/src/db/secureKey.d.ts.map +1 -0
  338. package/lib/typescript/src/db/types.d.ts +115 -0
  339. package/lib/typescript/src/db/types.d.ts.map +1 -0
  340. package/lib/typescript/src/db/useMediaDatabase.d.ts +41 -0
  341. package/lib/typescript/src/db/useMediaDatabase.d.ts.map +1 -0
  342. package/lib/typescript/src/defaultIcons.d.ts +139 -0
  343. package/lib/typescript/src/defaultIcons.d.ts.map +1 -0
  344. package/lib/typescript/src/deviceCapabilities.d.ts +92 -0
  345. package/lib/typescript/src/deviceCapabilities.d.ts.map +1 -0
  346. package/lib/typescript/src/errors.d.ts +95 -0
  347. package/lib/typescript/src/errors.d.ts.map +1 -0
  348. package/lib/typescript/src/iconConfig.d.ts +176 -0
  349. package/lib/typescript/src/iconConfig.d.ts.map +1 -0
  350. package/lib/typescript/src/icons.d.ts +217 -0
  351. package/lib/typescript/src/icons.d.ts.map +1 -0
  352. package/lib/typescript/src/index.d.ts +104 -0
  353. package/lib/typescript/src/index.d.ts.map +1 -0
  354. package/lib/typescript/src/library/MediaLibrary.d.ts +57 -0
  355. package/lib/typescript/src/library/MediaLibrary.d.ts.map +1 -0
  356. package/lib/typescript/src/library/MediaLibraryScreen.d.ts +51 -0
  357. package/lib/typescript/src/library/MediaLibraryScreen.d.ts.map +1 -0
  358. package/lib/typescript/src/library/components/AudioPreview.d.ts +6 -0
  359. package/lib/typescript/src/library/components/AudioPreview.d.ts.map +1 -0
  360. package/lib/typescript/src/library/components/DocumentPreview.d.ts +10 -0
  361. package/lib/typescript/src/library/components/DocumentPreview.d.ts.map +1 -0
  362. package/lib/typescript/src/library/components/ExpandableFab.d.ts +39 -0
  363. package/lib/typescript/src/library/components/ExpandableFab.d.ts.map +1 -0
  364. package/lib/typescript/src/library/components/FileTiles.d.ts +8 -0
  365. package/lib/typescript/src/library/components/FileTiles.d.ts.map +1 -0
  366. package/lib/typescript/src/library/components/ImagePreview.d.ts +5 -0
  367. package/lib/typescript/src/library/components/ImagePreview.d.ts.map +1 -0
  368. package/lib/typescript/src/library/components/MediaMetadataHeader.d.ts +16 -0
  369. package/lib/typescript/src/library/components/MediaMetadataHeader.d.ts.map +1 -0
  370. package/lib/typescript/src/library/components/RecordAudioScreen.d.ts +8 -0
  371. package/lib/typescript/src/library/components/RecordAudioScreen.d.ts.map +1 -0
  372. package/lib/typescript/src/library/components/VideoPreview.d.ts +20 -0
  373. package/lib/typescript/src/library/components/VideoPreview.d.ts.map +1 -0
  374. package/lib/typescript/src/library/components/ViewerCounter.d.ts +13 -0
  375. package/lib/typescript/src/library/components/ViewerCounter.d.ts.map +1 -0
  376. package/lib/typescript/src/library/compressionEstimate.d.ts +313 -0
  377. package/lib/typescript/src/library/compressionEstimate.d.ts.map +1 -0
  378. package/lib/typescript/src/library/fileMetadata.d.ts +33 -0
  379. package/lib/typescript/src/library/fileMetadata.d.ts.map +1 -0
  380. package/lib/typescript/src/library/index.d.ts +40 -0
  381. package/lib/typescript/src/library/index.d.ts.map +1 -0
  382. package/lib/typescript/src/library/libraryIconRegistry.d.ts +35 -0
  383. package/lib/typescript/src/library/libraryIconRegistry.d.ts.map +1 -0
  384. package/lib/typescript/src/library/libraryIcons.d.ts +85 -0
  385. package/lib/typescript/src/library/libraryIcons.d.ts.map +1 -0
  386. package/lib/typescript/src/library/localizedFormat.d.ts +49 -0
  387. package/lib/typescript/src/library/localizedFormat.d.ts.map +1 -0
  388. package/lib/typescript/src/library/palette.d.ts +104 -0
  389. package/lib/typescript/src/library/palette.d.ts.map +1 -0
  390. package/lib/typescript/src/library/responsive.d.ts +15 -0
  391. package/lib/typescript/src/library/responsive.d.ts.map +1 -0
  392. package/lib/typescript/src/locales.d.ts +103 -0
  393. package/lib/typescript/src/locales.d.ts.map +1 -0
  394. package/lib/typescript/src/localization.d.ts +1051 -0
  395. package/lib/typescript/src/localization.d.ts.map +1 -0
  396. package/lib/typescript/src/logger.d.ts +4 -0
  397. package/lib/typescript/src/logger.d.ts.map +1 -0
  398. package/lib/typescript/src/lowMemoryCache.d.ts +64 -0
  399. package/lib/typescript/src/lowMemoryCache.d.ts.map +1 -0
  400. package/lib/typescript/src/mediaHistory.d.ts +3 -0
  401. package/lib/typescript/src/mediaHistory.d.ts.map +1 -0
  402. package/lib/typescript/src/mediaStorageService.d.ts +155 -0
  403. package/lib/typescript/src/mediaStorageService.d.ts.map +1 -0
  404. package/lib/typescript/src/memory.d.ts +21 -0
  405. package/lib/typescript/src/memory.d.ts.map +1 -0
  406. package/lib/typescript/src/nativeActions.d.ts +174 -0
  407. package/lib/typescript/src/nativeActions.d.ts.map +1 -0
  408. package/lib/typescript/src/nativeComponentSupport.d.ts +30 -0
  409. package/lib/typescript/src/nativeComponentSupport.d.ts.map +1 -0
  410. package/lib/typescript/src/networkPerformance.d.ts +12 -0
  411. package/lib/typescript/src/networkPerformance.d.ts.map +1 -0
  412. package/lib/typescript/src/performance.d.ts +32 -0
  413. package/lib/typescript/src/performance.d.ts.map +1 -0
  414. package/lib/typescript/src/performanceMonitor.d.ts +45 -0
  415. package/lib/typescript/src/performanceMonitor.d.ts.map +1 -0
  416. package/lib/typescript/src/permissions.d.ts +132 -0
  417. package/lib/typescript/src/permissions.d.ts.map +1 -0
  418. package/lib/typescript/src/rendering.d.ts +9 -0
  419. package/lib/typescript/src/rendering.d.ts.map +1 -0
  420. package/lib/typescript/src/security.d.ts +6 -0
  421. package/lib/typescript/src/security.d.ts.map +1 -0
  422. package/lib/typescript/src/state.d.ts +102 -0
  423. package/lib/typescript/src/state.d.ts.map +1 -0
  424. package/lib/typescript/src/storage.d.ts +117 -0
  425. package/lib/typescript/src/storage.d.ts.map +1 -0
  426. package/lib/typescript/src/theme.d.ts +15 -0
  427. package/lib/typescript/src/theme.d.ts.map +1 -0
  428. package/lib/typescript/src/types.d.ts +802 -0
  429. package/lib/typescript/src/types.d.ts.map +1 -0
  430. package/lib/typescript/src/utils.d.ts +50 -0
  431. package/lib/typescript/src/utils.d.ts.map +1 -0
  432. package/lib/typescript/src/validation.d.ts +52 -0
  433. package/lib/typescript/src/validation.d.ts.map +1 -0
  434. package/package.json +204 -0
  435. package/react-native.config.js +17 -0
  436. package/src/AudioPlayerContext.tsx +220 -0
  437. package/src/CameraPreview.tsx +352 -0
  438. package/src/NativeAnimatedImageView.tsx +71 -0
  439. package/src/NativeAudioPlayerView.tsx +39 -0
  440. package/src/NativeBlurView.tsx +40 -0
  441. package/src/NativeCustomCamera.ts +305 -0
  442. package/src/NativeCustomCamera.web.ts +192 -0
  443. package/src/NativeCustomVideoView.ts +30 -0
  444. package/src/NativeDocumentPreviewView.tsx +196 -0
  445. package/src/NativeMediaThumbnailView.tsx +167 -0
  446. package/src/NativeSvgIcon.tsx +46 -0
  447. package/src/ResponsivePreviewContainer.tsx +227 -0
  448. package/src/accessibility.ts +80 -0
  449. package/src/config.ts +406 -0
  450. package/src/cpuOptimization.ts +365 -0
  451. package/src/db/DatabaseManager.ts +212 -0
  452. package/src/db/MediaMapper.ts +377 -0
  453. package/src/db/MediaRepository.ts +313 -0
  454. package/src/db/index.ts +73 -0
  455. package/src/db/migrations.ts +222 -0
  456. package/src/db/react-native-sqlcipher.d.ts +76 -0
  457. package/src/db/secureKey.ts +100 -0
  458. package/src/db/types.ts +123 -0
  459. package/src/db/useMediaDatabase.ts +191 -0
  460. package/src/defaultIcons.tsx +2390 -0
  461. package/src/deviceCapabilities.ts +438 -0
  462. package/src/errors.ts +350 -0
  463. package/src/iconConfig.tsx +962 -0
  464. package/src/icons.tsx +788 -0
  465. package/src/index.tsx +763 -0
  466. package/src/jest-globals.d.ts +9 -0
  467. package/src/library/MediaLibrary.tsx +141 -0
  468. package/src/library/MediaLibraryScreen.tsx +3003 -0
  469. package/src/library/components/AudioPreview.tsx +73 -0
  470. package/src/library/components/DocumentPreview.tsx +361 -0
  471. package/src/library/components/ExpandableFab.tsx +342 -0
  472. package/src/library/components/FileTiles.tsx +252 -0
  473. package/src/library/components/ImagePreview.tsx +72 -0
  474. package/src/library/components/MediaMetadataHeader.tsx +208 -0
  475. package/src/library/components/RecordAudioScreen.tsx +845 -0
  476. package/src/library/components/VideoPreview.tsx +478 -0
  477. package/src/library/components/ViewerCounter.tsx +71 -0
  478. package/src/library/compressionEstimate.ts +662 -0
  479. package/src/library/fileMetadata.ts +212 -0
  480. package/src/library/index.ts +66 -0
  481. package/src/library/libraryIconRegistry.tsx +86 -0
  482. package/src/library/libraryIcons.tsx +928 -0
  483. package/src/library/localizedFormat.ts +207 -0
  484. package/src/library/palette.ts +281 -0
  485. package/src/library/responsive.ts +49 -0
  486. package/src/locales.ts +381 -0
  487. package/src/localization.ts +1947 -0
  488. package/src/logger.ts +20 -0
  489. package/src/lowMemoryCache.ts +218 -0
  490. package/src/mediaHistory.ts +42 -0
  491. package/src/mediaStorageService.ts +546 -0
  492. package/src/memory.ts +102 -0
  493. package/src/nativeActions.ts +422 -0
  494. package/src/nativeComponentSupport.ts +60 -0
  495. package/src/networkPerformance.ts +30 -0
  496. package/src/performance.ts +137 -0
  497. package/src/performanceMonitor.ts +219 -0
  498. package/src/permissions.ts +403 -0
  499. package/src/rendering.ts +47 -0
  500. package/src/security.ts +19 -0
  501. package/src/state.ts +333 -0
  502. package/src/storage.ts +453 -0
  503. package/src/theme.tsx +467 -0
  504. package/src/types.ts +946 -0
  505. package/src/utils.ts +177 -0
  506. package/src/validation.ts +372 -0
@@ -0,0 +1,2390 @@
1
+ /**
2
+ * Default icon implementations built entirely from React Native primitives.
3
+ *
4
+ * NO external dependencies required:
5
+ * - No react-native-vector-icons
6
+ * - No @expo/vector-icons
7
+ * - No react-native-svg
8
+ * - No custom assets or image files
9
+ *
10
+ * All icons are drawn using View and simple geometric shapes.
11
+ * This ensures the plugin works anywhere React Native works, with zero
12
+ * additional setup or configuration.
13
+ */
14
+
15
+ import React from 'react';
16
+ import { View, Text, Animated } from 'react-native';
17
+ import {
18
+ DEFAULT_ICON_COLOR,
19
+ DEFAULT_ICON_SIZE,
20
+ DEFAULT_ICON_STROKE_WIDTH,
21
+ } from './icons';
22
+ import type { IconComponent, IconProps } from './icons';
23
+
24
+ // Centralized icon defaults — see src/icons.tsx. Components never hardcode
25
+ // sizes/colors/stroke widths; they all flow from the single icon configuration.
26
+ const DEFAULT_SIZE = DEFAULT_ICON_SIZE;
27
+ const DEFAULT_COLOR = DEFAULT_ICON_COLOR;
28
+ const DEFAULT_STROKE = DEFAULT_ICON_STROKE_WIDTH;
29
+
30
+ // ============================================================================
31
+ // Utility: Create icon wrappers
32
+ // ============================================================================
33
+
34
+ /**
35
+ * Base wrapper for all icons.
36
+ * Ensures consistent sizing and layout.
37
+ */
38
+ const IconWrapper = ({
39
+ size = DEFAULT_SIZE,
40
+ style,
41
+ children,
42
+ }: {
43
+ size: number;
44
+ style?: IconProps['style'];
45
+ children: React.ReactNode;
46
+ }) => (
47
+ <View
48
+ style={[
49
+ {
50
+ width: size,
51
+ height: size,
52
+ alignItems: 'center',
53
+ justifyContent: 'center',
54
+ position: 'relative',
55
+ },
56
+ style,
57
+ ]}
58
+ >
59
+ {children}
60
+ </View>
61
+ );
62
+
63
+ // ============================================================================
64
+ // Common/Control Icons
65
+ // ============================================================================
66
+
67
+ /** X icon / close button */
68
+ export const CloseIcon: IconComponent = ({
69
+ size = DEFAULT_SIZE,
70
+ color = DEFAULT_COLOR,
71
+ strokeWidth = DEFAULT_STROKE,
72
+ style,
73
+ }) => {
74
+ const lineLength = size * 0.55;
75
+ return (
76
+ <IconWrapper size={size} style={style}>
77
+ {/* \ diagonal */}
78
+ <View
79
+ style={{
80
+ position: 'absolute',
81
+ width: lineLength,
82
+ height: strokeWidth,
83
+ backgroundColor: color,
84
+ transform: [{ rotate: '45deg' }],
85
+ }}
86
+ />
87
+ {/* / diagonal */}
88
+ <View
89
+ style={{
90
+ position: 'absolute',
91
+ width: lineLength,
92
+ height: strokeWidth,
93
+ backgroundColor: color,
94
+ transform: [{ rotate: '-45deg' }],
95
+ }}
96
+ />
97
+ </IconWrapper>
98
+ );
99
+ };
100
+
101
+ /** Left arrow / back button */
102
+ export const BackIcon: IconComponent = ({
103
+ size = DEFAULT_SIZE,
104
+ color = DEFAULT_COLOR,
105
+ strokeWidth = DEFAULT_STROKE,
106
+ style,
107
+ }) => {
108
+ const arrowSize = size * 0.6;
109
+ return (
110
+ <IconWrapper size={size} style={style}>
111
+ {/* Horizontal line */}
112
+ <View
113
+ style={{
114
+ position: 'absolute',
115
+ width: arrowSize,
116
+ height: strokeWidth,
117
+ backgroundColor: color,
118
+ }}
119
+ />
120
+ {/* Top arrow point */}
121
+ <View
122
+ style={{
123
+ position: 'absolute',
124
+ left: size * 0.2,
125
+ top: size * 0.35,
126
+ width: size * 0.3,
127
+ height: strokeWidth,
128
+ backgroundColor: color,
129
+ transform: [{ rotate: '45deg' }],
130
+ }}
131
+ />
132
+ {/* Bottom arrow point */}
133
+ <View
134
+ style={{
135
+ position: 'absolute',
136
+ left: size * 0.2,
137
+ bottom: size * 0.35,
138
+ width: size * 0.3,
139
+ height: strokeWidth,
140
+ backgroundColor: color,
141
+ transform: [{ rotate: '-45deg' }],
142
+ }}
143
+ />
144
+ </IconWrapper>
145
+ );
146
+ };
147
+
148
+ /** Checkmark / done button */
149
+ export const DoneIcon: IconComponent = ({
150
+ size = DEFAULT_SIZE,
151
+ color = DEFAULT_COLOR,
152
+ strokeWidth = DEFAULT_STROKE,
153
+ style,
154
+ }) => {
155
+ return (
156
+ <IconWrapper size={size} style={style}>
157
+ {/* Vertical part of checkmark */}
158
+ <View
159
+ style={{
160
+ position: 'absolute',
161
+ left: size * 0.35,
162
+ width: strokeWidth,
163
+ height: size * 0.4,
164
+ backgroundColor: color,
165
+ transform: [{ rotate: '-45deg' }],
166
+ }}
167
+ />
168
+ {/* Horizontal part of checkmark */}
169
+ <View
170
+ style={{
171
+ position: 'absolute',
172
+ left: size * 0.4,
173
+ width: size * 0.5,
174
+ height: strokeWidth,
175
+ backgroundColor: color,
176
+ transform: [{ rotate: '45deg' }],
177
+ }}
178
+ />
179
+ </IconWrapper>
180
+ );
181
+ };
182
+
183
+ /** Cancel / stop button */
184
+ export const CancelIcon: IconComponent = ({
185
+ size = DEFAULT_SIZE,
186
+ color = DEFAULT_COLOR,
187
+ strokeWidth = DEFAULT_STROKE,
188
+ style,
189
+ }) => {
190
+ const circleSize = size * 0.8;
191
+ return (
192
+ <IconWrapper size={size} style={style}>
193
+ <View
194
+ style={{
195
+ width: circleSize,
196
+ height: circleSize,
197
+ borderRadius: circleSize / 2,
198
+ borderWidth: strokeWidth,
199
+ borderColor: color,
200
+ alignItems: 'center',
201
+ justifyContent: 'center',
202
+ }}
203
+ >
204
+ {/* Inner X */}
205
+ <View
206
+ style={{
207
+ position: 'absolute',
208
+ width: circleSize * 0.5,
209
+ height: strokeWidth,
210
+ backgroundColor: color,
211
+ transform: [{ rotate: '45deg' }],
212
+ }}
213
+ />
214
+ <View
215
+ style={{
216
+ position: 'absolute',
217
+ width: circleSize * 0.5,
218
+ height: strokeWidth,
219
+ backgroundColor: color,
220
+ transform: [{ rotate: '-45deg' }],
221
+ }}
222
+ />
223
+ </View>
224
+ </IconWrapper>
225
+ );
226
+ };
227
+
228
+ // ============================================================================
229
+ // Camera Controls
230
+ // ============================================================================
231
+
232
+ /** Camera icon */
233
+ export const CameraIcon: IconComponent = ({
234
+ size = DEFAULT_SIZE,
235
+ color = DEFAULT_COLOR,
236
+ strokeWidth = DEFAULT_STROKE,
237
+ style,
238
+ }) => {
239
+ const bodyW = size * 0.8;
240
+ const bodyH = size * 0.6;
241
+ const lensSize = size * 0.3;
242
+
243
+ return (
244
+ <IconWrapper size={size} style={style}>
245
+ <View
246
+ style={{
247
+ width: bodyW,
248
+ height: bodyH,
249
+ borderWidth: strokeWidth,
250
+ borderColor: color,
251
+ borderRadius: size * 0.12,
252
+ alignItems: 'center',
253
+ justifyContent: 'center',
254
+ }}
255
+ >
256
+ <View
257
+ style={{
258
+ width: lensSize,
259
+ height: lensSize,
260
+ borderRadius: lensSize / 2,
261
+ borderWidth: strokeWidth,
262
+ borderColor: color,
263
+ }}
264
+ />
265
+ </View>
266
+ </IconWrapper>
267
+ );
268
+ };
269
+
270
+ /** Video/camcorder icon */
271
+ export const VideoIcon: IconComponent = ({
272
+ size = DEFAULT_SIZE,
273
+ color = DEFAULT_COLOR,
274
+ strokeWidth = DEFAULT_STROKE,
275
+ style,
276
+ }) => {
277
+ const mainW = size * 0.7;
278
+ const mainH = size * 0.55;
279
+
280
+ return (
281
+ <IconWrapper size={size} style={style}>
282
+ <View
283
+ style={{
284
+ width: mainW,
285
+ height: mainH,
286
+ borderWidth: strokeWidth,
287
+ borderColor: color,
288
+ borderRadius: size * 0.08,
289
+ marginRight: size * 0.15,
290
+ }}
291
+ />
292
+ {/* Play triangle indicating video */}
293
+ <View
294
+ style={{
295
+ position: 'absolute',
296
+ right: 0,
297
+ width: 0,
298
+ height: 0,
299
+ borderLeftWidth: size * 0.12,
300
+ borderTopWidth: size * 0.08,
301
+ borderBottomWidth: size * 0.08,
302
+ borderLeftColor: color,
303
+ borderTopColor: 'transparent',
304
+ borderBottomColor: 'transparent',
305
+ }}
306
+ />
307
+ </IconWrapper>
308
+ );
309
+ };
310
+
311
+ /** Photo/picture icon */
312
+ export const PhotoIcon: IconComponent = ({
313
+ size = DEFAULT_SIZE,
314
+ color = DEFAULT_COLOR,
315
+ strokeWidth = DEFAULT_STROKE,
316
+ style,
317
+ }) => {
318
+ return (
319
+ <IconWrapper size={size} style={style}>
320
+ {/* Frame */}
321
+ <View
322
+ style={{
323
+ width: size * 0.85,
324
+ height: size * 0.75,
325
+ borderWidth: strokeWidth,
326
+ borderColor: color,
327
+ borderRadius: size * 0.08,
328
+ }}
329
+ />
330
+ {/* Circle (sun/object) */}
331
+ <View
332
+ style={{
333
+ position: 'absolute',
334
+ top: size * 0.2,
335
+ right: size * 0.15,
336
+ width: size * 0.25,
337
+ height: size * 0.25,
338
+ borderRadius: (size * 0.25) / 2,
339
+ borderWidth: strokeWidth,
340
+ borderColor: color,
341
+ }}
342
+ />
343
+ </IconWrapper>
344
+ );
345
+ };
346
+
347
+ /** Flip/mirror camera icon */
348
+ export const FlipIcon: IconComponent = ({
349
+ size = DEFAULT_SIZE,
350
+ color = DEFAULT_COLOR,
351
+ strokeWidth = DEFAULT_STROKE,
352
+ style,
353
+ }) => {
354
+ return (
355
+ <IconWrapper size={size} style={style}>
356
+ {/* Left arrow */}
357
+ <View
358
+ style={{
359
+ position: 'absolute',
360
+ left: size * 0.1,
361
+ width: size * 0.25,
362
+ height: strokeWidth,
363
+ backgroundColor: color,
364
+ }}
365
+ />
366
+ <View
367
+ style={{
368
+ position: 'absolute',
369
+ left: size * 0.15,
370
+ top: size * 0.35,
371
+ width: size * 0.15,
372
+ height: strokeWidth,
373
+ backgroundColor: color,
374
+ transform: [{ rotate: '45deg' }],
375
+ }}
376
+ />
377
+ <View
378
+ style={{
379
+ position: 'absolute',
380
+ left: size * 0.15,
381
+ bottom: size * 0.35,
382
+ width: size * 0.15,
383
+ height: strokeWidth,
384
+ backgroundColor: color,
385
+ transform: [{ rotate: '-45deg' }],
386
+ }}
387
+ />
388
+ {/* Right arrow */}
389
+ <View
390
+ style={{
391
+ position: 'absolute',
392
+ right: size * 0.1,
393
+ width: size * 0.25,
394
+ height: strokeWidth,
395
+ backgroundColor: color,
396
+ }}
397
+ />
398
+ <View
399
+ style={{
400
+ position: 'absolute',
401
+ right: size * 0.15,
402
+ top: size * 0.35,
403
+ width: size * 0.15,
404
+ height: strokeWidth,
405
+ backgroundColor: color,
406
+ transform: [{ rotate: '-45deg' }],
407
+ }}
408
+ />
409
+ <View
410
+ style={{
411
+ position: 'absolute',
412
+ right: size * 0.15,
413
+ bottom: size * 0.35,
414
+ width: size * 0.15,
415
+ height: strokeWidth,
416
+ backgroundColor: color,
417
+ transform: [{ rotate: '45deg' }],
418
+ }}
419
+ />
420
+ </IconWrapper>
421
+ );
422
+ };
423
+
424
+ /** Flash on icon */
425
+ export const FlashOnIcon: IconComponent = ({
426
+ size = DEFAULT_SIZE,
427
+ color = DEFAULT_COLOR,
428
+ style,
429
+ }) => {
430
+ return (
431
+ <IconWrapper size={size} style={style}>
432
+ {/* Lightning bolt */}
433
+ <View
434
+ style={{
435
+ position: 'absolute',
436
+ left: size * 0.4,
437
+ width: size * 0.2,
438
+ height: size * 0.35,
439
+ backgroundColor: color,
440
+ }}
441
+ />
442
+ <View
443
+ style={{
444
+ position: 'absolute',
445
+ top: size * 0.45,
446
+ width: size * 0.35,
447
+ height: size * 0.15,
448
+ backgroundColor: color,
449
+ }}
450
+ />
451
+ </IconWrapper>
452
+ );
453
+ };
454
+
455
+ /** Flash off icon */
456
+ export const FlashOffIcon: IconComponent = ({
457
+ size = DEFAULT_SIZE,
458
+ color = DEFAULT_COLOR,
459
+ strokeWidth = DEFAULT_STROKE,
460
+ style,
461
+ }) => {
462
+ return (
463
+ <IconWrapper size={size} style={style}>
464
+ {/* Disabled flash + diagonal line */}
465
+ <View
466
+ style={{
467
+ position: 'absolute',
468
+ left: size * 0.4,
469
+ width: size * 0.2,
470
+ height: size * 0.35,
471
+ backgroundColor: color,
472
+ opacity: 0.4,
473
+ }}
474
+ />
475
+ <View
476
+ style={{
477
+ position: 'absolute',
478
+ width: size * 0.9,
479
+ height: strokeWidth * 1.5,
480
+ backgroundColor: color,
481
+ transform: [{ rotate: '-45deg' }],
482
+ }}
483
+ />
484
+ </IconWrapper>
485
+ );
486
+ };
487
+
488
+ /** Flash auto icon */
489
+ export const FlashAutoIcon: IconComponent = ({
490
+ size = DEFAULT_SIZE,
491
+ color = DEFAULT_COLOR,
492
+ strokeWidth = DEFAULT_STROKE,
493
+ style,
494
+ }) => {
495
+ return (
496
+ <IconWrapper size={size} style={style}>
497
+ <View
498
+ style={{
499
+ position: 'absolute',
500
+ left: size * 0.4,
501
+ width: size * 0.2,
502
+ height: size * 0.35,
503
+ backgroundColor: color,
504
+ }}
505
+ />
506
+ <View
507
+ style={{
508
+ position: 'absolute',
509
+ top: size * 0.45,
510
+ width: size * 0.35,
511
+ height: size * 0.15,
512
+ backgroundColor: color,
513
+ }}
514
+ />
515
+ {/* 'A' indicator - using a simple marker for auto mode */}
516
+ <View
517
+ style={{
518
+ position: 'absolute',
519
+ bottom: size * 0.1,
520
+ right: size * 0.1,
521
+ width: size * 0.12,
522
+ height: size * 0.12,
523
+ borderRadius: (size * 0.12) / 2,
524
+ borderWidth: strokeWidth,
525
+ borderColor: color,
526
+ }}
527
+ />
528
+ </IconWrapper>
529
+ );
530
+ };
531
+
532
+ /** Gallery icon */
533
+ export const GalleryIcon: IconComponent = ({
534
+ size = DEFAULT_SIZE,
535
+ color = DEFAULT_COLOR,
536
+ strokeWidth = DEFAULT_STROKE,
537
+ style,
538
+ }) => {
539
+ const frameSize = size * 0.75;
540
+
541
+ return (
542
+ <IconWrapper size={size} style={style}>
543
+ {/* Top-left frame */}
544
+ <View
545
+ style={{
546
+ position: 'absolute',
547
+ top: 0,
548
+ left: 0,
549
+ width: frameSize,
550
+ height: frameSize,
551
+ borderWidth: strokeWidth,
552
+ borderColor: color,
553
+ borderRadius: size * 0.06,
554
+ }}
555
+ />
556
+ {/* Bottom-right frame (offset) */}
557
+ <View
558
+ style={{
559
+ position: 'absolute',
560
+ bottom: 0,
561
+ right: 0,
562
+ width: frameSize,
563
+ height: frameSize,
564
+ borderWidth: strokeWidth,
565
+ borderColor: color,
566
+ borderRadius: size * 0.06,
567
+ }}
568
+ />
569
+ </IconWrapper>
570
+ );
571
+ };
572
+
573
+ // ============================================================================
574
+ // Editor Tools
575
+ // ============================================================================
576
+
577
+ /** Crop icon */
578
+ export const CropIcon: IconComponent = ({
579
+ size = DEFAULT_SIZE,
580
+ color = DEFAULT_COLOR,
581
+ strokeWidth = DEFAULT_STROKE,
582
+ style,
583
+ }) => {
584
+ const boxSize = size * 0.6;
585
+ return (
586
+ <IconWrapper size={size} style={style}>
587
+ <View
588
+ style={{
589
+ width: boxSize,
590
+ height: boxSize,
591
+ borderWidth: strokeWidth,
592
+ borderColor: color,
593
+ borderStyle: 'dashed',
594
+ }}
595
+ />
596
+ </IconWrapper>
597
+ );
598
+ };
599
+
600
+ /** Rotate icon */
601
+ export const RotateIcon: IconComponent = ({
602
+ size = DEFAULT_SIZE,
603
+ color = DEFAULT_COLOR,
604
+ strokeWidth = DEFAULT_STROKE,
605
+ style,
606
+ }) => {
607
+ return (
608
+ <IconWrapper size={size} style={style}>
609
+ {/* Circular arrow */}
610
+ <View
611
+ style={{
612
+ width: size * 0.7,
613
+ height: size * 0.7,
614
+ borderRadius: (size * 0.7) / 2,
615
+ borderWidth: strokeWidth,
616
+ borderColor: color,
617
+ borderTopColor: 'transparent',
618
+ }}
619
+ />
620
+ {/* Arrow head */}
621
+ <View
622
+ style={{
623
+ position: 'absolute',
624
+ top: size * 0.1,
625
+ right: size * 0.1,
626
+ width: size * 0.15,
627
+ height: strokeWidth,
628
+ backgroundColor: color,
629
+ transform: [{ rotate: '45deg' }],
630
+ }}
631
+ />
632
+ </IconWrapper>
633
+ );
634
+ };
635
+
636
+ /** Filter icon */
637
+ export const FilterIcon: IconComponent = ({
638
+ size = DEFAULT_SIZE,
639
+ color = DEFAULT_COLOR,
640
+ strokeWidth = DEFAULT_STROKE,
641
+ style,
642
+ }) => {
643
+ return (
644
+ <IconWrapper size={size} style={style}>
645
+ {/* Funnel shape */}
646
+ <View
647
+ style={{
648
+ position: 'absolute',
649
+ top: 0,
650
+ width: size * 0.8,
651
+ height: strokeWidth,
652
+ backgroundColor: color,
653
+ }}
654
+ />
655
+ <View
656
+ style={{
657
+ position: 'absolute',
658
+ top: strokeWidth * 2,
659
+ width: size * 0.6,
660
+ height: size * 0.3,
661
+ borderLeftWidth: size * 0.1,
662
+ borderRightWidth: size * 0.1,
663
+ borderLeftColor: 'transparent',
664
+ borderRightColor: 'transparent',
665
+ borderTopWidth: size * 0.3,
666
+ borderTopColor: color,
667
+ }}
668
+ />
669
+ <View
670
+ style={{
671
+ position: 'absolute',
672
+ bottom: 0,
673
+ width: size * 0.15,
674
+ height: size * 0.3,
675
+ backgroundColor: color,
676
+ }}
677
+ />
678
+ </IconWrapper>
679
+ );
680
+ };
681
+
682
+ /** Sticker icon */
683
+ export const StickerIcon: IconComponent = ({
684
+ size = DEFAULT_SIZE,
685
+ color = DEFAULT_COLOR,
686
+ strokeWidth = DEFAULT_STROKE,
687
+ style,
688
+ }) => {
689
+ const stickerSize = size * 0.65;
690
+ return (
691
+ <IconWrapper size={size} style={style}>
692
+ <View
693
+ style={{
694
+ width: stickerSize,
695
+ height: stickerSize,
696
+ borderWidth: strokeWidth,
697
+ borderColor: color,
698
+ borderRadius: stickerSize * 0.25,
699
+ transform: [{ rotate: '15deg' }],
700
+ }}
701
+ />
702
+ </IconWrapper>
703
+ );
704
+ };
705
+
706
+ /** Emoji icon */
707
+ export const EmojiIcon: IconComponent = ({
708
+ size = DEFAULT_SIZE,
709
+ color = DEFAULT_COLOR,
710
+ strokeWidth = DEFAULT_STROKE,
711
+ style,
712
+ }) => {
713
+ const faceSize = size * 0.75;
714
+ return (
715
+ <IconWrapper size={size} style={style}>
716
+ {/* Face circle */}
717
+ <View
718
+ style={{
719
+ width: faceSize,
720
+ height: faceSize,
721
+ borderRadius: faceSize / 2,
722
+ borderWidth: strokeWidth,
723
+ borderColor: color,
724
+ alignItems: 'center',
725
+ justifyContent: 'center',
726
+ }}
727
+ >
728
+ {/* Left eye */}
729
+ <View
730
+ style={{
731
+ position: 'absolute',
732
+ top: faceSize * 0.35,
733
+ left: faceSize * 0.25,
734
+ width: size * 0.08,
735
+ height: size * 0.08,
736
+ borderRadius: (size * 0.08) / 2,
737
+ backgroundColor: color,
738
+ }}
739
+ />
740
+ {/* Right eye */}
741
+ <View
742
+ style={{
743
+ position: 'absolute',
744
+ top: faceSize * 0.35,
745
+ right: faceSize * 0.25,
746
+ width: size * 0.08,
747
+ height: size * 0.08,
748
+ borderRadius: (size * 0.08) / 2,
749
+ backgroundColor: color,
750
+ }}
751
+ />
752
+ {/* Smile */}
753
+ <View
754
+ style={{
755
+ position: 'absolute',
756
+ bottom: faceSize * 0.2,
757
+ width: faceSize * 0.3,
758
+ height: faceSize * 0.15,
759
+ borderBottomWidth: strokeWidth,
760
+ borderBottomColor: color,
761
+ borderRadius: faceSize * 0.15,
762
+ }}
763
+ />
764
+ </View>
765
+ </IconWrapper>
766
+ );
767
+ };
768
+
769
+ /** Text icon */
770
+ export const TextIcon: IconComponent = ({
771
+ size = DEFAULT_SIZE,
772
+ color = DEFAULT_COLOR,
773
+ strokeWidth = DEFAULT_STROKE,
774
+ style,
775
+ }) => {
776
+ return (
777
+ <IconWrapper size={size} style={style}>
778
+ {/* T shape */}
779
+ <View
780
+ style={{
781
+ position: 'absolute',
782
+ top: 0,
783
+ width: size * 0.6,
784
+ height: strokeWidth,
785
+ backgroundColor: color,
786
+ }}
787
+ />
788
+ <View
789
+ style={{
790
+ position: 'absolute',
791
+ left: size * 0.45,
792
+ width: strokeWidth,
793
+ height: size * 0.7,
794
+ backgroundColor: color,
795
+ }}
796
+ />
797
+ </IconWrapper>
798
+ );
799
+ };
800
+
801
+ /** Draw/pencil icon */
802
+ export const DrawIcon: IconComponent = ({
803
+ size = DEFAULT_SIZE,
804
+ color = DEFAULT_COLOR,
805
+ strokeWidth = DEFAULT_STROKE,
806
+ style,
807
+ }) => {
808
+ return (
809
+ <IconWrapper size={size} style={style}>
810
+ {/* Pencil shape */}
811
+ <View
812
+ style={{
813
+ width: size * 0.7,
814
+ height: strokeWidth * 1.5,
815
+ backgroundColor: color,
816
+ transform: [{ rotate: '-45deg' }],
817
+ }}
818
+ />
819
+ {/* Eraser part */}
820
+ <View
821
+ style={{
822
+ position: 'absolute',
823
+ bottom: 0,
824
+ right: 0,
825
+ width: size * 0.2,
826
+ height: size * 0.2,
827
+ borderWidth: strokeWidth,
828
+ borderColor: color,
829
+ transform: [{ rotate: '-45deg' }],
830
+ }}
831
+ />
832
+ </IconWrapper>
833
+ );
834
+ };
835
+
836
+ /** Undo icon */
837
+ export const UndoIcon: IconComponent = ({
838
+ size = DEFAULT_SIZE,
839
+ color = DEFAULT_COLOR,
840
+ strokeWidth = DEFAULT_STROKE,
841
+ style,
842
+ }) => {
843
+ return (
844
+ <IconWrapper size={size} style={style}>
845
+ {/* Curved arrow */}
846
+ <View
847
+ style={{
848
+ width: size * 0.5,
849
+ height: size * 0.5,
850
+ borderWidth: strokeWidth,
851
+ borderColor: color,
852
+ borderRadius: size * 0.25,
853
+ borderRightColor: 'transparent',
854
+ borderBottomColor: 'transparent',
855
+ }}
856
+ />
857
+ {/* Arrow head */}
858
+ <View
859
+ style={{
860
+ position: 'absolute',
861
+ left: size * 0.15,
862
+ top: size * 0.15,
863
+ width: size * 0.15,
864
+ height: strokeWidth,
865
+ backgroundColor: color,
866
+ transform: [{ rotate: '-45deg' }],
867
+ }}
868
+ />
869
+ </IconWrapper>
870
+ );
871
+ };
872
+
873
+ /** Redo icon */
874
+ export const RedoIcon: IconComponent = ({
875
+ size = DEFAULT_SIZE,
876
+ color = DEFAULT_COLOR,
877
+ strokeWidth = DEFAULT_STROKE,
878
+ style,
879
+ }) => {
880
+ return (
881
+ <IconWrapper size={size} style={style}>
882
+ {/* Curved arrow (mirrored) */}
883
+ <View
884
+ style={{
885
+ width: size * 0.5,
886
+ height: size * 0.5,
887
+ borderWidth: strokeWidth,
888
+ borderColor: color,
889
+ borderRadius: size * 0.25,
890
+ borderLeftColor: 'transparent',
891
+ borderBottomColor: 'transparent',
892
+ transform: [{ scaleX: -1 }],
893
+ }}
894
+ />
895
+ {/* Arrow head */}
896
+ <View
897
+ style={{
898
+ position: 'absolute',
899
+ right: size * 0.15,
900
+ top: size * 0.15,
901
+ width: size * 0.15,
902
+ height: strokeWidth,
903
+ backgroundColor: color,
904
+ transform: [{ rotate: '45deg' }],
905
+ }}
906
+ />
907
+ </IconWrapper>
908
+ );
909
+ };
910
+
911
+ /** Delete/trash icon */
912
+ export const DeleteIcon: IconComponent = ({
913
+ size = DEFAULT_SIZE,
914
+ color = DEFAULT_COLOR,
915
+ strokeWidth = DEFAULT_STROKE,
916
+ style,
917
+ }) => {
918
+ const bodyWidth = size * 0.5;
919
+ const bodyHeight = size * 0.55;
920
+ const lidWidth = size * 0.6;
921
+ const handleWidth = size * 0.25;
922
+
923
+ return (
924
+ <IconWrapper size={size} style={style}>
925
+ {/* Trash can handle */}
926
+ <View
927
+ style={{
928
+ position: 'absolute',
929
+ top: size * 0.1,
930
+ width: handleWidth,
931
+ height: size * 0.15,
932
+ borderWidth: strokeWidth,
933
+ borderColor: color,
934
+ borderBottomWidth: 0,
935
+ borderTopLeftRadius: size * 0.05,
936
+ borderTopRightRadius: size * 0.05,
937
+ }}
938
+ />
939
+ {/* Trash can lid */}
940
+ <View
941
+ style={{
942
+ position: 'absolute',
943
+ top: size * 0.25,
944
+ width: lidWidth,
945
+ height: strokeWidth,
946
+ backgroundColor: color,
947
+ }}
948
+ />
949
+ {/* Trash can body */}
950
+ <View
951
+ style={{
952
+ position: 'absolute',
953
+ top: size * 0.25 + strokeWidth,
954
+ width: bodyWidth,
955
+ height: bodyHeight,
956
+ borderWidth: strokeWidth,
957
+ borderColor: color,
958
+ borderTopWidth: 0,
959
+ borderBottomLeftRadius: size * 0.1,
960
+ borderBottomRightRadius: size * 0.1,
961
+ }}
962
+ />
963
+ {/* Vertical lines inside the body */}
964
+ <View
965
+ style={{
966
+ position: 'absolute',
967
+ top: size * 0.4,
968
+ width: strokeWidth,
969
+ height: size * 0.3,
970
+ backgroundColor: color,
971
+ left: size * 0.35,
972
+ }}
973
+ />
974
+ <View
975
+ style={{
976
+ position: 'absolute',
977
+ top: size * 0.4,
978
+ width: strokeWidth,
979
+ height: size * 0.3,
980
+ backgroundColor: color,
981
+ right: size * 0.35,
982
+ }}
983
+ />
984
+ </IconWrapper>
985
+ );
986
+ };
987
+
988
+ // ============================================================================
989
+ // Playback & Media
990
+ // ============================================================================
991
+
992
+ /** Play button */
993
+ export const PlayIcon: IconComponent = ({
994
+ size = DEFAULT_SIZE,
995
+ color = DEFAULT_COLOR,
996
+ style,
997
+ }) => {
998
+ return (
999
+ <IconWrapper size={size} style={style}>
1000
+ {/* Triangle play shape */}
1001
+ <View
1002
+ style={{
1003
+ width: 0,
1004
+ height: 0,
1005
+ borderLeftWidth: size * 0.35,
1006
+ borderTopWidth: size * 0.2,
1007
+ borderBottomWidth: size * 0.2,
1008
+ borderLeftColor: color,
1009
+ borderTopColor: 'transparent',
1010
+ borderBottomColor: 'transparent',
1011
+ }}
1012
+ />
1013
+ </IconWrapper>
1014
+ );
1015
+ };
1016
+
1017
+ /** Pause button */
1018
+ export const PauseIcon: IconComponent = ({
1019
+ size = DEFAULT_SIZE,
1020
+ color = DEFAULT_COLOR,
1021
+ style,
1022
+ }) => {
1023
+ const barWidth = size * 0.15;
1024
+ const barHeight = size * 0.6;
1025
+
1026
+ return (
1027
+ <IconWrapper size={size} style={style}>
1028
+ {/* Left bar */}
1029
+ <View
1030
+ style={{
1031
+ position: 'absolute',
1032
+ left: size * 0.2,
1033
+ width: barWidth,
1034
+ height: barHeight,
1035
+ backgroundColor: color,
1036
+ }}
1037
+ />
1038
+ {/* Right bar */}
1039
+ <View
1040
+ style={{
1041
+ position: 'absolute',
1042
+ right: size * 0.2,
1043
+ width: barWidth,
1044
+ height: barHeight,
1045
+ backgroundColor: color,
1046
+ }}
1047
+ />
1048
+ </IconWrapper>
1049
+ );
1050
+ };
1051
+
1052
+ /** Download icon */
1053
+ export const DownloadIcon: IconComponent = ({
1054
+ size = DEFAULT_SIZE,
1055
+ color = DEFAULT_COLOR,
1056
+ strokeWidth = DEFAULT_STROKE,
1057
+ style,
1058
+ }) => {
1059
+ return (
1060
+ <IconWrapper size={size} style={style}>
1061
+ {/* Horizontal line at top */}
1062
+ <View
1063
+ style={{
1064
+ position: 'absolute',
1065
+ top: size * 0.2,
1066
+ width: size * 0.4,
1067
+ height: strokeWidth,
1068
+ backgroundColor: color,
1069
+ }}
1070
+ />
1071
+ {/* Vertical line */}
1072
+ <View
1073
+ style={{
1074
+ position: 'absolute',
1075
+ top: size * 0.4,
1076
+ width: strokeWidth,
1077
+ height: size * 0.35,
1078
+ backgroundColor: color,
1079
+ }}
1080
+ />
1081
+ {/* Arrow down-left */}
1082
+ <View
1083
+ style={{
1084
+ position: 'absolute',
1085
+ top: size * 0.6,
1086
+ left: size * 0.2,
1087
+ width: size * 0.2,
1088
+ height: strokeWidth,
1089
+ backgroundColor: color,
1090
+ transform: [{ rotate: '45deg' }],
1091
+ }}
1092
+ />
1093
+ {/* Arrow down-right */}
1094
+ <View
1095
+ style={{
1096
+ position: 'absolute',
1097
+ top: size * 0.6,
1098
+ right: size * 0.2,
1099
+ width: size * 0.2,
1100
+ height: strokeWidth,
1101
+ backgroundColor: color,
1102
+ transform: [{ rotate: '-45deg' }],
1103
+ }}
1104
+ />
1105
+ {/* Base line */}
1106
+ <View
1107
+ style={{
1108
+ position: 'absolute',
1109
+ bottom: 0,
1110
+ width: size * 0.8,
1111
+ height: strokeWidth,
1112
+ backgroundColor: color,
1113
+ }}
1114
+ />
1115
+ </IconWrapper>
1116
+ );
1117
+ };
1118
+
1119
+ /** Share icon */
1120
+ export const ShareIcon: IconComponent = ({
1121
+ size = DEFAULT_SIZE,
1122
+ color = DEFAULT_COLOR,
1123
+ strokeWidth = DEFAULT_STROKE,
1124
+ style,
1125
+ }) => {
1126
+ const dotSize = size * 0.22;
1127
+ return (
1128
+ <IconWrapper size={size} style={style}>
1129
+ {/* Left dot (center vertically) */}
1130
+ <View
1131
+ style={{
1132
+ position: 'absolute',
1133
+ left: size * 0.15,
1134
+ width: dotSize,
1135
+ height: dotSize,
1136
+ borderRadius: dotSize / 2,
1137
+ borderWidth: strokeWidth,
1138
+ borderColor: color,
1139
+ backgroundColor: 'transparent',
1140
+ }}
1141
+ />
1142
+ {/* Top-right dot */}
1143
+ <View
1144
+ style={{
1145
+ position: 'absolute',
1146
+ top: size * 0.15,
1147
+ right: size * 0.15,
1148
+ width: dotSize,
1149
+ height: dotSize,
1150
+ borderRadius: dotSize / 2,
1151
+ borderWidth: strokeWidth,
1152
+ borderColor: color,
1153
+ backgroundColor: 'transparent',
1154
+ }}
1155
+ />
1156
+ {/* Bottom-right dot */}
1157
+ <View
1158
+ style={{
1159
+ position: 'absolute',
1160
+ bottom: size * 0.15,
1161
+ right: size * 0.15,
1162
+ width: dotSize,
1163
+ height: dotSize,
1164
+ borderRadius: dotSize / 2,
1165
+ borderWidth: strokeWidth,
1166
+ borderColor: color,
1167
+ backgroundColor: 'transparent',
1168
+ }}
1169
+ />
1170
+ {/* Connecting line to top */}
1171
+ <View
1172
+ style={{
1173
+ position: 'absolute',
1174
+ top: size * 0.32,
1175
+ left: size * 0.34,
1176
+ width: size * 0.35,
1177
+ height: strokeWidth,
1178
+ backgroundColor: color,
1179
+ transform: [{ rotate: '-35deg' }],
1180
+ }}
1181
+ />
1182
+ {/* Connecting line to bottom */}
1183
+ <View
1184
+ style={{
1185
+ position: 'absolute',
1186
+ bottom: size * 0.32,
1187
+ left: size * 0.34,
1188
+ width: size * 0.35,
1189
+ height: strokeWidth,
1190
+ backgroundColor: color,
1191
+ transform: [{ rotate: '35deg' }],
1192
+ }}
1193
+ />
1194
+ </IconWrapper>
1195
+ );
1196
+ };
1197
+
1198
+ /** Send/paper plane icon */
1199
+ export const SendIcon: IconComponent = ({
1200
+ size = DEFAULT_SIZE,
1201
+ color = DEFAULT_COLOR,
1202
+ strokeWidth = DEFAULT_STROKE,
1203
+ style,
1204
+ }) => {
1205
+ return (
1206
+ <IconWrapper size={size} style={style}>
1207
+ {/* Paper plane shape */}
1208
+ <View
1209
+ style={{
1210
+ position: 'absolute',
1211
+ width: 0,
1212
+ height: 0,
1213
+ borderLeftWidth: size * 0.25,
1214
+ borderTopWidth: size * 0.3,
1215
+ borderLeftColor: color,
1216
+ borderTopColor: color,
1217
+ }}
1218
+ />
1219
+ {/* Tail line */}
1220
+ <View
1221
+ style={{
1222
+ position: 'absolute',
1223
+ bottom: size * 0.3,
1224
+ right: size * 0.1,
1225
+ width: size * 0.3,
1226
+ height: strokeWidth,
1227
+ backgroundColor: color,
1228
+ transform: [{ rotate: '45deg' }],
1229
+ }}
1230
+ />
1231
+ </IconWrapper>
1232
+ );
1233
+ };
1234
+
1235
+ /** More/menu icon (three dots) */
1236
+ export const MoreIcon: IconComponent = ({
1237
+ size = DEFAULT_SIZE,
1238
+ color = DEFAULT_COLOR,
1239
+ style,
1240
+ }) => {
1241
+ const dotSize = size * 0.12;
1242
+
1243
+ return (
1244
+ <IconWrapper size={size} style={style}>
1245
+ {/* Left dot */}
1246
+ <View
1247
+ style={{
1248
+ position: 'absolute',
1249
+ left: size * 0.1,
1250
+ width: dotSize,
1251
+ height: dotSize,
1252
+ borderRadius: dotSize / 2,
1253
+ backgroundColor: color,
1254
+ }}
1255
+ />
1256
+ {/* Center dot */}
1257
+ <View
1258
+ style={{
1259
+ width: dotSize,
1260
+ height: dotSize,
1261
+ borderRadius: dotSize / 2,
1262
+ backgroundColor: color,
1263
+ }}
1264
+ />
1265
+ {/* Right dot */}
1266
+ <View
1267
+ style={{
1268
+ position: 'absolute',
1269
+ right: size * 0.1,
1270
+ width: dotSize,
1271
+ height: dotSize,
1272
+ borderRadius: dotSize / 2,
1273
+ backgroundColor: color,
1274
+ }}
1275
+ />
1276
+ </IconWrapper>
1277
+ );
1278
+ };
1279
+
1280
+ // ============================================================================
1281
+ // Document & Audio
1282
+ // ============================================================================
1283
+
1284
+ /** Document icon */
1285
+ export const DocumentIcon: IconComponent = ({
1286
+ size = DEFAULT_SIZE,
1287
+ color = DEFAULT_COLOR,
1288
+ strokeWidth = DEFAULT_STROKE,
1289
+ style,
1290
+ }) => {
1291
+ const w = size * 0.6;
1292
+ const h = size * 0.8;
1293
+
1294
+ return (
1295
+ <IconWrapper size={size} style={style}>
1296
+ {/* Page */}
1297
+ <View
1298
+ style={{
1299
+ width: w,
1300
+ height: h,
1301
+ borderWidth: strokeWidth,
1302
+ borderColor: color,
1303
+ borderRadius: size * 0.08,
1304
+ alignItems: 'center',
1305
+ justifyContent: 'flex-start',
1306
+ paddingTop: size * 0.1,
1307
+ }}
1308
+ >
1309
+ {/* Lines of text */}
1310
+ <View
1311
+ style={{
1312
+ width: w * 0.7,
1313
+ height: strokeWidth,
1314
+ backgroundColor: color,
1315
+ marginVertical: size * 0.08,
1316
+ }}
1317
+ />
1318
+ <View
1319
+ style={{
1320
+ width: w * 0.7,
1321
+ height: strokeWidth,
1322
+ backgroundColor: color,
1323
+ marginVertical: size * 0.08,
1324
+ }}
1325
+ />
1326
+ <View
1327
+ style={{
1328
+ width: w * 0.7,
1329
+ height: strokeWidth,
1330
+ backgroundColor: color,
1331
+ marginVertical: size * 0.08,
1332
+ }}
1333
+ />
1334
+ </View>
1335
+ </IconWrapper>
1336
+ );
1337
+ };
1338
+
1339
+ /** Audio icon */
1340
+ export const AudioIcon: IconComponent = ({
1341
+ size = DEFAULT_SIZE,
1342
+ color = DEFAULT_COLOR,
1343
+ strokeWidth = DEFAULT_STROKE,
1344
+ style,
1345
+ }) => {
1346
+ return (
1347
+ <IconWrapper size={size} style={style}>
1348
+ {/* Speaker cone */}
1349
+ <View
1350
+ style={{
1351
+ width: size * 0.2,
1352
+ height: size * 0.6,
1353
+ borderLeftWidth: strokeWidth * 1.5,
1354
+ borderTopWidth: size * 0.25,
1355
+ borderBottomWidth: size * 0.25,
1356
+ borderLeftColor: color,
1357
+ borderTopColor: 'transparent',
1358
+ borderBottomColor: 'transparent',
1359
+ }}
1360
+ />
1361
+ {/* Sound waves */}
1362
+ <View
1363
+ style={{
1364
+ position: 'absolute',
1365
+ right: -size * 0.05,
1366
+ width: size * 0.4,
1367
+ height: size * 0.4,
1368
+ borderWidth: strokeWidth,
1369
+ borderColor: color,
1370
+ borderRadius: size * 0.2,
1371
+ }}
1372
+ />
1373
+ <View
1374
+ style={{
1375
+ position: 'absolute',
1376
+ right: -size * 0.15,
1377
+ width: size * 0.65,
1378
+ height: size * 0.65,
1379
+ borderWidth: strokeWidth,
1380
+ borderColor: color,
1381
+ borderRadius: size * 0.325,
1382
+ }}
1383
+ />
1384
+ </IconWrapper>
1385
+ );
1386
+ };
1387
+
1388
+ // ============================================================================
1389
+ // States & Indicators
1390
+ // ============================================================================
1391
+
1392
+ /** Lock icon */
1393
+ export const LockIcon: IconComponent = ({
1394
+ size = DEFAULT_SIZE,
1395
+ color = DEFAULT_COLOR,
1396
+ strokeWidth = DEFAULT_STROKE,
1397
+ style,
1398
+ }) => {
1399
+ return (
1400
+ <IconWrapper size={size} style={style}>
1401
+ {/* Shackle */}
1402
+ <View
1403
+ style={{
1404
+ position: 'absolute',
1405
+ top: size * 0.1,
1406
+ width: size * 0.5,
1407
+ height: size * 0.35,
1408
+ borderWidth: strokeWidth,
1409
+ borderColor: color,
1410
+ borderBottomColor: 'transparent',
1411
+ borderRadius: size * 0.25,
1412
+ }}
1413
+ />
1414
+ {/* Body */}
1415
+ <View
1416
+ style={{
1417
+ position: 'absolute',
1418
+ top: size * 0.4,
1419
+ width: size * 0.7,
1420
+ height: size * 0.5,
1421
+ borderWidth: strokeWidth,
1422
+ borderColor: color,
1423
+ borderRadius: size * 0.08,
1424
+ }}
1425
+ />
1426
+ {/* Keyhole */}
1427
+ <View
1428
+ style={{
1429
+ position: 'absolute',
1430
+ top: size * 0.55,
1431
+ width: size * 0.15,
1432
+ height: size * 0.15,
1433
+ borderRadius: (size * 0.15) / 2,
1434
+ borderWidth: strokeWidth,
1435
+ borderColor: color,
1436
+ }}
1437
+ />
1438
+ </IconWrapper>
1439
+ );
1440
+ };
1441
+
1442
+ /** Unlock icon */
1443
+ export const LockOpenIcon: IconComponent = ({
1444
+ size = DEFAULT_SIZE,
1445
+ color = DEFAULT_COLOR,
1446
+ strokeWidth = DEFAULT_STROKE,
1447
+ style,
1448
+ }) => {
1449
+ return (
1450
+ <IconWrapper size={size} style={style}>
1451
+ {/* Open shackle */}
1452
+ <View
1453
+ style={{
1454
+ position: 'absolute',
1455
+ top: size * 0.1,
1456
+ left: size * 0.25,
1457
+ width: size * 0.25,
1458
+ height: size * 0.35,
1459
+ borderWidth: strokeWidth,
1460
+ borderColor: color,
1461
+ borderBottomColor: 'transparent',
1462
+ borderTopRightRadius: size * 0.15,
1463
+ }}
1464
+ />
1465
+ {/* Body */}
1466
+ <View
1467
+ style={{
1468
+ position: 'absolute',
1469
+ top: size * 0.4,
1470
+ width: size * 0.7,
1471
+ height: size * 0.5,
1472
+ borderWidth: strokeWidth,
1473
+ borderColor: color,
1474
+ borderRadius: size * 0.08,
1475
+ }}
1476
+ />
1477
+ {/* Keyhole */}
1478
+ <View
1479
+ style={{
1480
+ position: 'absolute',
1481
+ top: size * 0.55,
1482
+ width: size * 0.15,
1483
+ height: size * 0.15,
1484
+ borderRadius: (size * 0.15) / 2,
1485
+ borderWidth: strokeWidth,
1486
+ borderColor: color,
1487
+ }}
1488
+ />
1489
+ </IconWrapper>
1490
+ );
1491
+ };
1492
+
1493
+ /** Chevron up / collapse icon */
1494
+ export const ChevronUpIcon: IconComponent = ({
1495
+ size = DEFAULT_SIZE,
1496
+ color = DEFAULT_COLOR,
1497
+ strokeWidth = DEFAULT_STROKE,
1498
+ style,
1499
+ }) => {
1500
+ return (
1501
+ <IconWrapper size={size} style={style}>
1502
+ <View
1503
+ style={{
1504
+ position: 'absolute',
1505
+ left: size * 0.25,
1506
+ width: size * 0.5,
1507
+ height: strokeWidth,
1508
+ backgroundColor: color,
1509
+ transform: [{ rotate: '45deg' }],
1510
+ }}
1511
+ />
1512
+ <View
1513
+ style={{
1514
+ position: 'absolute',
1515
+ right: size * 0.25,
1516
+ width: size * 0.5,
1517
+ height: strokeWidth,
1518
+ backgroundColor: color,
1519
+ transform: [{ rotate: '-45deg' }],
1520
+ }}
1521
+ />
1522
+ </IconWrapper>
1523
+ );
1524
+ };
1525
+
1526
+ /** Checkmark/check icon */
1527
+ export const CheckIcon: IconComponent = ({
1528
+ size = DEFAULT_SIZE,
1529
+ color = DEFAULT_COLOR,
1530
+ strokeWidth = DEFAULT_STROKE,
1531
+ style,
1532
+ }) => {
1533
+ return <DoneIcon size={size} color={color} strokeWidth={strokeWidth} style={style} />;
1534
+ };
1535
+
1536
+ /** Volume on icon */
1537
+ export const VolumeOnIcon: IconComponent = ({
1538
+ size = DEFAULT_SIZE,
1539
+ color = DEFAULT_COLOR,
1540
+ strokeWidth = DEFAULT_STROKE,
1541
+ style,
1542
+ }) => {
1543
+ return (
1544
+ <IconWrapper size={size} style={style}>
1545
+ {/* Speaker */}
1546
+ <View
1547
+ style={{
1548
+ width: size * 0.2,
1549
+ height: size * 0.6,
1550
+ borderLeftWidth: strokeWidth * 1.5,
1551
+ borderTopWidth: size * 0.3,
1552
+ borderBottomWidth: size * 0.3,
1553
+ borderLeftColor: color,
1554
+ borderTopColor: 'transparent',
1555
+ borderBottomColor: 'transparent',
1556
+ }}
1557
+ />
1558
+ {/* Sound waves */}
1559
+ <View
1560
+ style={{
1561
+ position: 'absolute',
1562
+ right: -size * 0.08,
1563
+ width: size * 0.35,
1564
+ height: size * 0.35,
1565
+ borderWidth: strokeWidth,
1566
+ borderColor: color,
1567
+ borderRadius: size * 0.175,
1568
+ }}
1569
+ />
1570
+ <View
1571
+ style={{
1572
+ position: 'absolute',
1573
+ right: -size * 0.18,
1574
+ width: size * 0.55,
1575
+ height: size * 0.55,
1576
+ borderWidth: strokeWidth,
1577
+ borderColor: color,
1578
+ borderRadius: size * 0.275,
1579
+ }}
1580
+ />
1581
+ </IconWrapper>
1582
+ );
1583
+ };
1584
+
1585
+ /** Volume off / mute icon */
1586
+ export const VolumeOffIcon: IconComponent = ({
1587
+ size = DEFAULT_SIZE,
1588
+ color = DEFAULT_COLOR,
1589
+ strokeWidth = DEFAULT_STROKE,
1590
+ style,
1591
+ }) => {
1592
+ return (
1593
+ <IconWrapper size={size} style={style}>
1594
+ {/* Speaker */}
1595
+ <View
1596
+ style={{
1597
+ width: size * 0.2,
1598
+ height: size * 0.6,
1599
+ borderLeftWidth: strokeWidth * 1.5,
1600
+ borderTopWidth: size * 0.3,
1601
+ borderBottomWidth: size * 0.3,
1602
+ borderLeftColor: color,
1603
+ borderTopColor: 'transparent',
1604
+ borderBottomColor: 'transparent',
1605
+ }}
1606
+ />
1607
+ {/* Mute slash */}
1608
+ <View
1609
+ style={{
1610
+ position: 'absolute',
1611
+ width: size * 0.7,
1612
+ height: strokeWidth * 1.5,
1613
+ backgroundColor: color,
1614
+ transform: [{ rotate: '-45deg' }],
1615
+ }}
1616
+ />
1617
+ </IconWrapper>
1618
+ );
1619
+ };
1620
+
1621
+ // ============================================================================
1622
+ // Media Operations
1623
+ // ============================================================================
1624
+
1625
+ /** Trim icon */
1626
+ export const TrimIcon: IconComponent = ({
1627
+ size = DEFAULT_SIZE,
1628
+ color = DEFAULT_COLOR,
1629
+ strokeWidth = DEFAULT_STROKE,
1630
+ style,
1631
+ }) => {
1632
+ return (
1633
+ <IconWrapper size={size} style={style}>
1634
+ {/* Left bracket */}
1635
+ <View
1636
+ style={{
1637
+ position: 'absolute',
1638
+ left: size * 0.1,
1639
+ top: size * 0.15,
1640
+ width: strokeWidth,
1641
+ height: size * 0.7,
1642
+ backgroundColor: color,
1643
+ }}
1644
+ />
1645
+ <View
1646
+ style={{
1647
+ position: 'absolute',
1648
+ left: size * 0.1,
1649
+ top: size * 0.15,
1650
+ width: size * 0.15,
1651
+ height: strokeWidth,
1652
+ backgroundColor: color,
1653
+ }}
1654
+ />
1655
+ <View
1656
+ style={{
1657
+ position: 'absolute',
1658
+ left: size * 0.1,
1659
+ bottom: size * 0.15,
1660
+ width: size * 0.15,
1661
+ height: strokeWidth,
1662
+ backgroundColor: color,
1663
+ }}
1664
+ />
1665
+ {/* Right bracket */}
1666
+ <View
1667
+ style={{
1668
+ position: 'absolute',
1669
+ right: size * 0.1,
1670
+ top: size * 0.15,
1671
+ width: strokeWidth,
1672
+ height: size * 0.7,
1673
+ backgroundColor: color,
1674
+ }}
1675
+ />
1676
+ <View
1677
+ style={{
1678
+ position: 'absolute',
1679
+ right: size * 0.1,
1680
+ top: size * 0.15,
1681
+ width: size * 0.15,
1682
+ height: strokeWidth,
1683
+ backgroundColor: color,
1684
+ }}
1685
+ />
1686
+ <View
1687
+ style={{
1688
+ position: 'absolute',
1689
+ right: size * 0.1,
1690
+ bottom: size * 0.15,
1691
+ width: size * 0.15,
1692
+ height: strokeWidth,
1693
+ backgroundColor: color,
1694
+ }}
1695
+ />
1696
+ </IconWrapper>
1697
+ );
1698
+ };
1699
+
1700
+ /** Cover/frame icon */
1701
+ export const CoverIcon: IconComponent = ({
1702
+ size = DEFAULT_SIZE,
1703
+ color = DEFAULT_COLOR,
1704
+ strokeWidth = DEFAULT_STROKE,
1705
+ style,
1706
+ }) => {
1707
+ return (
1708
+ <IconWrapper size={size} style={style}>
1709
+ {/* Rectangle with crosshair */}
1710
+ <View
1711
+ style={{
1712
+ width: size * 0.8,
1713
+ height: size * 0.6,
1714
+ borderWidth: strokeWidth,
1715
+ borderColor: color,
1716
+ borderRadius: size * 0.06,
1717
+ alignItems: 'center',
1718
+ justifyContent: 'center',
1719
+ }}
1720
+ >
1721
+ {/* Horizontal line */}
1722
+ <View
1723
+ style={{
1724
+ position: 'absolute',
1725
+ width: size * 0.5,
1726
+ height: strokeWidth,
1727
+ backgroundColor: color,
1728
+ }}
1729
+ />
1730
+ {/* Vertical line */}
1731
+ <View
1732
+ style={{
1733
+ position: 'absolute',
1734
+ width: strokeWidth,
1735
+ height: size * 0.4,
1736
+ backgroundColor: color,
1737
+ }}
1738
+ />
1739
+ </View>
1740
+ </IconWrapper>
1741
+ );
1742
+ };
1743
+
1744
+ /** Compress icon */
1745
+ export const CompressIcon: IconComponent = ({
1746
+ size = DEFAULT_SIZE,
1747
+ color = DEFAULT_COLOR,
1748
+ strokeWidth = DEFAULT_STROKE,
1749
+ style,
1750
+ }) => {
1751
+ return (
1752
+ <IconWrapper size={size} style={style}>
1753
+ {/* Compress arrows pointing inward */}
1754
+ {/* Top-left arrow */}
1755
+ <View
1756
+ style={{
1757
+ position: 'absolute',
1758
+ top: size * 0.1,
1759
+ left: size * 0.1,
1760
+ width: size * 0.2,
1761
+ height: strokeWidth,
1762
+ backgroundColor: color,
1763
+ transform: [{ rotate: '45deg' }],
1764
+ }}
1765
+ />
1766
+ {/* Bottom-right arrow */}
1767
+ <View
1768
+ style={{
1769
+ position: 'absolute',
1770
+ bottom: size * 0.1,
1771
+ right: size * 0.1,
1772
+ width: size * 0.2,
1773
+ height: strokeWidth,
1774
+ backgroundColor: color,
1775
+ transform: [{ rotate: '45deg' }],
1776
+ }}
1777
+ />
1778
+ </IconWrapper>
1779
+ );
1780
+ };
1781
+
1782
+ /** Export icon */
1783
+ export const ExportIcon: IconComponent = ({
1784
+ size = DEFAULT_SIZE,
1785
+ color = DEFAULT_COLOR,
1786
+ strokeWidth = DEFAULT_STROKE,
1787
+ style,
1788
+ }) => {
1789
+ return (
1790
+ <IconWrapper size={size} style={style}>
1791
+ {/* Up arrow */}
1792
+ <View
1793
+ style={{
1794
+ position: 'absolute',
1795
+ top: size * 0.15,
1796
+ width: size * 0.4,
1797
+ height: strokeWidth,
1798
+ backgroundColor: color,
1799
+ }}
1800
+ />
1801
+ <View
1802
+ style={{
1803
+ position: 'absolute',
1804
+ top: size * 0.25,
1805
+ left: size * 0.3,
1806
+ width: strokeWidth,
1807
+ height: size * 0.25,
1808
+ backgroundColor: color,
1809
+ }}
1810
+ />
1811
+ <View
1812
+ style={{
1813
+ position: 'absolute',
1814
+ top: size * 0.4,
1815
+ left: size * 0.2,
1816
+ width: size * 0.2,
1817
+ height: strokeWidth,
1818
+ backgroundColor: color,
1819
+ transform: [{ rotate: '-45deg' }],
1820
+ }}
1821
+ />
1822
+ {/* Box bottom */}
1823
+ <View
1824
+ style={{
1825
+ position: 'absolute',
1826
+ bottom: 0,
1827
+ width: size * 0.8,
1828
+ height: size * 0.3,
1829
+ borderTopWidth: strokeWidth,
1830
+ borderColor: color,
1831
+ }}
1832
+ />
1833
+ </IconWrapper>
1834
+ );
1835
+ };
1836
+
1837
+ /** Upload icon */
1838
+ export const UploadIcon: IconComponent = ({
1839
+ size = DEFAULT_SIZE,
1840
+ color = DEFAULT_COLOR,
1841
+ strokeWidth = DEFAULT_STROKE,
1842
+ style,
1843
+ }) => {
1844
+ return (
1845
+ <IconWrapper size={size} style={style}>
1846
+ {/* Up arrow */}
1847
+ <View
1848
+ style={{
1849
+ position: 'absolute',
1850
+ top: size * 0.2,
1851
+ width: size * 0.4,
1852
+ height: strokeWidth,
1853
+ backgroundColor: color,
1854
+ }}
1855
+ />
1856
+ <View
1857
+ style={{
1858
+ position: 'absolute',
1859
+ top: size * 0.3,
1860
+ left: size * 0.3,
1861
+ width: strokeWidth,
1862
+ height: size * 0.25,
1863
+ backgroundColor: color,
1864
+ }}
1865
+ />
1866
+ <View
1867
+ style={{
1868
+ position: 'absolute',
1869
+ top: size * 0.2,
1870
+ left: size * 0.2,
1871
+ width: size * 0.2,
1872
+ height: strokeWidth,
1873
+ backgroundColor: color,
1874
+ transform: [{ rotate: '45deg' }],
1875
+ }}
1876
+ />
1877
+ {/* Base line */}
1878
+ <View
1879
+ style={{
1880
+ position: 'absolute',
1881
+ bottom: 0,
1882
+ width: size * 0.8,
1883
+ height: strokeWidth,
1884
+ backgroundColor: color,
1885
+ }}
1886
+ />
1887
+ </IconWrapper>
1888
+ );
1889
+ };
1890
+
1891
+ // ============================================================================
1892
+ // Basic Shapes
1893
+ // ============================================================================
1894
+
1895
+ /** Plus/add icon */
1896
+ export const PlusIcon: IconComponent = ({
1897
+ size = DEFAULT_SIZE,
1898
+ color = DEFAULT_COLOR,
1899
+ strokeWidth = DEFAULT_STROKE,
1900
+ style,
1901
+ }) => {
1902
+ const barLength = size * 0.5;
1903
+
1904
+ return (
1905
+ <IconWrapper size={size} style={style}>
1906
+ {/* Horizontal */}
1907
+ <View
1908
+ style={{
1909
+ position: 'absolute',
1910
+ width: barLength,
1911
+ height: strokeWidth,
1912
+ backgroundColor: color,
1913
+ }}
1914
+ />
1915
+ {/* Vertical */}
1916
+ <View
1917
+ style={{
1918
+ position: 'absolute',
1919
+ width: strokeWidth,
1920
+ height: barLength,
1921
+ backgroundColor: color,
1922
+ }}
1923
+ />
1924
+ </IconWrapper>
1925
+ );
1926
+ };
1927
+
1928
+ /** Minus/subtract icon */
1929
+ export const MinusIcon: IconComponent = ({
1930
+ size = DEFAULT_SIZE,
1931
+ color = DEFAULT_COLOR,
1932
+ strokeWidth = DEFAULT_STROKE,
1933
+ style,
1934
+ }) => {
1935
+ return (
1936
+ <IconWrapper size={size} style={style}>
1937
+ <View
1938
+ style={{
1939
+ width: size * 0.6,
1940
+ height: strokeWidth,
1941
+ backgroundColor: color,
1942
+ }}
1943
+ />
1944
+ </IconWrapper>
1945
+ );
1946
+ };
1947
+
1948
+ /** Stop button (square) */
1949
+ export const StopIcon: IconComponent = ({
1950
+ size = DEFAULT_SIZE,
1951
+ color = DEFAULT_COLOR,
1952
+ style,
1953
+ }) => {
1954
+ const squareSize = size * 0.5;
1955
+ return (
1956
+ <IconWrapper size={size} style={style}>
1957
+ <View
1958
+ style={{
1959
+ width: squareSize,
1960
+ height: squareSize,
1961
+ backgroundColor: color,
1962
+ borderRadius: size * 0.05,
1963
+ }}
1964
+ />
1965
+ </IconWrapper>
1966
+ );
1967
+ };
1968
+
1969
+ /** Mute icon (speaker with X) */
1970
+ export const MuteIcon: IconComponent = ({
1971
+ size = DEFAULT_SIZE,
1972
+ color = DEFAULT_COLOR,
1973
+ strokeWidth = DEFAULT_STROKE,
1974
+ style,
1975
+ }) => {
1976
+ return (
1977
+ <IconWrapper size={size} style={style}>
1978
+ {/* Speaker */}
1979
+ <View
1980
+ style={{
1981
+ width: size * 0.2,
1982
+ height: size * 0.6,
1983
+ borderLeftWidth: strokeWidth * 1.5,
1984
+ borderTopWidth: size * 0.3,
1985
+ borderBottomWidth: size * 0.3,
1986
+ borderLeftColor: color,
1987
+ borderTopColor: 'transparent',
1988
+ borderBottomColor: 'transparent',
1989
+ }}
1990
+ />
1991
+ {/* X mark */}
1992
+ <View
1993
+ style={{
1994
+ position: 'absolute',
1995
+ right: size * 0.05,
1996
+ width: size * 0.3,
1997
+ height: strokeWidth,
1998
+ backgroundColor: color,
1999
+ transform: [{ rotate: '45deg' }],
2000
+ }}
2001
+ />
2002
+ <View
2003
+ style={{
2004
+ position: 'absolute',
2005
+ right: size * 0.05,
2006
+ width: size * 0.3,
2007
+ height: strokeWidth,
2008
+ backgroundColor: color,
2009
+ transform: [{ rotate: '-45deg' }],
2010
+ }}
2011
+ />
2012
+ </IconWrapper>
2013
+ );
2014
+ };
2015
+
2016
+ // ============================================================================
2017
+ // Recording / audio / mode icons
2018
+ // ============================================================================
2019
+
2020
+ /** Photo-mode indicator — reuses the camera glyph. */
2021
+ export const PhotoModeIcon: IconComponent = (props) => <CameraIcon {...props} />;
2022
+
2023
+ /** Video-mode indicator — reuses the video glyph. */
2024
+ export const VideoModeIcon: IconComponent = (props) => <VideoIcon {...props} />;
2025
+
2026
+ /** Browse-audio default — reuses the audio glyph. */
2027
+ export const BrowseAudioIcon: IconComponent = (props) => <AudioIcon {...props} />;
2028
+
2029
+ /** Image+video (combined media) default — reuses the photo glyph. */
2030
+ export const ImageVideoIcon: IconComponent = (props) => <PhotoIcon {...props} />;
2031
+
2032
+ /** Chevron right / disclosure icon */
2033
+ export const ChevronRightIcon: IconComponent = ({
2034
+ size = DEFAULT_SIZE,
2035
+ color = DEFAULT_COLOR,
2036
+ strokeWidth = DEFAULT_STROKE,
2037
+ style,
2038
+ }) => {
2039
+ return (
2040
+ <IconWrapper size={size} style={style}>
2041
+ {/* upper stroke of the ">" */}
2042
+ <View
2043
+ style={{
2044
+ position: 'absolute',
2045
+ top: size * 0.25,
2046
+ width: size * 0.5,
2047
+ height: strokeWidth,
2048
+ backgroundColor: color,
2049
+ transform: [{ rotate: '45deg' }],
2050
+ }}
2051
+ />
2052
+ {/* lower stroke of the ">" */}
2053
+ <View
2054
+ style={{
2055
+ position: 'absolute',
2056
+ bottom: size * 0.25,
2057
+ width: size * 0.5,
2058
+ height: strokeWidth,
2059
+ backgroundColor: color,
2060
+ transform: [{ rotate: '-45deg' }],
2061
+ }}
2062
+ />
2063
+ </IconWrapper>
2064
+ );
2065
+ };
2066
+
2067
+ /** Record button — filled circle (color-driven). */
2068
+ export const RecordIcon: IconComponent = ({
2069
+ size = DEFAULT_SIZE,
2070
+ color = DEFAULT_COLOR,
2071
+ style,
2072
+ }) => {
2073
+ const dot = size * 0.6;
2074
+ return (
2075
+ <IconWrapper size={size} style={style}>
2076
+ <View
2077
+ style={{
2078
+ width: dot,
2079
+ height: dot,
2080
+ borderRadius: dot / 2,
2081
+ backgroundColor: color,
2082
+ }}
2083
+ />
2084
+ </IconWrapper>
2085
+ );
2086
+ };
2087
+
2088
+ /** Warning — triangle outline with an exclamation mark. */
2089
+ export const WarningIcon: IconComponent = ({
2090
+ size = DEFAULT_SIZE,
2091
+ color = DEFAULT_COLOR,
2092
+ strokeWidth = DEFAULT_STROKE,
2093
+ style,
2094
+ }) => {
2095
+ return (
2096
+ <IconWrapper size={size} style={style}>
2097
+ {/* Triangle (border trick) */}
2098
+ <View
2099
+ style={{
2100
+ position: 'absolute',
2101
+ top: size * 0.1,
2102
+ width: 0,
2103
+ height: 0,
2104
+ borderLeftWidth: size * 0.44,
2105
+ borderRightWidth: size * 0.44,
2106
+ borderBottomWidth: size * 0.72,
2107
+ borderLeftColor: 'transparent',
2108
+ borderRightColor: 'transparent',
2109
+ borderBottomColor: color,
2110
+ }}
2111
+ />
2112
+ {/* Exclamation stem — rendered in the wrapper background tone so it
2113
+ reads as a cut-out against the filled triangle. */}
2114
+ <View
2115
+ style={{
2116
+ position: 'absolute',
2117
+ top: size * 0.42,
2118
+ width: strokeWidth,
2119
+ height: size * 0.22,
2120
+ backgroundColor: '#FFFFFF',
2121
+ }}
2122
+ />
2123
+ {/* Exclamation dot */}
2124
+ <View
2125
+ style={{
2126
+ position: 'absolute',
2127
+ top: size * 0.68,
2128
+ width: strokeWidth,
2129
+ height: strokeWidth,
2130
+ borderRadius: strokeWidth,
2131
+ backgroundColor: '#FFFFFF',
2132
+ }}
2133
+ />
2134
+ </IconWrapper>
2135
+ );
2136
+ };
2137
+
2138
+ /** Microphone — rounded capsule head, stand arc, and base. */
2139
+ export const MicIcon: IconComponent = ({
2140
+ size = DEFAULT_SIZE,
2141
+ color = DEFAULT_COLOR,
2142
+ strokeWidth = DEFAULT_STROKE,
2143
+ style,
2144
+ }) => {
2145
+ const capsuleW = size * 0.28;
2146
+ const capsuleH = size * 0.42;
2147
+ return (
2148
+ <IconWrapper size={size} style={style}>
2149
+ {/* Capsule head */}
2150
+ <View
2151
+ style={{
2152
+ position: 'absolute',
2153
+ top: size * 0.12,
2154
+ width: capsuleW,
2155
+ height: capsuleH,
2156
+ borderRadius: capsuleW / 2,
2157
+ backgroundColor: color,
2158
+ }}
2159
+ />
2160
+ {/* Stand arc (U-shape cradle) */}
2161
+ <View
2162
+ style={{
2163
+ position: 'absolute',
2164
+ top: size * 0.38,
2165
+ width: size * 0.5,
2166
+ height: size * 0.28,
2167
+ borderColor: color,
2168
+ borderWidth: strokeWidth,
2169
+ borderTopWidth: 0,
2170
+ borderBottomLeftRadius: size * 0.25,
2171
+ borderBottomRightRadius: size * 0.25,
2172
+ }}
2173
+ />
2174
+ {/* Stem */}
2175
+ <View
2176
+ style={{
2177
+ position: 'absolute',
2178
+ top: size * 0.66,
2179
+ width: strokeWidth,
2180
+ height: size * 0.14,
2181
+ backgroundColor: color,
2182
+ }}
2183
+ />
2184
+ {/* Base */}
2185
+ <View
2186
+ style={{
2187
+ position: 'absolute',
2188
+ top: size * 0.8,
2189
+ width: size * 0.4,
2190
+ height: strokeWidth,
2191
+ backgroundColor: color,
2192
+ }}
2193
+ />
2194
+ </IconWrapper>
2195
+ );
2196
+ };
2197
+
2198
+ // ============================================================================
2199
+ // Interactive & Inline Icons
2200
+ // ============================================================================
2201
+
2202
+ /**
2203
+ * Plus icon that morphs into a Cross (✕) as [progress] animates 0 → 1.
2204
+ * When progress is omitted or 0, renders a static Plus (+).
2205
+ */
2206
+ export const PlusCloseIcon: IconComponent = ({
2207
+ size = DEFAULT_SIZE,
2208
+ color = DEFAULT_COLOR,
2209
+ strokeWidth = 2.4,
2210
+ progress,
2211
+ style,
2212
+ }: IconProps) => {
2213
+ const barLength = Math.round(size * 0.58);
2214
+ let spin: any = '0deg';
2215
+
2216
+ if (progress && typeof (progress as any).interpolate === 'function') {
2217
+ spin = (progress as Animated.Value).interpolate({
2218
+ inputRange: [0, 1],
2219
+ outputRange: ['0deg', '225deg'],
2220
+ });
2221
+ } else if (typeof progress === 'number') {
2222
+ spin = `${progress * 225}deg`;
2223
+ }
2224
+
2225
+ const horizontal = {
2226
+ position: 'absolute' as const,
2227
+ width: barLength,
2228
+ height: strokeWidth,
2229
+ borderRadius: strokeWidth,
2230
+ backgroundColor: color,
2231
+ };
2232
+ const vertical = {
2233
+ position: 'absolute' as const,
2234
+ width: strokeWidth,
2235
+ height: barLength,
2236
+ borderRadius: strokeWidth,
2237
+ backgroundColor: color,
2238
+ };
2239
+
2240
+ return (
2241
+ <Animated.View
2242
+ style={[
2243
+ {
2244
+ width: size,
2245
+ height: size,
2246
+ alignItems: 'center',
2247
+ justifyContent: 'center',
2248
+ position: 'relative',
2249
+ transform: [{ rotate: spin }],
2250
+ },
2251
+ style,
2252
+ ]}
2253
+ >
2254
+ <View style={horizontal} />
2255
+ <View style={vertical} />
2256
+ </Animated.View>
2257
+ );
2258
+ };
2259
+
2260
+ /**
2261
+ * Circular seek skip ring icon (◀ -10s / ▶ +10s).
2262
+ * Renders an open-topped circular arrow ring with directional arrowhead
2263
+ * and a centered seconds label.
2264
+ */
2265
+ export const CircularSeekIcon: IconComponent = ({
2266
+ direction = 'forward',
2267
+ label = '10',
2268
+ size = DEFAULT_SIZE,
2269
+ color = DEFAULT_COLOR,
2270
+ strokeWidth = DEFAULT_STROKE,
2271
+ style,
2272
+ }: IconProps) => {
2273
+ const head = Math.max(3, strokeWidth * 2);
2274
+ return (
2275
+ <View
2276
+ style={[
2277
+ {
2278
+ width: size,
2279
+ height: size,
2280
+ alignItems: 'center',
2281
+ justifyContent: 'center',
2282
+ position: 'relative',
2283
+ },
2284
+ style,
2285
+ ]}
2286
+ >
2287
+ {/* Open-topped ring — curved arrow body */}
2288
+ <View
2289
+ style={{
2290
+ position: 'absolute',
2291
+ width: size,
2292
+ height: size,
2293
+ borderRadius: size / 2,
2294
+ borderWidth: strokeWidth,
2295
+ borderColor: color,
2296
+ borderTopColor: 'transparent',
2297
+ }}
2298
+ />
2299
+ {/* Arrowhead in the top gap, pointing in the seek direction (◀ back / ▶ forward) */}
2300
+ <View
2301
+ style={{
2302
+ position: 'absolute',
2303
+ top: -strokeWidth * 0.4,
2304
+ left: direction === 'back' ? size * 0.24 : undefined,
2305
+ right: direction === 'forward' ? size * 0.24 : undefined,
2306
+ width: 0,
2307
+ height: 0,
2308
+ borderTopWidth: head,
2309
+ borderBottomWidth: head,
2310
+ borderTopColor: 'transparent',
2311
+ borderBottomColor: 'transparent',
2312
+ borderLeftWidth: direction === 'forward' ? head : 0,
2313
+ borderRightWidth: direction === 'back' ? head : 0,
2314
+ borderLeftColor: direction === 'forward' ? color : 'transparent',
2315
+ borderRightColor: direction === 'back' ? color : 'transparent',
2316
+ }}
2317
+ />
2318
+ <Text
2319
+ style={{
2320
+ color: color as string,
2321
+ fontSize: size * 0.4,
2322
+ fontWeight: '600',
2323
+ includeFontPadding: false,
2324
+ textAlign: 'center',
2325
+ }}
2326
+ >
2327
+ {label}
2328
+ </Text>
2329
+ </View>
2330
+ );
2331
+ };
2332
+
2333
+ /**
2334
+ * View Details / Info (ⓘ) icon.
2335
+ * Renders an outlined circular badge with a centered 'i' glyph (dot + stem).
2336
+ */
2337
+ export const ViewDetailsIcon: IconComponent = ({
2338
+ size = DEFAULT_SIZE,
2339
+ color = DEFAULT_COLOR,
2340
+ strokeWidth = DEFAULT_STROKE,
2341
+ style,
2342
+ }: IconProps) => {
2343
+ const circleSize = size * 0.85;
2344
+ const dotSize = Math.max(2, strokeWidth * 1.2);
2345
+ const stemWidth = Math.max(1.5, strokeWidth);
2346
+ const stemHeight = size * 0.28;
2347
+
2348
+ return (
2349
+ <IconWrapper size={size} style={style}>
2350
+ {/* Outer circle */}
2351
+ <View
2352
+ style={{
2353
+ width: circleSize,
2354
+ height: circleSize,
2355
+ borderRadius: circleSize / 2,
2356
+ borderWidth: strokeWidth,
2357
+ borderColor: color,
2358
+ alignItems: 'center',
2359
+ justifyContent: 'center',
2360
+ }}
2361
+ >
2362
+ {/* Dot of the 'i' */}
2363
+ <View
2364
+ style={{
2365
+ position: 'absolute',
2366
+ top: circleSize * 0.22,
2367
+ width: dotSize,
2368
+ height: dotSize,
2369
+ borderRadius: dotSize / 2,
2370
+ backgroundColor: color,
2371
+ }}
2372
+ />
2373
+ {/* Stem of the 'i' */}
2374
+ <View
2375
+ style={{
2376
+ position: 'absolute',
2377
+ bottom: circleSize * 0.22,
2378
+ width: stemWidth,
2379
+ height: stemHeight,
2380
+ borderRadius: stemWidth / 2,
2381
+ backgroundColor: color,
2382
+ }}
2383
+ />
2384
+ </View>
2385
+ </IconWrapper>
2386
+ );
2387
+ };
2388
+
2389
+ /** Alias for ViewDetailsIcon */
2390
+ export const InfoIcon = ViewDetailsIcon;