@oxyhq/services 6.9.0 → 6.9.2

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 (567) hide show
  1. package/lib/commonjs/ui/components/ActivityIndicator.js +4 -4
  2. package/lib/commonjs/ui/components/ActivityIndicator.js.map +1 -1
  3. package/lib/commonjs/ui/components/BottomSheet.js +6 -6
  4. package/lib/commonjs/ui/components/BottomSheet.js.map +1 -1
  5. package/lib/commonjs/ui/components/BottomSheetRouter.js +70 -3
  6. package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
  7. package/lib/commonjs/ui/components/CrossFadeIcon.js +1 -1
  8. package/lib/commonjs/ui/components/CrossFadeIcon.js.map +1 -1
  9. package/lib/commonjs/ui/components/FollowButton.js +3 -5
  10. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  11. package/lib/commonjs/ui/components/FontLoader.js +1 -1
  12. package/lib/commonjs/ui/components/FontLoader.js.map +1 -1
  13. package/lib/commonjs/ui/components/GroupedItem.js +1 -4
  14. package/lib/commonjs/ui/components/GroupedItem.js.map +1 -1
  15. package/lib/commonjs/ui/components/GroupedSection.js +1 -2
  16. package/lib/commonjs/ui/components/GroupedSection.js.map +1 -1
  17. package/lib/commonjs/ui/components/Header.js.map +1 -1
  18. package/lib/commonjs/ui/components/HelperText.js +2 -2
  19. package/lib/commonjs/ui/components/HelperText.js.map +1 -1
  20. package/lib/commonjs/ui/components/Icon.js +5 -5
  21. package/lib/commonjs/ui/components/Icon.js.map +1 -1
  22. package/lib/commonjs/ui/components/IconButton/IconButton.js +0 -2
  23. package/lib/commonjs/ui/components/IconButton/IconButton.js.map +1 -1
  24. package/lib/commonjs/ui/components/OxyProvider.js +17 -11
  25. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  26. package/lib/commonjs/ui/components/SignInModal.js +1 -1
  27. package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
  28. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js +6 -8
  29. package/lib/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -1
  30. package/lib/commonjs/ui/components/TextField/Adornment/utils.js +3 -3
  31. package/lib/commonjs/ui/components/TextField/Adornment/utils.js.map +1 -1
  32. package/lib/commonjs/ui/components/TextField/helpers.js +2 -3
  33. package/lib/commonjs/ui/components/TextField/helpers.js.map +1 -1
  34. package/lib/commonjs/ui/components/TextField.js +6 -9
  35. package/lib/commonjs/ui/components/TextField.js.map +1 -1
  36. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js +3 -3
  37. package/lib/commonjs/ui/components/TouchableRipple/TouchableRipple.js.map +1 -1
  38. package/lib/commonjs/ui/components/Typography/AnimatedText.js +12 -15
  39. package/lib/commonjs/ui/components/Typography/AnimatedText.js.map +1 -1
  40. package/lib/commonjs/ui/components/feedback/FormInput.js +1 -1
  41. package/lib/commonjs/ui/components/feedback/FormInput.js.map +1 -1
  42. package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js +1 -2
  43. package/lib/commonjs/ui/components/fileManagement/AnimatedButton.js.map +1 -1
  44. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js +0 -2
  45. package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  46. package/lib/commonjs/ui/components/fileManagement/FileViewer.js +1 -2
  47. package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
  48. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +0 -2
  49. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
  50. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js +15 -18
  51. package/lib/commonjs/ui/components/internal/GroupedPillButtons.js.map +1 -1
  52. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js +3 -4
  53. package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
  54. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js +1 -2
  55. package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  56. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js +1 -2
  57. package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
  58. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js +1 -2
  59. package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
  60. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js +1 -2
  61. package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
  62. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +1 -2
  63. package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  64. package/lib/commonjs/ui/components/payment/paymentStyles.js +2 -2
  65. package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
  66. package/lib/commonjs/ui/components/styles/overlay.js +4 -4
  67. package/lib/commonjs/ui/components/styles/overlay.js.map +1 -1
  68. package/lib/commonjs/ui/components/styles/shadow.js +58 -63
  69. package/lib/commonjs/ui/components/styles/shadow.js.map +1 -1
  70. package/lib/commonjs/ui/components/theming.js +7 -7
  71. package/lib/commonjs/ui/components/theming.js.map +1 -1
  72. package/lib/commonjs/ui/context/OxyContext.js +1 -2
  73. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  74. package/lib/commonjs/ui/context/ThemeContext.js.map +1 -1
  75. package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
  76. package/lib/commonjs/ui/hooks/useAssets.js +11 -27
  77. package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
  78. package/lib/commonjs/ui/hooks/useAuth.js +5 -2
  79. package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
  80. package/lib/commonjs/ui/hooks/useFileFiltering.js +1 -1
  81. package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -1
  82. package/lib/commonjs/ui/index.js +19 -19
  83. package/lib/commonjs/ui/index.js.map +1 -1
  84. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js +1 -1
  85. package/lib/commonjs/ui/screens/AccountSwitcherScreen.js.map +1 -1
  86. package/lib/commonjs/ui/screens/FAQScreen.js +1 -2
  87. package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
  88. package/lib/commonjs/ui/screens/FeedbackScreen.js +2 -3
  89. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  90. package/lib/commonjs/ui/screens/FileManagementScreen.js +9 -9
  91. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  92. package/lib/commonjs/ui/screens/FollowersListScreen.js +0 -1
  93. package/lib/commonjs/ui/screens/FollowersListScreen.js.map +1 -1
  94. package/lib/commonjs/ui/screens/FollowingListScreen.js +0 -1
  95. package/lib/commonjs/ui/screens/FollowingListScreen.js.map +1 -1
  96. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +3 -4
  97. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  98. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +2 -3
  99. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  100. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +10 -11
  101. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  102. package/lib/commonjs/ui/screens/ProfileScreen.js +1 -1
  103. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  104. package/lib/commonjs/ui/screens/UserListScreen.js +1 -2
  105. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  106. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +2 -2
  107. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  108. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js +5 -5
  109. package/lib/commonjs/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  110. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
  111. package/lib/commonjs/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
  112. package/lib/commonjs/ui/stores/followStore.js +2 -2
  113. package/lib/commonjs/ui/stores/followStore.js.map +1 -1
  114. package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
  115. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
  116. package/lib/commonjs/ui/utils/fileManagement.js +2 -2
  117. package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
  118. package/lib/commonjs/ui/utils/userUtils.js +1 -1
  119. package/lib/commonjs/ui/utils/userUtils.js.map +1 -1
  120. package/lib/module/ui/components/ActivityIndicator.js +4 -4
  121. package/lib/module/ui/components/ActivityIndicator.js.map +1 -1
  122. package/lib/module/ui/components/BottomSheet.js +7 -7
  123. package/lib/module/ui/components/BottomSheet.js.map +1 -1
  124. package/lib/module/ui/components/BottomSheetRouter.js +72 -5
  125. package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
  126. package/lib/module/ui/components/CrossFadeIcon.js +1 -1
  127. package/lib/module/ui/components/CrossFadeIcon.js.map +1 -1
  128. package/lib/module/ui/components/ErrorBoundary.js.map +1 -1
  129. package/lib/module/ui/components/FollowButton.js +3 -5
  130. package/lib/module/ui/components/FollowButton.js.map +1 -1
  131. package/lib/module/ui/components/FontLoader.js +1 -1
  132. package/lib/module/ui/components/FontLoader.js.map +1 -1
  133. package/lib/module/ui/components/GroupedItem.js +1 -2
  134. package/lib/module/ui/components/GroupedItem.js.map +1 -1
  135. package/lib/module/ui/components/GroupedSection.js +1 -1
  136. package/lib/module/ui/components/GroupedSection.js.map +1 -1
  137. package/lib/module/ui/components/Header.js.map +1 -1
  138. package/lib/module/ui/components/HelperText.js +2 -2
  139. package/lib/module/ui/components/HelperText.js.map +1 -1
  140. package/lib/module/ui/components/Icon.js +5 -4
  141. package/lib/module/ui/components/Icon.js.map +1 -1
  142. package/lib/module/ui/components/IconButton/IconButton.js +0 -1
  143. package/lib/module/ui/components/IconButton/IconButton.js.map +1 -1
  144. package/lib/module/ui/components/OxyProvider.js +18 -12
  145. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  146. package/lib/module/ui/components/SignInModal.js +1 -1
  147. package/lib/module/ui/components/SignInModal.js.map +1 -1
  148. package/lib/module/ui/components/TextField/Addons/Underline.js.map +1 -1
  149. package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js +6 -8
  150. package/lib/module/ui/components/TextField/Adornment/TextFieldAdornment.js.map +1 -1
  151. package/lib/module/ui/components/TextField/Adornment/utils.js +3 -3
  152. package/lib/module/ui/components/TextField/Adornment/utils.js.map +1 -1
  153. package/lib/module/ui/components/TextField/helpers.js +2 -3
  154. package/lib/module/ui/components/TextField/helpers.js.map +1 -1
  155. package/lib/module/ui/components/TextField.js +6 -9
  156. package/lib/module/ui/components/TextField.js.map +1 -1
  157. package/lib/module/ui/components/TouchableRipple/TouchableRipple.js +3 -3
  158. package/lib/module/ui/components/TouchableRipple/TouchableRipple.js.map +1 -1
  159. package/lib/module/ui/components/Typography/AnimatedText.js +12 -14
  160. package/lib/module/ui/components/Typography/AnimatedText.js.map +1 -1
  161. package/lib/module/ui/components/feedback/FormInput.js +1 -1
  162. package/lib/module/ui/components/feedback/FormInput.js.map +1 -1
  163. package/lib/module/ui/components/fileManagement/AnimatedButton.js +1 -1
  164. package/lib/module/ui/components/fileManagement/AnimatedButton.js.map +1 -1
  165. package/lib/module/ui/components/fileManagement/FileDetailsModal.js +0 -1
  166. package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
  167. package/lib/module/ui/components/fileManagement/FileViewer.js +1 -1
  168. package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
  169. package/lib/module/ui/components/fileManagement/UploadPreview.js +0 -1
  170. package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
  171. package/lib/module/ui/components/internal/GroupedPillButtons.js +15 -18
  172. package/lib/module/ui/components/internal/GroupedPillButtons.js.map +1 -1
  173. package/lib/module/ui/components/modals/DeleteAccountModal.js +3 -3
  174. package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
  175. package/lib/module/ui/components/payment/PaymentDetailsStep.js +1 -1
  176. package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
  177. package/lib/module/ui/components/payment/PaymentMethodStep.js +1 -1
  178. package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
  179. package/lib/module/ui/components/payment/PaymentReviewStep.js +1 -1
  180. package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
  181. package/lib/module/ui/components/payment/PaymentSuccessStep.js +1 -1
  182. package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
  183. package/lib/module/ui/components/payment/PaymentSummaryStep.js +1 -1
  184. package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
  185. package/lib/module/ui/components/payment/paymentStyles.js +2 -2
  186. package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
  187. package/lib/module/ui/components/styles/overlay.js +4 -4
  188. package/lib/module/ui/components/styles/overlay.js.map +1 -1
  189. package/lib/module/ui/components/styles/shadow.js +58 -63
  190. package/lib/module/ui/components/styles/shadow.js.map +1 -1
  191. package/lib/module/ui/components/theming.js +7 -7
  192. package/lib/module/ui/components/theming.js.map +1 -1
  193. package/lib/module/ui/context/OxyContext.js +1 -1
  194. package/lib/module/ui/context/OxyContext.js.map +1 -1
  195. package/lib/module/ui/context/ThemeContext.js.map +1 -1
  196. package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
  197. package/lib/module/ui/hooks/useAssets.js +11 -27
  198. package/lib/module/ui/hooks/useAssets.js.map +1 -1
  199. package/lib/module/ui/hooks/useAuth.js +5 -2
  200. package/lib/module/ui/hooks/useAuth.js.map +1 -1
  201. package/lib/module/ui/hooks/useFileFiltering.js +1 -1
  202. package/lib/module/ui/hooks/useFileFiltering.js.map +1 -1
  203. package/lib/module/ui/index.js +19 -1
  204. package/lib/module/ui/index.js.map +1 -1
  205. package/lib/module/ui/screens/AccountSwitcherScreen.js +1 -1
  206. package/lib/module/ui/screens/AccountSwitcherScreen.js.map +1 -1
  207. package/lib/module/ui/screens/FAQScreen.js +1 -1
  208. package/lib/module/ui/screens/FAQScreen.js.map +1 -1
  209. package/lib/module/ui/screens/FeedbackScreen.js +2 -2
  210. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  211. package/lib/module/ui/screens/FileManagementScreen.js +9 -9
  212. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  213. package/lib/module/ui/screens/FollowersListScreen.js +0 -1
  214. package/lib/module/ui/screens/FollowersListScreen.js.map +1 -1
  215. package/lib/module/ui/screens/FollowingListScreen.js +0 -1
  216. package/lib/module/ui/screens/FollowingListScreen.js.map +1 -1
  217. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +3 -3
  218. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  219. package/lib/module/ui/screens/PaymentGatewayScreen.js +2 -2
  220. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  221. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +10 -11
  222. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  223. package/lib/module/ui/screens/ProfileScreen.js +1 -1
  224. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  225. package/lib/module/ui/screens/UserListScreen.js +1 -1
  226. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  227. package/lib/module/ui/screens/WelcomeNewUserScreen.js +2 -2
  228. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  229. package/lib/module/ui/screens/karma/KarmaCenterScreen.js +5 -5
  230. package/lib/module/ui/screens/karma/KarmaCenterScreen.js.map +1 -1
  231. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js +1 -1
  232. package/lib/module/ui/screens/karma/KarmaLeaderboardScreen.js.map +1 -1
  233. package/lib/module/ui/stores/followStore.js +2 -2
  234. package/lib/module/ui/stores/followStore.js.map +1 -1
  235. package/lib/module/ui/utils/avatarUtils.js +1 -1
  236. package/lib/module/ui/utils/avatarUtils.js.map +1 -1
  237. package/lib/module/ui/utils/fileManagement.js +2 -2
  238. package/lib/module/ui/utils/fileManagement.js.map +1 -1
  239. package/lib/module/ui/utils/userUtils.js +1 -1
  240. package/lib/module/ui/utils/userUtils.js.map +1 -1
  241. package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts +1 -1
  242. package/lib/typescript/commonjs/ui/components/ActivityIndicator.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts +1 -1
  244. package/lib/typescript/commonjs/ui/components/BottomSheet.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts.map +1 -1
  246. package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts +1 -1
  247. package/lib/typescript/commonjs/ui/components/CrossFadeIcon.d.ts.map +1 -1
  248. package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts +1 -1
  249. package/lib/typescript/commonjs/ui/components/ErrorBoundary.d.ts.map +1 -1
  250. package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/ui/components/FontLoader.d.ts +1 -1
  252. package/lib/typescript/commonjs/ui/components/FontLoader.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts +1 -1
  254. package/lib/typescript/commonjs/ui/components/GroupedItem.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts +1 -1
  256. package/lib/typescript/commonjs/ui/components/GroupedSection.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/ui/components/Header.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/ui/components/HelperText.d.ts +1 -1
  259. package/lib/typescript/commonjs/ui/components/HelperText.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/ui/components/Icon.d.ts +2 -2
  261. package/lib/typescript/commonjs/ui/components/Icon.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts +3 -3
  263. package/lib/typescript/commonjs/ui/components/IconButton/IconButton.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/ui/components/SignInModal.d.ts +1 -1
  266. package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
  267. package/lib/typescript/commonjs/ui/components/Surface.d.ts +1 -1
  268. package/lib/typescript/commonjs/ui/components/Surface.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts +2 -2
  270. package/lib/typescript/commonjs/ui/components/TextField/Addons/Outline.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts +1 -1
  272. package/lib/typescript/commonjs/ui/components/TextField/Addons/Underline.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts +1 -1
  275. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts +1 -1
  277. package/lib/typescript/commonjs/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts +1 -1
  279. package/lib/typescript/commonjs/ui/components/TextField/helpers.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/ui/components/TextField/types.d.ts +1 -1
  281. package/lib/typescript/commonjs/ui/components/TextField/types.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/ui/components/TextField.d.ts +3 -3
  283. package/lib/typescript/commonjs/ui/components/TextField.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts +1 -1
  285. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.d.ts.map +1 -1
  286. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +2 -2
  287. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
  288. package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts +2 -2
  289. package/lib/typescript/commonjs/ui/components/Typography/AnimatedText.d.ts.map +1 -1
  290. package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts +1 -1
  291. package/lib/typescript/commonjs/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -1
  292. package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts +1 -1
  293. package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  294. package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts +1 -1
  295. package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  296. package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts +1 -1
  297. package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
  298. package/lib/typescript/commonjs/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
  299. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts +1 -1
  300. package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  301. package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts +1 -1
  302. package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  303. package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts +1 -1
  304. package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
  305. package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts +1 -1
  306. package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
  307. package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts +1 -1
  308. package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
  309. package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts +1 -1
  310. package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  311. package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts.map +1 -1
  312. package/lib/typescript/commonjs/ui/components/styles/shadow.d.ts +1 -1
  313. package/lib/typescript/commonjs/ui/components/styles/shadow.d.ts.map +1 -1
  314. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +2 -1
  315. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  316. package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts +1 -1
  317. package/lib/typescript/commonjs/ui/context/ThemeContext.d.ts.map +1 -1
  318. package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts +1 -1
  319. package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
  320. package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
  321. package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts +2 -2
  322. package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
  323. package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts +4 -0
  324. package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
  325. package/lib/typescript/commonjs/ui/hooks/useFileFiltering.d.ts.map +1 -1
  326. package/lib/typescript/commonjs/ui/index.d.ts +19 -1
  327. package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
  328. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts +1 -1
  329. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
  330. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts +1 -1
  331. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  332. package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts +1 -1
  333. package/lib/typescript/commonjs/ui/screens/FollowersListScreen.d.ts.map +1 -1
  334. package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts +1 -1
  335. package/lib/typescript/commonjs/ui/screens/FollowingListScreen.d.ts.map +1 -1
  336. package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts +1 -1
  337. package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  338. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts +1 -1
  339. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  340. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  341. package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts +1 -1
  342. package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
  343. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts +1 -1
  344. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  345. package/lib/typescript/commonjs/ui/stores/assetStore.d.ts +1 -1
  346. package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
  347. package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts +1 -1
  348. package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
  349. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +1 -1
  350. package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
  351. package/lib/typescript/module/ui/components/ActivityIndicator.d.ts +1 -1
  352. package/lib/typescript/module/ui/components/ActivityIndicator.d.ts.map +1 -1
  353. package/lib/typescript/module/ui/components/BottomSheet.d.ts +1 -1
  354. package/lib/typescript/module/ui/components/BottomSheet.d.ts.map +1 -1
  355. package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts.map +1 -1
  356. package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts +1 -1
  357. package/lib/typescript/module/ui/components/CrossFadeIcon.d.ts.map +1 -1
  358. package/lib/typescript/module/ui/components/ErrorBoundary.d.ts +1 -1
  359. package/lib/typescript/module/ui/components/ErrorBoundary.d.ts.map +1 -1
  360. package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
  361. package/lib/typescript/module/ui/components/FontLoader.d.ts +1 -1
  362. package/lib/typescript/module/ui/components/FontLoader.d.ts.map +1 -1
  363. package/lib/typescript/module/ui/components/GroupedItem.d.ts +1 -1
  364. package/lib/typescript/module/ui/components/GroupedItem.d.ts.map +1 -1
  365. package/lib/typescript/module/ui/components/GroupedSection.d.ts +1 -1
  366. package/lib/typescript/module/ui/components/GroupedSection.d.ts.map +1 -1
  367. package/lib/typescript/module/ui/components/Header.d.ts.map +1 -1
  368. package/lib/typescript/module/ui/components/HelperText.d.ts +1 -1
  369. package/lib/typescript/module/ui/components/HelperText.d.ts.map +1 -1
  370. package/lib/typescript/module/ui/components/Icon.d.ts +2 -2
  371. package/lib/typescript/module/ui/components/Icon.d.ts.map +1 -1
  372. package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts +3 -3
  373. package/lib/typescript/module/ui/components/IconButton/IconButton.d.ts.map +1 -1
  374. package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
  375. package/lib/typescript/module/ui/components/SignInModal.d.ts +1 -1
  376. package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
  377. package/lib/typescript/module/ui/components/Surface.d.ts +1 -1
  378. package/lib/typescript/module/ui/components/Surface.d.ts.map +1 -1
  379. package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts +2 -2
  380. package/lib/typescript/module/ui/components/TextField/Addons/Outline.d.ts.map +1 -1
  381. package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts +1 -1
  382. package/lib/typescript/module/ui/components/TextField/Addons/Underline.d.ts.map +1 -1
  383. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAdornment.d.ts.map +1 -1
  384. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts +1 -1
  385. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldAffix.d.ts.map +1 -1
  386. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts +1 -1
  387. package/lib/typescript/module/ui/components/TextField/Adornment/TextFieldIcon.d.ts.map +1 -1
  388. package/lib/typescript/module/ui/components/TextField/helpers.d.ts +1 -1
  389. package/lib/typescript/module/ui/components/TextField/helpers.d.ts.map +1 -1
  390. package/lib/typescript/module/ui/components/TextField/types.d.ts +1 -1
  391. package/lib/typescript/module/ui/components/TextField/types.d.ts.map +1 -1
  392. package/lib/typescript/module/ui/components/TextField.d.ts +3 -3
  393. package/lib/typescript/module/ui/components/TextField.d.ts.map +1 -1
  394. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts +1 -1
  395. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.d.ts.map +1 -1
  396. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +2 -2
  397. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
  398. package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts +2 -2
  399. package/lib/typescript/module/ui/components/Typography/AnimatedText.d.ts.map +1 -1
  400. package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts +1 -1
  401. package/lib/typescript/module/ui/components/fileManagement/AnimatedButton.d.ts.map +1 -1
  402. package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts +1 -1
  403. package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
  404. package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts +1 -1
  405. package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
  406. package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts +1 -1
  407. package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
  408. package/lib/typescript/module/ui/components/internal/GroupedPillButtons.d.ts.map +1 -1
  409. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts +1 -1
  410. package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
  411. package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts +1 -1
  412. package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
  413. package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts +1 -1
  414. package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
  415. package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts +1 -1
  416. package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
  417. package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts +1 -1
  418. package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
  419. package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts +1 -1
  420. package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
  421. package/lib/typescript/module/ui/components/styles/overlay.d.ts.map +1 -1
  422. package/lib/typescript/module/ui/components/styles/shadow.d.ts +1 -1
  423. package/lib/typescript/module/ui/components/styles/shadow.d.ts.map +1 -1
  424. package/lib/typescript/module/ui/context/OxyContext.d.ts +2 -1
  425. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  426. package/lib/typescript/module/ui/context/ThemeContext.d.ts +1 -1
  427. package/lib/typescript/module/ui/context/ThemeContext.d.ts.map +1 -1
  428. package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts +1 -1
  429. package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
  430. package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
  431. package/lib/typescript/module/ui/hooks/useAssets.d.ts +2 -2
  432. package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
  433. package/lib/typescript/module/ui/hooks/useAuth.d.ts +4 -0
  434. package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
  435. package/lib/typescript/module/ui/hooks/useFileFiltering.d.ts.map +1 -1
  436. package/lib/typescript/module/ui/index.d.ts +19 -1
  437. package/lib/typescript/module/ui/index.d.ts.map +1 -1
  438. package/lib/typescript/module/ui/screens/FAQScreen.d.ts +1 -1
  439. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
  440. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts +1 -1
  441. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  442. package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts +1 -1
  443. package/lib/typescript/module/ui/screens/FollowersListScreen.d.ts.map +1 -1
  444. package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts +1 -1
  445. package/lib/typescript/module/ui/screens/FollowingListScreen.d.ts.map +1 -1
  446. package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts +1 -1
  447. package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  448. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts +1 -1
  449. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  450. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  451. package/lib/typescript/module/ui/screens/UserListScreen.d.ts +1 -1
  452. package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
  453. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts +1 -1
  454. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  455. package/lib/typescript/module/ui/stores/assetStore.d.ts +1 -1
  456. package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
  457. package/lib/typescript/module/ui/utils/avatarUtils.d.ts +1 -1
  458. package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
  459. package/lib/typescript/module/ui/utils/fileManagement.d.ts +1 -1
  460. package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
  461. package/lib/typescript/types/expo-crypto.d.ts +1 -1
  462. package/lib/typescript/types/expo-secure-store.d.ts +4 -4
  463. package/package.json +1 -1
  464. package/src/types/expo-crypto.d.ts +1 -1
  465. package/src/types/expo-secure-store.d.ts +4 -4
  466. package/src/ui/components/ActivityIndicator.tsx +6 -6
  467. package/src/ui/components/BottomSheet.tsx +11 -12
  468. package/src/ui/components/BottomSheetRouter.tsx +69 -7
  469. package/src/ui/components/CrossFadeIcon.tsx +2 -2
  470. package/src/ui/components/ErrorBoundary.tsx +1 -1
  471. package/src/ui/components/FollowButton.tsx +3 -5
  472. package/src/ui/components/FontLoader.tsx +2 -1
  473. package/src/ui/components/GroupedItem.tsx +3 -3
  474. package/src/ui/components/GroupedSection.tsx +2 -1
  475. package/src/ui/components/Header.tsx +1 -1
  476. package/src/ui/components/HelperText.tsx +5 -5
  477. package/src/ui/components/Icon.tsx +5 -5
  478. package/src/ui/components/IconButton/IconButton.tsx +8 -8
  479. package/src/ui/components/OxyProvider.tsx +16 -10
  480. package/src/ui/components/SignInModal.tsx +2 -1
  481. package/src/ui/components/Surface.tsx +4 -4
  482. package/src/ui/components/TextField/Addons/Outline.tsx +4 -4
  483. package/src/ui/components/TextField/Addons/Underline.tsx +1 -1
  484. package/src/ui/components/TextField/Adornment/TextFieldAdornment.tsx +5 -8
  485. package/src/ui/components/TextField/Adornment/TextFieldAffix.tsx +6 -6
  486. package/src/ui/components/TextField/Adornment/TextFieldIcon.tsx +4 -4
  487. package/src/ui/components/TextField/Adornment/utils.ts +3 -3
  488. package/src/ui/components/TextField/Label/InputLabel.tsx +1 -1
  489. package/src/ui/components/TextField/TextFieldFlat.tsx +3 -3
  490. package/src/ui/components/TextField/TextFieldOutlined.tsx +5 -5
  491. package/src/ui/components/TextField/helpers.tsx +4 -5
  492. package/src/ui/components/TextField/types.tsx +1 -1
  493. package/src/ui/components/TextField.tsx +8 -11
  494. package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +6 -6
  495. package/src/ui/components/TouchableRipple/TouchableRipple.tsx +8 -8
  496. package/src/ui/components/Typography/AnimatedText.tsx +5 -6
  497. package/src/ui/components/feedback/FormInput.tsx +1 -1
  498. package/src/ui/components/fileManagement/AnimatedButton.tsx +2 -1
  499. package/src/ui/components/fileManagement/FileDetailsModal.tsx +1 -1
  500. package/src/ui/components/fileManagement/FileViewer.tsx +2 -1
  501. package/src/ui/components/fileManagement/UploadPreview.tsx +1 -1
  502. package/src/ui/components/internal/GroupedPillButtons.tsx +2 -6
  503. package/src/ui/components/modals/DeleteAccountModal.tsx +4 -3
  504. package/src/ui/components/payment/PaymentDetailsStep.tsx +2 -1
  505. package/src/ui/components/payment/PaymentMethodStep.tsx +2 -1
  506. package/src/ui/components/payment/PaymentReviewStep.tsx +2 -1
  507. package/src/ui/components/payment/PaymentSuccessStep.tsx +2 -1
  508. package/src/ui/components/payment/PaymentSummaryStep.tsx +2 -1
  509. package/src/ui/components/payment/paymentStyles.ts +2 -2
  510. package/src/ui/components/styles/overlay.tsx +6 -6
  511. package/src/ui/components/styles/shadow.tsx +9 -14
  512. package/src/ui/components/theming.tsx +7 -7
  513. package/src/ui/context/OxyContext.tsx +2 -1
  514. package/src/ui/context/ThemeContext.tsx +1 -1
  515. package/src/ui/hooks/mutations/mutationFactory.ts +1 -1
  516. package/src/ui/hooks/queries/useSecurityQueries.ts +1 -1
  517. package/src/ui/hooks/useAssets.ts +3 -23
  518. package/src/ui/hooks/useAuth.ts +7 -0
  519. package/src/ui/hooks/useFileFiltering.ts +1 -2
  520. package/src/ui/index.ts +19 -1
  521. package/src/ui/screens/AccountSwitcherScreen.tsx +1 -1
  522. package/src/ui/screens/EditProfileFieldScreen.tsx +1 -1
  523. package/src/ui/screens/FAQScreen.tsx +2 -1
  524. package/src/ui/screens/FeedbackScreen.tsx +3 -2
  525. package/src/ui/screens/FileManagementScreen.tsx +10 -10
  526. package/src/ui/screens/FollowersListScreen.tsx +1 -1
  527. package/src/ui/screens/FollowingListScreen.tsx +1 -1
  528. package/src/ui/screens/LearnMoreUsernamesScreen.tsx +4 -3
  529. package/src/ui/screens/PaymentGatewayScreen.tsx +3 -2
  530. package/src/ui/screens/PremiumSubscriptionScreen.tsx +5 -7
  531. package/src/ui/screens/ProfileScreen.tsx +1 -1
  532. package/src/ui/screens/UserListScreen.tsx +2 -1
  533. package/src/ui/screens/WelcomeNewUserScreen.tsx +3 -2
  534. package/src/ui/screens/karma/KarmaCenterScreen.tsx +5 -5
  535. package/src/ui/screens/karma/KarmaLeaderboardScreen.tsx +1 -1
  536. package/src/ui/stores/assetStore.ts +1 -1
  537. package/src/ui/stores/followStore.ts +2 -2
  538. package/src/ui/utils/avatarUtils.ts +2 -2
  539. package/src/ui/utils/fileManagement.ts +4 -4
  540. package/src/ui/utils/userUtils.ts +1 -1
  541. package/lib/commonjs/ui/context/hooks/useDeviceManagement.js +0 -73
  542. package/lib/commonjs/ui/context/hooks/useDeviceManagement.js.map +0 -1
  543. package/lib/commonjs/ui/context/hooks/useLanguageManagement.js +0 -112
  544. package/lib/commonjs/ui/context/hooks/useLanguageManagement.js.map +0 -1
  545. package/lib/commonjs/ui/context/hooks/useSessionManagement.js +0 -279
  546. package/lib/commonjs/ui/context/hooks/useSessionManagement.js.map +0 -1
  547. package/lib/module/ui/context/hooks/useDeviceManagement.js +0 -68
  548. package/lib/module/ui/context/hooks/useDeviceManagement.js.map +0 -1
  549. package/lib/module/ui/context/hooks/useLanguageManagement.js +0 -107
  550. package/lib/module/ui/context/hooks/useLanguageManagement.js.map +0 -1
  551. package/lib/module/ui/context/hooks/useSessionManagement.js +0 -274
  552. package/lib/module/ui/context/hooks/useSessionManagement.js.map +0 -1
  553. package/lib/typescript/commonjs/ui/context/hooks/useDeviceManagement.d.ts +0 -27
  554. package/lib/typescript/commonjs/ui/context/hooks/useDeviceManagement.d.ts.map +0 -1
  555. package/lib/typescript/commonjs/ui/context/hooks/useLanguageManagement.d.ts +0 -25
  556. package/lib/typescript/commonjs/ui/context/hooks/useLanguageManagement.d.ts.map +0 -1
  557. package/lib/typescript/commonjs/ui/context/hooks/useSessionManagement.d.ts +0 -41
  558. package/lib/typescript/commonjs/ui/context/hooks/useSessionManagement.d.ts.map +0 -1
  559. package/lib/typescript/module/ui/context/hooks/useDeviceManagement.d.ts +0 -27
  560. package/lib/typescript/module/ui/context/hooks/useDeviceManagement.d.ts.map +0 -1
  561. package/lib/typescript/module/ui/context/hooks/useLanguageManagement.d.ts +0 -25
  562. package/lib/typescript/module/ui/context/hooks/useLanguageManagement.d.ts.map +0 -1
  563. package/lib/typescript/module/ui/context/hooks/useSessionManagement.d.ts +0 -41
  564. package/lib/typescript/module/ui/context/hooks/useSessionManagement.d.ts.map +0 -1
  565. package/src/ui/context/hooks/useDeviceManagement.ts +0 -108
  566. package/src/ui/context/hooks/useLanguageManagement.ts +0 -152
  567. package/src/ui/context/hooks/useSessionManagement.ts +0 -399
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import {
3
3
  StyleSheet,
4
- ColorValue,
5
- StyleProp,
4
+ type ColorValue,
5
+ type StyleProp,
6
6
  View,
7
- ViewStyle,
7
+ type ViewStyle,
8
8
  } from 'react-native';
