react-native-bottom-sheet-stack 1.7.6 → 1.8.0
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/commonjs/BottomSheetManaged.js +5 -172
- package/lib/commonjs/BottomSheetManaged.js.map +1 -1
- package/lib/commonjs/BottomSheetPersistent.js.map +1 -1
- package/lib/commonjs/BottomSheetRef.context.js.map +1 -1
- package/lib/commonjs/adapter.types.js +6 -0
- package/lib/commonjs/adapter.types.js.map +1 -0
- package/lib/commonjs/adapters/actions-sheet/ActionsSheetAdapter.js +137 -0
- package/lib/commonjs/adapters/actions-sheet/ActionsSheetAdapter.js.map +1 -0
- package/lib/commonjs/adapters/actions-sheet/index.js +13 -0
- package/lib/commonjs/adapters/actions-sheet/index.js.map +1 -0
- package/lib/commonjs/adapters/custom-modal/CustomModalAdapter.js +157 -0
- package/lib/commonjs/adapters/custom-modal/CustomModalAdapter.js.map +1 -0
- package/lib/commonjs/adapters/custom-modal/index.js +19 -0
- package/lib/commonjs/adapters/custom-modal/index.js.map +1 -0
- package/lib/commonjs/adapters/gorhom-sheet/GorhomSheetAdapter.js +187 -0
- package/lib/commonjs/adapters/gorhom-sheet/GorhomSheetAdapter.js.map +1 -0
- package/lib/commonjs/adapters/gorhom-sheet/index.js +13 -0
- package/lib/commonjs/adapters/gorhom-sheet/index.js.map +1 -0
- package/lib/commonjs/adapters/index.js +40 -0
- package/lib/commonjs/adapters/index.js.map +1 -0
- package/lib/commonjs/adapters/react-native-modal/ReactNativeModalAdapter.js +119 -0
- package/lib/commonjs/adapters/react-native-modal/ReactNativeModalAdapter.js.map +1 -0
- package/lib/commonjs/adapters/react-native-modal/index.js +13 -0
- package/lib/commonjs/adapters/react-native-modal/index.js.map +1 -0
- package/lib/commonjs/animatedRegistry.js +11 -1
- package/lib/commonjs/animatedRegistry.js.map +1 -1
- package/lib/commonjs/bottomSheetCoordinator.js +29 -22
- package/lib/commonjs/bottomSheetCoordinator.js.map +1 -1
- package/lib/commonjs/index.js +68 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/refsMap.js.map +1 -1
- package/lib/commonjs/useAdapterRef.js +29 -0
- package/lib/commonjs/useAdapterRef.js.map +1 -0
- package/lib/commonjs/useAnimatedIndex.js +47 -0
- package/lib/commonjs/useAnimatedIndex.js.map +1 -0
- package/lib/commonjs/useBottomSheetControl.js.map +1 -1
- package/lib/commonjs/useBottomSheetManager.js.map +1 -1
- package/lib/typescript/example/src/screens/HomeScreen.d.ts.map +1 -1
- package/lib/typescript/example/src/sheets/ContextSheets.d.ts.map +1 -1
- package/lib/typescript/example/src/sheets/ModalSheets.d.ts +8 -0
- package/lib/typescript/example/src/sheets/ModalSheets.d.ts.map +1 -0
- package/lib/typescript/example/src/sheets/ThirdPartyAdapterSheets.d.ts +17 -0
- package/lib/typescript/example/src/sheets/ThirdPartyAdapterSheets.d.ts.map +1 -0
- package/lib/typescript/example/src/sheets/index.d.ts +2 -0
- package/lib/typescript/example/src/sheets/index.d.ts.map +1 -1
- package/lib/typescript/src/BottomSheetManaged.d.ts +10 -9
- package/lib/typescript/src/BottomSheetManaged.d.ts.map +1 -1
- package/lib/typescript/src/BottomSheetPersistent.d.ts.map +1 -1
- package/lib/typescript/src/BottomSheetRef.context.d.ts +1 -4
- package/lib/typescript/src/BottomSheetRef.context.d.ts.map +1 -1
- package/lib/typescript/src/adapter.types.d.ts +33 -0
- package/lib/typescript/src/adapter.types.d.ts.map +1 -0
- package/lib/typescript/src/adapters/actions-sheet/ActionsSheetAdapter.d.ts +23 -0
- package/lib/typescript/src/adapters/actions-sheet/ActionsSheetAdapter.d.ts.map +1 -0
- package/lib/typescript/src/adapters/actions-sheet/index.d.ts +2 -0
- package/lib/typescript/src/adapters/actions-sheet/index.d.ts.map +1 -0
- package/lib/typescript/src/adapters/custom-modal/CustomModalAdapter.d.ts +9 -0
- package/lib/typescript/src/adapters/custom-modal/CustomModalAdapter.d.ts.map +1 -0
- package/lib/typescript/src/adapters/custom-modal/index.d.ts +4 -0
- package/lib/typescript/src/adapters/custom-modal/index.d.ts.map +1 -0
- package/lib/typescript/src/adapters/gorhom-sheet/GorhomSheetAdapter.d.ts +7 -0
- package/lib/typescript/src/adapters/gorhom-sheet/GorhomSheetAdapter.d.ts.map +1 -0
- package/lib/typescript/src/adapters/gorhom-sheet/index.d.ts +2 -0
- package/lib/typescript/src/adapters/gorhom-sheet/index.d.ts.map +1 -0
- package/lib/typescript/src/adapters/index.d.ts +5 -0
- package/lib/typescript/src/adapters/index.d.ts.map +1 -0
- package/lib/typescript/src/adapters/react-native-modal/ReactNativeModalAdapter.d.ts +22 -0
- package/lib/typescript/src/adapters/react-native-modal/ReactNativeModalAdapter.d.ts.map +1 -0
- package/lib/typescript/src/adapters/react-native-modal/index.d.ts +2 -0
- package/lib/typescript/src/adapters/react-native-modal/index.d.ts.map +1 -0
- package/lib/typescript/src/animatedRegistry.d.ts +4 -0
- package/lib/typescript/src/animatedRegistry.d.ts.map +1 -1
- package/lib/typescript/src/bottomSheetCoordinator.d.ts +13 -7
- package/lib/typescript/src/bottomSheetCoordinator.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +11 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/refsMap.d.ts +1 -4
- package/lib/typescript/src/refsMap.d.ts.map +1 -1
- package/lib/typescript/src/useAdapterRef.d.ts +21 -0
- package/lib/typescript/src/useAdapterRef.d.ts.map +1 -0
- package/lib/typescript/src/useAnimatedIndex.d.ts +25 -0
- package/lib/typescript/src/useAnimatedIndex.d.ts.map +1 -0
- package/package.json +33 -2
- package/src/BottomSheetManaged.tsx +14 -106
- package/src/BottomSheetPersistent.tsx +2 -2
- package/src/BottomSheetRef.context.ts +2 -4
- package/src/adapter.types.ts +35 -0
- package/src/adapters/actions-sheet/ActionsSheetAdapter.tsx +83 -0
- package/src/adapters/actions-sheet/index.ts +4 -0
- package/src/adapters/custom-modal/CustomModalAdapter.tsx +131 -0
- package/src/adapters/custom-modal/index.ts +7 -0
- package/src/adapters/gorhom-sheet/GorhomSheetAdapter.tsx +118 -0
- package/src/adapters/gorhom-sheet/index.ts +4 -0
- package/src/adapters/index.ts +17 -0
- package/src/adapters/react-native-modal/ReactNativeModalAdapter.tsx +81 -0
- package/src/adapters/react-native-modal/index.ts +4 -0
- package/src/animatedRegistry.ts +10 -1
- package/src/bottomSheetCoordinator.ts +32 -24
- package/src/index.tsx +33 -0
- package/src/refsMap.ts +1 -4
- package/src/useAdapterRef.ts +28 -0
- package/src/useAnimatedIndex.ts +31 -0
- package/src/useBottomSheetControl.ts +2 -2
- package/src/useBottomSheetManager.tsx +2 -2
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.GorhomSheetAdapter = void 0;
|
|
7
|
+
var _compilerRuntime = require("react/compiler-runtime");
|
|
8
|
+
var _bottomSheet = _interopRequireWildcard(require("@gorhom/bottom-sheet"));
|
|
9
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
11
|
+
var _bottomSheetCoordinator = require("../../bottomSheetCoordinator");
|
|
12
|
+
var _BottomSheetDefaultIndex = require("../../BottomSheetDefaultIndex.context");
|
|
13
|
+
var _useAdapterRef = require("../../useAdapterRef");
|
|
14
|
+
var _useAnimatedIndex = require("../../useAnimatedIndex");
|
|
15
|
+
var _useBottomSheetContext = require("../../useBottomSheetContext");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
const nullBackdrop = () => null;
|
|
20
|
+
const GorhomSheetAdapter = exports.GorhomSheetAdapter = /*#__PURE__*/_react.default.forwardRef((t0, forwardedRef) => {
|
|
21
|
+
const $ = (0, _compilerRuntime.c)(34);
|
|
22
|
+
let children;
|
|
23
|
+
let externalAnimatedIndex;
|
|
24
|
+
let onAnimate;
|
|
25
|
+
let onChange;
|
|
26
|
+
let onClose;
|
|
27
|
+
let props;
|
|
28
|
+
let t1;
|
|
29
|
+
let t2;
|
|
30
|
+
if ($[0] !== t0) {
|
|
31
|
+
({
|
|
32
|
+
children,
|
|
33
|
+
onAnimate,
|
|
34
|
+
onChange,
|
|
35
|
+
onClose,
|
|
36
|
+
enablePanDownToClose: t1,
|
|
37
|
+
backdropComponent: t2,
|
|
38
|
+
animatedIndex: externalAnimatedIndex,
|
|
39
|
+
...props
|
|
40
|
+
} = t0);
|
|
41
|
+
$[0] = t0;
|
|
42
|
+
$[1] = children;
|
|
43
|
+
$[2] = externalAnimatedIndex;
|
|
44
|
+
$[3] = onAnimate;
|
|
45
|
+
$[4] = onChange;
|
|
46
|
+
$[5] = onClose;
|
|
47
|
+
$[6] = props;
|
|
48
|
+
$[7] = t1;
|
|
49
|
+
$[8] = t2;
|
|
50
|
+
} else {
|
|
51
|
+
children = $[1];
|
|
52
|
+
externalAnimatedIndex = $[2];
|
|
53
|
+
onAnimate = $[3];
|
|
54
|
+
onChange = $[4];
|
|
55
|
+
onClose = $[5];
|
|
56
|
+
props = $[6];
|
|
57
|
+
t1 = $[7];
|
|
58
|
+
t2 = $[8];
|
|
59
|
+
}
|
|
60
|
+
const enablePanDownToClose = t1 === undefined ? true : t1;
|
|
61
|
+
const backdropComponent = t2 === undefined ? nullBackdrop : t2;
|
|
62
|
+
const {
|
|
63
|
+
id
|
|
64
|
+
} = (0, _useBottomSheetContext.useBottomSheetContext)();
|
|
65
|
+
const ref = (0, _useAdapterRef.useAdapterRef)(forwardedRef);
|
|
66
|
+
const contextAnimatedIndex = (0, _useAnimatedIndex.useAnimatedIndex)();
|
|
67
|
+
const defaultIndex = (0, _BottomSheetDefaultIndex.useBottomSheetDefaultIndex)();
|
|
68
|
+
const gorhomRef = (0, _react.useRef)(null);
|
|
69
|
+
let t3;
|
|
70
|
+
let t4;
|
|
71
|
+
if ($[9] === Symbol.for("react.memo_cache_sentinel")) {
|
|
72
|
+
t3 = () => ({
|
|
73
|
+
expand: () => gorhomRef.current?.expand(),
|
|
74
|
+
close: () => gorhomRef.current?.close()
|
|
75
|
+
});
|
|
76
|
+
t4 = [];
|
|
77
|
+
$[9] = t3;
|
|
78
|
+
$[10] = t4;
|
|
79
|
+
} else {
|
|
80
|
+
t3 = $[9];
|
|
81
|
+
t4 = $[10];
|
|
82
|
+
}
|
|
83
|
+
(0, _react.useImperativeHandle)(ref, t3, t4);
|
|
84
|
+
(0, _reactNativeReanimated.useAnimatedReaction)(() => contextAnimatedIndex.value, value => {
|
|
85
|
+
externalAnimatedIndex?.set(value);
|
|
86
|
+
});
|
|
87
|
+
let t5;
|
|
88
|
+
if ($[11] !== id) {
|
|
89
|
+
t5 = (0, _bottomSheetCoordinator.createSheetEventHandlers)(id);
|
|
90
|
+
$[11] = id;
|
|
91
|
+
$[12] = t5;
|
|
92
|
+
} else {
|
|
93
|
+
t5 = $[12];
|
|
94
|
+
}
|
|
95
|
+
const {
|
|
96
|
+
handleDismiss,
|
|
97
|
+
handleOpened,
|
|
98
|
+
handleClosed
|
|
99
|
+
} = t5;
|
|
100
|
+
let t6;
|
|
101
|
+
if ($[13] !== handleDismiss || $[14] !== onAnimate) {
|
|
102
|
+
t6 = (fromIndex, toIndex, fromPosition, toPosition) => {
|
|
103
|
+
if (toIndex === -1) {
|
|
104
|
+
handleDismiss();
|
|
105
|
+
}
|
|
106
|
+
onAnimate?.(fromIndex, toIndex, fromPosition, toPosition);
|
|
107
|
+
};
|
|
108
|
+
$[13] = handleDismiss;
|
|
109
|
+
$[14] = onAnimate;
|
|
110
|
+
$[15] = t6;
|
|
111
|
+
} else {
|
|
112
|
+
t6 = $[15];
|
|
113
|
+
}
|
|
114
|
+
const wrappedOnAnimate = t6;
|
|
115
|
+
let t7;
|
|
116
|
+
if ($[16] !== handleOpened || $[17] !== onChange) {
|
|
117
|
+
t7 = (index, position, type) => {
|
|
118
|
+
if (index >= 0) {
|
|
119
|
+
handleOpened();
|
|
120
|
+
}
|
|
121
|
+
onChange?.(index, position, type);
|
|
122
|
+
};
|
|
123
|
+
$[16] = handleOpened;
|
|
124
|
+
$[17] = onChange;
|
|
125
|
+
$[18] = t7;
|
|
126
|
+
} else {
|
|
127
|
+
t7 = $[18];
|
|
128
|
+
}
|
|
129
|
+
const wrappedOnChange = t7;
|
|
130
|
+
let t8;
|
|
131
|
+
if ($[19] !== handleClosed || $[20] !== onClose) {
|
|
132
|
+
t8 = () => {
|
|
133
|
+
onClose?.();
|
|
134
|
+
handleClosed();
|
|
135
|
+
};
|
|
136
|
+
$[19] = handleClosed;
|
|
137
|
+
$[20] = onClose;
|
|
138
|
+
$[21] = t8;
|
|
139
|
+
} else {
|
|
140
|
+
t8 = $[21];
|
|
141
|
+
}
|
|
142
|
+
const wrappedOnClose = t8;
|
|
143
|
+
let t9;
|
|
144
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
145
|
+
t9 = {
|
|
146
|
+
stiffness: 400,
|
|
147
|
+
damping: 80,
|
|
148
|
+
mass: 0.7
|
|
149
|
+
};
|
|
150
|
+
$[22] = t9;
|
|
151
|
+
} else {
|
|
152
|
+
t9 = $[22];
|
|
153
|
+
}
|
|
154
|
+
const config = (0, _bottomSheet.useBottomSheetSpringConfigs)(t9);
|
|
155
|
+
let t10;
|
|
156
|
+
if ($[23] !== backdropComponent || $[24] !== children || $[25] !== config || $[26] !== contextAnimatedIndex || $[27] !== defaultIndex || $[28] !== enablePanDownToClose || $[29] !== props || $[30] !== wrappedOnAnimate || $[31] !== wrappedOnChange || $[32] !== wrappedOnClose) {
|
|
157
|
+
t10 = /*#__PURE__*/(0, _jsxRuntime.jsx)(_bottomSheet.default, {
|
|
158
|
+
animationConfigs: config,
|
|
159
|
+
ref: gorhomRef,
|
|
160
|
+
...props,
|
|
161
|
+
index: defaultIndex,
|
|
162
|
+
animatedIndex: contextAnimatedIndex,
|
|
163
|
+
onChange: wrappedOnChange,
|
|
164
|
+
onClose: wrappedOnClose,
|
|
165
|
+
onAnimate: wrappedOnAnimate,
|
|
166
|
+
backdropComponent: backdropComponent,
|
|
167
|
+
enablePanDownToClose: enablePanDownToClose,
|
|
168
|
+
children: children
|
|
169
|
+
});
|
|
170
|
+
$[23] = backdropComponent;
|
|
171
|
+
$[24] = children;
|
|
172
|
+
$[25] = config;
|
|
173
|
+
$[26] = contextAnimatedIndex;
|
|
174
|
+
$[27] = defaultIndex;
|
|
175
|
+
$[28] = enablePanDownToClose;
|
|
176
|
+
$[29] = props;
|
|
177
|
+
$[30] = wrappedOnAnimate;
|
|
178
|
+
$[31] = wrappedOnChange;
|
|
179
|
+
$[32] = wrappedOnClose;
|
|
180
|
+
$[33] = t10;
|
|
181
|
+
} else {
|
|
182
|
+
t10 = $[33];
|
|
183
|
+
}
|
|
184
|
+
return t10;
|
|
185
|
+
});
|
|
186
|
+
GorhomSheetAdapter.displayName = 'GorhomSheetAdapter';
|
|
187
|
+
//# sourceMappingURL=GorhomSheetAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_bottomSheet","_interopRequireWildcard","require","_react","_reactNativeReanimated","_bottomSheetCoordinator","_BottomSheetDefaultIndex","_useAdapterRef","_useAnimatedIndex","_useBottomSheetContext","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","nullBackdrop","GorhomSheetAdapter","exports","React","forwardRef","t0","forwardedRef","$","_compilerRuntime","c","children","externalAnimatedIndex","onAnimate","onChange","onClose","props","t1","t2","enablePanDownToClose","backdropComponent","animatedIndex","undefined","id","useBottomSheetContext","ref","useAdapterRef","contextAnimatedIndex","useAnimatedIndex","defaultIndex","useBottomSheetDefaultIndex","gorhomRef","useRef","t3","t4","Symbol","for","expand","current","close","useImperativeHandle","useAnimatedReaction","value","t5","createSheetEventHandlers","handleDismiss","handleOpened","handleClosed","t6","fromIndex","toIndex","fromPosition","toPosition","wrappedOnAnimate","t7","index","position","type","wrappedOnChange","t8","wrappedOnClose","t9","stiffness","damping","mass","config","useBottomSheetSpringConfigs","t10","jsx","displayName"],"sourceRoot":"../../../../src","sources":["adapters/gorhom-sheet/GorhomSheetAdapter.tsx"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,uBAAA,CAAAC,OAAA;AAIA,IAAAC,MAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAGA,IAAAG,uBAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,sBAAA,GAAAP,OAAA;AAAoE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAX,wBAAAW,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,I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AAA,IAAAX,CAAA,SAAAQ,KAAA,IAAAR,CAAA,SAAA6C,gBAAA,IAAA7C,CAAA,SAAAkD,eAAA,IAAAlD,CAAA,SAAAoD,cAAA;IAGDO,GAAA,oBAAAvF,WAAA,CAAAwF,GAAA,EAAClG,YAAA,CAAAiB,OAAmB;MACA8E,gBAAM,EAANA,MAAM;MACnBlC,GAAS,EAATA,SAAS;MAAA,GACVf,KAAK;MACFa,KAAY,EAAZA,YAAY;MACJF,aAAoB,EAApBA,oBAAoB;MACzB+B,QAAe,EAAfA,eAAe;MAChBE,OAAc,EAAdA,cAAc;MACZP,SAAgB,EAAhBA,gBAAgB;MACRjC,iBAAiB,EAAjBA,iBAAiB;MACdD,oBAAoB,EAApBA,oBAAoB;MAAAR,QAAA,EAEzCA;IAAQ,CACU,CAAC;IAAAH,CAAA,OAAAY,iBAAA;IAAAZ,CAAA,OAAAG,QAAA;IAAAH,CAAA,OAAAyD,MAAA;IAAAzD,CAAA,OAAAmB,oBAAA;IAAAnB,CAAA,OAAAqB,YAAA;IAAArB,CAAA,OAAAW,oBAAA;IAAAX,CAAA,OAAAQ,KAAA;IAAAR,CAAA,OAAA6C,gBAAA;IAAA7C,CAAA,OAAAkD,eAAA;IAAAlD,CAAA,OAAAoD,cAAA;IAAApD,CAAA,OAAA2D,GAAA;EAAA;IAAAA,GAAA,GAAA3D,CAAA;EAAA;EAAA,OAbtB2D,GAasB;AAAA,CAG5B,CAAC;AAEDjE,kBAAkB,CAACmE,WAAW,GAAG,oBAAoB","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "GorhomSheetAdapter", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _GorhomSheetAdapter.GorhomSheetAdapter;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _GorhomSheetAdapter = require("./GorhomSheetAdapter");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_GorhomSheetAdapter","require"],"sourceRoot":"../../../../src","sources":["adapters/gorhom-sheet/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ActionsSheetAdapter", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _actionsSheet.ActionsSheetAdapter;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "CustomModalAdapter", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _customModal.CustomModalAdapter;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(exports, "GorhomSheetAdapter", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () {
|
|
21
|
+
return _gorhomSheet.GorhomSheetAdapter;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(exports, "ModalAdapter", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () {
|
|
27
|
+
return _customModal.ModalAdapter;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "ReactNativeModalAdapter", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _reactNativeModal.ReactNativeModalAdapter;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
var _gorhomSheet = require("./gorhom-sheet");
|
|
37
|
+
var _customModal = require("./custom-modal");
|
|
38
|
+
var _reactNativeModal = require("./react-native-modal");
|
|
39
|
+
var _actionsSheet = require("./actions-sheet");
|
|
40
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_gorhomSheet","require","_customModal","_reactNativeModal","_actionsSheet"],"sourceRoot":"../../../src","sources":["adapters/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAAC,YAAA,GAAAD,OAAA;AAKA,IAAAE,iBAAA,GAAAF,OAAA;AAIA,IAAAG,aAAA,GAAAH,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ReactNativeModalAdapter = void 0;
|
|
7
|
+
var _compilerRuntime = require("react/compiler-runtime");
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _bottomSheetCoordinator = require("../../bottomSheetCoordinator");
|
|
10
|
+
var _useAdapterRef = require("../../useAdapterRef");
|
|
11
|
+
var _useAnimatedIndex = require("../../useAnimatedIndex");
|
|
12
|
+
var _useBottomSheetContext = require("../../useBottomSheetContext");
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
+
const RNModal = require('react-native-modal').default;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Adapter for `react-native-modal`.
|
|
20
|
+
*
|
|
21
|
+
* All react-native-modal props are accepted via spread and forwarded
|
|
22
|
+
* to the underlying component. The adapter sets opinionated defaults
|
|
23
|
+
* (swipe-to-dismiss, native driver) that can be overridden.
|
|
24
|
+
*
|
|
25
|
+
* Requires `react-native-modal` as a peer dependency:
|
|
26
|
+
* ```
|
|
27
|
+
* npm install react-native-modal
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @see https://github.com/react-native-modal/react-native-modal
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
const ReactNativeModalAdapter = exports.ReactNativeModalAdapter = /*#__PURE__*/_react.default.forwardRef((t0, forwardedRef) => {
|
|
34
|
+
const $ = (0, _compilerRuntime.c)(15);
|
|
35
|
+
let children;
|
|
36
|
+
let modalProps;
|
|
37
|
+
if ($[0] !== t0) {
|
|
38
|
+
({
|
|
39
|
+
children,
|
|
40
|
+
...modalProps
|
|
41
|
+
} = t0);
|
|
42
|
+
$[0] = t0;
|
|
43
|
+
$[1] = children;
|
|
44
|
+
$[2] = modalProps;
|
|
45
|
+
} else {
|
|
46
|
+
children = $[1];
|
|
47
|
+
modalProps = $[2];
|
|
48
|
+
}
|
|
49
|
+
const {
|
|
50
|
+
id
|
|
51
|
+
} = (0, _useBottomSheetContext.useBottomSheetContext)();
|
|
52
|
+
const ref = (0, _useAdapterRef.useAdapterRef)(forwardedRef);
|
|
53
|
+
const animatedIndex = (0, _useAnimatedIndex.useAnimatedIndex)();
|
|
54
|
+
const [isVisible, setIsVisible] = (0, _react.useState)(false);
|
|
55
|
+
let t1;
|
|
56
|
+
if ($[3] !== id) {
|
|
57
|
+
t1 = (0, _bottomSheetCoordinator.createSheetEventHandlers)(id);
|
|
58
|
+
$[3] = id;
|
|
59
|
+
$[4] = t1;
|
|
60
|
+
} else {
|
|
61
|
+
t1 = $[4];
|
|
62
|
+
}
|
|
63
|
+
const {
|
|
64
|
+
handleDismiss,
|
|
65
|
+
handleOpened,
|
|
66
|
+
handleClosed
|
|
67
|
+
} = t1;
|
|
68
|
+
let t2;
|
|
69
|
+
let t3;
|
|
70
|
+
if ($[5] !== animatedIndex) {
|
|
71
|
+
t2 = () => ({
|
|
72
|
+
expand: () => {
|
|
73
|
+
setIsVisible(true);
|
|
74
|
+
animatedIndex.set(0);
|
|
75
|
+
},
|
|
76
|
+
close: () => {
|
|
77
|
+
setIsVisible(false);
|
|
78
|
+
animatedIndex.set(-1);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
t3 = [animatedIndex];
|
|
82
|
+
$[5] = animatedIndex;
|
|
83
|
+
$[6] = t2;
|
|
84
|
+
$[7] = t3;
|
|
85
|
+
} else {
|
|
86
|
+
t2 = $[6];
|
|
87
|
+
t3 = $[7];
|
|
88
|
+
}
|
|
89
|
+
(0, _react.useImperativeHandle)(ref, t2, t3);
|
|
90
|
+
let t4;
|
|
91
|
+
if ($[8] !== children || $[9] !== handleClosed || $[10] !== handleDismiss || $[11] !== handleOpened || $[12] !== isVisible || $[13] !== modalProps) {
|
|
92
|
+
t4 = /*#__PURE__*/(0, _jsxRuntime.jsx)(RNModal, {
|
|
93
|
+
swipeDirection: "down",
|
|
94
|
+
useNativeDriver: true,
|
|
95
|
+
hideModalContentWhileAnimating: true,
|
|
96
|
+
...modalProps,
|
|
97
|
+
isVisible: isVisible,
|
|
98
|
+
coverScreen: false,
|
|
99
|
+
hasBackdrop: false,
|
|
100
|
+
onModalShow: handleOpened,
|
|
101
|
+
onModalHide: handleClosed,
|
|
102
|
+
onBackButtonPress: handleDismiss,
|
|
103
|
+
onSwipeComplete: handleDismiss,
|
|
104
|
+
children: children
|
|
105
|
+
});
|
|
106
|
+
$[8] = children;
|
|
107
|
+
$[9] = handleClosed;
|
|
108
|
+
$[10] = handleDismiss;
|
|
109
|
+
$[11] = handleOpened;
|
|
110
|
+
$[12] = isVisible;
|
|
111
|
+
$[13] = modalProps;
|
|
112
|
+
$[14] = t4;
|
|
113
|
+
} else {
|
|
114
|
+
t4 = $[14];
|
|
115
|
+
}
|
|
116
|
+
return t4;
|
|
117
|
+
});
|
|
118
|
+
ReactNativeModalAdapter.displayName = 'ReactNativeModalAdapter';
|
|
119
|
+
//# sourceMappingURL=ReactNativeModalAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_bottomSheetCoordinator","_useAdapterRef","_useAnimatedIndex","_useBottomSheetContext","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","RNModal","ReactNativeModalAdapter","exports","React","forwardRef","t0","forwardedRef","$","_compilerRuntime","c","children","modalProps","id","useBottomSheetContext","ref","useAdapterRef","animatedIndex","useAnimatedIndex","isVisible","setIsVisible","useState","t1","createSheetEventHandlers","handleDismiss","handleOpened","handleClosed","t2","t3","expand","close","useImperativeHandle","t4","jsx","swipeDirection","useNativeDriver","hideModalContentWhileAnimating","coverScreen","hasBackdrop","displayName"],"sourceRoot":"../../../../src","sources":["adapters/react-native-modal/ReactNativeModalAdapter.tsx"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAGA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AAAoE,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,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AD,EAAA,GAAAnB,CAAA;IAAAoB,EAAA,GAAApB,CAAA;EAAA;EAZjB,IAAAuB,0BAAmB,EACjBhB,GAAG,EACHY,EASE,EACFC,EACF,CAAC;EAAA,IAAAI,EAAA;EAAA,IAAAxB,CAAA,QAAAG,QAAA,IAAAH,CAAA,QAAAkB,YAAA,IAAAlB,CAAA,SAAAgB,aAAA,IAAAhB,CAAA,SAAAiB,YAAA,IAAAjB,CAAA,SAAAW,SAAA,IAAAX,CAAA,SAAAI,UAAA;IAGCoB,EAAA,oBAAApD,WAAA,CAAAqD,GAAA,EAAChC,OAAO;MAESiC,cAAM,EAAN,MAAM;MACrBC,eAAe,EAAf,IAAe;MACfC,8BAA8B,EAA9B,IAA8B;MAAA,GAC1BxB,UAAU;MAKHO,SAAS,EAATA,SAAS;MACPkB,WAAK,EAAL,KAAK;MACLC,WAAK,EAAL,KAAK;MACLb,WAAY,EAAZA,YAAY;MACZC,WAAY,EAAZA,YAAY;MACNF,iBAAa,EAAbA,aAAa;MACfA,eAAa,EAAbA,aAAa;MAAAb,QAAA,EAE7BA;IAAQ,CACF,CAAC;IAAAH,CAAA,MAAAG,QAAA;IAAAH,CAAA,MAAAkB,YAAA;IAAAlB,CAAA,OAAAgB,aAAA;IAAAhB,CAAA,OAAAiB,YAAA;IAAAjB,CAAA,OAAAW,SAAA;IAAAX,CAAA,OAAAI,UAAA;IAAAJ,CAAA,OAAAwB,EAAA;EAAA;IAAAA,EAAA,GAAAxB,CAAA;EAAA;EAAA,OAnBVwB,EAmBU;AAAA,CAEb,CAAC;AAEF9B,uBAAuB,CAACqC,WAAW,GAAG,yBAAyB","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "ReactNativeModalAdapter", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ReactNativeModalAdapter.ReactNativeModalAdapter;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _ReactNativeModalAdapter = require("./ReactNativeModalAdapter");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ReactNativeModalAdapter","require"],"sourceRoot":"../../../../src","sources":["adapters/react-native-modal/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,wBAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -8,6 +8,7 @@ exports.__resetAnimatedIndexes = __resetAnimatedIndexes;
|
|
|
8
8
|
exports.cleanupAnimatedIndex = cleanupAnimatedIndex;
|
|
9
9
|
exports.ensureAnimatedIndex = ensureAnimatedIndex;
|
|
10
10
|
exports.getAnimatedIndex = getAnimatedIndex;
|
|
11
|
+
exports.setAnimatedIndexValue = setAnimatedIndexValue;
|
|
11
12
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
12
13
|
/**
|
|
13
14
|
* Registry for shared animated values per sheet.
|
|
@@ -25,8 +26,17 @@ function ensureAnimatedIndex(sheetId) {
|
|
|
25
26
|
return animatedIndex;
|
|
26
27
|
}
|
|
27
28
|
function getAnimatedIndex(sheetId) {
|
|
29
|
+
return animatedIndexRegistry.get(sheetId);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Set the animated index value for a sheet.
|
|
34
|
+
*/
|
|
35
|
+
function setAnimatedIndexValue(sheetId, value) {
|
|
28
36
|
const animatedIndex = animatedIndexRegistry.get(sheetId);
|
|
29
|
-
|
|
37
|
+
if (animatedIndex) {
|
|
38
|
+
animatedIndex.value = value;
|
|
39
|
+
}
|
|
30
40
|
}
|
|
31
41
|
function cleanupAnimatedIndex(sheetId) {
|
|
32
42
|
animatedIndexRegistry.delete(sheetId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","animatedIndexRegistry","Map","ensureAnimatedIndex","sheetId","existing","get","animatedIndex","makeMutable","set","getAnimatedIndex","cleanupAnimatedIndex","delete","__resetAnimatedIndexes","clear","__getAllAnimatedIndexes"],"sourceRoot":"../../src","sources":["animatedRegistry.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","animatedIndexRegistry","Map","ensureAnimatedIndex","sheetId","existing","get","animatedIndex","makeMutable","set","getAnimatedIndex","setAnimatedIndexValue","value","cleanupAnimatedIndex","delete","__resetAnimatedIndexes","clear","__getAllAnimatedIndexes"],"sourceRoot":"../../src","sources":["animatedRegistry.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA,MAAMC,qBAAqB,GAAG,IAAIC,GAAG,CAA8B,CAAC;AAE7D,SAASC,mBAAmBA,CAACC,OAAe,EAAuB;EACxE,MAAMC,QAAQ,GAAGJ,qBAAqB,CAACK,GAAG,CAACF,OAAO,CAAC;EACnD,IAAIC,QAAQ,EAAE;IACZ,OAAOA,QAAQ;EACjB;EAEA,MAAME,aAAa,GAAG,IAAAC,kCAAW,EAAC,CAAC,CAAC,CAAC;EACrCP,qBAAqB,CAACQ,GAAG,CAACL,OAAO,EAAEG,aAAa,CAAC;EACjD,OAAOA,aAAa;AACtB;AAEO,SAASG,gBAAgBA,CAC9BN,OAAe,EACkB;EACjC,OAAOH,qBAAqB,CAACK,GAAG,CAACF,OAAO,CAAC;AAC3C;;AAEA;AACA;AACA;AACO,SAASO,qBAAqBA,CAACP,OAAe,EAAEQ,KAAa,EAAQ;EAC1E,MAAML,aAAa,GAAGN,qBAAqB,CAACK,GAAG,CAACF,OAAO,CAAC;EACxD,IAAIG,aAAa,EAAE;IACjBA,aAAa,CAACK,KAAK,GAAGA,KAAK;EAC7B;AACF;AAEO,SAASC,oBAAoBA,CAACT,OAAe,EAAQ;EAC1DH,qBAAqB,CAACa,MAAM,CAACV,OAAO,CAAC;AACvC;;AAEA;AACA;AACA;AACA;AACO,SAASW,sBAAsBA,CAAA,EAAS;EAC7Cd,qBAAqB,CAACe,KAAK,CAAC,CAAC;AAC/B;;AAEA;AACA;AACA;AACA;AACO,SAASC,uBAAuBA,CAAA,EAAqC;EAC1E,OAAOhB,qBAAqB;AAC9B","ignoreList":[]}
|
|
@@ -7,6 +7,10 @@ exports.createSheetEventHandlers = createSheetEventHandlers;
|
|
|
7
7
|
exports.initBottomSheetCoordinator = initBottomSheetCoordinator;
|
|
8
8
|
var _bottomSheet = require("./bottomSheet.store");
|
|
9
9
|
var _refsMap = require("./refsMap");
|
|
10
|
+
/**
|
|
11
|
+
* Subscribes to store changes and calls adapter ref methods.
|
|
12
|
+
* Direction: Store → Adapter (via SheetAdapterRef)
|
|
13
|
+
*/
|
|
10
14
|
function initBottomSheetCoordinator(groupId) {
|
|
11
15
|
return _bottomSheet.useBottomSheetStore.subscribe(s => s.stackOrder.filter(id => s.sheetsById[id]?.groupId === groupId).map(id => ({
|
|
12
16
|
id,
|
|
@@ -23,13 +27,16 @@ function initBottomSheetCoordinator(groupId) {
|
|
|
23
27
|
const ref = (0, _refsMap.getSheetRef)(id)?.current;
|
|
24
28
|
switch (status) {
|
|
25
29
|
case 'opening':
|
|
26
|
-
(
|
|
30
|
+
requestAnimationFrame(() => {
|
|
31
|
+
const currentStatus = _bottomSheet.useBottomSheetStore.getState().sheetsById[id]?.status;
|
|
32
|
+
if (currentStatus === 'opening') {
|
|
33
|
+
(0, _refsMap.getSheetRef)(id)?.current?.expand();
|
|
34
|
+
}
|
|
35
|
+
});
|
|
27
36
|
break;
|
|
28
37
|
case 'hidden':
|
|
29
|
-
if (ref) ref.close();
|
|
30
|
-
break;
|
|
31
38
|
case 'closing':
|
|
32
|
-
|
|
39
|
+
ref?.close();
|
|
33
40
|
break;
|
|
34
41
|
}
|
|
35
42
|
});
|
|
@@ -37,40 +44,40 @@ function initBottomSheetCoordinator(groupId) {
|
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
/**
|
|
40
|
-
* Creates event handlers
|
|
41
|
-
* Direction:
|
|
47
|
+
* Creates event handlers that adapters call to sync UI state back to the store.
|
|
48
|
+
* Direction: Adapter Events → Store
|
|
49
|
+
*
|
|
50
|
+
* Adapters must call:
|
|
51
|
+
* - `handleDismiss()` when the user initiates dismissal (swipe, backdrop tap, back button)
|
|
52
|
+
* - `handleOpened()` when the show animation completes
|
|
53
|
+
* - `handleClosed()` when the hide animation completes
|
|
42
54
|
*/
|
|
43
55
|
function createSheetEventHandlers(sheetId) {
|
|
44
|
-
const {
|
|
45
|
-
startClosing,
|
|
46
|
-
finishClosing,
|
|
47
|
-
markOpen
|
|
48
|
-
} = _bottomSheet.useBottomSheetStore.getState();
|
|
49
|
-
const handleAnimate = (_fromIndex, toIndex) => {
|
|
56
|
+
const handleDismiss = () => {
|
|
50
57
|
const state = _bottomSheet.useBottomSheetStore.getState();
|
|
51
58
|
const currentStatus = state.sheetsById[sheetId]?.status;
|
|
52
|
-
if (
|
|
53
|
-
startClosing(sheetId);
|
|
59
|
+
if (currentStatus === 'open' || currentStatus === 'opening') {
|
|
60
|
+
state.startClosing(sheetId);
|
|
54
61
|
}
|
|
55
62
|
};
|
|
56
|
-
const
|
|
63
|
+
const handleOpened = () => {
|
|
57
64
|
const state = _bottomSheet.useBottomSheetStore.getState();
|
|
58
65
|
const currentStatus = state.sheetsById[sheetId]?.status;
|
|
59
|
-
if (
|
|
60
|
-
markOpen(sheetId);
|
|
66
|
+
if (currentStatus === 'opening') {
|
|
67
|
+
state.markOpen(sheetId);
|
|
61
68
|
}
|
|
62
69
|
};
|
|
63
|
-
const
|
|
70
|
+
const handleClosed = () => {
|
|
64
71
|
const state = _bottomSheet.useBottomSheetStore.getState();
|
|
65
72
|
const currentStatus = state.sheetsById[sheetId]?.status;
|
|
66
73
|
if (currentStatus !== 'hidden') {
|
|
67
|
-
finishClosing(sheetId);
|
|
74
|
+
state.finishClosing(sheetId);
|
|
68
75
|
}
|
|
69
76
|
};
|
|
70
77
|
return {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
78
|
+
handleDismiss,
|
|
79
|
+
handleOpened,
|
|
80
|
+
handleClosed
|
|
74
81
|
};
|
|
75
82
|
}
|
|
76
83
|
//# sourceMappingURL=bottomSheetCoordinator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bottomSheet","require","_refsMap","initBottomSheetCoordinator","groupId","useBottomSheetStore","subscribe","s","stackOrder","filter","id","sheetsById","map","status","next","prev","forEach","prevStatus","find","p","ref","getSheetRef","current","
|
|
1
|
+
{"version":3,"names":["_bottomSheet","require","_refsMap","initBottomSheetCoordinator","groupId","useBottomSheetStore","subscribe","s","stackOrder","filter","id","sheetsById","map","status","next","prev","forEach","prevStatus","find","p","ref","getSheetRef","current","requestAnimationFrame","currentStatus","getState","expand","close","createSheetEventHandlers","sheetId","handleDismiss","state","startClosing","handleOpened","markOpen","handleClosed","finishClosing"],"sourceRoot":"../../src","sources":["bottomSheetCoordinator.ts"],"mappings":";;;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACO,SAASE,0BAA0BA,CAACC,OAAe,EAAE;EAC1D,OAAOC,gCAAmB,CAACC,SAAS,CACjCC,CAAC,IACAA,CAAC,CAACC,UAAU,CACTC,MAAM,CAAEC,EAAE,IAAKH,CAAC,CAACI,UAAU,CAACD,EAAE,CAAC,EAAEN,OAAO,KAAKA,OAAO,CAAC,CACrDQ,GAAG,CAAEF,EAAE,KAAM;IAAEA,EAAE;IAAEG,MAAM,EAAEN,CAAC,CAACI,UAAU,CAACD,EAAE,CAAC,EAAEG;EAAO,CAAC,CAAC,CAAC,EAC5D,CAACC,IAAI,EAAEC,IAAI,KAAK;IACdD,IAAI,CAACE,OAAO,CAAC,CAAC;MAAEN,EAAE;MAAEG;IAAO,CAAC,KAAK;MAC/B,MAAMI,UAAU,GAAG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,IAAIW,aAAa,KAAK,SAAS,EAAE;MAC/BO,KAAK,CAACG,QAAQ,CAACL,OAAO,CAAC;IACzB;EACF,CAAC;EAED,MAAMM,YAAY,GAAGA,CAAA,KAAM;IACzB,MAAMJ,KAAK,GAAG1B,gCAAmB,CAACoB,QAAQ,CAAC,CAAC;IAC5C,MAAMD,aAAa,GAAGO,KAAK,CAACpB,UAAU,CAACkB,OAAO,CAAC,EAAEhB,MAAM;IAEvD,IAAIW,aAAa,KAAK,QAAQ,EAAE;MAC9BO,KAAK,CAACK,aAAa,CAACP,OAAO,CAAC;IAC9B;EACF,CAAC;EAED,OAAO;IACLC,aAAa;IACbG,YAAY;IACZE;EACF,CAAC;AACH","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "ActionsSheetAdapter", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _actionsSheet.ActionsSheetAdapter;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "BottomSheetHost", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function () {
|
|
@@ -39,6 +45,30 @@ Object.defineProperty(exports, "BottomSheetScaleView", {
|
|
|
39
45
|
return _BottomSheetScaleView.BottomSheetScaleView;
|
|
40
46
|
}
|
|
41
47
|
});
|
|
48
|
+
Object.defineProperty(exports, "CustomModalAdapter", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () {
|
|
51
|
+
return _customModal.CustomModalAdapter;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "GorhomSheetAdapter", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _gorhomSheet.GorhomSheetAdapter;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
Object.defineProperty(exports, "ModalAdapter", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () {
|
|
63
|
+
return _customModal.ModalAdapter;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "ReactNativeModalAdapter", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return _reactNativeModal.ReactNativeModalAdapter;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
42
72
|
Object.defineProperty(exports, "__getAllAnimatedIndexes", {
|
|
43
73
|
enumerable: true,
|
|
44
74
|
get: function () {
|
|
@@ -63,6 +93,36 @@ Object.defineProperty(exports, "__resetSheetRefs", {
|
|
|
63
93
|
return _refsMap.__resetSheetRefs;
|
|
64
94
|
}
|
|
65
95
|
});
|
|
96
|
+
Object.defineProperty(exports, "createSheetEventHandlers", {
|
|
97
|
+
enumerable: true,
|
|
98
|
+
get: function () {
|
|
99
|
+
return _bottomSheetCoordinator.createSheetEventHandlers;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "getAnimatedIndex", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () {
|
|
105
|
+
return _animatedRegistry.getAnimatedIndex;
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(exports, "setAnimatedIndexValue", {
|
|
109
|
+
enumerable: true,
|
|
110
|
+
get: function () {
|
|
111
|
+
return _animatedRegistry.setAnimatedIndexValue;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "useAdapterRef", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () {
|
|
117
|
+
return _useAdapterRef.useAdapterRef;
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
Object.defineProperty(exports, "useAnimatedIndex", {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _useAnimatedIndex.useAnimatedIndex;
|
|
124
|
+
}
|
|
125
|
+
});
|
|
66
126
|
Object.defineProperty(exports, "useBottomSheetContext", {
|
|
67
127
|
enumerable: true,
|
|
68
128
|
get: function () {
|
|
@@ -105,12 +165,19 @@ var _BottomSheetScaleView = require("./BottomSheetScaleView");
|
|
|
105
165
|
var _BottomSheetManaged = require("./BottomSheetManaged");
|
|
106
166
|
var _BottomSheetPortal = require("./BottomSheetPortal");
|
|
107
167
|
var _BottomSheetPersistent = require("./BottomSheetPersistent");
|
|
168
|
+
var _gorhomSheet = require("./adapters/gorhom-sheet");
|
|
169
|
+
var _customModal = require("./adapters/custom-modal");
|
|
170
|
+
var _reactNativeModal = require("./adapters/react-native-modal");
|
|
171
|
+
var _actionsSheet = require("./adapters/actions-sheet");
|
|
172
|
+
var _bottomSheetCoordinator = require("./bottomSheetCoordinator");
|
|
173
|
+
var _useAdapterRef = require("./useAdapterRef");
|
|
174
|
+
var _useAnimatedIndex = require("./useAnimatedIndex");
|
|
175
|
+
var _animatedRegistry = require("./animatedRegistry");
|
|
108
176
|
var _useBottomSheetManager = require("./useBottomSheetManager");
|
|
109
177
|
var _useBottomSheetControl = require("./useBottomSheetControl");
|
|
110
178
|
var _useBottomSheetContext = require("./useBottomSheetContext");
|
|
111
179
|
var _useBottomSheetStatus = require("./useBottomSheetStatus");
|
|
112
180
|
var _bottomSheet = require("./bottomSheet.store");
|
|
113
181
|
var _refsMap = require("./refsMap");
|
|
114
|
-
var _animatedRegistry = require("./animatedRegistry");
|
|
115
182
|
var _portalSessionRegistry = require("./portalSessionRegistry");
|
|
116
183
|
//# sourceMappingURL=index.js.map
|