@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,40 +1,100 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { useThemedSwitch } from "../../hooks/switch.js";
|
|
4
5
|
import { SwitchSize } from "../../utils/theme/const.js";
|
|
5
6
|
import AnimatedThemedPressable from "../button/AnimatedThemedPressable.js";
|
|
6
7
|
import AnimatedThemedView from "../view/AnimatedThemedView.js";
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
const ThemedSwitch =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
style
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
const ThemedSwitch = t0 => {
|
|
10
|
+
const $ = _c(21);
|
|
11
|
+
let customColors;
|
|
12
|
+
let customDisableAnimation;
|
|
13
|
+
let customEnableAnimation;
|
|
14
|
+
let enabled;
|
|
15
|
+
let onPress;
|
|
16
|
+
let onPressDelayConfig;
|
|
17
|
+
let props;
|
|
18
|
+
let style;
|
|
19
|
+
let t1;
|
|
20
|
+
let thumbProps;
|
|
21
|
+
if ($[0] !== t0) {
|
|
22
|
+
({
|
|
23
|
+
onPress,
|
|
24
|
+
enabled,
|
|
25
|
+
size: t1,
|
|
26
|
+
onPressDelayConfig,
|
|
27
|
+
customEnableAnimation,
|
|
28
|
+
customDisableAnimation,
|
|
29
|
+
customColors,
|
|
30
|
+
thumbProps,
|
|
31
|
+
style,
|
|
32
|
+
...props
|
|
33
|
+
} = t0);
|
|
34
|
+
$[0] = t0;
|
|
35
|
+
$[1] = customColors;
|
|
36
|
+
$[2] = customDisableAnimation;
|
|
37
|
+
$[3] = customEnableAnimation;
|
|
38
|
+
$[4] = enabled;
|
|
39
|
+
$[5] = onPress;
|
|
40
|
+
$[6] = onPressDelayConfig;
|
|
41
|
+
$[7] = props;
|
|
42
|
+
$[8] = style;
|
|
43
|
+
$[9] = t1;
|
|
44
|
+
$[10] = thumbProps;
|
|
45
|
+
} else {
|
|
46
|
+
customColors = $[1];
|
|
47
|
+
customDisableAnimation = $[2];
|
|
48
|
+
customEnableAnimation = $[3];
|
|
49
|
+
enabled = $[4];
|
|
50
|
+
onPress = $[5];
|
|
51
|
+
onPressDelayConfig = $[6];
|
|
52
|
+
props = $[7];
|
|
53
|
+
style = $[8];
|
|
54
|
+
t1 = $[9];
|
|
55
|
+
thumbProps = $[10];
|
|
56
|
+
}
|
|
57
|
+
const size = t1 === undefined ? SwitchSize.M : t1;
|
|
20
58
|
const {
|
|
21
59
|
toggleSwitch,
|
|
22
60
|
trackAnimatedStyle,
|
|
23
61
|
thumbAnimatedStyle
|
|
24
62
|
} = useThemedSwitch(onPress, enabled, size, onPressDelayConfig, customEnableAnimation, customDisableAnimation, customColors);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
animatedStyle: trackAnimatedStyle,
|
|
29
|
-
role: 'switch',
|
|
30
|
-
...props,
|
|
31
|
-
children: /*#__PURE__*/_jsx(AnimatedThemedView, {
|
|
63
|
+
let t2;
|
|
64
|
+
if ($[11] !== size || $[12] !== thumbAnimatedStyle || $[13] !== thumbProps) {
|
|
65
|
+
t2 = /*#__PURE__*/_jsx(AnimatedThemedView, {
|
|
32
66
|
width: size,
|
|
33
67
|
aspectRatio: 1,
|
|
34
68
|
animatedStyle: thumbAnimatedStyle,
|
|
35
69
|
...thumbProps
|
|
36
|
-
})
|
|
37
|
-
|
|
70
|
+
});
|
|
71
|
+
$[11] = size;
|
|
72
|
+
$[12] = thumbAnimatedStyle;
|
|
73
|
+
$[13] = thumbProps;
|
|
74
|
+
$[14] = t2;
|
|
75
|
+
} else {
|
|
76
|
+
t2 = $[14];
|
|
77
|
+
}
|
|
78
|
+
let t3;
|
|
79
|
+
if ($[15] !== props || $[16] !== style || $[17] !== t2 || $[18] !== toggleSwitch || $[19] !== trackAnimatedStyle) {
|
|
80
|
+
t3 = /*#__PURE__*/_jsx(AnimatedThemedPressable, {
|
|
81
|
+
onPress: toggleSwitch,
|
|
82
|
+
style: style,
|
|
83
|
+
animatedStyle: trackAnimatedStyle,
|
|
84
|
+
role: "switch",
|
|
85
|
+
...props,
|
|
86
|
+
children: t2
|
|
87
|
+
});
|
|
88
|
+
$[15] = props;
|
|
89
|
+
$[16] = style;
|
|
90
|
+
$[17] = t2;
|
|
91
|
+
$[18] = toggleSwitch;
|
|
92
|
+
$[19] = trackAnimatedStyle;
|
|
93
|
+
$[20] = t3;
|
|
94
|
+
} else {
|
|
95
|
+
t3 = $[20];
|
|
96
|
+
}
|
|
97
|
+
return t3;
|
|
38
98
|
};
|
|
39
99
|
export default ThemedSwitch;
|
|
40
100
|
//# sourceMappingURL=ThemedSwitch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useThemedSwitch","SwitchSize","AnimatedThemedPressable","AnimatedThemedView","jsx","_jsx","ThemedSwitch","
|
|
1
|
+
{"version":3,"names":["useThemedSwitch","SwitchSize","AnimatedThemedPressable","AnimatedThemedView","jsx","_jsx","ThemedSwitch","t0","$","_c","customColors","customDisableAnimation","customEnableAnimation","enabled","onPress","onPressDelayConfig","props","style","t1","thumbProps","size","undefined","M","toggleSwitch","trackAnimatedStyle","thumbAnimatedStyle","t2","aspectRatio","t3","role","children"],"sourceRoot":"../../../../src","sources":["components/switch/ThemedSwitch.tsx"],"mappings":";;;AACA,SAASA,eAAe,QAAQ,uBAAoB;AAEpD,SAASC,UAAU,QAAQ,4BAAyB;AACpD,OAAOC,uBAAuB,MAAM,sCAAmC;AACvE,OAAOC,kBAAkB,MAAM,+BAA4B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE5D,MAAMC,YAAmC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,YAAA;EAAA,IAAAC,sBAAA;EAAA,IAAAC,qBAAA;EAAA,IAAAC,OAAA;EAAA,IAAAC,OAAA;EAAA,IAAAC,kBAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,UAAA;EAAA,IAAAX,CAAA,QAAAD,EAAA;IAAC;MAAAO,OAAA;MAAAD,OAAA;MAAAO,IAAA,EAAAF,EAAA;MAAAH,kBAAA;MAAAH,qBAAA;MAAAD,sBAAA;MAAAD,YAAA;MAAAS,UAAA;MAAAF,KAAA;MAAA,GAAAD;IAAA,IAAAT,EAW5C;IAAAC,CAAA,MAAAD,EAAA;IAAAC,CAAA,MAAAE,YAAA;IAAAF,CAAA,MAAAG,sBAAA;IAAAH,CAAA,MAAAI,qBAAA;IAAAJ,CAAA,MAAAK,OAAA;IAAAL,CAAA,MAAAM,OAAA;IAAAN,CAAA,MAAAO,kBAAA;IAAAP,CAAA,MAAAQ,KAAA;IAAAR,CAAA,MAAAS,KAAA;IAAAT,CAAA,MAAAU,EAAA;IAAAV,CAAA,OAAAW,UAAA;EAAA;IAAAT,YAAA,GAAAF,CAAA;IAAAG,sBAAA,GAAAH,CAAA;IAAAI,qBAAA,GAAAJ,CAAA;IAAAK,OAAA,GAAAL,CAAA;IA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KAAA;IAAAR,CAAA,OAAAS,KAAA;IAAAT,CAAA,OAAAkB,EAAA;IAAAlB,CAAA,OAAAe,YAAA;IAAAf,CAAA,OAAAgB,kBAAA;IAAAhB,CAAA,OAAAoB,EAAA;EAAA;IAAAA,EAAA,GAAApB,CAAA;EAAA;EAAA,OAb1BoB,EAa0B;AAAA,CAE7B;AAED,eAAetB,YAAY","ignoreList":[]}
|
|
@@ -1,49 +1,138 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import ThemedIcon from "../icon/ThemedIcon.js";
|
|
4
5
|
import ThemedView from "../view/ThemedView.js";
|
|
5
6
|
import ThemedText from "./ThemedText.js";
|
|
6
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
const ThemedIconText =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
textProps
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
8
|
+
const ThemedIconText = t0 => {
|
|
9
|
+
const $ = _c(34);
|
|
10
|
+
let iconColor;
|
|
11
|
+
let iconName;
|
|
12
|
+
let iconProps;
|
|
13
|
+
let iconSize;
|
|
14
|
+
let iconStyle;
|
|
15
|
+
let props;
|
|
16
|
+
let t1;
|
|
17
|
+
let text;
|
|
18
|
+
let textColor;
|
|
19
|
+
let textFontSize;
|
|
20
|
+
let textFontWeight;
|
|
21
|
+
let textProps;
|
|
22
|
+
let textStyle;
|
|
23
|
+
let textVariant;
|
|
24
|
+
if ($[0] !== t0) {
|
|
25
|
+
({
|
|
26
|
+
flip: t1,
|
|
27
|
+
iconName,
|
|
28
|
+
iconSize,
|
|
29
|
+
iconColor,
|
|
30
|
+
iconStyle,
|
|
31
|
+
iconProps,
|
|
32
|
+
text,
|
|
33
|
+
textVariant,
|
|
34
|
+
textFontSize,
|
|
35
|
+
textFontWeight,
|
|
36
|
+
textColor,
|
|
37
|
+
textStyle,
|
|
38
|
+
textProps,
|
|
39
|
+
...props
|
|
40
|
+
} = t0);
|
|
41
|
+
$[0] = t0;
|
|
42
|
+
$[1] = iconColor;
|
|
43
|
+
$[2] = iconName;
|
|
44
|
+
$[3] = iconProps;
|
|
45
|
+
$[4] = iconSize;
|
|
46
|
+
$[5] = iconStyle;
|
|
47
|
+
$[6] = props;
|
|
48
|
+
$[7] = t1;
|
|
49
|
+
$[8] = text;
|
|
50
|
+
$[9] = textColor;
|
|
51
|
+
$[10] = textFontSize;
|
|
52
|
+
$[11] = textFontWeight;
|
|
53
|
+
$[12] = textProps;
|
|
54
|
+
$[13] = textStyle;
|
|
55
|
+
$[14] = textVariant;
|
|
56
|
+
} else {
|
|
57
|
+
iconColor = $[1];
|
|
58
|
+
iconName = $[2];
|
|
59
|
+
iconProps = $[3];
|
|
60
|
+
iconSize = $[4];
|
|
61
|
+
iconStyle = $[5];
|
|
62
|
+
props = $[6];
|
|
63
|
+
t1 = $[7];
|
|
64
|
+
text = $[8];
|
|
65
|
+
textColor = $[9];
|
|
66
|
+
textFontSize = $[10];
|
|
67
|
+
textFontWeight = $[11];
|
|
68
|
+
textProps = $[12];
|
|
69
|
+
textStyle = $[13];
|
|
70
|
+
textVariant = $[14];
|
|
71
|
+
}
|
|
72
|
+
const flip = t1 === undefined ? false : t1;
|
|
73
|
+
let t2;
|
|
74
|
+
if ($[15] !== text || $[16] !== textColor || $[17] !== textFontSize || $[18] !== textFontWeight || $[19] !== textProps || $[20] !== textStyle || $[21] !== textVariant) {
|
|
75
|
+
t2 = /*#__PURE__*/_jsx(ThemedText, {
|
|
76
|
+
numberOfLines: 1,
|
|
77
|
+
variant: textVariant,
|
|
78
|
+
fontSize: textFontSize,
|
|
79
|
+
fontWeight: textFontWeight,
|
|
80
|
+
color: textColor,
|
|
81
|
+
style: textStyle,
|
|
82
|
+
...textProps,
|
|
83
|
+
children: text
|
|
84
|
+
});
|
|
85
|
+
$[15] = text;
|
|
86
|
+
$[16] = textColor;
|
|
87
|
+
$[17] = textFontSize;
|
|
88
|
+
$[18] = textFontWeight;
|
|
89
|
+
$[19] = textProps;
|
|
90
|
+
$[20] = textStyle;
|
|
91
|
+
$[21] = textVariant;
|
|
92
|
+
$[22] = t2;
|
|
93
|
+
} else {
|
|
94
|
+
t2 = $[22];
|
|
95
|
+
}
|
|
96
|
+
const themedText = t2;
|
|
97
|
+
const t3 = flip && themedText;
|
|
98
|
+
let t4;
|
|
99
|
+
if ($[23] !== iconColor || $[24] !== iconName || $[25] !== iconProps || $[26] !== iconSize || $[27] !== iconStyle) {
|
|
100
|
+
t4 = /*#__PURE__*/_jsx(ThemedIcon, {
|
|
40
101
|
name: iconName,
|
|
41
102
|
size: iconSize,
|
|
42
103
|
color: iconColor,
|
|
43
104
|
style: iconStyle,
|
|
44
105
|
...iconProps
|
|
45
|
-
})
|
|
46
|
-
|
|
106
|
+
});
|
|
107
|
+
$[23] = iconColor;
|
|
108
|
+
$[24] = iconName;
|
|
109
|
+
$[25] = iconProps;
|
|
110
|
+
$[26] = iconSize;
|
|
111
|
+
$[27] = iconStyle;
|
|
112
|
+
$[28] = t4;
|
|
113
|
+
} else {
|
|
114
|
+
t4 = $[28];
|
|
115
|
+
}
|
|
116
|
+
const t5 = !flip && themedText;
|
|
117
|
+
let t6;
|
|
118
|
+
if ($[29] !== props || $[30] !== t3 || $[31] !== t4 || $[32] !== t5) {
|
|
119
|
+
t6 = /*#__PURE__*/_jsxs(ThemedView, {
|
|
120
|
+
flexDirection: "row",
|
|
121
|
+
alignItems: "center",
|
|
122
|
+
gap: "s",
|
|
123
|
+
backgroundColor: "transparent",
|
|
124
|
+
...props,
|
|
125
|
+
children: [t3, t4, t5]
|
|
126
|
+
});
|
|
127
|
+
$[29] = props;
|
|
128
|
+
$[30] = t3;
|
|
129
|
+
$[31] = t4;
|
|
130
|
+
$[32] = t5;
|
|
131
|
+
$[33] = t6;
|
|
132
|
+
} else {
|
|
133
|
+
t6 = $[33];
|
|
134
|
+
}
|
|
135
|
+
return t6;
|
|
47
136
|
};
|
|
48
137
|
export default ThemedIconText;
|
|
49
138
|
//# sourceMappingURL=ThemedIconText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ThemedIcon","ThemedView","ThemedText","jsx","_jsx","jsxs","_jsxs","ThemedIconText","
|
|
1
|
+
{"version":3,"names":["ThemedIcon","ThemedView","ThemedText","jsx","_jsx","jsxs","_jsxs","ThemedIconText","t0","$","_c","iconColor","iconName","iconProps","iconSize","iconStyle","props","t1","text","textColor","textFontSize","textFontWeight","textProps","textStyle","textVariant","flip","undefined","t2","numberOfLines","children","themedText","t3","t4","t5","t6","flexDirection","alignItems","gap","backgroundColor"],"sourceRoot":"../../../../src","sources":["components/text/ThemedIconText.tsx"],"mappings":";;;AAEA,OAAOA,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,UAAU,MAAM,uBAAoB;AAC3C,OAAOC,UAAU,MAAM,iBAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEtC,MAAMC,cAAuC,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,QAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,KAAA;EAAA,IAAAC,EAAA;EAAA,IAAAC,IAAA;EAAA,IAAAC,SAAA;EAAA,IAAAC,YAAA;EAAA,IAAAC,cAAA;EAAA,IAA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AA;IAAAA,EAAA,GAAAvB,CAAA;EAAA;EACD,MAAAwB,EAAA,IAACR,IAAkB,IAAnBK,UAAmB;EAAA,IAAAI,EAAA;EAAA,IAAAzB,CAAA,SAAAO,KAAA,IAAAP,CAAA,SAAAsB,EAAA,IAAAtB,CAAA,SAAAuB,EAAA,IAAAvB,CAAA,SAAAwB,EAAA;IAftBC,EAAA,gBAAA5B,KAAA,CAACL,UAAU;MACMkC,aAAK,EAAL,KAAK;MACRC,UAAQ,EAAR,QAAQ;MACfC,GAAG,EAAH,GAAG;MACSC,eAAa,EAAb,aAAa;MAAA,GAC1BtB,KAAK;MAAAa,QAAA,GAERE,EAAkB,EACnBC,EAME,EACDC,EAAmB;IAAA,CACV,CAAC;IAAAxB,CAAA,OAAAO,KAAA;IAAAP,CAAA,OAAAsB,EAAA;IAAAtB,CAAA,OAAAuB,EAAA;IAAAvB,CAAA,OAAAwB,EAAA;IAAAxB,CAAA,OAAAyB,EAAA;EAAA;IAAAA,EAAA,GAAAzB,CAAA;EAAA;EAAA,OAhBbyB,EAgBa;AAAA,CAEhB;AAED,eAAe3B,cAAc","ignoreList":[]}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import Text from "./Text.js";
|
|
4
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
|
-
const ThemedText = props =>
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
const ThemedText = props => {
|
|
7
|
+
const $ = _c(2);
|
|
8
|
+
let t0;
|
|
9
|
+
if ($[0] !== props) {
|
|
10
|
+
t0 = /*#__PURE__*/_jsx(Text, {
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
$[0] = props;
|
|
14
|
+
$[1] = t0;
|
|
15
|
+
} else {
|
|
16
|
+
t0 = $[1];
|
|
17
|
+
}
|
|
18
|
+
return t0;
|
|
19
|
+
};
|
|
8
20
|
export default ThemedText;
|
|
9
21
|
//# sourceMappingURL=ThemedText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Text","jsx","_jsx","ThemedText","props"],"sourceRoot":"../../../../src","sources":["components/text/ThemedText.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["Text","jsx","_jsx","ThemedText","props","$","_c","t0"],"sourceRoot":"../../../../src","sources":["components/text/ThemedText.tsx"],"mappings":";;;AAEA,OAAOA,IAAI,MAAM,WAAQ;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1B,MAAMC,UAA+B,GAAGC,KAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAA,IAAAC,EAAA;EAAA,IAAAF,CAAA,QAAAD,KAAA;IAAWG,EAAA,gBAAAL,IAAA,CAACF,IAAI;MAAA,GAAKI;IAAK,CAAG,CAAC;IAAAC,CAAA,MAAAD,KAAA;IAAAC,CAAA,MAAAE,EAAA;EAAA;IAAAA,EAAA,GAAAF,CAAA;EAAA;EAAA,OAAnBE,EAAmB;AAAA;AAEtE,eAAeJ,UAAU","ignoreList":[]}
|
|
@@ -1,19 +1,50 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { useAnimatedThemedView } from "../../hooks/view.js";
|
|
4
5
|
import AnimatedView from "./AnimatedView.js";
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
const AnimatedThemedView =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
const AnimatedThemedView = t0 => {
|
|
8
|
+
const $ = _c(8);
|
|
9
|
+
let props;
|
|
10
|
+
let t1;
|
|
11
|
+
if ($[0] !== t0) {
|
|
12
|
+
({
|
|
13
|
+
backgroundColor: t1,
|
|
14
|
+
...props
|
|
15
|
+
} = t0);
|
|
16
|
+
$[0] = t0;
|
|
17
|
+
$[1] = props;
|
|
18
|
+
$[2] = t1;
|
|
19
|
+
} else {
|
|
20
|
+
props = $[1];
|
|
21
|
+
t1 = $[2];
|
|
22
|
+
}
|
|
23
|
+
const backgroundColor = t1 === undefined ? "background" : t1;
|
|
24
|
+
let t2;
|
|
25
|
+
if ($[3] !== backgroundColor || $[4] !== props) {
|
|
26
|
+
t2 = {
|
|
27
|
+
backgroundColor,
|
|
28
|
+
...props
|
|
29
|
+
};
|
|
30
|
+
$[3] = backgroundColor;
|
|
31
|
+
$[4] = props;
|
|
32
|
+
$[5] = t2;
|
|
33
|
+
} else {
|
|
34
|
+
t2 = $[5];
|
|
35
|
+
}
|
|
36
|
+
const animatedThemedViewProps = useAnimatedThemedView(t2);
|
|
37
|
+
let t3;
|
|
38
|
+
if ($[6] !== animatedThemedViewProps) {
|
|
39
|
+
t3 = /*#__PURE__*/_jsx(AnimatedView, {
|
|
40
|
+
...animatedThemedViewProps
|
|
41
|
+
});
|
|
42
|
+
$[6] = animatedThemedViewProps;
|
|
43
|
+
$[7] = t3;
|
|
44
|
+
} else {
|
|
45
|
+
t3 = $[7];
|
|
46
|
+
}
|
|
47
|
+
return t3;
|
|
17
48
|
};
|
|
18
49
|
export default AnimatedThemedView;
|
|
19
50
|
//# sourceMappingURL=AnimatedThemedView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedThemedView","AnimatedView","jsx","_jsx","AnimatedThemedView","
|
|
1
|
+
{"version":3,"names":["useAnimatedThemedView","AnimatedView","jsx","_jsx","AnimatedThemedView","t0","$","_c","props","t1","backgroundColor","undefined","t2","animatedThemedViewProps","t3"],"sourceRoot":"../../../../src","sources":["components/view/AnimatedThemedView.tsx"],"mappings":";;;AACA,SAASA,qBAAqB,QAAQ,qBAAkB;AAExD,OAAOC,YAAY,MAAM,mBAAgB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1C,MAAMC,kBAA+C,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,EAGxD;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;IAGwBI,EAAA;MAAAF,eAAA;MAAA,GAEjDF;IACL,CAAC;IAAAF,CAAA,MAAAI,eAAA;IAAAJ,CAAA,MAAAE,KAAA;IAAAF,CAAA,MAAAM,EAAA;EAAA;IAAAA,EAAA,GAAAN,CAAA;EAAA;EAHD,MAAAO,uBAAA,GAAgCb,qBAAqB,CAACY,EAGrD,CAAC;EAAC,IAAAE,EAAA;EAAA,IAAAR,CAAA,QAAAO,uBAAA;IAEIC,EAAA,gBAAAX,IAAA,CAACF,YAAY;MAAA,GAAKY;IAAuB,CAAG,CAAC;IAAAP,CAAA,MAAAO,uBAAA;IAAAP,CAAA,MAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EAAA,OAA7CQ,EAA6C;AAAA,CACrD;AAED,eAAeV,kBAAkB","ignoreList":[]}
|
|
@@ -1,49 +1,154 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
import { useEffect } from 'react';
|
|
4
5
|
import { useInsetsStyle } from "../../hooks/style.js";
|
|
5
6
|
import { composeStyles } from "../../utils/style/func.js";
|
|
6
7
|
import ThemedView from "./ThemedView.js";
|
|
7
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
const ThemedScreenWrap =
|
|
9
|
-
|
|
10
|
-
effectCleanup
|
|
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
|
-
|
|
46
|
-
|
|
9
|
+
const ThemedScreenWrap = t0 => {
|
|
10
|
+
const $ = _c(38);
|
|
11
|
+
let effectCleanup;
|
|
12
|
+
let effectSetup;
|
|
13
|
+
let insetBottom;
|
|
14
|
+
let insetLeft;
|
|
15
|
+
let insetPaddingBottom;
|
|
16
|
+
let insetPaddingLeft;
|
|
17
|
+
let insetPaddingRight;
|
|
18
|
+
let insetPaddingTop;
|
|
19
|
+
let insetRight;
|
|
20
|
+
let insetTop;
|
|
21
|
+
let insets;
|
|
22
|
+
let insetsPadding;
|
|
23
|
+
let props;
|
|
24
|
+
let t1;
|
|
25
|
+
let themedScreenWrapStyle;
|
|
26
|
+
if ($[0] !== t0) {
|
|
27
|
+
({
|
|
28
|
+
effectSetup,
|
|
29
|
+
effectCleanup,
|
|
30
|
+
effectDependencies: t1,
|
|
31
|
+
style: themedScreenWrapStyle,
|
|
32
|
+
insets,
|
|
33
|
+
insetTop,
|
|
34
|
+
insetBottom,
|
|
35
|
+
insetLeft,
|
|
36
|
+
insetRight,
|
|
37
|
+
insetsPadding,
|
|
38
|
+
insetPaddingTop,
|
|
39
|
+
insetPaddingBottom,
|
|
40
|
+
insetPaddingLeft,
|
|
41
|
+
insetPaddingRight,
|
|
42
|
+
...props
|
|
43
|
+
} = t0);
|
|
44
|
+
$[0] = t0;
|
|
45
|
+
$[1] = effectCleanup;
|
|
46
|
+
$[2] = effectSetup;
|
|
47
|
+
$[3] = insetBottom;
|
|
48
|
+
$[4] = insetLeft;
|
|
49
|
+
$[5] = insetPaddingBottom;
|
|
50
|
+
$[6] = insetPaddingLeft;
|
|
51
|
+
$[7] = insetPaddingRight;
|
|
52
|
+
$[8] = insetPaddingTop;
|
|
53
|
+
$[9] = insetRight;
|
|
54
|
+
$[10] = insetTop;
|
|
55
|
+
$[11] = insets;
|
|
56
|
+
$[12] = insetsPadding;
|
|
57
|
+
$[13] = props;
|
|
58
|
+
$[14] = t1;
|
|
59
|
+
$[15] = themedScreenWrapStyle;
|
|
60
|
+
} else {
|
|
61
|
+
effectCleanup = $[1];
|
|
62
|
+
effectSetup = $[2];
|
|
63
|
+
insetBottom = $[3];
|
|
64
|
+
insetLeft = $[4];
|
|
65
|
+
insetPaddingBottom = $[5];
|
|
66
|
+
insetPaddingLeft = $[6];
|
|
67
|
+
insetPaddingRight = $[7];
|
|
68
|
+
insetPaddingTop = $[8];
|
|
69
|
+
insetRight = $[9];
|
|
70
|
+
insetTop = $[10];
|
|
71
|
+
insets = $[11];
|
|
72
|
+
insetsPadding = $[12];
|
|
73
|
+
props = $[13];
|
|
74
|
+
t1 = $[14];
|
|
75
|
+
themedScreenWrapStyle = $[15];
|
|
76
|
+
}
|
|
77
|
+
let t2;
|
|
78
|
+
if ($[16] !== t1) {
|
|
79
|
+
t2 = t1 === undefined ? [] : t1;
|
|
80
|
+
$[16] = t1;
|
|
81
|
+
$[17] = t2;
|
|
82
|
+
} else {
|
|
83
|
+
t2 = $[17];
|
|
84
|
+
}
|
|
85
|
+
const effectDependencies = t2;
|
|
86
|
+
let t3;
|
|
87
|
+
if ($[18] !== insetBottom || $[19] !== insetLeft || $[20] !== insetPaddingBottom || $[21] !== insetPaddingLeft || $[22] !== insetPaddingRight || $[23] !== insetPaddingTop || $[24] !== insetRight || $[25] !== insetTop || $[26] !== insets || $[27] !== insetsPadding) {
|
|
88
|
+
t3 = {
|
|
89
|
+
insets,
|
|
90
|
+
insetTop,
|
|
91
|
+
insetBottom,
|
|
92
|
+
insetLeft,
|
|
93
|
+
insetRight,
|
|
94
|
+
insetsPadding,
|
|
95
|
+
insetPaddingTop,
|
|
96
|
+
insetPaddingBottom,
|
|
97
|
+
insetPaddingLeft,
|
|
98
|
+
insetPaddingRight
|
|
99
|
+
};
|
|
100
|
+
$[18] = insetBottom;
|
|
101
|
+
$[19] = insetLeft;
|
|
102
|
+
$[20] = insetPaddingBottom;
|
|
103
|
+
$[21] = insetPaddingLeft;
|
|
104
|
+
$[22] = insetPaddingRight;
|
|
105
|
+
$[23] = insetPaddingTop;
|
|
106
|
+
$[24] = insetRight;
|
|
107
|
+
$[25] = insetTop;
|
|
108
|
+
$[26] = insets;
|
|
109
|
+
$[27] = insetsPadding;
|
|
110
|
+
$[28] = t3;
|
|
111
|
+
} else {
|
|
112
|
+
t3 = $[28];
|
|
113
|
+
}
|
|
114
|
+
const insetsStyle = useInsetsStyle(t3);
|
|
115
|
+
let t4;
|
|
116
|
+
if ($[29] !== effectCleanup || $[30] !== effectSetup) {
|
|
117
|
+
t4 = () => {
|
|
118
|
+
effectSetup?.();
|
|
119
|
+
return effectCleanup;
|
|
120
|
+
};
|
|
121
|
+
$[29] = effectCleanup;
|
|
122
|
+
$[30] = effectSetup;
|
|
123
|
+
$[31] = t4;
|
|
124
|
+
} else {
|
|
125
|
+
t4 = $[31];
|
|
126
|
+
}
|
|
127
|
+
useEffect(t4, effectDependencies);
|
|
128
|
+
let t5;
|
|
129
|
+
if ($[32] !== insetsStyle || $[33] !== themedScreenWrapStyle) {
|
|
130
|
+
t5 = composeStyles(themedScreenWrapStyle, insetsStyle);
|
|
131
|
+
$[32] = insetsStyle;
|
|
132
|
+
$[33] = themedScreenWrapStyle;
|
|
133
|
+
$[34] = t5;
|
|
134
|
+
} else {
|
|
135
|
+
t5 = $[34];
|
|
136
|
+
}
|
|
137
|
+
const style = t5;
|
|
138
|
+
let t6;
|
|
139
|
+
if ($[35] !== props || $[36] !== style) {
|
|
140
|
+
t6 = /*#__PURE__*/_jsx(ThemedView, {
|
|
141
|
+
flex: 1,
|
|
142
|
+
style: style,
|
|
143
|
+
...props
|
|
144
|
+
});
|
|
145
|
+
$[35] = props;
|
|
146
|
+
$[36] = style;
|
|
147
|
+
$[37] = t6;
|
|
148
|
+
} else {
|
|
149
|
+
t6 = $[37];
|
|
150
|
+
}
|
|
151
|
+
return t6;
|
|
47
152
|
};
|
|
48
153
|
export default ThemedScreenWrap;
|
|
49
154
|
//# sourceMappingURL=ThemedScreenWrap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useEffect","useInsetsStyle","composeStyles","ThemedView","jsx","_jsx","ThemedScreenWrap","
|
|
1
|
+
{"version":3,"names":["useEffect","useInsetsStyle","composeStyles","ThemedView","jsx","_jsx","ThemedScreenWrap","t0","$","_c","effectCleanup","effectSetup","insetBottom","insetLeft","insetPaddingBottom","insetPaddingLeft","insetPaddingRight","insetPaddingTop","insetRight","insetTop","insets","insetsPadding","props","t1","themedScreenWrapStyle","effectDependencies","style","t2","undefined","t3","insetsStyle","t4","t5","t6","flex"],"sourceRoot":"../../../../src","sources":["components/view/ThemedScreenWrap.tsx"],"mappings":";;;AAAA,SAASA,SAAS,QAAiB,OAAO;AAE1C,SAASC,cAAc,QAAQ,sBAAmB;AAElD,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,aAAA;EAAA,IAAAC,WAAA;EAAA,IAAAC,WAAA;EAAA,IAAAC,SAAA;EAAA,I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