@transferwise/components 0.0.0-experimental-b5b2cab → 0.0.0-experimental-222fc9c
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/build/index.js +6 -6
- package/build/index.js.map +1 -1
- package/build/index.mjs +6 -6
- package/build/index.mjs.map +1 -1
- package/build/main.css +1 -0
- package/build/styles/inputs/SelectInput.css +1 -0
- package/build/styles/main.css +1 -0
- package/package.json +1 -1
- package/src/common/hooks/useVirtualKeyboard.ts +6 -6
- package/src/inputs/SelectInput.css +1 -0
- package/src/inputs/_BottomSheet.less +1 -0
- package/src/main.css +1 -0
package/build/main.css
CHANGED
|
@@ -2416,6 +2416,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2416
2416
|
.np-bottom-sheet-v2 {
|
|
2417
2417
|
position: fixed;
|
|
2418
2418
|
inset: 0px;
|
|
2419
|
+
bottom: env(keyboard-inset-height, 0px);
|
|
2419
2420
|
margin-left: 8px;
|
|
2420
2421
|
margin-left: var(--size-8);
|
|
2421
2422
|
margin-right: 8px;
|
package/build/styles/main.css
CHANGED
|
@@ -2416,6 +2416,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2416
2416
|
.np-bottom-sheet-v2 {
|
|
2417
2417
|
position: fixed;
|
|
2418
2418
|
inset: 0px;
|
|
2419
|
+
bottom: env(keyboard-inset-height, 0px);
|
|
2419
2420
|
margin-left: 8px;
|
|
2420
2421
|
margin-left: var(--size-8);
|
|
2421
2422
|
margin-right: 8px;
|
package/package.json
CHANGED
|
@@ -4,13 +4,13 @@ export function useVirtualKeyboard() {
|
|
|
4
4
|
useEffect(() => {
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
|
|
6
6
|
if ('virtualKeyboard' in navigator) {
|
|
7
|
-
|
|
7
|
+
const virtualKeyboard: any = navigator.virtualKeyboard;
|
|
8
|
+
const initialOverlaysContent: unknown = virtualKeyboard.overlaysContent;
|
|
9
|
+
virtualKeyboard.overlaysContent = true;
|
|
10
|
+
return () => {
|
|
11
|
+
virtualKeyboard.overlaysContent = initialOverlaysContent;
|
|
12
|
+
};
|
|
8
13
|
}
|
|
9
|
-
return () => {
|
|
10
|
-
if ('virtualKeyboard' in navigator) {
|
|
11
|
-
(navigator.virtualKeyboard as any).overlaysContent = false;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
14
|
/* eslint-enable @typescript-eslint/no-unsafe-member-access, functional/immutable-data */
|
|
15
15
|
}, []);
|
|
16
16
|
}
|
package/src/main.css
CHANGED
|
@@ -2416,6 +2416,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
2416
2416
|
.np-bottom-sheet-v2 {
|
|
2417
2417
|
position: fixed;
|
|
2418
2418
|
inset: 0px;
|
|
2419
|
+
bottom: env(keyboard-inset-height, 0px);
|
|
2419
2420
|
margin-left: 8px;
|
|
2420
2421
|
margin-left: var(--size-8);
|
|
2421
2422
|
margin-right: 8px;
|