react-modal-sheet 5.4.0 → 5.5.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/dist/index.d.mts +0 -5
- package/dist/index.d.ts +0 -5
- package/dist/index.js +374 -275
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +375 -276
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/SheetContent.tsx +9 -3
- package/src/constants.ts +1 -1
- package/src/hooks/use-keyboard-avoidance.ts +75 -0
- package/src/hooks/use-prevent-scroll.ts +5 -27
- package/src/hooks/use-scroll-position.ts +0 -1
- package/src/hooks/use-virtual-keyboard.ts +127 -52
- package/src/sheet.tsx +79 -143
- package/src/snap.ts +205 -102
- package/src/types.tsx +1 -2
- package/src/utils.ts +26 -0
- package/src/hooks/use-focused-input.ts +0 -46
package/dist/index.d.mts
CHANGED
|
@@ -139,11 +139,6 @@ type UseVirtualKeyboardOptions = {
|
|
|
139
139
|
* @default 100
|
|
140
140
|
*/
|
|
141
141
|
visualViewportThreshold?: number;
|
|
142
|
-
/**
|
|
143
|
-
* Whether to treat contenteditable elements as text inputs.
|
|
144
|
-
* @default true
|
|
145
|
-
*/
|
|
146
|
-
includeContentEditable?: boolean;
|
|
147
142
|
/**
|
|
148
143
|
* Delay in ms for debouncing viewport changes.
|
|
149
144
|
* @default 100
|
package/dist/index.d.ts
CHANGED
|
@@ -139,11 +139,6 @@ type UseVirtualKeyboardOptions = {
|
|
|
139
139
|
* @default 100
|
|
140
140
|
*/
|
|
141
141
|
visualViewportThreshold?: number;
|
|
142
|
-
/**
|
|
143
|
-
* Whether to treat contenteditable elements as text inputs.
|
|
144
|
-
* @default true
|
|
145
|
-
*/
|
|
146
|
-
includeContentEditable?: boolean;
|
|
147
142
|
/**
|
|
148
143
|
* Delay in ms for debouncing viewport changes.
|
|
149
144
|
* @default 100
|