9
9
 
10
- import { TextInputLabelProp } from '../types';
10
+ import type { TextInputLabelProp } from '../types';
11
11
 
12
12
  type OutlineProps = {
13
13
  isV3: boolean;
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { Animated, StyleSheet, StyleProp, ViewStyle } from 'react-native';
2
+ import { Animated, StyleSheet, type StyleProp, type ViewStyle } from 'react-native';
3
3
 
4
4
  import type { ThemeProp } from '../../types';
5
5
 
@@ -25,7 +25,7 @@ export function getAdornmentConfig({
25
25
  left?: React.ReactNode;
26
26
  right?: React.ReactNode;
27
27
  }): Array<AdornmentConfig> {
28
- let adornmentConfig: any[] = [];
28
+ const adornmentConfig: any[] = [];
29
29
  if (left || right) {
30
30
  [
31
31
  { side: AdornmentSide.Left, adornment: left },
@@ -104,9 +104,8 @@ export function getAdornmentStyleAdjustmentForNativeInput({
104
104
  {}
105
105
  );
106
106
  return allStyleAdjustmentsMerged;
107
- } else {
108
- return [{}];
109
107
  }
108
+ return [{}];
110
109
  }
111
110
 
112
111
  const captalize = (text: string) =>
@@ -181,7 +180,7 @@ const TextFieldAdornment: React.FunctionComponent<TextFieldAdornmentProps> = ({
181
180
  forceFocus={forceFocus}
182
181
  />
183
182
  );
184
- } else if (type === AdornmentType.Affix) {
183
+ }if (type === AdornmentType.Affix) {
185
184
  return (
186
185
  <AffixAdornment
187
186
  {...commonProps}
@@ -194,15 +193,13 @@ const TextFieldAdornment: React.FunctionComponent<TextFieldAdornmentProps> = ({
194
193
  maxFontSizeMultiplier={maxFontSizeMultiplier}
195
194
  />
196
195
  );
197
- } else {
198
- return null;
199
196
  }
197
+ return null;
200
198
  })}
201
199
  </>
202
200
  );
203
- } else {
204
- return null;
205
201
  }
