Skip to content

Commit 7013608

Browse files
committed
chore(web): remove stackBehavior prop and StackBehavior type
1 parent 4b2508c commit 7013608

4 files changed

Lines changed: 0 additions & 62 deletions

File tree

docs/docs/reference/01-configuration.mdx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,6 @@ The offset from the bottom edge when [`detached`](#detached) is enabled.
342342
| - | - | - | - | - |
343343
| `number` | `16` | | ||
344344

345-
## `stackBehavior`
346-
347-
Defines the stack behavior when a modal is presented while another is visible. See [this guide](../guides/stacking) for example.
348-
349-
| Type | Default | 🍎 | 🤖 | 🌐 |
350-
| - | - | - | - | - |
351-
| [`StackBehavior`](types#stackbehavior) | `"switch"` | | ||
352-
353345
## `style`
354346

355347
The sheet's container style override.

docs/docs/reference/04-types.mdx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -155,23 +155,6 @@ Controls how the bottom safe area inset affects detent heights.
155155
| `"automatic"` | System handles insets automatically. This is the default behavior. |
156156
| `"never"` | TrueSheet will keep the layout as-is for precise sizing. |
157157

158-
## `StackBehavior`
159-
160-
Defines the stack behavior when a modal is presented while another is visible. Web only.
161-
162-
```tsx
163-
<TrueSheet stackBehavior="push">
164-
<View />
165-
</TrueSheet>
166-
```
167-
168-
| Value | Description |
169-
| - | - |
170-
| `"push"` | Mount the modal on top of the current one. |
171-
| `"switch"` | Minimize the current modal then mount the new one. This is the default behavior. |
172-
| `"replace"` | Dismiss the current modal then mount the new one. |
173-
| `"none"` | Use a regular BottomSheet instead of BottomSheetModal. Bypasses the modal stack entirely. |
174-
175158
## `DetentInfoEventPayload`
176159

177160
`Object` that comes with most sheet events.

src/TrueSheet.types.ts

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -154,30 +154,6 @@ export interface BlurOptions {
154154
interaction?: boolean;
155155
}
156156

157-
/**
158-
* Defines the stack behavior when a modal is presented on web.
159-
*
160-
* @platform web
161-
*/
162-
export type StackBehavior =
163-
/**
164-
* Mount the modal on top of the current one.
165-
*/
166-
| 'push'
167-
/**
168-
* Minimize the current modal then mount the new one.
169-
*/
170-
| 'switch'
171-
/**
172-
* Dismiss the current modal then mount the new one.
173-
*/
174-
| 'replace'
175-
/**
176-
* Use a regular BottomSheet instead of BottomSheetModal.
177-
* This bypasses the modal stack entirely.
178-
*/
179-
| 'none';
180-
181157
/**
182158
* Inset adjustment behavior for the sheet content.
183159
*/
@@ -489,18 +465,6 @@ export interface TrueSheetProps extends ViewProps {
489465
*/
490466
detachedOffset?: number;
491467

492-
/**
493-
* Defines the stack behavior when a modal is presented.
494-
* - `push`: Mount the modal on top of the current one.
495-
* - `switch`: Minimize the current modal then mount the new one.
496-
* - `replace`: Dismiss the current modal then mount the new one.
497-
* - `none`: Use a regular BottomSheet instead of BottomSheetModal.
498-
*
499-
* @platform web
500-
* @default 'switch'
501-
*/
502-
stackBehavior?: StackBehavior;
503-
504468
/**
505469
* Called when the sheet's content is mounted and ready.
506470
* The sheet automatically waits for this event before presenting.

src/navigation/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ export type TrueSheetNavigationSheetProps = Pick<
148148
| 'elevation'
149149
| 'detached'
150150
| 'detachedOffset'
151-
| 'stackBehavior'
152151
>;
153152

154153
/**

0 commit comments

Comments
 (0)