@skyscanner/backpack-web 36.1.3 → 36.1.4
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.
|
@@ -15,9 +15,10 @@ export type Props = {
|
|
|
15
15
|
closeLabel?: string | null;
|
|
16
16
|
closeText?: string;
|
|
17
17
|
hideTitle?: boolean;
|
|
18
|
+
isIpad?: boolean;
|
|
18
19
|
isIphone?: boolean;
|
|
19
20
|
padded?: boolean;
|
|
20
21
|
mobileModalDisplay?: boolean;
|
|
21
22
|
};
|
|
22
|
-
declare const BpkDrawer: ({ children, className, closeLabel, closeText, contentClassName, dialogRef, getApplicationElement, hideTitle, id, isIphone, isOpen, mobileModalDisplay, onClose, padded, renderTarget, title, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const BpkDrawer: ({ children, className, closeLabel, closeText, contentClassName, dialogRef, getApplicationElement, hideTitle, id, isIpad, isIphone, isOpen, mobileModalDisplay, onClose, padded, renderTarget, title, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
export default BpkDrawer;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* See the License for the specific language governing permissions and
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/import { useState, useEffect } from 'react';
|
|
18
|
-
import { Portal, isDeviceIphone } from "../../bpk-react-utils";
|
|
18
|
+
import { Portal, isDeviceIpad, isDeviceIphone } from "../../bpk-react-utils";
|
|
19
19
|
import { withScrim } from "../../bpk-scrim-utils";
|
|
20
20
|
import BpkDrawerContent from "./BpkDrawerContent";
|
|
21
21
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -30,6 +30,7 @@ const BpkDrawer = ({
|
|
|
30
30
|
getApplicationElement,
|
|
31
31
|
hideTitle = false,
|
|
32
32
|
id,
|
|
33
|
+
isIpad = isDeviceIpad(),
|
|
33
34
|
isIphone = isDeviceIphone(),
|
|
34
35
|
isOpen,
|
|
35
36
|
mobileModalDisplay = false,
|
|
@@ -72,7 +73,7 @@ const BpkDrawer = ({
|
|
|
72
73
|
onClose: hide,
|
|
73
74
|
onCloseAnimationComplete: onCloseAnimationComplete,
|
|
74
75
|
closeOnScrimClick: true,
|
|
75
|
-
isIpad:
|
|
76
|
+
isIpad: isIpad,
|
|
76
77
|
isIphone: isIphone,
|
|
77
78
|
padded: padded,
|
|
78
79
|
mobileModalDisplay: mobileModalDisplay,
|