@capgo/capacitor-sheets 8.0.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.
Files changed (63) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +437 -0
  3. package/dist/angular/index.d.mts +114 -0
  4. package/dist/angular/index.d.ts +114 -0
  5. package/dist/angular/index.js +1890 -0
  6. package/dist/angular/index.js.map +1 -0
  7. package/dist/angular/index.mjs +1863 -0
  8. package/dist/angular/index.mjs.map +1 -0
  9. package/dist/chunk-LAUTMWR7.mjs +261 -0
  10. package/dist/chunk-LAUTMWR7.mjs.map +1 -0
  11. package/dist/chunk-YBLI7KN6.mjs +1629 -0
  12. package/dist/chunk-YBLI7KN6.mjs.map +1 -0
  13. package/dist/components-4JACDCD4.mjs +48 -0
  14. package/dist/components-4JACDCD4.mjs.map +1 -0
  15. package/dist/index.d.mts +513 -0
  16. package/dist/index.d.ts +513 -0
  17. package/dist/index.js +2069 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/index.mjs +70 -0
  20. package/dist/index.mjs.map +1 -0
  21. package/dist/react/index.d.mts +240 -0
  22. package/dist/react/index.d.ts +240 -0
  23. package/dist/react/index.js +1900 -0
  24. package/dist/react/index.js.map +1 -0
  25. package/dist/react/index.mjs +1871 -0
  26. package/dist/react/index.mjs.map +1 -0
  27. package/dist/solid/index.d.mts +114 -0
  28. package/dist/solid/index.d.ts +114 -0
  29. package/dist/solid/index.js +1890 -0
  30. package/dist/solid/index.js.map +1 -0
  31. package/dist/solid/index.mjs +1863 -0
  32. package/dist/solid/index.mjs.map +1 -0
  33. package/dist/styles-ZKNWSPZR.mjs +9 -0
  34. package/dist/styles-ZKNWSPZR.mjs.map +1 -0
  35. package/dist/svelte/index.d.mts +121 -0
  36. package/dist/svelte/index.d.ts +121 -0
  37. package/dist/svelte/index.js +1904 -0
  38. package/dist/svelte/index.js.map +1 -0
  39. package/dist/svelte/index.mjs +1876 -0
  40. package/dist/svelte/index.mjs.map +1 -0
  41. package/dist/vue/index.d.mts +114 -0
  42. package/dist/vue/index.d.ts +114 -0
  43. package/dist/vue/index.js +1890 -0
  44. package/dist/vue/index.js.map +1 -0
  45. package/dist/vue/index.mjs +1863 -0
  46. package/dist/vue/index.mjs.map +1 -0
  47. package/docs/demos/bottom-sheet.webp +0 -0
  48. package/docs/demos/card.webp +0 -0
  49. package/docs/demos/detached-sheet.webp +0 -0
  50. package/docs/demos/lightbox.webp +0 -0
  51. package/docs/demos/long-sheet.webp +0 -0
  52. package/docs/demos/page-from-bottom.webp +0 -0
  53. package/docs/demos/page.webp +0 -0
  54. package/docs/demos/parallax-page.webp +0 -0
  55. package/docs/demos/persistent-sheet-with-detent.webp +0 -0
  56. package/docs/demos/sheet-with-depth.webp +0 -0
  57. package/docs/demos/sheet-with-detent.webp +0 -0
  58. package/docs/demos/sheet-with-keyboard.webp +0 -0
  59. package/docs/demos/sheet-with-stacking.webp +0 -0
  60. package/docs/demos/sidebar.webp +0 -0
  61. package/docs/demos/toast.webp +0 -0
  62. package/docs/demos/top-sheet.webp +0 -0
  63. package/package.json +162 -0
