@jamadd/react-native-template-ui 0.8.5 → 0.8.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (248) hide show
  1. package/lib/module/components/button/AnimatedThemedPressable.js +13 -3
  2. package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
  3. package/lib/module/components/button/ThemedButton.js +84 -23
  4. package/lib/module/components/button/ThemedButton.js.map +1 -1
  5. package/lib/module/components/button/ThemedIconButton.js +62 -16
  6. package/lib/module/components/button/ThemedIconButton.js.map +1 -1
  7. package/lib/module/components/button/ThemedIconTextButton.js +118 -29
  8. package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
  9. package/lib/module/components/button/ThemedPressable.js +13 -3
  10. package/lib/module/components/button/ThemedPressable.js.map +1 -1
  11. package/lib/module/components/icon/ThemedIcon.js +56 -15
  12. package/lib/module/components/icon/ThemedIcon.js.map +1 -1
  13. package/lib/module/components/list/List.js +131 -39
  14. package/lib/module/components/list/List.js.map +1 -1
  15. package/lib/module/components/loading/ThemedLoading.js +50 -13
  16. package/lib/module/components/loading/ThemedLoading.js.map +1 -1
  17. package/lib/module/components/overlay/actionSheet/ActionSheet.js +64 -19
  18. package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
  19. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +76 -0
  20. package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +1 -0
  21. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +19 -8
  22. package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
  23. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +87 -31
  24. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
  25. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +113 -0
  26. package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +1 -0
  27. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +69 -28
  28. package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
  29. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +39 -14
  30. package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
  31. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +58 -25
  32. package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
  33. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +45 -21
  34. package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
  35. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +75 -32
  36. package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
  37. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +72 -30
  38. package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
  39. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +45 -18
  40. package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
  41. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +152 -36
  42. package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
  43. package/lib/module/components/overlay/alert/Alert.js +142 -51
  44. package/lib/module/components/overlay/alert/Alert.js.map +1 -1
  45. package/lib/module/components/overlay/alert/AlertButton.js +62 -26
  46. package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
  47. package/lib/module/components/overlay/alert/AlertButtons.js +58 -23
  48. package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
  49. package/lib/module/components/overlay/alert/AlertContent.js +76 -17
  50. package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
  51. package/lib/module/components/overlay/alert/AlertWrap.js +125 -43
  52. package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
  53. package/lib/module/components/overlay/modal/ThemedLoadingModal.js +96 -21
  54. package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
  55. package/lib/module/components/overlay/modal/ThemedModal.js +76 -23
  56. package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
  57. package/lib/module/components/overlay/toast/ThemedToast.js +339 -90
  58. package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
  59. package/lib/module/components/provider/GestureProvider.js +15 -3
  60. package/lib/module/components/provider/GestureProvider.js.map +1 -1
  61. package/lib/module/components/provider/InsetsProvider.js +15 -3
  62. package/lib/module/components/provider/InsetsProvider.js.map +1 -1
  63. package/lib/module/components/provider/ReactNativeTemplateProviders.js +23 -11
  64. package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
  65. package/lib/module/components/provider/ThemeProvider.js +15 -3
  66. package/lib/module/components/provider/ThemeProvider.js.map +1 -1
  67. package/lib/module/components/separator/ThemedSeparator.js +53 -14
  68. package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
  69. package/lib/module/components/slider/Slider.js +625 -137
  70. package/lib/module/components/slider/Slider.js.map +1 -1
  71. package/lib/module/components/slider/ThemedSlider.js +178 -54
  72. package/lib/module/components/slider/ThemedSlider.js.map +1 -1
  73. package/lib/module/components/slider/ThemedSlider.web.js +206 -0
  74. package/lib/module/components/slider/ThemedSlider.web.js.map +1 -0
  75. package/lib/module/components/slider/ThemedSliderStepIndicator.js +40 -15
  76. package/lib/module/components/slider/ThemedSliderStepIndicator.js.map +1 -1
  77. package/lib/module/components/switch/ThemedSwitch.js +81 -21
  78. package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
  79. package/lib/module/components/text/ThemedIconText.js +124 -35
  80. package/lib/module/components/text/ThemedIconText.js.map +1 -1
  81. package/lib/module/components/text/ThemedText.js +15 -3
  82. package/lib/module/components/text/ThemedText.js.map +1 -1
  83. package/lib/module/components/view/AnimatedThemedView.js +42 -11
  84. package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
  85. package/lib/module/components/view/ThemedScreenWrap.js +144 -39
  86. package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
  87. package/lib/module/components/view/ThemedScreenWrap.web.js +111 -32
  88. package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
  89. package/lib/module/components/view/ThemedScrollView.js +126 -38
  90. package/lib/module/components/view/ThemedScrollView.js.map +1 -1
  91. package/lib/module/components/view/ThemedView.js +33 -10
  92. package/lib/module/components/view/ThemedView.js.map +1 -1
  93. package/lib/module/hooks/button.js +263 -84
  94. package/lib/module/hooks/button.js.map +1 -1
  95. package/lib/module/hooks/list.js +50 -10
  96. package/lib/module/hooks/list.js.map +1 -1
  97. package/lib/module/hooks/overlay.js +575 -187
  98. package/lib/module/hooks/overlay.js.map +1 -1
  99. package/lib/module/hooks/react.js +90 -27
  100. package/lib/module/hooks/react.js.map +1 -1
  101. package/lib/module/hooks/reanimated.js.map +1 -1
  102. package/lib/module/hooks/style.js +43 -18
  103. package/lib/module/hooks/style.js.map +1 -1
  104. package/lib/module/hooks/switch.js +182 -43
  105. package/lib/module/hooks/switch.js.map +1 -1
  106. package/lib/module/hooks/theme.js +17 -8
  107. package/lib/module/hooks/theme.js.map +1 -1
  108. package/lib/module/hooks/view.js +56 -14
  109. package/lib/module/hooks/view.js.map +1 -1
  110. package/lib/module/index.js +2 -2
  111. package/lib/module/index.js.map +1 -1
  112. package/lib/module/utils/reanimated/func.js +60 -10
  113. package/lib/module/utils/reanimated/func.js.map +1 -1
  114. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +5 -0
  115. package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +1 -0
  116. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -2
  117. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
  118. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -2
  119. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
  120. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +4 -0
  121. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +1 -0
  122. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -2
  123. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
  124. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -2
  125. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
  126. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -2
  127. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
  128. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -2
  129. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
  130. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -2
  131. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
  132. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -2
  133. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
  134. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -2
  135. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
  136. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -2
  137. package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
  138. package/lib/typescript/src/components/slider/Slider.d.ts +3 -2
  139. package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
  140. package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
  141. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +5 -0
  142. package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +1 -0
  143. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +3 -2
  144. package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
  145. package/lib/typescript/src/components/view/AnimatedView.d.ts +0 -2
  146. package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
  147. package/lib/typescript/src/hooks/overlay.d.ts +0 -27
  148. package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
  149. package/lib/typescript/src/hooks/switch.d.ts +1 -20
  150. package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
  151. package/lib/typescript/src/types/list.d.ts +1 -10
  152. package/lib/typescript/src/types/list.d.ts.map +1 -1
  153. package/lib/typescript/src/types/overlay.d.ts +1 -31
  154. package/lib/typescript/src/types/overlay.d.ts.map +1 -1
  155. package/lib/typescript/src/utils/overlay/const.d.ts +0 -33
  156. package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
  157. package/lib/typescript/src/utils/reanimated/func.d.ts +1 -5
  158. package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -1
  159. package/lib/typescript/src/utils/switch/const.d.ts +1 -2
  160. package/lib/typescript/src/utils/switch/const.d.ts.map +1 -1
  161. package/package.json +14 -15
  162. package/src/components/button/AnimatedPressable.tsx +0 -7
  163. package/src/components/button/AnimatedThemedPressable.tsx +0 -12
  164. package/src/components/button/ThemedButton.tsx +0 -45
  165. package/src/components/button/ThemedIconButton.tsx +0 -33
  166. package/src/components/button/ThemedIconTextButton.tsx +0 -56
  167. package/src/components/button/ThemedPressable.tsx +0 -12
  168. package/src/components/icon/ThemedIcon.tsx +0 -31
  169. package/src/components/list/List.tsx +0 -55
  170. package/src/components/loading/ThemedLoading.tsx +0 -29
  171. package/src/components/overlay/actionSheet/ActionSheet.tsx +0 -31
  172. package/src/components/overlay/actionSheet/ActionSheetContentGesture.tsx +0 -15
  173. package/src/components/overlay/actionSheet/ActionSheetHeader.tsx +0 -72
  174. package/src/components/overlay/actionSheet/ActionSheetListView.tsx +0 -54
  175. package/src/components/overlay/actionSheet/ActionSheetListViewContent.tsx +0 -32
  176. package/src/components/overlay/actionSheet/ActionSheetOptionList.tsx +0 -51
  177. package/src/components/overlay/actionSheet/ActionSheetOptionListItem.tsx +0 -43
  178. package/src/components/overlay/actionSheet/ActionSheetOptions.tsx +0 -61
  179. package/src/components/overlay/actionSheet/ActionSheetScrollView.tsx +0 -57
  180. package/src/components/overlay/actionSheet/ActionSheetScrollViewContent.tsx +0 -38
  181. package/src/components/overlay/actionSheet/ActionSheetWrap.tsx +0 -75
  182. package/src/components/overlay/alert/Alert.tsx +0 -86
  183. package/src/components/overlay/alert/AlertButton.tsx +0 -41
  184. package/src/components/overlay/alert/AlertButtons.tsx +0 -32
  185. package/src/components/overlay/alert/AlertContent.tsx +0 -60
  186. package/src/components/overlay/alert/AlertWrap.tsx +0 -93
  187. package/src/components/overlay/modal/ThemedLoadingModal.tsx +0 -47
  188. package/src/components/overlay/modal/ThemedModal.tsx +0 -42
  189. package/src/components/overlay/toast/ThemedToast.tsx +0 -160
  190. package/src/components/provider/GestureProvider.tsx +0 -9
  191. package/src/components/provider/InsetsProvider.tsx +0 -11
  192. package/src/components/provider/ReactNativeTemplateProviders.tsx +0 -20
  193. package/src/components/provider/ThemeProvider.tsx +0 -8
  194. package/src/components/separator/ThemedSeparator.tsx +0 -24
  195. package/src/components/slider/Slider.tsx +0 -229
  196. package/src/components/slider/ThemedSlider.tsx +0 -103
  197. package/src/components/slider/ThemedSliderStepIndicator.tsx +0 -24
  198. package/src/components/switch/ThemedSwitch.tsx +0 -49
  199. package/src/components/text/Text.tsx +0 -7
  200. package/src/components/text/ThemedIconText.tsx +0 -58
  201. package/src/components/text/ThemedText.tsx +0 -7
  202. package/src/components/view/AnimatedThemedView.tsx +0 -18
  203. package/src/components/view/AnimatedView.tsx +0 -7
  204. package/src/components/view/Box.tsx +0 -7
  205. package/src/components/view/ThemedScreenWrap.tsx +0 -48
  206. package/src/components/view/ThemedScreenWrap.web.tsx +0 -41
  207. package/src/components/view/ThemedScrollView.tsx +0 -54
  208. package/src/components/view/ThemedView.tsx +0 -19
  209. package/src/hooks/button.ts +0 -152
  210. package/src/hooks/list.ts +0 -42
  211. package/src/hooks/overlay.ts +0 -471
  212. package/src/hooks/react.ts +0 -34
  213. package/src/hooks/reanimated.ts +0 -6
  214. package/src/hooks/separator.ts +0 -29
  215. package/src/hooks/style.ts +0 -79
  216. package/src/hooks/switch.ts +0 -119
  217. package/src/hooks/theme.ts +0 -65
  218. package/src/hooks/view.ts +0 -28
  219. package/src/index.ts +0 -59
  220. package/src/test/utils/const.ts +0 -9
  221. package/src/test/utils/func.ts +0 -55
  222. package/src/test/utils/testingLib.tsx +0 -17
  223. package/src/types/button.ts +0 -50
  224. package/src/types/global.d.ts +0 -5
  225. package/src/types/icon.ts +0 -21
  226. package/src/types/list.ts +0 -61
  227. package/src/types/loading.ts +0 -14
  228. package/src/types/overlay.ts +0 -216
  229. package/src/types/provider.ts +0 -6
  230. package/src/types/react.ts +0 -8
  231. package/src/types/reanimated.ts +0 -11
  232. package/src/types/separator.ts +0 -28
  233. package/src/types/slider.ts +0 -59
  234. package/src/types/style.ts +0 -26
  235. package/src/types/switch.ts +0 -31
  236. package/src/types/text.ts +0 -25
  237. package/src/types/theme.ts +0 -39
  238. package/src/types/view.ts +0 -58
  239. package/src/utils/button/const.ts +0 -10
  240. package/src/utils/overlay/const.ts +0 -77
  241. package/src/utils/overlay/func.ts +0 -107
  242. package/src/utils/reanimated/func.ts +0 -39
  243. package/src/utils/slider/const.ts +0 -23
  244. package/src/utils/style/const.ts +0 -4
  245. package/src/utils/style/func.ts +0 -37
  246. package/src/utils/switch/const.ts +0 -2
  247. package/src/utils/theme/const.ts +0 -189
  248. package/src/utils/theme/restyle.ts +0 -87
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/types/list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,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M,sBAAsB,GAAG,OAAO,CAC1C,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,UAAU,CAAC,GAAG;IAChD,eAAe,EAAE,WAAW,CAAC;IAC7B,KAAK,EAAE,IAAI,CACT,oBAAoB,EACpB,MAAM,GAAG,UAAU,GAAG,iBAAiB,GAAG,IAAI,CAC/C,CAAC;CACH,CACF,CAAC;AAQF,MAAM,MAAM,8BAA8B,GAAG,yBAAyB,CAAC;IACrE,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;CAClB,CAAC,CAAC"}
@@ -1,14 +1,12 @@
1
1
  import type { ModalProps, ViewStyle } from 'react-native';