202
+ return null;
206
203
  };
207
204
 
208
205
  export default TextFieldAdornment;
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
2
  import {
3
3
  Animated,
4
- DimensionValue,
5
- GestureResponderEvent,
6
- LayoutChangeEvent,
4
+ type DimensionValue,
5
+ type GestureResponderEvent,
6
+ type LayoutChangeEvent,
7
7
  Pressable,
8
- StyleProp,
8
+ type StyleProp,
9
9
  StyleSheet,
10
10
  Text,
11
- TextStyle,
12
- ViewStyle,
11
+ type TextStyle,
12
+ type ViewStyle,
13
13
  } from 'react-native';
14
14
 
15
15
  import { AdornmentSide } from './enums';
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import {
3
- ColorValue,
4
- GestureResponderEvent,
5
- StyleProp,
3
+ type ColorValue,
4
+ type GestureResponderEvent,
5
+ type StyleProp,
6
6
  StyleSheet,
7
7
  View,
8
- ViewStyle,
8
+ type ViewStyle,
9
9
  } from 'react-native';
10
10
 
11
11
  import { getIconColor } from './utils';
@@ -19,9 +19,9 @@ const hexToRgba = (hex: string, alpha: number): string => {
19
19
  }
20
20
  }
21
21
  // Handle hex strings