@@ -0,0 +1,240 @@
1
+ /** Placement of the sheet content inside the viewport. */
2
+ type SheetPlacement = 'top' | 'bottom' | 'left' | 'right' | 'center';
3
+ /** Swipe track used when the content can be dismissed from an edge. */
4
+ type SheetTrack = Exclude<SheetPlacement, 'center'>;
5
+ /** Viewport edges protected by safe-area insets. */
6
+ type SheetSafeAreaEdge = 'top' | 'bottom' | 'left' | 'right';
7
+ /** Safe-area behavior for Capacitor WebViews and mobile browsers. */
8
+ type SheetSafeAreaMode = boolean | 'auto' | 'none' | SheetSafeAreaEdge[];
9
+ /** Runtime travel state emitted by sheet lifecycle events. */
10
+ type SheetTravelStatus = 'idle' | 'entering' | 'exiting' | 'dragging' | 'settling';
11
+ /** Built-in animation presets tuned for mobile WebViews. */
12
+ type SheetAnimationPreset = 'gentle' | 'smooth' | 'snappy';
13
+ /** Easing string accepted by the Web Animations API. */
14
+ type SheetEasing = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | string;
15
+ /** Animation options for programmatic present, dismiss, and detent steps. */
16
+ interface SheetAnimationSettings {
17
+ /** Named preset. Defaults to `smooth`. */
18
+ preset?: SheetAnimationPreset;
19
+ /** Duration in milliseconds. Ignored when `skip` is true. */
20
+ duration?: number;
21
+ /** CSS easing used by WAAPI. */
22
+ easing?: SheetEasing;
23
+ /** Skip the animation and snap to the final state. */
24
+ skip?: boolean | 'auto';
25
+ /** For dual-track sheets, select the track used by this programmatic movement. */
26
+ track?: SheetTrack;
27
+ /** Keep content fixed while related outlets/backdrops animate. */
28
+ contentMove?: boolean;
29
+ }
30
+ /** Options accepted by the `<cap-sheet>` custom element and setup helpers. */
31
+ interface SheetOptions {
32
+ /** Unique component id used by `for` attributes. */
33
+ componentId?: string;
34
+ /** Sheet stack id. Use the closest `<cap-sheet-stack>` when omitted. */
35
+ stack?: string;
36
+ /** Initial uncontrolled presentation state. */
37
+ defaultPresented?: boolean;
38
+ /** Controlled presentation state. */
39
+ presented?: boolean;
40
+ /** Initial detent index for uncontrolled sheets. */
41
+ defaultActiveDetent?: number;
42
+ /** Controlled detent index. */
43
+ activeDetent?: number;
44
+ /** Intermediate detents between dismissed `0` and fully presented `n`. */
45
+ detents?: string | string[];
46
+ /** WAI-ARIA role applied to `<cap-sheet-view>`. */
47
+ sheetRole?: 'dialog' | 'alertdialog' | 'status' | string;
48
+ /** Where content sits when fully presented. */
49
+ contentPlacement?: SheetPlacement;
50
+ /** Safe-area edges protected by the sheet viewport. Defaults to `auto`. */
51
+ safeArea?: SheetSafeAreaMode;
52
+ /** Edge tracks that can dismiss the sheet. */
53
+ tracks?: SheetTrack | SheetTrack[];
54
+ /** Enables pointer, touch, trackpad, and wheel travel gestures. */
55
+ swipe?: boolean;
56
+ /** Allows swiping to detent `0` and dismissing. */
57
+ swipeDismissal?: boolean;
58
+ /** Allows a soft overshoot past the end detents. */
59
+ swipeOvershoot?: boolean;
60
+ /** Prevents gestures from escaping to page scroll while the sheet can travel. */
61
+ swipeTrap?: boolean;
62
+ /** Prevents interaction outside the sheet view while presented. */
63
+ inertOutside?: boolean;
64
+ /** Blocks OS edge navigation conflicts near the travel edge when possible. */
65
+ nativeEdgeSwipePrevention?: boolean;
66
+ /** Keeps focused inputs visible while the visual viewport changes. */
67
+ nativeFocusScrollPrevention?: boolean;
68
+ /** Dismiss when clicking outside the sheet content. */
69
+ closeOnOutsideClick?: boolean;
70
+ /** Dismiss when pressing Escape. */
71
+ closeOnEscape?: boolean;
72
+ /** Keep keyboard focus inside the sheet view while modal. */
73
+ focusTrap?: boolean;
74
+ /** Restore focus to the trigger when dismissed. */
75
+ restoreFocus?: boolean;
76
+ /** Blend the page theme color with the backdrop color. */
77
+ themeColorDimming?: false | 'auto';
78
+ /** Animation settings used when presenting. */
79
+ enteringAnimationSettings?: SheetAnimationSettings;
80
+ /** Animation settings used when dismissing. */
81
+ exitingAnimationSettings?: SheetAnimationSettings;
82
+ /** Animation settings used when stepping between detents. */
83
+ steppingAnimationSettings?: SheetAnimationSettings;
84
+ }
85
+ /** Detail emitted by presentation state changes. */
86
+ interface SheetPresentedChangeEvent {
87
+ presented: boolean;
88
+ source: 'programmatic' | 'trigger' | 'gesture' | 'escape' | 'outside';
89
+ }
90
+ /** Detail emitted by detent state changes. */
91
+ interface SheetActiveDetentChangeEvent {
92
+ activeDetent: number;
93
+ previousActiveDetent: number;
94
+ }
95
+ /** Detail emitted continuously while the sheet travels. */
96
+ interface SheetTravelEvent {
97
+ /** Current normalized travel progress from dismissed `0` to fully presented `1`. */
98
+ progress: number;
99
+ /** Active detent index nearest to the current travel position. */
100
+ activeDetent: number;
101
+ /** Current offset from the presented position, in em. */
102
+ offset: number;
103
+ /** Current travel status. */
104
+ status: SheetTravelStatus;
105
+ }
106
+
107
+ /** Configure a `<cap-sheet>` element from React effects. */
108
+ declare function setupSheet(element: HTMLElement, options?: Partial<SheetOptions> & {
109
+ onPresentedChange?: (event: SheetPresentedChangeEvent) => void;
110
+ onActiveDetentChange?: (event: SheetActiveDetentChangeEvent) => void;
111
+ onTravel?: (event: SheetTravelEvent) => void;
112
+ }): () => void;
113
+ /** Present a sheet by id from React event handlers. */
114
+ declare function presentSheet(id: string): Promise<void> | undefined;
115
+ /** Dismiss a sheet by id from React event handlers. */
116
+ declare function dismissSheet(id: string): Promise<void> | undefined;
117
+ type CapElementAttributes = {
118
+ key?: unknown;
119
+ ref?: unknown;
120
+ children?: unknown;
121
+ id?: string;
122
+ class?: string;
123
+ className?: string;
124
+ style?: unknown;
125
+ slot?: string;
126
+ role?: string;
127
+ part?: string;
128
+ title?: string;
129
+ tabIndex?: number;
130
+ hidden?: boolean;
131
+ [attribute: `data-${string}`]: unknown;
132
+ [attribute: `aria-${string}`]: unknown;
133
+ [eventHandler: `on${string}`]: unknown;
134
+ };
135
+ type Booleanish = boolean | 'true' | 'false';
136
+ type Placement = 'top' | 'bottom' | 'left' | 'right' | 'center';
137
+ type Track = 'top' | 'bottom' | 'left' | 'right';
138
+ type SafeArea = Booleanish | 'auto' | 'none' | 'all' | string;
139
+ interface CapSheetsIntrinsicElements {
140
+ 'cap-sheet': CapElementAttributes & {
141
+ presented?: Booleanish;
142
+ 'default-presented'?: Booleanish;
143
+ 'active-detent'?: number | string;
144
+ 'default-active-detent'?: number | string;
145
+ detents?: string;
146
+ 'content-placement'?: Placement;
147
+ 'safe-area'?: SafeArea;
148
+ tracks?: string;
149
+ 'sheet-role'?: string;
150
+ swipe?: Booleanish;
151
+ 'swipe-dismissal'?: Booleanish;
152
+ 'swipe-overshoot'?: Booleanish;
153
+ 'swipe-trap'?: Booleanish;
154
+ 'inert-outside'?: Booleanish;
155
+ 'native-edge-swipe-prevention'?: Booleanish;
156
+ 'native-focus-scroll-prevention'?: Booleanish;
157
+ 'close-on-outside-click'?: Booleanish;
158
+ 'close-on-escape'?: Booleanish;
159
+ 'focus-trap'?: Booleanish;
160
+ 'restore-focus'?: Booleanish;
161
+ 'theme-color-dimming'?: 'auto' | 'false';
162
+ stack?: string;
163
+ };
164
+ 'cap-sheet-trigger': CapElementAttributes & {
165
+ for?: string;
166
+ action?: 'present' | 'dismiss' | 'toggle' | 'step';
167
+ detent?: number | string;
168
+ direction?: 'up' | 'down';
169
+ };
170
+ 'cap-sheet-portal': CapElementAttributes & {
171
+ disabled?: Booleanish;
172
+ };
173
+ 'cap-sheet-view': CapElementAttributes & {
174
+ for?: string;
175
+ 'content-placement'?: Placement;
176
+ };
177
+ 'cap-sheet-backdrop': CapElementAttributes & {
178
+ for?: string;
179
+ };
180
+ 'cap-sheet-content': CapElementAttributes & {
181
+ for?: string;
182
+ };
183
+ 'cap-sheet-bleeding-background': CapElementAttributes;
184
+ 'cap-sheet-handle': CapElementAttributes & {
185
+ for?: string;
186
+ action?: 'step' | 'dismiss';
187
+ detent?: number | string;
188
+ direction?: 'up' | 'down';
189
+ };
190
+ 'cap-sheet-title': CapElementAttributes & {
191
+ for?: string;
192
+ };
193
+ 'cap-sheet-description': CapElementAttributes & {
194
+ for?: string;
195
+ };
196
+ 'cap-sheet-special-wrapper': CapElementAttributes;
197
+ 'cap-sheet-special-wrapper-content': CapElementAttributes;
198
+ 'cap-sheet-stack': CapElementAttributes;
199
+ 'cap-sheet-outlet': CapElementAttributes & {
200
+ for?: string;
201
+ };
202
+ 'cap-scroll': CapElementAttributes & {
203
+ axis?: 'x' | 'y';
204
+ };
205
+ 'cap-scroll-content': CapElementAttributes;
206
+ 'cap-fixed': CapElementAttributes;
207
+ 'cap-island': CapElementAttributes & {
208
+ for?: string;
209
+ };
210
+ 'cap-external-overlay': CapElementAttributes & {
211
+ for?: string;
212
+ 'content-getter'?: string;
213
+ 'self-managed-inert-outside'?: Booleanish;
214
+ };
215
+ 'cap-visually-hidden': CapElementAttributes;
216
+ 'cap-auto-focus-target': CapElementAttributes & {
217
+ for?: string;
218
+ 'hidden-target'?: Booleanish;
219
+ };
220
+ }
221
+ declare global {
222
+ namespace JSX {
223
+ interface IntrinsicElements extends CapSheetsIntrinsicElements {
224
+ }
225
+ }
226
+ }
227
+ declare module 'react' {
228
+ namespace JSX {
229
+ interface IntrinsicElements extends CapSheetsIntrinsicElements {
230
+ }
231
+ }
232
+ }
233
+ declare module 'react/jsx-runtime' {
234
+ namespace JSX {
235
+ interface IntrinsicElements extends CapSheetsIntrinsicElements {
236
+ }
237
+ }
238
+ }
239
+
240
+ export { type Placement, type SheetActiveDetentChangeEvent, type SheetOptions, type SheetPresentedChangeEvent, type SheetSafeAreaEdge, type SheetSafeAreaMode, type SheetTravelEvent, type Track, dismissSheet, presentSheet, setupSheet };
@@ -0,0 +1,240 @@
1
+ /** Placement of the sheet content inside the viewport. */
2
+ type SheetPlacement = 'top' | 'bottom' | 'left' | 'right' | 'center';
3
+ /** Swipe track used when the content can be dismissed from an edge. */
4
+ type SheetTrack = Exclude<SheetPlacement, 'center'>;
5
+ /** Viewport edges protected by safe-area insets. */
6
+ type SheetSafeAreaEdge = 'top' | 'bottom' | 'left' | 'right';
7
+ /** Safe-area behavior for Capacitor WebViews and mobile browsers. */
8
+ type SheetSafeAreaMode = boolean | 'auto' | 'none' | SheetSafeAreaEdge[];
9
+ /** Runtime travel state emitted by sheet lifecycle events. */
10
+ type SheetTravelStatus = 'idle' | 'entering' | 'exiting' | 'dragging' | 'settling';
11
+ /** Built-in animation presets tuned for mobile WebViews. */
12
+ type SheetAnimationPreset = 'gentle' | 'smooth' | 'snappy';
13
+ /** Easing string accepted by the Web Animations API. */
14
+ type SheetEasing = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | string;
15
+ /** Animation options for programmatic present, dismiss, and detent steps. */
16
+ interface SheetAnimationSettings {
17
+ /** Named preset. Defaults to `smooth`. */
18
+ preset?: SheetAnimationPreset;
19
+ /** Duration in milliseconds. Ignored when `skip` is true. */
20
+ duration?: number;
21
+ /** CSS easing used by WAAPI. */
22
+ easing?: SheetEasing;
23
+ /** Skip the animation and snap to the final state. */
24
+ skip?: boolean | 'auto';
25
+ /** For dual-track sheets, select the track used by this programmatic movement. */
26
+ track?: SheetTrack;
27
+ /** Keep content fixed while related outlets/backdrops animate. */
28
+ contentMove?: boolean;
29
+ }
30
+ /** Options accepted by the `<cap-sheet>` custom element and setup helpers. */
31
+ interface SheetOptions {
32
+ /** Unique component id used by `for` attributes. */
33
+ componentId?: string;
34
+ /** Sheet stack id. Use the closest `<cap-sheet-stack>` when omitted. */
35
+ stack?: string;
36
+ /** Initial uncontrolled presentation state. */
37
+ defaultPresented?: boolean;
38
+ /** Controlled presentation state. */
39
+ presented?: boolean;
40
+ /** Initial detent index for uncontrolled sheets. */
41
+ defaultActiveDetent?: number;
42
+ /** Controlled detent index. */
43
+ activeDetent?: number;
44
+ /** Intermediate detents between dismissed `0` and fully presented `n`. */
45
+ detents?: string | string[];
46
+ /** WAI-ARIA role applied to `<cap-sheet-view>`. */
47
+ sheetRole?: 'dialog' | 'alertdialog' | 'status' | string;
48
+ /** Where content sits when fully presented. */
49
+ contentPlacement?: SheetPlacement;
50
+ /** Safe-area edges protected by the sheet viewport. Defaults to `auto`. */
51
+ safeArea?: SheetSafeAreaMode;
52
+ /** Edge tracks that can dismiss the sheet. */
53
+ tracks?: SheetTrack | SheetTrack[];
54
+ /** Enables pointer, touch, trackpad, and wheel travel gestures. */
55
+ swipe?: boolean;
56
+ /** Allows swiping to detent `0` and dismissing. */
57
+ swipeDismissal?: boolean;
58
+ /** Allows a soft overshoot past the end detents. */
59
+ swipeOvershoot?: boolean;
60
+ /** Prevents gestures from escaping to page scroll while the sheet can travel. */
61
+ swipeTrap?: boolean;
62
+ /** Prevents interaction outside the sheet view while presented. */
63
+ inertOutside?: boolean;
64
+ /** Blocks OS edge navigation conflicts near the travel edge when possible. */
65
+ nativeEdgeSwipePrevention?: boolean;
66
+ /** Keeps focused inputs visible while the visual viewport changes. */
67
+ nativeFocusScrollPrevention?: boolean;
68
+ /** Dismiss when clicking outside the sheet content. */
69
+ closeOnOutsideClick?: boolean;
70
+ /** Dismiss when pressing Escape. */
71
+ closeOnEscape?: boolean;
72
+ /** Keep keyboard focus inside the sheet view while modal. */
73
+ focusTrap?: boolean;
74
+ /** Restore focus to the trigger when dismissed. */
75
+ restoreFocus?: boolean;
76
+ /** Blend the page theme color with the backdrop color. */
77
+ themeColorDimming?: false | 'auto';
78
+ /** Animation settings used when presenting. */
79
+ enteringAnimationSettings?: SheetAnimationSettings;
80
+ /** Animation settings used when dismissing. */
81
+ exitingAnimationSettings?: SheetAnimationSettings;
82
+ /** Animation settings used when stepping between detents. */
83
+ steppingAnimationSettings?: SheetAnimationSettings;
84
+ }
85
+ /** Detail emitted by presentation state changes. */
86
+ interface SheetPresentedChangeEvent {
87
+ presented: boolean;
88
+ source: 'programmatic' | 'trigger' | 'gesture' | 'escape' | 'outside';
89
+ }
90
+ /** Detail emitted by detent state changes. */
91
+ interface SheetActiveDetentChangeEvent {
92
+ activeDetent: number;
93
+ previousActiveDetent: number;
94
+ }
95
+ /** Detail emitted continuously while the sheet travels. */
96
+ interface SheetTravelEvent {
97
+ /** Current normalized travel progress from dismissed `0` to fully presented `1`. */
98
+ progress: number;
99
+ /** Active detent index nearest to the current travel position. */
100
+ activeDetent: number;
101
+ /** Current offset from the presented position, in em. */
102
+ offset: number;
103
+ /** Current travel status. */
104
+ status: SheetTravelStatus;
105
+ }
106
+
107
+ /** Configure a `<cap-sheet>` element from React effects. */
108
+ declare function setupSheet(element: HTMLElement, options?: Partial<SheetOptions> & {
109
+ onPresentedChange?: (event: SheetPresentedChangeEvent) => void;
110
+ onActiveDetentChange?: (event: SheetActiveDetentChangeEvent) => void;
111
+ onTravel?: (event: SheetTravelEvent) => void;
112
+ }): () => void;
113
+ /** Present a sheet by id from React event handlers. */
114
+ declare function presentSheet(id: string): Promise<void> | undefined;
115
+ /** Dismiss a sheet by id from React event handlers. */
116
+ declare function dismissSheet(id: string): Promise<void> | undefined;
117
+ type CapElementAttributes = {
118
+ key?: unknown;
119
+ ref?: unknown;
120
+ children?: unknown;
121
+ id?: string;
122
+ class?: string;
123
+ className?: string;
124
+ style?: unknown;
125
+ slot?: string;
126
+ role?: string;
127
+ part?: string;
128
+ title?: string;
129
+ tabIndex?: number;
130
+ hidden?: boolean;
131
+ [attribute: `data-${string}`]: unknown;
132
+ [attribute: `aria-${string}`]: unknown;
133
+ [eventHandler: `on${string}`]: unknown;
134
+ };
135
+ type Booleanish = boolean | 'true' | 'false';
136
+ type Placement = 'top' | 'bottom' | 'left' | 'right' | 'center';
137
+ type Track = 'top' | 'bottom' | 'left' | 'right';
138
+ type SafeArea = Booleanish | 'auto' | 'none' | 'all' | string;
139
+ interface CapSheetsIntrinsicElements {
140
+ 'cap-sheet': CapElementAttributes & {
141
+ presented?: Booleanish;
142
+ 'default-presented'?: Booleanish;
143
+ 'active-detent'?: number | string;
144
+ 'default-active-detent'?: number | string;
145
+ detents?: string;
146
+ 'content-placement'?: Placement;
147
+ 'safe-area'?: SafeArea;
148
+ tracks?: string;
149
+ 'sheet-role'?: string;
150
+ swipe?: Booleanish;
151
+ 'swipe-dismissal'?: Booleanish;
152
+ 'swipe-overshoot'?: Booleanish;
153
+ 'swipe-trap'?: Booleanish;
154
+ 'inert-outside'?: Booleanish;
155
+ 'native-edge-swipe-prevention'?: Booleanish;
156
+ 'native-focus-scroll-prevention'?: Booleanish;
157
+ 'close-on-outside-click'?: Booleanish;
158
+ 'close-on-escape'?: Booleanish;
159
+ 'focus-trap'?: Booleanish;
160
+ 'restore-focus'?: Booleanish;
161
+ 'theme-color-dimming'?: 'auto' | 'false';
162
+ stack?: string;
163
+ };
164
+ 'cap-sheet-trigger': CapElementAttributes & {
165
+ for?: string;
166
+ action?: 'present' | 'dismiss' | 'toggle' | 'step';
167
+ detent?: number | string;
168
+ direction?: 'up' | 'down';
169
+ };
170
+ 'cap-sheet-portal': CapElementAttributes & {
171
+ disabled?: Booleanish;
172
+ };
173
+ 'cap-sheet-view': CapElementAttributes & {
174
+ for?: string;
175
+ 'content-placement'?: Placement;
176
+ };
177
+ 'cap-sheet-backdrop': CapElementAttributes & {
178
+ for?: string;
179
+ };
180
+ 'cap-sheet-content': CapElementAttributes & {
181
+ for?: string;
182
+ };
183
+ 'cap-sheet-bleeding-background': CapElementAttributes;
184
+ 'cap-sheet-handle': CapElementAttributes & {
185
+ for?: string;
186
+ action?: 'step' | 'dismiss';
187
+ detent?: number | string;
188
+ direction?: 'up' | 'down';
189
+ };
190
+ 'cap-sheet-title': CapElementAttributes & {
191
+ for?: string;
192
+ };
193
+ 'cap-sheet-description': CapElementAttributes & {
194
+ for?: string;
195
+ };
196
+ 'cap-sheet-special-wrapper': CapElementAttributes;
197
+ 'cap-sheet-special-wrapper-content': CapElementAttributes;
198
+ 'cap-sheet-stack': CapElementAttributes;
199
+ 'cap-sheet-outlet': CapElementAttributes & {
200
+ for?: string;
201
+ };
202
+ 'cap-scroll': CapElementAttributes & {
203
+ axis?: 'x' | 'y';
204
+ };
205
+ 'cap-scroll-content': CapElementAttributes;
206
+ 'cap-fixed': CapElementAttributes;
207
+ 'cap-island': CapElementAttributes & {
208
+ for?: string;
209
+ };
210
+ 'cap-external-overlay': CapElementAttributes & {
211
+ for?: string;
212
+ 'content-getter'?: string;
213
+ 'self-managed-inert-outside'?: Booleanish;
214
+ };
215
+ 'cap-visually-hidden': CapElementAttributes;
216
+ 'cap-auto-focus-target': CapElementAttributes & {
217
+ for?: string;
218
+ 'hidden-target'?: Booleanish;
219
+ };
220
+ }
221
+ declare global {
222
+ namespace JSX {
223
+ interface IntrinsicElements extends CapSheetsIntrinsicElements {
224
+ }
225
+ }
226
+ }
227
+ declare module 'react' {
228
+ namespace JSX {
229
+ interface IntrinsicElements extends CapSheetsIntrinsicElements {
230
+ }
231
+ }
232
+ }
233
+ declare module 'react/jsx-runtime' {
234
+ namespace JSX {
235
+ interface IntrinsicElements extends CapSheetsIntrinsicElements {
236
+ }
237
+ }
238
+ }
239
+
240
+ export { type Placement, type SheetActiveDetentChangeEvent, type SheetOptions, type SheetPresentedChangeEvent, type SheetSafeAreaEdge, type SheetSafeAreaMode, type SheetTravelEvent, type Track, dismissSheet, presentSheet, setupSheet };