@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 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GestureDetector","useActionSheetGesture","useActionSheetHeaderMinHeight","useActionSheetOnDismiss","actionSheetHeaderIconSize","actionSheetHeaderPadding","getActionSheetContext","BorderSize","ThemedView","jsx","_jsx","jsxs","_jsxs","ThemedText","require","default","ThemedIconButton","ActionSheetHeader","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","gesture","minHeight","onDismiss","title","headerViewRef","onIconPress","
|
|
1
|
+
{"version":3,"names":["GestureDetector","useActionSheetGesture","useActionSheetHeaderMinHeight","useActionSheetOnDismiss","actionSheetHeaderIconSize","actionSheetHeaderPadding","getActionSheetContext","BorderSize","ThemedView","jsx","_jsx","jsxs","_jsxs","ThemedText","require","default","ThemedIconButton","ActionSheetHeader","t0","$","_c","headerShowIcon","t1","headerWrapProps","headerTextProps","headerIconButtonProps","undefined","gesture","minHeight","onDismiss","t2","Symbol","for","title","headerViewRef","t3","onIconPress","t4","variant","children","t5","iconName","position","left","t6","justifyContent","alignItems","borderBottomWidth","S","borderColor","t7"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetHeader.tsx"],"mappings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QAAQ;MAAA,GACjB1B,eAAe;MAAAgB,QAAA,GAElBF,EAIA,EACAG,EASA;IAAA,CACS,CAAC;IAAArB,CAAA,MAAAI,eAAA;IAAAJ,CAAA,OAAAS,SAAA;IAAAT,CAAA,OAAAkB,EAAA;IAAAlB,CAAA,OAAAqB,EAAA;IAAArB,CAAA,OAAAyB,EAAA;EAAA;IAAAA,EAAA,GAAAzB,CAAA;EAAA;EAAA,IAAA+B,EAAA;EAAA,IAAA/B,CAAA,SAAAQ,OAAA,IAAAR,CAAA,SAAAyB,EAAA;IA1BfM,EAAA,gBAAAxC,IAAA,CAACV,eAAe;MAAU2B,OAAO,EAAPA,OAAO;MAAAY,QAAA,EAC/BK;IAyBa,CACE,CAAC;IAAAzB,CAAA,OAAAQ,OAAA;IAAAR,CAAA,OAAAyB,EAAA;IAAAzB,CAAA,OAAA+B,EAAA;EAAA;IAAAA,EAAA,GAAA/B,CAAA;EAAA;EAAA,OA3BlB+B,EA2BkB;AAAA,CAErB;AAED,eAAejC,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
4
|
+
/** @internal */
|
|
5
|
+
import { GestureDetector } from 'react-native-gesture-handler';
|
|
6
|
+
import { useActionSheetGesture, useActionSheetHeaderMinHeight, useActionSheetOnDismiss } from "../../../hooks/overlay.js";
|
|
7
|
+
import { actionSheetHeaderIconSize, actionSheetHeaderPadding } from "../../../utils/overlay/const.js";
|
|
8
|
+
import { getActionSheetContext } from "../../../utils/overlay/func.js";
|
|
9
|
+
import { BorderSize } from "../../../utils/theme/const.js";
|
|
10
|
+
import ThemedIconButton from "../../button/ThemedIconButton.js";
|
|
11
|
+
import ThemedText from "../../text/ThemedText.js";
|
|
12
|
+
import ThemedView from "../../view/ThemedView.js";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
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;
|
|
23
|
+
const gesture = useActionSheetGesture();
|
|
24
|
+
const minHeight = useActionSheetHeaderMinHeight();
|
|
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
|
+
}
|
|
33
|
+
const {
|
|
34
|
+
title,
|
|
35
|
+
headerViewRef
|
|
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, {
|
|
80
|
+
ref: headerViewRef,
|
|
81
|
+
justifyContent: "center",
|
|
82
|
+
alignItems: "center",
|
|
83
|
+
minHeight: minHeight,
|
|
84
|
+
padding: actionSheetHeaderPadding,
|
|
85
|
+
borderBottomWidth: BorderSize.S,
|
|
86
|
+
borderColor: "border",
|
|
87
|
+
...headerWrapProps,
|
|
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;
|
|
111
|
+
};
|
|
112
|
+
export default ActionSheetHeader;
|
|
113
|
+
//# sourceMappingURL=ActionSheetHeader.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["GestureDetector","useActionSheetGesture","useActionSheetHeaderMinHeight","useActionSheetOnDismiss","actionSheetHeaderIconSize","actionSheetHeaderPadding","getActionSheetContext","BorderSize","ThemedIconButton","ThemedText","ThemedView","jsx","_jsx","jsxs","_jsxs","ActionSheetHeader","t0","$","_c","headerShowIcon","t1","headerWrapProps","headerTextProps","headerIconButtonProps","undefined","gesture","minHeight","onDismiss","t2","Symbol","for","title","headerViewRef","t3","onIconPress","t4","variant","children","t5","iconName","position","left","t6","justifyContent","alignItems","borderBottomWidth","S","borderColor","t7"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetHeader.web.tsx"],"mappings":";;;AAAA;AAEA,SAASA,eAAe,QAAQ,8BAA8B;AAC9D,SACEC,qBAAqB,EACrBC,6BAA6B,EAC7BC,uBAAuB,QAClB,2BAAwB;AAG/B,SACEC,yBAAyB,EACzBC,wBAAwB,QACnB,iCAA8B;AACrC,SAASC,qBAAqB,QAAQ,gCAA6B;AACnE,SAASC,UAAU,QAAQ,+BAA4B;AACvD,OAAOC,gBAAgB,MAAM,kCAA+B;AAC5D,OAAOC,UAAU,MAAM,0BAAuB;AAC9C,OAAOC,UAAU,MAAM,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,MAAMC,iBAA6C,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,cAAA,EAAAC,EAAA;IAAAC,eAAA;IAAAC,eAAA;IAAAC;EAAA,IAAAP,EAKtD;EAJC,MAAAG,cAAA,GAAAC,EAAqB,KAArBI,SAAqB,GAArB,IAAqB,GAArBJ,EAAqB;EAKrB,MAAAK,OAAA,GAAgBxB,qBAAqB,CAAC,CAAC;EACvC,MAAAyB,SAAA,GAAkBxB,6BAA6B,CAAC,CAAC;EACjD,MAAAyB,SA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EAAA;IAAAA,EAAA,GAAArB,CAAA;EAAA;EAAA,IAAAyB,EAAA;EAAA,IAAAzB,CAAA,QAAAI,eAAA,IAAAJ,CAAA,SAAAS,SAAA,IAAAT,CAAA,SAAAkB,EAAA,IAAAlB,CAAA,SAAAqB,EAAA;IAxBHI,EAAA,gBAAA5B,KAAA,CAACJ,UAAU;MACJsB,GAAa,EAAbA,aAAa;MACFW,cAAQ,EAAR,QAAQ;MACZC,UAAQ,EAAR,QAAQ;MACTlB,SAAS,EAATA,SAAS;MACXrB,OAAwB,EAAxBA,wBAAwB;MACdwC,iBAAY,EAAZtC,UAAU,CAAAuC,CAAE;MAClBC,WAAQ,EAAR,QAAQ;MAAA,GACjB1B,eAAe;MAAAgB,QAAA,GAElBF,EAIA,EACAG,EASA;IAAA,CACS,CAAC;IAAArB,CAAA,MAAAI,eAAA;IAAAJ,CAAA,OAAAS,SAAA;IAAAT,CAAA,OAAAkB,EAAA;IAAAlB,CAAA,OAAAqB,EAAA;IAAArB,CAAA,OAAAyB,EAAA;EAAA;IAAAA,EAAA,GAAAzB,CAAA;EAAA;EAAA,IAAA+B,EAAA;EAAA,IAAA/B,CAAA,SAAAQ,OAAA,IAAAR,CAAA,SAAAyB,EAAA;IA1BfM,EAAA,gBAAApC,IAAA,CAACZ,eAAe;MAAUyB,OAAO,EAAPA,OAAO;MAAAY,QAAA,EAC/BK;IAyBa,CACE,CAAC;IAAAzB,CAAA,OAAAQ,OAAA;IAAAR,CAAA,OAAAyB,EAAA;IAAAzB,CAAA,OAAA+B,EAAA;EAAA;IAAAA,EAAA,GAAA/B,CAAA;EAAA;EAAA,OA3BlB+B,EA2BkB;AAAA,CAErB;AAED,eAAejC,iBAAiB","ignoreList":[]}
|
|
@@ -1,45 +1,86 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
/** @internal */
|
|
4
|
-
|
|
5
5
|
import { useActionSheetListView, useActionSheetVisible } from "../../../hooks/overlay.js";
|
|
6
6
|
import { ActionSheetContext } from "../../../utils/overlay/const.js";
|
|
7
|
-
import ActionSheetHeader from
|
|
7
|
+
import ActionSheetHeader from './ActionSheetHeader';
|
|
8
8
|
import ActionSheetListViewContent from "./ActionSheetListViewContent.js";
|
|
9
9
|
import ActionSheetWrap from "./ActionSheetWrap.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
-
const ActionSheetListView =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
const ActionSheetListView = t0 => {
|
|
12
|
+
const $ = _c(15);
|
|
13
|
+
const {
|
|
14
|
+
title,
|
|
15
|
+
expandable,
|
|
16
|
+
listProps,
|
|
17
|
+
onDismiss,
|
|
18
|
+
dismissable,
|
|
19
|
+
wrapViewProps,
|
|
20
|
+
headerShowIcon,
|
|
21
|
+
headerWrapProps,
|
|
22
|
+
headerTextProps,
|
|
23
|
+
headerIconButtonProps,
|
|
24
|
+
visible
|
|
25
|
+
} = t0;
|
|
24
26
|
const {
|
|
25
27
|
actionSheetVisible
|
|
26
28
|
} = useActionSheetVisible(visible);
|
|
27
29
|
const actionSheetContextVal = useActionSheetListView(title, expandable, listProps, onDismiss, dismissable, actionSheetVisible);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
let t1;
|
|
31
|
+
if ($[0] !== headerIconButtonProps || $[1] !== headerShowIcon || $[2] !== headerTextProps || $[3] !== headerWrapProps) {
|
|
32
|
+
t1 = /*#__PURE__*/_jsx(ActionSheetHeader, {
|
|
33
|
+
headerShowIcon: headerShowIcon,
|
|
34
|
+
headerWrapProps: headerWrapProps,
|
|
35
|
+
headerTextProps: headerTextProps,
|
|
36
|
+
headerIconButtonProps: headerIconButtonProps
|
|
37
|
+
});
|
|
38
|
+
$[0] = headerIconButtonProps;
|
|
39
|
+
$[1] = headerShowIcon;
|
|
40
|
+
$[2] = headerTextProps;
|
|
41
|
+
$[3] = headerWrapProps;
|
|
42
|
+
$[4] = t1;
|
|
43
|
+
} else {
|
|
44
|
+
t1 = $[4];
|
|
45
|
+
}
|
|
46
|
+
let t2;
|
|
47
|
+
if ($[5] !== listProps) {
|
|
48
|
+
t2 = /*#__PURE__*/_jsx(ActionSheetListViewContent, {
|
|
49
|
+
listProps: listProps
|
|
50
|
+
});
|
|
51
|
+
$[5] = listProps;
|
|
52
|
+
$[6] = t2;
|
|
53
|
+
} else {
|
|
54
|
+
t2 = $[6];
|
|
55
|
+
}
|
|
56
|
+
let t3;
|
|
57
|
+
if ($[7] !== actionSheetVisible || $[8] !== t1 || $[9] !== t2 || $[10] !== wrapViewProps) {
|
|
58
|
+
t3 = /*#__PURE__*/_jsxs(ActionSheetWrap, {
|
|
31
59
|
visible: actionSheetVisible,
|
|
32
60
|
wrapViewProps: wrapViewProps,
|
|
33
|
-
children: [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
61
|
+
children: [t1, t2]
|
|
62
|
+
});
|
|
63
|
+
$[7] = actionSheetVisible;
|
|
64
|
+
$[8] = t1;
|
|
65
|
+
$[9] = t2;
|
|
66
|
+
$[10] = wrapViewProps;
|
|
67
|
+
$[11] = t3;
|
|
68
|
+
} else {
|
|
69
|
+
t3 = $[11];
|
|
70
|
+
}
|
|
71
|
+
let t4;
|
|
72
|
+
if ($[12] !== actionSheetContextVal || $[13] !== t3) {
|
|
73
|
+
t4 = /*#__PURE__*/_jsx(ActionSheetContext.Provider, {
|
|
74
|
+
value: actionSheetContextVal,
|
|
75
|
+
children: t3
|
|
76
|
+
});
|
|
77
|
+
$[12] = actionSheetContextVal;
|
|
78
|
+
$[13] = t3;
|
|
79
|
+
$[14] = t4;
|
|
80
|
+
} else {
|
|
81
|
+
t4 = $[14];
|
|
82
|
+
}
|
|
83
|
+
return t4;
|
|
43
84
|
};
|
|
44
85
|
export default ActionSheetListView;
|
|
45
86
|
//# sourceMappingURL=ActionSheetListView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useActionSheetListView","useActionSheetVisible","ActionSheetContext","ActionSheetHeader","ActionSheetListViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetListView","title","expandable","listProps","onDismiss","dismissable","wrapViewProps","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","visible","actionSheetVisible","actionSheetContextVal","
|
|
1
|
+
{"version":3,"names":["useActionSheetListView","useActionSheetVisible","ActionSheetContext","ActionSheetHeader","ActionSheetListViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetListView","t0","$","_c","title","expandable","listProps","onDismiss","dismissable","wrapViewProps","headerShowIcon","headerWrapProps","headerTextProps","headerIconButtonProps","visible","actionSheetVisible","actionSheetContextVal","t1","t2","t3","children","t4","Provider"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetListView.tsx"],"mappings":";;;AAAA;AAEA,SACEA,sBAAsB,EACtBC,qBAAqB,QAChB,2BAAwB;AAE/B,SAASC,kBAAkB,QAAQ,iCAA8B;AACjE,OAAOC,iBAAiB,MAAM,qBAAqB;AACnD,OAAOC,0BAA0B,MAAM,iCAA8B;AACrE,OAAOC,eAAe,MAAM,sBAAmB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,mBAAiD,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,KAAA;IAAAC,UAAA;IAAAC,SAAA;IAAAC,SAAA;IAAAC,WAAA;IAAAC,aAAA;IAAAC,cAAA;IAAAC,eAAA;IAAAC,eAAA;IAAAC,qBAAA;IAAAC;EAAA,IAA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;IAAAf,CAAA,MAAAgB,EAAA;IAAAhB,CAAA,OAAAO,aAAA;IAAAP,CAAA,OAAAiB,EAAA;EAAA;IAAAA,EAAA,GAAAjB,CAAA;EAAA;EAAA,IAAAmB,EAAA;EAAA,IAAAnB,CAAA,SAAAc,qBAAA,IAAAd,CAAA,SAAAiB,EAAA;IAZpBE,EAAA,gBAAAxB,IAAA,CAAAL,kBAAA,CAAA8B,QAAA;MAAoCN,KAAqB,EAArBA,qBAAqB;MAAAI,QAAA,EACvDD;IAWkB,CACS,CAAC;IAAAjB,CAAA,OAAAc,qBAAA;IAAAd,CAAA,OAAAiB,EAAA;IAAAjB,CAAA,OAAAmB,EAAA;EAAA;IAAAA,EAAA,GAAAnB,CAAA;EAAA;EAAA,OAb9BmB,EAa8B;AAAA,CAEjC;AAED,eAAerB,mBAAmB","ignoreList":[]}
|
|
@@ -1,28 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
/** @internal */
|
|
4
5
|
import { useLayoutEffect } from 'react';
|
|
5
6
|
import { getActionSheetContext } from "../../../utils/overlay/func.js";
|
|
6
7
|
import List from "../../list/List.js";
|
|
7
8
|
import ActionSheetContentGesture from "./ActionSheetContentGesture.js";
|
|
8
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
-
const ActionSheetListViewContent =
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const ActionSheetListViewContent = t0 => {
|
|
11
|
+
const $ = _c(4);
|
|
12
|
+
const {
|
|
13
|
+
listProps
|
|
14
|
+
} = t0;
|
|
15
|
+
let t1;
|
|
16
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
17
|
+
t1 = getActionSheetContext();
|
|
18
|
+
$[0] = t1;
|
|
19
|
+
} else {
|
|
20
|
+
t1 = $[0];
|
|
21
|
+
}
|
|
12
22
|
const {
|
|
13
23
|
contentAnimatedRefObj,
|
|
14
24
|
setContentHeight
|
|
15
|
-
} =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
25
|
+
} = t1;
|
|
26
|
+
let t2;
|
|
27
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
28
|
+
t2 = () => {
|
|
29
|
+
const contentHeight = contentAnimatedRefObj.current?.getChildContainerDimensions().height;
|
|
30
|
+
setContentHeight?.(contentHeight ?? 0);
|
|
31
|
+
};
|
|
32
|
+
$[1] = t2;
|
|
33
|
+
} else {
|
|
34
|
+
t2 = $[1];
|
|
35
|
+
}
|
|
36
|
+
useLayoutEffect(t2);
|
|
37
|
+
let t3;
|
|
38
|
+
if ($[2] !== listProps) {
|
|
39
|
+
t3 = /*#__PURE__*/_jsx(ActionSheetContentGesture, {
|
|
40
|
+
children: /*#__PURE__*/_jsx(List, {
|
|
41
|
+
ref: contentAnimatedRefObj,
|
|
42
|
+
...listProps
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
$[2] = listProps;
|
|
46
|
+
$[3] = t3;
|
|
47
|
+
} else {
|
|
48
|
+
t3 = $[3];
|
|
49
|
+
}
|
|
50
|
+
return t3;
|
|
26
51
|
};
|
|
27
52
|
export default ActionSheetListViewContent;
|
|
28
53
|
//# sourceMappingURL=ActionSheetListViewContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useLayoutEffect","getActionSheetContext","List","ActionSheetContentGesture","jsx","_jsx","ActionSheetListViewContent","listProps","contentAnimatedRefObj","setContentHeight","contentHeight","current","getChildContainerDimensions","height","children","ref"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetListViewContent.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"names":["useLayoutEffect","getActionSheetContext","List","ActionSheetContentGesture","jsx","_jsx","ActionSheetListViewContent","t0","$","_c","listProps","t1","Symbol","for","contentAnimatedRefObj","setContentHeight","t2","contentHeight","current","getChildContainerDimensions","height","t3","children","ref"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetListViewContent.tsx"],"mappings":";;;AAAA;AACA,SAASA,eAAe,QAAiB,OAAO;AAKhD,SAASC,qBAAqB,QAAQ,gCAA6B;AACnE,OAAOC,IAAI,MAAM,oBAAiB;AAClC,OAAOC,yBAAyB,MAAM,gCAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpE,MAAMC,0BAEL,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC;EAAA,IAAAH,EAAa;EAAA,IAAAI,EAAA;EAAA,IAAAH,CAAA,QAAAI,MAAA,CAAAC,GAAA;IACoCF,EAAA,GAAAV,qBAAqB,CAAC,CAAC;IAAAO,CAAA,MAAAG,EAAA;EAAA;IAAAA,EAAA,GAAAH,CAAA;EAAA;EAA3E;IAAAM,qBAAA;IAAAC;EAAA,IAAoDJ,EAAuB;EAAC,IAAAK,EAAA;EAAA,IAAAR,CAAA,QAAAI,MAAA,CAAAC,GAAA;IAC5DG,EAAA,GAAAA,CAAA;MACd,MAAAC,aAAA,GACEH,qBAAqB,CAAAI,OACe,EAAAC,2BAAE,CAAM,CAAC,CAAAC,MAAA;MAC/CL,gBAAgB,GAAGE,aAAkB,IAAlB,CAAkB,CAAC;IAAA,CACvC;IAAAT,CAAA,MAAAQ,EAAA;EAAA;IAAAA,EAAA,GAAAR,CAAA;EAAA;EALDR,eAAe,CAACgB,EAKf,CAAC;EAAA,IAAAK,EAAA;EAAA,IAAAb,CAAA,QAAAE,SAAA;IAGAW,EAAA,gBAAAhB,IAAA,CAACF,yBAAyB;MAAAmB,QAAA,eACxBjB,IAAA,CAACH,IAAI;QACEqB,GAAsD,EAAtDT,qBAAsD;QAAA,GACvDJ;MAAS,CACd;IAAC,CACuB,CAAC;IAAAF,CAAA,MAAAE,SAAA;IAAAF,CAAA,MAAAa,EAAA;EAAA;IAAAA,EAAA,GAAAb,CAAA;EAAA;EAAA,OAL5Ba,EAK4B;AAAA,CAE/B;AAED,eAAef,0BAA0B","ignoreList":[]}
|
|
@@ -1,43 +1,76 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
/** @internal */
|
|
4
|
-
|
|
5
5
|
import { useActionSheetOnDismiss, useActionSheetOptItemSize } from "../../../hooks/overlay.js";
|
|
6
6
|
import { getActionSheetContext } from "../../../utils/overlay/func.js";
|
|
7
7
|
import List from "../../list/List.js";
|
|
8
8
|
import ActionSheetContentGesture from "./ActionSheetContentGesture.js";
|
|
9
9
|
import ActionSheetOptionListItem from "./ActionSheetOptionListItem.js";
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
const ActionSheetOptionList =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
const ActionSheetOptionList = t0 => {
|
|
12
|
+
const $ = _c(9);
|
|
13
|
+
const {
|
|
14
|
+
options,
|
|
15
|
+
optionListProps,
|
|
16
|
+
optionListItemProps
|
|
17
|
+
} = t0;
|
|
16
18
|
const {
|
|
17
19
|
insetsStyle
|
|
18
20
|
} = useActionSheetOptItemSize(optionListProps);
|
|
19
21
|
const onDismiss = useActionSheetOnDismiss();
|
|
22
|
+
let t1;
|
|
23
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
24
|
+
t1 = getActionSheetContext();
|
|
25
|
+
$[0] = t1;
|
|
26
|
+
} else {
|
|
27
|
+
t1 = $[0];
|
|
28
|
+
}
|
|
20
29
|
const {
|
|
21
30
|
contentAnimatedRefObj
|
|
22
|
-
} =
|
|
23
|
-
const keyExtractor =
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
31
|
+
} = t1;
|
|
32
|
+
const keyExtractor = _temp;
|
|
33
|
+
let t2;
|
|
34
|
+
if ($[1] !== onDismiss || $[2] !== optionListItemProps) {
|
|
35
|
+
t2 = {
|
|
36
|
+
optionListItemProps,
|
|
37
|
+
onDismiss
|
|
38
|
+
};
|
|
39
|
+
$[1] = onDismiss;
|
|
40
|
+
$[2] = optionListItemProps;
|
|
41
|
+
$[3] = t2;
|
|
42
|
+
} else {
|
|
43
|
+
t2 = $[3];
|
|
44
|
+
}
|
|
45
|
+
const extraData = t2;
|
|
46
|
+
let t3;
|
|
47
|
+
if ($[4] !== extraData || $[5] !== insetsStyle || $[6] !== optionListProps || $[7] !== options) {
|
|
48
|
+
t3 = /*#__PURE__*/_jsx(ActionSheetContentGesture, {
|
|
49
|
+
children: /*#__PURE__*/_jsx(List, {
|
|
50
|
+
ref: contentAnimatedRefObj,
|
|
51
|
+
data: options,
|
|
52
|
+
Item: ActionSheetOptionListItem,
|
|
53
|
+
keyExtractor: keyExtractor,
|
|
54
|
+
extraData: extraData,
|
|
55
|
+
contentContainerStyle: insetsStyle,
|
|
56
|
+
...optionListProps
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
$[4] = extraData;
|
|
60
|
+
$[5] = insetsStyle;
|
|
61
|
+
$[6] = optionListProps;
|
|
62
|
+
$[7] = options;
|
|
63
|
+
$[8] = t3;
|
|
64
|
+
} else {
|
|
65
|
+
t3 = $[8];
|
|
66
|
+
}
|
|
67
|
+
return t3;
|
|
41
68
|
};
|
|
42
69
|
export default ActionSheetOptionList;
|
|
70
|
+
function _temp(t0, index) {
|
|
71
|
+
const {
|
|
72
|
+
text
|
|
73
|
+
} = t0;
|
|
74
|
+
return `${text}_${index}`;
|
|
75
|
+
}
|
|
43
76
|
//# sourceMappingURL=ActionSheetOptionList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useActionSheetOnDismiss","useActionSheetOptItemSize","getActionSheetContext","List","ActionSheetContentGesture","ActionSheetOptionListItem","jsx","_jsx","ActionSheetOptionList","options","optionListProps","optionListItemProps","insetsStyle","onDismiss","contentAnimatedRefObj","keyExtractor","
|
|
1
|
+
{"version":3,"names":["useActionSheetOnDismiss","useActionSheetOptItemSize","getActionSheetContext","List","ActionSheetContentGesture","ActionSheetOptionListItem","jsx","_jsx","ActionSheetOptionList","t0","$","_c","options","optionListProps","optionListItemProps","insetsStyle","onDismiss","t1","Symbol","for","contentAnimatedRefObj","keyExtractor","_temp","t2","extraData","t3","children","ref","index","text"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetOptionList.tsx"],"mappings":";;;AAAA;AAEA,SACEA,uBAAuB,EACvBC,yBAAyB,QACpB,2BAAwB;AAQ/B,SAASC,qBAAqB,QAAQ,gCAA6B;AACnE,OAAOC,IAAI,MAAM,oBAAiB;AAClC,OAAOC,yBAAyB,MAAM,gCAA6B;AACnE,OAAOC,yBAAyB,MAAM,gCAA6B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAEpE,MAAMC,qBAKL,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,OAAA;IAAAC,eAAA;IAAAC;EAAA,IAAAL,EAAiD;EACpD;IAAAM;EAAA,IAAwBd,yBAAyB,CAACY,eAAe,CAAC;EAClE,MAAAG,SAAA,GAAkBhB,uBAAuB,CAAC,CAAC;EAAC,IAAAiB,EAAA;EAAA,IAAAP,CAAA,QAAAQ,MAAA,CAAAC,GAAA;IAEVF,EAAA,GAAAf,qBAAqB,CAAC,CAAC;IAAAQ,CAAA,MAAAO,EAAA;EAAA;IAAAA,EAAA,GAAAP,CAAA;EAAA;EAAzD;IAAAU;EAAA,IAAkCH,EAAuB;EACzD,MAAAI,YAAA,GAA0DC,KACtC;EAAC,IAAAC,EAAA;EAAA,IAAAb,CAAA,QAAAM,SAAA,IAAAN,CAAA,QAAAI,mBAAA;IAC6BS,EAAA;MAAAT,mBAAA;MAAAE;IAGlD,CAAC;IAAAN,CAAA,MAAAM,SAAA;IAAAN,CAAA,MAAAI,mBAAA;IAAAJ,CAAA,MAAAa,EAAA;EAAA;IAAAA,EAAA,GAAAb,CAAA;EAAA;EAHD,MAAAc,SAAA,GAAkDD,EAGjD;EAAC,IAAAE,EAAA;EAAA,IAAAf,CAAA,QAAAc,SAAA,IAAAd,CAAA,QAAAK,WAAA,IAAAL,CAAA,QAAAG,eAAA,IAAAH,CAAA,QAAAE,OAAA;IAGAa,EAAA,gBAAAlB,IAAA,CAACH,yBAAyB;MAAAsB,QAAA,eACxBnB,IAAA,CAACJ,IAAI;QACEwB,GAAoD,EAApDP,qBAAoD;QACnDR,IAAO,EAAPA,OAAO;QACPP,IAAyB,EAAzBA,yBAAyB;QACjBgB,YAAY,EAAZA,YAAY;QACfG,SAAS,EAATA,SAAS;QACGT,qBAAW,EAAXA,WAAW;QAAA,GAC9BF;MAAe,CACpB;IAAC,CACuB,CAAC;IAAAH,CAAA,MAAAc,SAAA;IAAAd,CAAA,MAAAK,WAAA;IAAAL,CAAA,MAAAG,eAAA;IAAAH,CAAA,MAAAE,OAAA;IAAAF,CAAA,MAAAe,EAAA;EAAA;IAAAA,EAAA,GAAAf,CAAA;EAAA;EAAA,OAV5Be,EAU4B;AAAA,CAE/B;AAED,eAAejB,qBAAqB;AA3BhC,SAAAc,MAAAb,EAAA,EAAAmB,KAAA;EAKyD;IAAAC;EAAA,IAAApB,EAAQ;EAAA,OACjE,GAAGoB,IAAI,IAAID,KAAK,EAAE;AAAA","ignoreList":[]}
|
|
@@ -1,37 +1,61 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
3
4
|
/** @internal */
|
|
4
|
-
|
|
5
5
|
import { actionSheetOptionListItemPadding, actionSheetOptionListItemTextVariant } from "../../../utils/overlay/const.js";
|
|
6
6
|
import ThemedButton from "../../button/ThemedButton.js";
|
|
7
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
const ActionSheetOptionListItem =
|
|
9
|
-
|
|
8
|
+
const ActionSheetOptionListItem = t0 => {
|
|
9
|
+
const $ = _c(9);
|
|
10
|
+
const {
|
|
11
|
+
item: t1,
|
|
12
|
+
extraData
|
|
13
|
+
} = t0;
|
|
14
|
+
const {
|
|
10
15
|
text,
|
|
11
16
|
onPress,
|
|
12
17
|
props
|
|
13
|
-
}
|
|
14
|
-
extraData
|
|
15
|
-
}) => {
|
|
18
|
+
} = t1;
|
|
16
19
|
const {
|
|
17
20
|
optionListItemProps,
|
|
18
21
|
onDismiss
|
|
19
22
|
} = extraData;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
let t2;
|
|
24
|
+
if ($[0] !== onDismiss || $[1] !== onPress || $[2] !== text) {
|
|
25
|
+
t2 = event => {
|
|
26
|
+
onPress?.(event);
|
|
27
|
+
onDismiss(text);
|
|
28
|
+
};
|
|
29
|
+
$[0] = onDismiss;
|
|
30
|
+
$[1] = onPress;
|
|
31
|
+
$[2] = text;
|
|
32
|
+
$[3] = t2;
|
|
33
|
+
} else {
|
|
34
|
+
t2 = $[3];
|
|
35
|
+
}
|
|
36
|
+
const onItemPress = t2;
|
|
37
|
+
let t3;
|
|
38
|
+
if ($[4] !== onItemPress || $[5] !== optionListItemProps || $[6] !== props || $[7] !== text) {
|
|
39
|
+
t3 = /*#__PURE__*/_jsx(ThemedButton, {
|
|
40
|
+
onPress: onItemPress,
|
|
41
|
+
alignItems: "flex-start",
|
|
42
|
+
paddingVertical: actionSheetOptionListItemPadding,
|
|
43
|
+
backgroundColor: "background",
|
|
44
|
+
text: text,
|
|
45
|
+
textVariant: actionSheetOptionListItemTextVariant,
|
|
46
|
+
textColor: "text",
|
|
47
|
+
...optionListItemProps,
|
|
48
|
+
...props
|
|
49
|
+
});
|
|
50
|
+
$[4] = onItemPress;
|
|
51
|
+
$[5] = optionListItemProps;
|
|
52
|
+
$[6] = props;
|
|
53
|
+
$[7] = text;
|
|
54
|
+
$[8] = t3;
|
|
55
|
+
} else {
|
|
56
|
+
t3 = $[8];
|
|
57
|
+
}
|
|
58
|
+
return t3;
|
|
35
59
|
};
|
|
36
60
|
export default ActionSheetOptionListItem;
|
|
37
61
|
//# sourceMappingURL=ActionSheetOptionListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["actionSheetOptionListItemPadding","actionSheetOptionListItemTextVariant","ThemedButton","jsx","_jsx","ActionSheetOptionListItem","item","text","onPress","props","
|
|
1
|
+
{"version":3,"names":["actionSheetOptionListItemPadding","actionSheetOptionListItemTextVariant","ThemedButton","jsx","_jsx","ActionSheetOptionListItem","t0","$","_c","item","t1","extraData","text","onPress","props","optionListItemProps","onDismiss","t2","event","onItemPress","t3","alignItems","backgroundColor","textVariant","textColor"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetOptionListItem.tsx"],"mappings":";;;AAAA;AAQA,SACEA,gCAAgC,EAChCC,oCAAoC,QAC/B,iCAA8B;AACrC,OAAOC,YAAY,MAAM,8BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAErD,MAAMC,yBAA+D,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,IAAA,EAAAC,EAAA;IAAAC;EAAA,IAAAL,EAGxE;EAFO;IAAAM,IAAA;IAAAC,OAAA;IAAAC;EAAA,IAAAJ,EAAwB;EAG9B;IAAAK,mBAAA;IAAAC;EAAA,IACEL,SAAS;EAAmC,IAAAM,EAAA;EAAA,IAAAV,CAAA,QAAAS,SAAA,IAAAT,CAAA,QAAAM,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