react-native-bottom-sheet-stack 1.5.1 → 1.5.3
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/README.md +39 -296
- package/lib/commonjs/BottomSheetManaged.js +2 -2
- package/lib/commonjs/BottomSheetManaged.js.map +1 -1
- package/lib/commonjs/index.js +3 -3
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/{useBottomSheetState.js → useBottomSheetContext.js} +1 -1
- package/lib/commonjs/useBottomSheetContext.js.map +1 -0
- package/lib/typescript/example/src/components/Badge.d.ts +1 -1
- package/lib/typescript/example/src/components/Badge.d.ts.map +1 -1
- package/lib/typescript/example/src/components/Button.d.ts.map +1 -1
- package/lib/typescript/example/src/components/DemoCard.d.ts.map +1 -1
- package/lib/typescript/example/src/components/Sheet.d.ts.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/DynamicContentSheet.d.ts.map +1 -1
- package/lib/typescript/example/src/sheets/NavigationSheets.d.ts.map +1 -1
- package/lib/typescript/example/src/sheets/NestedScaleSheets.d.ts.map +1 -1
- package/lib/typescript/example/src/styles/theme.d.ts +71 -35
- package/lib/typescript/example/src/styles/theme.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/{useBottomSheetState.d.ts → useBottomSheetContext.d.ts} +1 -1
- package/lib/typescript/src/useBottomSheetContext.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/BottomSheetManaged.tsx +1 -1
- package/src/index.tsx +1 -1
- package/lib/commonjs/useBottomSheetState.js.map +0 -1
- package/lib/typescript/src/useBottomSheetState.d.ts.map +0 -1
- /package/src/{useBottomSheetState.ts → useBottomSheetContext.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
# react-native-bottom-sheet-stack
|
|
2
2
|
|
|
3
|
-
A stack manager for [@gorhom/bottom-sheet](https://github.com/gorhom/react-native-bottom-sheet) with
|
|
3
|
+
A stack manager for [@gorhom/bottom-sheet](https://github.com/gorhom/react-native-bottom-sheet) with navigation modes, iOS-style scale animations, and React context preservation.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Documentation
|
|
6
|
+
|
|
7
|
+
**[View Full Documentation](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/)**
|
|
8
|
+
|
|
9
|
+
- [Getting Started](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/getting-started)
|
|
10
|
+
- [Navigation Modes](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/navigation-modes)
|
|
11
|
+
- [Scale Animation](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/scale-animation)
|
|
12
|
+
- [Portal API (Context Preservation)](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/context-preservation)
|
|
13
|
+
- [Type-Safe IDs & Params](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/type-safe-ids)
|
|
14
|
+
- [API Reference](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/api/components)
|
|
6
15
|
|
|
7
16
|
## Features
|
|
8
17
|
|
|
9
|
-
- **Stack Navigation**
|
|
10
|
-
- **Scale Animation**
|
|
11
|
-
- **Context Preservation**
|
|
12
|
-
- **
|
|
13
|
-
- **Group Support**
|
|
18
|
+
- **Stack Navigation** - `push`, `switch`, and `replace` modes for managing multiple sheets
|
|
19
|
+
- **Scale Animation** - iOS-style background scaling effect when sheets are stacked
|
|
20
|
+
- **Context Preservation** - Portal-based API that preserves React context in bottom sheets
|
|
21
|
+
- **Type-Safe** - Full TypeScript support with type-safe portal IDs and params
|
|
22
|
+
- **Group Support** - Isolated stacks for different parts of your app
|
|
14
23
|
|
|
15
24
|
## Installation
|
|
16
25
|
|
|
@@ -24,319 +33,53 @@ yarn add react-native-bottom-sheet-stack
|
|
|
24
33
|
yarn add @gorhom/bottom-sheet react-native-reanimated react-native-gesture-handler react-native-safe-area-context react-native-teleport zustand
|
|
25
34
|
```
|
|
26
35
|
|
|
27
|
-
## Quick
|
|
28
|
-
|
|
29
|
-
### 1. Setup Provider and Host
|
|
36
|
+
## Quick Example
|
|
30
37
|
|
|
31
38
|
```tsx
|
|
32
39
|
import {
|
|
33
40
|
BottomSheetManagerProvider,
|
|
34
41
|
BottomSheetHost,
|
|
35
42
|
BottomSheetScaleView,
|
|
43
|
+
BottomSheetManaged,
|
|
44
|
+
useBottomSheetManager,
|
|
45
|
+
useBottomSheetContext,
|
|
36
46
|
} from 'react-native-bottom-sheet-stack';
|
|
37
|
-
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
38
|
-
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
// 1. Setup
|
|
49
|
+
function App() {
|
|
41
50
|
return (
|
|
42
|
-
<
|
|
43
|
-
<
|
|
44
|
-
<
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<BottomSheetHost />
|
|
49
|
-
</BottomSheetManagerProvider>
|
|
50
|
-
</GestureHandlerRootView>
|
|
51
|
-
</SafeAreaProvider>
|
|
51
|
+
<BottomSheetManagerProvider id="main">
|
|
52
|
+
<BottomSheetScaleView>
|
|
53
|
+
<MyApp />
|
|
54
|
+
</BottomSheetScaleView>
|
|
55
|
+
<BottomSheetHost />
|
|
56
|
+
</BottomSheetManagerProvider>
|
|
52
57
|
);
|
|
53
58
|
}
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### 2. Create a Bottom Sheet Component
|
|
57
|
-
|
|
58
|
-
Use `BottomSheetManaged` instead of `BottomSheet` from `@gorhom/bottom-sheet`:
|
|
59
|
-
|
|
60
|
-
```tsx
|
|
61
|
-
import { forwardRef } from 'react';
|
|
62
|
-
import { View, Text } from 'react-native';
|
|
63
|
-
import { BottomSheetView } from '@gorhom/bottom-sheet';
|
|
64
|
-
import { BottomSheetManaged, useBottomSheetState } from 'react-native-bottom-sheet-stack';
|
|
65
59
|
|
|
60
|
+
// 2. Create a sheet
|
|
66
61
|
const MySheet = forwardRef((props, ref) => {
|
|
67
|
-
const { close } =
|
|
68
|
-
|
|
62
|
+
const { close } = useBottomSheetContext();
|
|
69
63
|
return (
|
|
70
64
|
<BottomSheetManaged ref={ref} snapPoints={['50%']}>
|
|
71
|
-
<
|
|
72
|
-
|
|
73
|
-
<Text>Hello from Bottom Sheet!</Text>
|
|
74
|
-
<Button title="Close" onPress={close} />
|
|
75
|
-
</View>
|
|
76
|
-
</BottomSheetView>
|
|
65
|
+
<Text>Hello!</Text>
|
|
66
|
+
<Button title="Close" onPress={close} />
|
|
77
67
|
</BottomSheetManaged>
|
|
78
68
|
);
|
|
79
69
|
});
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### 3. Open Bottom Sheets
|
|
83
|
-
|
|
84
|
-
```tsx
|
|
85
|
-
import { useBottomSheetManager } from 'react-native-bottom-sheet-stack';
|
|
86
|
-
|
|
87
|
-
function MyComponent() {
|
|
88
|
-
const { openBottomSheet } = useBottomSheetManager();
|
|
89
|
-
|
|
90
|
-
const handleOpen = () => {
|
|
91
|
-
openBottomSheet(<MySheet />, {
|
|
92
|
-
mode: 'push', // 'push' | 'switch' | 'replace'
|
|
93
|
-
scaleBackground: true,
|
|
94
|
-
});
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
return <Button title="Open Sheet" onPress={handleOpen} />;
|
|
98
|
-
}
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
## Navigation Modes
|
|
102
|
-
|
|
103
|
-
| Mode | Description |
|
|
104
|
-
|------|-------------|
|
|
105
|
-
| `push` | Stack a new sheet on top. Previous sheet remains visible underneath. |
|
|
106
|
-
| `switch` | Hide current sheet and show new one. Previous sheet is restored when new one closes. |
|
|
107
|
-
| `replace` | Close current sheet and open new one. Previous sheet is removed from stack. |
|
|
108
|
-
|
|
109
|
-
## Scale Animation
|
|
110
|
-
|
|
111
|
-
Wrap your app content in `BottomSheetScaleView` to enable iOS-style scaling:
|
|
112
|
-
|
|
113
|
-
```tsx
|
|
114
|
-
<BottomSheetManagerProvider
|
|
115
|
-
id="default"
|
|
116
|
-
scaleConfig={{ scale: 0.92, translateY: 0, borderRadius: 24 }}
|
|
117
|
-
>
|
|
118
|
-
<BottomSheetScaleView>
|
|
119
|
-
<YourAppContent />
|
|
120
|
-
</BottomSheetScaleView>
|
|
121
|
-
<BottomSheetHost />
|
|
122
|
-
</BottomSheetManagerProvider>
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
> **Important:** `BottomSheetHost` must be **outside** of `BottomSheetScaleView`. If you wrap `BottomSheetHost` inside `BottomSheetScaleView`, the bottom sheets themselves will also scale, which is not the desired behavior.
|
|
126
|
-
|
|
127
|
-
Open sheets with `scaleBackground: true`:
|
|
128
|
-
|
|
129
|
-
```tsx
|
|
130
|
-
openBottomSheet(<MySheet />, { scaleBackground: true });
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
## Context Preservation (Portal API)
|
|
134
|
-
|
|
135
|
-
The imperative `openBottomSheet()` API stores content in a Zustand store and renders it in `BottomSheetHost`. This means **React context from your component tree is lost**.
|
|
136
|
-
|
|
137
|
-
For cases where you need context (themes, auth, i18n, etc.), use the **portal-based API**:
|
|
138
|
-
|
|
139
|
-
```tsx
|
|
140
|
-
import {
|
|
141
|
-
BottomSheetPortal,
|
|
142
|
-
useBottomSheetControl,
|
|
143
|
-
} from 'react-native-bottom-sheet-stack';
|
|
144
|
-
|
|
145
|
-
function MyComponent() {
|
|
146
|
-
const { open, close, isOpen } = useBottomSheetControl('my-sheet');
|
|
147
70
|
|
|
71
|
+
// 3. Open it
|
|
72
|
+
function OpenButton() {
|
|
73
|
+
const { open } = useBottomSheetManager();
|
|
148
74
|
return (
|
|
149
|
-
<
|
|
150
|
-
|
|
151
|
-
<
|
|
152
|
-
|
|
153
|
-
</BottomSheetPortal>
|
|
154
|
-
|
|
155
|
-
{/* Control it imperatively */}
|
|
156
|
-
<Button title="Open" onPress={() => open({ scaleBackground: true })} />
|
|
157
|
-
</View>
|
|
75
|
+
<Button
|
|
76
|
+
title="Open"
|
|
77
|
+
onPress={() => open(<MySheet />, { scaleBackground: true })}
|
|
78
|
+
/>
|
|
158
79
|
);
|
|
159
80
|
}
|
|
160
81
|
```
|
|
161
82
|
|
|
162
|
-
### How It Works
|
|
163
|
-
|
|
164
|
-
| API | Context | Use Case |
|
|
165
|
-
|-----|---------|----------|
|
|
166
|
-
| `openBottomSheet()` | Lost | Dynamic sheets, simple cases |
|
|
167
|
-
| `BottomSheetPortal` | Preserved | Sheets needing theme, auth, i18n, etc. |
|
|
168
|
-
|
|
169
|
-
The portal API uses [react-native-teleport](https://github.com/nicklockwood/react-native-teleport) to render content in your component tree while displaying it in `BottomSheetHost`.
|
|
170
|
-
|
|
171
|
-
### Type-Safe Portal IDs & Params
|
|
172
|
-
|
|
173
|
-
You can get autocomplete and type checking for portal sheet IDs and their parameters by augmenting the `BottomSheetPortalRegistry` interface.
|
|
174
|
-
|
|
175
|
-
**Step 1:** Create a type declaration file in your project (e.g., `src/types/bottom-sheet.d.ts`):
|
|
176
|
-
|
|
177
|
-
```tsx
|
|
178
|
-
import 'react-native-bottom-sheet-stack';
|
|
179
|
-
|
|
180
|
-
declare module 'react-native-bottom-sheet-stack' {
|
|
181
|
-
interface BottomSheetPortalRegistry {
|
|
182
|
-
'settings-sheet': true; // no params
|
|
183
|
-
'profile-sheet': { userId: string }; // with required params
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
| Value | Meaning |
|
|
189
|
-
|-------|---------|
|
|
190
|
-
| `true` | Sheet has no params |
|
|
191
|
-
| `{ ... }` | Sheet has required params |
|
|
192
|
-
|
|
193
|
-
**Step 2:** Make sure the file is included in your `tsconfig.json`:
|
|
194
|
-
|
|
195
|
-
```json
|
|
196
|
-
{
|
|
197
|
-
"compilerOptions": {
|
|
198
|
-
// ...
|
|
199
|
-
},
|
|
200
|
-
"include": [
|
|
201
|
-
"src/**/*",
|
|
202
|
-
"src/types/**/*.d.ts" // include your declaration files
|
|
203
|
-
]
|
|
204
|
-
}
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
**Step 3:** Now TypeScript will autocomplete and validate IDs and params:
|
|
208
|
-
|
|
209
|
-
```tsx
|
|
210
|
-
// ✅ No params required (defined as `true`)
|
|
211
|
-
settingsControl.open();
|
|
212
|
-
|
|
213
|
-
// ✅ Params required (defined as object)
|
|
214
|
-
profileControl.open({ params: { userId: '123' } });
|
|
215
|
-
|
|
216
|
-
// ❌ Error - missing required params
|
|
217
|
-
profileControl.open(); // TypeScript error!
|
|
218
|
-
```
|
|
219
|
-
|
|
220
|
-
**Step 4:** Access typed params inside your sheet:
|
|
221
|
-
|
|
222
|
-
```tsx
|
|
223
|
-
const ProfileSheet = forwardRef((props, ref) => {
|
|
224
|
-
// Pass the sheet ID as generic to get typed params
|
|
225
|
-
const { params, close } = useBottomSheetState<'profile-sheet'>();
|
|
226
|
-
|
|
227
|
-
return (
|
|
228
|
-
<BottomSheetManaged ref={ref}>
|
|
229
|
-
<Text>User ID: {params.userId}</Text> {/* ✅ type-safe */}
|
|
230
|
-
</BottomSheetManaged>
|
|
231
|
-
);
|
|
232
|
-
});
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
If you don't augment the registry, the `id` accepts any `string` and `params` is `unknown`.
|
|
236
|
-
|
|
237
|
-
## API Reference
|
|
238
|
-
|
|
239
|
-
### Components
|
|
240
|
-
|
|
241
|
-
#### `BottomSheetManagerProvider`
|
|
242
|
-
|
|
243
|
-
| Prop | Type | Description |
|
|
244
|
-
|------|------|-------------|
|
|
245
|
-
| `id` | `string` | Unique identifier for this stack group |
|
|
246
|
-
| `scaleConfig` | `ScaleConfig` | Optional scale animation configuration |
|
|
247
|
-
|
|
248
|
-
#### `BottomSheetHost`
|
|
249
|
-
|
|
250
|
-
Renders the bottom sheet stack. Place after your app content inside `BottomSheetManagerProvider`.
|
|
251
|
-
|
|
252
|
-
#### `BottomSheetScaleView`
|
|
253
|
-
|
|
254
|
-
Wrapper that applies scale animation to its children when sheets are opened with `scaleBackground: true`.
|
|
255
|
-
|
|
256
|
-
#### `BottomSheetManaged`
|
|
257
|
-
|
|
258
|
-
Drop-in replacement for `BottomSheet` from `@gorhom/bottom-sheet`. Accepts all the same props.
|
|
259
|
-
|
|
260
|
-
#### `BottomSheetPortal`
|
|
261
|
-
|
|
262
|
-
| Prop | Type | Description |
|
|
263
|
-
|------|------|-------------|
|
|
264
|
-
| `id` | `BottomSheetPortalId` | Unique identifier for this portal sheet (type-safe if registry is augmented) |
|
|
265
|
-
| `children` | `ReactElement` | The bottom sheet component to render |
|
|
266
|
-
|
|
267
|
-
### Hooks
|
|
268
|
-
|
|
269
|
-
#### `useBottomSheetManager()`
|
|
270
|
-
|
|
271
|
-
```tsx
|
|
272
|
-
const {
|
|
273
|
-
openBottomSheet, // (content, options?) => id
|
|
274
|
-
close, // (id) => void
|
|
275
|
-
clearAll, // () => void
|
|
276
|
-
} = useBottomSheetManager();
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
#### `useBottomSheetState<T>()`
|
|
280
|
-
|
|
281
|
-
Use inside a bottom sheet component. Pass a portal ID as generic for typed params:
|
|
282
|
-
|
|
283
|
-
```tsx
|
|
284
|
-
const {
|
|
285
|
-
bottomSheetState, // { id, status, groupId, ... }
|
|
286
|
-
params, // typed if generic provided, unknown otherwise
|
|
287
|
-
close, // () => void
|
|
288
|
-
} = useBottomSheetState<'my-sheet'>();
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
#### `useBottomSheetControl<T>(id: T)`
|
|
292
|
-
|
|
293
|
-
Control portal-based sheets. Params are type-safe if registry is augmented:
|
|
294
|
-
|
|
295
|
-
```tsx
|
|
296
|
-
const {
|
|
297
|
-
open, // (options?) => void - options include mode, params
|
|
298
|
-
close, // () => void
|
|
299
|
-
updateParams, // (params) => void - update params while open
|
|
300
|
-
resetParams, // () => void - reset params to undefined
|
|
301
|
-
isOpen, // boolean
|
|
302
|
-
status, // 'opening' | 'open' | 'closing' | 'hidden' | null
|
|
303
|
-
} = useBottomSheetControl('my-sheet');
|
|
304
|
-
|
|
305
|
-
// Open with mode and params
|
|
306
|
-
open({
|
|
307
|
-
mode: 'push', // 'push' | 'switch' | 'replace'
|
|
308
|
-
scaleBackground: true,
|
|
309
|
-
params: { userId: '123' } // required if defined in registry
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
// Update params while sheet is open
|
|
313
|
-
updateParams({ userId: '456' });
|
|
314
|
-
|
|
315
|
-
// Reset params
|
|
316
|
-
resetParams();
|
|
317
|
-
```
|
|
318
|
-
|
|
319
|
-
### Types
|
|
320
|
-
|
|
321
|
-
#### `BottomSheetPortalRegistry`
|
|
322
|
-
|
|
323
|
-
Interface to augment for type-safe portal IDs and params. See [Type-Safe Portal IDs & Params](#type-safe-portal-ids--params).
|
|
324
|
-
|
|
325
|
-
#### `BottomSheetPortalId`
|
|
326
|
-
|
|
327
|
-
Type for portal sheet IDs. If `BottomSheetPortalRegistry` is augmented, this is a union of registered keys. Otherwise, it's `string`.
|
|
328
|
-
|
|
329
|
-
#### `BottomSheetPortalParams<T>`
|
|
330
|
-
|
|
331
|
-
Type helper to extract params for a given portal sheet ID. Returns `undefined` if the sheet has no params (`true` in registry), or `ParamType | undefined` if defined (always includes `undefined` since params can be reset).
|
|
332
|
-
|
|
333
|
-
## Example
|
|
334
|
-
|
|
335
|
-
See the [example app](./example) for a full demo including:
|
|
336
|
-
- Navigation flow (push, switch, replace)
|
|
337
|
-
- Nested scale animations
|
|
338
|
-
- Context preservation comparison
|
|
339
|
-
|
|
340
83
|
## License
|
|
341
84
|
|
|
342
85
|
MIT
|
|
@@ -9,7 +9,7 @@ var _bottomSheet = _interopRequireWildcard(require("@gorhom/bottom-sheet"));
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _animatedRegistry = require("./animatedRegistry");
|
|
11
11
|
var _bottomSheetCoordinator = require("./bottomSheetCoordinator");
|
|
12
|
-
var
|
|
12
|
+
var _useBottomSheetContext = require("./useBottomSheetContext");
|
|
13
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
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); }
|
|
@@ -56,7 +56,7 @@ const BottomSheetManaged = exports.BottomSheetManaged = /*#__PURE__*/_react.defa
|
|
|
56
56
|
const backdropComponent = t2 === undefined ? nullBackdrop : t2;
|
|
57
57
|
const {
|
|
58
58
|
bottomSheetState
|
|
59
|
-
} = (0,
|
|
59
|
+
} = (0, _useBottomSheetContext.useBottomSheetContext)();
|
|
60
60
|
let t3;
|
|
61
61
|
if ($[8] !== bottomSheetState.id || $[9] !== externalAnimatedIndex) {
|
|
62
62
|
t3 = externalAnimatedIndex ?? (0, _animatedRegistry.getAnimatedIndex)(bottomSheetState.id);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bottomSheet","_interopRequireWildcard","require","_react","_interopRequireDefault","_animatedRegistry","_bottomSheetCoordinator","
|
|
1
|
+
{"version":3,"names":["_bottomSheet","_interopRequireWildcard","require","_react","_interopRequireDefault","_animatedRegistry","_bottomSheetCoordinator","_useBottomSheetContext","_jsxRuntime","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","nullBackdrop","BottomSheetManaged","exports","React","forwardRef","t0","ref","$","_compilerRuntime","c","children","externalAnimatedIndex","onAnimate","onClose","props","t1","t2","enablePanDownToClose","backdropComponent","animatedIndex","undefined","bottomSheetState","useBottomSheetContext","t3","id","getAnimatedIndex","t4","createSheetEventHandlers","handleAnimate","handleClose","t5","fromIndex","toIndex","fromPosition","toPosition","wrappedOnAnimate","t6","wrappedOnClose","t7","Symbol","for","stiffness","damping","mass","config","useBottomSheetSpringConfigs","t8","jsx"],"sourceRoot":"../../src","sources":["BottomSheetManaged.tsx"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,uBAAA,CAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAH,OAAA;AACA,IAAAI,uBAAA,GAAAJ,OAAA;AACA,IAAAK,sBAAA,GAAAL,OAAA;AAAgE,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAE,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD,CAAA,KAAAL,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAK,CAAA,SAAAA,CAAA,IAAAL,CAAA,IAAAA,CAAA,CAAAC,UAAA,SAAAD,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAE,OAAA,EAAAF,CAAA,QAAAM,CAAA,GAAAH,wBAAA,CAAAE,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAC,GAAA,CAAAP,CAAA,UAAAM,CAAA,CAAAE,GAAA,CAAAR,CAAA,OAAAS,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAf,CAAA,oBAAAe,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAA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AAA,GACJQ,KAAK;MACMK,aAAa,EAAbA,aAAa;MACnBkB,OAAc,EAAdA,cAAc;MACZF,SAAgB,EAAhBA,gBAAgB;MACRjB,iBAAiB,EAAjBA,iBAAiB;MACdD,oBAAoB,EAApBA,oBAAoB;MAAAP,QAAA,EAEzCA;IAAQ,CACU,CAAC;IAAAH,CAAA,OAAAY,aAAA;IAAAZ,CAAA,OAAAW,iBAAA;IAAAX,CAAA,OAAAG,QAAA;IAAAH,CAAA,OAAAqC,MAAA;IAAArC,CAAA,OAAAU,oBAAA;IAAAV,CAAA,OAAAO,KAAA;IAAAP,CAAA,OAAAD,GAAA;IAAAC,CAAA,OAAA4B,gBAAA;IAAA5B,CAAA,OAAA8B,cAAA;IAAA9B,CAAA,OAAAuC,EAAA;EAAA;IAAAA,EAAA,GAAAvC,CAAA;EAAA;EAAA,OAXtBuC,EAWsB;AAAA,CAG5B,CAAC","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -36,7 +36,7 @@ Object.defineProperty(exports, "BottomSheetScaleView", {
|
|
|
36
36
|
Object.defineProperty(exports, "useBottomSheetContext", {
|
|
37
37
|
enumerable: true,
|
|
38
38
|
get: function () {
|
|
39
|
-
return
|
|
39
|
+
return _useBottomSheetContext.useBottomSheetContext;
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "useBottomSheetControl", {
|
|
@@ -54,7 +54,7 @@ Object.defineProperty(exports, "useBottomSheetManager", {
|
|
|
54
54
|
Object.defineProperty(exports, "useBottomSheetState", {
|
|
55
55
|
enumerable: true,
|
|
56
56
|
get: function () {
|
|
57
|
-
return
|
|
57
|
+
return _useBottomSheetContext.useBottomSheetState;
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "useBottomSheetStatus", {
|
|
@@ -70,6 +70,6 @@ var _BottomSheetManaged = require("./BottomSheetManaged");
|
|
|
70
70
|
var _BottomSheetPortal = require("./BottomSheetPortal");
|
|
71
71
|
var _useBottomSheetManager = require("./useBottomSheetManager");
|
|
72
72
|
var _useBottomSheetControl = require("./useBottomSheetControl");
|
|
73
|
-
var
|
|
73
|
+
var _useBottomSheetContext = require("./useBottomSheetContext");
|
|
74
74
|
var _useBottomSheetStatus = require("./useBottomSheetStatus");
|
|
75
75
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_BottomSheetManager","require","_BottomSheetHost","_BottomSheetScaleView","_BottomSheetManaged","_BottomSheetPortal","_useBottomSheetManager","_useBottomSheetControl","
|
|
1
|
+
{"version":3,"names":["_BottomSheetManager","require","_BottomSheetHost","_BottomSheetScaleView","_BottomSheetManaged","_BottomSheetPortal","_useBottomSheetManager","_useBottomSheetControl","_useBottomSheetContext","_useBottomSheetStatus"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AAGA,IAAAK,sBAAA,GAAAL,OAAA;AACA,IAAAM,sBAAA,GAAAN,OAAA;AAIA,IAAAO,sBAAA,GAAAP,OAAA;AAKA,IAAAQ,qBAAA,GAAAR,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_BottomSheet","require","_bottomSheet","useBottomSheetContext","$","_compilerRuntime","c","context","useMaybeBottomSheetContext","t0","id","state","sheetsById","bottomSheetState","useBottomSheetStore","startClosing","_temp","Error","t1","close","t2","params","t3","closeBottomSheet","state_0","useBottomSheetState","exports"],"sourceRoot":"../../src","sources":["useBottomSheetContext.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;A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MAAAS,gBAAA;IAAAT,CAAA,MAAAe,KAAA;IAAAf,CAAA,MAAAgB,EAAA;IAAAhB,CAAA,MAAAkB,EAAA;EAAA;IAAAA,EAAA,GAAAlB,CAAA;EAAA;EAAA,OALMkB,EAKN;AAAA;;AAGH;AACA;AACA;AA7BO,SAAAN,MAAAQ,OAAA;EAAA,OAS+Cb,OAAK,CAAAI,YAAa;AAAA;AAqBjE,MAAMU,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGtB,qBAAqB","ignoreList":[]}
|
|
@@ -4,6 +4,6 @@ interface BadgeProps {
|
|
|
4
4
|
color?: string;
|
|
5
5
|
style?: StyleProp<ViewStyle>;
|
|
6
6
|
}
|
|
7
|
-
export declare function Badge({ label, color, style }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare function Badge({ label, color, style, }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../example/src/components/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../../../example/src/components/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,KAA0B,EAC1B,KAAK,GACN,EAAE,UAAU,2CAMZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../example/src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,WAAW,2CAU5D;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,WAAW,2CAUrE;AAED,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,KAAK,GACN,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../example/src/components/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,cAAc,CAAC;AAItB,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,wBAAgB,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,WAAW,2CAU5D;AAED,wBAAgB,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,WAAW,2CAUrE;AAED,UAAU,gBAAiB,SAAQ,WAAW;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,WAAW,CAAC,EAC1B,OAAO,EACP,KAAK,EACL,KAAK,EACL,KAAK,GACN,EAAE,gBAAgB,2CAclB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DemoCard.d.ts","sourceRoot":"","sources":["../../../../../example/src/components/DemoCard.tsx"],"names":[],"mappings":"AAIA,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,WAAW,EACX,KAAK,EACL,OAAO,GACR,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"DemoCard.d.ts","sourceRoot":"","sources":["../../../../../example/src/components/DemoCard.tsx"],"names":[],"mappings":"AAIA,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,WAAW,EACX,KAAK,EACL,OAAO,GACR,EAAE,aAAa,2CAaf;AAED,UAAU,gBAAgB;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,gBAAgB,2CAS5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../../example/src/components/Sheet.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../../../../../example/src/components/Sheet.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AACpF,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACzE,OAAO,EAAQ,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAMpE,UAAU,UAAU;IAClB,QAAQ,EAAE,SAAS,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED,eAAO,MAAM,KAAK,2GA8FjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomeScreen.d.ts","sourceRoot":"","sources":["../../../../../example/src/screens/HomeScreen.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,UAAU,
|
|
1
|
+
{"version":3,"file":"HomeScreen.d.ts","sourceRoot":"","sources":["../../../../../example/src/screens/HomeScreen.tsx"],"names":[],"mappings":"AAoBA,wBAAgB,UAAU,4CAqHzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextSheets.d.ts","sourceRoot":"","sources":["../../../../../example/src/sheets/ContextSheets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAmBpF,UAAU,2BAA2B;IACnC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"ContextSheets.d.ts","sourceRoot":"","sources":["../../../../../example/src/sheets/ContextSheets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAmBpF,UAAU,2BAA2B;IACnC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,eAAO,MAAM,sBAAsB,4HAgCjC,CAAC;AAIH,eAAO,MAAM,sBAAsB,8FA+BlC,CAAC;AAIF,eAAO,MAAM,kBAAkB,8FA6D7B,CAAC;AAIH,eAAO,MAAM,qBAAqB,8FAiCjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicContentSheet.d.ts","sourceRoot":"","sources":["../../../../../example/src/sheets/DynamicContentSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"DynamicContentSheet.d.ts","sourceRoot":"","sources":["../../../../../example/src/sheets/DynamicContentSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAyBpF,eAAO,MAAM,UAAU,8FA+DrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationSheets.d.ts","sourceRoot":"","sources":["../../../../../example/src/sheets/NavigationSheets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAWpF,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"NavigationSheets.d.ts","sourceRoot":"","sources":["../../../../../example/src/sheets/NavigationSheets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAWpF,eAAO,MAAM,MAAM,8FAsCjB,CAAC;AAIH,eAAO,MAAM,MAAM,8FAiCjB,CAAC;AAIH,eAAO,MAAM,MAAM,8FAqBjB,CAAC;AAIH,eAAO,MAAM,MAAM,8FAgBjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestedScaleSheets.d.ts","sourceRoot":"","sources":["../../../../../example/src/sheets/NestedScaleSheets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAWpF,eAAO,MAAM,YAAY,8FA0BvB,CAAC;AAIH,eAAO,MAAM,YAAY,8FA0BvB,CAAC;AAIH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"NestedScaleSheets.d.ts","sourceRoot":"","sources":["../../../../../example/src/sheets/NestedScaleSheets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAWpF,eAAO,MAAM,YAAY,8FA0BvB,CAAC;AAIH,eAAO,MAAM,YAAY,8FA0BvB,CAAC;AAIH,eAAO,MAAM,YAAY,8FAyBvB,CAAC"}
|
|
@@ -1,54 +1,75 @@
|
|
|
1
1
|
export declare const colors: {
|
|
2
|
-
readonly background: "#
|
|
3
|
-
readonly surface: "#
|
|
4
|
-
readonly surfaceLight: "#
|
|
5
|
-
readonly surfaceDark: "#
|
|
6
|
-
readonly
|
|
2
|
+
readonly background: "#0a0a12";
|
|
3
|
+
readonly surface: "#151521";
|
|
4
|
+
readonly surfaceLight: "#1f1f2e";
|
|
5
|
+
readonly surfaceDark: "#0d0d16";
|
|
6
|
+
readonly surfaceElevated: "#1a1a28";
|
|
7
|
+
readonly border: "#2a2a3d";
|
|
8
|
+
readonly borderLight: "#3d3d52";
|
|
7
9
|
readonly text: "#ffffff";
|
|
8
|
-
readonly textSecondary: "#
|
|
9
|
-
readonly textMuted: "#
|
|
10
|
-
readonly primary: "#
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
10
|
+
readonly textSecondary: "#a1a1aa";
|
|
11
|
+
readonly textMuted: "#71717a";
|
|
12
|
+
readonly primary: "#818cf8";
|
|
13
|
+
readonly primaryDark: "#6366f1";
|
|
14
|
+
readonly success: "#34d399";
|
|
15
|
+
readonly successDark: "#10b981";
|
|
16
|
+
readonly error: "#f87171";
|
|
17
|
+
readonly errorDark: "#ef4444";
|
|
18
|
+
readonly warning: "#fbbf24";
|
|
19
|
+
readonly warningDark: "#f59e0b";
|
|
20
|
+
readonly purple: "#a78bfa";
|
|
21
|
+
readonly purpleDark: "#8b5cf6";
|
|
22
|
+
readonly pink: "#f472b6";
|
|
23
|
+
readonly pinkDark: "#ec4899";
|
|
24
|
+
readonly cyan: "#22d3ee";
|
|
25
|
+
readonly nested1: "#16162a";
|
|
26
|
+
readonly nested2: "#1c1c38";
|
|
27
|
+
readonly nested3: "#232347";
|
|
19
28
|
};
|
|
20
29
|
export declare const sharedStyles: {
|
|
21
30
|
root: {
|
|
22
31
|
flex: number;
|
|
23
|
-
backgroundColor: "#
|
|
32
|
+
backgroundColor: "#0a0a12";
|
|
24
33
|
};
|
|
25
34
|
container: {
|
|
26
35
|
flex: number;
|
|
27
|
-
backgroundColor: "#
|
|
36
|
+
backgroundColor: "#0a0a12";
|
|
28
37
|
};
|
|
29
38
|
button: {
|
|
30
39
|
backgroundColor: "#6366f1";
|
|
31
40
|
borderRadius: number;
|
|
32
|
-
|
|
41
|
+
paddingVertical: number;
|
|
42
|
+
paddingHorizontal: number;
|
|
33
43
|
alignItems: "center";
|
|
44
|
+
shadowColor: "#818cf8";
|
|
45
|
+
shadowOffset: {
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
};
|
|
49
|
+
shadowOpacity: number;
|
|
50
|
+
shadowRadius: number;
|
|
51
|
+
elevation: number;
|
|
34
52
|
};
|
|
35
53
|
buttonText: {
|
|
36
54
|
color: "#ffffff";
|
|
37
55
|
fontSize: number;
|
|
38
56
|
fontWeight: "600";
|
|
57
|
+
letterSpacing: number;
|
|
39
58
|
};
|
|
40
59
|
secondaryButton: {
|
|
41
|
-
backgroundColor:
|
|
60
|
+
backgroundColor: "#1a1a28";
|
|
42
61
|
borderRadius: number;
|
|
43
|
-
|
|
62
|
+
paddingVertical: number;
|
|
63
|
+
paddingHorizontal: number;
|
|
44
64
|
alignItems: "center";
|
|
45
65
|
borderWidth: number;
|
|
46
|
-
borderColor: "#
|
|
66
|
+
borderColor: "#2a2a3d";
|
|
47
67
|
};
|
|
48
68
|
secondaryButtonText: {
|
|
49
|
-
color: "#
|
|
69
|
+
color: "#a1a1aa";
|
|
50
70
|
fontSize: number;
|
|
51
71
|
fontWeight: "600";
|
|
72
|
+
letterSpacing: number;
|
|
52
73
|
};
|
|
53
74
|
smallButton: {
|
|
54
75
|
backgroundColor: "#6366f1";
|
|
@@ -67,16 +88,17 @@ export declare const sharedStyles: {
|
|
|
67
88
|
color: "#ffffff";
|
|
68
89
|
textAlign: "center";
|
|
69
90
|
marginBottom: number;
|
|
91
|
+
letterSpacing: number;
|
|
70
92
|
};
|
|
71
93
|
text: {
|
|
72
94
|
fontSize: number;
|
|
73
|
-
color: "#
|
|
95
|
+
color: "#a1a1aa";
|
|
74
96
|
marginVertical: number;
|
|
75
97
|
lineHeight: number;
|
|
76
98
|
};
|
|
77
99
|
sheetContent: {
|
|
78
100
|
paddingHorizontal: number;
|
|
79
|
-
|
|
101
|
+
paddingTop: number;
|
|
80
102
|
paddingBottom: number;
|
|
81
103
|
flexGrow: number;
|
|
82
104
|
};
|
|
@@ -91,74 +113,88 @@ export declare const sharedStyles: {
|
|
|
91
113
|
levelBadgeText: {
|
|
92
114
|
color: "#ffffff";
|
|
93
115
|
fontSize: number;
|
|
94
|
-
fontWeight: "
|
|
116
|
+
fontWeight: "700";
|
|
95
117
|
textTransform: "uppercase";
|
|
96
118
|
letterSpacing: number;
|
|
97
119
|
};
|
|
98
120
|
contextBox: {
|
|
99
|
-
backgroundColor: "#
|
|
121
|
+
backgroundColor: "#0d0d16";
|
|
100
122
|
borderRadius: number;
|
|
101
123
|
padding: number;
|
|
102
124
|
marginBottom: number;
|
|
103
125
|
borderWidth: number;
|
|
104
|
-
borderColor: "#
|
|
126
|
+
borderColor: "#2a2a3d";
|
|
105
127
|
};
|
|
106
128
|
contextTitle: {
|
|
107
129
|
color: "#ffffff";
|
|
108
130
|
fontSize: number;
|
|
109
131
|
fontWeight: "600";
|
|
110
132
|
marginBottom: number;
|
|
133
|
+
textTransform: "uppercase";
|
|
134
|
+
letterSpacing: number;
|
|
111
135
|
};
|
|
112
136
|
contextValue: {
|
|
113
|
-
color: "#
|
|
137
|
+
color: "#a1a1aa";
|
|
114
138
|
fontSize: number;
|
|
115
139
|
marginBottom: number;
|
|
116
140
|
fontFamily: string;
|
|
117
141
|
};
|
|
118
142
|
scaleInfo: {
|
|
119
|
-
backgroundColor: "#
|
|
143
|
+
backgroundColor: "#0d0d16";
|
|
120
144
|
borderRadius: number;
|
|
121
145
|
padding: number;
|
|
122
146
|
marginTop: number;
|
|
147
|
+
borderWidth: number;
|
|
148
|
+
borderColor: "#2a2a3d";
|
|
123
149
|
};
|
|
124
150
|
scaleInfoTitle: {
|
|
125
151
|
color: "#ffffff";
|
|
126
152
|
fontSize: number;
|
|
127
153
|
fontWeight: "600";
|
|
128
154
|
marginBottom: number;
|
|
155
|
+
textTransform: "uppercase";
|
|
156
|
+
letterSpacing: number;
|
|
129
157
|
};
|
|
130
158
|
scaleInfoItem: {
|
|
131
|
-
color: "#
|
|
159
|
+
color: "#a1a1aa";
|
|
132
160
|
fontSize: number;
|
|
133
161
|
marginBottom: number;
|
|
134
162
|
};
|
|
135
163
|
statBox: {
|
|
136
164
|
flex: number;
|
|
137
|
-
backgroundColor: "#
|
|
165
|
+
backgroundColor: "#1a1a28";
|
|
138
166
|
borderRadius: number;
|
|
139
167
|
padding: number;
|
|
140
168
|
alignItems: "center";
|
|
169
|
+
borderWidth: number;
|
|
170
|
+
borderColor: "#2a2a3d";
|
|
141
171
|
};
|
|
142
172
|
statValue: {
|
|
143
173
|
fontSize: number;
|
|
144
174
|
fontWeight: "700";
|
|
145
175
|
color: "#ffffff";
|
|
176
|
+
letterSpacing: number;
|
|
146
177
|
};
|
|
147
178
|
statLabel: {
|
|
148
179
|
fontSize: number;
|
|
149
|
-
color: "#
|
|
180
|
+
color: "#71717a";
|
|
150
181
|
marginTop: number;
|
|
182
|
+
textTransform: "uppercase";
|
|
183
|
+
letterSpacing: number;
|
|
151
184
|
};
|
|
152
185
|
loadingBox: {
|
|
153
|
-
backgroundColor: "#
|
|
186
|
+
backgroundColor: "#1a1a28";
|
|
154
187
|
borderRadius: number;
|
|
155
188
|
padding: number;
|
|
156
189
|
marginBottom: number;
|
|
190
|
+
borderWidth: number;
|
|
191
|
+
borderColor: "#f59e0b";
|
|
157
192
|
};
|
|
158
193
|
loadingText: {
|
|
159
|
-
color: "#
|
|
194
|
+
color: "#fbbf24";
|
|
160
195
|
textAlign: "center";
|
|
161
196
|
fontSize: number;
|
|
197
|
+
fontWeight: "500";
|
|
162
198
|
};
|
|
163
199
|
};
|
|
164
200
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../example/src/styles/theme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../example/src/styles/theme.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCT,CAAC;AAEX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwLvB,CAAC"}
|
|
@@ -5,7 +5,7 @@ export { BottomSheetManaged, type BottomSheetRef } from './BottomSheetManaged';
|
|
|
5
5
|
export { BottomSheetPortal } from './BottomSheetPortal';
|
|
6
6
|
export { useBottomSheetManager } from './useBottomSheetManager';
|
|
7
7
|
export { useBottomSheetControl, type UseBottomSheetControlReturn, } from './useBottomSheetControl';
|
|
8
|
-
export { useBottomSheetContext, useBottomSheetState, type UseBottomSheetContextReturn, } from './
|
|
8
|
+
export { useBottomSheetContext, useBottomSheetState, type UseBottomSheetContextReturn, } from './useBottomSheetContext';
|
|
9
9
|
export { useBottomSheetStatus, type UseBottomSheetStatusReturn, } from './useBottomSheetStatus';
|
|
10
10
|
export type { ScaleConfig } from './useScaleAnimation';
|
|
11
11
|
export type { BottomSheetStatus, OpenMode, BottomSheetState, } from './bottomSheet.store';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,KAAK,2BAA2B,GACjC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,KAAK,2BAA2B,GACjC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,oBAAoB,EACpB,KAAK,0BAA0B,GAChC,MAAM,wBAAwB,CAAC;AAGhC,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,YAAY,EACV,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,GACxB,MAAM,gBAAgB,CAAC"}
|
|
@@ -15,4 +15,4 @@ export declare function useBottomSheetContext<T extends BottomSheetPortalId>():
|
|
|
15
15
|
* @deprecated Use `useBottomSheetContext` instead
|
|
16
16
|
*/
|
|
17
17
|
export declare const useBottomSheetState: typeof useBottomSheetContext;
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=useBottomSheetContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBottomSheetContext.d.ts","sourceRoot":"","sources":["../../../src/useBottomSheetContext.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,gBAAgB,EACtB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,2BAA2B,CAAC,OAAO;IAClD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,gDAAgD;AAChD,wBAAgB,qBAAqB,IAAI,2BAA2B,CAAC,OAAO,CAAC,CAAC;AAC9E,2DAA2D;AAC3D,wBAAgB,qBAAqB,CACnC,CAAC,SAAS,mBAAmB,KAC1B,2BAA2B,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC;AA4B7D;;GAEG;AACH,eAAO,MAAM,mBAAmB,8BAAwB,CAAC"}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import React from 'react';
|
|
|
7
7
|
|
|
8
8
|
import { getAnimatedIndex } from './animatedRegistry';
|
|
9
9
|
import { createSheetEventHandlers } from './bottomSheetCoordinator';
|
|
10
|
-
import { useBottomSheetContext } from './
|
|
10
|
+
import { useBottomSheetContext } from './useBottomSheetContext';
|
|
11
11
|
|
|
12
12
|
export interface BottomSheetRef extends BottomSheetMethods {}
|
|
13
13
|
|
package/src/index.tsx
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_BottomSheet","require","_bottomSheet","useBottomSheetContext","$","_compilerRuntime","c","context","useMaybeBottomSheetContext","t0","id","state","sheetsById","bottomSheetState","useBottomSheetStore","startClosing","_temp","Error","t1","close","t2","params","t3","closeBottomSheet","state_0","useBottomSheetState","exports"],"sourceRoot":"../../src","sources":["useBottomSheetState.ts"],"mappings":";;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAiBA;;AAEA;;AAIO,SAAAE,sBAAA;EAAA,MAAAC,CAAA,OAAAC,gBAAA,CAAAC,CAAA;EAGL,MAAAC,OAAA,GAAgB,IAAAC,uCAA0B,EAAC,CAAC;EAAC,IAAAC,EAAA;EAAA,IAAAL,CAAA,QAAAG,OAAA,EAAAG,EAAA;IAG3CD,EAAA,GAAAE,KAAA,IAAWA,KAAK,CAAAC,UAAW,CAACL,OAAO,EAAAG,EAAI,CAAE;IAAAN,CAAA,MAAAG,OAAA,EAAAG,EAAA;IAAAN,CAAA,MAAAK,EAAA;EAAA;IAAAA,EAAA,GAAAL,CAAA;EAAA;EAD3C,MAAAS,gBAAA,GAAyB,IAAAC,gCAAmB,EAC1CL,EACF,CAAC;EAED,MAAAM,YAAA,GAAqB,IA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O,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,gBAAgB,CAAC;AAExB,MAAM,WAAW,2BAA2B,CAAC,OAAO;IAClD,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,gDAAgD;AAChD,wBAAgB,qBAAqB,IAAI,2BAA2B,CAAC,OAAO,CAAC,CAAC;AAC9E,2DAA2D;AAC3D,wBAAgB,qBAAqB,CACnC,CAAC,SAAS,mBAAmB,KAC1B,2BAA2B,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC;AA4B7D;;GAEG;AACH,eAAO,MAAM,mBAAmB,8BAAwB,CAAC"}
|
|
File without changes
|