2
- import type { SharedValue } from 'react-native-reanimated';
3
2
  import type { AlertButtonType, OverlayDismissResultType, ToastDuration, ToastType } from '../utils/overlay/const';
4
3
  import type { ThemedButtonProps } from './button';
5
4
  import type { ListAnimatedRefObj, ListProps } from './list';
6
5
  import type { CustomThemedLoadingProps } from './loading';
7
- import type { SetState } from './react';
8
6
  import type { CustomAnimation } from './reanimated';
9
7
  import type { InsetsStyleConfig } from './style';
10
8
  import type { CustomThemedTextProps, ThemedTextProps } from './text';
11
- import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ScrollViewAnimatedRefObj, ScrollViewProps, ThemedViewProps, ViewRefObj } from './view';
9
+ import type { AnimatedThemedViewProps, PropsWithRequiredChildren, ScrollViewAnimatedRefObj, ScrollViewProps, ThemedViewProps } from './view';
12
10
  type OverlayProps = {
13
11
  onDismiss: () => void;
14
12
  dismissable?: boolean;
@@ -23,10 +21,6 @@ type OverlayDismissToastResult = OverlayDismissBaseResult & Pick<ThemedToastProp
23
21
  export type OverlayDismissAlertResult = OverlayDismissBaseResult & Pick<AlertProps, 'title' | 'description'> & Pick<AlertButtonProps, 'text' | 'type'> & {
24
22
  resultType: OverlayDismissResultType.Alert;
25
23
  };
26
- /** @internal */
27
- export type OverlayDismissActionSheetResult = OverlayDismissBaseResult & Pick<ActionSheetProps, 'title'> & Pick<ActionSheetOption, 'text'> & {
28
- resultType: OverlayDismissResultType.ActionSheet;
29
- };
30
24
  export type ThemedToastProps = Omit<OverlayProps, 'onDismiss'> & Omit<AnimatedThemedViewProps, 'children'> & CustomThemedTextProps & Pick<InsetsStyleConfig, 'insetsPadding' | 'insetPaddingTop' | 'insetPaddingBottom' | 'insetPaddingLeft' | 'insetPaddingRight'> & {
31
25
  type?: ToastType;
32
26
  duration?: ToastDuration;
@@ -98,39 +92,15 @@ export type ActionSheetHeaderProps = {
98
92
  headerTextProps?: Omit<ThemedTextProps, 'children'>;
99
93
  headerIconButtonProps?: Omit<ThemedButtonProps, 'onPress'>;
100
94
  };
101
- /** @internal */
102
- export type ActionSheetContextVal = Pick<ActionSheetProps, 'title' | 'expandable' | 'onDismiss' | 'dismissable'> & {
103
- headerViewRef: ViewRefObj;
104
- contentAnimatedRefObj: ListAnimatedRefObj<any> | ScrollViewAnimatedRefObj;
105
- height: number;
106
- setContentHeight?: SetState<number>;
107
- translateYSharedVal: SharedValue<number>;
108
- heightSharedVal: SharedValue<number>;
109
- expandableHeightSharedVal: SharedValue<number>;
110
- contentOffsetSharedVal: SharedValue<number>;
111
- };
112
- /** @internal */
113
- export type ActionSheetOptionsProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'options'>>;
114
95
  export type ActionSheetOptionListProps = Omit<ListProps<ActionSheetOption>, 'ref' | 'data' | 'Item' | 'keyExtractor' | 'extraData'> & {
115
96
  ref?: ActionSheetOptionListRefObj;
116
97
  };
117
98
  export type ActionSheetOptionListItemProps = Omit<ThemedButtonProps, 'onPress' | 'text'>;
118
99
  export type ActionSheetOptionListRefObj = ListAnimatedRefObj<ActionSheetOption>;
119
- /** @internal */
120
- export type ActionSheetOptionListExtraData = {
121
- optionListItemProps?: ActionSheetOptionListItemProps;
122
- onDismiss: (text?: string) => void;
123
- };
124
100
  export type ActionSheetOption = Partial<Pick<ThemedButtonProps, 'onPress'>> & {
125
101
  text: string;
126
102
  props?: ActionSheetOptionListItemProps;
127
103
  };
128
104
  export type ActionSheetOptions = ActionSheetOption[];
129
- /** @internal */
130
- export type ActionSheetScrollViewProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'children'>>;
131
- /** @internal */
132
- export type ActionSheetListViewProps = ActionSheetProps & Required<Pick<ActionSheetProps, 'listProps'>>;
133
- /** @internal */
134
- export type ActionSheetListViewListRefObj = ListAnimatedRefObj<any>;
135
105
  export {};
136
106
  //# sourceMappingURL=overlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../../../../src/types/overlay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EACV,eAAe,EACf,wBAAwB,EACxB,aAAa,EACb,SAAS,EACV,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,UAAU,EACX,MAAM,QAAQ,CAAC;AAEhB,KAAK,YAAY,GAAG;IAClB,SAAS,EAAE,MAAM,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,EAAE,UAAU,CAAC,CAAC;IACpD,qBAAqB,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC;CAC5D,CAAC;AAqBF,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,SAAS,CAAC,iBAAiB,CAAC,EAC5B,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,GAAG,WAAW,CACvD,GAAG;IACF,GAAG,CAAC,EAAE,2BAA2B,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAC/C,iBAAiB,EACjB,SAAS,GAAG,MAAM,CACnB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;AAQhF,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC,GAAG;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,8BAA8B,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,EAAE,CAAC"}
@@ -1,8 +1,3 @@
1
- import { IconSize } from '@jamadd/react-native-template-icons';
2
- import type { ActionSheetContextVal } from '../../types/overlay';
3
- import type { ThemeSpacing, ThemeTextVariants } from '../../types/theme';
4
- /** @internal */
5
- export declare const overlayMaxWidthPercent = "80%";
6
1
  export declare enum OverlayDismissResultType {
7
2
  Toast = "toast",
8
3
  Alert = "alert",
@@ -21,37 +16,9 @@ export declare enum ToastDuration {
21
16
  Short = 3000,
22
17
  Long = 5000
23
18
  }
24
- /** @internal */
25
- export declare const AlertContext: import("react").Context<Partial<Pick<import("../..").AlertProps, "buttonProps"> & {
26
- onDismiss: (result?: Partial<import("../..").OverlayDismissAlertResult>) => void;
27
- }>>;
28
19
  export declare enum AlertButtonType {
29
20
  Primary = "primary",
30
21
  Secondary = "secondary",
31
22
  Destructive = "destructive"
32
23
  }
33
- /** @internal */
34
- export declare const ActionSheetContext: import("react").Context<Partial<ActionSheetContextVal>>;
35
- /** @internal */
36
- export declare const actionSheetOpenDuration = 300;
37
- /** @internal */
38
- export declare const actionSheetSnapDuration = 300;
39
- /** @internal */
40
- export declare const actionSheetDismissDuration = 150;
41
- /** @internal */
42
- export declare const actionSheetMaxHeightRatio = 0.6;
43
- /** @internal */
44
- export declare enum ActionSheetExpandableHeightRatio {
45
- Top = 0.9,
46
- Middle = 0.6,
47
- Bottom = 0.3
48
- }
49
- /** @internal */
50
- export declare const actionSheetHeaderIconSize: IconSize;
51
- /** @internal */
52
- export declare const actionSheetHeaderPadding: ThemeSpacing;
53
- /** @internal */
54
- export declare const actionSheetOptionListItemPadding: ThemeSpacing;
55
- /** @internal */
56
- export declare const actionSheetOptionListItemTextVariant: ThemeTextVariants;
57
24
  //# sourceMappingURL=const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/const.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAE/D,OAAO,KAAK,EACV,qBAAqB,EAEtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEzE,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,oBAAY,wBAAwB;IAClC,KAAK,UAAU;IACf,KAAK,UAAU;IACf,WAAW,gBAAgB;CAC5B;AAED,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,oBAAY,aAAa;IACvB,KAAK,OAAO;IACZ,IAAI,OAAO;CACZ;AAED,gBAAgB;AAChB,eAAO,MAAM,YAAY;sBA2CsmB,CAAC;GA3ClkB,CAAC;AAE/D,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC5B;AAED,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,yDAE9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,gBAAgB;AAChB,oBAAY,gCAAgC;IAC1C,GAAG,MAAM;IACT,MAAM,MAAM;IACZ,MAAM,MAAM;CACb;AAED,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,QAAqB,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,YAAkB,CAAC;AAE1D,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,YAAkB,CAAC;AAElE,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,iBAA2B,CAAC"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/overlay/const.ts"],"names":[],"mappings":"AAWA,oBAAY,wBAAwB;IAClC,KAAK,UAAU;IACf,KAAK,UAAU;IACf,WAAW,gBAAgB;CAC5B;AAED,eAAO,MAAM,+BAA+B,iBAAiB,CAAC;AAE9D,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,WAAW,gBAAgB;CAC5B;AAED,oBAAY,aAAa;IACvB,KAAK,OAAO;IACZ,IAAI,OAAO;CACZ;AAKD,oBAAY,eAAe;IACzB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC5B"}
@@ -1,6 +1,2 @@
1
- import type { SharedValue, WithSpringConfig, WithTimingConfig } from 'react-native-reanimated';
2
- /** @internal */
3
- export declare function updateSharedValWithTiming(sharedVal: SharedValue<number>, toVal: number, userConfig?: WithTimingConfig, cb?: () => void): void;
4
- /** @internal */
5
- export declare function updateSharedValWithSpring(sharedVal: SharedValue<number>, toVal: number, userConfig?: WithSpringConfig, cb?: () => void): void;
1
+ export {};
6
2
  //# sourceMappingURL=func.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/reanimated/func.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,yBAAyB,CAAC;AAIjC,gBAAgB;AAChB,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,gBAAgB,EAC7B,EAAE,CAAC,EAAE,MAAM,IAAI,QAShB;AAED,gBAAgB;AAChB,wBAAgB,yBAAyB,CACvC,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,gBAAgB,EAC7B,EAAE,CAAC,EAAE,MAAM,IAAI,QAShB"}
1
+ {"version":3,"file":"func.d.ts","sourceRoot":"","sources":["../../../../../src/utils/reanimated/func.ts"],"names":[],"mappings":""}
@@ -1,3 +1,2 @@
1
- /** @internal */
2
- export declare const switchAnimationDuration = 250;
1
+ export {};
3
2
  //# sourceMappingURL=const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/switch/const.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,MAAM,CAAC"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../../../src/utils/switch/const.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jamadd/react-native-template-ui",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "description": "React Native Template UI is a collection of UI components designed by JaMa D&D.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -13,7 +13,6 @@
13
13
  "./package.json": "./package.json"
14
14
  },
15
15
  "files": [
16
- "src",
17
16
  "lib",
18
17
  "android",
19
18
  "ios",
@@ -83,9 +82,9 @@
83
82
  "@eslint/js": "^10.0.1",
84
83
  "@jamadd/react-native-template-icons": "^0.4.8",
85
84
  "@jest/globals": "^30.0.0",
86
- "@react-native/babel-preset": "0.85.0",
87
- "@react-native/eslint-config": "^0.85.0",
88
- "@react-native/jest-preset": "0.85.0",
85
+ "@react-native/babel-preset": "0.85.3",
86
+ "@react-native/eslint-config": "^0.85.3",
87
+ "@react-native/jest-preset": "0.85.3",
89
88
  "@release-it/conventional-changelog": "^10.0.6",
90
89
  "@shopify/flash-list": "^2.3.1",
91
90
  "@shopify/restyle": "^2.4.5",
@@ -99,17 +98,16 @@
99
98
  "eslint-config-prettier": "^10.1.8",
100
99
  "eslint-plugin-ft-flow": "^3.0.11",
101
100
  "eslint-plugin-prettier": "^5.5.5",
102
- "eslint-plugin-react-compiler": "^19.1.0-rc.2",
103
101
  "eslint-plugin-testing-library": "^7.8.0",
104
102
  "jest": "^30.3.0",
105
103
  "prettier": "^3.8.1",
106
104
  "react": "19.2.3",
107
- "react-native": "0.85.0",
105
+ "react-native": "0.85.3",
108
106
  "react-native-builder-bob": "^0.41.0",
109
- "react-native-gesture-handler": "^2.31.1",
110
- "react-native-reanimated": "^4.3.0",
107
+ "react-native-gesture-handler": "^2.31.2",
108
+ "react-native-reanimated": "^4.3.1",
111
109
  "react-native-safe-area-context": "^5.7.0",
112
- "react-native-worklets": "^0.8.1",
110
+ "react-native-worklets": "^0.8.3",
113
111
  "react-test-renderer": "19.2.3",
114
112
  "release-it": "^19.2.4",
115
113
  "turbo": "^2.8.21",
@@ -120,11 +118,11 @@
120
118
  "@shopify/flash-list": ">=2.3.1",
121
119
  "@shopify/restyle": ">=2.4.5",
122
120
  "react": ">=19.2.3",
123
- "react-native": ">=0.85.0",
124
- "react-native-gesture-handler": ">=2.31.1",
125
- "react-native-reanimated": ">=4.3.0",
121
+ "react-native": ">=0.85.3",
122
+ "react-native-gesture-handler": ">=2.31.2",
123
+ "react-native-reanimated": ">=4.3.1",
126
124
  "react-native-safe-area-context": ">=5.7.0",
127
- "react-native-worklets": ">=0.8.1"
125
+ "react-native-worklets": ">=0.8.3"
128
126
  },
129
127
  "workspaces": [
130
128
  "example"
@@ -137,7 +135,8 @@
137
135
  [
138
136
  "module",
139
137
  {
140
- "esm": true
138
+ "esm": true,
139
+ "configFile": true
141
140
  }
142
141
  ],
143
142
  [
@@ -1,7 +0,0 @@
1
- /** @internal */
2
- import { Pressable } from 'react-native';
3
- import Animated from 'react-native-reanimated';
4
-
5
- export const AnimatedPressable = Animated.createAnimatedComponent(Pressable);
6
-
7
- export default AnimatedPressable;
@@ -1,12 +0,0 @@
1
- import type { FC } from 'react';
2
- import { useAnimatedThemedPressable } from '../../hooks/button';
3
- import type { AnimatedThemedPressableProps } from '../../types/button';
4
- import AnimatedPressable from './AnimatedPressable';
5
-
6
- const AnimatedThemedPressable: FC<AnimatedThemedPressableProps> = (props) => {
7
- const animatedThemedPressableProps = useAnimatedThemedPressable(props);
8
-
9
- return <AnimatedPressable {...animatedThemedPressableProps} />;
10
- };
11
-
12
- export default AnimatedThemedPressable;
@@ -1,45 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ThemedButtonProps } from '../../types/button';
3
- import { ButtonScaleRatio } from '../../utils/button/const';
4
- import ThemedText from '../text/ThemedText';
5
- import ThemedPressable from './ThemedPressable';
6
-
7
- const ThemedButton: FC<ThemedButtonProps> = ({
8
- text,
9
- textVariant,
10
- textFontSize,
11
- textFontWeight,
12
- textColor = 'textButton',
13
- textStyle,
14
- textProps,
15
- children,
16
- ...props
17
- }) => {
18
- return (
19
- <ThemedPressable
20
- scaleRatio={ButtonScaleRatio.Rectangle}
21
- flexDirection={'row'}
22
- alignItems={'center'}
23
- justifyContent={children ? 'space-between' : 'center'}
24
- paddingVertical={'s'}
25
- paddingHorizontal={'m'}
26
- backgroundColor={'themePri'}
27
- {...props}
28
- >
29
- <ThemedText
30
- numberOfLines={1}
31
- variant={textVariant}
32
- fontSize={textFontSize}
33
- fontWeight={textFontWeight}
34
- color={textColor}
35
- style={textStyle}
36
- {...textProps}
37
- >
38
- {text}
39
- </ThemedText>
40
- {children}
41
- </ThemedPressable>
42
- );
43
- };
44
-
45
- export default ThemedButton;
@@ -1,33 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ThemedIconButtonProps } from '../../types/button';
3
- import { ButtonScaleRatio } from '../../utils/button/const';
4
- import ThemedIcon from '../icon/ThemedIcon';
5
- import ThemedPressable from './ThemedPressable';
6
-
7
- const ThemedIconButton: FC<ThemedIconButtonProps> = ({
8
- iconName,
9
- iconSize,
10
- iconColor,
11
- iconStyle,
12
- iconProps,
13
- ...props
14
- }) => {
15
- return (
16
- <ThemedPressable
17
- scaleRatio={ButtonScaleRatio.Square}
18
- alignItems={'center'}
19
- padding={'s'}
20
- {...props}
21
- >
22
- <ThemedIcon
23
- name={iconName}
24
- size={iconSize}
25
- color={iconColor}
26
- style={iconStyle}
27
- {...iconProps}
28
- />
29
- </ThemedPressable>
30
- );
31
- };
32
-
33
- export default ThemedIconButton;
@@ -1,56 +0,0 @@
1
- import type { FC } from 'react';
2
- import type { ThemedIconTextButtonProps } from '../../types/button';
3
- import { ButtonScaleRatio } from '../../utils/button/const';
4
- import ThemedIconText from '../text/ThemedIconText';
5
- import ThemedPressable from './ThemedPressable';
6
-
7
- const ThemedIconTextButton: FC<ThemedIconTextButtonProps> = ({
8
- flip,
9
- iconTextProps,
10
- iconName,
11
- iconSize,
12
- iconColor,
13
- iconStyle,
14
- iconProps,
15
- text,
16
- textVariant,
17
- textFontSize,
18
- textFontWeight,
19
- textColor = 'themePri',
20
- textStyle,
21
- textProps,
22
- children,
23
- ...props
24
- }) => {
25
- return (
26
- <ThemedPressable
27
- scaleRatio={ButtonScaleRatio.Rectangle}
28
- flexDirection={'row'}
29
- alignItems={'center'}
30
- justifyContent={children ? 'space-between' : 'center'}
31
- paddingVertical={'s'}
32
- paddingHorizontal={'m'}
33
- {...props}
34
- >
35
- <ThemedIconText
36
- iconName={iconName}
37
- iconSize={iconSize}
38
- iconColor={iconColor}
39
- iconStyle={iconStyle}
40
- iconProps={iconProps}
41
- text={text}
42
- textVariant={textVariant}
43
- textFontSize={textFontSize}
44
- textFontWeight={textFontWeight}
45
- textColor={textColor}
46
- textStyle={textStyle}
47
- textProps={textProps}
48
- flip={flip}
49
- {...iconTextProps}
50
- />
51
- {children}
52
- </ThemedPressable>
53
- );
54
- };
55
-
56
- export default ThemedIconTextButton;
@@ -1,12 +0,0 @@
1
- import { type FC } from 'react';
2
- import { Pressable } from 'react-native';
3
- import { useThemedPressable } from '../../hooks/button';
4
- import type { ThemedPressableProps } from '../../types/button';
5
-
6
- const ThemedPressable: FC<ThemedPressableProps> = (props) => {
7
- const themedPressableProps = useThemedPressable(props);
8
-
9
- return <Pressable {...themedPressableProps} />;
10
- };
11
-
12
- export default ThemedPressable;
@@ -1,31 +0,0 @@
1
- import Icon, { IconSize } from '@jamadd/react-native-template-icons';
2
- import { useRestyle } from '@shopify/restyle';
3
- import type { FC } from 'react';
4
- import type { ThemedIconProps } from '../../types/icon';
5
- import {
6
- themedIconColorRestyleFuncs,
7
- themedIconRestyleFuncs,
8
- } from '../../utils/theme/restyle';
9
-
10
- const ThemedIcon: FC<ThemedIconProps> = ({
11
- name,
12
- size = IconSize.M,
13
- color = 'themePri',
14
- ...props
15
- }) => {
16
- const restyle = useRestyle(themedIconRestyleFuncs, props);
17
- const colorRestyle = useRestyle(themedIconColorRestyleFuncs, {
18
- color,
19
- } as Pick<ThemedIconProps, 'color'>) as { style: { color: string }[] };
20
-
21
- return (
22
- <Icon
23
- name={name}
24
- size={size}
25
- color={colorRestyle.style[0]?.color}
26
- {...restyle}
27
- />
28
- );
29
- };
30
-
31
- export default ThemedIcon;
@@ -1,55 +0,0 @@
1
- import { FlashList, type ListRenderItem } from '@shopify/flash-list';
2
- import type { ViewStyle } from 'react-native';
3
- import { useInsetsStyle } from '../../hooks/style';
4
- import type { ListProps } from '../../types/list';
5
- import { composeStyles } from '../../utils/style/func';
6
-
7
- function List<T>({
8
- Item,
9
- insets,
10
- insetTop,
11
- insetBottom = true,
12
- insetLeft,
13
- insetRight,
14
- insetsPadding,
15
- insetPaddingTop,
16
- insetPaddingBottom = 'm',
17
- insetPaddingLeft,
18
- insetPaddingRight,
19
- contentContainerStyle,
20
- ...props
21
- }: ListProps<T>) {
22
- const insetsStyle = useInsetsStyle({
23
- insets,
24
- insetTop,
25
- insetBottom,
26
- insetLeft,
27
- insetRight,
28
- insetsPadding,
29
- insetPaddingTop,
30
- insetPaddingBottom,
31
- insetPaddingLeft,
32
- insetPaddingRight,
33
- });
34
-
35
- const renderItem: ListRenderItem<T> = (listItemProps) => (
36
- <Item {...listItemProps} />
37
- );
38
- const listContentContainerStyle = composeStyles<ViewStyle>(
39
- insetsStyle,
40
- contentContainerStyle
41
- );
42
-
43
- return (
44
- <FlashList
45
- renderItem={renderItem}
46
- overScrollMode={'always'}
47
- showsVerticalScrollIndicator={__DEV__}
48
- showsHorizontalScrollIndicator={__DEV__}
49
- contentContainerStyle={listContentContainerStyle}
50
- {...props}
51
- />
52
- );
53
- }
54
-
55
- export default List;
@@ -1,29 +0,0 @@
1
- import { useRestyle } from '@shopify/restyle';
2
- import type { FC } from 'react';
3
- import { ActivityIndicator } from 'react-native';
4
- import type { ThemedLoadingProps } from '../../types/loading';
5
- import {
6
- themedLoadingColorRestyleFuncs,
7
- themedLoadingRestyleFuncs,
8
- } from '../../utils/theme/restyle';
9
-
10
- const ThemedLoading: FC<ThemedLoadingProps> = ({
11
- size = 'large',
12
- color = 'themePri',
13
- ...props
14
- }) => {
15
- const restyle = useRestyle(themedLoadingRestyleFuncs, props);
16
- const colorRestyle = useRestyle(themedLoadingColorRestyleFuncs, {
17
- color,
18
- } as Pick<ThemedLoadingProps, 'color'>) as { style: { color: string }[] };
19
-
20
- return (
21
- <ActivityIndicator
22
- size={size}
23
- color={colorRestyle.style[0]?.color}
24
- {...restyle}
25
- />
26
- );
27
- };
28
-
29
- export default ThemedLoading;
@@ -1,31 +0,0 @@
1
- import type { FC } from 'react';
2
- import type {
3
- ActionSheetListViewProps,
4
- ActionSheetOptionsProps,
5
- ActionSheetProps,
6
- ActionSheetScrollViewProps,
7
- } from '../../../types/overlay';
8
-
9
- const ActionSheetOptions: FC<ActionSheetOptionsProps> =
10
- require('./ActionSheetOptions').default;
11
- const ActionSheetScrollView: FC<ActionSheetScrollViewProps> =
12
- require('./ActionSheetScrollView').default;
13
- const ActionSheetListView: FC<ActionSheetListViewProps> =
14
- require('./ActionSheetListView').default;
15
-
16
- const ActionSheet: FC<ActionSheetProps> = ({
17
- dismissable = true,
18
- ...props
19
- }) => {
20
- if (props.options?.length) {
21
- return <ActionSheetOptions dismissable={dismissable} {...props} />;
22
- } else if (props.children) {
23
- return <ActionSheetScrollView dismissable={dismissable} {...props} />;
24
- } else if (props.listProps) {
25
- return <ActionSheetListView dismissable={dismissable} {...props} />;
26
- } else {
27
- return null;
28
- }
29
- };
30
-
31
- export default ActionSheet;
@@ -1,15 +0,0 @@
1
- /** @internal */
2
- import type { FC } from 'react';
3
- import { GestureDetector } from 'react-native-gesture-handler';
4
- import { useActionSheetContentGesture } from '../../../hooks/overlay';
5
- import type { PropsWithRequiredChildren } from '../../../types/view';
6
-
7
- const ActionSheetContentGesture: FC<PropsWithRequiredChildren> = ({
8
- children,
9
- }) => {
10
- const gesture = useActionSheetContentGesture();
11
-
12
- return <GestureDetector gesture={gesture}>{children}</GestureDetector>;
13
- };
14
-
15
- export default ActionSheetContentGesture;