22
- const r = parseInt(hex.slice(1, 3), 16);
23
- const g = parseInt(hex.slice(3, 5), 16);
24
- const b = parseInt(hex.slice(5, 7), 16);
22
+ const r = Number.parseInt(hex.slice(1, 3), 16);
23
+ const g = Number.parseInt(hex.slice(3, 5), 16);
24
+ const b = Number.parseInt(hex.slice(5, 7), 16);
25
25
  return `rgba(${r}, ${g}, ${b}, ${alpha})`;
26
26
  };
27
27
 
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import {
3
3
  Animated,
4
- ColorValue,
4
+ type ColorValue,
5
5
  Platform,
6
6
  StyleSheet,
7
7
  useWindowDimensions,
@@ -4,7 +4,7 @@ import {
4
4
  Platform,
5
5
  StyleSheet,
6
6
  TextInput as NativeTextInput,
7
- TextStyle,
7
+ type TextStyle,
8
8
  View,
9
9
  Animated,
10
10
  } from 'react-native';
@@ -13,7 +13,7 @@ import { useThemeColors } from '../../hooks/useThemeColors';
13
13
  import { Underline } from './Addons/Underline';
14
14
  import { AdornmentSide, AdornmentType, InputMode } from './Adornment/enums';
15
15
  import TextFieldAdornment, {
16
- TextFieldAdornmentProps,
16
+ type TextFieldAdornmentProps,
17
17
  } from './Adornment/TextFieldAdornment';
18
18
  import {
19
19
  getAdornmentConfig,
@@ -38,7 +38,7 @@ import {
38
38
  calculatePadding,
39
39
  getConstants,
40
40
  getFlatInputColors,
41
- Padding,
41
+ type Padding,
42
42
  } from './helpers';
43
43
  import InputLabel from './Label/InputLabel';
44
44
  import type { ChildTextInputProps, RenderProps } from './types';
@@ -6,9 +6,9 @@ import {
6
6
  StyleSheet,
7
7
  I18nManager,
8
8
  Platform,
9
- TextStyle,
10
- ColorValue,
11
- LayoutChangeEvent,
9
+ type TextStyle,
10
+ type ColorValue,
11
+ type LayoutChangeEvent,
12
12
  } from 'react-native';
13
13
  import { useThemeColors } from '../../hooks/useThemeColors';
14
14
 
@@ -17,7 +17,7 @@ import { AdornmentType, AdornmentSide } from './Adornment/enums';
17
17
  import TextFieldAdornment, {
18
18
  getAdornmentConfig,
19
19
  getAdornmentStyleAdjustmentForNativeInput,
20
- TextFieldAdornmentProps,
20
+ type TextFieldAdornmentProps,
21
21
  } from './Adornment/TextFieldAdornment';
22
22
  import {
23
23
  MAXIMIZED_LABEL_FONT_SIZE,
@@ -34,7 +34,7 @@ import {
34
34
  calculateInputHeight,
35
35
  calculatePadding,
36
36
  adjustPaddingOut,
37
- Padding,
37
+ type Padding,
38
38
  calculateOutlinedIconAndAffixTopPosition,
39
39
  getOutlinedInputColors,
40
40
  getConstants,
@@ -52,8 +52,8 @@ export type Padding = { paddingTop: number; paddingBottom: number };
52
52
 
53
53
  export const calculateLabelTopPosition = (
54
54
  labelHeight: number,
55
- height: number = 0,
56
- optionalPadding: number = 0
55
+ height = 0,
56
+ optionalPadding = 0
57
57
  ): number => {
58
58
  const customHeight = height > 0 ? height : 0;
59
59
 
@@ -62,7 +62,7 @@ export const calculateLabelTopPosition = (
62
62
 
63
63
  export const calculateInputHeight = (
64
64
  labelHeight: number,
65
- height: any = 0,
65
+ height: any,
66
66
  minHeight: number
67
67
  ): number => {
68
68
  const finalHeight = height > 0 ? height : labelHeight;
@@ -408,9 +408,8 @@ const getFlatBackgroundColor = ({ theme, disabled }: BaseProps) => {
408
408
  if (theme.isV3) {
409
409
  if (disabled) {
410
410
  return color(theme.colors.onSurface).alpha(0.04).rgb().string();
411
- } else {
412
- return theme.colors.surfaceVariant;
413
411
  }
412
+ return theme.colors.surfaceVariant;
414
413
  }
415
414
 
416
415
  if (disabled) {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import type {
3
3
  TextInput as NativeTextInput,
4
4
  Animated,
@@ -1,20 +1,20 @@
1
1
  import * as React from 'react';
2
2
  import {
3
3
  Animated,
4
- LayoutChangeEvent,
5
- StyleProp,
4
+ type LayoutChangeEvent,
5
+ type StyleProp,
6
6
  TextInput as NativeTextInput,
7
- TextStyle,
8
- ViewStyle,
9
- NativeSyntheticEvent,
10
- TextLayoutEventData,
7
+ type TextStyle,
8
+ type ViewStyle,
9
+ type NativeSyntheticEvent,
10
+ type TextLayoutEventData,
11
11
  } from 'react-native';
12
12
 
13
13
  import TextFieldAffix, {
14
- Props as TextFieldAffixProps,
14
+ type Props as TextFieldAffixProps,
15
15
  } from './TextField/Adornment/TextFieldAffix';
16
16
  import TextFieldIcon, {
17
- Props as TextFieldIconProps,
17
+ type Props as TextFieldIconProps,
18
18
  } from './TextField/Adornment/TextFieldIcon';
19
19
  import TextFieldFlat from './TextField/TextFieldFlat';
20
20
  import TextFieldOutlined from './TextField/TextFieldOutlined';
@@ -314,15 +314,12 @@ const TextField = forwardRef<TextFieldHandles, Props>(
314
314
  useNativeDriver: true,
315
315
  }).start();
316
316
  } else {
317
- // hide error
318
- {
319
317
  Animated.timing(error, {
320
318
  toValue: 0,
321
319
  duration: BLUR_ANIMATION_DURATION * scale,
322
320
  // To prevent this - https://github.com/callstack/react-native-paper/issues/941
323
321
  useNativeDriver: true,
324
322
  }).start();
325
- }
326
323
  }
327
324
  }, [errorProp, scale, error]);
328
325
 
@@ -1,13 +1,13 @@
1
1
  import * as React from 'react';
2
2
  import {
3
- PressableAndroidRippleConfig,
4
- StyleProp,
3
+ type PressableAndroidRippleConfig,
4
+ type StyleProp,
5
5
  Platform,
6
- ViewStyle,
6
+ type ViewStyle,
7
7
  StyleSheet,
8
- GestureResponderEvent,
8
+ type GestureResponderEvent,
9
9
  View,
10
- ColorValue,
10
+ type ColorValue,
11
11
  } from 'react-native';
12
12
 
13
13
  import type { PressableProps } from './Pressable';
@@ -28,7 +28,7 @@ export type Props = PressableProps & {
28
28
  background?: PressableAndroidRippleConfig;
29
29
  centered?: boolean;
30
30
  disabled?: boolean;
31
- onPress?: (e: GestureResponderEvent) => void | null;
31
+ onPress?: (e: GestureResponderEvent) => undefined | null;
32
32
  onLongPress?: (e: GestureResponderEvent) => void;
33
33
  onPressIn?: (e: GestureResponderEvent) => void;
34
34
  onPressOut?: (e: GestureResponderEvent) => void;
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import {
3
- ColorValue,
4
- GestureResponderEvent,
3
+ type ColorValue,
4
+ type GestureResponderEvent,
5
5
  Platform,
6
- StyleProp,
6
+ type StyleProp,
7
7
  StyleSheet,
8
- View,
9
- ViewStyle,
8
+ type View,
9
+ type ViewStyle,
10
10
  } from 'react-native';
11
11
 
12
12
  import type { PressableProps, PressableStateCallbackType } from './Pressable';
@@ -22,9 +22,9 @@ const SettingsContext = React.createContext({ rippleEffectEnabled: true });
22
22
 
23
23
  // Color manipulation utilities (simplified without color package)
24
24
  const hexToRgb = (hex: string): [number, number, number] => {
25
- const r = parseInt(hex.slice(1, 3), 16);
26
- const g = parseInt(hex.slice(3, 5), 16);
27
- const b = parseInt(hex.slice(5, 7), 16);
25
+ const r = Number.parseInt(hex.slice(1, 3), 16);
26
+ const g = Number.parseInt(hex.slice(3, 5), 16);
27
+ const b = Number.parseInt(hex.slice(5, 7), 16);
28
28
  return [r, g, b];
29
29
  };
30
30
 
@@ -1,11 +1,11 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  import {
3
3
  Animated,
4
4
  I18nManager,
5
- StyleProp,
5
+ type StyleProp,
6
6
  StyleSheet,
7
- TextStyle,
8
- Text,
7
+ type TextStyle,
8
+ type Text,
9
9
  } from 'react-native';
10
10
 
11
11
  import type { VariantProp } from './types';
@@ -71,7 +71,7 @@ const AnimatedText = forwardRef<Text & HTMLElement, Props<never>>(
71
71
  ]}
72
72
  />
73
73
  );
74
- } else {
74
+ }
75
75
  const font = !theme.isV3 ? (theme.fonts.regular || theme.fonts.default) : theme.fonts.bodyMedium;
76
76
  const textStyle = {
77
77
  ...font,
@@ -91,7 +91,6 @@ const AnimatedText = forwardRef<Text & HTMLElement, Props<never>>(
91
91
  ]}
92
92
  />
93
93
  );
94
- }
95
94
  }
96
95
  );
