@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,42 +1,121 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import { useInsetsStyle, useWindowDimensionsHeight } from "../../hooks/style.js";
4
5
  import { composeStyles } from "../../utils/style/func.js";
5
6
  import ThemedView from "./ThemedView.js";
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
- const ThemedScreenWrap = ({
8
- style: themedScreenWrapStyle,
9
- insets,
10
- insetTop,
11
- insetBottom,
12
- insetLeft,
13
- insetRight,
14
- insetsPadding,
15
- insetPaddingTop,
16
- insetPaddingBottom,
17
- insetPaddingLeft,
18
- insetPaddingRight,
19
- ...props
20
- }) => {
8
+ const ThemedScreenWrap = t0 => {
9
+ const $ = _c(31);
10
+ let insetBottom;
11
+ let insetLeft;
12
+ let insetPaddingBottom;
13
+ let insetPaddingLeft;
14
+ let insetPaddingRight;
15
+ let insetPaddingTop;
16
+ let insetRight;
17
+ let insetTop;
18
+ let insets;
19
+ let insetsPadding;
20
+ let props;
21
+ let themedScreenWrapStyle;
22
+ if ($[0] !== t0) {
23
+ ({
24
+ style: themedScreenWrapStyle,
25
+ insets,
26
+ insetTop,
27
+ insetBottom,
28
+ insetLeft,
29
+ insetRight,
30
+ insetsPadding,
31
+ insetPaddingTop,
32
+ insetPaddingBottom,
33
+ insetPaddingLeft,
34
+ insetPaddingRight,
35
+ ...props
36
+ } = t0);
37
+ $[0] = t0;
38
+ $[1] = insetBottom;
39
+ $[2] = insetLeft;
40
+ $[3] = insetPaddingBottom;
41
+ $[4] = insetPaddingLeft;
42
+ $[5] = insetPaddingRight;
43
+ $[6] = insetPaddingTop;
44
+ $[7] = insetRight;
45
+ $[8] = insetTop;
46
+ $[9] = insets;
47
+ $[10] = insetsPadding;
48
+ $[11] = props;
49
+ $[12] = themedScreenWrapStyle;
50
+ } else {
51
+ insetBottom = $[1];
52
+ insetLeft = $[2];
53
+ insetPaddingBottom = $[3];
54
+ insetPaddingLeft = $[4];
55
+ insetPaddingRight = $[5];
56
+ insetPaddingTop = $[6];
57
+ insetRight = $[7];
58
+ insetTop = $[8];
59
+ insets = $[9];
60
+ insetsPadding = $[10];
61
+ props = $[11];
62
+ themedScreenWrapStyle = $[12];
63
+ }
21
64
  const height = useWindowDimensionsHeight();
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
- const style = composeStyles(themedScreenWrapStyle, insetsStyle);
35
- return /*#__PURE__*/_jsx(ThemedView, {
36
- height: height,
37
- style: style,
38
- ...props
39
- });
65
+ let t1;
66
+ if ($[13] !== insetBottom || $[14] !== insetLeft || $[15] !== insetPaddingBottom || $[16] !== insetPaddingLeft || $[17] !== insetPaddingRight || $[18] !== insetPaddingTop || $[19] !== insetRight || $[20] !== insetTop || $[21] !== insets || $[22] !== insetsPadding) {
67
+ t1 = {
68
+ insets,
69
+ insetTop,
70
+ insetBottom,
71
+ insetLeft,
72
+ insetRight,
73
+ insetsPadding,
74
+ insetPaddingTop,
75
+ insetPaddingBottom,
76
+ insetPaddingLeft,
77
+ insetPaddingRight
78
+ };
79
+ $[13] = insetBottom;
80
+ $[14] = insetLeft;
81
+ $[15] = insetPaddingBottom;
82
+ $[16] = insetPaddingLeft;
83
+ $[17] = insetPaddingRight;
84
+ $[18] = insetPaddingTop;
85
+ $[19] = insetRight;
86
+ $[20] = insetTop;
87
+ $[21] = insets;
88
+ $[22] = insetsPadding;
89
+ $[23] = t1;
90
+ } else {
91
+ t1 = $[23];
92
+ }
93
+ const insetsStyle = useInsetsStyle(t1);
94
+ let t2;
95
+ if ($[24] !== insetsStyle || $[25] !== themedScreenWrapStyle) {
96
+ t2 = composeStyles(themedScreenWrapStyle, insetsStyle);
97
+ $[24] = insetsStyle;
98
+ $[25] = themedScreenWrapStyle;
99
+ $[26] = t2;
100
+ } else {
101
+ t2 = $[26];
102
+ }
103
+ const style = t2;
104
+ let t3;
105
+ if ($[27] !== height || $[28] !== props || $[29] !== style) {
106
+ t3 = /*#__PURE__*/_jsx(ThemedView, {
107
+ height: height,
108
+ style: style,
109
+ ...props
110
+ });
111
+ $[27] = height;
112
+ $[28] = props;
113
+ $[29] = style;
114
+ $[30] = t3;
115
+ } else {
116
+ t3 = $[30];
117
+ }
118
+ return t3;
40
119
  };
41
120
  export default ThemedScreenWrap;
42
121
  //# sourceMappingURL=ThemedScreenWrap.web.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useInsetsStyle","useWindowDimensionsHeight","composeStyles","ThemedView","jsx","_jsx","ThemedScreenWrap","style","themedScreenWrapStyle","insets","insetTop","insetBottom","insetLeft","insetRight","insetsPadding","insetPaddingTop","insetPaddingBottom","insetPaddingLeft","insetPaddingRight","props","height","insetsStyle"],"sourceRoot":"../../../../src","sources":["components/view/ThemedScreenWrap.web.tsx"],"mappings":";;AAEA,SAASA,cAAc,EAAEC,yBAAyB,QAAQ,sBAAmB;AAE7E,SAASC,aAAa,QAAQ,2BAAwB;AACtD,OAAOC,UAAU,MAAM,iBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtC,MAAMC,gBAA2C,GAAGA,CAAC;EACnDC,KAAK,EAAEC,qBAAqB;EAC5BC,MAAM;EACNC,QAAQ;EACRC,WAAW;EACXC,SAAS;EACTC,UAAU;EACVC,aAAa;EACbC,eAAe;EACfC,kBAAkB;EAClBC,gBAAgB;EAChBC,iBAAiB;EACjB,GAAGC;AACL,CAAC,KAAK;EACJ,MAAMC,MAAM,GAAGnB,yBAAyB,CAAC,CAAC;EAC1C,MAAMoB,WAAW,GAAGrB,cAAc,CAAC;IACjCS,MAAM;IACNC,QAAQ;IACRC,WAAW;IACXC,SAAS;IACTC,UAAU;IACVC,aAAa;IACbC,eAAe;IACfC,kBAAkB;IAClBC,gBAAgB;IAChBC;EACF,CAAC,CAAC;EAEF,MAAMX,KAAK,GAAGL,aAAa,CAAYM,qBAAqB,EAAEa,WAAW,CAAC;EAE1E,oBAAOhB,IAAA,CAACF,UAAU;IAACiB,MAAM,EAAEA,MAAO;IAACb,KAAK,EAAEA,KAAM;IAAA,GAAKY;EAAK,CAAG,CAAC;AAChE,CAAC;AAED,eAAeb,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["useInsetsStyle","useWindowDimensionsHeight","composeStyles","ThemedView","jsx","_jsx","ThemedScreenWrap","t0","$","_c","insetBottom","insetLeft","insetPaddingBottom","insetPaddingLeft","insetPaddingRight","insetPaddingTop","insetRight","insetTop","insets","insetsPadding","props","themedScreenWrapStyle","style","height","t1","insetsStyle","t2","t3"],"sourceRoot":"../../../../src","sources":["components/view/ThemedScreenWrap.web.tsx"],"mappings":";;;AAEA,SAASA,cAAc,EAAEC,yBAAyB,QAAQ,sBAAmB;AAE7E,SAASC,aAAa,QAAQ,2BAAwB;AACtD,OAAOC,UAAU,MAAM,iBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEtC,MAAMC,gBAA2C,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,WAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,kBAAA;EAAA,IAAAC,gBAAA;EAAA,IAAAC,iBAAA;EAAA,IAAAC,eAAA;EAAA,IAAAC,UAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,MAAA;EAAA,IAAAC,aAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,qBAAA;EAAA,IAAAb,CAAA,QAAAD,EAAA;IAAC;MAAAe,KAAA,EAAAD,qBAAA;MAAAH,MAAA;MAAAD,QAAA;MAAAP,WAAA;MAAAC,SAAA;MAAAK,UAAA;MAAAG,aAAA;MAAAJ,eAAA;MAAAH,kBAAA;MAAAC,gBAAA;MAAAC,iBAAA;MAAA,GAAAM;IAAA,IAAAb,EAapD;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,WAAA;IAAAF,CAAA,MAAAG,SAAA;IAAAH,CAAA,MAAAI,kBAAA;IAAAJ,CAAA,MAAAK,gBAAA;IAAAL,CAAA,MAAAM,iBAAA;IAAAN,CAAA,MAAA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,CAAA,OAAAU,MAAA;IAAAV,CAAA,OAAAW,aAAA;IAAAX,CAAA,OAAAgB,EAAA;EAAA;IAAAA,EAAA,GAAAhB,CAAA;EAAA;EAXD,MAAAiB,WAAA,GAAoBzB,cAAc,CAACwB,EAWlC,CAAC;EAAC,IAAAE,EAAA;EAAA,IAAAlB,CAAA,SAAAiB,WAAA,IAAAjB,CAAA,SAAAa,qBAAA;IAEWK,EAAA,GAAAxB,aAAa,CAAYmB,qBAAqB,EAAEI,WAAW,CAAC;IAAAjB,CAAA,OAAAiB,WAAA;IAAAjB,CAAA,OAAAa,qBAAA;IAAAb,CAAA,OAAAkB,EAAA;EAAA;IAAAA,EAAA,GAAAlB,CAAA;EAAA;EAA1E,MAAAc,KAAA,GAAcI,EAA4D;EAAC,IAAAC,EAAA;EAAA,IAAAnB,CAAA,SAAAe,MAAA,IAAAf,CAAA,SAAAY,KAAA,IAAAZ,CAAA,SAAAc,KAAA;IAEpEK,EAAA,gBAAAtB,IAAA,CAACF,UAAU;MAASoB,MAAM,EAANA,MAAM;MAASD,KAAK,EAALA,KAAK;MAAA,GAAMF;IAAK,CAAG,CAAC;IAAAZ,CAAA,OAAAe,MAAA;IAAAf,CAAA,OAAAY,KAAA;IAAAZ,CAAA,OAAAc,KAAA;IAAAd,CAAA,OAAAmB,EAAA;EAAA;IAAAA,EAAA,GAAAnB,CAAA;EAAA;EAAA,OAAvDmB,EAAuD;AAAA,CAC/D;AAED,eAAerB,gBAAgB","ignoreList":[]}
@@ -1,49 +1,137 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import { useRestyle } from '@shopify/restyle';
4
5
  import { ScrollView } from 'react-native';
5
6
  import { useInsetsStyle } from "../../hooks/style.js";
6
7
  import { composeStyles } from "../../utils/style/func.js";
7
8
  import { themedScrollViewRestyleFuncs } from "../../utils/theme/restyle.js";
8
9
  import { jsx as _jsx } from "react/jsx-runtime";
9
- const ThemedScrollView = ({
10
- insets,
11
- insetTop,
12
- insetBottom = true,
13
- insetLeft,
14
- insetRight,
15
- insetsPadding,
16
- insetPaddingTop,
17
- insetPaddingBottom = 'm',
18
- insetPaddingLeft,
19
- insetPaddingRight,
20
- ...props
21
- }) => {
22
- const {
23
- contentContainerStyle: restyleContentContainerStyle,
24
- ...restyles
25
- } = useRestyle(themedScrollViewRestyleFuncs, props);
26
- const insetsStyle = useInsetsStyle({
27
- insets,
28
- insetTop,
29
- insetBottom,
30
- insetLeft,
31
- insetRight,
32
- insetsPadding,
33
- insetPaddingTop,
34
- insetPaddingBottom,
35
- insetPaddingLeft,
36
- insetPaddingRight
37
- });
38
- const contentContainerStyle = composeStyles(restyleContentContainerStyle, insetsStyle);
39
- return /*#__PURE__*/_jsx(ScrollView, {
40
- showsVerticalScrollIndicator: __DEV__,
41
- showsHorizontalScrollIndicator: __DEV__,
42
- contentContainerStyle: contentContainerStyle,
43
- accessible: true,
44
- role: 'group',
45
- ...restyles
46
- });
10
+ const ThemedScrollView = t0 => {
11
+ const $ = _c(32);
12
+ let insetLeft;
13
+ let insetPaddingLeft;
14
+ let insetPaddingRight;
15
+ let insetPaddingTop;
16
+ let insetRight;
17
+ let insetTop;
18
+ let insets;
19
+ let insetsPadding;
20
+ let props;
21
+ let t1;
22
+ let t2;
23
+ if ($[0] !== t0) {
24
+ ({
25
+ insets,
26
+ insetTop,
27
+ insetBottom: t1,
28
+ insetLeft,
29
+ insetRight,
30
+ insetsPadding,
31
+ insetPaddingTop,
32
+ insetPaddingBottom: t2,
33
+ insetPaddingLeft,
34
+ insetPaddingRight,
35
+ ...props
36
+ } = t0);
37
+ $[0] = t0;
38
+ $[1] = insetLeft;
39
+ $[2] = insetPaddingLeft;
40
+ $[3] = insetPaddingRight;
41
+ $[4] = insetPaddingTop;
42
+ $[5] = insetRight;
43
+ $[6] = insetTop;
44
+ $[7] = insets;
45
+ $[8] = insetsPadding;
46
+ $[9] = props;
47
+ $[10] = t1;
48
+ $[11] = t2;
49
+ } else {
50
+ insetLeft = $[1];
51
+ insetPaddingLeft = $[2];
52
+ insetPaddingRight = $[3];
53
+ insetPaddingTop = $[4];
54
+ insetRight = $[5];
55
+ insetTop = $[6];
56
+ insets = $[7];
57
+ insetsPadding = $[8];
58
+ props = $[9];
59
+ t1 = $[10];
60
+ t2 = $[11];
61
+ }
62
+ const insetBottom = t1 === undefined ? true : t1;
63
+ const insetPaddingBottom = t2 === undefined ? "m" : t2;
64
+ const t3 = useRestyle(themedScrollViewRestyleFuncs, props);
65
+ let restyleContentContainerStyle;
66
+ let restyles;
67
+ if ($[12] !== t3) {
68
+ ({
69
+ contentContainerStyle: restyleContentContainerStyle,
70
+ ...restyles
71
+ } = t3);
72
+ $[12] = t3;
73
+ $[13] = restyleContentContainerStyle;
74
+ $[14] = restyles;
75
+ } else {
76
+ restyleContentContainerStyle = $[13];
77
+ restyles = $[14];
78
+ }
79
+ let t4;
80
+ if ($[15] !== insetBottom || $[16] !== insetLeft || $[17] !== insetPaddingBottom || $[18] !== insetPaddingLeft || $[19] !== insetPaddingRight || $[20] !== insetPaddingTop || $[21] !== insetRight || $[22] !== insetTop || $[23] !== insets || $[24] !== insetsPadding) {
81
+ t4 = {
82
+ insets,
83
+ insetTop,
84
+ insetBottom,
85
+ insetLeft,
86
+ insetRight,
87
+ insetsPadding,
88
+ insetPaddingTop,
89
+ insetPaddingBottom,
90
+ insetPaddingLeft,
91
+ insetPaddingRight
92
+ };
93
+ $[15] = insetBottom;
94
+ $[16] = insetLeft;
95
+ $[17] = insetPaddingBottom;
96
+ $[18] = insetPaddingLeft;
97
+ $[19] = insetPaddingRight;
98
+ $[20] = insetPaddingTop;
99
+ $[21] = insetRight;
100
+ $[22] = insetTop;
101
+ $[23] = insets;
102
+ $[24] = insetsPadding;
103
+ $[25] = t4;
104
+ } else {
105
+ t4 = $[25];
106
+ }
107
+ const insetsStyle = useInsetsStyle(t4);
108
+ let t5;
109
+ if ($[26] !== insetsStyle || $[27] !== restyleContentContainerStyle) {
110
+ t5 = composeStyles(restyleContentContainerStyle, insetsStyle);
111
+ $[26] = insetsStyle;
112
+ $[27] = restyleContentContainerStyle;
113
+ $[28] = t5;
114
+ } else {
115
+ t5 = $[28];
116
+ }
117
+ const contentContainerStyle = t5;
118
+ let t6;
119
+ if ($[29] !== contentContainerStyle || $[30] !== restyles) {
120
+ t6 = /*#__PURE__*/_jsx(ScrollView, {
121
+ showsVerticalScrollIndicator: __DEV__,
122
+ showsHorizontalScrollIndicator: __DEV__,
123
+ contentContainerStyle: contentContainerStyle,
124
+ accessible: true,
125
+ role: "group",
126
+ ...restyles
127
+ });
128
+ $[29] = contentContainerStyle;
129
+ $[30] = restyles;
130
+ $[31] = t6;
131
+ } else {
132
+ t6 = $[31];
133
+ }
134
+ return t6;
47
135
  };
48
136
  export default ThemedScrollView;
49
137
  //# sourceMappingURL=ThemedScrollView.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["useRestyle","ScrollView","useInsetsStyle","composeStyles","themedScrollViewRestyleFuncs","jsx","_jsx","ThemedScrollView","insets","insetTop","insetBottom","insetLeft","insetRight","insetsPadding","insetPaddingTop","insetPaddingBottom","insetPaddingLeft","insetPaddingRight","props","contentContainerStyle","restyleContentContainerStyle","restyles","insetsStyle","showsVerticalScrollIndicator","__DEV__","showsHorizontalScrollIndicator","accessible","role"],"sourceRoot":"../../../../src","sources":["components/view/ThemedScrollView.tsx"],"mappings":";;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAE7C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,cAAc,QAAQ,sBAAmB;AAElD,SAASC,aAAa,QAAQ,2BAAwB;AACtD,SAASC,4BAA4B,QAAQ,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzE,MAAMC,gBAA2C,GAAGA,CAAC;EACnDC,MAAM;EACNC,QAAQ;EACRC,WAAW,GAAG,IAAI;EAClBC,SAAS;EACTC,UAAU;EACVC,aAAa;EACbC,eAAe;EACfC,kBAAkB,GAAG,GAAG;EACxBC,gBAAgB;EAChBC,iBAAiB;EACjB,GAAGC;AACL,CAAC,KAAK;EACJ,MAAM;IAAEC,qBAAqB,EAAEC,4BAA4B;IAAE,GAAGC;EAAS,CAAC,GACxErB,UAAU,CAACI,4BAA4B,EAAEc,KAAK,CAAC;EACjD,MAAMI,WAAW,GAAGpB,cAAc,CAAC;IACjCM,MAAM;IACNC,QAAQ;IACRC,WAAW;IACXC,SAAS;IACTC,UAAU;IACVC,aAAa;IACbC,eAAe;IACfC,kBAAkB;IAClBC,gBAAgB;IAChBC;EACF,CAAC,CAAC;EAEF,MAAME,qBAAqB,GAAGhB,aAAa,CACzCiB,4BAA4B,EAC5BE,WACF,CAAC;EAED,oBACEhB,IAAA,CAACL,UAAU;IACTsB,4BAA4B,EAAEC,OAAQ;IACtCC,8BAA8B,EAAED,OAAQ;IACxCL,qBAAqB,EAAEA,qBAAsB;IAC7CO,UAAU,EAAE,IAAK;IACjBC,IAAI,EAAE,OAAQ;IAAA,GACVN;EAAQ,CACb,CAAC;AAEN,CAAC;AAED,eAAed,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["useRestyle","ScrollView","useInsetsStyle","composeStyles","themedScrollViewRestyleFuncs","jsx","_jsx","ThemedScrollView","t0","$","_c","insetLeft","insetPaddingLeft","insetPaddingRight","insetPaddingTop","insetRight","insetTop","insets","insetsPadding","props","t1","t2","insetBottom","insetPaddingBottom","undefined","t3","restyleContentContainerStyle","restyles","contentContainerStyle","t4","insetsStyle","t5","t6","__DEV__","accessible","role"],"sourceRoot":"../../../../src","sources":["components/view/ThemedScrollView.tsx"],"mappings":";;;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAE7C,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,cAAc,QAAQ,sBAAmB;AAElD,SAASC,aAAa,QAAQ,2BAAwB;AACtD,SAASC,4BAA4B,QAAQ,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEzE,MAAMC,gBAA2C,GAAGC,EAAA;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,cAAc,CAAC2B,EAWlC,CAAC;EAAC,IAAAE,EAAA;EAAA,IAAAtB,CAAA,SAAAqB,WAAA,IAAArB,CAAA,SAAAiB,4BAAA;IAE2BK,EAAA,GAAA5B,aAAa,CACzCuB,4BAA4B,EAC5BI,WACF,CAAC;IAAArB,CAAA,OAAAqB,WAAA;IAAArB,CAAA,OAAAiB,4BAAA;IAAAjB,CAAA,OAAAsB,EAAA;EAAA;IAAAA,EAAA,GAAAtB,CAAA;EAAA;EAHD,MAAAmB,qBAAA,GAA8BG,EAG7B;EAAC,IAAAC,EAAA;EAAA,IAAAvB,CAAA,SAAAmB,qBAAA,IAAAnB,CAAA,SAAAkB,QAAA;IAGAK,EAAA,gBAAA1B,IAAA,CAACL,UAAU;MACqBgC,4BAAO,EAAPA,OAAO;MACLA,8BAAO,EAAPA,OAAO;MAChBL,qBAAqB,EAArBA,qBAAqB;MAChCM,UAAI,EAAJ,IAAI;MACVC,IAAO,EAAP,OAAO;MAAA,GACTR;IAAQ,CACb,CAAC;IAAAlB,CAAA,OAAAmB,qBAAA;IAAAnB,CAAA,OAAAkB,QAAA;IAAAlB,CAAA,OAAAuB,EAAA;EAAA;IAAAA,EAAA,GAAAvB,CAAA;EAAA;EAAA,OAPFuB,EAOE;AAAA,CAEL;AAED,eAAezB,gBAAgB","ignoreList":[]}
@@ -1,17 +1,40 @@
1
1
  "use strict";
2
2
 
3
+ import { c as _c } from "react/compiler-runtime";
3
4
  import Box from "./Box.js";
4
5
  import { jsx as _jsx } from "react/jsx-runtime";
5
- const ThemedView = ({
6
- backgroundColor = 'background',
7
- ...props
8
- }) => {
9
- return /*#__PURE__*/_jsx(Box, {
10
- backgroundColor: backgroundColor,
11
- accessible: true,
12
- role: 'group',
13
- ...props
14
- });
6
+ const ThemedView = t0 => {
7
+ const $ = _c(6);
8
+ let props;
9
+ let t1;
10
+ if ($[0] !== t0) {
11
+ ({
12
+ backgroundColor: t1,
13
+ ...props
14
+ } = t0);
15
+ $[0] = t0;
16
+ $[1] = props;
17
+ $[2] = t1;
18
+ } else {
19
+ props = $[1];
20
+ t1 = $[2];
21
+ }
22
+ const backgroundColor = t1 === undefined ? "background" : t1;
23
+ let t2;
24
+ if ($[3] !== backgroundColor || $[4] !== props) {
25
+ t2 = /*#__PURE__*/_jsx(Box, {
26
+ backgroundColor: backgroundColor,
27
+ accessible: true,
28
+ role: "group",
29
+ ...props
30
+ });
31
+ $[3] = backgroundColor;
32
+ $[4] = props;
33
+ $[5] = t2;
34
+ } else {
35
+ t2 = $[5];
36
+ }
37
+ return t2;
15
38
  };
16
39
  export default ThemedView;
17
40
  //# sourceMappingURL=ThemedView.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Box","jsx","_jsx","ThemedView","backgroundColor","props","accessible","role"],"sourceRoot":"../../../../src","sources":["components/view/ThemedView.tsx"],"mappings":";;AAEA,OAAOA,GAAG,MAAM,UAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAExB,MAAMC,UAA+B,GAAGA,CAAC;EACvCC,eAAe,GAAG,YAAY;EAC9B,GAAGC;AACL,CAAC,KAAK;EACJ,oBACEH,IAAA,CAACF,GAAG;IACFI,eAAe,EAAEA,eAAgB;IACjCE,UAAU,EAAE,IAAK;IACjBC,IAAI,EAAE,OAAQ;IAAA,GACVF;EAAK,CACV,CAAC;AAEN,CAAC;AAED,eAAeF,UAAU","ignoreList":[]}
1
+ {"version":3,"names":["Box","jsx","_jsx","ThemedView","t0","$","_c","props","t1","backgroundColor","undefined","t2","accessible","role"],"sourceRoot":"../../../../src","sources":["components/view/ThemedView.tsx"],"mappings":";;;AAEA,OAAOA,GAAG,MAAM,UAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAExB,MAAMC,UAA+B,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAH,CAAA,QAAAD,EAAA;IAAC;MAAAK,eAAA,EAAAD,EAAA;MAAA,GAAAD;IAAA,IAAAH,EAGxC;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,KAAA;IAAAF,CAAA,MAAAG,EAAA;EAAA;IAAAD,KAAA,GAAAF,CAAA;IAAAG,EAAA,GAAAH,CAAA;EAAA;EAFC,MAAAI,eAAA,GAAAD,EAA8B,KAA9BE,SAA8B,GAA9B,YAA8B,GAA9BF,EAA8B;EAAA,IAAAG,EAAA;EAAA,IAAAN,CAAA,QAAAI,eAAA,IAAAJ,CAAA,QAAAE,KAAA;IAI5BI,EAAA,gBAAAT,IAAA,CAACF,GAAG;MACeS,eAAe,EAAfA,eAAe;MACpBG,UAAI,EAAJ,IAAI;MACVC,IAAO,EAAP,OAAO;MAAA,GACTN;IAAK,CACV,CAAC;IAAAF,CAAA,MAAAI,eAAA;IAAAJ,CAAA,MAAAE,KAAA;IAAAF,CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAAA,OALFM,EAKE;AAAA,CAEL;AAED,eAAeR,UAAU","ignoreList":[]}