@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,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { useEffect } from 'react';
|
|
4
5
|
import { useAnimatedStyle } from 'react-native-reanimated';
|
|
5
6
|
import { overlayMaxWidthPercent } from "../../../utils/overlay/const.js";
|
|
@@ -8,56 +9,137 @@ import { updateSharedValWithSpring } from "../../../utils/reanimated/func.js";
|
|
|
8
9
|
import AnimatedThemedView from "../../view/AnimatedThemedView.js";
|
|
9
10
|
import ThemedModal from "../modal/ThemedModal.js";
|
|
10
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
const _worklet_12974468810384_init_data = {
|
|
13
|
+
code: "function AlertWrapTsx1(){const{showSharedVal}=this.__closure;return{transform:[{scale:showSharedVal.get()}]};}",
|
|
14
|
+
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/overlay/alert/AlertWrap.tsx",
|
|
15
|
+
sourceMap: "{\"version\":3,\"names\":[\"AlertWrapTsx1\",\"showSharedVal\",\"__closure\",\"transform\",\"scale\",\"get\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/components/overlay/alert/AlertWrap.tsx\"],\"mappings\":\"AAuCI,SAAAA,cAAA,QAAAC,aAAA,OAAAC,SAAA,OAAO,CAAAC,SAAA,CACM,CAAC,CAAAC,KAAA,CAASH,aAAa,CAAAI,GAAI,CAAC,CAAE,CAAC,CAC5C,CAAC\",\"ignoreList\":[]}"
|
|
16
|
+
};
|
|
17
|
+
const AlertWrap = t0 => {
|
|
18
|
+
const $ = _c(21);
|
|
19
|
+
const {
|
|
20
|
+
customShowAnimation,
|
|
21
|
+
wrapProps,
|
|
22
|
+
title,
|
|
23
|
+
description,
|
|
24
|
+
buttons,
|
|
25
|
+
dismissable,
|
|
26
|
+
visible,
|
|
27
|
+
showSharedVal,
|
|
28
|
+
children
|
|
29
|
+
} = t0;
|
|
30
|
+
const animatedStyle = useAnimatedStyle(function AlertWrapTsx1Factory({
|
|
31
|
+
_worklet_12974468810384_init_data,
|
|
32
|
+
showSharedVal
|
|
33
|
+
}) {
|
|
34
|
+
const _e = [new global.Error(), -2, -27];
|
|
35
|
+
const AlertWrapTsx1 = () => ({
|
|
36
|
+
transform: [{
|
|
37
|
+
scale: showSharedVal.get()
|
|
38
|
+
}]
|
|
39
|
+
});
|
|
40
|
+
AlertWrapTsx1.__closure = {
|
|
41
|
+
showSharedVal
|
|
42
|
+
};
|
|
43
|
+
AlertWrapTsx1.__workletHash = 12974468810384;
|
|
44
|
+
AlertWrapTsx1.__pluginVersion = "0.8.3";
|
|
45
|
+
AlertWrapTsx1.__initData = _worklet_12974468810384_init_data;
|
|
46
|
+
AlertWrapTsx1.__stackDetails = _e;
|
|
47
|
+
return AlertWrapTsx1;
|
|
48
|
+
}({
|
|
49
|
+
_worklet_12974468810384_init_data,
|
|
50
|
+
showSharedVal
|
|
26
51
|
}), [showSharedVal]);
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
let t1;
|
|
53
|
+
if ($[0] !== customShowAnimation || $[1] !== showSharedVal || $[2] !== visible) {
|
|
54
|
+
t1 = () => {
|
|
55
|
+
if (!visible) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (customShowAnimation) {
|
|
59
|
+
customShowAnimation(showSharedVal, 1);
|
|
60
|
+
} else {
|
|
61
|
+
updateSharedValWithSpring(showSharedVal, 1, {
|
|
62
|
+
stiffness: 1800,
|
|
63
|
+
damping: 200,
|
|
64
|
+
mass: 20
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
$[0] = customShowAnimation;
|
|
69
|
+
$[1] = showSharedVal;
|
|
70
|
+
$[2] = visible;
|
|
71
|
+
$[3] = t1;
|
|
72
|
+
} else {
|
|
73
|
+
t1 = $[3];
|
|
74
|
+
}
|
|
75
|
+
let t2;
|
|
76
|
+
if ($[4] !== buttons || $[5] !== customShowAnimation || $[6] !== description || $[7] !== showSharedVal || $[8] !== title || $[9] !== visible) {
|
|
77
|
+
t2 = [customShowAnimation, title, description, buttons, visible, showSharedVal];
|
|
78
|
+
$[4] = buttons;
|
|
79
|
+
$[5] = customShowAnimation;
|
|
80
|
+
$[6] = description;
|
|
81
|
+
$[7] = showSharedVal;
|
|
82
|
+
$[8] = title;
|
|
83
|
+
$[9] = visible;
|
|
84
|
+
$[10] = t2;
|
|
85
|
+
} else {
|
|
86
|
+
t2 = $[10];
|
|
87
|
+
}
|
|
88
|
+
useEffect(t1, t2);
|
|
89
|
+
let t3;
|
|
90
|
+
if ($[11] === Symbol.for("react.memo_cache_sentinel")) {
|
|
91
|
+
t3 = getAlertContext();
|
|
92
|
+
$[11] = t3;
|
|
93
|
+
} else {
|
|
94
|
+
t3 = $[11];
|
|
95
|
+
}
|
|
41
96
|
const {
|
|
42
97
|
onDismiss
|
|
43
|
-
} =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
98
|
+
} = t3;
|
|
99
|
+
let t4;
|
|
100
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
101
|
+
t4 = () => {
|
|
102
|
+
onDismiss?.();
|
|
103
|
+
};
|
|
104
|
+
$[12] = t4;
|
|
105
|
+
} else {
|
|
106
|
+
t4 = $[12];
|
|
107
|
+
}
|
|
108
|
+
const modalOnDismiss = t4;
|
|
109
|
+
let t5;
|
|
110
|
+
if ($[13] !== animatedStyle || $[14] !== children || $[15] !== wrapProps) {
|
|
111
|
+
t5 = /*#__PURE__*/_jsx(AnimatedThemedView, {
|
|
52
112
|
width: overlayMaxWidthPercent,
|
|
53
|
-
padding:
|
|
54
|
-
gap:
|
|
55
|
-
backgroundColor:
|
|
113
|
+
padding: "l",
|
|
114
|
+
gap: "m",
|
|
115
|
+
backgroundColor: "background",
|
|
56
116
|
animatedStyle: animatedStyle,
|
|
57
117
|
...wrapProps,
|
|
58
118
|
children: children
|
|
59
|
-
})
|
|
60
|
-
|
|
119
|
+
});
|
|
120
|
+
$[13] = animatedStyle;
|
|
121
|
+
$[14] = children;
|
|
122
|
+
$[15] = wrapProps;
|
|
123
|
+
$[16] = t5;
|
|
124
|
+
} else {
|
|
125
|
+
t5 = $[16];
|
|
126
|
+
}
|
|
127
|
+
let t6;
|
|
128
|
+
if ($[17] !== dismissable || $[18] !== t5 || $[19] !== visible) {
|
|
129
|
+
t6 = /*#__PURE__*/_jsx(ThemedModal, {
|
|
130
|
+
visible: visible,
|
|
131
|
+
onDismiss: modalOnDismiss,
|
|
132
|
+
dismissable: dismissable,
|
|
133
|
+
children: t5
|
|
134
|
+
});
|
|
135
|
+
$[17] = dismissable;
|
|
136
|
+
$[18] = t5;
|
|
137
|
+
$[19] = visible;
|
|
138
|
+
$[20] = t6;
|
|
139
|
+
} else {
|
|
140
|
+
t6 = $[20];
|
|
141
|
+
}
|
|
142
|
+
return t6;
|
|
61
143
|
};
|
|
62
144
|
export default AlertWrap;
|
|
63
145
|
//# sourceMappingURL=AlertWrap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useAnimatedStyle","overlayMaxWidthPercent","getAlertContext","updateSharedValWithSpring","AnimatedThemedView","ThemedModal","jsx","_jsx","AlertWrap","customShowAnimation","wrapProps","title","description","buttons","dismissable","visible","showSharedVal","children","animatedStyle","transform","scale","get","stiffness","damping","mass","onDismiss","modalOnDismiss","
|
|
1
|
+
{"version":3,"names":["useEffect","useAnimatedStyle","overlayMaxWidthPercent","getAlertContext","updateSharedValWithSpring","AnimatedThemedView","ThemedModal","jsx","_jsx","_worklet_12974468810384_init_data","code","location","sourceMap","AlertWrap","t0","$","_c","customShowAnimation","wrapProps","title","description","buttons","dismissable","visible","showSharedVal","children","animatedStyle","AlertWrapTsx1Factory","_e","global","Error","AlertWrapTsx1","transform","scale","get","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","t1","stiffness","damping","mass","t2","t3","Symbol","for","onDismiss","t4","modalOnDismiss","t5","padding","gap","backgroundColor","t6"],"sourceRoot":"../../../../../src","sources":["components/overlay/alert/AlertWrap.tsx"],"mappings":";;;AAAA,SAASA,SAAS,QAAiB,OAAO;AAE1C,SAASC,gBAAgB,QAA0B,yBAAyB;AAI5E,SAASC,sBAAsB,QAAQ,iCAA8B;AACrE,SAASC,eAAe,QAAQ,gCAA6B;AAC7D,SAASC,yBAAyB,QAAQ,mCAAgC;AAC1E,OAAOC,kBAAkB,MAAM,kCAA+B;AAC9D,OAAOC,WAAW,MAAM,yBAAsB;AAAC,SAAAC,GAAA,IA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,CAAA,SAAAG,SAAA;IAQEiC,EAAA,gBAAA3C,IAAA,CAACH,kBAAkB;MACVH,KAAsB,EAAtBA,sBAAsB;MACpBkD,OAAG,EAAH,GAAG;MACPC,GAAG,EAAH,GAAG;MACSC,eAAY,EAAZ,YAAY;MACd5B,aAAa,EAAbA,aAAa;MAAA,GACxBR,SAAS;MAAAO,QAAA,EAEZA;IAAQ,CACS,CAAC;IAAAV,CAAA,OAAAW,aAAA;IAAAX,CAAA,OAAAU,QAAA;IAAAV,CAAA,OAAAG,SAAA;IAAAH,CAAA,OAAAoC,EAAA;EAAA;IAAAA,EAAA,GAAApC,CAAA;EAAA;EAAA,IAAAwC,EAAA;EAAA,IAAAxC,CAAA,SAAAO,WAAA,IAAAP,CAAA,SAAAoC,EAAA,IAAApC,CAAA,SAAAQ,OAAA;IAdvBgC,EAAA,gBAAA/C,IAAA,CAACF,WAAW;MACDiB,OAAO,EAAPA,OAAO;MACL2B,SAAc,EAAdA,cAAc;MACZ5B,WAAW,EAAXA,WAAW;MAAAG,QAAA,EAExB0B;IASqB,CACV,CAAC;IAAApC,CAAA,OAAAO,WAAA;IAAAP,CAAA,OAAAoC,EAAA;IAAApC,CAAA,OAAAQ,OAAA;IAAAR,CAAA,OAAAwC,EAAA;EAAA;IAAAA,EAAA,GAAAxC,CAAA;EAAA;EAAA,OAfdwC,EAec;AAAA,CAEjB;AAED,eAAe1C,SAAS","ignoreList":[]}
|
|
@@ -1,33 +1,84 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { overlayMaxWidthPercent } from "../../../utils/overlay/const.js";
|
|
4
5
|
import ThemedLoading from "../../loading/ThemedLoading.js";
|
|
5
6
|
import ThemedText from "../../text/ThemedText.js";
|
|
6
7
|
import ThemedModal from "./ThemedModal.js";
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
const ThemedLoadingModal =
|
|
9
|
-
|
|
10
|
-
loadingColor
|
|
11
|
-
loadingProps
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
textProps
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
9
|
+
const ThemedLoadingModal = t0 => {
|
|
10
|
+
const $ = _c(28);
|
|
11
|
+
let loadingColor;
|
|
12
|
+
let loadingProps;
|
|
13
|
+
let loadingSize;
|
|
14
|
+
let props;
|
|
15
|
+
let t1;
|
|
16
|
+
let text;
|
|
17
|
+
let textFontSize;
|
|
18
|
+
let textFontWeight;
|
|
19
|
+
let textProps;
|
|
20
|
+
let textStyle;
|
|
21
|
+
let textVariant;
|
|
22
|
+
if ($[0] !== t0) {
|
|
23
|
+
({
|
|
24
|
+
loadingSize,
|
|
25
|
+
loadingColor,
|
|
26
|
+
loadingProps,
|
|
27
|
+
text,
|
|
28
|
+
textVariant,
|
|
29
|
+
textFontSize,
|
|
30
|
+
textFontWeight,
|
|
31
|
+
textColor: t1,
|
|
32
|
+
textStyle,
|
|
33
|
+
textProps,
|
|
34
|
+
...props
|
|
35
|
+
} = t0);
|
|
36
|
+
$[0] = t0;
|
|
37
|
+
$[1] = loadingColor;
|
|
38
|
+
$[2] = loadingProps;
|
|
39
|
+
$[3] = loadingSize;
|
|
40
|
+
$[4] = props;
|
|
41
|
+
$[5] = t1;
|
|
42
|
+
$[6] = text;
|
|
43
|
+
$[7] = textFontSize;
|
|
44
|
+
$[8] = textFontWeight;
|
|
45
|
+
$[9] = textProps;
|
|
46
|
+
$[10] = textStyle;
|
|
47
|
+
$[11] = textVariant;
|
|
48
|
+
} else {
|
|
49
|
+
loadingColor = $[1];
|
|
50
|
+
loadingProps = $[2];
|
|
51
|
+
loadingSize = $[3];
|
|
52
|
+
props = $[4];
|
|
53
|
+
t1 = $[5];
|
|
54
|
+
text = $[6];
|
|
55
|
+
textFontSize = $[7];
|
|
56
|
+
textFontWeight = $[8];
|
|
57
|
+
textProps = $[9];
|
|
58
|
+
textStyle = $[10];
|
|
59
|
+
textVariant = $[11];
|
|
60
|
+
}
|
|
61
|
+
const textColor = t1 === undefined ? "textOverlay" : t1;
|
|
62
|
+
let t2;
|
|
63
|
+
if ($[12] !== loadingColor || $[13] !== loadingProps || $[14] !== loadingSize) {
|
|
64
|
+
t2 = /*#__PURE__*/_jsx(ThemedLoading, {
|
|
24
65
|
size: loadingSize,
|
|
25
66
|
color: loadingColor,
|
|
26
67
|
...loadingProps
|
|
27
|
-
})
|
|
28
|
-
|
|
68
|
+
});
|
|
69
|
+
$[12] = loadingColor;
|
|
70
|
+
$[13] = loadingProps;
|
|
71
|
+
$[14] = loadingSize;
|
|
72
|
+
$[15] = t2;
|
|
73
|
+
} else {
|
|
74
|
+
t2 = $[15];
|
|
75
|
+
}
|
|
76
|
+
let t3;
|
|
77
|
+
if ($[16] !== text || $[17] !== textColor || $[18] !== textFontSize || $[19] !== textFontWeight || $[20] !== textProps || $[21] !== textStyle || $[22] !== textVariant) {
|
|
78
|
+
t3 = !!text && /*#__PURE__*/_jsx(ThemedText, {
|
|
79
|
+
textAlign: "center",
|
|
29
80
|
maxWidth: overlayMaxWidthPercent,
|
|
30
|
-
marginTop:
|
|
81
|
+
marginTop: "m",
|
|
31
82
|
variant: textVariant,
|
|
32
83
|
fontSize: textFontSize,
|
|
33
84
|
fontWeight: textFontWeight,
|
|
@@ -35,8 +86,32 @@ const ThemedLoadingModal = ({
|
|
|
35
86
|
style: textStyle,
|
|
36
87
|
...textProps,
|
|
37
88
|
children: text
|
|
38
|
-
})
|
|
39
|
-
|
|
89
|
+
});
|
|
90
|
+
$[16] = text;
|
|
91
|
+
$[17] = textColor;
|
|
92
|
+
$[18] = textFontSize;
|
|
93
|
+
$[19] = textFontWeight;
|
|
94
|
+
$[20] = textProps;
|
|
95
|
+
$[21] = textStyle;
|
|
96
|
+
$[22] = textVariant;
|
|
97
|
+
$[23] = t3;
|
|
98
|
+
} else {
|
|
99
|
+
t3 = $[23];
|
|
100
|
+
}
|
|
101
|
+
let t4;
|
|
102
|
+
if ($[24] !== props || $[25] !== t2 || $[26] !== t3) {
|
|
103
|
+
t4 = /*#__PURE__*/_jsxs(ThemedModal, {
|
|
104
|
+
...props,
|
|
105
|
+
children: [t2, t3]
|
|
106
|
+
});
|
|
107
|
+
$[24] = props;
|
|
108
|
+
$[25] = t2;
|
|
109
|
+
$[26] = t3;
|
|
110
|
+
$[27] = t4;
|
|
111
|
+
} else {
|
|
112
|
+
t4 = $[27];
|
|
113
|
+
}
|
|
114
|
+
return t4;
|
|
40
115
|
};
|
|
41
116
|
export default ThemedLoadingModal;
|
|
42
117
|
//# sourceMappingURL=ThemedLoadingModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["overlayMaxWidthPercent","ThemedLoading","ThemedText","ThemedModal","jsx","_jsx","jsxs","_jsxs","ThemedLoadingModal","
|
|
1
|
+
{"version":3,"names":["overlayMaxWidthPercent","ThemedLoading","ThemedText","ThemedModal","jsx","_jsx","jsxs","_jsxs","ThemedLoadingModal","t0","$","_c","loadingColor","loadingProps","loadingSize","props","t1","text","textFontSize","textFontWeight","textProps","textStyle","textVariant","textColor","undefined","t2","t3","textAlign","marginTop","children","t4"],"sourceRoot":"../../../../../src","sources":["components/overlay/modal/ThemedLoadingModal.tsx"],"mappings":";;;AAEA,SAASA,sBAAsB,QAAQ,iCAA8B;AACrE,OAAOC,aAAa,MAAM,gCAA6B;AACvD,OAAOC,UAAU,MAAM,0BAAuB;AAC9C,OAAOC,WAAW,MAAM,kBAAe;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAExC,MAAMC,kBAA+C,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,YAAA;EAAA,IAAAC,YAAA;EAAA,IAAAC,WAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAA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A;IAAAL,CAAA,OAAAe,EAAA;IAAAf,CAAA,OAAAgB,EAAA;IAAAhB,CAAA,OAAAoB,EAAA;EAAA;IAAAA,EAAA,GAAApB,CAAA;EAAA;EAAA,OArBdoB,EAqBc;AAAA,CAEjB;AAED,eAAetB,kBAAkB","ignoreList":[]}
|
|
@@ -1,37 +1,90 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { Modal, StyleSheet } from 'react-native';
|
|
4
5
|
import ThemedPressable from "../../button/ThemedPressable.js";
|
|
5
6
|
import GestureProvider from "../../provider/GestureProvider.js";
|
|
6
7
|
import ThemedView from "../../view/ThemedView.js";
|
|
7
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
const ThemedModal =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
const ThemedModal = t0 => {
|
|
10
|
+
const $ = _c(16);
|
|
11
|
+
let children;
|
|
12
|
+
let contentWrapProps;
|
|
13
|
+
let onDismiss;
|
|
14
|
+
let props;
|
|
15
|
+
let t1;
|
|
16
|
+
if ($[0] !== t0) {
|
|
17
|
+
({
|
|
18
|
+
contentWrapProps,
|
|
19
|
+
onDismiss,
|
|
20
|
+
dismissable: t1,
|
|
21
|
+
children,
|
|
22
|
+
...props
|
|
23
|
+
} = t0);
|
|
24
|
+
$[0] = t0;
|
|
25
|
+
$[1] = children;
|
|
26
|
+
$[2] = contentWrapProps;
|
|
27
|
+
$[3] = onDismiss;
|
|
28
|
+
$[4] = props;
|
|
29
|
+
$[5] = t1;
|
|
30
|
+
} else {
|
|
31
|
+
children = $[1];
|
|
32
|
+
contentWrapProps = $[2];
|
|
33
|
+
onDismiss = $[3];
|
|
34
|
+
props = $[4];
|
|
35
|
+
t1 = $[5];
|
|
36
|
+
}
|
|
37
|
+
const dismissable = t1 === undefined ? true : t1;
|
|
38
|
+
const t2 = onDismiss ?? null;
|
|
39
|
+
const t3 = !dismissable;
|
|
40
|
+
let t4;
|
|
41
|
+
if ($[6] !== t2 || $[7] !== t3) {
|
|
42
|
+
t4 = /*#__PURE__*/_jsx(ThemedPressable, {
|
|
43
|
+
onPress: t2,
|
|
44
|
+
disabled: t3,
|
|
45
|
+
style: StyleSheet.absoluteFill
|
|
46
|
+
});
|
|
47
|
+
$[6] = t2;
|
|
48
|
+
$[7] = t3;
|
|
49
|
+
$[8] = t4;
|
|
50
|
+
} else {
|
|
51
|
+
t4 = $[8];
|
|
52
|
+
}
|
|
53
|
+
let t5;
|
|
54
|
+
if ($[9] !== children || $[10] !== contentWrapProps || $[11] !== t4) {
|
|
55
|
+
t5 = /*#__PURE__*/_jsx(GestureProvider, {
|
|
21
56
|
children: /*#__PURE__*/_jsxs(ThemedView, {
|
|
22
|
-
alignItems:
|
|
23
|
-
justifyContent:
|
|
24
|
-
backgroundColor:
|
|
57
|
+
alignItems: "center",
|
|
58
|
+
justifyContent: "center",
|
|
59
|
+
backgroundColor: "backgroundOverlay",
|
|
25
60
|
style: StyleSheet.absoluteFill,
|
|
26
61
|
...contentWrapProps,
|
|
27
|
-
children: [
|
|
28
|
-
onPress: onDismiss ?? null,
|
|
29
|
-
disabled: !dismissable,
|
|
30
|
-
style: StyleSheet.absoluteFill
|
|
31
|
-
}), children]
|
|
62
|
+
children: [t4, children]
|
|
32
63
|
})
|
|
33
|
-
})
|
|
34
|
-
|
|
64
|
+
});
|
|
65
|
+
$[9] = children;
|
|
66
|
+
$[10] = contentWrapProps;
|
|
67
|
+
$[11] = t4;
|
|
68
|
+
$[12] = t5;
|
|
69
|
+
} else {
|
|
70
|
+
t5 = $[12];
|
|
71
|
+
}
|
|
72
|
+
let t6;
|
|
73
|
+
if ($[13] !== props || $[14] !== t5) {
|
|
74
|
+
t6 = /*#__PURE__*/_jsx(Modal, {
|
|
75
|
+
animationType: "fade",
|
|
76
|
+
transparent: true,
|
|
77
|
+
statusBarTranslucent: true,
|
|
78
|
+
...props,
|
|
79
|
+
children: t5
|
|
80
|
+
});
|
|
81
|
+
$[13] = props;
|
|
82
|
+
$[14] = t5;
|
|
83
|
+
$[15] = t6;
|
|
84
|
+
} else {
|
|
85
|
+
t6 = $[15];
|
|
86
|
+
}
|
|
87
|
+
return t6;
|
|
35
88
|
};
|
|
36
89
|
export default ThemedModal;
|
|
37
90
|
//# sourceMappingURL=ThemedModal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Modal","StyleSheet","ThemedPressable","GestureProvider","ThemedView","jsx","_jsx","jsxs","_jsxs","ThemedModal","contentWrapProps","onDismiss","dismissable","
|
|
1
|
+
{"version":3,"names":["Modal","StyleSheet","ThemedPressable","GestureProvider","ThemedView","jsx","_jsx","jsxs","_jsxs","ThemedModal","t0","$","_c","children","contentWrapProps","onDismiss","props","t1","dismissable","undefined","t2","t3","t4","onPress","disabled","style","absoluteFill","t5","alignItems","justifyContent","backgroundColor","t6","animationType","transparent","statusBarTranslucent"],"sourceRoot":"../../../../../src","sources":["components/overlay/modal/ThemedModal.tsx"],"mappings":";;;AACA,SAASA,KAAK,EAAEC,UAAU,QAAQ,cAAc;AAEhD,OAAOC,eAAe,MAAM,iCAA8B;AAC1D,OAAOC,eAAe,MAAM,mCAAgC;AAC5D,OAAOC,UAAU,MAAM,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,WAAiC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,gBAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAN,CAAA,QAAAD,EAAA;IAAC;MAAAI,gBAAA;MAAAC,SAAA;MAAAG,WAAA,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