97
96
 
@@ -67,7 +67,7 @@ const FormInput: React.FC<FormInputProps> = React.memo(({
67
67
  value={value}
68
68
  onChangeText={onChangeText}
69
69
  placeholder={placeholder}
70
- placeholderTextColor={colors.secondaryText + '60'}
70
+ placeholderTextColor={`${colors.secondaryText}60`}
71
71
  multiline={multiline}
72
72
  numberOfLines={multiline ? numberOfLines : undefined}
73
73
  testID={testID}
@@ -1,4 +1,5 @@
1
- import React, { useEffect, useRef } from 'react';
1
+ import type React from 'react';
2
+ import { useEffect, useRef } from 'react';
2
3
  import { TouchableOpacity, Animated, Easing } from 'react-native';
3
4
  // @ts-ignore - MaterialCommunityIcons is available at runtime
4
5
  import { MaterialCommunityIcons } from '@expo/vector-icons';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import { View, Text, TouchableOpacity, Modal, ScrollView } from 'react-native';
3
3
  import { Ionicons } from '@expo/vector-icons';
4
4
  import type { FileMetadata } from '@oxyhq/core';
@@ -1,4 +1,5 @@
1
- import React, { useMemo, useState, useEffect } from 'react';
1
+ import type React from 'react';
2
+ import { useMemo, useState, useEffect } from 'react';
2
3
  import { View, Text, TouchableOpacity, ScrollView, ActivityIndicator, Image } from 'react-native';
3
4
  import { Image as ExpoImage } from 'expo-image';
4
5
  // @ts-ignore - MaterialCommunityIcons is available at runtime
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  import { View, Text, TouchableOpacity, Modal, ScrollView } from 'react-native';
3
3
  import { Image as ExpoImage } from 'expo-image';
4
4
  import { Ionicons } from '@expo/vector-icons';
@@ -85,7 +85,6 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
85
85
  backgroundColor = isDisabled ? '#CCCCCC' : (colors.secondary || colors.primary);
86
86
  borderColor = isDisabled ? '#CCCCCC' : (colors.secondary || colors.primary);
87
87
  break;
88
- case 'transparent':
89
88
  default:
90
89
  backgroundColor = 'transparent';
91
90
  borderColor = isDisabled ? '#CCCCCC' : colors.border;
@@ -117,7 +116,6 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
117
116
  case 'secondary':
118
117
  textColor = isDisabled ? '#999999' : '#FFFFFF';
119
118
  break;
120
- case 'transparent':
121
119
  default:
122
120
  textColor = isDisabled ? '#999999' : colors.text;
123
121
  break;
@@ -137,7 +135,6 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
137
135
  case 'primary':
138
136
  case 'secondary':
139
137
  return isDisabled ? '#999999' : '#FFFFFF';
140
- case 'transparent':
141
138
  default:
142
139
  return isDisabled ? '#999999' : colors.text;
143
140
  }
@@ -182,7 +179,7 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
182
179
  )}
