@codeleap/mobile 4.2.17 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (200) hide show
  1. package/dist/components/ActivityIndicator/types.d.ts +1 -1
  2. package/dist/components/Autocomplete/index.js +2 -1
  3. package/dist/components/Autocomplete/index.js.map +1 -1
  4. package/dist/components/Autocomplete/types.d.ts +2 -1
  5. package/dist/components/Avatar/index.js +3 -1
  6. package/dist/components/Avatar/index.js.map +1 -1
  7. package/dist/components/Badge/index.js +1 -1
  8. package/dist/components/Badge/index.js.map +1 -1
  9. package/dist/components/Badge/types.d.ts +1 -1
  10. package/dist/components/Button/styles.d.ts +1 -1
  11. package/dist/components/Calendar/index.js +1 -1
  12. package/dist/components/Calendar/index.js.map +1 -1
  13. package/dist/components/Calendar/types.d.ts +1 -1
  14. package/dist/components/DatePickerModal/index.js +3 -1
  15. package/dist/components/DatePickerModal/index.js.map +1 -1
  16. package/dist/components/DatePickerModal/types.d.ts +2 -1
  17. package/dist/components/FileInput/index.js +1 -1
  18. package/dist/components/FileInput/index.js.map +1 -1
  19. package/dist/components/FileInput/types.d.ts +2 -1
  20. package/dist/components/Icon/index.js +2 -1
  21. package/dist/components/Icon/index.js.map +1 -1
  22. package/dist/components/Image/index.js +2 -1
  23. package/dist/components/Image/index.js.map +1 -1
  24. package/dist/components/Image/types.d.ts +1 -1
  25. package/dist/components/ImageView/Spotlight.js +3 -1
  26. package/dist/components/ImageView/Spotlight.js.map +1 -1
  27. package/dist/components/ImageView/component.d.ts +1 -1
  28. package/dist/components/ImageView/component.js +1 -1
  29. package/dist/components/ImageView/component.js.map +1 -1
  30. package/dist/components/InputBase/index.js +2 -1
  31. package/dist/components/InputBase/index.js.map +1 -1
  32. package/dist/components/InputBase/styles.js +1 -1
  33. package/dist/components/InputBase/styles.js.map +1 -1
  34. package/dist/components/InputBase/types.d.ts +1 -1
  35. package/dist/components/List/index.js +2 -1
  36. package/dist/components/List/index.js.map +1 -1
  37. package/dist/components/Modal/index.js +1 -1
  38. package/dist/components/Modal/index.js.map +1 -1
  39. package/dist/components/Modal/types.d.ts +1 -1
  40. package/dist/components/Navigation/Navigation.js +1 -1
  41. package/dist/components/Navigation/Navigation.js.map +1 -1
  42. package/dist/components/NumberIncrement/index.js +2 -1
  43. package/dist/components/NumberIncrement/index.js.map +1 -1
  44. package/dist/components/NumberIncrement/types.d.ts +2 -1
  45. package/dist/components/Pager/PagerDots.d.ts +1 -1
  46. package/dist/components/Pager/index.js +2 -1
  47. package/dist/components/Pager/index.js.map +1 -1
  48. package/dist/components/PaginationIndicator/index.js +1 -1
  49. package/dist/components/PaginationIndicator/index.js.map +1 -1
  50. package/dist/components/PlacesAutocomplete/index.js +1 -1
  51. package/dist/components/PlacesAutocomplete/index.js.map +1 -1
  52. package/dist/components/PlacesAutocomplete/types.d.ts +1 -1
  53. package/dist/components/RadioInput/index.js +1 -1
  54. package/dist/components/RadioInput/index.js.map +1 -1
  55. package/dist/components/RadioInput/types.d.ts +2 -1
  56. package/dist/components/Scroll/index.js +2 -1
  57. package/dist/components/Scroll/index.js.map +1 -1
  58. package/dist/components/SearchInput/index.js +1 -1
  59. package/dist/components/SearchInput/index.js.map +1 -1
  60. package/dist/components/SectionFilters/index.js +2 -1
  61. package/dist/components/SectionFilters/index.js.map +1 -1
  62. package/dist/components/SectionFilters/useSectionFilters.js +2 -1
  63. package/dist/components/SectionFilters/useSectionFilters.js.map +1 -1
  64. package/dist/components/Sections/index.js +2 -1
  65. package/dist/components/Sections/index.js.map +1 -1
  66. package/dist/components/SegmentedControl/Option.d.ts +1 -1
  67. package/dist/components/SegmentedControl/styles.d.ts +1 -1
  68. package/dist/components/SegmentedControl/types.d.ts +1 -1
  69. package/dist/components/Select/index.js +2 -1
  70. package/dist/components/Select/index.js.map +1 -1
  71. package/dist/components/Select/types.d.ts +2 -1
  72. package/dist/components/Slider/index.js +2 -1
  73. package/dist/components/Slider/index.js.map +1 -1
  74. package/dist/components/SortablePhotos/useSortablePhotos.d.ts +1 -1
  75. package/dist/components/SortablePhotos/useSortablePhotos.js +3 -3
  76. package/dist/components/SortablePhotos/useSortablePhotos.js.map +1 -1
  77. package/dist/components/Text/index.js +1 -1
  78. package/dist/components/Text/index.js.map +1 -1
  79. package/dist/components/Text/styles.d.ts +1 -1
  80. package/dist/components/TextInput/index.js +3 -1
  81. package/dist/components/TextInput/index.js.map +1 -1
  82. package/dist/components/TextInput/types.d.ts +2 -1
  83. package/dist/components/Touchable/index.js +3 -1
  84. package/dist/components/Touchable/index.js.map +1 -1
  85. package/dist/components/Touchable/types.d.ts +1 -1
  86. package/dist/components/View/types.d.ts +1 -1
  87. package/dist/modules/types/textInputMask.d.ts +1 -1
  88. package/dist/utils/KeyboardAware/keyboardHooks.js +1 -1
  89. package/dist/utils/KeyboardAware/keyboardHooks.js.map +1 -1
  90. package/dist/utils/MobilePermissionManager/Permission.d.ts +19 -0
  91. package/dist/utils/MobilePermissionManager/Permission.js +65 -0
  92. package/dist/utils/MobilePermissionManager/Permission.js.map +1 -0
  93. package/dist/utils/MobilePermissionManager/PermissionManager.d.ts +24 -0
  94. package/dist/utils/MobilePermissionManager/PermissionManager.js +84 -0
  95. package/dist/utils/MobilePermissionManager/PermissionManager.js.map +1 -0
  96. package/dist/utils/MobilePermissionManager/index.d.ts +3 -0
  97. package/dist/utils/MobilePermissionManager/index.js +5 -0
  98. package/dist/utils/MobilePermissionManager/index.js.map +1 -0
  99. package/dist/utils/MobilePermissionManager/types.d.ts +32 -0
  100. package/dist/utils/MobilePermissionManager/types.js +2 -0
  101. package/dist/utils/MobilePermissionManager/types.js.map +1 -0
  102. package/dist/utils/ModalManager/components.d.ts +1 -1
  103. package/dist/utils/ModalManager/components.js +1 -1
  104. package/dist/utils/ModalManager/components.js.map +1 -1
  105. package/dist/utils/ModalManager/context.d.ts +1 -1
  106. package/dist/utils/ModalManager/context.js +2 -1
  107. package/dist/utils/ModalManager/context.js.map +1 -1
  108. package/dist/utils/NotificationManager/index.d.ts +2 -2
  109. package/dist/utils/NotificationManager/index.js +1 -1
  110. package/dist/utils/NotificationManager/index.js.map +1 -1
  111. package/dist/utils/NotificationManager/types.d.ts +1 -1
  112. package/dist/utils/PermissionManager/context.d.ts +1 -1
  113. package/dist/utils/PermissionManager/context.js +2 -1
  114. package/dist/utils/PermissionManager/context.js.map +1 -1
  115. package/dist/utils/PermissionManager/types.d.ts +1 -1
  116. package/dist/utils/StorageManager.d.ts +1 -1
  117. package/dist/utils/hooks.js +3 -1
  118. package/dist/utils/hooks.js.map +1 -1
  119. package/dist/utils/misc.d.ts +1 -1
  120. package/dist/utils/misc.js +2 -1
  121. package/dist/utils/misc.js.map +1 -1
  122. package/dist/utils/useQueryListRefresh.d.ts +2 -1
  123. package/dist/utils/useQueryListRefresh.js +1 -1
  124. package/dist/utils/useQueryListRefresh.js.map +1 -1
  125. package/package.json +20 -6
  126. package/package.json.bak +19 -5
  127. package/src/components/ActivityIndicator/types.ts +1 -1
  128. package/src/components/Autocomplete/index.tsx +3 -1
  129. package/src/components/Autocomplete/types.ts +2 -1
  130. package/src/components/Avatar/index.tsx +3 -1
  131. package/src/components/Badge/index.tsx +2 -2
  132. package/src/components/Badge/types.ts +1 -1
  133. package/src/components/Button/index.tsx +1 -1
  134. package/src/components/Button/styles.ts +1 -1
  135. package/src/components/Calendar/index.tsx +1 -1
  136. package/src/components/Calendar/types.ts +1 -2
  137. package/src/components/DatePickerModal/index.tsx +3 -1
  138. package/src/components/DatePickerModal/types.ts +2 -1
  139. package/src/components/FileInput/index.tsx +2 -1
  140. package/src/components/FileInput/types.ts +2 -1
  141. package/src/components/Icon/index.tsx +2 -1
  142. package/src/components/Image/index.tsx +2 -1
  143. package/src/components/Image/types.ts +1 -1
  144. package/src/components/ImageView/Spotlight.tsx +3 -1
  145. package/src/components/ImageView/component.tsx +3 -1
  146. package/src/components/InputBase/index.tsx +2 -1
  147. package/src/components/InputBase/styles.ts +1 -1
  148. package/src/components/InputBase/types.ts +1 -1
  149. package/src/components/List/index.tsx +2 -1
  150. package/src/components/Modal/index.tsx +1 -1
  151. package/src/components/Modal/types.ts +1 -1
  152. package/src/components/Navigation/Navigation.tsx +1 -1
  153. package/src/components/NumberIncrement/index.tsx +2 -1
  154. package/src/components/NumberIncrement/types.ts +2 -1
  155. package/src/components/Pager/PagerDots.tsx +1 -1
  156. package/src/components/Pager/index.tsx +2 -1
  157. package/src/components/PaginationIndicator/index.tsx +1 -1
  158. package/src/components/PlacesAutocomplete/index.tsx +1 -1
  159. package/src/components/PlacesAutocomplete/types.ts +1 -1
  160. package/src/components/RadioInput/index.tsx +1 -1
  161. package/src/components/RadioInput/types.ts +2 -1
  162. package/src/components/Scroll/index.tsx +2 -1
  163. package/src/components/SearchInput/index.tsx +1 -1
  164. package/src/components/SectionFilters/index.tsx +2 -1
  165. package/src/components/SectionFilters/useSectionFilters.tsx +2 -1
  166. package/src/components/Sections/index.tsx +2 -1
  167. package/src/components/SegmentedControl/Option.tsx +1 -1
  168. package/src/components/SegmentedControl/styles.ts +1 -1
  169. package/src/components/SegmentedControl/types.ts +1 -1
  170. package/src/components/Select/index.tsx +3 -3
  171. package/src/components/Select/types.ts +2 -1
  172. package/src/components/Slider/index.tsx +2 -1
  173. package/src/components/SortablePhotos/useSortablePhotos.ts +3 -3
  174. package/src/components/Text/index.tsx +1 -1
  175. package/src/components/Text/styles.ts +1 -1
  176. package/src/components/TextInput/index.tsx +3 -1
  177. package/src/components/TextInput/types.ts +2 -1
  178. package/src/components/Touchable/index.tsx +3 -1
  179. package/src/components/Touchable/types.ts +1 -1
  180. package/src/components/View/types.ts +1 -1
  181. package/src/modules/types/textInputMask.ts +1 -1
  182. package/src/utils/KeyboardAware/keyboardHooks.ts +1 -1
  183. package/src/utils/MobilePermissionManager/Permission.ts +79 -0
  184. package/src/utils/MobilePermissionManager/PermissionManager.ts +124 -0
  185. package/src/utils/MobilePermissionManager/index.ts +3 -0
  186. package/src/utils/MobilePermissionManager/types.ts +44 -0
  187. package/src/utils/ModalManager/components.tsx +2 -1
  188. package/src/utils/ModalManager/context.tsx +2 -1
  189. package/src/utils/NotificationManager/index.ts +2 -1
  190. package/src/utils/NotificationManager/types.ts +1 -1
  191. package/src/utils/PermissionManager/context.tsx +3 -1
  192. package/src/utils/PermissionManager/types.ts +1 -1
  193. package/src/utils/StorageManager.ts +1 -1
  194. package/src/utils/hooks.ts +3 -1
  195. package/src/utils/misc.ts +2 -1
  196. package/src/utils/useQueryListRefresh.ts +2 -1
  197. package/dist/utils/deprecated/notifications.d.ts +0 -40
  198. package/dist/utils/deprecated/notifications.js +0 -167
  199. package/dist/utils/deprecated/notifications.js.map +0 -1
  200. package/src/utils/deprecated/notifications.ts +0 -213
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../src/utils/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAC3G,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAkB,QAAQ,EAAE,WAAW,EAAoC,UAAU,EAAa,MAAM,cAAc,CAAA;AACjJ,OAAO,EAAqB,MAAM,EAAY,gBAAgB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAE3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE9C,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,IAA8C;IAC3F,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAA;IACvB,MAAM,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAA;IAC1D,M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AAE,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;AAC5G,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react-native" />
2
- import { MobileFile, MobileInputFile } from '@codeleap/common';
2
+ import { MobileFile, MobileInputFile } from '@codeleap/types';
3
3
  export declare const stringToFile: (str: string) => MobileInputFile;
