@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.
- package/lib/module/components/button/AnimatedThemedPressable.js +13 -3
- package/lib/module/components/button/AnimatedThemedPressable.js.map +1 -1
- package/lib/module/components/button/ThemedButton.js +84 -23
- package/lib/module/components/button/ThemedButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconButton.js +62 -16
- package/lib/module/components/button/ThemedIconButton.js.map +1 -1
- package/lib/module/components/button/ThemedIconTextButton.js +118 -29
- package/lib/module/components/button/ThemedIconTextButton.js.map +1 -1
- package/lib/module/components/button/ThemedPressable.js +13 -3
- package/lib/module/components/button/ThemedPressable.js.map +1 -1
- package/lib/module/components/icon/ThemedIcon.js +56 -15
- package/lib/module/components/icon/ThemedIcon.js.map +1 -1
- package/lib/module/components/list/List.js +131 -39
- package/lib/module/components/list/List.js.map +1 -1
- package/lib/module/components/loading/ThemedLoading.js +50 -13
- package/lib/module/components/loading/ThemedLoading.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.js +64 -19
- package/lib/module/components/overlay/actionSheet/ActionSheet.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js +76 -0
- package/lib/module/components/overlay/actionSheet/ActionSheet.web.js.map +1 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js +19 -8
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +87 -31
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js +113 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.web.js.map +1 -0
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +69 -28
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +39 -14
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +58 -25
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +45 -21
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +75 -32
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +72 -30
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +45 -18
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +152 -36
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
- package/lib/module/components/overlay/alert/Alert.js +142 -51
- package/lib/module/components/overlay/alert/Alert.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButton.js +62 -26
- package/lib/module/components/overlay/alert/AlertButton.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertButtons.js +58 -23
- package/lib/module/components/overlay/alert/AlertButtons.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertContent.js +76 -17
- package/lib/module/components/overlay/alert/AlertContent.js.map +1 -1
- package/lib/module/components/overlay/alert/AlertWrap.js +125 -43
- package/lib/module/components/overlay/alert/AlertWrap.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js +96 -21
- package/lib/module/components/overlay/modal/ThemedLoadingModal.js.map +1 -1
- package/lib/module/components/overlay/modal/ThemedModal.js +76 -23
- package/lib/module/components/overlay/modal/ThemedModal.js.map +1 -1
- package/lib/module/components/overlay/toast/ThemedToast.js +339 -90
- package/lib/module/components/overlay/toast/ThemedToast.js.map +1 -1
- package/lib/module/components/provider/GestureProvider.js +15 -3
- package/lib/module/components/provider/GestureProvider.js.map +1 -1
- package/lib/module/components/provider/InsetsProvider.js +15 -3
- package/lib/module/components/provider/InsetsProvider.js.map +1 -1
- package/lib/module/components/provider/ReactNativeTemplateProviders.js +23 -11
- package/lib/module/components/provider/ReactNativeTemplateProviders.js.map +1 -1
- package/lib/module/components/provider/ThemeProvider.js +15 -3
- package/lib/module/components/provider/ThemeProvider.js.map +1 -1
- package/lib/module/components/separator/ThemedSeparator.js +53 -14
- package/lib/module/components/separator/ThemedSeparator.js.map +1 -1
- package/lib/module/components/slider/Slider.js +625 -137
- package/lib/module/components/slider/Slider.js.map +1 -1
- package/lib/module/components/slider/ThemedSlider.js +178 -54
- package/lib/module/components/slider/ThemedSlider.js.map +1 -1
- package/lib/module/components/slider/ThemedSlider.web.js +206 -0
- package/lib/module/components/slider/ThemedSlider.web.js.map +1 -0
- package/lib/module/components/slider/ThemedSliderStepIndicator.js +40 -15
- package/lib/module/components/slider/ThemedSliderStepIndicator.js.map +1 -1
- package/lib/module/components/switch/ThemedSwitch.js +81 -21
- package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
- package/lib/module/components/text/ThemedIconText.js +124 -35
- package/lib/module/components/text/ThemedIconText.js.map +1 -1
- package/lib/module/components/text/ThemedText.js +15 -3
- package/lib/module/components/text/ThemedText.js.map +1 -1
- package/lib/module/components/view/AnimatedThemedView.js +42 -11
- package/lib/module/components/view/AnimatedThemedView.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.js +144 -39
- package/lib/module/components/view/ThemedScreenWrap.js.map +1 -1
- package/lib/module/components/view/ThemedScreenWrap.web.js +111 -32
- package/lib/module/components/view/ThemedScreenWrap.web.js.map +1 -1
- package/lib/module/components/view/ThemedScrollView.js +126 -38
- package/lib/module/components/view/ThemedScrollView.js.map +1 -1
- package/lib/module/components/view/ThemedView.js +33 -10
- package/lib/module/components/view/ThemedView.js.map +1 -1
- package/lib/module/hooks/button.js +263 -84
- package/lib/module/hooks/button.js.map +1 -1
- package/lib/module/hooks/list.js +50 -10
- package/lib/module/hooks/list.js.map +1 -1
- package/lib/module/hooks/overlay.js +575 -187
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/module/hooks/react.js +90 -27
- package/lib/module/hooks/react.js.map +1 -1
- package/lib/module/hooks/reanimated.js.map +1 -1
- package/lib/module/hooks/style.js +43 -18
- package/lib/module/hooks/style.js.map +1 -1
- package/lib/module/hooks/switch.js +182 -43
- package/lib/module/hooks/switch.js.map +1 -1
- package/lib/module/hooks/theme.js +17 -8
- package/lib/module/hooks/theme.js.map +1 -1
- package/lib/module/hooks/view.js +56 -14
- package/lib/module/hooks/view.js.map +1 -1
- package/lib/module/index.js +2 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/utils/reanimated/func.js +60 -10
- package/lib/module/utils/reanimated/func.js.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts +5 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheet.web.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts +4 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.web.d.ts.map +1 -0
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -2
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/Slider.d.ts +3 -2
- package/lib/typescript/src/components/slider/Slider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSlider.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts +5 -0
- package/lib/typescript/src/components/slider/ThemedSlider.web.d.ts.map +1 -0
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +3 -2
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedView.d.ts +0 -2
- package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +0 -27
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
- package/lib/typescript/src/hooks/switch.d.ts +1 -20
- package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
- package/lib/typescript/src/types/list.d.ts +1 -10
- package/lib/typescript/src/types/list.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +1 -31
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +0 -33
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/reanimated/func.d.ts +1 -5
- package/lib/typescript/src/utils/reanimated/func.d.ts.map +1 -1
- package/lib/typescript/src/utils/switch/const.d.ts +1 -2
- package/lib/typescript/src/utils/switch/const.d.ts.map +1 -1
- package/package.json +14 -15
- package/src/components/button/AnimatedPressable.tsx +0 -7
- package/src/components/button/AnimatedThemedPressable.tsx +0 -12
- package/src/components/button/ThemedButton.tsx +0 -45
- package/src/components/button/ThemedIconButton.tsx +0 -33
- package/src/components/button/ThemedIconTextButton.tsx +0 -56
- package/src/components/button/ThemedPressable.tsx +0 -12
- package/src/components/icon/ThemedIcon.tsx +0 -31
- package/src/components/list/List.tsx +0 -55
- package/src/components/loading/ThemedLoading.tsx +0 -29
- package/src/components/overlay/actionSheet/ActionSheet.tsx +0 -31
- package/src/components/overlay/actionSheet/ActionSheetContentGesture.tsx +0 -15
- package/src/components/overlay/actionSheet/ActionSheetHeader.tsx +0 -72
- package/src/components/overlay/actionSheet/ActionSheetListView.tsx +0 -54
- package/src/components/overlay/actionSheet/ActionSheetListViewContent.tsx +0 -32
- package/src/components/overlay/actionSheet/ActionSheetOptionList.tsx +0 -51
- package/src/components/overlay/actionSheet/ActionSheetOptionListItem.tsx +0 -43
- package/src/components/overlay/actionSheet/ActionSheetOptions.tsx +0 -61
- package/src/components/overlay/actionSheet/ActionSheetScrollView.tsx +0 -57
- package/src/components/overlay/actionSheet/ActionSheetScrollViewContent.tsx +0 -38
- package/src/components/overlay/actionSheet/ActionSheetWrap.tsx +0 -75
- package/src/components/overlay/alert/Alert.tsx +0 -86
- package/src/components/overlay/alert/AlertButton.tsx +0 -41
- package/src/components/overlay/alert/AlertButtons.tsx +0 -32
- package/src/components/overlay/alert/AlertContent.tsx +0 -60
- package/src/components/overlay/alert/AlertWrap.tsx +0 -93
- package/src/components/overlay/modal/ThemedLoadingModal.tsx +0 -47
- package/src/components/overlay/modal/ThemedModal.tsx +0 -42
- package/src/components/overlay/toast/ThemedToast.tsx +0 -160
- package/src/components/provider/GestureProvider.tsx +0 -9
- package/src/components/provider/InsetsProvider.tsx +0 -11
- package/src/components/provider/ReactNativeTemplateProviders.tsx +0 -20
- package/src/components/provider/ThemeProvider.tsx +0 -8
- package/src/components/separator/ThemedSeparator.tsx +0 -24
- package/src/components/slider/Slider.tsx +0 -229
- package/src/components/slider/ThemedSlider.tsx +0 -103
- package/src/components/slider/ThemedSliderStepIndicator.tsx +0 -24
- package/src/components/switch/ThemedSwitch.tsx +0 -49
- package/src/components/text/Text.tsx +0 -7
- package/src/components/text/ThemedIconText.tsx +0 -58
- package/src/components/text/ThemedText.tsx +0 -7
- package/src/components/view/AnimatedThemedView.tsx +0 -18
- package/src/components/view/AnimatedView.tsx +0 -7
- package/src/components/view/Box.tsx +0 -7
- package/src/components/view/ThemedScreenWrap.tsx +0 -48
- package/src/components/view/ThemedScreenWrap.web.tsx +0 -41
- package/src/components/view/ThemedScrollView.tsx +0 -54
- package/src/components/view/ThemedView.tsx +0 -19
- package/src/hooks/button.ts +0 -152
- package/src/hooks/list.ts +0 -42
- package/src/hooks/overlay.ts +0 -471
- package/src/hooks/react.ts +0 -34
- package/src/hooks/reanimated.ts +0 -6
- package/src/hooks/separator.ts +0 -29
- package/src/hooks/style.ts +0 -79
- package/src/hooks/switch.ts +0 -119
- package/src/hooks/theme.ts +0 -65
- package/src/hooks/view.ts +0 -28
- package/src/index.ts +0 -59
- package/src/test/utils/const.ts +0 -9
- package/src/test/utils/func.ts +0 -55
- package/src/test/utils/testingLib.tsx +0 -17
- package/src/types/button.ts +0 -50
- package/src/types/global.d.ts +0 -5
- package/src/types/icon.ts +0 -21
- package/src/types/list.ts +0 -61
- package/src/types/loading.ts +0 -14
- package/src/types/overlay.ts +0 -216
- package/src/types/provider.ts +0 -6
- package/src/types/react.ts +0 -8
- package/src/types/reanimated.ts +0 -11
- package/src/types/separator.ts +0 -28
- package/src/types/slider.ts +0 -59
- package/src/types/style.ts +0 -26
- package/src/types/switch.ts +0 -31
- package/src/types/text.ts +0 -25
- package/src/types/theme.ts +0 -39
- package/src/types/view.ts +0 -58
- package/src/utils/button/const.ts +0 -10
- package/src/utils/overlay/const.ts +0 -77
- package/src/utils/overlay/func.ts +0 -107
- package/src/utils/reanimated/func.ts +0 -39
- package/src/utils/slider/const.ts +0 -23
- package/src/utils/style/const.ts +0 -4
- package/src/utils/style/func.ts +0 -37
- package/src/utils/switch/const.ts +0 -2
- package/src/utils/theme/const.ts +0 -189
- package/src/utils/theme/restyle.ts +0 -87
|
@@ -1,48 +1,140 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { FlashList } from '@shopify/flash-list';
|
|
4
5
|
import { useInsetsStyle } from "../../hooks/style.js";
|
|
5
6
|
import { composeStyles } from "../../utils/style/func.js";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
function List({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
8
|
+
function List(t0) {
|
|
9
|
+
const $ = _c(34);
|
|
10
|
+
let Item;
|
|
11
|
+
let contentContainerStyle;
|
|
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
|
+
Item,
|
|
26
|
+
insets,
|
|
27
|
+
insetTop,
|
|
28
|
+
insetBottom: t1,
|
|
29
|
+
insetLeft,
|
|
30
|
+
insetRight,
|
|
31
|
+
insetsPadding,
|
|
32
|
+
insetPaddingTop,
|
|
33
|
+
insetPaddingBottom: t2,
|
|
34
|
+
insetPaddingLeft,
|
|
35
|
+
insetPaddingRight,
|
|
36
|
+
contentContainerStyle,
|
|
37
|
+
...props
|
|
38
|
+
} = t0);
|
|
39
|
+
$[0] = t0;
|
|
40
|
+
$[1] = Item;
|
|
41
|
+
$[2] = contentContainerStyle;
|
|
42
|
+
$[3] = insetLeft;
|
|
43
|
+
$[4] = insetPaddingLeft;
|
|
44
|
+
$[5] = insetPaddingRight;
|
|
45
|
+
$[6] = insetPaddingTop;
|
|
46
|
+
$[7] = insetRight;
|
|
47
|
+
$[8] = insetTop;
|
|
48
|
+
$[9] = insets;
|
|
49
|
+
$[10] = insetsPadding;
|
|
50
|
+
$[11] = props;
|
|
51
|
+
$[12] = t1;
|
|
52
|
+
$[13] = t2;
|
|
53
|
+
} else {
|
|
54
|
+
Item = $[1];
|
|
55
|
+
contentContainerStyle = $[2];
|
|
56
|
+
insetLeft = $[3];
|
|
57
|
+
insetPaddingLeft = $[4];
|
|
58
|
+
insetPaddingRight = $[5];
|
|
59
|
+
insetPaddingTop = $[6];
|
|
60
|
+
insetRight = $[7];
|
|
61
|
+
insetTop = $[8];
|
|
62
|
+
insets = $[9];
|
|
63
|
+
insetsPadding = $[10];
|
|
64
|
+
props = $[11];
|
|
65
|
+
t1 = $[12];
|
|
66
|
+
t2 = $[13];
|
|
67
|
+
}
|
|
68
|
+
const insetBottom = t1 === undefined ? true : t1;
|
|
69
|
+
const insetPaddingBottom = t2 === undefined ? "m" : t2;
|
|
70
|
+
let t3;
|
|
71
|
+
if ($[14] !== insetBottom || $[15] !== insetLeft || $[16] !== insetPaddingBottom || $[17] !== insetPaddingLeft || $[18] !== insetPaddingRight || $[19] !== insetPaddingTop || $[20] !== insetRight || $[21] !== insetTop || $[22] !== insets || $[23] !== insetsPadding) {
|
|
72
|
+
t3 = {
|
|
73
|
+
insets,
|
|
74
|
+
insetTop,
|
|
75
|
+
insetBottom,
|
|
76
|
+
insetLeft,
|
|
77
|
+
insetRight,
|
|
78
|
+
insetsPadding,
|
|
79
|
+
insetPaddingTop,
|
|
80
|
+
insetPaddingBottom,
|
|
81
|
+
insetPaddingLeft,
|
|
82
|
+
insetPaddingRight
|
|
83
|
+
};
|
|
84
|
+
$[14] = insetBottom;
|
|
85
|
+
$[15] = insetLeft;
|
|
86
|
+
$[16] = insetPaddingBottom;
|
|
87
|
+
$[17] = insetPaddingLeft;
|
|
88
|
+
$[18] = insetPaddingRight;
|
|
89
|
+
$[19] = insetPaddingTop;
|
|
90
|
+
$[20] = insetRight;
|
|
91
|
+
$[21] = insetTop;
|
|
92
|
+
$[22] = insets;
|
|
93
|
+
$[23] = insetsPadding;
|
|
94
|
+
$[24] = t3;
|
|
95
|
+
} else {
|
|
96
|
+
t3 = $[24];
|
|
97
|
+
}
|
|
98
|
+
const insetsStyle = useInsetsStyle(t3);
|
|
99
|
+
let t4;
|
|
100
|
+
if ($[25] !== Item) {
|
|
101
|
+
t4 = listItemProps => /*#__PURE__*/_jsx(Item, {
|
|
102
|
+
...listItemProps
|
|
103
|
+
});
|
|
104
|
+
$[25] = Item;
|
|
105
|
+
$[26] = t4;
|
|
106
|
+
} else {
|
|
107
|
+
t4 = $[26];
|
|
108
|
+
}
|
|
109
|
+
const renderItem = t4;
|
|
110
|
+
let t5;
|
|
111
|
+
if ($[27] !== contentContainerStyle || $[28] !== insetsStyle) {
|
|
112
|
+
t5 = composeStyles(insetsStyle, contentContainerStyle);
|
|
113
|
+
$[27] = contentContainerStyle;
|
|
114
|
+
$[28] = insetsStyle;
|
|
115
|
+
$[29] = t5;
|
|
116
|
+
} else {
|
|
117
|
+
t5 = $[29];
|
|
118
|
+
}
|
|
119
|
+
const listContentContainerStyle = t5;
|
|
120
|
+
let t6;
|
|
121
|
+
if ($[30] !== listContentContainerStyle || $[31] !== props || $[32] !== renderItem) {
|
|
122
|
+
t6 = /*#__PURE__*/_jsx(FlashList, {
|
|
123
|
+
renderItem: renderItem,
|
|
124
|
+
overScrollMode: "always",
|
|
125
|
+
showsVerticalScrollIndicator: __DEV__,
|
|
126
|
+
showsHorizontalScrollIndicator: __DEV__,
|
|
127
|
+
contentContainerStyle: listContentContainerStyle,
|
|
128
|
+
...props
|
|
129
|
+
});
|
|
130
|
+
$[30] = listContentContainerStyle;
|
|
131
|
+
$[31] = props;
|
|
132
|
+
$[32] = renderItem;
|
|
133
|
+
$[33] = t6;
|
|
134
|
+
} else {
|
|
135
|
+
t6 = $[33];
|
|
136
|
+
}
|
|
137
|
+
return t6;
|
|
46
138
|
}
|
|
47
139
|
export default List;
|
|
48
140
|
//# sourceMappingURL=List.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FlashList","useInsetsStyle","composeStyles","jsx","_jsx","List","
|
|
1
|
+
{"version":3,"names":["FlashList","useInsetsStyle","composeStyles","jsx","_jsx","List","t0","$","_c","Item","contentContainerStyle","insetLeft","insetPaddingLeft","insetPaddingRight","insetPaddingTop","insetRight","insetTop","insets","insetsPadding","props","t1","t2","insetBottom","insetPaddingBottom","undefined","t3","insetsStyle","t4","listItemProps","renderItem","t5","listContentContainerStyle","t6","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|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { useRestyle } from '@shopify/restyle';
|
|
4
5
|
import { ActivityIndicator } from 'react-native';
|
|
5
6
|
import { themedLoadingColorRestyleFuncs, themedLoadingRestyleFuncs } from "../../utils/theme/restyle.js";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
const ThemedLoading =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const ThemedLoading = t0 => {
|
|
9
|
+
const $ = _c(10);
|
|
10
|
+
let props;
|
|
11
|
+
let t1;
|
|
12
|
+
let t2;
|
|
13
|
+
if ($[0] !== t0) {
|
|
14
|
+
({
|
|
15
|
+
size: t1,
|
|
16
|
+
color: t2,
|
|
17
|
+
...props
|
|
18
|
+
} = t0);
|
|
19
|
+
$[0] = t0;
|
|
20
|
+
$[1] = props;
|
|
21
|
+
$[2] = t1;
|
|
22
|
+
$[3] = t2;
|
|
23
|
+
} else {
|
|
24
|
+
props = $[1];
|
|
25
|
+
t1 = $[2];
|
|
26
|
+
t2 = $[3];
|
|
27
|
+
}
|
|
28
|
+
const size = t1 === undefined ? "large" : t1;
|
|
29
|
+
const color = t2 === undefined ? "themePri" : t2;
|
|
12
30
|
const restyle = useRestyle(themedLoadingRestyleFuncs, props);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
31
|
+
let t3;
|
|
32
|
+
if ($[4] !== color) {
|
|
33
|
+
t3 = {
|
|
34
|
+
color
|
|
35
|
+
};
|
|
36
|
+
$[4] = color;
|
|
37
|
+
$[5] = t3;
|
|
38
|
+
} else {
|
|
39
|
+
t3 = $[5];
|
|
40
|
+
}
|
|
41
|
+
const colorRestyle = useRestyle(themedLoadingColorRestyleFuncs, t3);
|
|
42
|
+
const t4 = colorRestyle.style[0]?.color;
|
|
43
|
+
let t5;
|
|
44
|
+
if ($[6] !== restyle || $[7] !== size || $[8] !== t4) {
|
|
45
|
+
t5 = /*#__PURE__*/_jsx(ActivityIndicator, {
|
|
46
|
+
size: size,
|
|
47
|
+
color: t4,
|
|
48
|
+
...restyle
|
|
49
|
+
});
|
|
50
|
+
$[6] = restyle;
|
|
51
|
+
$[7] = size;
|
|
52
|
+
$[8] = t4;
|
|
53
|
+
$[9] = t5;
|
|
54
|
+
} else {
|
|
55
|
+
t5 = $[9];
|
|
56
|
+
}
|
|
57
|
+
return t5;
|
|
21
58
|
};
|
|
22
59
|
export default ThemedLoading;
|
|
23
60
|
//# sourceMappingURL=ThemedLoading.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useRestyle","ActivityIndicator","themedLoadingColorRestyleFuncs","themedLoadingRestyleFuncs","jsx","_jsx","ThemedLoading","size","color","
|
|
1
|
+
{"version":3,"names":["useRestyle","ActivityIndicator","themedLoadingColorRestyleFuncs","themedLoadingRestyleFuncs","jsx","_jsx","ThemedLoading","t0","$","_c","props","t1","t2","size","color","undefined","restyle","t3","colorRestyle","t4","style","t5"],"sourceRoot":"../../../../src","sources":["components/loading/ThemedLoading.tsx"],"mappings":";;;AAAA,SAASA,UAAU,QAAQ,kBAAkB;AAE7C,SAASC,iBAAiB,QAAQ,cAAc;AAEhD,SACEC,8BAA8B,EAC9BC,yBAAyB,QACpB,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEnC,MAAMC,aAAqC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAJ,CAAA,QAAAD,EAAA;IAAC;MAAAM,IAAA,EAAAF,EAAA;MAAAG,KAAA,EAAAF,EAAA;MAAA,GAAAF;IAAA,IAAAH,EAI9C;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,KAAA;IAAAF,CAAA,MAAAG,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ime";
|
|
4
5
|
const ActionSheetOptions = require('./ActionSheetOptions').default;
|
|
5
6
|
const ActionSheetScrollView = require('./ActionSheetScrollView').default;
|
|
6
7
|
const ActionSheetListView = require('./ActionSheetListView').default;
|
|
7
|
-
const ActionSheet =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if (
|
|
12
|
-
|
|
13
|
-
dismissable:
|
|
14
|
-
...props
|
|
15
|
-
});
|
|
16
|
-
} else if (props.children) {
|
|
17
|
-
return /*#__PURE__*/_jsx(ActionSheetScrollView, {
|
|
18
|
-
dismissable: dismissable,
|
|
19
|
-
...props
|
|
20
|
-
});
|
|
21
|
-
} else if (props.listProps) {
|
|
22
|
-
return /*#__PURE__*/_jsx(ActionSheetListView, {
|
|
23
|
-
dismissable: dismissable,
|
|
8
|
+
const ActionSheet = t0 => {
|
|
9
|
+
const $ = _c(12);
|
|
10
|
+
let props;
|
|
11
|
+
let t1;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({
|
|
14
|
+
dismissable: t1,
|
|
24
15
|
...props
|
|
25
|
-
});
|
|
16
|
+
} = t0);
|
|
17
|
+
$[0] = t0;
|
|
18
|
+
$[1] = props;
|
|
19
|
+
$[2] = t1;
|
|
20
|
+
} else {
|
|
21
|
+
props = $[1];
|
|
22
|
+
t1 = $[2];
|
|
23
|
+
}
|
|
24
|
+
const dismissable = t1 === undefined ? true : t1;
|
|
25
|
+
if (props.options?.length) {
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[3] !== dismissable || $[4] !== props) {
|
|
28
|
+
t2 = /*#__PURE__*/_jsx(ActionSheetOptions, {
|
|
29
|
+
dismissable: dismissable,
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
$[3] = dismissable;
|
|
33
|
+
$[4] = props;
|
|
34
|
+
$[5] = t2;
|
|
35
|
+
} else {
|
|
36
|
+
t2 = $[5];
|
|
37
|
+
}
|
|
38
|
+
return t2;
|
|
26
39
|
} else {
|
|
27
|
-
|
|
40
|
+
if (props.children) {
|
|
41
|
+
let t2;
|
|
42
|
+
if ($[6] !== dismissable || $[7] !== props) {
|
|
43
|
+
t2 = /*#__PURE__*/_jsx(ActionSheetScrollView, {
|
|
44
|
+
dismissable: dismissable,
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
$[6] = dismissable;
|
|
48
|
+
$[7] = props;
|
|
49
|
+
$[8] = t2;
|
|
50
|
+
} else {
|
|
51
|
+
t2 = $[8];
|
|
52
|
+
}
|
|
53
|
+
return t2;
|
|
54
|
+
} else {
|
|
55
|
+
if (props.listProps) {
|
|
56
|
+
let t2;
|
|
57
|
+
if ($[9] !== dismissable || $[10] !== props) {
|
|
58
|
+
t2 = /*#__PURE__*/_jsx(ActionSheetListView, {
|
|
59
|
+
dismissable: dismissable,
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
$[9] = dismissable;
|
|
63
|
+
$[10] = props;
|
|
64
|
+
$[11] = t2;
|
|
65
|
+
} else {
|
|
66
|
+
t2 = $[11];
|
|
67
|
+
}
|
|
68
|
+
return t2;
|
|
69
|
+
} else {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
28
73
|
}
|
|
29
74
|
};
|
|
30
75
|
export default ActionSheet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ActionSheetOptions","require","default","ActionSheetScrollView","ActionSheetListView","ActionSheet","
|
|
1
|
+
{"version":3,"names":["ActionSheetOptions","require","default","ActionSheetScrollView","ActionSheetListView","ActionSheet","t0","$","_c","props","t1","dismissable","undefined","options","length","t2","_jsx","children","listProps"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheet.tsx"],"mappings":";;;;AAQA,MAAMA,kBAA+C,GACnDC,OAAO,CAAC,sBAAsB,CAAC,CAACC,OAAO;AACzC,MAAMC,qBAAqD,GACzDF,OAAO,CAAC,yBAAyB,CAAC,CAACC,OAAO;AAC5C,MAAME,mBAAiD,GAC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CAAAS,SAAU;QAAA,IAAAH,EAAA;QAAA,IAAAR,CAAA,QAAAI,WAAA,IAAAJ,CAAA,SAAAE,KAAA;UACjBM,EAAA,gBAAAC,IAAA,CAACZ,mBAAmB;YAAcO,WAAW,EAAXA,WAAW;YAAA,GAAMF;UAAK,CAAG,CAAC;UAAAF,CAAA,MAAAI,WAAA;UAAAJ,CAAA,OAAAE,KAAA;UAAAF,CAAA,OAAAQ,EAAA;QAAA;UAAAA,EAAA,GAAAR,CAAA;QAAA;QAAA,OAA5DQ,EAA4D;MAAA;QAAA,OAE5D,IAAI;MAAA;IACZ;EAAA;AAAA,CACF;AAED,eAAeV,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
import ActionSheetListView from "./ActionSheetListView.js";
|
|
5
|
+
import ActionSheetOptions from "./ActionSheetOptions.js";
|
|
6
|
+
import ActionSheetScrollView from "./ActionSheetScrollView.js";
|
|
7
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
+
const ActionSheet = t0 => {
|
|
9
|
+
const $ = _c(12);
|
|
10
|
+
let props;
|
|
11
|
+
let t1;
|
|
12
|
+
if ($[0] !== t0) {
|
|
13
|
+
({
|
|
14
|
+
dismissable: t1,
|
|
15
|
+
...props
|
|
16
|
+
} = t0);
|
|
17
|
+
$[0] = t0;
|
|
18
|
+
$[1] = props;
|
|
19
|
+
$[2] = t1;
|
|
20
|
+
} else {
|
|
21
|
+
props = $[1];
|
|
22
|
+
t1 = $[2];
|
|
23
|
+
}
|
|
24
|
+
const dismissable = t1 === undefined ? true : t1;
|
|
25
|
+
if (props.options?.length) {
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[3] !== dismissable || $[4] !== props) {
|
|
28
|
+
t2 = /*#__PURE__*/_jsx(ActionSheetOptions, {
|
|
29
|
+
dismissable: dismissable,
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
$[3] = dismissable;
|
|
33
|
+
$[4] = props;
|
|
34
|
+
$[5] = t2;
|
|
35
|
+
} else {
|
|
36
|
+
t2 = $[5];
|
|
37
|
+
}
|
|
38
|
+
return t2;
|
|
39
|
+
} else {
|
|
40
|
+
if (props.children) {
|
|
41
|
+
let t2;
|
|
42
|
+
if ($[6] !== dismissable || $[7] !== props) {
|
|
43
|
+
t2 = /*#__PURE__*/_jsx(ActionSheetScrollView, {
|
|
44
|
+
dismissable: dismissable,
|
|
45
|
+
...props
|
|
46
|
+
});
|
|
47
|
+
$[6] = dismissable;
|
|
48
|
+
$[7] = props;
|
|
49
|
+
$[8] = t2;
|
|
50
|
+
} else {
|
|
51
|
+
t2 = $[8];
|
|
52
|
+
}
|
|
53
|
+
return t2;
|
|
54
|
+
} else {
|
|
55
|
+
if (props.listProps) {
|
|
56
|
+
let t2;
|
|
57
|
+
if ($[9] !== dismissable || $[10] !== props) {
|
|
58
|
+
t2 = /*#__PURE__*/_jsx(ActionSheetListView, {
|
|
59
|
+
dismissable: dismissable,
|
|
60
|
+
...props
|
|
61
|
+
});
|
|
62
|
+
$[9] = dismissable;
|
|
63
|
+
$[10] = props;
|
|
64
|
+
$[11] = t2;
|
|
65
|
+
} else {
|
|
66
|
+
t2 = $[11];
|
|
67
|
+
}
|
|
68
|
+
return t2;
|
|
69
|
+
} else {
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
export default ActionSheet;
|
|
76
|
+
//# sourceMappingURL=ActionSheet.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ActionSheetListView","ActionSheetOptions","ActionSheetScrollView","jsx","_jsx","ActionSheet","t0","$","_c","props","t1","dismissable","undefined","options","length","t2","children","listProps"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheet.web.tsx"],"mappings":";;;AAEA,OAAOA,mBAAmB,MAA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,GAAAR,CAAA;MAAA;MAAA,OAA9DQ,EAA8D;IAAA;MAChE,IAAIN,KAAK,CAAAQ,SAAU;QAAA,IAAAF,EAAA;QAAA,IAAAR,CAAA,QAAAI,WAAA,IAAAJ,CAAA,SAAAE,KAAA;UACjBM,EAAA,gBAAAX,IAAA,CAACJ,mBAAmB;YAAcW,WAAW,EAAXA,WAAW;YAAA,GAAMF;UAAK,CAAG,CAAC;UAAAF,CAAA,MAAAI,WAAA;UAAAJ,CAAA,OAAAE,KAAA;UAAAF,CAAA,OAAAQ,EAAA;QAAA;UAAAA,EAAA,GAAAR,CAAA;QAAA;QAAA,OAA5DQ,EAA4D;MAAA;QAAA,OAE5D,IAAI;MAAA;IACZ;EAAA;AAAA,CACF;AAED,eAAeV,WAAW","ignoreList":[]}
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
/** @internal */
|
|
4
|
-
|
|
5
5
|
import { GestureDetector } from 'react-native-gesture-handler';
|
|
6
6
|
import { useActionSheetContentGesture } from "../../../hooks/overlay.js";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
const ActionSheetContentGesture =
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const ActionSheetContentGesture = t0 => {
|
|
9
|
+
const $ = _c(3);
|
|
10
|
+
const {
|
|
11
|
+
children
|
|
12
|
+
} = t0;
|
|
11
13
|
const gesture = useActionSheetContentGesture();
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
let t1;
|
|
15
|
+
if ($[0] !== children || $[1] !== gesture) {
|
|
16
|
+
t1 = /*#__PURE__*/_jsx(GestureDetector, {
|
|
17
|
+
gesture: gesture,
|
|
18
|
+
children: children
|
|
19
|
+
});
|
|
20
|
+
$[0] = children;
|
|
21
|
+
$[1] = gesture;
|
|
22
|
+
$[2] = t1;
|
|
23
|
+
} else {
|
|
24
|
+
t1 = $[2];
|
|
25
|
+
}
|
|
26
|
+
return t1;
|
|
16
27
|
};
|
|
17
28
|
export default ActionSheetContentGesture;
|
|
18
29
|
//# sourceMappingURL=ActionSheetContentGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GestureDetector","useActionSheetContentGesture","jsx","_jsx","ActionSheetContentGesture","children","gesture"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetContentGesture.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["GestureDetector","useActionSheetContentGesture","jsx","_jsx","ActionSheetContentGesture","t0","$","_c","children","gesture","t1"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetContentGesture.tsx"],"mappings":";;;AAAA;AAEA,SAASA,eAAe,QAAQ,8BAA8B;AAC9D,SAASC,4BAA4B,QAAQ,2BAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAGtE,MAAMC,yBAAwD,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC;EAAA,IAAAH,EAEjE;EACC,MAAAI,OAAA,GAAgBR,4BAA4B,CAAC,CAAC;EAAC,IAAAS,EAAA;EAAA,IAAAJ,CAAA,QAAAE,QAAA,IAAAF,CAAA,QAAAG,OAAA;IAExCC,EAAA,gBAAAP,IAAA,CAACH,eAAe;MAAUS,OAAO,EAAPA,OAAO;MAAAD,QAAA,EAAGA;IAAQ,CAAkB,CAAC;IAAAF,CAAA,MAAAE,QAAA;IAAAF,CAAA,MAAAG,OAAA;IAAAH,CAAA,MAAAI,EAAA;EAAA;IAAAA,EAAA,GAAAJ,CAAA;EAAA;EAAA,OAA/DI,EAA+D;AAAA,CACvE;AAED,eAAeN,yBAAyB","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
/** @internal */
|
|
4
|
-
|
|
5
5
|
import { GestureDetector } from 'react-native-gesture-handler';
|
|
6
6
|
import { useActionSheetGesture, useActionSheetHeaderMinHeight, useActionSheetOnDismiss } from "../../../hooks/overlay.js";
|
|
7
7
|
import { actionSheetHeaderIconSize, actionSheetHeaderPadding } from "../../../utils/overlay/const.js";
|
|
@@ -11,47 +11,103 @@ import ThemedView from "../../view/ThemedView.js";
|
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
const ThemedText = require('../../text/ThemedText').default;
|
|
13
13
|
const ThemedIconButton = require('../../button/ThemedIconButton').default;
|
|
14
|
-
const ActionSheetHeader =
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
const ActionSheetHeader = t0 => {
|
|
15
|
+
const $ = _c(17);
|
|
16
|
+
const {
|
|
17
|
+
headerShowIcon: t1,
|
|
18
|
+
headerWrapProps,
|
|
19
|
+
headerTextProps,
|
|
20
|
+
headerIconButtonProps
|
|
21
|
+
} = t0;
|
|
22
|
+
const headerShowIcon = t1 === undefined ? true : t1;
|
|
20
23
|
const gesture = useActionSheetGesture();
|
|
21
24
|
const minHeight = useActionSheetHeaderMinHeight();
|
|
22
25
|
const onDismiss = useActionSheetOnDismiss();
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
28
|
+
t2 = getActionSheetContext();
|
|
29
|
+
$[0] = t2;
|
|
30
|
+
} else {
|
|
31
|
+
t2 = $[0];
|
|
32
|
+
}
|
|
23
33
|
const {
|
|
24
34
|
title,
|
|
25
35
|
headerViewRef
|
|
26
|
-
} =
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
36
|
+
} = t2;
|
|
37
|
+
let t3;
|
|
38
|
+
if ($[1] !== onDismiss) {
|
|
39
|
+
t3 = () => {
|
|
40
|
+
onDismiss();
|
|
41
|
+
};
|
|
42
|
+
$[1] = onDismiss;
|
|
43
|
+
$[2] = t3;
|
|
44
|
+
} else {
|
|
45
|
+
t3 = $[2];
|
|
46
|
+
}
|
|
47
|
+
const onIconPress = t3;
|
|
48
|
+
let t4;
|
|
49
|
+
if ($[3] !== headerTextProps) {
|
|
50
|
+
t4 = !!title && /*#__PURE__*/_jsx(ThemedText, {
|
|
51
|
+
variant: "textMBold",
|
|
52
|
+
...headerTextProps,
|
|
53
|
+
children: title
|
|
54
|
+
});
|
|
55
|
+
$[3] = headerTextProps;
|
|
56
|
+
$[4] = t4;
|
|
57
|
+
} else {
|
|
58
|
+
t4 = $[4];
|
|
59
|
+
}
|
|
60
|
+
let t5;
|
|
61
|
+
if ($[5] !== headerIconButtonProps || $[6] !== headerShowIcon || $[7] !== onIconPress) {
|
|
62
|
+
t5 = headerShowIcon && /*#__PURE__*/_jsx(ThemedIconButton, {
|
|
63
|
+
onPress: onIconPress,
|
|
64
|
+
iconName: "cross",
|
|
65
|
+
iconSize: actionSheetHeaderIconSize,
|
|
66
|
+
position: "absolute",
|
|
67
|
+
left: 0,
|
|
68
|
+
...headerIconButtonProps
|
|
69
|
+
});
|
|
70
|
+
$[5] = headerIconButtonProps;
|
|
71
|
+
$[6] = headerShowIcon;
|
|
72
|
+
$[7] = onIconPress;
|
|
73
|
+
$[8] = t5;
|
|
74
|
+
} else {
|
|
75
|
+
t5 = $[8];
|
|
76
|
+
}
|
|
77
|
+
let t6;
|
|
78
|
+
if ($[9] !== headerWrapProps || $[10] !== minHeight || $[11] !== t4 || $[12] !== t5) {
|
|
79
|
+
t6 = /*#__PURE__*/_jsxs(ThemedView, {
|
|
33
80
|
ref: headerViewRef,
|
|
34
|
-
justifyContent:
|
|
35
|
-
alignItems:
|
|
81
|
+
justifyContent: "center",
|
|
82
|
+
alignItems: "center",
|
|
36
83
|
minHeight: minHeight,
|
|
37
84
|
padding: actionSheetHeaderPadding,
|
|
38
85
|
borderBottomWidth: BorderSize.S,
|
|
39
|
-
borderColor:
|
|
86
|
+
borderColor: "border",
|
|
40
87
|
...headerWrapProps,
|
|
41
|
-
children: [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
88
|
+
children: [t4, t5]
|
|
89
|
+
});
|
|
90
|
+
$[9] = headerWrapProps;
|
|
91
|
+
$[10] = minHeight;
|
|
92
|
+
$[11] = t4;
|
|
93
|
+
$[12] = t5;
|
|
94
|
+
$[13] = t6;
|
|
95
|
+
} else {
|
|
96
|
+
t6 = $[13];
|
|
97
|
+
}
|
|
98
|
+
let t7;
|
|
99
|
+
if ($[14] !== gesture || $[15] !== t6) {
|
|
100
|
+
t7 = /*#__PURE__*/_jsx(GestureDetector, {
|
|
101
|
+
gesture: gesture,
|
|
102
|
+
children: t6
|
|
103
|
+
});
|
|
104
|
+
$[14] = gesture;
|
|
105
|
+
$[15] = t6;
|
|
106
|
+
$[16] = t7;
|
|
107
|
+
} else {
|
|
108
|
+
t7 = $[16];
|
|
109
|
+
}
|
|
110
|
+
return t7;
|
|
55
111
|
};
|
|
56
112
|
export default ActionSheetHeader;
|
|
57
113
|
//# sourceMappingURL=ActionSheetHeader.js.map
|