@jamadd/react-native-template-ui 0.20.6 → 0.20.8
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 +20 -25
- package/lib/module/components/accordion/ThemedAccordion.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js +36 -32
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +52 -41
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +54 -43
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +53 -42
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js +2 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetWrap.js.map +1 -1
- package/lib/module/hooks/overlay.js +127 -134
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/typescript/src/components/accordion/ThemedAccordion.d.ts.map +1 -1
- package/lib/typescript/src/components/overlay/actionSheet/ActionSheetHeader.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/overlay/actionSheet/ActionSheetWrap.d.ts.map +1 -1
- package/lib/typescript/src/hooks/overlay.d.ts +7 -6
- package/lib/typescript/src/hooks/overlay.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
/** @internal */
|
|
5
|
-
import { useActionSheetScrollView
|
|
5
|
+
import { useActionSheetScrollView } from "../../../hooks/overlay.js";
|
|
6
6
|
import { ActionSheetInternalContext } from "../../../utils/overlay/const.js";
|
|
7
7
|
import ActionSheetHeader from "./ActionSheetHeader.js";
|
|
8
8
|
import ActionSheetScrollViewContent from "./ActionSheetScrollViewContent.js";
|
|
@@ -15,7 +15,7 @@ import ActionSheetWrap from "./ActionSheetWrap.js";
|
|
|
15
15
|
*/
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
const ActionSheetScrollView = t0 => {
|
|
18
|
-
const $ = _c(
|
|
18
|
+
const $ = _c(21);
|
|
19
19
|
const {
|
|
20
20
|
title,
|
|
21
21
|
expandable,
|
|
@@ -33,70 +33,81 @@ const ActionSheetScrollView = t0 => {
|
|
|
33
33
|
headerChildren,
|
|
34
34
|
visible
|
|
35
35
|
} = t0;
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
const t1 = useActionSheetScrollView(title, expandable, scrollViewProps, onDismiss, maxHeight, dismissible, visible);
|
|
37
|
+
let actionSheetInternalContextVal;
|
|
38
|
+
let actionSheetVisible;
|
|
39
|
+
if ($[0] !== t1) {
|
|
40
|
+
({
|
|
41
|
+
actionSheetVisible,
|
|
42
|
+
...actionSheetInternalContextVal
|
|
43
|
+
} = t1);
|
|
44
|
+
$[0] = t1;
|
|
45
|
+
$[1] = actionSheetInternalContextVal;
|
|
46
|
+
$[2] = actionSheetVisible;
|
|
47
|
+
} else {
|
|
48
|
+
actionSheetInternalContextVal = $[1];
|
|
49
|
+
actionSheetVisible = $[2];
|
|
50
|
+
}
|
|
51
|
+
let t2;
|
|
52
|
+
if ($[3] !== headerChildren || $[4] !== headerIconButtonProps || $[5] !== headerShowDismissIcon || $[6] !== headerTextProps || $[7] !== headerWrapProps) {
|
|
53
|
+
t2 = /*#__PURE__*/_jsx(ActionSheetHeader, {
|
|
43
54
|
headerShowDismissIcon: headerShowDismissIcon,
|
|
44
55
|
headerWrapProps: headerWrapProps,
|
|
45
56
|
headerTextProps: headerTextProps,
|
|
46
57
|
headerIconButtonProps: headerIconButtonProps,
|
|
47
58
|
headerChildren: headerChildren
|
|
48
59
|
});
|
|
49
|
-
$[
|
|
50
|
-
$[
|
|
51
|
-
$[
|
|
52
|
-
$[
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
60
|
+
$[3] = headerChildren;
|
|
61
|
+
$[4] = headerIconButtonProps;
|
|
62
|
+
$[5] = headerShowDismissIcon;
|
|
63
|
+
$[6] = headerTextProps;
|
|
64
|
+
$[7] = headerWrapProps;
|
|
65
|
+
$[8] = t2;
|
|
55
66
|
} else {
|
|
56
|
-
|
|
67
|
+
t2 = $[8];
|
|
57
68
|
}
|
|
58
|
-
let
|
|
59
|
-
if ($[
|
|
60
|
-
|
|
69
|
+
let t3;
|
|
70
|
+
if ($[9] !== children || $[10] !== scrollViewProps) {
|
|
71
|
+
t3 = /*#__PURE__*/_jsx(ActionSheetScrollViewContent, {
|
|
61
72
|
scrollViewProps: scrollViewProps,
|
|
62
73
|
children: children
|
|
63
74
|
});
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
-
$[
|
|
75
|
+
$[9] = children;
|
|
76
|
+
$[10] = scrollViewProps;
|
|
77
|
+
$[11] = t3;
|
|
67
78
|
} else {
|
|
68
|
-
|
|
79
|
+
t3 = $[11];
|
|
69
80
|
}
|
|
70
|
-
let
|
|
71
|
-
if ($[
|
|
72
|
-
|
|
81
|
+
let t4;
|
|
82
|
+
if ($[12] !== actionSheetVisible || $[13] !== t2 || $[14] !== t3 || $[15] !== useModal || $[16] !== wrapViewProps) {
|
|
83
|
+
t4 = /*#__PURE__*/_jsxs(ActionSheetWrap, {
|
|
73
84
|
visible: actionSheetVisible,
|
|
74
85
|
useModal: useModal,
|
|
75
86
|
wrapViewProps: wrapViewProps,
|
|
76
|
-
children: [
|
|
87
|
+
children: [t2, t3]
|
|
77
88
|
});
|
|
78
|
-
$[
|
|
79
|
-
$[
|
|
80
|
-
$[11] = t2;
|
|
81
|
-
$[12] = useModal;
|
|
82
|
-
$[13] = wrapViewProps;
|
|
89
|
+
$[12] = actionSheetVisible;
|
|
90
|
+
$[13] = t2;
|
|
83
91
|
$[14] = t3;
|
|
92
|
+
$[15] = useModal;
|
|
93
|
+
$[16] = wrapViewProps;
|
|
94
|
+
$[17] = t4;
|
|
84
95
|
} else {
|
|
85
|
-
|
|
96
|
+
t4 = $[17];
|
|
86
97
|
}
|
|
87
|
-
let
|
|
88
|
-
if ($[
|
|
89
|
-
|
|
98
|
+
let t5;
|
|
99
|
+
if ($[18] !== actionSheetInternalContextVal || $[19] !== t4) {
|
|
100
|
+
t5 = /*#__PURE__*/_jsx(ActionSheetInternalContext, {
|
|
90
101
|
value: actionSheetInternalContextVal,
|
|
91
|
-
children:
|
|
102
|
+
children: t4
|
|
92
103
|
});
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
104
|
+
$[18] = actionSheetInternalContextVal;
|
|
105
|
+
$[19] = t4;
|
|
106
|
+
$[20] = t5;
|
|
96
107
|
} else {
|
|
97
|
-
|
|
108
|
+
t5 = $[20];
|
|
98
109
|
}
|
|
99
|
-
return
|
|
110
|
+
return t5;
|
|
100
111
|
};
|
|
101
112
|
export default ActionSheetScrollView;
|
|
102
113
|
//# sourceMappingURL=ActionSheetScrollView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useActionSheetScrollView","
|
|
1
|
+
{"version":3,"names":["useActionSheetScrollView","ActionSheetInternalContext","ActionSheetHeader","ActionSheetScrollViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetScrollView","t0","$","_c","title","expandable","scrollViewProps","children","onDismiss","useModal","dismissible","maxHeight","wrapViewProps","headerShowDismissIcon","headerWrapProps","headerTextProps","headerIconButtonProps","headerChildren","visible","t1","actionSheetInternalContextVal","actionSheetVisible","t2","t3","t4","t5"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetScrollView.tsx"],"mappings":";;;AAAA;AAEA,SAASA,wBAAwB,QAAQ,2BAAwB;AAEjE,SAASC,0BAA0B,QAAQ,iCAA8B;AACzE,OAAOC,iBAAiB,MAAM,wBAAqB;AACnD,OAAOC,4BAA4B,MAAM,mCAAgC;AACzE,OAAOC,eAAe,MAAM,sBAAmB;;AAE/C;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAKA,MAAMC,qBAAqD,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,KAAA;IAAAC,UAAA;IAAAC,eAAA;IAAAC,QAAA;IAAAC,SAAA;IAAAC,QAAA;IAAAC,WAAA;IAAAC,SAAA;IAAAC,aAAA;IAAAC,qBAAA;IAAAC,eAAA;IAAAC,eAAA;IAAAC,qBAAA;IAAAC,cAAA;IAAAC;EAAA,IAAAjB,EAgB9D;EAEG,MAAAkB,EAAA,GAAA5B,wBAAwB,CACtBa,KAAK,EACLC,UAAU,EACVC,eAAe,EACfE,SAAS,EACTG,SAAS,EACTD,WAAW,EACXQ,OACF,CAAC;EAAA,IAAAE,6BAAA;EAAA,IAAAC,kBAAA;EAAA,IAAAnB,CAAA,QAAAiB,EAAA;IATH;MAAAE,kBAAA;MAAA,GAAAD;IAAA,IACED,EAQC;IAACjB,CAAA,MAAAiB,EAAA;IAAAjB,CAAA,MAAAkB,6BAAA;IAAAlB,CAAA,MAAAmB,kBAAA;EAAA;IAAAD,6BAAA,GAAAlB,CAAA;IAAAmB,kBAAA,GAAAnB,CAAA;EAAA;EAAA,IAAAoB,EAAA;EAAA,IAAApB,CAAA,QAAAe,cAAA,IAAAf,CAAA,QAAAc,qBAAA,IAAAd,CAAA,QAAAW,qBAAA,IAAAX,CAAA,QAAAa,eAAA,IAAAb,CAAA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OAAAsB,EAAA;EAAA;IAAAA,EAAA,GAAAtB,CAAA;EAAA;EAAA,IAAAuB,EAAA;EAAA,IAAAvB,CAAA,SAAAkB,6BAAA,IAAAlB,CAAA,SAAAsB,EAAA;IAhBpBC,EAAA,gBAAA5B,IAAA,CAACL,0BAA0B;MAAQ4B,KAA6B,EAA7BA,6BAA6B;MAAAb,QAAA,EAC9DiB;IAekB,CACQ,CAAC;IAAAtB,CAAA,OAAAkB,6BAAA;IAAAlB,CAAA,OAAAsB,EAAA;IAAAtB,CAAA,OAAAuB,EAAA;EAAA;IAAAA,EAAA,GAAAvB,CAAA;EAAA;EAAA,OAjB7BuB,EAiB6B;AAAA,CAEhC;AAED,eAAezB,qBAAqB","ignoreList":[]}
|
|
@@ -6,8 +6,8 @@ import { lazy } from 'react';
|
|
|
6
6
|
import { useAnimatedStyle } from 'react-native-reanimated';
|
|
7
7
|
import { useActionSheetInternalContext, useActionSheetOnDismiss } from "../../../hooks/overlay.js";
|
|
8
8
|
import { useShadowStyle } from "../../../hooks/style.js";
|
|
9
|
-
import { isPlatformWeb } from "../../../utils/react/func.js";
|
|
10
9
|
import { getActionSheetMaxHeight } from "../../../utils/overlay/func.js";
|
|
10
|
+
import { isPlatformWeb } from "../../../utils/react/func.js";
|
|
11
11
|
import { ShadowDirection } from "../../../utils/style/const.js";
|
|
12
12
|
import AnimatedThemedView from "../../view/AnimatedThemedView.js";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -154,6 +154,7 @@ const ActionSheetWrap = t0 => {
|
|
|
154
154
|
let t7;
|
|
155
155
|
if ($[8] !== children || $[9] !== innerWrapAnimatedStyle) {
|
|
156
156
|
t7 = /*#__PURE__*/_jsx(AnimatedThemedView, {
|
|
157
|
+
backgroundColor: "transparent",
|
|
157
158
|
animatedStyle: innerWrapAnimatedStyle,
|
|
158
159
|
children: children
|
|
159
160
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["lazy","useAnimatedStyle","useActionSheetInternalContext","useActionSheetOnDismiss","useShadowStyle","
|
|
1
|
+
{"version":3,"names":["lazy","useAnimatedStyle","useActionSheetInternalContext","useActionSheetOnDismiss","useShadowStyle","getActionSheetMaxHeight","isPlatformWeb","ShadowDirection","AnimatedThemedView","jsx","_jsx","ThemedModal","require","default","_worklet_9561733391239_init_data","code","location","sourceMap","_worklet_2474227098834_init_data","ActionSheetWrap","t0","$","_c","useModal","t1","wrapViewProps","children","visible","undefined","expandable","dismissible","translateYSharedVal","heightSharedVal","expandableHeightSharedVal","onDismiss","shadowStyle","Top","outerWrapAnimatedStyle","ActionSheetWrapTsx1Factory","_e","global","Error","ActionSheetWrapTsx1","height","get","transform","translateY","__closure","__workletHash","__pluginVersion","__initData","__stackDetails","innerWrapAnimatedStyle","ActionSheetWrapTsx2Factory","ActionSheetWrapTsx2","t2","Symbol","for","justifyContent","contentWrapProps","t3","onModalDismiss","t4","style","t5","outerWrapStyle","t6","t7","backgroundColor","t8","position","bottom","width","maxHeight","overflow","actionSheet","t9"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetWrap.tsx"],"mappings":";;;AAAA;AAEA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,gBAAgB,QAAQ,yBAAyB;AAC1D,SACEC,6BAA6B,EAC7BC,uBAAuB,QAClB,2BAAwB;AAC/B,SAASC,cAAc,QAAQ,yBAAsB;AAMrD,SAASC,uBAAuB,QAAQ,gCAA6B;AACrE,SAASC,aAAa,QAAQ,8BAA2B;AACzD,SAASC,eAAe,QAAQ,+BAA4B;AAC5D,OAAOC,kBAAkB,MAAM,kCAA+B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/D,IAAIC,WAAiC;AACrC,IAAIL,aAAa,CAAC,CAAC,EAAE;EACnBK,WAAW,gBAAGX,IAAI,CAAC,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAC;AAC1D,CAAC,MAAM;EACLW,WAAW,GAAGC,OAAO,CAAC,sB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,EAAN,MAAM;MACFC,SAAmC,EAAnCP,EAAmC;MACpCQ,QAAQ,EAAR,QAAQ;MAAA,GACdjD,aAAa;MACVwC,KAAc,EAAdA,cAAc;MACN5B,aAAsB,EAAtBA,sBAAsB;MAAAX,QAAA,EAErCyC;IAKqB,CACH,CAAC;IAAA9C,CAAA,OAAAgB,sBAAA;IAAAhB,CAAA,OAAA4C,cAAA;IAAA5C,CAAA,OAAA6C,EAAA;IAAA7C,CAAA,OAAA8C,EAAA;IAAA9C,CAAA,OAAAI,aAAA;IAAAJ,CAAA,OAAAgD,EAAA;EAAA;IAAAA,EAAA,GAAAhD,CAAA;EAAA;EAjBvB,MAAAsD,WAAA,GACEN,EAgBqB;EACrB,IAAAO,EAAA;EAAA,IAAAvD,CAAA,SAAAsD,WAAA,IAAAtD,CAAA,SAAAS,WAAA,IAAAT,CAAA,SAAAwC,cAAA,IAAAxC,CAAA,SAAAE,QAAA,IAAAF,CAAA,SAAAM,OAAA;IAEKiD,EAAA,GAAArD,QAAQ,gBAARb,IAAA,CACJC,WAAW;MACDgB,OAAO,EAAPA,OAAO;MACEgC,gBAAgB,EAAhBA,gBAAgB;MACvBE,SAAc,EAAdA,cAAc;MACZ/B,WAAW,EAAXA,WAAW;MAAAJ,QAAA,EAEvBiD;IAAW,CAIhB,CAAC,GAXMA,WAWN;IAAAtD,CAAA,OAAAsD,WAAA;IAAAtD,CAAA,OAAAS,WAAA;IAAAT,CAAA,OAAAwC,cAAA;IAAAxC,CAAA,OAAAE,QAAA;IAAAF,CAAA,OAAAM,OAAA;IAAAN,CAAA,OAAAuD,EAAA;EAAA;IAAAA,EAAA,GAAAvD,CAAA;EAAA;EAAA,OAXMuD,EAWN;AAAA,CACF;AAED,eAAezD,eAAe","ignoreList":[]}
|
|
@@ -32,17 +32,34 @@ export function useActionSheetContext() {
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
/** @internal */
|
|
35
|
-
function useActionSheet(expandable, maxHeight,
|
|
36
|
-
const $ = _c(
|
|
35
|
+
function useActionSheet(expandable, maxHeight, t0) {
|
|
36
|
+
const $ = _c(26);
|
|
37
|
+
const visible = t0 === undefined ? true : t0;
|
|
37
38
|
const windowHeight = useWindowDimensionsHeight();
|
|
38
39
|
const headerViewRef = useViewRef();
|
|
40
|
+
const [actionSheetVisible, setActionSheetVisible] = useState(visible);
|
|
39
41
|
const [height, setHeight] = useState(0);
|
|
40
42
|
const translateYSharedVal = useSharedValue(windowHeight);
|
|
41
43
|
const heightSharedVal = useSharedValue(0);
|
|
42
44
|
const expandableHeightSharedVal = useSharedValue(0);
|
|
43
|
-
let
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
let t1;
|
|
46
|
+
let t2;
|
|
47
|
+
if ($[0] !== visible) {
|
|
48
|
+
t1 = () => {
|
|
49
|
+
setActionSheetVisible(visible);
|
|
50
|
+
};
|
|
51
|
+
t2 = [visible];
|
|
52
|
+
$[0] = visible;
|
|
53
|
+
$[1] = t1;
|
|
54
|
+
$[2] = t2;
|
|
55
|
+
} else {
|
|
56
|
+
t1 = $[1];
|
|
57
|
+
t2 = $[2];
|
|
58
|
+
}
|
|
59
|
+
useLayoutEffect(t1, t2);
|
|
60
|
+
let t3;
|
|
61
|
+
if ($[3] !== actionSheetVisible || $[4] !== expandable || $[5] !== expandableHeightSharedVal || $[6] !== height || $[7] !== heightSharedVal || $[8] !== maxHeight || $[9] !== translateYSharedVal || $[10] !== windowHeight) {
|
|
62
|
+
t3 = () => {
|
|
46
63
|
if (actionSheetVisible && height && translateYSharedVal.get() === windowHeight) {
|
|
47
64
|
const tempHeight = expandable ? getActionSheetExpandableInitialHeight(maxHeight) : height;
|
|
48
65
|
heightSharedVal.set(tempHeight);
|
|
@@ -53,62 +70,63 @@ function useActionSheet(expandable, maxHeight, actionSheetVisible) {
|
|
|
53
70
|
});
|
|
54
71
|
}
|
|
55
72
|
};
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
73
|
+
$[3] = actionSheetVisible;
|
|
74
|
+
$[4] = expandable;
|
|
75
|
+
$[5] = expandableHeightSharedVal;
|
|
76
|
+
$[6] = height;
|
|
77
|
+
$[7] = heightSharedVal;
|
|
78
|
+
$[8] = maxHeight;
|
|
79
|
+
$[9] = translateYSharedVal;
|
|
80
|
+
$[10] = windowHeight;
|
|
81
|
+
$[11] = t3;
|
|
65
82
|
} else {
|
|
66
|
-
|
|
83
|
+
t3 = $[11];
|
|
67
84
|
}
|
|
68
|
-
let
|
|
69
|
-
if ($[
|
|
70
|
-
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
$[
|
|
85
|
+
let t4;
|
|
86
|
+
if ($[12] !== actionSheetVisible || $[13] !== height) {
|
|
87
|
+
t4 = [actionSheetVisible, height];
|
|
88
|
+
$[12] = actionSheetVisible;
|
|
89
|
+
$[13] = height;
|
|
90
|
+
$[14] = t4;
|
|
74
91
|
} else {
|
|
75
|
-
|
|
92
|
+
t4 = $[14];
|
|
76
93
|
}
|
|
77
|
-
useEffect(
|
|
78
|
-
let
|
|
79
|
-
if ($[
|
|
80
|
-
|
|
94
|
+
useEffect(t3, t4);
|
|
95
|
+
let t5;
|
|
96
|
+
if ($[15] !== expandable || $[16] !== maxHeight) {
|
|
97
|
+
t5 = tempHeight_0 => {
|
|
81
98
|
setHeight(expandable ? getActionSheetExpandableHeight(maxHeight) : getActionSheetHeight(tempHeight_0, maxHeight));
|
|
82
99
|
};
|
|
83
|
-
$[
|
|
84
|
-
$[
|
|
85
|
-
$[
|
|
100
|
+
$[15] = expandable;
|
|
101
|
+
$[16] = maxHeight;
|
|
102
|
+
$[17] = t5;
|
|
86
103
|
} else {
|
|
87
|
-
|
|
104
|
+
t5 = $[17];
|
|
88
105
|
}
|
|
89
|
-
const updateHeight =
|
|
90
|
-
let
|
|
91
|
-
if ($[
|
|
92
|
-
|
|
106
|
+
const updateHeight = t5;
|
|
107
|
+
let t6;
|
|
108
|
+
if ($[18] !== actionSheetVisible || $[19] !== expandableHeightSharedVal || $[20] !== headerViewRef || $[21] !== height || $[22] !== heightSharedVal || $[23] !== translateYSharedVal || $[24] !== updateHeight) {
|
|
109
|
+
t6 = {
|
|
93
110
|
headerViewRef,
|
|
111
|
+
actionSheetVisible,
|
|
94
112
|
height,
|
|
95
113
|
translateYSharedVal,
|
|
96
114
|
heightSharedVal,
|
|
97
115
|
expandableHeightSharedVal,
|
|
98
116
|
updateHeight
|
|
99
117
|
};
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
118
|
+
$[18] = actionSheetVisible;
|
|
119
|
+
$[19] = expandableHeightSharedVal;
|
|
120
|
+
$[20] = headerViewRef;
|
|
121
|
+
$[21] = height;
|
|
122
|
+
$[22] = heightSharedVal;
|
|
123
|
+
$[23] = translateYSharedVal;
|
|
124
|
+
$[24] = updateHeight;
|
|
125
|
+
$[25] = t6;
|
|
107
126
|
} else {
|
|
108
|
-
|
|
127
|
+
t6 = $[25];
|
|
109
128
|
}
|
|
110
|
-
|
|
111
|
-
return actionSheet;
|
|
129
|
+
return t6;
|
|
112
130
|
}
|
|
113
131
|
|
|
114
132
|
/** @internal */
|
|
@@ -180,12 +198,12 @@ export function useActionSheetOnDismiss(t0) {
|
|
|
180
198
|
const _worklet_5416991561761_init_data = {
|
|
181
199
|
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));}}})",
|
|
182
200
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts",
|
|
183
|
-
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\":\"
|
|
201
|
+
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\":\"AAoNc,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\":[]}"
|
|
184
202
|
};
|
|
185
203
|
const _worklet_17392794818438_init_data = {
|
|
186
204
|
code: "(function overlayTs2(){const{scheduleOnRN,onDismiss}=this.__closure;scheduleOnRN(onDismiss);})",
|
|
187
205
|
location: "/home/runner/work/react-native-template-ui/react-native-template-ui/src/hooks/overlay.ts",
|
|
188
|
-
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\":\"
|
|
206
|
+
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\":\"AA+NkB,SAAAA,WAAA,QAAAC,YAAA,CAAAC,SAAA,OAAAC,SAAA,CAAAF,YAAA,CAAAC,SAAA,E\",\"ignoreList\":[]}"
|
|
189
207
|
};
|
|
190
208
|
export function useActionSheetGesture(t0) {
|
|
191
209
|
const $ = _c(15);
|
|
@@ -388,50 +406,17 @@ export function useActionSheetScrollViewRefAndOffset(refObj) {
|
|
|
388
406
|
}
|
|
389
407
|
|
|
390
408
|
/** @internal */
|
|
391
|
-
export function
|
|
392
|
-
const $ = _c(
|
|
393
|
-
const visible = t0 === undefined ? true : t0;
|
|
394
|
-
const [actionSheetVisible, setActionSheetVisible] = useState(visible);
|
|
395
|
-
let t1;
|
|
396
|
-
let t2;
|
|
397
|
-
if ($[0] !== visible) {
|
|
398
|
-
t1 = () => {
|
|
399
|
-
setActionSheetVisible(visible);
|
|
400
|
-
};
|
|
401
|
-
t2 = [visible];
|
|
402
|
-
$[0] = visible;
|
|
403
|
-
$[1] = t1;
|
|
404
|
-
$[2] = t2;
|
|
405
|
-
} else {
|
|
406
|
-
t1 = $[1];
|
|
407
|
-
t2 = $[2];
|
|
408
|
-
}
|
|
409
|
-
useLayoutEffect(t1, t2);
|
|
410
|
-
let t3;
|
|
411
|
-
if ($[3] !== actionSheetVisible) {
|
|
412
|
-
t3 = {
|
|
413
|
-
actionSheetVisible,
|
|
414
|
-
setActionSheetVisible
|
|
415
|
-
};
|
|
416
|
-
$[3] = actionSheetVisible;
|
|
417
|
-
$[4] = t3;
|
|
418
|
-
} else {
|
|
419
|
-
t3 = $[4];
|
|
420
|
-
}
|
|
421
|
-
return t3;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
/** @internal */
|
|
425
|
-
export function useActionSheetOpts(title, expandable, options, optionListProps, onDismiss, maxHeight, dismissible, actionSheetVisible) {
|
|
426
|
-
const $ = _c(22);
|
|
409
|
+
export function useActionSheetOpts(title, expandable, options, optionListProps, onDismiss, maxHeight, dismissible, visible) {
|
|
410
|
+
const $ = _c(23);
|
|
427
411
|
const {
|
|
428
412
|
headerViewRef,
|
|
413
|
+
actionSheetVisible,
|
|
429
414
|
height,
|
|
430
415
|
translateYSharedVal,
|
|
431
416
|
heightSharedVal,
|
|
432
417
|
expandableHeightSharedVal,
|
|
433
418
|
updateHeight
|
|
434
|
-
} = useActionSheet(expandable, maxHeight,
|
|
419
|
+
} = useActionSheet(expandable, maxHeight, visible);
|
|
435
420
|
const {
|
|
436
421
|
listViewListAnimatedRefObj,
|
|
437
422
|
contentOffsetSharedVal
|
|
@@ -471,7 +456,7 @@ export function useActionSheetOpts(title, expandable, options, optionListProps,
|
|
|
471
456
|
}
|
|
472
457
|
useLayoutEffect(t0, t1);
|
|
473
458
|
let t2;
|
|
474
|
-
if ($[9] !==
|
|
459
|
+
if ($[9] !== actionSheetVisible || $[10] !== contentOffsetSharedVal || $[11] !== dismissible || $[12] !== expandable || $[13] !== expandableHeightSharedVal || $[14] !== headerViewRef || $[15] !== height || $[16] !== heightSharedVal || $[17] !== listViewListAnimatedRefObj || $[18] !== maxHeight || $[19] !== onDismiss || $[20] !== title || $[21] !== translateYSharedVal) {
|
|
475
460
|
t2 = {
|
|
476
461
|
title,
|
|
477
462
|
expandable,
|
|
@@ -480,27 +465,29 @@ export function useActionSheetOpts(title, expandable, options, optionListProps,
|
|
|
480
465
|
dismissible,
|
|
481
466
|
headerViewRef,
|
|
482
467
|
contentAnimatedRefObj: listViewListAnimatedRefObj,
|
|
468
|
+
actionSheetVisible,
|
|
483
469
|
height,
|
|
484
470
|
translateYSharedVal,
|
|
485
471
|
heightSharedVal,
|
|
486
472
|
expandableHeightSharedVal,
|
|
487
473
|
contentOffsetSharedVal
|
|
488
474
|
};
|
|
489
|
-
$[9] =
|
|
490
|
-
$[10] =
|
|
491
|
-
$[11] =
|
|
492
|
-
$[12] =
|
|
493
|
-
$[13] =
|
|
494
|
-
$[14] =
|
|
495
|
-
$[15] =
|
|
496
|
-
$[16] =
|
|
497
|
-
$[17] =
|
|
498
|
-
$[18] =
|
|
499
|
-
$[19] =
|
|
500
|
-
$[20] =
|
|
501
|
-
$[21] =
|
|
475
|
+
$[9] = actionSheetVisible;
|
|
476
|
+
$[10] = contentOffsetSharedVal;
|
|
477
|
+
$[11] = dismissible;
|
|
478
|
+
$[12] = expandable;
|
|
479
|
+
$[13] = expandableHeightSharedVal;
|
|
480
|
+
$[14] = headerViewRef;
|
|
481
|
+
$[15] = height;
|
|
482
|
+
$[16] = heightSharedVal;
|
|
483
|
+
$[17] = listViewListAnimatedRefObj;
|
|
484
|
+
$[18] = maxHeight;
|
|
485
|
+
$[19] = onDismiss;
|
|
486
|
+
$[20] = title;
|
|
487
|
+
$[21] = translateYSharedVal;
|
|
488
|
+
$[22] = t2;
|
|
502
489
|
} else {
|
|
503
|
-
t2 = $[
|
|
490
|
+
t2 = $[22];
|
|
504
491
|
}
|
|
505
492
|
return t2;
|
|
506
493
|
}
|
|
@@ -579,16 +566,17 @@ export function useActionSheetOptItemSize(t0) {
|
|
|
579
566
|
}
|
|
580
567
|
|
|
581
568
|
/** @internal */
|
|
582
|
-
export function useActionSheetScrollView(title, expandable, scrollViewProps, onDismiss, maxHeight, dismissible,
|
|
583
|
-
const $ = _c(
|
|
569
|
+
export function useActionSheetScrollView(title, expandable, scrollViewProps, onDismiss, maxHeight, dismissible, visible) {
|
|
570
|
+
const $ = _c(26);
|
|
584
571
|
const {
|
|
585
572
|
headerViewRef,
|
|
573
|
+
actionSheetVisible,
|
|
586
574
|
height,
|
|
587
575
|
translateYSharedVal,
|
|
588
576
|
heightSharedVal,
|
|
589
577
|
expandableHeightSharedVal,
|
|
590
578
|
updateHeight
|
|
591
|
-
} = useActionSheet(expandable, maxHeight,
|
|
579
|
+
} = useActionSheet(expandable, maxHeight, visible);
|
|
592
580
|
const {
|
|
593
581
|
scrollViewAnimatedRefObj,
|
|
594
582
|
contentOffsetSharedVal
|
|
@@ -645,7 +633,7 @@ export function useActionSheetScrollView(title, expandable, scrollViewProps, onD
|
|
|
645
633
|
}
|
|
646
634
|
useEffect(t2, t3);
|
|
647
635
|
let t4;
|
|
648
|
-
if ($[12] !==
|
|
636
|
+
if ($[12] !== actionSheetVisible || $[13] !== contentOffsetSharedVal || $[14] !== dismissible || $[15] !== expandable || $[16] !== expandableHeightSharedVal || $[17] !== headerViewRef || $[18] !== height || $[19] !== heightSharedVal || $[20] !== maxHeight || $[21] !== onDismiss || $[22] !== scrollViewAnimatedRefObj || $[23] !== title || $[24] !== translateYSharedVal) {
|
|
649
637
|
t4 = {
|
|
650
638
|
title,
|
|
651
639
|
expandable,
|
|
@@ -654,6 +642,7 @@ export function useActionSheetScrollView(title, expandable, scrollViewProps, onD
|
|
|
654
642
|
dismissible,
|
|
655
643
|
headerViewRef,
|
|
656
644
|
contentAnimatedRefObj: scrollViewAnimatedRefObj,
|
|
645
|
+
actionSheetVisible,
|
|
657
646
|
height,
|
|
658
647
|
setContentHeight,
|
|
659
648
|
translateYSharedVal,
|
|
@@ -661,36 +650,38 @@ export function useActionSheetScrollView(title, expandable, scrollViewProps, onD
|
|
|
661
650
|
expandableHeightSharedVal,
|
|
662
651
|
contentOffsetSharedVal
|
|
663
652
|
};
|
|
664
|
-
$[12] =
|
|
665
|
-
$[13] =
|
|
666
|
-
$[14] =
|
|
667
|
-
$[15] =
|
|
668
|
-
$[16] =
|
|
669
|
-
$[17] =
|
|
670
|
-
$[18] =
|
|
671
|
-
$[19] =
|
|
672
|
-
$[20] =
|
|
673
|
-
$[21] =
|
|
674
|
-
$[22] =
|
|
675
|
-
$[23] =
|
|
676
|
-
$[24] =
|
|
653
|
+
$[12] = actionSheetVisible;
|
|
654
|
+
$[13] = contentOffsetSharedVal;
|
|
655
|
+
$[14] = dismissible;
|
|
656
|
+
$[15] = expandable;
|
|
657
|
+
$[16] = expandableHeightSharedVal;
|
|
658
|
+
$[17] = headerViewRef;
|
|
659
|
+
$[18] = height;
|
|
660
|
+
$[19] = heightSharedVal;
|
|
661
|
+
$[20] = maxHeight;
|
|
662
|
+
$[21] = onDismiss;
|
|
663
|
+
$[22] = scrollViewAnimatedRefObj;
|
|
664
|
+
$[23] = title;
|
|
665
|
+
$[24] = translateYSharedVal;
|
|
666
|
+
$[25] = t4;
|
|
677
667
|
} else {
|
|
678
|
-
t4 = $[
|
|
668
|
+
t4 = $[25];
|
|
679
669
|
}
|
|
680
670
|
return t4;
|
|
681
671
|
}
|
|
682
672
|
|
|
683
673
|
/** @internal */
|
|
684
|
-
export function useActionSheetListView(title, expandable, listProps, onDismiss, maxHeight, dismissible,
|
|
685
|
-
const $ = _c(
|
|
674
|
+
export function useActionSheetListView(title, expandable, listProps, onDismiss, maxHeight, dismissible, visible) {
|
|
675
|
+
const $ = _c(26);
|
|
686
676
|
const {
|
|
687
677
|
headerViewRef,
|
|
678
|
+
actionSheetVisible,
|
|
688
679
|
height,
|
|
689
680
|
translateYSharedVal,
|
|
690
681
|
heightSharedVal,
|
|
691
682
|
expandableHeightSharedVal,
|
|
692
683
|
updateHeight
|
|
693
|
-
} = useActionSheet(expandable, maxHeight,
|
|
684
|
+
} = useActionSheet(expandable, maxHeight, visible);
|
|
694
685
|
const {
|
|
695
686
|
listViewListAnimatedRefObj,
|
|
696
687
|
contentOffsetSharedVal
|
|
@@ -747,7 +738,7 @@ export function useActionSheetListView(title, expandable, listProps, onDismiss,
|
|
|
747
738
|
}
|
|
748
739
|
useEffect(t2, t3);
|
|
749
740
|
let t4;
|
|
750
|
-
if ($[12] !==
|
|
741
|
+
if ($[12] !== actionSheetVisible || $[13] !== contentOffsetSharedVal || $[14] !== dismissible || $[15] !== expandable || $[16] !== expandableHeightSharedVal || $[17] !== headerViewRef || $[18] !== height || $[19] !== heightSharedVal || $[20] !== listViewListAnimatedRefObj || $[21] !== maxHeight || $[22] !== onDismiss || $[23] !== title || $[24] !== translateYSharedVal) {
|
|
751
742
|
t4 = {
|
|
752
743
|
title,
|
|
753
744
|
expandable,
|
|
@@ -756,6 +747,7 @@ export function useActionSheetListView(title, expandable, listProps, onDismiss,
|
|
|
756
747
|
dismissible,
|
|
757
748
|
headerViewRef,
|
|
758
749
|
contentAnimatedRefObj: listViewListAnimatedRefObj,
|
|
750
|
+
actionSheetVisible,
|
|
759
751
|
height,
|
|
760
752
|
setContentHeight,
|
|
761
753
|
translateYSharedVal,
|
|
@@ -763,21 +755,22 @@ export function useActionSheetListView(title, expandable, listProps, onDismiss,
|
|
|
763
755
|
expandableHeightSharedVal,
|
|
764
756
|
contentOffsetSharedVal
|
|
765
757
|
};
|
|
766
|
-
$[12] =
|
|
767
|
-
$[13] =
|
|
768
|
-
$[14] =
|
|
769
|
-
$[15] =
|
|
770
|
-
$[16] =
|
|
771
|
-
$[17] =
|
|
772
|
-
$[18] =
|
|
773
|
-
$[19] =
|
|
774
|
-
$[20] =
|
|
775
|
-
$[21] =
|
|
776
|
-
$[22] =
|
|
777
|
-
$[23] =
|
|
778
|
-
$[24] =
|
|
758
|
+
$[12] = actionSheetVisible;
|
|
759
|
+
$[13] = contentOffsetSharedVal;
|
|
760
|
+
$[14] = dismissible;
|
|
761
|
+
$[15] = expandable;
|
|
762
|
+
$[16] = expandableHeightSharedVal;
|
|
763
|
+
$[17] = headerViewRef;
|
|
764
|
+
$[18] = height;
|
|
765
|
+
$[19] = heightSharedVal;
|
|
766
|
+
$[20] = listViewListAnimatedRefObj;
|
|
767
|
+
$[21] = maxHeight;
|
|
768
|
+
$[22] = onDismiss;
|
|
769
|
+
$[23] = title;
|
|
770
|
+
$[24] = translateYSharedVal;
|
|
771
|
+
$[25] = t4;
|
|
779
772
|
} else {
|
|
780
|
-
t4 = $[
|
|
773
|
+
t4 = $[25];
|
|
781
774
|
}
|
|
782
775
|
return t4;
|
|
783
776
|
}
|