@jamadd/react-native-template-ui 0.20.0 → 0.20.2
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/ActionSheetHeader.js +80 -57
- package/lib/module/components/overlay/actionSheet/ActionSheetHeader.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js +33 -29
- package/lib/module/components/overlay/actionSheet/ActionSheetListView.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js +2 -2
- package/lib/module/components/overlay/actionSheet/ActionSheetOptionListItem.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js +35 -31
- package/lib/module/components/overlay/actionSheet/ActionSheetOptions.js.map +1 -1
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js +34 -30
- package/lib/module/components/overlay/actionSheet/ActionSheetScrollView.js.map +1 -1
- package/lib/module/components/overlay/contextMenu/ContextMenu.js +3 -7
- package/lib/module/components/overlay/contextMenu/ContextMenu.js.map +1 -1
- package/lib/module/hooks/overlay.js +79 -72
- package/lib/module/hooks/overlay.js.map +1 -1
- package/lib/module/utils/overlay/const.js +2 -2
- package/lib/module/utils/overlay/const.js.map +1 -1
- package/lib/module/utils/overlay/func.js +21 -16
- package/lib/module/utils/overlay/func.js.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/contextMenu/ContextMenu.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/types/overlay.d.ts +5 -2
- package/lib/typescript/src/types/overlay.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/const.d.ts +2 -2
- package/lib/typescript/src/utils/overlay/const.d.ts.map +1 -1
- package/lib/typescript/src/utils/overlay/func.d.ts +7 -5
- package/lib/typescript/src/utils/overlay/func.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,11 +5,11 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
5
5
|
import { lazy } from 'react';
|
|
6
6
|
import { GestureDetector } from 'react-native-gesture-handler';
|
|
7
7
|
import { useActionSheetGesture, useActionSheetHeaderMinHeight, useActionSheetInternalContext, useActionSheetOnDismiss } from "../../../hooks/overlay.js";
|
|
8
|
+
import { actionSheetHeaderIconSize, actionSheetHeaderPaddingKey } from "../../../utils/overlay/const.js";
|
|
8
9
|
import { isPlatformWeb } from "../../../utils/react/func.js";
|
|
9
|
-
import { actionSheetHeaderIconSize, actionSheetHeaderPadding } from "../../../utils/overlay/const.js";
|
|
10
10
|
import { BorderSize } from "../../../utils/theme/const.js";
|
|
11
11
|
import ThemedView from "../../view/ThemedView.js";
|
|
12
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
let ThemedText;
|
|
14
14
|
let ThemedIconButton;
|
|
15
15
|
if (isPlatformWeb()) {
|
|
@@ -26,14 +26,15 @@ 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(22);
|
|
30
30
|
const {
|
|
31
|
-
|
|
31
|
+
headerShowDismissIcon: t1,
|
|
32
32
|
headerWrapProps,
|
|
33
33
|
headerTextProps,
|
|
34
|
-
headerIconButtonProps
|
|
34
|
+
headerIconButtonProps,
|
|
35
|
+
headerChildren
|
|
35
36
|
} = t0;
|
|
36
|
-
const
|
|
37
|
+
const headerShowDismissIcon = t1 === undefined ? true : t1;
|
|
37
38
|
const {
|
|
38
39
|
title,
|
|
39
40
|
headerViewRef
|
|
@@ -52,71 +53,93 @@ const ActionSheetHeader = t0 => {
|
|
|
52
53
|
t2 = $[1];
|
|
53
54
|
}
|
|
54
55
|
const onIconPress = t2;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
const hasHeaderContent = !!title || headerShowDismissIcon;
|
|
57
|
+
const t3 = headerChildren ? undefined : headerViewRef;
|
|
58
|
+
const t4 = hasHeaderContent ? minHeight : undefined;
|
|
59
|
+
const t5 = headerChildren ? undefined : actionSheetHeaderPaddingKey;
|
|
60
|
+
const t6 = headerChildren ? undefined : BorderSize.S;
|
|
61
|
+
let t7;
|
|
62
|
+
if ($[2] !== headerIconButtonProps || $[3] !== headerShowDismissIcon || $[4] !== headerTextProps || $[5] !== onIconPress || $[6] !== title) {
|
|
63
|
+
t7 = !!title || headerShowDismissIcon ? /*#__PURE__*/_jsxs(_Fragment, {
|
|
64
|
+
children: [!!title && /*#__PURE__*/_jsx(ThemedText, {
|
|
65
|
+
variant: "textMBold",
|
|
66
|
+
...headerTextProps,
|
|
67
|
+
children: title
|
|
68
|
+
}), headerShowDismissIcon && /*#__PURE__*/_jsx(ThemedIconButton, {
|
|
69
|
+
onPress: onIconPress,
|
|
70
|
+
iconName: "cross",
|
|
71
|
+
iconSize: actionSheetHeaderIconSize,
|
|
72
|
+
position: "absolute",
|
|
73
|
+
left: 0,
|
|
74
|
+
...headerIconButtonProps
|
|
75
|
+
})]
|
|
76
|
+
}) : /*#__PURE__*/_jsx(ThemedView, {
|
|
77
|
+
width: "10%",
|
|
78
|
+
height: BorderSize.XL,
|
|
79
|
+
backgroundColor: "separator"
|
|
61
80
|
});
|
|
62
|
-
$[2] =
|
|
63
|
-
$[3] =
|
|
64
|
-
$[4] =
|
|
81
|
+
$[2] = headerIconButtonProps;
|
|
82
|
+
$[3] = headerShowDismissIcon;
|
|
83
|
+
$[4] = headerTextProps;
|
|
84
|
+
$[5] = onIconPress;
|
|
85
|
+
$[6] = title;
|
|
86
|
+
$[7] = t7;
|
|
65
87
|
} else {
|
|
66
|
-
|
|
88
|
+
t7 = $[7];
|
|
67
89
|
}
|
|
68
|
-
let
|
|
69
|
-
if ($[
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
iconName: "cross",
|
|
73
|
-
iconSize: actionSheetHeaderIconSize,
|
|
74
|
-
position: "absolute",
|
|
75
|
-
left: 0,
|
|
76
|
-
...headerIconButtonProps
|
|
77
|
-
});
|
|
78
|
-
$[5] = headerIconButtonProps;
|
|
79
|
-
$[6] = headerShowIcon;
|
|
80
|
-
$[7] = onIconPress;
|
|
81
|
-
$[8] = t4;
|
|
82
|
-
} else {
|
|
83
|
-
t4 = $[8];
|
|
84
|
-
}
|
|
85
|
-
let t5;
|
|
86
|
-
if ($[9] !== headerViewRef || $[10] !== headerWrapProps || $[11] !== minHeight || $[12] !== t3 || $[13] !== t4) {
|
|
87
|
-
t5 = /*#__PURE__*/_jsxs(ThemedView, {
|
|
88
|
-
ref: headerViewRef,
|
|
90
|
+
let t8;
|
|
91
|
+
if ($[8] !== headerWrapProps || $[9] !== t3 || $[10] !== t4 || $[11] !== t5 || $[12] !== t6 || $[13] !== t7) {
|
|
92
|
+
t8 = /*#__PURE__*/_jsx(ThemedView, {
|
|
93
|
+
ref: t3,
|
|
89
94
|
justifyContent: "center",
|
|
90
95
|
alignItems: "center",
|
|
91
|
-
minHeight:
|
|
92
|
-
padding:
|
|
93
|
-
borderBottomWidth:
|
|
96
|
+
minHeight: t4,
|
|
97
|
+
padding: t5,
|
|
98
|
+
borderBottomWidth: t6,
|
|
94
99
|
borderColor: "border",
|
|
95
100
|
...headerWrapProps,
|
|
96
|
-
children:
|
|
101
|
+
children: t7
|
|
97
102
|
});
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
$[
|
|
101
|
-
$[
|
|
102
|
-
$[
|
|
103
|
-
$[
|
|
103
|
+
$[8] = headerWrapProps;
|
|
104
|
+
$[9] = t3;
|
|
105
|
+
$[10] = t4;
|
|
106
|
+
$[11] = t5;
|
|
107
|
+
$[12] = t6;
|
|
108
|
+
$[13] = t7;
|
|
109
|
+
$[14] = t8;
|
|
110
|
+
} else {
|
|
111
|
+
t8 = $[14];
|
|
112
|
+
}
|
|
113
|
+
const headerContent = t8;
|
|
114
|
+
let t9;
|
|
115
|
+
if ($[15] !== headerChildren || $[16] !== headerContent || $[17] !== headerViewRef) {
|
|
116
|
+
t9 = headerChildren ? /*#__PURE__*/_jsxs(ThemedView, {
|
|
117
|
+
ref: headerViewRef,
|
|
118
|
+
padding: actionSheetHeaderPaddingKey,
|
|
119
|
+
borderBottomWidth: BorderSize.S,
|
|
120
|
+
gap: actionSheetHeaderPaddingKey,
|
|
121
|
+
children: [headerContent, headerChildren]
|
|
122
|
+
}) : headerContent;
|
|
123
|
+
$[15] = headerChildren;
|
|
124
|
+
$[16] = headerContent;
|
|
125
|
+
$[17] = headerViewRef;
|
|
126
|
+
$[18] = t9;
|
|
104
127
|
} else {
|
|
105
|
-
|
|
128
|
+
t9 = $[18];
|
|
106
129
|
}
|
|
107
|
-
let
|
|
108
|
-
if ($[
|
|
109
|
-
|
|
130
|
+
let t10;
|
|
131
|
+
if ($[19] !== gesture || $[20] !== t9) {
|
|
132
|
+
t10 = /*#__PURE__*/_jsx(GestureDetector, {
|
|
110
133
|
gesture: gesture,
|
|
111
|
-
children:
|
|
134
|
+
children: t9
|
|
112
135
|
});
|
|
113
|
-
$[
|
|
114
|
-
$[
|
|
115
|
-
$[
|
|
136
|
+
$[19] = gesture;
|
|
137
|
+
$[20] = t9;
|
|
138
|
+
$[21] = t10;
|
|
116
139
|
} else {
|
|
117
|
-
|
|
140
|
+
t10 = $[21];
|
|
118
141
|
}
|
|
119
|
-
return
|
|
142
|
+
return t10;
|
|
120
143
|
};
|
|
121
144
|
export default ActionSheetHeader;
|
|
122
145
|
//# sourceMappingURL=ActionSheetHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["lazy","GestureDetector","useActionSheetGesture","useActionSheetHeaderMinHeight","useActionSheetInternalContext","useActionSheetOnDismiss","
|
|
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","t2","onIconPress","hasHeaderContent","t3","t4","t5","t6","S","t7","children","variant","iconName","position","left","width","height","XL","backgroundColor","t8","ref","justifyContent","alignItems","padding","borderBottomWidth","borderColor","headerContent","t9","t10"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetHeader.tsx"],"mappings":";;;AAAA;AACA,SAASA,IAAI,QAAiC,OAAO;AACrD,SAASC,eAAe,QAAQ,8BAA8B;AAC9D,SACEC,qBAAqB,EACrBC,6BAA6B,EAC7BC,6BAA6B,EAC7BC,uBAAuB,QAClB,2BAAwB;AAI/B,SACEC,yBAAyB,EACzBC,2BAA2B,QACtB,iCAA8B;AACrC,SAASC,aAAa,QAAQ,8BAA2B;AACzD,SAASC,UAAU,QAAQ,+BAA4B;AACvD,OAAOC,UAAU,MAAM,0BAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAE/C,IAAIC,UAA+B;AACnC,IAAIC,gBAA2C;AAC/C,IAAIV,aAAa,CAAC,CAAC,EAAE;EACnBS,UAAU,gBAAGjB,IAAI,CAA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GAAA,gBAAApD,IAAA,CAACX,eAAe;MAAUiC,OAAO,EAAPA,OAAO;MAAAY,QAAA,EAC9BiB;IAYA,CACc,CAAC;IAAAxC,CAAA,OAAAW,OAAA;IAAAX,CAAA,OAAAwC,EAAA;IAAAxC,CAAA,OAAAyC,GAAA;EAAA;IAAAA,GAAA,GAAAzC,CAAA;EAAA;EAAA,OAdlByC,GAckB;AAAA,CAErB;AAED,eAAe3C,iBAAiB","ignoreList":[]}
|
|
@@ -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 ActionSheetListView = t0 => {
|
|
18
|
-
const $ = _c(
|
|
18
|
+
const $ = _c(17);
|
|
19
19
|
const {
|
|
20
20
|
title,
|
|
21
21
|
expandable,
|
|
@@ -23,71 +23,75 @@ const ActionSheetListView = t0 => {
|
|
|
23
23
|
onDismiss,
|
|
24
24
|
useModal,
|
|
25
25
|
dismissible,
|
|
26
|
+
maxHeight,
|
|
26
27
|
wrapViewProps,
|
|
27
|
-
|
|
28
|
+
headerShowDismissIcon,
|
|
28
29
|
headerWrapProps,
|
|
29
30
|
headerTextProps,
|
|
30
31
|
headerIconButtonProps,
|
|
32
|
+
headerChildren,
|
|
31
33
|
visible
|
|
32
34
|
} = t0;
|
|
33
35
|
const {
|
|
34
36
|
actionSheetVisible
|
|
35
37
|
} = useActionSheetVisible(visible);
|
|
36
|
-
const actionSheetInternalContextVal = useActionSheetListView(title, expandable, listProps, onDismiss, dismissible, actionSheetVisible);
|
|
38
|
+
const actionSheetInternalContextVal = useActionSheetListView(title, expandable, listProps, onDismiss, maxHeight, dismissible, actionSheetVisible);
|
|
37
39
|
let t1;
|
|
38
|
-
if ($[0] !==
|
|
40
|
+
if ($[0] !== headerChildren || $[1] !== headerIconButtonProps || $[2] !== headerShowDismissIcon || $[3] !== headerTextProps || $[4] !== headerWrapProps) {
|
|
39
41
|
t1 = /*#__PURE__*/_jsx(ActionSheetHeader, {
|
|
40
|
-
|
|
42
|
+
headerShowDismissIcon: headerShowDismissIcon,
|
|
41
43
|
headerWrapProps: headerWrapProps,
|
|
42
44
|
headerTextProps: headerTextProps,
|
|
43
|
-
headerIconButtonProps: headerIconButtonProps
|
|
45
|
+
headerIconButtonProps: headerIconButtonProps,
|
|
46
|
+
headerChildren: headerChildren
|
|
44
47
|
});
|
|
45
|
-
$[0] =
|
|
46
|
-
$[1] =
|
|
47
|
-
$[2] =
|
|
48
|
-
$[3] =
|
|
49
|
-
$[4] =
|
|
48
|
+
$[0] = headerChildren;
|
|
49
|
+
$[1] = headerIconButtonProps;
|
|
50
|
+
$[2] = headerShowDismissIcon;
|
|
51
|
+
$[3] = headerTextProps;
|
|
52
|
+
$[4] = headerWrapProps;
|
|
53
|
+
$[5] = t1;
|
|
50
54
|
} else {
|
|
51
|
-
t1 = $[
|
|
55
|
+
t1 = $[5];
|
|
52
56
|
}
|
|
53
57
|
let t2;
|
|
54
|
-
if ($[
|
|
58
|
+
if ($[6] !== listProps) {
|
|
55
59
|
t2 = /*#__PURE__*/_jsx(ActionSheetListViewContent, {
|
|
56
60
|
listProps: listProps
|
|
57
61
|
});
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
62
|
+
$[6] = listProps;
|
|
63
|
+
$[7] = t2;
|
|
60
64
|
} else {
|
|
61
|
-
t2 = $[
|
|
65
|
+
t2 = $[7];
|
|
62
66
|
}
|
|
63
67
|
let t3;
|
|
64
|
-
if ($[
|
|
68
|
+
if ($[8] !== actionSheetVisible || $[9] !== t1 || $[10] !== t2 || $[11] !== useModal || $[12] !== wrapViewProps) {
|
|
65
69
|
t3 = /*#__PURE__*/_jsxs(ActionSheetWrap, {
|
|
66
70
|
visible: actionSheetVisible,
|
|
67
71
|
useModal: useModal,
|
|
68
72
|
wrapViewProps: wrapViewProps,
|
|
69
73
|
children: [t1, t2]
|
|
70
74
|
});
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
$[
|
|
74
|
-
$[
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
75
|
+
$[8] = actionSheetVisible;
|
|
76
|
+
$[9] = t1;
|
|
77
|
+
$[10] = t2;
|
|
78
|
+
$[11] = useModal;
|
|
79
|
+
$[12] = wrapViewProps;
|
|
80
|
+
$[13] = t3;
|
|
77
81
|
} else {
|
|
78
|
-
t3 = $[
|
|
82
|
+
t3 = $[13];
|
|
79
83
|
}
|
|
80
84
|
let t4;
|
|
81
|
-
if ($[
|
|
85
|
+
if ($[14] !== actionSheetInternalContextVal || $[15] !== t3) {
|
|
82
86
|
t4 = /*#__PURE__*/_jsx(ActionSheetInternalContext, {
|
|
83
87
|
value: actionSheetInternalContextVal,
|
|
84
88
|
children: t3
|
|
85
89
|
});
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
90
|
+
$[14] = actionSheetInternalContextVal;
|
|
91
|
+
$[15] = t3;
|
|
92
|
+
$[16] = t4;
|
|
89
93
|
} else {
|
|
90
|
-
t4 = $[
|
|
94
|
+
t4 = $[16];
|
|
91
95
|
}
|
|
92
96
|
return t4;
|
|
93
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useActionSheetListView","useActionSheetVisible","ActionSheetInternalContext","ActionSheetHeader","ActionSheetListViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetListView","t0","$","_c","title","expandable","listProps","onDismiss","useModal","dismissible","wrapViewProps","
|
|
1
|
+
{"version":3,"names":["useActionSheetListView","useActionSheetVisible","ActionSheetInternalContext","ActionSheetHeader","ActionSheetListViewContent","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetListView","t0","$","_c","title","expandable","listProps","onDismiss","useModal","dismissible","maxHeight","wrapViewProps","headerShowDismissIcon","headerWrapProps","headerTextProps","headerIconButtonProps","headerChildren","visible","actionSheetVisible","actionSheetInternalContextVal","t1","t2","t3","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EAAA;EAAA;IAAAA,EAAA,GAAAtB,CAAA;EAAA;EAAA,OAf7BsB,EAe6B;AAAA,CAEhC;AAED,eAAexB,mBAAmB","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { c as _c } from "react/compiler-runtime";
|
|
4
4
|
/** @internal */
|
|
5
|
-
import {
|
|
5
|
+
import { actionSheetOptionListItemPaddingKey, actionSheetOptionListItemTextVariant } from "../../../utils/overlay/const.js";
|
|
6
6
|
import ThemedButton from "../../button/ThemedButton.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -45,7 +45,7 @@ const ActionSheetOptionListItem = t0 => {
|
|
|
45
45
|
t3 = /*#__PURE__*/_jsx(ThemedButton, {
|
|
46
46
|
onPress: onItemPress,
|
|
47
47
|
alignItems: "flex-start",
|
|
48
|
-
paddingVertical:
|
|
48
|
+
paddingVertical: actionSheetOptionListItemPaddingKey,
|
|
49
49
|
backgroundColor: "background",
|
|
50
50
|
text: text,
|
|
51
51
|
textVariant: actionSheetOptionListItemTextVariant,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["actionSheetOptionListItemPaddingKey","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,mCAAmC,EACnCC,oCAAoC,QAC/B,iCAA8B;AACrC,OAAOC,YAAY,MAAM,8BAA2B;;AAEpD;AACA;AACA;AACA;AACA;AAJA,SAAAC,GAAA,IAAAC,IAAA;AAKA,MAAMC,yBAA+D,GAAGC,EAAA;EAAA,MAAAC,CAAA,GAAAC,EAAA;EAAC;IAAAC,IAAA,EAAAC,EAAA;IAAAC;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|
|
|
15
15
|
*/
|
|
16
16
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
17
|
const ActionSheetOptions = t0 => {
|
|
18
|
-
const $ = _c(
|
|
18
|
+
const $ = _c(19);
|
|
19
19
|
const {
|
|
20
20
|
title,
|
|
21
21
|
expandable,
|
|
@@ -23,77 +23,81 @@ const ActionSheetOptions = t0 => {
|
|
|
23
23
|
optionListProps,
|
|
24
24
|
optionListItemProps,
|
|
25
25
|
onDismiss,
|
|
26
|
+
maxHeight,
|
|
26
27
|
useModal,
|
|
27
28
|
dismissible,
|
|
28
29
|
wrapViewProps,
|
|
29
|
-
|
|
30
|
+
headerShowDismissIcon,
|
|
30
31
|
headerWrapProps,
|
|
31
32
|
headerTextProps,
|
|
32
33
|
headerIconButtonProps,
|
|
34
|
+
headerChildren,
|
|
33
35
|
visible
|
|
34
36
|
} = t0;
|
|
35
37
|
const {
|
|
36
38
|
actionSheetVisible
|
|
37
39
|
} = useActionSheetVisible(visible);
|
|
38
|
-
const actionSheetInternalContextVal = useActionSheetOpts(title, expandable, options, optionListProps, onDismiss, dismissible, actionSheetVisible);
|
|
40
|
+
const actionSheetInternalContextVal = useActionSheetOpts(title, expandable, options, optionListProps, onDismiss, maxHeight, dismissible, actionSheetVisible);
|
|
39
41
|
let t1;
|
|
40
|
-
if ($[0] !==
|
|
42
|
+
if ($[0] !== headerChildren || $[1] !== headerIconButtonProps || $[2] !== headerShowDismissIcon || $[3] !== headerTextProps || $[4] !== headerWrapProps) {
|
|
41
43
|
t1 = /*#__PURE__*/_jsx(ActionSheetHeader, {
|
|
42
|
-
|
|
44
|
+
headerShowDismissIcon: headerShowDismissIcon,
|
|
43
45
|
headerWrapProps: headerWrapProps,
|
|
44
46
|
headerTextProps: headerTextProps,
|
|
45
|
-
headerIconButtonProps: headerIconButtonProps
|
|
47
|
+
headerIconButtonProps: headerIconButtonProps,
|
|
48
|
+
headerChildren: headerChildren
|
|
46
49
|
});
|
|
47
|
-
$[0] =
|
|
48
|
-
$[1] =
|
|
49
|
-
$[2] =
|
|
50
|
-
$[3] =
|
|
51
|
-
$[4] =
|
|
50
|
+
$[0] = headerChildren;
|
|
51
|
+
$[1] = headerIconButtonProps;
|
|
52
|
+
$[2] = headerShowDismissIcon;
|
|
53
|
+
$[3] = headerTextProps;
|
|
54
|
+
$[4] = headerWrapProps;
|
|
55
|
+
$[5] = t1;
|
|
52
56
|
} else {
|
|
53
|
-
t1 = $[
|
|
57
|
+
t1 = $[5];
|
|
54
58
|
}
|
|
55
59
|
let t2;
|
|
56
|
-
if ($[
|
|
60
|
+
if ($[6] !== optionListItemProps || $[7] !== optionListProps || $[8] !== options) {
|
|
57
61
|
t2 = /*#__PURE__*/_jsx(ActionSheetOptionList, {
|
|
58
62
|
options: options,
|
|
59
63
|
optionListProps: optionListProps,
|
|
60
64
|
optionListItemProps: optionListItemProps
|
|
61
65
|
});
|
|
62
|
-
$[
|
|
63
|
-
$[
|
|
64
|
-
$[
|
|
65
|
-
$[
|
|
66
|
+
$[6] = optionListItemProps;
|
|
67
|
+
$[7] = optionListProps;
|
|
68
|
+
$[8] = options;
|
|
69
|
+
$[9] = t2;
|
|
66
70
|
} else {
|
|
67
|
-
t2 = $[
|
|
71
|
+
t2 = $[9];
|
|
68
72
|
}
|
|
69
73
|
let t3;
|
|
70
|
-
if ($[
|
|
74
|
+
if ($[10] !== actionSheetVisible || $[11] !== t1 || $[12] !== t2 || $[13] !== useModal || $[14] !== wrapViewProps) {
|
|
71
75
|
t3 = /*#__PURE__*/_jsxs(ActionSheetWrap, {
|
|
72
76
|
visible: actionSheetVisible,
|
|
73
77
|
useModal: useModal,
|
|
74
78
|
wrapViewProps: wrapViewProps,
|
|
75
79
|
children: [t1, t2]
|
|
76
80
|
});
|
|
77
|
-
$[
|
|
78
|
-
$[
|
|
79
|
-
$[
|
|
80
|
-
$[
|
|
81
|
-
$[
|
|
82
|
-
$[
|
|
81
|
+
$[10] = actionSheetVisible;
|
|
82
|
+
$[11] = t1;
|
|
83
|
+
$[12] = t2;
|
|
84
|
+
$[13] = useModal;
|
|
85
|
+
$[14] = wrapViewProps;
|
|
86
|
+
$[15] = t3;
|
|
83
87
|
} else {
|
|
84
|
-
t3 = $[
|
|
88
|
+
t3 = $[15];
|
|
85
89
|
}
|
|
86
90
|
let t4;
|
|
87
|
-
if ($[
|
|
91
|
+
if ($[16] !== actionSheetInternalContextVal || $[17] !== t3) {
|
|
88
92
|
t4 = /*#__PURE__*/_jsx(ActionSheetInternalContext, {
|
|
89
93
|
value: actionSheetInternalContextVal,
|
|
90
94
|
children: t3
|
|
91
95
|
});
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
96
|
+
$[16] = actionSheetInternalContextVal;
|
|
97
|
+
$[17] = t3;
|
|
98
|
+
$[18] = t4;
|
|
95
99
|
} else {
|
|
96
|
-
t4 = $[
|
|
100
|
+
t4 = $[18];
|
|
97
101
|
}
|
|
98
102
|
return t4;
|
|
99
103
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useActionSheetOpts","useActionSheetVisible","ActionSheetInternalContext","ActionSheetHeader","ActionSheetOptionList","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetOptions","t0","$","_c","title","expandable","options","optionListProps","optionListItemProps","onDismiss","useModal","dismissible","wrapViewProps","
|
|
1
|
+
{"version":3,"names":["useActionSheetOpts","useActionSheetVisible","ActionSheetInternalContext","ActionSheetHeader","ActionSheetOptionList","ActionSheetWrap","jsx","_jsx","jsxs","_jsxs","ActionSheetOptions","t0","$","_c","title","expandable","options","optionListProps","optionListItemProps","onDismiss","maxHeight","useModal","dismissible","wrapViewProps","headerShowDismissIcon","headerWrapProps","headerTextProps","headerIconButtonProps","headerChildren","visible","actionSheetVisible","actionSheetInternalContextVal","t1","t2","t3","children","t4"],"sourceRoot":"../../../../../src","sources":["components/overlay/actionSheet/ActionSheetOptions.tsx"],"mappings":";;;AAAA;AAEA,SACE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,QAAA,EAC9DD;IAiBkB,CACQ,CAAC;IAAAtB,CAAA,OAAAmB,6BAAA;IAAAnB,CAAA,OAAAsB,EAAA;IAAAtB,CAAA,OAAAwB,EAAA;EAAA;IAAAA,EAAA,GAAAxB,CAAA;EAAA;EAAA,OAnB7BwB,EAmB6B;AAAA,CAEhC;AAED,eAAe1B,kBAAkB","ignoreList":[]}
|
|
@@ -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(18);
|
|
19
19
|
const {
|
|
20
20
|
title,
|
|
21
21
|
expandable,
|
|
@@ -24,73 +24,77 @@ const ActionSheetScrollView = t0 => {
|
|
|
24
24
|
onDismiss,
|
|
25
25
|
useModal,
|
|
26
26
|
dismissible,
|
|
27
|
+
maxHeight,
|
|
27
28
|
wrapViewProps,
|
|
28
|
-
|
|
29
|
+
headerShowDismissIcon,
|
|
29
30
|
headerWrapProps,
|
|
30
31
|
headerTextProps,
|
|
31
32
|
headerIconButtonProps,
|
|
33
|
+
headerChildren,
|
|
32
34
|
visible
|
|
33
35
|
} = t0;
|
|
34
36
|
const {
|
|
35
37
|
actionSheetVisible
|
|
36
38
|
} = useActionSheetVisible(visible);
|
|
37
|
-
const actionSheetInternalContextVal = useActionSheetScrollView(title, expandable, scrollViewProps, onDismiss, dismissible, actionSheetVisible);
|
|
39
|
+
const actionSheetInternalContextVal = useActionSheetScrollView(title, expandable, scrollViewProps, onDismiss, maxHeight, dismissible, actionSheetVisible);
|
|
38
40
|
let t1;
|
|
39
|
-
if ($[0] !==
|
|
41
|
+
if ($[0] !== headerChildren || $[1] !== headerIconButtonProps || $[2] !== headerShowDismissIcon || $[3] !== headerTextProps || $[4] !== headerWrapProps) {
|
|
40
42
|
t1 = /*#__PURE__*/_jsx(ActionSheetHeader, {
|
|
41
|
-
|
|
43
|
+
headerShowDismissIcon: headerShowDismissIcon,
|
|
42
44
|
headerWrapProps: headerWrapProps,
|
|
43
45
|
headerTextProps: headerTextProps,
|
|
44
|
-
headerIconButtonProps: headerIconButtonProps
|
|
46
|
+
headerIconButtonProps: headerIconButtonProps,
|
|
47
|
+
headerChildren: headerChildren
|
|
45
48
|
});
|
|
46
|
-
$[0] =
|
|
47
|
-
$[1] =
|
|
48
|
-
$[2] =
|
|
49
|
-
$[3] =
|
|
50
|
-
$[4] =
|
|
49
|
+
$[0] = headerChildren;
|
|
50
|
+
$[1] = headerIconButtonProps;
|
|
51
|
+
$[2] = headerShowDismissIcon;
|
|
52
|
+
$[3] = headerTextProps;
|
|
53
|
+
$[4] = headerWrapProps;
|
|
54
|
+
$[5] = t1;
|
|
51
55
|
} else {
|
|
52
|
-
t1 = $[
|
|
56
|
+
t1 = $[5];
|
|
53
57
|
}
|
|
54
58
|
let t2;
|
|
55
|
-
if ($[
|
|
59
|
+
if ($[6] !== children || $[7] !== scrollViewProps) {
|
|
56
60
|
t2 = /*#__PURE__*/_jsx(ActionSheetScrollViewContent, {
|
|
57
61
|
scrollViewProps: scrollViewProps,
|
|
58
62
|
children: children
|
|
59
63
|
});
|
|
60
|
-
$[
|
|
61
|
-
$[
|
|
62
|
-
$[
|
|
64
|
+
$[6] = children;
|
|
65
|
+
$[7] = scrollViewProps;
|
|
66
|
+
$[8] = t2;
|
|
63
67
|
} else {
|
|
64
|
-
t2 = $[
|
|
68
|
+
t2 = $[8];
|
|
65
69
|
}
|
|
66
70
|
let t3;
|
|
67
|
-
if ($[
|
|
71
|
+
if ($[9] !== actionSheetVisible || $[10] !== t1 || $[11] !== t2 || $[12] !== useModal || $[13] !== wrapViewProps) {
|
|
68
72
|
t3 = /*#__PURE__*/_jsxs(ActionSheetWrap, {
|
|
69
73
|
visible: actionSheetVisible,
|
|
70
74
|
useModal: useModal,
|
|
71
75
|
wrapViewProps: wrapViewProps,
|
|
72
76
|
children: [t1, t2]
|
|
73
77
|
});
|
|
74
|
-
$[
|
|
75
|
-
$[
|
|
76
|
-
$[
|
|
77
|
-
$[
|
|
78
|
-
$[
|
|
79
|
-
$[
|
|
78
|
+
$[9] = actionSheetVisible;
|
|
79
|
+
$[10] = t1;
|
|
80
|
+
$[11] = t2;
|
|
81
|
+
$[12] = useModal;
|
|
82
|
+
$[13] = wrapViewProps;
|
|
83
|
+
$[14] = t3;
|
|
80
84
|
} else {
|
|
81
|
-
t3 = $[
|
|
85
|
+
t3 = $[14];
|
|
82
86
|
}
|
|
83
87
|
let t4;
|
|
84
|
-
if ($[
|
|
88
|
+
if ($[15] !== actionSheetInternalContextVal || $[16] !== t3) {
|
|
85
89
|
t4 = /*#__PURE__*/_jsx(ActionSheetInternalContext, {
|
|
86
90
|
value: actionSheetInternalContextVal,
|
|
87
91
|
children: t3
|
|
88
92
|
});
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
93
|
+
$[15] = actionSheetInternalContextVal;
|
|
94
|
+
$[16] = t3;
|
|
95
|
+
$[17] = t4;
|
|
92
96
|
} else {
|
|
93
|
-
t4 = $[
|
|
97
|
+
t4 = $[17];
|
|
94
98
|
}
|
|
95
99
|
return t4;
|
|
96
100
|
};
|