@jamadd/react-native-template-ui 0.20.11 → 0.20.13
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/accordion/ThemedAccordion.js +151 -154
- package/lib/module/components/accordion/ThemedAccordion.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +2 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +2 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +2 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/switch/ThemedSwitch.js +29 -24
- package/lib/module/components/switch/ThemedSwitch.js.map +1 -1
- package/lib/module/hooks/overlay.js +119 -110
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/module/hooks/switch.js +53 -51
- package/lib/module/hooks/switch.js.map +1 -1
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetListView.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetOptions.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/switch/ThemedSwitch.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +3 -3
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
- package/lib/typescript/src/hooks/switch.d.ts +1 -1
- package/lib/typescript/src/hooks/switch.d.ts.map +1 -1
- package/lib/typescript/src/types/overlay.d.ts +2 -1
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/types/switch.d.ts +2 -0
- package/lib/typescript/src/types/switch.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -21,7 +21,7 @@ import AnimatedThemedView from "../view/AnimatedThemedView.js";
|
|
|
21
21
|
*/
|
|
22
22
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
23
|
const ThemedSwitch = t0 => {
|
|
24
|
-
const $ = _c(
|
|
24
|
+
const $ = _c(22);
|
|
25
25
|
let customColors;
|
|
26
26
|
let customDisableAnimation;
|
|
27
27
|
let customEnableAnimation;
|
|
@@ -31,12 +31,14 @@ const ThemedSwitch = t0 => {
|
|
|
31
31
|
let props;
|
|
32
32
|
let style;
|
|
33
33
|
let t1;
|
|
34
|
+
let t2;
|
|
34
35
|
let thumbProps;
|
|
35
36
|
if ($[0] !== t0) {
|
|
36
37
|
({
|
|
37
38
|
onPress,
|
|
38
39
|
enabled,
|
|
39
40
|
size: t1,
|
|
41
|
+
animated: t2,
|
|
40
42
|
onPressDelayConfig,
|
|
41
43
|
customEnableAnimation,
|
|
42
44
|
customDisableAnimation,
|
|
@@ -55,7 +57,8 @@ const ThemedSwitch = t0 => {
|
|
|
55
57
|
$[7] = props;
|
|
56
58
|
$[8] = style;
|
|
57
59
|
$[9] = t1;
|
|
58
|
-
$[10] =
|
|
60
|
+
$[10] = t2;
|
|
61
|
+
$[11] = thumbProps;
|
|
59
62
|
} else {
|
|
60
63
|
customColors = $[1];
|
|
61
64
|
customDisableAnimation = $[2];
|
|
@@ -66,49 +69,51 @@ const ThemedSwitch = t0 => {
|
|
|
66
69
|
props = $[7];
|
|
67
70
|
style = $[8];
|
|
68
71
|
t1 = $[9];
|
|
69
|
-
|
|
72
|
+
t2 = $[10];
|
|
73
|
+
thumbProps = $[11];
|
|
70
74
|
}
|
|
71
75
|
const size = t1 === undefined ? SwitchSize.M : t1;
|
|
76
|
+
const animated = t2 === undefined ? true : t2;
|
|
72
77
|
const {
|
|
73
78
|
toggleSwitch,
|
|
74
79
|
trackAnimatedStyle,
|
|
75
80
|
thumbAnimatedStyle
|
|
76
|
-
} = useThemedSwitch(onPress, enabled, size, onPressDelayConfig, customEnableAnimation, customDisableAnimation, customColors);
|
|
77
|
-
let
|
|
78
|
-
if ($[
|
|
79
|
-
|
|
81
|
+
} = useThemedSwitch(onPress, enabled, size, animated, onPressDelayConfig, customEnableAnimation, customDisableAnimation, customColors);
|
|
82
|
+
let t3;
|
|
83
|
+
if ($[12] !== size || $[13] !== thumbAnimatedStyle || $[14] !== thumbProps) {
|
|
84
|
+
t3 = /*#__PURE__*/_jsx(AnimatedThemedView, {
|
|
80
85
|
width: size,
|
|
81
86
|
aspectRatio: 1,
|
|
82
87
|
animatedStyle: thumbAnimatedStyle,
|
|
83
88
|
...thumbProps
|
|
84
89
|
});
|
|
85
|
-
$[
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
90
|
+
$[12] = size;
|
|
91
|
+
$[13] = thumbAnimatedStyle;
|
|
92
|
+
$[14] = thumbProps;
|
|
93
|
+
$[15] = t3;
|
|
89
94
|
} else {
|
|
90
|
-
|
|
95
|
+
t3 = $[15];
|
|
91
96
|
}
|
|
92
|
-
let
|
|
93
|
-
if ($[
|
|
94
|
-
|
|
97
|
+
let t4;
|
|
98
|
+
if ($[16] !== props || $[17] !== style || $[18] !== t3 || $[19] !== toggleSwitch || $[20] !== trackAnimatedStyle) {
|
|
99
|
+
t4 = /*#__PURE__*/_jsx(AnimatedThemedPressable, {
|
|
95
100
|
onPress: toggleSwitch,
|
|
96
101
|
style: style,
|
|
97
102
|
animatedStyle: trackAnimatedStyle,
|
|
98
103
|
role: "switch",
|
|
99
104
|
...props,
|
|
100
|
-
children:
|
|
105
|
+
children: t3
|
|
101
106
|
});
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
107
|
+
$[16] = props;
|
|
108
|
+
$[17] = style;
|
|
109
|
+
$[18] = t3;
|
|
110
|
+
$[19] = toggleSwitch;
|
|
111
|
+
$[20] = trackAnimatedStyle;
|
|
112
|
+
$[21] = t4;
|
|
108
113
|
} else {
|
|
109
|
-
|
|
114
|
+
t4 = $[21];
|
|
110
115
|
}
|
|
111
|
-
return
|
|
116
|
+
return t4;
|
|
112
117
|
};
|
|
113
118
|
export default ThemedSwitch;
|
|
114
119
|
//# sourceMappingURL=ThemedSwitch.js.map
|
|
@@ -1 +1 @@
|
|
|
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","
|
|
1
|
+
{"version":3,"names":["useThemedSwitch","SwitchSize","AnimatedThemedPressable","AnimatedThemedView","jsx","_jsx","ThemedSwitch","t0","$","_c","customColors","customDisableAnimation","customEnableAnimation","enabled","onPress","onPressDelayConfig","props","style","t1","t2","thumbProps","size","animated","undefined","M","toggleSwitch","trackAnimatedStyle","thumbAnimatedStyle","t3","aspectRatio","t4","role","children"],"sourceRoot":"../../../../src","sources":["components/switch/ThemedSwitch.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -32,8 +32,8 @@ export function useActionSheetContext() {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
35
|
-
function useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, t0) {
|
|
36
|
-
const $ = _c(
|
|
35
|
+
function useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, animated, t0) {
|
|
36
|
+
const $ = _c(28);
|
|
37
37
|
const visible = t0 === undefined ? true : t0;
|
|
38
38
|
const windowHeight = useWindowDimensionsHeight();
|
|
39
39
|
const headerViewRef = useViewRef();
|
|
@@ -58,7 +58,7 @@ function useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, t0) {
|
|
|
58
58
|
}
|
|
59
59
|
useLayoutEffect(t1, t2);
|
|
60
60
|
let t3;
|
|
61
|
-
if ($[3] !== actionSheetVisible || $[4] !==
|
|
61
|
+
if ($[3] !== actionSheetVisible || $[4] !== animated || $[5] !== expandable || $[6] !== expandableHeightSharedVal || $[7] !== expandableOnSnapToHeight || $[8] !== height || $[9] !== heightSharedVal || $[10] !== maxHeight || $[11] !== translateYSharedVal || $[12] !== windowHeight) {
|
|
62
62
|
t3 = () => {
|
|
63
63
|
if (actionSheetVisible && height && translateYSharedVal.get() === windowHeight) {
|
|
64
64
|
const tempHeight = expandable ? getActionSheetExpandableInitialHeight(maxHeight) : height;
|
|
@@ -66,48 +66,49 @@ function useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, t0) {
|
|
|
66
66
|
expandableHeightSharedVal.set(tempHeight);
|
|
67
67
|
translateYSharedVal.set(expandable ? tempHeight : height);
|
|
68
68
|
updateSharedValWithTiming(translateYSharedVal, 0, {
|
|
69
|
-
duration: actionSheetOpenDuration
|
|
69
|
+
duration: animated ? actionSheetOpenDuration : 0
|
|
70
70
|
});
|
|
71
71
|
expandableOnSnapToHeight?.(tempHeight);
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
74
|
$[3] = actionSheetVisible;
|
|
75
|
-
$[4] =
|
|
76
|
-
$[5] =
|
|
77
|
-
$[6] =
|
|
78
|
-
$[7] =
|
|
79
|
-
$[8] =
|
|
80
|
-
$[9] =
|
|
81
|
-
$[10] =
|
|
82
|
-
$[11] =
|
|
83
|
-
$[12] =
|
|
75
|
+
$[4] = animated;
|
|
76
|
+
$[5] = expandable;
|
|
77
|
+
$[6] = expandableHeightSharedVal;
|
|
78
|
+
$[7] = expandableOnSnapToHeight;
|
|
79
|
+
$[8] = height;
|
|
80
|
+
$[9] = heightSharedVal;
|
|
81
|
+
$[10] = maxHeight;
|
|
82
|
+
$[11] = translateYSharedVal;
|
|
83
|
+
$[12] = windowHeight;
|
|
84
|
+
$[13] = t3;
|
|
84
85
|
} else {
|
|
85
|
-
t3 = $[
|
|
86
|
+
t3 = $[13];
|
|
86
87
|
}
|
|
87
88
|
let t4;
|
|
88
|
-
if ($[
|
|
89
|
+
if ($[14] !== actionSheetVisible || $[15] !== height) {
|
|
89
90
|
t4 = [actionSheetVisible, height];
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
91
|
+
$[14] = actionSheetVisible;
|
|
92
|
+
$[15] = height;
|
|
93
|
+
$[16] = t4;
|
|
93
94
|
} else {
|
|
94
|
-
t4 = $[
|
|
95
|
+
t4 = $[16];
|
|
95
96
|
}
|
|
96
97
|
useEffect(t3, t4);
|
|
97
98
|
let t5;
|
|
98
|
-
if ($[
|
|
99
|
+
if ($[17] !== expandable || $[18] !== maxHeight) {
|
|
99
100
|
t5 = tempHeight_0 => {
|
|
100
101
|
setHeight(expandable ? getActionSheetExpandableHeight(maxHeight) : getActionSheetHeight(tempHeight_0, maxHeight));
|
|
101
102
|
};
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
103
|
+
$[17] = expandable;
|
|
104
|
+
$[18] = maxHeight;
|
|
105
|
+
$[19] = t5;
|
|
105
106
|
} else {
|
|
106
|
-
t5 = $[
|
|
107
|
+
t5 = $[19];
|
|
107
108
|
}
|
|
108
109
|
const updateHeight = t5;
|
|
109
110
|
let t6;
|
|
110
|
-
if ($[
|
|
111
|
+
if ($[20] !== actionSheetVisible || $[21] !== expandableHeightSharedVal || $[22] !== headerViewRef || $[23] !== height || $[24] !== heightSharedVal || $[25] !== translateYSharedVal || $[26] !== updateHeight) {
|
|
111
112
|
t6 = {
|
|
112
113
|
headerViewRef,
|
|
113
114
|
actionSheetVisible,
|
|
@@ -117,23 +118,23 @@ function useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, t0) {
|
|
|
117
118
|
expandableHeightSharedVal,
|
|
118
119
|
updateHeight
|
|
119
120
|
};
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
$[
|
|
126
|
-
$[
|
|
127
|
-
$[
|
|
121
|
+
$[20] = actionSheetVisible;
|
|
122
|
+
$[21] = expandableHeightSharedVal;
|
|
123
|
+
$[22] = headerViewRef;
|
|
124
|
+
$[23] = height;
|
|
125
|
+
$[24] = heightSharedVal;
|
|
126
|
+
$[25] = translateYSharedVal;
|
|
127
|
+
$[26] = updateHeight;
|
|
128
|
+
$[27] = t6;
|
|
128
129
|
} else {
|
|
129
|
-
t6 = $[
|
|
130
|
+
t6 = $[27];
|
|
130
131
|
}
|
|
131
132
|
return t6;
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
/** @internal */
|
|
135
136
|
export function useActionSheetOnDismiss(t0) {
|
|
136
|
-
const $ = _c(
|
|
137
|
+
const $ = _c(14);
|
|
137
138
|
const force = t0 === undefined ? true : t0;
|
|
138
139
|
const windowHeight = useWindowDimensionsHeight();
|
|
139
140
|
const {
|
|
@@ -142,6 +143,7 @@ export function useActionSheetOnDismiss(t0) {
|
|
|
142
143
|
expandableOnSnapToHeight,
|
|
143
144
|
onDismiss,
|
|
144
145
|
maxHeight,
|
|
146
|
+
animated,
|
|
145
147
|
dismissible,
|
|
146
148
|
height,
|
|
147
149
|
translateYSharedVal,
|
|
@@ -149,7 +151,7 @@ export function useActionSheetOnDismiss(t0) {
|
|
|
149
151
|
expandableHeightSharedVal
|
|
150
152
|
} = useActionSheetInternalContext();
|
|
151
153
|
let t1;
|
|
152
|
-
if ($[0] !==
|
|
154
|
+
if ($[0] !== animated || $[1] !== dismissible || $[2] !== expandable || $[3] !== expandableHeightSharedVal || $[4] !== expandableOnSnapToHeight || $[5] !== force || $[6] !== height || $[7] !== heightSharedVal || $[8] !== maxHeight || $[9] !== onDismiss || $[10] !== title || $[11] !== translateYSharedVal || $[12] !== windowHeight) {
|
|
153
155
|
t1 = t2 => {
|
|
154
156
|
const text = t2 === undefined ? overlayDismissResultDefaultText : t2;
|
|
155
157
|
if (!height || !heightSharedVal || !translateYSharedVal) {
|
|
@@ -159,7 +161,7 @@ export function useActionSheetOnDismiss(t0) {
|
|
|
159
161
|
const toVal = expandable ? getActionSheetExpandableSnapHeight(heightSharedVal.get(), force, maxHeight, dismissible) : getActionSheetSnapHeight(height, translateYSharedVal?.get() ?? windowHeight, force, dismissible);
|
|
160
162
|
const dismissActionSheet = toVal === (expandable ? 0 : height);
|
|
161
163
|
const animationConfig = {
|
|
162
|
-
duration: dismissActionSheet ? actionSheetDismissDuration : actionSheetSnapDuration
|
|
164
|
+
duration: animated ? dismissActionSheet ? actionSheetDismissDuration : actionSheetSnapDuration : 0
|
|
163
165
|
};
|
|
164
166
|
const cb = () => {
|
|
165
167
|
if (!dismissActionSheet) {
|
|
@@ -179,21 +181,22 @@ export function useActionSheetOnDismiss(t0) {
|
|
|
179
181
|
updateSharedValWithTiming(tempTranslateYSharedVal, dismissActionSheet ? windowHeight : toVal, animationConfig, cb);
|
|
180
182
|
}
|
|
181
183
|
};
|
|
182
|
-
$[0] =
|
|
183
|
-
$[1] =
|
|
184
|
-
$[2] =
|
|
185
|
-
$[3] =
|
|
186
|
-
$[4] =
|
|
187
|
-
$[5] =
|
|
188
|
-
$[6] =
|
|
189
|
-
$[7] =
|
|
190
|
-
$[8] =
|
|
191
|
-
$[9] =
|
|
192
|
-
$[10] =
|
|
193
|
-
$[11] =
|
|
194
|
-
$[12] =
|
|
184
|
+
$[0] = animated;
|
|
185
|
+
$[1] = dismissible;
|
|
186
|
+
$[2] = expandable;
|
|
187
|
+
$[3] = expandableHeightSharedVal;
|
|
188
|
+
$[4] = expandableOnSnapToHeight;
|
|
189
|
+
$[5] = force;
|
|
190
|
+
$[6] = height;
|
|
191
|
+
$[7] = heightSharedVal;
|
|
192
|
+
$[8] = maxHeight;
|
|
193
|
+
$[9] = onDismiss;
|
|
194
|
+
$[10] = title;
|
|
195
|
+
$[11] = translateYSharedVal;
|
|
196
|
+
$[12] = windowHeight;
|
|
197
|
+
$[13] = t1;
|
|
195
198
|
} else {
|
|
196
|
-
t1 = $[
|
|
199
|
+
t1 = $[13];
|
|
197
200
|
}
|
|
198
201
|
const actionSheetOnDismiss = t1;
|
|
199
202
|
return actionSheetOnDismiss;
|
|
@@ -203,12 +206,12 @@ export function useActionSheetOnDismiss(t0) {
|
|
|
203
206
|
const _worklet_5416991561761_init_data = {
|
|
204
207
|
code: "(function overlayTs1(t3){const{contentGesture,contentOffsetSharedVal,expandable,heightSharedVal,translateYSharedVal}=this.__closure;var _contentOffsetSharedV;const{changeY:changeY}=t3;if(!contentGesture||!((_contentOffsetSharedV=contentOffsetSharedVal)!==null&&_contentOffsetSharedV!==void 0&&_contentOffsetSharedV.get())){if(expandable){var _heightSharedVal;(_heightSharedVal=heightSharedVal)===null||_heightSharedVal===void 0||_heightSharedVal.set(heightSharedVal.get()-changeY);}else{var _translateYSharedVal;(_translateYSharedVal=translateYSharedVal)===null||_translateYSharedVal===void 0||_translateYSharedVal.set(Math.max(translateYSharedVal.get()+changeY,0));}}})",
|
|
205
208
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts",
|
|
206
|
-
sourceMap: "{\"version\":3,\"names\":[\"overlayTs1\",\"t3\",\"contentGesture\",\"contentOffsetSharedVal\",\"expandable\",\"heightSharedVal\",\"translateYSharedVal\",\"__closure\",\"_contentOffsetSharedV\",\"changeY\",\"get\",\"_heightSharedVal\",\"set\",\"_translateYSharedVal\",\"Math\",\"max\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts\"],\"mappings\":\"
|
|
209
|
+
sourceMap: "{\"version\":3,\"names\":[\"overlayTs1\",\"t3\",\"contentGesture\",\"contentOffsetSharedVal\",\"expandable\",\"heightSharedVal\",\"translateYSharedVal\",\"__closure\",\"_contentOffsetSharedV\",\"changeY\",\"get\",\"_heightSharedVal\",\"set\",\"_translateYSharedVal\",\"Math\",\"max\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts\"],\"mappings\":\"AA4Nc,SAAAA,WAAAC,EAAA,QAAAC,cAAA,CAAAC,sBAAA,CAAAC,UAAA,CAAAC,eAAA,CAAAC,mBAAA,OAAAC,SAAA,KAAAC,qBAAA,C,MAAAC,OAAA,CAAAA,OAAC,EAAAR,EAAA,C,GAAA,CAAAC,cAAA,KAAAM,qBAAA,CAAAL,sBAAA,UAAAK,qBAAA,WAAAA,qBAAA,CAAAE,GAAA,QAAWN,UAAA,EAChB,GAAC,CAAAO,gBAAD,CACF,CAAAA,gBAAc,CAAAN,eAAA,UAAAM,gBAAA,WAAAA,gBAAA,CAAAC,GAAA,CAAAP,eAAA,CAAAK,GAAA,GAAAD,OAAA,E,KAAA,CACZ,IAAAE,oBAAA,CAAqD,CAAAE,oBAAA,CAAAP,mBAAA,UAAAO,oBAAA,WAAAA,oBAAA,CAAAD,GAAA,CAAAE,IAAA,CAAAC,GAAA,CAAAT,mBAAA,CAAAI,GAAA,GAAAD,OAAA,K\",\"ignoreList\":[]}"
|
|
207
210
|
};
|
|
208
211
|
const _worklet_17392794818438_init_data = {
|
|
209
212
|
code: "(function overlayTs2(){const{scheduleOnRN,onDismiss}=this.__closure;scheduleOnRN(onDismiss);})",
|
|
210
213
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts",
|
|
211
|
-
sourceMap: "{\"version\":3,\"names\":[\"overlayTs2\",\"scheduleOnRN\",\"onDismiss\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts\"],\"mappings\":\"
|
|
214
|
+
sourceMap: "{\"version\":3,\"names\":[\"overlayTs2\",\"scheduleOnRN\",\"onDismiss\",\"__closure\"],\"sources\":[\"/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts\"],\"mappings\":\"AAuOkB,SAAAA,WAAA,QAAAC,YAAA,CAAAC,SAAA,OAAAC,SAAA,CAAAF,YAAA,CAAAC,SAAA,E\",\"ignoreList\":[]}"
|
|
212
215
|
};
|
|
213
216
|
export function useActionSheetGesture(t0) {
|
|
214
217
|
const $ = _c(15);
|
|
@@ -411,8 +414,8 @@ export function useActionSheetScrollViewRefAndOffset(refObj) {
|
|
|
411
414
|
}
|
|
412
415
|
|
|
413
416
|
/** @internal */
|
|
414
|
-
export function useActionSheetOpts(title, expandable, expandableOnSnapToHeight, options, optionListProps, onDismiss, maxHeight, dismissible, visible) {
|
|
415
|
-
const $ = _c(
|
|
417
|
+
export function useActionSheetOpts(title, expandable, expandableOnSnapToHeight, options, optionListProps, onDismiss, maxHeight, animated, dismissible, visible) {
|
|
418
|
+
const $ = _c(25);
|
|
416
419
|
const {
|
|
417
420
|
headerViewRef,
|
|
418
421
|
actionSheetVisible,
|
|
@@ -421,7 +424,7 @@ export function useActionSheetOpts(title, expandable, expandableOnSnapToHeight,
|
|
|
421
424
|
heightSharedVal,
|
|
422
425
|
expandableHeightSharedVal,
|
|
423
426
|
updateHeight
|
|
424
|
-
} = useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, visible);
|
|
427
|
+
} = useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, animated, visible);
|
|
425
428
|
const {
|
|
426
429
|
listViewListAnimatedRefObj,
|
|
427
430
|
contentOffsetSharedVal
|
|
@@ -461,13 +464,14 @@ export function useActionSheetOpts(title, expandable, expandableOnSnapToHeight,
|
|
|
461
464
|
}
|
|
462
465
|
useLayoutEffect(t0, t1);
|
|
463
466
|
let t2;
|
|
464
|
-
if ($[9] !== actionSheetVisible || $[10] !==
|
|
467
|
+
if ($[9] !== actionSheetVisible || $[10] !== animated || $[11] !== contentOffsetSharedVal || $[12] !== dismissible || $[13] !== expandable || $[14] !== expandableHeightSharedVal || $[15] !== expandableOnSnapToHeight || $[16] !== headerViewRef || $[17] !== height || $[18] !== heightSharedVal || $[19] !== listViewListAnimatedRefObj || $[20] !== maxHeight || $[21] !== onDismiss || $[22] !== title || $[23] !== translateYSharedVal) {
|
|
465
468
|
t2 = {
|
|
466
469
|
title,
|
|
467
470
|
expandable,
|
|
468
471
|
expandableOnSnapToHeight,
|
|
469
472
|
onDismiss,
|
|
470
473
|
maxHeight,
|
|
474
|
+
animated,
|
|
471
475
|
dismissible,
|
|
472
476
|
headerViewRef,
|
|
473
477
|
contentAnimatedRefObj: listViewListAnimatedRefObj,
|
|
@@ -479,22 +483,23 @@ export function useActionSheetOpts(title, expandable, expandableOnSnapToHeight,
|
|
|
479
483
|
contentOffsetSharedVal
|
|
480
484
|
};
|
|
481
485
|
$[9] = actionSheetVisible;
|
|
482
|
-
$[10] =
|
|
483
|
-
$[11] =
|
|
484
|
-
$[12] =
|
|
485
|
-
$[13] =
|
|
486
|
-
$[14] =
|
|
487
|
-
$[15] =
|
|
488
|
-
$[16] =
|
|
489
|
-
$[17] =
|
|
490
|
-
$[18] =
|
|
491
|
-
$[19] =
|
|
492
|
-
$[20] =
|
|
493
|
-
$[21] =
|
|
494
|
-
$[22] =
|
|
495
|
-
$[23] =
|
|
486
|
+
$[10] = animated;
|
|
487
|
+
$[11] = contentOffsetSharedVal;
|
|
488
|
+
$[12] = dismissible;
|
|
489
|
+
$[13] = expandable;
|
|
490
|
+
$[14] = expandableHeightSharedVal;
|
|
491
|
+
$[15] = expandableOnSnapToHeight;
|
|
492
|
+
$[16] = headerViewRef;
|
|
493
|
+
$[17] = height;
|
|
494
|
+
$[18] = heightSharedVal;
|
|
495
|
+
$[19] = listViewListAnimatedRefObj;
|
|
496
|
+
$[20] = maxHeight;
|
|
497
|
+
$[21] = onDismiss;
|
|
498
|
+
$[22] = title;
|
|
499
|
+
$[23] = translateYSharedVal;
|
|
500
|
+
$[24] = t2;
|
|
496
501
|
} else {
|
|
497
|
-
t2 = $[
|
|
502
|
+
t2 = $[24];
|
|
498
503
|
}
|
|
499
504
|
return t2;
|
|
500
505
|
}
|
|
@@ -573,8 +578,8 @@ export function useActionSheetOptItemSize(t0) {
|
|
|
573
578
|
}
|
|
574
579
|
|
|
575
580
|
/** @internal */
|
|
576
|
-
export function useActionSheetScrollView(title, expandable, expandableOnSnapToHeight, scrollViewProps, onDismiss, maxHeight, dismissible, visible) {
|
|
577
|
-
const $ = _c(
|
|
581
|
+
export function useActionSheetScrollView(title, expandable, expandableOnSnapToHeight, scrollViewProps, onDismiss, maxHeight, animated, dismissible, visible) {
|
|
582
|
+
const $ = _c(28);
|
|
578
583
|
const {
|
|
579
584
|
headerViewRef,
|
|
580
585
|
actionSheetVisible,
|
|
@@ -583,7 +588,7 @@ export function useActionSheetScrollView(title, expandable, expandableOnSnapToHe
|
|
|
583
588
|
heightSharedVal,
|
|
584
589
|
expandableHeightSharedVal,
|
|
585
590
|
updateHeight
|
|
586
|
-
} = useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, visible);
|
|
591
|
+
} = useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, animated, visible);
|
|
587
592
|
const {
|
|
588
593
|
scrollViewAnimatedRefObj,
|
|
589
594
|
contentOffsetSharedVal
|
|
@@ -640,13 +645,14 @@ export function useActionSheetScrollView(title, expandable, expandableOnSnapToHe
|
|
|
640
645
|
}
|
|
641
646
|
useEffect(t2, t3);
|
|
642
647
|
let t4;
|
|
643
|
-
if ($[12] !== actionSheetVisible || $[13] !==
|
|
648
|
+
if ($[12] !== actionSheetVisible || $[13] !== animated || $[14] !== contentOffsetSharedVal || $[15] !== dismissible || $[16] !== expandable || $[17] !== expandableHeightSharedVal || $[18] !== expandableOnSnapToHeight || $[19] !== headerViewRef || $[20] !== height || $[21] !== heightSharedVal || $[22] !== maxHeight || $[23] !== onDismiss || $[24] !== scrollViewAnimatedRefObj || $[25] !== title || $[26] !== translateYSharedVal) {
|
|
644
649
|
t4 = {
|
|
645
650
|
title,
|
|
646
651
|
expandable,
|
|
647
652
|
expandableOnSnapToHeight,
|
|
648
653
|
onDismiss,
|
|
649
654
|
maxHeight,
|
|
655
|
+
animated,
|
|
650
656
|
dismissible,
|
|
651
657
|
headerViewRef,
|
|
652
658
|
contentAnimatedRefObj: scrollViewAnimatedRefObj,
|
|
@@ -659,29 +665,30 @@ export function useActionSheetScrollView(title, expandable, expandableOnSnapToHe
|
|
|
659
665
|
contentOffsetSharedVal
|
|
660
666
|
};
|
|
661
667
|
$[12] = actionSheetVisible;
|
|
662
|
-
$[13] =
|
|
663
|
-
$[14] =
|
|
664
|
-
$[15] =
|
|
665
|
-
$[16] =
|
|
666
|
-
$[17] =
|
|
667
|
-
$[18] =
|
|
668
|
-
$[19] =
|
|
669
|
-
$[20] =
|
|
670
|
-
$[21] =
|
|
671
|
-
$[22] =
|
|
672
|
-
$[23] =
|
|
673
|
-
$[24] =
|
|
674
|
-
$[25] =
|
|
675
|
-
$[26] =
|
|
668
|
+
$[13] = animated;
|
|
669
|
+
$[14] = contentOffsetSharedVal;
|
|
670
|
+
$[15] = dismissible;
|
|
671
|
+
$[16] = expandable;
|
|
672
|
+
$[17] = expandableHeightSharedVal;
|
|
673
|
+
$[18] = expandableOnSnapToHeight;
|
|
674
|
+
$[19] = headerViewRef;
|
|
675
|
+
$[20] = height;
|
|
676
|
+
$[21] = heightSharedVal;
|
|
677
|
+
$[22] = maxHeight;
|
|
678
|
+
$[23] = onDismiss;
|
|
679
|
+
$[24] = scrollViewAnimatedRefObj;
|
|
680
|
+
$[25] = title;
|
|
681
|
+
$[26] = translateYSharedVal;
|
|
682
|
+
$[27] = t4;
|
|
676
683
|
} else {
|
|
677
|
-
t4 = $[
|
|
684
|
+
t4 = $[27];
|
|
678
685
|
}
|
|
679
686
|
return t4;
|
|
680
687
|
}
|
|
681
688
|
|
|
682
689
|
/** @internal */
|
|
683
|
-
export function useActionSheetListView(title, expandable, expandableOnSnapToHeight, listProps, onDismiss, maxHeight, dismissible, visible) {
|
|
684
|
-
const $ = _c(
|
|
690
|
+
export function useActionSheetListView(title, expandable, expandableOnSnapToHeight, listProps, onDismiss, maxHeight, animated, dismissible, visible) {
|
|
691
|
+
const $ = _c(28);
|
|
685
692
|
const {
|
|
686
693
|
headerViewRef,
|
|
687
694
|
actionSheetVisible,
|
|
@@ -690,7 +697,7 @@ export function useActionSheetListView(title, expandable, expandableOnSnapToHeig
|
|
|
690
697
|
heightSharedVal,
|
|
691
698
|
expandableHeightSharedVal,
|
|
692
699
|
updateHeight
|
|
693
|
-
} = useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, visible);
|
|
700
|
+
} = useActionSheet(expandable, expandableOnSnapToHeight, maxHeight, animated, visible);
|
|
694
701
|
const {
|
|
695
702
|
listViewListAnimatedRefObj,
|
|
696
703
|
contentOffsetSharedVal
|
|
@@ -747,13 +754,14 @@ export function useActionSheetListView(title, expandable, expandableOnSnapToHeig
|
|
|
747
754
|
}
|
|
748
755
|
useEffect(t2, t3);
|
|
749
756
|
let t4;
|
|
750
|
-
if ($[12] !== actionSheetVisible || $[13] !==
|
|
757
|
+
if ($[12] !== actionSheetVisible || $[13] !== animated || $[14] !== contentOffsetSharedVal || $[15] !== dismissible || $[16] !== expandable || $[17] !== expandableHeightSharedVal || $[18] !== expandableOnSnapToHeight || $[19] !== headerViewRef || $[20] !== height || $[21] !== heightSharedVal || $[22] !== listViewListAnimatedRefObj || $[23] !== maxHeight || $[24] !== onDismiss || $[25] !== title || $[26] !== translateYSharedVal) {
|
|
751
758
|
t4 = {
|
|
752
759
|
title,
|
|
753
760
|
expandable,
|
|
754
761
|
expandableOnSnapToHeight,
|
|
755
762
|
onDismiss,
|
|
756
763
|
maxHeight,
|
|
764
|
+
animated,
|
|
757
765
|
dismissible,
|
|
758
766
|
headerViewRef,
|
|
759
767
|
contentAnimatedRefObj: listViewListAnimatedRefObj,
|
|
@@ -766,22 +774,23 @@ export function useActionSheetListView(title, expandable, expandableOnSnapToHeig
|
|
|
766
774
|
contentOffsetSharedVal
|
|
767
775
|
};
|
|
768
776
|
$[12] = actionSheetVisible;
|
|
769
|
-
$[13] =
|
|
770
|
-
$[14] =
|
|
771
|
-
$[15] =
|
|
772
|
-
$[16] =
|
|
773
|
-
$[17] =
|
|
774
|
-
$[18] =
|
|
775
|
-
$[19] =
|
|
776
|
-
$[20] =
|
|
777
|
-
$[21] =
|
|
778
|
-
$[22] =
|
|
779
|
-
$[23] =
|
|
780
|
-
$[24] =
|
|
781
|
-
$[25] =
|
|
782
|
-
$[26] =
|
|
777
|
+
$[13] = animated;
|
|
778
|
+
$[14] = contentOffsetSharedVal;
|
|
779
|
+
$[15] = dismissible;
|
|
780
|
+
$[16] = expandable;
|
|
781
|
+
$[17] = expandableHeightSharedVal;
|
|
782
|
+
$[18] = expandableOnSnapToHeight;
|
|
783
|
+
$[19] = headerViewRef;
|
|
784
|
+
$[20] = height;
|
|
785
|
+
$[21] = heightSharedVal;
|
|
786
|
+
$[22] = listViewListAnimatedRefObj;
|
|
787
|
+
$[23] = maxHeight;
|
|
788
|
+
$[24] = onDismiss;
|
|
789
|
+
$[25] = title;
|
|
790
|
+
$[26] = translateYSharedVal;
|
|
791
|
+
$[27] = t4;
|
|
783
792
|
} else {
|
|
784
|
-
t4 = $[
|
|
793
|
+
t4 = $[27];
|
|
785
794
|
}
|
|
786
795
|
return t4;
|
|
787
796
|
}
|