4
4
  export declare function toMultipartFile(file: MobileInputFile): MobileFile<{}>;
5
5
  export declare function isFile(param: any): param is MobileInputFile;
@@ -1,4 +1,5 @@
1
- import { parseFilePathData, TypeGuards } from '@codeleap/common';
1
+ import { TypeGuards } from '@codeleap/types';
2
+ import { parseFilePathData } from '@codeleap/utils';
2
3
  export const stringToFile = (str) => {
3
4
  if (!str) {
4
5
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"misc.js","sourceRoot":"","sources":["../../src/utils/misc.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+B,iBAAiB,EAAmB,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE9G,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAW,EAAmB,EAAE;IAC3D,IAAI,CAAC,GAAG,EAAE;QACR,OAAO;YACL,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,IAAI;SACd,CAAA;KACF;IACD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAA;IAEvC,MAAM,IAAI,GAAe;QACvB,IAAI,EAAE,QAAQ,CAAC,IAAI;QACnB,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC,SAAS;QACnC,IAAI,EAAE,IAAI;QACV,GAAG,EAAE,GAAG;QACR,WAAW,EAAE,GAAG;KACjB,CAAA;IAED,OAAO;QACL,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,IAAI,CAAC,GAAG;KAClB,CAAA;AACH,CAAC,CAAA;AAED,MAAM,UAAU,eAAe,CAAC,IAAqB;IACnD,4CAA4C;IAC5C,MAAM,WAAW,GAAG,IAAuB,CAAA;IAC3C,IAAI,CAAC,CAA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AAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAA;IACrC,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAA;IAE1C,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,GAAG,EAAE,GAAG;KACT,CAAA;AACH,CAAC"}
@@ -1,4 +1,5 @@
1
- import { AnyFunction, UseListEffect } from '@codeleap/common';
1
+ import { AnyFunction } from '@codeleap/types';
2
+ import { UseListEffect } from '@codeleap/query';
2
3
  type useQueryListRefresh = (listQuery: Parameters<UseListEffect>[0], options?: {
3
4
  staleTime?: number;
4
5
  silentRefresh?: boolean;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { useFocusEffect } from '@react-navigation/native';
3
- import { TypeGuards } from '@codeleap/common';
3
+ import { TypeGuards } from '@codeleap/types';
4
4
  export const useQueryListRefresh = (listQuery, options = {}) => {
5
5
  const { staleTime = 5000, initialStale = listQuery?.query?.isStale, cancelQueryEnabled = true, refreshQueryEnabled = true, silentRefresh = false, onFocus, onBlur, } = options;
6
6
  const staleRefetch = React.useRef(initialStale);
@@ -1 +1 @@
1
- {"version":3,"file":"useQueryListRefresh.js","sourceRoot":"","sources":["../../src/utils/useQueryListRefresh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAe,UAAU,EAAiB,MAAM,kBAAkB,CAAA;AAezE,MAAM,CAAC,MAAM,mBAAmB,GAAwB,CAAC,SAAS,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE;IAClF,MAAM,EACJ,SAAS,GAAG,IAAI,EAChB,YAAY,GAAG,SAAS,EAAE,KAAK,EAAE,OAAO,EACxC,kBAAkB,GAAG,IAAI,EACzB,mBAAmB,GAAG,IAAI,EAC1B,aAAa,GAAG,KAAK,EACrB,OAAO,EACP,MAAM,GACP,GAAG,OAAO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@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/mobile",
3
- "version": "4.2.17",
3
+ "version": "4.3.0",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -9,16 +9,30 @@
9
9
  "directory": "packages/mobile"
10
10
  },
11
11
  "devDependencies": {
12
- "@codeleap/common": "4.2.17",
13
- "@codeleap/config": "4.2.17"
12
+ "@codeleap/types": "4.3.0",
13
+ "@codeleap/utils": "4.3.0",
14
+ "@codeleap/hooks": "4.3.0",
15
+ "@codeleap/form": "4.3.0",
16
+ "@codeleap/i18n": "4.3.0",
17
+ "@codeleap/query": "4.3.0",
18
+ "@codeleap/logger": "4.3.0",
19
+ "@codeleap/config": "4.3.0",
20
+ "@codeleap/common": "4.3.0"
14
21
  },
15
22
  "scripts": {
16
23
  "build": "tsc --build",
17
24
  "lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
18
25
  },
19
26
  "peerDependencies": {
20
- "@codeleap/common": "4.2.17",
21
- "@codeleap/styles": "4.2.17",
27
+ "@codeleap/types": "4.3.0",
28
+ "@codeleap/utils": "4.3.0",
29
+ "@codeleap/hooks": "4.3.0",
30
+ "@codeleap/form": "4.3.0",
31
+ "@codeleap/i18n": "4.3.0",
32
+ "@codeleap/query": "4.3.0",
33
+ "@codeleap/logger": "4.3.0",
34
+ "@codeleap/styles": "4.3.0",
35
+ "@codeleap/common": "4.3.0",
22
36
  "@d11/react-native-fast-image": "8.8.0",
23
37
  "@react-native-firebase/messaging": "21.4.0",
24
38
  "@react-navigation/bottom-tabs": "6.5.3",
@@ -27,7 +41,7 @@
27
41
  "@react-navigation/native-stack": "6.9.8",
28
42
  "@react-navigation/stack": "6.3.11",
29
43
  "react": "18.1.0",
30
- "react-native": "0.76.1",
44
+ "react-native": "0.76.3",
31
45
  "react-native-avoid-softinput": "6.0.2",
32
46
  "react-native-calendars": "1.1293.0",
33
47
  "react-native-date-picker": "4.2.13",
package/package.json.bak CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/mobile",
3
- "version": "4.2.17",
3
+ "version": "4.3.0",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -9,16 +9,30 @@
9
9
  "directory": "packages/mobile"
10
10
  },
11
11
  "devDependencies": {
12
- "@codeleap/common": "workspace:*",
13
- "@codeleap/config": "workspace:*"
12
+ "@codeleap/types": "workspace:*",
13
+ "@codeleap/utils": "workspace:*",
14
+ "@codeleap/hooks": "workspace:*",
15
+ "@codeleap/form": "workspace:*",
16
+ "@codeleap/i18n": "workspace:*",
17
+ "@codeleap/query": "workspace:*",
18
+ "@codeleap/logger": "workspace:*",
19
+ "@codeleap/config": "workspace:*",
20
+ "@codeleap/common": "workspace:*"
14
21
  },
15
22
  "scripts": {
16
23
  "build": "tsc --build",
17
24
  "lint": "eslint -c .eslintrc.js --fix \"./src/**/*.{ts,tsx,js,jsx}\""
18
25
  },
19
26
  "peerDependencies": {
20
- "@codeleap/common": "workspace:*",
27
+ "@codeleap/types": "workspace:*",
28
+ "@codeleap/utils": "workspace:*",
29
+ "@codeleap/hooks": "workspace:*",
30
+ "@codeleap/form": "workspace:*",
31
+ "@codeleap/i18n": "workspace:*",
32
+ "@codeleap/query": "workspace:*",
33
+ "@codeleap/logger": "workspace:*",
21
34
  "@codeleap/styles": "workspace:*",
35
+ "@codeleap/common": "workspace:*",
22
36
  "@d11/react-native-fast-image": "8.8.0",
23
37
  "@react-native-firebase/messaging": "21.4.0",
24
38
  "@react-navigation/bottom-tabs": "6.5.3",
@@ -27,7 +41,7 @@
27
41
  "@react-navigation/native-stack": "6.9.8",
28
42
  "@react-navigation/stack": "6.3.11",
29
43
  "react": "18.1.0",
30
- "react-native": "0.76.1",
44
+ "react-native": "0.76.3",
31
45
  "react-native-avoid-softinput": "6.0.2",
32
46
  "react-native-calendars": "1.1293.0",
33
47
  "react-native-date-picker": "4.2.13",
@@ -1,4 +1,4 @@
1
- import { PropsOf } from '@codeleap/common'
1
+ import { PropsOf } from '@codeleap/types'
2
2
  import { StyledProp } from '@codeleap/styles'
3
3
  import { ActivityIndicator as RNActivityIndicator } from 'react-native'
4
4
  import { ActivityIndicatorComposition } from './styles'
@@ -1,5 +1,7 @@
1
1
  import React, { useCallback } from 'react'
2
- import { TypeGuards, FormTypes, onMount, useSearch } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { FormTypes } from '@codeleap/form'
4
+ import { onMount, useSearch } from '@codeleap/hooks'
3
5
  import { List } from '../List'
4
6
  import { SearchInput } from '../SearchInput'
5
7
  import { AutocompleteProps } from './types'
@@ -1,4 +1,5 @@
1
- import { FormTypes, PropsOf } from '@codeleap/common'
1
+ import { PropsOf } from '@codeleap/types'
2
+ import { FormTypes } from '@codeleap/form'
2
3
  import { StylesOf } from '../../types/utility'
3
4
  import { GetKeyboardAwarePropsOptions } from '../../utils'
4
5
  import { Icon } from '../Icon'
@@ -1,5 +1,7 @@
1
1
  import React from 'react'
2
- import { TypeGuards, matchInitialToColor, useMemo } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { useMemo } from '@codeleap/hooks'
4
+ import { matchInitialToColor } from '@codeleap/utils'
3
5
  import { Image } from '../Image'
4
6
  import { Touchable } from '../Touchable'
5
7
  import { Text } from '../Text'
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
- import { TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
3
  import { Text } from '../Text'
4
- import { View, ViewProps } from '../View'
4
+ import { View } from '../View'
5
5
  import { BadgeContent, BadgeProps } from './types'
6
6
  import { MobileStyleRegistry } from '../../Registry'
7
7
  import { AnyRecord, IJSX, StyledComponentProps } from '@codeleap/styles'
@@ -1,4 +1,4 @@
1
- import { PropsOf } from '@codeleap/common'
1
+ import { PropsOf } from '@codeleap/types'
2
2
  import { StyledProp } from '@codeleap/styles'
3
3
  import { Text } from '../Text'
4
4
  import { View, ViewProps } from '../View'
@@ -1,5 +1,5 @@
1
1
  import React, { forwardRef, useState } from 'react'
2
- import { GetRefType } from '@codeleap/common'
2
+ import { GetRefType } from '@codeleap/types'
3
3
  import { ButtonParts } from './styles'
4
4
  import { Text } from '../Text'
5
5
  import { Touchable, TouchableProps } from '../Touchable'
@@ -1,4 +1,4 @@
1
- import { StylesOf } from '@codeleap/common'
1
+ import { StylesOf } from '@codeleap/types'
2
2
  import { ActivityIndicatorComposition } from '../ActivityIndicator'
3
3
  import { BadgeComposition } from '../Badge'
4
4
  import { TouchableStylesGen } from '../Touchable'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
3
  import { format } from 'date-fns'
4
4
  // @ts-ignore
5
5
  import { Calendar as RNCalendar, CalendarProps as RNCalendarProps, DateData } from 'react-native-calendars'
@@ -1,5 +1,4 @@
1
- import { FilterKeys, Paths } from '@codeleap/common'
2
-
1
+ import { FilterKeys, Paths } from '@codeleap/types'
3
2
  import { TextStyle, ViewStyle } from 'react-native'
4
3
 
5
4
  type CalendarTheme = {
@@ -1,5 +1,7 @@
1
1
  import React, { useRef } from 'react'
2
- import { TypeGuards, useConditionalState, useI18N } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { useConditionalState } from '@codeleap/hooks'
4
+ import { useI18N } from '@codeleap/i18n'
3
5
  import DatePicker from 'react-native-date-picker'
4
6
  import Modal from '../Modal'
5
7
  import { TextInput } from '../TextInput'
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { FormTypes, StylesOf } from '@codeleap/common'
2
+ import { StylesOf } from '@codeleap/types'
3
+ import { FormTypes } from '@codeleap/form'
3
4
  import { DatePickerModalButtonCompositions, DatePickerModalComposition } from './styles'
4
5
  import { DatePickerProps } from 'react-native-date-picker'
5
6
  import { ButtonProps } from '../Button'
@@ -1,5 +1,6 @@
1
1
  import React, { forwardRef, useImperativeHandle, useRef } from 'react'
2
- import { parseFilePathData, MobileFile } from '@codeleap/common'
2
+ import { MobileFile } from '@codeleap/types'
3
+ import { parseFilePathData } from '@codeleap/utils'
3
4
  import { OSAlert } from '../../utils'
4
5
  import ImageCropPicker, { ImageOrVideo, Options } from 'react-native-image-crop-picker'
5
6
  import DocumentPicker from 'react-native-document-picker'
@@ -1,4 +1,5 @@
1
- import { AnyRef, FormTypes } from '@codeleap/common'
1
+ import { AnyRef } from '@codeleap/types'
2
+ import { FormTypes } from '@codeleap/form'
2
3
  import { DocumentPickerOptions } from 'react-native-document-picker'
3
4
  import { Options } from 'react-native-image-crop-picker'
4
5
  import { OSAlert } from '../../utils'
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { arePropsEqual, TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { arePropsEqual } from '@codeleap/utils'
3
4
  import { Badge } from '../Badge'
4
5
  import { View } from '../View'
5
6
  import { IconProps } from './types'
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { arePropsEqual, TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { arePropsEqual } from '@codeleap/utils'
3
4
  import { Image as NativeImage } from 'react-native'
4
5
  import { useImageSpotlight } from '../ImageView/Spotlight'
5
6
  import { Touchable } from '../Touchable'
@@ -3,7 +3,7 @@ import FastImage, { Source } from '@d11/react-native-fast-image'
3
3
  import { ImageProps as RNImageProps } from 'react-native'
4
4
  import { ImageComposition } from './styles'
5
5
  import { StyledProp } from '@codeleap/styles'
6
- import { FormTypes } from '@codeleap/common'
6
+ import { FormTypes } from '@codeleap/form'
7
7
 
8
8
  export type ImageProps =
9
9
  Omit<RNImageProps, 'source' | 'style'> &
@@ -1,5 +1,7 @@
1
1
  import React, { useContext, useState } from 'react'
2
- import { deepEqual, onUpdate, ReactState, TypeGuards, usePrevious, useUnmount } from '@codeleap/common'
2
+ import { ReactState, TypeGuards } from '@codeleap/types'
3
+ import { onUpdate, usePrevious, useUnmount } from '@codeleap/hooks'
4
+ import { deepEqual } from '@codeleap/utils'
3
5
  import uuid from 'react-native-uuid'
4
6
  import { ImageView, ImageViewProps } from './component'
5
7
  import { ImageProps } from '../Image'
@@ -1,5 +1,7 @@
1
1
  import React from 'react'
2
- import { onUpdate, PropsOf } from '@codeleap/common'
2
+ import { PropsOf } from '@codeleap/types'
3
+ import { onUpdate } from '@codeleap/hooks'
4
+
3
5
  import _ImageView from 'react-native-image-viewing'
4
6
  import { StatusBar } from 'react-native'
5
7
 
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { TypeGuards, getRenderedComponent } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { getRenderedComponent } from '@codeleap/utils'
3
4
  import { ActionIcon, ActionIconProps } from '../ActionIcon'
4
5
  import { View } from '../View'
5
6
  import { useInputBaseStyles } from './styles'
@@ -1,4 +1,4 @@
1
- import { TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
2
  import { ActionIconParts } from '../ActionIcon'
3
3
  import { InputBaseProps } from './types'
4
4
  import { mergeStyles, useCompositionStyles } from '@codeleap/styles'
@@ -1,4 +1,4 @@
1
- import { PropsOf, StylesOf } from '@codeleap/common'
1
+ import { PropsOf, StylesOf } from '@codeleap/types'
2
2
  import { InputBaseComposition } from './styles'
3
3
  import { ActionIcon } from '../ActionIcon'
4
4
 
@@ -1,5 +1,6 @@
1
1
  import React, { forwardRef } from 'react'
2
- import { useCallback, TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { useCallback } from '@codeleap/hooks'
3
4
  import { ListRenderItemInfo, FlatList } from 'react-native'
4
5
  import { View, ViewProps } from '../View'
5
6
  import { EmptyPlaceholder } from '../EmptyPlaceholder'
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import { View } from '../View'
3
3
  import { Scroll } from '../Scroll'
4
- import { TypeGuards } from '@codeleap/common'
4
+ import { TypeGuards } from '@codeleap/types'
5
5
  import { Backdrop } from '../Backdrop'
6
6
  import { useAnimatedVariantStyles, useBackButton } from '../../utils/hooks'
7
7
  import { Text } from '../Text'
@@ -1,4 +1,4 @@
1
- import { PropsOf } from '@codeleap/common'
1
+ import { PropsOf } from '@codeleap/types'
2
2
  import { AppIcon, ICSS, StyledProp } from '@codeleap/styles'
3
3
  import { ButtonProps } from '../Button'
4
4
  import { Scroll } from '../Scroll'
@@ -2,7 +2,7 @@
2
2
  import * as React from 'react'
3
3
  import {
4
4
  TypeGuards,
5
- } from '@codeleap/common'
5
+ } from '@codeleap/types'
6
6
  import { Icon } from '../Icon'
7
7
  import { NavigationProps, NavigatorType, PropTypes, TNavigators } from './types'
8
8
  import { Navigators } from './constants'
@@ -1,5 +1,6 @@
1
1
  import React, { useState, useRef } from 'react'
2
- import { TypeGuards, useValidate } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { useValidate } from '@codeleap/form'
3
4
  import { forwardRef, useImperativeHandle } from 'react'
4
5
  import { InputBase, selectInputBaseProps } from '../InputBase'
5
6
  import { Text } from '../Text'
@@ -1,4 +1,5 @@
1
- import { yup, FormTypes, AnyFunction } from '@codeleap/common'
1
+ import { AnyFunction } from '@codeleap/types'
2
+ import { yup, FormTypes } from '@codeleap/form'
2
3
  import { NumberIncrementComposition } from './styles'
3
4
  import { TextInputMaskProps } from '../../modules/textInputMask'
4
5
  import { TextInputProps as RNTextInputProps } from 'react-native'
@@ -1,4 +1,4 @@
1
- import { AnyFunction, StylesOf } from '@codeleap/common'
1
+ import { AnyFunction, StylesOf } from '@codeleap/types'
2
2
  import Animated, { useAnimatedStyle } from 'react-native-reanimated'
3
3
  import { Touchable } from '../Touchable'
4
4
  import { View } from '../View'
@@ -3,7 +3,8 @@ import { ReduceMotion } from 'react-native-reanimated'
3
3
  import Carousel, { ICarouselInstance } from 'react-native-reanimated-carousel'
4
4
  import { CarouselRenderItemInfo, TCarouselProps } from 'react-native-reanimated-carousel/lib/typescript/types'
5
5
  import { Dimensions, LayoutChangeEvent } from 'react-native'
6
- import { onUpdate, TypeGuards, useConditionalState } from '@codeleap/common'
6
+ import { TypeGuards } from '@codeleap/types'
7
+ import { onUpdate, useConditionalState } from '@codeleap/hooks'
7
8
  import { AnyRecord, IJSX, StyledComponentProps, useNestedStylesByKey } from '@codeleap/styles'
8
9
  import { useStylesFor } from '../../hooks'
9
10
  import { MobileStyleRegistry } from '../../Registry'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { TypeGuards } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
3
  import { ActivityIndicator } from '../ActivityIndicator'
4
4
  import { Text } from '../Text'
5
5
  import { AnyRecord, useNestedStylesByKey, IJSX, StyledComponentProps } from '@codeleap/styles'
@@ -10,7 +10,7 @@ import { List } from '../List'
10
10
  import { Touchable } from '../Touchable'
11
11
  import { EmptyPlaceholder } from '../EmptyPlaceholder'
12
12
  import { ActivityIndicator } from '../ActivityIndicator'
13
- import { usePlacesAutocompleteUtils } from '@codeleap/common'
13
+ import { usePlacesAutocompleteUtils } from '@codeleap/hooks'
14
14
 
15
15
  export * from './styles'
16
16
  export * from './types'
@@ -4,7 +4,7 @@ import { TextInputProps } from '../TextInput'
4
4
  import { FlatListProps } from '../List'
5
5
  import { EmptyPlaceholderProps } from '../EmptyPlaceholder'
6
6
  import { ActivityIndicatorProps } from '../ActivityIndicator'
7
- import { PlaceAddress, PlaceLatLng } from '@codeleap/common'
7
+ import { PlaceAddress, PlaceLatLng } from '@codeleap/types'
8
8
 
9
9
  export type CustomData = {
10
10
  item?: Partial<PlaceAddress> & Partial<PlaceLatLng>
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
  import { Text } from '../Text'
3
3
  import { Touchable } from '../Touchable'
4
- import { TypeGuards } from '@codeleap/common'
4
+ import { TypeGuards } from '@codeleap/types'
5
5
  import { View } from '../View'
6
6
  import { InputBase, selectInputBaseProps } from '../InputBase'
7
7
  import { RadioGroupProps, RadioOptionProps } from './types'
@@ -1,4 +1,5 @@
1
- import { FormTypes, StylesOf } from '@codeleap/common'
1
+ import { StylesOf } from '@codeleap/types'
2
+ import { FormTypes } from '@codeleap/form'
2
3
  import { StyledProp } from '@codeleap/styles'
3
4
  import { ReactNode } from 'react'
4
5
  import { RadioInputComposition } from './styles'
@@ -1,5 +1,6 @@
1
1
  import React, { forwardRef, useState } from 'react'
2
- import { deepEqual, onUpdate, usePrevious } from '@codeleap/common'
2
+ import { onUpdate, usePrevious } from '@codeleap/hooks'
3
+ import { deepEqual } from '@codeleap/utils'
3
4
  import { ScrollView } from 'react-native'
4
5
  import { RefreshControl } from '../RefreshControl'
5
6
  import { useKeyboardPaddingStyle } from '../../utils'
@@ -2,7 +2,7 @@ import React, { forwardRef, useState } from 'react'
2
2
  import { AppIcon } from '@codeleap/styles'
3
3
  import { ComponentWithDefaultProps, ForwardRefComponentWithDefaultProps } from '../../types'
4
4
  import { TextInputProps, TextInput } from '../TextInput'
5
- import { TypeGuards } from '@codeleap/common'
5
+ import { TypeGuards } from '@codeleap/types'
6
6
  import { TextInput as RNTextInput } from 'react-native'
7
7
 
8
8
  export type SearchInputProps = {
@@ -1,4 +1,5 @@
1
- import { memoBy, TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
+ import { memoBy } from '@codeleap/utils'
2
3
  import { Button } from '../Button'
3
4
  import { AugmentedSectionRenderItemInfo, SectionComponentProps, Sections } from '../Sections'
4
5
  import { Text } from '../Text'
@@ -1,4 +1,5 @@
1
- import { deepEqual, TypeGuards } from '@codeleap/common'
1
+ import { TypeGuards } from '@codeleap/types'
2
+ import { deepEqual } from '@codeleap/utils'
2
3
  import React, { useCallback, useMemo } from 'react'
3
4
 
4
5
  export type TSectionFilterItem = {
@@ -1,5 +1,6 @@
1
1
  import React, { useMemo } from 'react'
2
- import { TypeGuards, useCallback } from '@codeleap/common'
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { useCallback } from '@codeleap/hooks'
3
4
  import { SectionList, SectionListProps as RNSectionProps } from 'react-native'
4
5
  import { View, ViewProps } from '../View'
5
6
  import { RefreshControl } from '../RefreshControl'
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { PropsOf } from '@codeleap/common'
2
+ import { PropsOf } from '@codeleap/types'
3
3
  import { StylesOf } from '../../types'
4
4
  import { Text } from '../Text'
5
5
  import { Touchable, TouchableProps } from '../Touchable'
@@ -1,4 +1,4 @@
1
- import { StylesOf } from '@codeleap/common'
1
+ import { StylesOf } from '@codeleap/types'
2
2
  import { BadgeComposition } from '../Badge'
3
3
  import { TouchableStylesGen } from '../Touchable'
4
4
 
@@ -3,7 +3,7 @@ import { SegmentedControlOptionProps } from './Option'
3
3
  import { TransitionConfig } from '../../utils'
4
4
  import { TextProps } from '../Text'
5
5
  import { TouchableProps } from '../Touchable'
6
- import { FormTypes } from '@codeleap/common'
6
+ import { FormTypes } from '@codeleap/form'
7
7
  import { StyledProp } from '@codeleap/styles'
8
8
  import { SegmentedControlComposition } from '../components'
9
9
 
@@ -1,13 +1,13 @@
1
1
  /* eslint-disable max-lines */
2
+ import { TypeGuards } from '@codeleap/types'
3
+ import { FormTypes } from '@codeleap/form'
2
4
  import {
3
- TypeGuards,
4
- FormTypes,
5
5
  onMount,
6
6
  onUpdate,
7
7
  usePrevious,
8
8
  useSearch,
9
9
  useConditionalState,
10
- } from '@codeleap/common'
10
+ } from '@codeleap/hooks'
11
11
  import React, { useCallback, useMemo } from 'react'
12
12
  import { List } from '../List'
13
13
  import { TextInput } from '../TextInput'