@jamadd/react-native-template-ui 0.20.14 → 0.21.1
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/overlay/actionSheet/ActionSheetContentGesture.js +15 -10
- package/lib/module/components/overlay/actionSheet/ActionSheetContentGesture.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +154 -67
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +33 -26
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js +19 -8
- package/lib/module/components/overlay/actionSheet/ActionSheetListViewContent.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js +24 -13
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionList.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +35 -28
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +33 -26
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js +20 -9
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollViewContent.js.map +1 -1
- package/lib/module/hooks/overlay.js +125 -120
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/module/hooks/theme.js.map +1 -1
- package/lib/module/utils/overlay/const.js +1 -3
- package/lib/module/utils/overlay/const.js.map +1 -1
- package/lib/module/utils/overlay/func.js +2 -2
- package/lib/module/utils/overlay/func.js.map +1 -1
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts +0 -12
- package/lib/typescript/src/components/button/AnimatedPressable.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts +0 -8
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetContentGesture.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionList.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts +0 -10
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptionListItem.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts +0 -10
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollViewContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts +0 -9
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts +0 -8
- package/lib/typescript/src/components/overlay/alert/AlertButton.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts +0 -8
- package/lib/typescript/src/components/overlay/alert/AlertButtons.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts +0 -8
- package/lib/typescript/src/components/overlay/alert/AlertContent.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts +0 -13
- package/lib/typescript/src/components/overlay/alert/AlertWrap.d.ts.map +1 -1
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts +0 -9
- package/lib/typescript/src/components/slider/ThemedSliderStepIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/text/Text.d.ts +0 -2476
- package/lib/typescript/src/components/text/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/view/AnimatedView.d.ts +0 -12
- package/lib/typescript/src/components/view/AnimatedView.d.ts.map +1 -1
- package/lib/typescript/src/components/view/Box.d.ts +0 -2342
- package/lib/typescript/src/components/view/Box.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +1 -45
- 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/hooks/textInput.d.ts +1 -10
- package/lib/typescript/src/hooks/textInput.d.ts.map +1 -1
- package/lib/typescript/src/hooks/theme.d.ts +2 -2
- package/lib/typescript/src/hooks/theme.d.ts.map +1 -1
- package/lib/typescript/src/types/list.d.ts +1 -14
- package/lib/typescript/src/types/list.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +14 -81
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/types/textInput.d.ts +0 -1
- package/lib/typescript/src/types/textInput.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +1 -35
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/func.d.ts +0 -87
- package/lib/typescript/src/utils/overlay/func.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/style/const.d.ts +0 -9
- package/lib/typescript/src/utils/style/const.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/lib/typescript/src/utils/theme/restyle.d.ts +0 -2407
- package/lib/typescript/src/utils/theme/restyle.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -4,30 +4,35 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
4
4
|
/** @internal */
|
|
5
5
|
import { GestureDetector } from 'react-native-gesture-handler';
|
|
6
6
|
import { useActionSheetContentGesture } from "../../../hooks/overlay.js";
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
8
8
|
/**
|
|
9
9
|
* @internal
|
|
10
10
|
* Wraps action sheet content with gesture detection for drag-to-dismiss functionality.
|
|
11
11
|
*/
|
|
12
12
|
const ActionSheetContentGesture = t0 => {
|
|
13
|
-
const $ = _c(
|
|
13
|
+
const $ = _c(4);
|
|
14
14
|
const {
|
|
15
|
-
children
|
|
15
|
+
children,
|
|
16
|
+
contentGestureEnabled: t1
|
|
16
17
|
} = t0;
|
|
18
|
+
const contentGestureEnabled = t1 === undefined ? true : t1;
|
|
17
19
|
const gesture = useActionSheetContentGesture();
|
|
18
|
-
let
|
|
19
|
-
if ($[0] !== children || $[1] !== gesture) {
|
|
20
|
-
|
|
20
|
+
let t2;
|
|
21
|
+
if ($[0] !== children || $[1] !== contentGestureEnabled || $[2] !== gesture) {
|
|
22
|
+
t2 = contentGestureEnabled ? /*#__PURE__*/_jsx(GestureDetector, {
|
|
21
23
|
gesture: gesture,
|
|
22
24
|
children: children
|
|
25
|
+
}) : /*#__PURE__*/_jsx(_Fragment, {
|
|
26
|
+
children: children
|
|
23
27
|
});
|
|
24
28
|
$[0] = children;
|
|
25
|
-
$[1] =
|
|
26
|
-
$[2] =
|
|
29
|
+
$[1] = contentGestureEnabled;
|
|
30
|
+
$[2] = gesture;
|
|
31
|
+
$[3] = t2;
|
|
27
32
|
} else {
|
|
28
|
-
|
|
33
|
+
t2 = $[3];
|
|
29
34
|
}
|
|
30
|
-
return
|
|
35
|
+
return t2;
|
|
31
36
|
};
|
|
32
37
|
export default ActionSheetContentGesture;
|
|
33
38
|
//# sourceMappingURL=ActionSheetContentGesture.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["GestureDetector","useActionSheetContentGesture","jsx","_jsx","ActionSheetContentGesture","t0","$","_c","children","
|
|
1
|
+
{"version":3,"names":["GestureDetector","useActionSheetContentGesture","jsx","_jsx","Fragment","_Fragment","ActionSheetContentGesture","t0","$","_c","children","contentGestureEnabled","t1","undefined","gesture","t2"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetContentGesture.tsx"],"mappings":";;;AAAA;AAEA,SAASA,eAAe,QAAQ,8BAA8B;AAC9D,SAASC,4BAA4B,QAAQ,2BAAwB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA;AAGtE;AACA;AACA;AACA;AACA,MAAMC,yBAEL,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,QAAA;IAAAC,qBAAA,EAAAC;EAAA,IAAAL,EAA0C;EAA9B,MAAAI,qBAAA,GAAAC,EAA4B,KAA5BC,SAA4B,GAA5B,IAA4B,GAA5BD,EAA4B;EAC3C,MAAAE,OAAA,GAAgBb,4BAA4B,CAAC,CAAC;EAAC,IAAAc,EAAA;EAAA,IAAAP,CAAA,QAAAE,QAAA,IAAAF,CAAA,QAAAG,qBAAA,IAAAH,CAAA,QAAAM,OAAA;IAExCC,EAAA,GAAAJ,qBAAqB,gBAArBR,IAAA,CACJH,eAAe;MAAUc,OAAO,EAAPA,OAAO;MAAAJ,QAAA,EAAGA;IAAQ,CAG9C,CAAC,gBAJMP,IAAA,CAAAE,SAAA;MAAAK,QAAA,EAGFA;IAAQ,CACb,CAAC;IAAAF,CAAA,MAAAE,QAAA;IAAAF,CAAA,MAAAG,qBAAA;IAAAH,CAAA,MAAAM,OAAA;IAAAN,CAAA,MAAAO,EAAA;EAAA;IAAAA,EAAA,GAAAP,CAAA;EAAA;EAAA,OAJMO,EAIN;AAAA,CACF;AAED,eAAeT,yBAAyB","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
/** @internal */
|
|
5
|
-
import { lazy } from 'react';
|
|
5
|
+
import { lazy, useLayoutEffect, useState } from 'react';
|
|
6
6
|
import { GestureDetector } from 'react-native-gesture-handler';
|
|
7
7
|
import { useActionSheetGesture, useActionSheetHeaderMinHeight, useActionSheetInternalContext, useActionSheetOnDismiss } from "../../../hooks/overlay.js";
|
|
8
8
|
import { actionSheetHeaderIconSize, actionSheetHeaderPaddingKey } from "../../../utils/overlay/const.js";
|
|
@@ -26,15 +26,25 @@ if (isPlatformWeb()) {
|
|
|
26
26
|
* Supports gesture detection for drag-to-dismiss functionality.
|
|
27
27
|
*/
|
|
28
28
|
const ActionSheetHeader = t0 => {
|
|
29
|
-
const $ = _c(
|
|
29
|
+
const $ = _c(44);
|
|
30
30
|
const {
|
|
31
|
+
headerRef,
|
|
31
32
|
headerShowDismissIcon: t1,
|
|
32
33
|
headerWrapProps,
|
|
33
34
|
headerTextProps,
|
|
34
|
-
headerIconButtonProps,
|
|
35
|
+
headerIconButtonProps: t2,
|
|
35
36
|
headerChildren
|
|
36
37
|
} = t0;
|
|
37
38
|
const headerShowDismissIcon = t1 === undefined ? true : t1;
|
|
39
|
+
let t3;
|
|
40
|
+
if ($[0] !== t2) {
|
|
41
|
+
t3 = t2 === undefined ? {} : t2;
|
|
42
|
+
$[0] = t2;
|
|
43
|
+
$[1] = t3;
|
|
44
|
+
} else {
|
|
45
|
+
t3 = $[1];
|
|
46
|
+
}
|
|
47
|
+
const headerIconButtonProps = t3;
|
|
38
48
|
const {
|
|
39
49
|
title,
|
|
40
50
|
headerViewRef
|
|
@@ -42,80 +52,157 @@ const ActionSheetHeader = t0 => {
|
|
|
42
52
|
const gesture = useActionSheetGesture();
|
|
43
53
|
const minHeight = useActionSheetHeaderMinHeight();
|
|
44
54
|
const onDismiss = useActionSheetOnDismiss();
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
55
|
+
const [headerTitle, setHeaderTitle] = useState(title);
|
|
56
|
+
let t4;
|
|
57
|
+
let t5;
|
|
58
|
+
if ($[2] !== headerRef) {
|
|
59
|
+
t4 = () => {
|
|
60
|
+
if (!headerRef) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
headerRef.current = {
|
|
64
|
+
setTitle: setHeaderTitle
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
t5 = [headerRef];
|
|
68
|
+
$[2] = headerRef;
|
|
69
|
+
$[3] = t4;
|
|
70
|
+
$[4] = t5;
|
|
71
|
+
} else {
|
|
72
|
+
t4 = $[3];
|
|
73
|
+
t5 = $[4];
|
|
74
|
+
}
|
|
75
|
+
useLayoutEffect(t4, t5);
|
|
76
|
+
let t6;
|
|
77
|
+
if ($[5] !== onDismiss) {
|
|
78
|
+
t6 = () => {
|
|
48
79
|
onDismiss();
|
|
49
80
|
};
|
|
50
|
-
$[
|
|
51
|
-
$[
|
|
81
|
+
$[5] = onDismiss;
|
|
82
|
+
$[6] = t6;
|
|
83
|
+
} else {
|
|
84
|
+
t6 = $[6];
|
|
85
|
+
}
|
|
86
|
+
const onIconPress = t6;
|
|
87
|
+
const hasHeaderContent = !!headerTitle || headerShowDismissIcon;
|
|
88
|
+
let iconColor;
|
|
89
|
+
let iconComponent;
|
|
90
|
+
let iconName;
|
|
91
|
+
let iconProps;
|
|
92
|
+
let iconSize;
|
|
93
|
+
let iconStyle;
|
|
94
|
+
let tempHeaderIconButtonProps;
|
|
95
|
+
if ($[7] !== headerIconButtonProps) {
|
|
96
|
+
({
|
|
97
|
+
iconComponent,
|
|
98
|
+
iconName,
|
|
99
|
+
iconSize,
|
|
100
|
+
iconColor,
|
|
101
|
+
iconStyle,
|
|
102
|
+
iconProps,
|
|
103
|
+
...tempHeaderIconButtonProps
|
|
104
|
+
} = headerIconButtonProps);
|
|
105
|
+
$[7] = headerIconButtonProps;
|
|
106
|
+
$[8] = iconColor;
|
|
107
|
+
$[9] = iconComponent;
|
|
108
|
+
$[10] = iconName;
|
|
109
|
+
$[11] = iconProps;
|
|
110
|
+
$[12] = iconSize;
|
|
111
|
+
$[13] = iconStyle;
|
|
112
|
+
$[14] = tempHeaderIconButtonProps;
|
|
113
|
+
} else {
|
|
114
|
+
iconColor = $[8];
|
|
115
|
+
iconComponent = $[9];
|
|
116
|
+
iconName = $[10];
|
|
117
|
+
iconProps = $[11];
|
|
118
|
+
iconSize = $[12];
|
|
119
|
+
iconStyle = $[13];
|
|
120
|
+
tempHeaderIconButtonProps = $[14];
|
|
121
|
+
}
|
|
122
|
+
let t7;
|
|
123
|
+
if ($[15] !== iconColor || $[16] !== iconComponent || $[17] !== iconName || $[18] !== iconProps || $[19] !== iconSize || $[20] !== iconStyle) {
|
|
124
|
+
t7 = iconComponent ? {
|
|
125
|
+
iconComponent
|
|
126
|
+
} : {
|
|
127
|
+
iconName: iconName ?? "cross",
|
|
128
|
+
iconSize: iconSize ?? actionSheetHeaderIconSize,
|
|
129
|
+
iconColor,
|
|
130
|
+
iconStyle,
|
|
131
|
+
iconProps
|
|
132
|
+
};
|
|
133
|
+
$[15] = iconColor;
|
|
134
|
+
$[16] = iconComponent;
|
|
135
|
+
$[17] = iconName;
|
|
136
|
+
$[18] = iconProps;
|
|
137
|
+
$[19] = iconSize;
|
|
138
|
+
$[20] = iconStyle;
|
|
139
|
+
$[21] = t7;
|
|
52
140
|
} else {
|
|
53
|
-
|
|
141
|
+
t7 = $[21];
|
|
54
142
|
}
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
children: [!!title && /*#__PURE__*/_jsx(ThemedText, {
|
|
143
|
+
const dismissIconProps = t7;
|
|
144
|
+
const t8 = headerChildren ? undefined : headerViewRef;
|
|
145
|
+
const t9 = hasHeaderContent ? minHeight : undefined;
|
|
146
|
+
const t10 = headerChildren ? undefined : actionSheetHeaderPaddingKey;
|
|
147
|
+
const t11 = headerChildren ? undefined : BorderSize.S;
|
|
148
|
+
const t12 = headerChildren ? undefined : headerWrapProps;
|
|
149
|
+
let t13;
|
|
150
|
+
if ($[22] !== dismissIconProps || $[23] !== headerShowDismissIcon || $[24] !== headerTextProps || $[25] !== headerTitle || $[26] !== onIconPress || $[27] !== tempHeaderIconButtonProps) {
|
|
151
|
+
t13 = !!headerTitle || headerShowDismissIcon ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
152
|
+
children: [!!headerTitle && /*#__PURE__*/_jsx(ThemedText, {
|
|
66
153
|
variant: "textMBold",
|
|
67
154
|
...headerTextProps,
|
|
68
|
-
children:
|
|
155
|
+
children: headerTitle
|
|
69
156
|
}), headerShowDismissIcon && /*#__PURE__*/_jsx(ThemedIconButton, {
|
|
70
157
|
onPress: onIconPress,
|
|
71
|
-
iconName: "cross",
|
|
72
|
-
iconSize: actionSheetHeaderIconSize,
|
|
73
158
|
position: "absolute",
|
|
74
159
|
left: 0,
|
|
75
|
-
...
|
|
160
|
+
...tempHeaderIconButtonProps,
|
|
161
|
+
...dismissIconProps
|
|
76
162
|
})]
|
|
77
163
|
}) : /*#__PURE__*/_jsx(ThemedView, {
|
|
78
164
|
width: "10%",
|
|
79
165
|
height: BorderSize.XL,
|
|
80
166
|
backgroundColor: "separator"
|
|
81
167
|
});
|
|
82
|
-
$[
|
|
83
|
-
$[
|
|
84
|
-
$[
|
|
85
|
-
$[
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
168
|
+
$[22] = dismissIconProps;
|
|
169
|
+
$[23] = headerShowDismissIcon;
|
|
170
|
+
$[24] = headerTextProps;
|
|
171
|
+
$[25] = headerTitle;
|
|
172
|
+
$[26] = onIconPress;
|
|
173
|
+
$[27] = tempHeaderIconButtonProps;
|
|
174
|
+
$[28] = t13;
|
|
88
175
|
} else {
|
|
89
|
-
|
|
176
|
+
t13 = $[28];
|
|
90
177
|
}
|
|
91
|
-
let
|
|
92
|
-
if ($[
|
|
93
|
-
|
|
94
|
-
ref:
|
|
178
|
+
let t14;
|
|
179
|
+
if ($[29] !== t10 || $[30] !== t11 || $[31] !== t12 || $[32] !== t13 || $[33] !== t8 || $[34] !== t9) {
|
|
180
|
+
t14 = /*#__PURE__*/_jsx(ThemedView, {
|
|
181
|
+
ref: t8,
|
|
95
182
|
justifyContent: "center",
|
|
96
183
|
alignItems: "center",
|
|
97
|
-
minHeight:
|
|
98
|
-
padding:
|
|
99
|
-
borderBottomWidth:
|
|
184
|
+
minHeight: t9,
|
|
185
|
+
padding: t10,
|
|
186
|
+
borderBottomWidth: t11,
|
|
100
187
|
borderColor: "border",
|
|
101
188
|
backgroundColor: "transparent",
|
|
102
|
-
...
|
|
103
|
-
children:
|
|
189
|
+
...t12,
|
|
190
|
+
children: t13
|
|
104
191
|
});
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
108
|
-
$[
|
|
109
|
-
$[
|
|
110
|
-
$[
|
|
111
|
-
$[
|
|
192
|
+
$[29] = t10;
|
|
193
|
+
$[30] = t11;
|
|
194
|
+
$[31] = t12;
|
|
195
|
+
$[32] = t13;
|
|
196
|
+
$[33] = t8;
|
|
197
|
+
$[34] = t9;
|
|
198
|
+
$[35] = t14;
|
|
112
199
|
} else {
|
|
113
|
-
|
|
200
|
+
t14 = $[35];
|
|
114
201
|
}
|
|
115
|
-
const headerContent =
|
|
116
|
-
let
|
|
117
|
-
if ($[
|
|
118
|
-
|
|
202
|
+
const headerContent = t14;
|
|
203
|
+
let t15;
|
|
204
|
+
if ($[36] !== headerChildren || $[37] !== headerContent || $[38] !== headerViewRef || $[39] !== headerWrapProps) {
|
|
205
|
+
t15 = headerChildren ? /*#__PURE__*/_jsxs(ThemedView, {
|
|
119
206
|
ref: headerViewRef,
|
|
120
207
|
padding: actionSheetHeaderPaddingKey,
|
|
121
208
|
borderBottomWidth: BorderSize.S,
|
|
@@ -123,27 +210,27 @@ const ActionSheetHeader = t0 => {
|
|
|
123
210
|
...headerWrapProps,
|
|
124
211
|
children: [headerContent, headerChildren]
|
|
125
212
|
}) : headerContent;
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
213
|
+
$[36] = headerChildren;
|
|
214
|
+
$[37] = headerContent;
|
|
215
|
+
$[38] = headerViewRef;
|
|
216
|
+
$[39] = headerWrapProps;
|
|
217
|
+
$[40] = t15;
|
|
131
218
|
} else {
|
|
132
|
-
|
|
219
|
+
t15 = $[40];
|
|
133
220
|
}
|
|
134
|
-
let
|
|
135
|
-
if ($[
|
|
136
|
-
|
|
221
|
+
let t16;
|
|
222
|
+
if ($[41] !== gesture || $[42] !== t15) {
|
|
223
|
+
t16 = /*#__PURE__*/_jsx(GestureDetector, {
|
|
137
224
|
gesture: gesture,
|
|
138
|
-
children:
|
|
225
|
+
children: t15
|
|
139
226
|
});
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
227
|
+
$[41] = gesture;
|
|
228
|
+
$[42] = t15;
|
|
229
|
+
$[43] = t16;
|
|
143
230
|
} else {
|
|
144
|
-
|
|
231
|
+
t16 = $[43];
|
|
145
232
|
}
|
|
146
|
-
return
|
|
233
|
+
return t16;
|
|
147
234
|
};
|
|
148
235
|
export default ActionSheetHeader;
|
|
149
236
|
//# sourceMappingURL=ActionSheetHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["lazy","GestureDetector","useActionSheetGesture","useActionSheetHeaderMinHeight","useActionSheetInternalContext","useActionSheetOnDismiss","actionSheetHeaderIconSize","actionSheetHeaderPaddingKey","isPlatformWeb","BorderSize","ThemedView","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ThemedText","ThemedIconButton","require","default","ActionSheetHeader","t0","$","_c","headerShowDismissIcon","t1","headerWrapProps","headerTextProps","headerIconButtonProps","headerChildren","undefined","title","headerViewRef","gesture","minHeight","onDismiss","
|
|
1
|
+
{"version":3,"names":["lazy","useLayoutEffect","useState","GestureDetector","useActionSheetGesture","useActionSheetHeaderMinHeight","useActionSheetInternalContext","useActionSheetOnDismiss","actionSheetHeaderIconSize","actionSheetHeaderPaddingKey","isPlatformWeb","BorderSize","ThemedView","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","ThemedText","ThemedIconButton","require","default","ActionSheetHeader","t0","$","_c","headerRef","headerShowDismissIcon","t1","headerWrapProps","headerTextProps","headerIconButtonProps","t2","headerChildren","undefined","t3","title","headerViewRef","gesture","minHeight","onDismiss","headerTitle","setHeaderTitle","t4","t5","current","setTitle","t6","onIconPress","hasHeaderContent","iconColor","iconComponent","iconName","iconProps","iconSize","iconStyle","tempHeaderIconButtonProps","t7","dismissIconProps","t8","t9","t10","t11","S","t12","t13","children","variant","position","left","width","height","XL","backgroundColor","t14","ref","justifyContent","alignItems","padding","borderBottomWidth","borderColor","headerContent","t15","t16"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetHeader.tsx"],"mappings":";;;AAAA;AAEA,SAASA,IAAI,EAAEC,eAAe,EAAEC,QAAQ,QAAQ,OAAO;AACvD,SAASC,eAAe,QAAQ,8BAA8B;AAC9D,SACEC,qBAAqB,EACrBC,6BAA6B,EAC7BC,6BAA6B,EAC7BC,uBAAuB,QAClB,2BAAwB;AAK/B,SACEC,yBAAyB,EACzBC,2BAA2B,QACtB,iCAA8B;AACrC,SAASC,aAAa,QAAQ,8BAA2B;AACzD,SAASC,UAAU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AAAyD,aAAA;IAAAzD,CAAA,OAAAa,aAAA;IAAAb,CAAA,OAAAK,eAAA;IAAAL,CAAA,OAAA0D,GAAA;EAAA;IAAAA,GAAA,GAAA1D,CAAA;EAAA;EAAA,IAAA2D,GAAA;EAAA,IAAA3D,CAAA,SAAAc,OAAA,IAAAd,CAAA,SAAA0D,GAAA;IAdHC,GAAA,gBAAAtE,IAAA,CAACX,eAAe;MAAUoC,OAAO,EAAPA,OAAO;MAAA4B,QAAA,EAC9BgB;IAaA,CACc,CAAC;IAAA1D,CAAA,OAAAc,OAAA;IAAAd,CAAA,OAAA0D,GAAA;IAAA1D,CAAA,OAAA2D,GAAA;EAAA;IAAAA,GAAA,GAAA3D,CAAA;EAAA;EAAA,OAflB2D,GAekB;AAAA,CAErB;AAED,eAAe7D,iBAAiB","ignoreList":[]}
|
|
@@ -15,10 +15,11 @@ import ActionSheetWrap from "./ActionSheetWrap.js";
|
|
|
15
15
|
*/
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
const ActionSheetListView = t0 => {
|
|
18
|
-
const $ = _c(
|
|
18
|
+
const $ = _c(22);
|
|
19
19
|
const {
|
|
20
20
|
title,
|
|
21
21
|
expandable,
|
|
22
|
+
expandableInitialHeightRatio,
|
|
22
23
|
expandableOnSnapToHeight,
|
|
23
24
|
listProps,
|
|
24
25
|
onDismiss,
|
|
@@ -26,7 +27,9 @@ const ActionSheetListView = t0 => {
|
|
|
26
27
|
dismissible,
|
|
27
28
|
maxHeight,
|
|
28
29
|
animated,
|
|
30
|
+
contentGestureEnabled,
|
|
29
31
|
wrapViewProps,
|
|
32
|
+
headerRef,
|
|
30
33
|
headerShowDismissIcon,
|
|
31
34
|
headerWrapProps,
|
|
32
35
|
headerTextProps,
|
|
@@ -34,7 +37,7 @@ const ActionSheetListView = t0 => {
|
|
|
34
37
|
headerChildren,
|
|
35
38
|
visible
|
|
36
39
|
} = t0;
|
|
37
|
-
const t1 = useActionSheetListView(title, expandable, expandableOnSnapToHeight, listProps, onDismiss, maxHeight, animated, dismissible, visible);
|
|
40
|
+
const t1 = useActionSheetListView(title, expandable, expandableInitialHeightRatio, expandableOnSnapToHeight, listProps, onDismiss, maxHeight, animated, dismissible, visible);
|
|
38
41
|
let actionSheetInternalContextVal;
|
|
39
42
|
let actionSheetVisible;
|
|
40
43
|
if ($[0] !== t1) {
|
|
@@ -50,8 +53,9 @@ const ActionSheetListView = t0 => {
|
|
|
50
53
|
actionSheetVisible = $[2];
|
|
51
54
|
}
|
|
52
55
|
let t2;
|
|
53
|
-
if ($[3] !== headerChildren || $[4] !== headerIconButtonProps || $[5] !==
|
|
56
|
+
if ($[3] !== headerChildren || $[4] !== headerIconButtonProps || $[5] !== headerRef || $[6] !== headerShowDismissIcon || $[7] !== headerTextProps || $[8] !== headerWrapProps) {
|
|
54
57
|
t2 = /*#__PURE__*/_jsx(ActionSheetHeader, {
|
|
58
|
+
headerRef: headerRef,
|
|
55
59
|
headerShowDismissIcon: headerShowDismissIcon,
|
|
56
60
|
headerWrapProps: headerWrapProps,
|
|
57
61
|
headerTextProps: headerTextProps,
|
|
@@ -60,51 +64,54 @@ const ActionSheetListView = t0 => {
|
|
|
60
64
|
});
|
|
61
65
|
$[3] = headerChildren;
|
|
62
66
|
$[4] = headerIconButtonProps;
|
|
63
|
-
$[5] =
|
|
64
|
-
$[6] =
|
|
65
|
-
$[7] =
|
|
66
|
-
$[8] =
|
|
67
|
+
$[5] = headerRef;
|
|
68
|
+
$[6] = headerShowDismissIcon;
|
|
69
|
+
$[7] = headerTextProps;
|
|
70
|
+
$[8] = headerWrapProps;
|
|
71
|
+
$[9] = t2;
|
|
67
72
|
} else {
|
|
68
|
-
t2 = $[
|
|
73
|
+
t2 = $[9];
|
|
69
74
|
}
|
|
70
75
|
let t3;
|
|
71
|
-
if ($[
|
|
76
|
+
if ($[10] !== contentGestureEnabled || $[11] !== listProps) {
|
|
72
77
|
t3 = /*#__PURE__*/_jsx(ActionSheetListViewContent, {
|
|
73
|
-
listProps: listProps
|
|
78
|
+
listProps: listProps,
|
|
79
|
+
contentGestureEnabled: contentGestureEnabled
|
|
74
80
|
});
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
81
|
+
$[10] = contentGestureEnabled;
|
|
82
|
+
$[11] = listProps;
|
|
83
|
+
$[12] = t3;
|
|
77
84
|
} else {
|
|
78
|
-
t3 = $[
|
|
85
|
+
t3 = $[12];
|
|
79
86
|
}
|
|
80
87
|
let t4;
|
|
81
|
-
if ($[
|
|
88
|
+
if ($[13] !== actionSheetVisible || $[14] !== t2 || $[15] !== t3 || $[16] !== useModal || $[17] !== wrapViewProps) {
|
|
82
89
|
t4 = /*#__PURE__*/_jsxs(ActionSheetWrap, {
|
|
83
90
|
visible: actionSheetVisible,
|
|
84
91
|
useModal: useModal,
|
|
85
92
|
wrapViewProps: wrapViewProps,
|
|
86
93
|
children: [t2, t3]
|
|
87
94
|
});
|
|
88
|
-
$[
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
95
|
+
$[13] = actionSheetVisible;
|
|
96
|
+
$[14] = t2;
|
|
97
|
+
$[15] = t3;
|
|
98
|
+
$[16] = useModal;
|
|
99
|
+
$[17] = wrapViewProps;
|
|
100
|
+
$[18] = t4;
|
|
94
101
|
} else {
|
|
95
|
-
t4 = $[
|
|
102
|
+
t4 = $[18];
|
|
96
103
|
}
|
|
97
104
|
let t5;
|
|
98
|
-
if ($[
|
|
105
|
+
if ($[19] !== actionSheetInternalContextVal || $[20] !== t4) {
|
|
99
106
|
t5 = /*#__PURE__*/_jsx(ActionSheetInternalContext, {
|
|
100
107
|
value: actionSheetInternalContextVal,
|
|
101
108
|
children: t4
|
|
102
109
|
});
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
110
|
+
$[19] = actionSheetInternalContextVal;
|
|
111
|
+
$[20] = t4;
|
|
112
|
+
$[21] = t5;
|
|
106
113
|
} else {
|
|
107
|
-
t5 = $[
|
|
114
|
+
t5 = $[21];
|
|
108
115
|
}
|
|
109
116
|
return t5;
|
|
110
117
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useActionSheetListView","ActionSheetInternalContext","ActionSheetHeader","ActionSheetListViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetListView","t0","$","_c","title","expandable","expandableOnSnapToHeight","listProps","onDismiss","useModal","dismissible","maxHeight","animated","wrapViewProps","headerShowDismissIcon","headerWrapProps","headerTextProps","headerIconButtonProps","headerChildren","visible","t1","actionSheetInternalContextVal","actionSheetVisible","t2","t3","t4","children","t5"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetListView.tsx"],"mappings":";;;AAAA;AAEA,SAASA,sBAAsB,QAAQ,2BAAwB;AAE/D,SAASC,0BAA0B,QAAQ,iCAA8B;AACzE,OAAOC,iBAAiB,MAAM,wBAAqB;AACnD,OAAOC,0BAA0B,MAAM,iCAA8B;AACrE,OAAOC,eAAe,MAAM,sBAAmB;;AAE/C;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKA,MAAMC,mBAAiD,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,KAAA;IAAAC,UAAA;IAAAC,wBAAA;IAAAC,SAAA;IAAAC,SAAA;IAAAC,QAAA;IAAAC,WAAA;IAAAC,SAAA;IAAAC,QAAA;IAAAC,aAAA;IAAAC,qBAAA;IAAAC,eAAA;IAAAC,eAAA;IAAAC,qBAAA;IAAAC,cAAA;IAAAC;EAAA,
|
|
1
|
+
{"version":3,"names":["useActionSheetListView","ActionSheetInternalContext","ActionSheetHeader","ActionSheetListViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetListView","t0","$","_c","title","expandable","expandableInitialHeightRatio","expandableOnSnapToHeight","listProps","onDismiss","useModal","dismissible","maxHeight","animated","contentGestureEnabled","wrapViewProps","headerRef","headerShowDismissIcon","headerWrapProps","headerTextProps","headerIconButtonProps","headerChildren","visible","t1","actionSheetInternalContextVal","actionSheetVisible","t2","t3","t4","children","t5"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetListView.tsx"],"mappings":";;;AAAA;AAEA,SAASA,sBAAsB,QAAQ,2BAAwB;AAE/D,SAASC,0BAA0B,QAAQ,iCAA8B;AACzE,OAAOC,iBAAiB,MAAM,wBAAqB;AACnD,OAAOC,0BAA0B,MAAM,iCAA8B;AACrE,OAAOC,eAAe,MAAM,sBAAmB;;AAE/C;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKA,MAAMC,mBAAiD,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,KAAA;IAAAC,UAAA;IAAAC,4BAAA;IAAAC,wBAAA;IAAAC,SAAA;IAAAC,SAAA;IAAAC,QAAA;IAAAC,WAAA;IAAAC,SAAA;IAAAC,QAAA;IAAAC,qBAAA;IAAAC,aAAA;IAAAC,SAAA;IAAAC,qBAAA;IAAAC,eAAA;IAAAC,eAAA;IAAAC,qBAAA;IAAAC,cAAA;IAAAC;EAAA,IAAArB,EAoB1D;EAEG,MAAAsB,EAAA,GAAAhC,sBAAsB,CACpBa,KAAK,EACLC,UAAU,EACVC,4BAA4B,EAC5BC,wBAAwB,EACxBC,SAAS,EACTC,SAAS,EACTG,SAAS,EACTC,QAAQ,EACRF,WAAW,EACXW,OACF,CAAC;EAAA,IAAAE,6BAAA;EAAA,IAAAC,kBAAA;EAAA,IAAAvB,CAAA,QAAAqB,EAAA;IAZH;MAAAE,kBAAA;MAAA,GAAAD;IAAA,IACED,EAWC;IAACrB,CAAA,MAAAqB,EAAA;IAAArB,CAAA,MAAAsB,6BAAA;IAAAtB,CAAA,MAAAuB,kBAA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A,gBAAA7B,KAAA,CAACJ,eAAe;MACL8B,OAAkB,EAAlBA,kBAAkB;MACjBf,QAAQ,EAARA,QAAQ;MACHK,aAAa,EAAbA,aAAa;MAAAc,QAAA,GAE5BH,EAOE,EACFC,EAGE;IAAA,CACa,CAAC;IAAAzB,CAAA,OAAAuB,kBAAA;IAAAvB,CAAA,OAAAwB,EAAA;IAAAxB,CAAA,OAAAyB,EAAA;IAAAzB,CAAA,OAAAQ,QAAA;IAAAR,CAAA,OAAAa,aAAA;IAAAb,CAAA,OAAA0B,EAAA;EAAA;IAAAA,EAAA,GAAA1B,CAAA;EAAA;EAAA,IAAA4B,EAAA;EAAA,IAAA5B,CAAA,SAAAsB,6BAAA,IAAAtB,CAAA,SAAA0B,EAAA;IAlBpBE,EAAA,gBAAAjC,IAAA,CAACL,0BAA0B;MAAQgC,KAA6B,EAA7BA,6BAA6B;MAAAK,QAAA,EAC9DD;IAiBkB,CACQ,CAAC;IAAA1B,CAAA,OAAAsB,6BAAA;IAAAtB,CAAA,OAAA0B,EAAA;IAAA1B,CAAA,OAAA4B,EAAA;EAAA;IAAAA,EAAA,GAAA5B,CAAA;EAAA;EAAA,OAnB7B4B,EAmB6B;AAAA,CAEhC;AAED,eAAe9B,mBAAmB","ignoreList":[]}
|
|
@@ -14,9 +14,10 @@ import ActionSheetContentGesture from "./ActionSheetContentGesture.js";
|
|
|
14
14
|
*/
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
const ActionSheetListViewContent = t0 => {
|
|
17
|
-
const $ = _c(
|
|
17
|
+
const $ = _c(9);
|
|
18
18
|
const {
|
|
19
|
-
listProps
|
|
19
|
+
listProps,
|
|
20
|
+
contentGestureEnabled
|
|
20
21
|
} = t0;
|
|
21
22
|
const {
|
|
22
23
|
contentAnimatedRefObj,
|
|
@@ -38,11 +39,9 @@ const ActionSheetListViewContent = t0 => {
|
|
|
38
39
|
const t2 = contentAnimatedRefObj;
|
|
39
40
|
let t3;
|
|
40
41
|
if ($[3] !== listProps || $[4] !== t2) {
|
|
41
|
-
t3 = /*#__PURE__*/_jsx(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
...listProps
|
|
45
|
-
})
|
|
42
|
+
t3 = /*#__PURE__*/_jsx(List, {
|
|
43
|
+
ref: t2,
|
|
44
|
+
...listProps
|
|
46
45
|
});
|
|
47
46
|
$[3] = listProps;
|
|
48
47
|
$[4] = t2;
|
|
@@ -50,7 +49,19 @@ const ActionSheetListViewContent = t0 => {
|
|
|
50
49
|
} else {
|
|
51
50
|
t3 = $[5];
|
|
52
51
|
}
|
|
53
|
-
|
|
52
|
+
let t4;
|
|
53
|
+
if ($[6] !== contentGestureEnabled || $[7] !== t3) {
|
|
54
|
+
t4 = /*#__PURE__*/_jsx(ActionSheetContentGesture, {
|
|
55
|
+
contentGestureEnabled: contentGestureEnabled,
|
|
56
|
+
children: t3
|
|
57
|
+
});
|
|
58
|
+
$[6] = contentGestureEnabled;
|
|
59
|
+
$[7] = t3;
|
|
60
|
+
$[8] = t4;
|
|
61
|
+
} else {
|
|
62
|
+
t4 = $[8];
|
|
63
|
+
}
|
|
64
|
+
return t4;
|
|
54
65
|
};
|
|
55
66
|
export default ActionSheetListViewContent;
|
|
56
67
|
//# sourceMappingURL=ActionSheetListViewContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useLayoutEffect","useActionSheetInternalContext","List","ActionSheetContentGesture","jsx","_jsx","ActionSheetListViewContent","t0","$","_c","listProps","contentAnimatedRefObj","setContentHeight","t1","contentHeight","current","getChildContainerDimensions","height","t2","t3","
|
|
1
|
+
{"version":3,"names":["useLayoutEffect","useActionSheetInternalContext","List","ActionSheetContentGesture","jsx","_jsx","ActionSheetListViewContent","t0","$","_c","listProps","contentGestureEnabled","contentAnimatedRefObj","setContentHeight","t1","contentHeight","current","getChildContainerDimensions","height","t2","t3","ref","t4","children"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetListViewCont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A,gBAAAjB,IAAA,CAACF,yBAAyB;MAAwBQ,qBAAqB,EAArBA,qBAAqB;MAAAY,QAAA,EACrEH;IAGE,CACuB,CAAC;IAAAZ,CAAA,MAAAG,qBAAA;IAAAH,CAAA,MAAAY,EAAA;IAAAZ,CAAA,MAAAc,EAAA;EAAA;IAAAA,EAAA,GAAAd,CAAA;EAAA;EAAA,OAL5Bc,EAK4B;AAAA,CAE/B;AAED,eAAehB,0BAA0B","ignoreList":[]}
|
|
@@ -14,11 +14,12 @@ import ActionSheetOptionListItem from "./ActionSheetOptionListItem.js";
|
|
|
14
14
|
*/
|
|
15
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
16
|
const ActionSheetOptionList = t0 => {
|
|
17
|
-
const $ = _c(
|
|
17
|
+
const $ = _c(12);
|
|
18
18
|
const {
|
|
19
19
|
options,
|
|
20
20
|
optionListProps,
|
|
21
|
-
optionListItemProps
|
|
21
|
+
optionListItemProps,
|
|
22
|
+
contentGestureEnabled
|
|
22
23
|
} = t0;
|
|
23
24
|
const {
|
|
24
25
|
contentAnimatedRefObj
|
|
@@ -44,16 +45,14 @@ const ActionSheetOptionList = t0 => {
|
|
|
44
45
|
const t2 = contentAnimatedRefObj;
|
|
45
46
|
let t3;
|
|
46
47
|
if ($[3] !== extraData || $[4] !== insetsStyle || $[5] !== optionListProps || $[6] !== options || $[7] !== t2) {
|
|
47
|
-
t3 = /*#__PURE__*/_jsx(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
...optionListProps
|
|
56
|
-
})
|
|
48
|
+
t3 = /*#__PURE__*/_jsx(List, {
|
|
49
|
+
ref: t2,
|
|
50
|
+
data: options,
|
|
51
|
+
Item: ActionSheetOptionListItem,
|
|
52
|
+
keyExtractor: keyExtractor,
|
|
53
|
+
extraData: extraData,
|
|
54
|
+
contentContainerStyle: insetsStyle,
|
|
55
|
+
...optionListProps
|
|
57
56
|
});
|
|
58
57
|
$[3] = extraData;
|
|
59
58
|
$[4] = insetsStyle;
|
|
@@ -64,7 +63,19 @@ const ActionSheetOptionList = t0 => {
|
|
|
64
63
|
} else {
|
|
65
64
|
t3 = $[8];
|
|
66
65
|
}
|
|
67
|
-
|
|
66
|
+
let t4;
|
|
67
|
+
if ($[9] !== contentGestureEnabled || $[10] !== t3) {
|
|
68
|
+
t4 = /*#__PURE__*/_jsx(ActionSheetContentGesture, {
|
|
69
|
+
contentGestureEnabled: contentGestureEnabled,
|
|
70
|
+
children: t3
|
|
71
|
+
});
|
|
72
|
+
$[9] = contentGestureEnabled;
|
|
73
|
+
$[10] = t3;
|
|
74
|
+
$[11] = t4;
|
|
75
|
+
} else {
|
|
76
|
+
t4 = $[11];
|
|
77
|
+
}
|
|
78
|
+
return t4;
|
|
68
79
|
};
|
|
69
80
|
export default ActionSheetOptionList;
|
|
70
81
|
function _temp(t0, index) {
|