183
180
  </>
184
181
  );
185
- } else if (isFirstButton || isBack) {
182
+ }if (isFirstButton || isBack) {
186
183
  // First button or back button: icon on left, text on right
187
184
  return (
188
185
  <>
@@ -198,7 +195,7 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
198
195
  </Text>
199
196
  </>
200
197
  );
201
- } else {
198
+ }
202
199
  // Second button or forward/action button: text on left, icon on right
203
200
  return (
204
201
  <>
@@ -214,7 +211,6 @@ const GroupedPillButtons: React.FC<GroupedPillButtonsProps> = ({
214
211
  )}
215
212
  </>
216
213
  );
217
- }
218
214
  };
219
215
 
220
216
  return (
@@ -1,4 +1,5 @@
1
- import React, { useState, useCallback } from 'react';
1
+ import type React from 'react';
2
+ import { useState, useCallback } from 'react';
2
3
  import {
3
4
  View,
4
5
  Text,
@@ -97,7 +98,7 @@ const DeleteAccountModal: React.FC<DeleteAccountModalProps> = ({
97
98
  </Text>
98
99
 
99
100
  {error && (
100
- <View style={[styles.errorContainer, { backgroundColor: colors.danger + '20' }]}>
101
+ <View style={[styles.errorContainer, { backgroundColor: `${colors.danger}20` }]}>
101
102
  <Text style={[styles.errorText, { color: colors.danger }]}>
102
103
  {error}
103
104
  </Text>
@@ -171,7 +172,7 @@ const DeleteAccountModal: React.FC<DeleteAccountModalProps> = ({
171
172
  style={[
172
173
  styles.button,
173
174
  styles.deleteButton,
174
- { backgroundColor: isValid ? colors.danger : colors.danger + '50' },
175
+ { backgroundColor: isValid ? colors.danger : `${colors.danger}50` },
175
176
  ]}
176
177
  onPress={handleDelete}
177
178
  disabled={!isValid || isDeleting}
@@ -1,4 +1,5 @@
1
- import React, { useMemo } from 'react';
1
+ import type React from 'react';
2
+ import { useMemo } from 'react';
2
3
  import { View, Text, Animated, TouchableOpacity, Clipboard, Linking } from 'react-native';
3
4
  import { Ionicons } from '@expo/vector-icons';
4
5
  import GroupedPillButtons from '../internal/GroupedPillButtons';
@@ -1,4 +1,5 @@
1
- import React, { useMemo } from 'react';
1
+ import type React from 'react';
2
+ import { useMemo } from 'react';
2
3
  import { View, Text, Animated } from 'react-native';
3
4
  import { GroupedSection } from '../index';
4
5
  import GroupedPillButtons from '../internal/GroupedPillButtons';
@@ -1,4 +1,5 @@
1
- import React, { useMemo } from 'react';
1
+ import type React from 'react';
2
+ import { useMemo } from 'react';
2
3
  import { View, Text, Animated } from 'react-native';
3
4
  import { GroupedSection } from '../index';
4
5
  import GroupedPillButtons from '../internal/GroupedPillButtons';
@@ -1,4 +1,5 @@
1
- import React, { useMemo } from 'react';
1
+ import type React from 'react';
2
+ import { useMemo } from 'react';
2
3
  import { View, Text, Animated } from 'react-native';
3
4
  import { Ionicons } from '@expo/vector-icons';
4
5
  import GroupedPillButtons from '../internal/GroupedPillButtons';
@@ -1,4 +1,5 @@
1
- import React, { useMemo } from 'react';
1
+ import type React from 'react';
2
+ import { useMemo } from 'react';
2
3
  import { View, Text, Animated } from 'react-native';
3
4
  import { Ionicons } from '@expo/vector-icons';
4
5
  import { GroupedSection } from '../index';
@@ -230,7 +230,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
230
230
  marginBottom: 8,
231
231
  },
232
232
  oxyPayBalanceBox: {
233
- backgroundColor: colors.primary + '22',
233
+ backgroundColor: `${colors.primary}22`,
234
234
  borderRadius: 12,
235
235
  padding: 8,
236
236
  marginTop: 8,
@@ -333,7 +333,7 @@ export const createPaymentStyles = (colors: PaymentColors) => StyleSheet.create(
333
333
  flexDirection: 'row',
334
334
  alignItems: 'center',
335
335
  alignSelf: 'center',
336
- backgroundColor: colors.primary + '11',
336
+ backgroundColor: `${colors.primary}11`,
337
337
  borderRadius: 16,
338
338
  paddingHorizontal: 16,
339
339
  paddingVertical: 8,
@@ -2,16 +2,16 @@ import { Animated } from 'react-native';
2
2
 
3
3
  // Simple hex color manipulation without color package
4
4
  const hexToRgb = (hex: string): [number, number, number] => {
5
- const r = parseInt(hex.slice(1, 3), 16);
6
- const g = parseInt(hex.slice(3, 5), 16);
7
- const b = parseInt(hex.slice(5, 7), 16);
5
+ const r = Number.parseInt(hex.slice(1, 3), 16);
6
+ const g = Number.parseInt(hex.slice(3, 5), 16);
7
+ const b = Number.parseInt(hex.slice(5, 7), 16);
8
8
  return [r, g, b];
9
9
  };
10
10
 
11
11
  const rgbToHex = (r: number, g: number, b: number): string => {
12
12
  return `#${[r, g, b].map(x => {
13
13
  const hex = Math.round(x).toString(16);
14
- return hex.length === 1 ? '0' + hex : hex;
14
+ return hex.length === 1 ? `0${hex}` : hex;
15
15
  }).join('')}`;
16
16
  };
17
17
 
@@ -30,7 +30,7 @@ export const isAnimatedValue = (
30
30
 
31
31
  export default function overlay<T extends Animated.Value | number>(
32
32
  elevation: T,
33
- surfaceColor: string = '#121212'
33
+ surfaceColor = '#121212'
34
34
  ): T extends number ? string : Animated.AnimatedInterpolation<number | string> {
35
35
  if (isAnimatedValue(elevation)) {
36
36
  const inputRange = [0, 1, 2, 3, 8, 24];
@@ -48,7 +48,7 @@ export default function overlay<T extends Animated.Value | number>(
48
48
  return calculateColor(surfaceColor, elevation);
49
49
  }
50
50
 
51
- function calculateColor(surfaceColor: string, elevation: number = 1) {
51
+ function calculateColor(surfaceColor: string, elevation = 1) {
52
52
  let overlayTransparency: number;
53
53
  if (elevation >= 1 && elevation <= 24) {
54
54
  overlayTransparency = elevationOverlayTransparency[elevation];
@@ -1,4 +1,4 @@
1
- import { Animated, Platform, ShadowStyleIOS, ViewStyle } from 'react-native';
1
+ import { Animated, Platform, type ShadowStyleIOS, type ViewStyle } from 'react-native';
2
2
 
3
3
  const SHADOW_COLOR = '#000000';
4
4
  const SHADOW_OPACITY = 0.24;
@@ -36,20 +36,20 @@ function v2Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowSty
36
36
  outputRange: [0, 0.75, 1.5, 3, 8, 24],
37
37
  }),
38
38
  } as unknown as ShadowStyleIOS;
39
- } else {
39
+ }
40
40
  return {
41
41
  elevation: elevation.interpolate({
42
42
  inputRange,
43
43
  outputRange: [0, 1, 2, 3, 8, 24],
44
44
  }) as unknown as number,
45
45
  };
46
- }
47
- } else {
46
+ }
48
47
  if (elevation === 0) {
49
48
  return {};
50
49
  }
51
50
 
52
- let height, radius;
51
+ let height;
52
+ let radius;
53
53
  switch (elevation) {
54
54
  case 1:
55
55
  height = 0.5;
@@ -74,12 +74,10 @@ function v2Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowSty
74
74
  shadowOpacity: SHADOW_OPACITY,
75
75
  shadowRadius: radius,
76
76
  } as ShadowStyleIOS;
77
- } else {
77
+ }
78
78
  return {
79
79
  elevation: elevation,
80
80
  };
81
- }
82
- }
83
81
  }
84
82
 
85
83
  function v3Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowStyleIOS {
@@ -108,15 +106,14 @@ function v3Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowSty
108
106
  outputRange: shadowRadius,
109
107
  }),
110
108
  } as unknown as ShadowStyleIOS;
111
- } else {
109
+ }
112
110
  return {
113
111
  elevation: elevation.interpolate({
114
112
  inputRange,
115
113
  outputRange: [0, 1, 2, 3, 4, 5],
116
114
  }) as unknown as number,
117
115
  };
118
- }
119
- } else {
116
+ }
120
117
  if (Platform.OS === 'ios') {
121
118
  return {
122
119
  shadowColor: MD3_SHADOW_COLOR,
@@ -127,10 +124,8 @@ function v3Shadow(elevation: number | Animated.Value = 0): ViewStyle | ShadowSty
127
124
  },
128
125
  shadowRadius: shadowRadius[elevation] || 0,
129
126
  } as ShadowStyleIOS;
130
- } else {
127
+ }
131
128
  return {
132
129
  elevation: elevation || 0,
133
130
  };
134
- }
135
- }
136
131
  }