@yahoo/uds-mobile 2.15.0 → 2.17.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/README.md +27 -24
- package/dist/bin/fixtures/dist/index.mjs +14 -0
- package/dist/components/Input.cjs +16 -13
- package/dist/components/Input.d.cts.map +1 -1
- package/dist/components/Input.d.ts.map +1 -1
- package/dist/components/Input.js +16 -13
- package/dist/components/Input.js.map +1 -1
- package/dist/components/InputHelpText.cjs +52 -0
- package/dist/components/InputHelpText.d.cts +37 -0
- package/dist/components/InputHelpText.d.cts.map +1 -0
- package/dist/components/InputHelpText.d.ts +37 -0
- package/dist/components/InputHelpText.d.ts.map +1 -0
- package/dist/components/InputHelpText.js +52 -0
- package/dist/components/InputHelpText.js.map +1 -0
- package/dist/components/Toast/Toast.cjs +141 -0
- package/dist/components/Toast/Toast.d.cts +38 -0
- package/dist/components/Toast/Toast.d.cts.map +1 -0
- package/dist/components/Toast/Toast.d.ts +38 -0
- package/dist/components/Toast/Toast.d.ts.map +1 -0
- package/dist/components/Toast/Toast.js +141 -0
- package/dist/components/Toast/Toast.js.map +1 -0
- package/dist/components/Toast/ToastAnimatedItem.cjs +88 -0
- package/dist/components/Toast/ToastAnimatedItem.d.cts +27 -0
- package/dist/components/Toast/ToastAnimatedItem.d.cts.map +1 -0
- package/dist/components/Toast/ToastAnimatedItem.d.ts +27 -0
- package/dist/components/Toast/ToastAnimatedItem.d.ts.map +1 -0
- package/dist/components/Toast/ToastAnimatedItem.js +87 -0
- package/dist/components/Toast/ToastAnimatedItem.js.map +1 -0
- package/dist/components/Toast/ToastItem.cjs +35 -0
- package/dist/components/Toast/ToastItem.d.cts +25 -0
- package/dist/components/Toast/ToastItem.d.cts.map +1 -0
- package/dist/components/Toast/ToastItem.d.ts +25 -0
- package/dist/components/Toast/ToastItem.d.ts.map +1 -0
- package/dist/components/Toast/ToastItem.js +35 -0
- package/dist/components/Toast/ToastItem.js.map +1 -0
- package/dist/components/Toast/ToastProvider.cjs +144 -0
- package/dist/components/Toast/ToastProvider.d.cts +58 -0
- package/dist/components/Toast/ToastProvider.d.cts.map +1 -0
- package/dist/components/Toast/ToastProvider.d.ts +58 -0
- package/dist/components/Toast/ToastProvider.d.ts.map +1 -0
- package/dist/components/Toast/ToastProvider.js +143 -0
- package/dist/components/Toast/ToastProvider.js.map +1 -0
- package/dist/components/Toast/ToastViewport.cjs +48 -0
- package/dist/components/Toast/ToastViewport.d.cts +42 -0
- package/dist/components/Toast/ToastViewport.d.cts.map +1 -0
- package/dist/components/Toast/ToastViewport.d.ts +42 -0
- package/dist/components/Toast/ToastViewport.d.ts.map +1 -0
- package/dist/components/Toast/ToastViewport.js +48 -0
- package/dist/components/Toast/ToastViewport.js.map +1 -0
- package/dist/components/Toast/createToast.cjs +21 -0
- package/dist/components/Toast/createToast.d.cts +10 -0
- package/dist/components/Toast/createToast.d.cts.map +1 -0
- package/dist/components/Toast/createToast.d.ts +10 -0
- package/dist/components/Toast/createToast.d.ts.map +1 -0
- package/dist/components/Toast/createToast.js +20 -0
- package/dist/components/Toast/createToast.js.map +1 -0
- package/dist/components/Toast/index.cjs +10 -0
- package/dist/components/Toast/index.d.cts +6 -0
- package/dist/components/Toast/index.d.ts +6 -0
- package/dist/components/Toast/index.js +5 -0
- package/dist/components/Toast/types.cjs +1 -0
- package/dist/components/Toast/types.d.cts +113 -0
- package/dist/components/Toast/types.d.cts.map +1 -0
- package/dist/components/Toast/types.d.ts +113 -0
- package/dist/components/Toast/types.d.ts.map +1 -0
- package/dist/components/Toast/types.js +1 -0
- package/dist/components/Toast/useToastController.cjs +286 -0
- package/dist/components/Toast/useToastController.d.cts +25 -0
- package/dist/components/Toast/useToastController.d.cts.map +1 -0
- package/dist/components/Toast/useToastController.d.ts +25 -0
- package/dist/components/Toast/useToastController.d.ts.map +1 -0
- package/dist/components/Toast/useToastController.js +286 -0
- package/dist/components/Toast/useToastController.js.map +1 -0
- package/dist/components/Toast/utils.cjs +69 -0
- package/dist/components/Toast/utils.d.cts +27 -0
- package/dist/components/Toast/utils.d.cts.map +1 -0
- package/dist/components/Toast/utils.d.ts +27 -0
- package/dist/components/Toast/utils.d.ts.map +1 -0
- package/dist/components/Toast/utils.js +55 -0
- package/dist/components/Toast/utils.js.map +1 -0
- package/dist/components/internal/Overlay/OverlayPortal.cjs +20 -0
- package/dist/components/internal/Overlay/OverlayPortal.d.cts +17 -0
- package/dist/components/internal/Overlay/OverlayPortal.d.cts.map +1 -0
- package/dist/components/internal/Overlay/OverlayPortal.d.ts +17 -0
- package/dist/components/internal/Overlay/OverlayPortal.d.ts.map +1 -0
- package/dist/components/internal/Overlay/OverlayPortal.js +20 -0
- package/dist/components/internal/Overlay/OverlayPortal.js.map +1 -0
- package/dist/components/internal/Overlay/index.cjs +6 -0
- package/dist/components/internal/Overlay/index.d.cts +5 -0
- package/dist/components/internal/Overlay/index.d.ts +5 -0
- package/dist/components/internal/Overlay/index.js +4 -0
- package/dist/components/internal/Overlay/types.cjs +1 -0
- package/dist/components/internal/Overlay/types.d.cts +21 -0
- package/dist/components/internal/Overlay/types.d.cts.map +1 -0
- package/dist/components/internal/Overlay/types.d.ts +21 -0
- package/dist/components/internal/Overlay/types.d.ts.map +1 -0
- package/dist/components/internal/Overlay/types.js +1 -0
- package/dist/components/internal/Overlay/useControllableState.cjs +34 -0
- package/dist/components/internal/Overlay/useControllableState.d.cts +18 -0
- package/dist/components/internal/Overlay/useControllableState.d.cts.map +1 -0
- package/dist/components/internal/Overlay/useControllableState.d.ts +18 -0
- package/dist/components/internal/Overlay/useControllableState.d.ts.map +1 -0
- package/dist/components/internal/Overlay/useControllableState.js +34 -0
- package/dist/components/internal/Overlay/useControllableState.js.map +1 -0
- package/dist/jest/mocks/gesture-handler.cjs +38 -0
- package/dist/jest/mocks/gesture-handler.d.cts +41 -0
- package/dist/jest/mocks/gesture-handler.d.cts.map +1 -0
- package/dist/jest/mocks/gesture-handler.d.ts +41 -0
- package/dist/jest/mocks/gesture-handler.d.ts.map +1 -0
- package/dist/jest/mocks/gesture-handler.js +37 -0
- package/dist/jest/mocks/gesture-handler.js.map +1 -0
- package/dist/jest/mocks/safe-area-context.cjs +35 -0
- package/dist/jest/mocks/safe-area-context.d.cts +43 -0
- package/dist/jest/mocks/safe-area-context.d.cts.map +1 -0
- package/dist/jest/mocks/safe-area-context.d.ts +43 -0
- package/dist/jest/mocks/safe-area-context.d.ts.map +1 -0
- package/dist/jest/mocks/safe-area-context.js +32 -0
- package/dist/jest/mocks/safe-area-context.js.map +1 -0
- package/dist/jest/mocks/screens.cjs +8 -0
- package/dist/jest/mocks/screens.d.cts +12 -0
- package/dist/jest/mocks/screens.d.cts.map +1 -0
- package/dist/jest/mocks/screens.d.ts +12 -0
- package/dist/jest/mocks/screens.d.ts.map +1 -0
- package/dist/jest/mocks/screens.js +9 -0
- package/dist/jest/mocks/screens.js.map +1 -0
- package/dist/jest/mocks/styles.cjs +38 -1
- package/dist/jest/mocks/styles.d.cts +3 -2
- package/dist/jest/mocks/styles.d.cts.map +1 -1
- package/dist/jest/mocks/styles.d.ts +3 -2
- package/dist/jest/mocks/styles.d.ts.map +1 -1
- package/dist/jest/mocks/styles.js +38 -2
- package/dist/jest/mocks/styles.js.map +1 -1
- package/dist/portal.cjs +1 -0
- package/dist/portal.d.cts +6 -1
- package/dist/portal.d.cts.map +1 -1
- package/dist/portal.d.ts +6 -1
- package/dist/portal.d.ts.map +1 -1
- package/dist/portal.js +1 -1
- package/dist/portal.js.map +1 -1
- package/dist/types/dist/index.d.cts +4 -1
- package/dist/types/dist/index.d.cts.map +1 -1
- package/dist/types/dist/index.d.ts +4 -1
- package/dist/types/dist/index.d.ts.map +1 -1
- package/fonts/index.cjs +209 -209
- package/fonts/index.mjs +209 -209
- package/generated/styles.cjs +114 -0
- package/generated/styles.d.ts +29 -0
- package/generated/styles.mjs +114 -0
- package/generated/unistyles.d.ts +110 -0
- package/package.json +21 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/internal/Overlay/types.d.ts
|
|
5
|
+
interface OverlayPortalProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Render through iOS FullWindowOverlay. Keep enabled for surfaces that need to sit above native
|
|
9
|
+
* screen content.
|
|
10
|
+
*/
|
|
11
|
+
useFullWindowOverlay?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface UseControllableStateProps<T> {
|
|
14
|
+
value?: T;
|
|
15
|
+
defaultValue: T | (() => T);
|
|
16
|
+
onChange?: (value: T) => void;
|
|
17
|
+
}
|
|
18
|
+
type UseControllableStateResult<T> = [T, Dispatch<SetStateAction<T>>];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { type OverlayPortalProps, type UseControllableStateProps, type UseControllableStateResult };
|
|
21
|
+
//# sourceMappingURL=types.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.cts","names":[],"sources":["../../../../src/components/internal/Overlay/types.ts"],"mappings":";;;;UAEU,kBAAA;EACR,QAAA,EAAU,SAAA;EADF;;;;EAMR,oBAAA;AAAA;AAAA,UAGQ,yBAAA;EACR,KAAA,GAAQ,CAAA;EACR,YAAA,EAAc,CAAA,UAAW,CAAA;EACzB,QAAA,IAAY,KAAA,EAAO,CAAA;AAAA;AAAA,KAGhB,0BAAA,OAAiC,CAAA,EAAG,QAAA,CAAS,cAAA,CAAe,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
import { Dispatch, ReactNode, SetStateAction } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/internal/Overlay/types.d.ts
|
|
5
|
+
interface OverlayPortalProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Render through iOS FullWindowOverlay. Keep enabled for surfaces that need to sit above native
|
|
9
|
+
* screen content.
|
|
10
|
+
*/
|
|
11
|
+
useFullWindowOverlay?: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface UseControllableStateProps<T> {
|
|
14
|
+
value?: T;
|
|
15
|
+
defaultValue: T | (() => T);
|
|
16
|
+
onChange?: (value: T) => void;
|
|
17
|
+
}
|
|
18
|
+
type UseControllableStateResult<T> = [T, Dispatch<SetStateAction<T>>];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { type OverlayPortalProps, type UseControllableStateProps, type UseControllableStateResult };
|
|
21
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","names":[],"sources":["../../../../src/components/internal/Overlay/types.ts"],"mappings":";;;;UAEU,kBAAA;EACR,QAAA,EAAU,SAAA;EADF;;;;EAMR,oBAAA;AAAA;AAAA,UAGQ,yBAAA;EACR,KAAA,GAAQ,CAAA;EACR,YAAA,EAAc,CAAA,UAAW,CAAA;EACzB,QAAA,IAAY,KAAA,EAAO,CAAA;AAAA;AAAA,KAGhB,0BAAA,OAAiC,CAAA,EAAG,QAAA,CAAS,cAAA,CAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("../../../_virtual/_rolldown/runtime.cjs");
|
|
4
|
+
let react = require("react");
|
|
5
|
+
//#region src/components/internal/Overlay/useControllableState.ts
|
|
6
|
+
/**
|
|
7
|
+
* Resolves a React setState-style value or updater function against the current value.
|
|
8
|
+
*/
|
|
9
|
+
function resolveNextValue(next, currentValue) {
|
|
10
|
+
return typeof next === "function" ? next(currentValue) : next;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Shared controlled/uncontrolled state helper for overlay components.
|
|
14
|
+
*
|
|
15
|
+
* It only calls `onChange` when the requested value differs from the current value, which keeps
|
|
16
|
+
* open/dismiss callbacks from firing twice for a single user action.
|
|
17
|
+
*/
|
|
18
|
+
function useControllableState({ value, defaultValue, onChange }) {
|
|
19
|
+
const [uncontrolledValue, setUncontrolledValue] = (0, react.useState)(defaultValue);
|
|
20
|
+
const isControlled = value !== void 0;
|
|
21
|
+
const currentValue = isControlled ? value : uncontrolledValue;
|
|
22
|
+
return [currentValue, (0, react.useCallback)((next) => {
|
|
23
|
+
const nextValue = resolveNextValue(next, currentValue);
|
|
24
|
+
if (Object.is(nextValue, currentValue)) return;
|
|
25
|
+
if (!isControlled) setUncontrolledValue(nextValue);
|
|
26
|
+
onChange?.(nextValue);
|
|
27
|
+
}, [
|
|
28
|
+
currentValue,
|
|
29
|
+
isControlled,
|
|
30
|
+
onChange
|
|
31
|
+
])];
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.useControllableState = useControllableState;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import { UseControllableStateProps, UseControllableStateResult } from "./types.cjs";
|
|
3
|
+
|
|
4
|
+
//#region src/components/internal/Overlay/useControllableState.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Shared controlled/uncontrolled state helper for overlay components.
|
|
7
|
+
*
|
|
8
|
+
* It only calls `onChange` when the requested value differs from the current value, which keeps
|
|
9
|
+
* open/dismiss callbacks from firing twice for a single user action.
|
|
10
|
+
*/
|
|
11
|
+
declare function useControllableState<T>({
|
|
12
|
+
value,
|
|
13
|
+
defaultValue,
|
|
14
|
+
onChange
|
|
15
|
+
}: UseControllableStateProps<T>): UseControllableStateResult<T>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useControllableState };
|
|
18
|
+
//# sourceMappingURL=useControllableState.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useControllableState.d.cts","names":[],"sources":["../../../../src/components/internal/Overlay/useControllableState.ts"],"mappings":";;;;;;AAGqF;;;;iBAe5E,oBAAA,GAAA,CAAA;EACP,KAAA;EACA,YAAA;EACA;AAAA,GACC,yBAAA,CAA0B,CAAA,IAAK,0BAAA,CAA2B,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import { UseControllableStateProps, UseControllableStateResult } from "./types.js";
|
|
3
|
+
|
|
4
|
+
//#region src/components/internal/Overlay/useControllableState.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Shared controlled/uncontrolled state helper for overlay components.
|
|
7
|
+
*
|
|
8
|
+
* It only calls `onChange` when the requested value differs from the current value, which keeps
|
|
9
|
+
* open/dismiss callbacks from firing twice for a single user action.
|
|
10
|
+
*/
|
|
11
|
+
declare function useControllableState<T>({
|
|
12
|
+
value,
|
|
13
|
+
defaultValue,
|
|
14
|
+
onChange
|
|
15
|
+
}: UseControllableStateProps<T>): UseControllableStateResult<T>;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useControllableState };
|
|
18
|
+
//# sourceMappingURL=useControllableState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useControllableState.d.ts","names":[],"sources":["../../../../src/components/internal/Overlay/useControllableState.ts"],"mappings":";;;;;;AAGqF;;;;iBAe5E,oBAAA,GAAA,CAAA;EACP,KAAA;EACA,YAAA;EACA;AAAA,GACC,yBAAA,CAA0B,CAAA,IAAK,0BAAA,CAA2B,CAAA"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
import { useCallback, useState } from "react";
|
|
3
|
+
//#region src/components/internal/Overlay/useControllableState.ts
|
|
4
|
+
/**
|
|
5
|
+
* Resolves a React setState-style value or updater function against the current value.
|
|
6
|
+
*/
|
|
7
|
+
function resolveNextValue(next, currentValue) {
|
|
8
|
+
return typeof next === "function" ? next(currentValue) : next;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Shared controlled/uncontrolled state helper for overlay components.
|
|
12
|
+
*
|
|
13
|
+
* It only calls `onChange` when the requested value differs from the current value, which keeps
|
|
14
|
+
* open/dismiss callbacks from firing twice for a single user action.
|
|
15
|
+
*/
|
|
16
|
+
function useControllableState({ value, defaultValue, onChange }) {
|
|
17
|
+
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
18
|
+
const isControlled = value !== void 0;
|
|
19
|
+
const currentValue = isControlled ? value : uncontrolledValue;
|
|
20
|
+
return [currentValue, useCallback((next) => {
|
|
21
|
+
const nextValue = resolveNextValue(next, currentValue);
|
|
22
|
+
if (Object.is(nextValue, currentValue)) return;
|
|
23
|
+
if (!isControlled) setUncontrolledValue(nextValue);
|
|
24
|
+
onChange?.(nextValue);
|
|
25
|
+
}, [
|
|
26
|
+
currentValue,
|
|
27
|
+
isControlled,
|
|
28
|
+
onChange
|
|
29
|
+
])];
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { useControllableState };
|
|
33
|
+
|
|
34
|
+
//# sourceMappingURL=useControllableState.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useControllableState.js","names":[],"sources":["../../../../src/components/internal/Overlay/useControllableState.ts"],"sourcesContent":["import type { SetStateAction } from 'react';\nimport { useCallback, useState } from 'react';\n\nimport type { UseControllableStateProps, UseControllableStateResult } from './types';\n\n/**\n * Resolves a React setState-style value or updater function against the current value.\n */\nfunction resolveNextValue<T>(next: SetStateAction<T>, currentValue: T): T {\n return typeof next === 'function' ? (next as (value: T) => T)(currentValue) : next;\n}\n\n/**\n * Shared controlled/uncontrolled state helper for overlay components.\n *\n * It only calls `onChange` when the requested value differs from the current value, which keeps\n * open/dismiss callbacks from firing twice for a single user action.\n */\nfunction useControllableState<T>({\n value,\n defaultValue,\n onChange,\n}: UseControllableStateProps<T>): UseControllableStateResult<T> {\n const [uncontrolledValue, setUncontrolledValue] = useState<T>(defaultValue);\n const isControlled = value !== undefined;\n const currentValue = isControlled ? value : uncontrolledValue;\n\n const setValue = useCallback(\n (next: SetStateAction<T>) => {\n const nextValue = resolveNextValue(next, currentValue);\n\n if (Object.is(nextValue, currentValue)) {\n return;\n }\n\n if (!isControlled) {\n setUncontrolledValue(nextValue);\n }\n\n onChange?.(nextValue);\n },\n [currentValue, isControlled, onChange],\n );\n\n return [currentValue, setValue];\n}\n\nexport { useControllableState };\n"],"mappings":";;;;;;AAQA,SAAS,iBAAoB,MAAyB,cAAoB;CACxE,OAAO,OAAO,SAAS,aAAc,KAAyB,aAAa,GAAG;;;;;;;;AAShF,SAAS,qBAAwB,EAC/B,OACA,cACA,YAC8D;CAC9D,MAAM,CAAC,mBAAmB,wBAAwB,SAAY,aAAa;CAC3E,MAAM,eAAe,UAAU,KAAA;CAC/B,MAAM,eAAe,eAAe,QAAQ;CAmB5C,OAAO,CAAC,cAjBS,aACd,SAA4B;EAC3B,MAAM,YAAY,iBAAiB,MAAM,aAAa;EAEtD,IAAI,OAAO,GAAG,WAAW,aAAa,EACpC;EAGF,IAAI,CAAC,cACH,qBAAqB,UAAU;EAGjC,WAAW,UAAU;IAEvB;EAAC;EAAc;EAAc;EAAS,CAGV,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
//#region src/jest/mocks/gesture-handler.tsx
|
|
4
|
+
function GestureDetector({ children }) {
|
|
5
|
+
return children;
|
|
6
|
+
}
|
|
7
|
+
function createMockGesture() {
|
|
8
|
+
const gesture = {};
|
|
9
|
+
gesture.activeOffsetY = jest.fn(() => gesture);
|
|
10
|
+
gesture.enabled = jest.fn(() => gesture);
|
|
11
|
+
gesture.failOffsetX = jest.fn(() => gesture);
|
|
12
|
+
gesture.manualActivation = jest.fn(() => gesture);
|
|
13
|
+
gesture.onBegin = jest.fn(() => gesture);
|
|
14
|
+
gesture.onChange = jest.fn(() => gesture);
|
|
15
|
+
gesture.onEnd = jest.fn(() => gesture);
|
|
16
|
+
gesture.onFinalize = jest.fn(() => gesture);
|
|
17
|
+
gesture.onStart = jest.fn(() => gesture);
|
|
18
|
+
gesture.onTouchesDown = jest.fn(() => gesture);
|
|
19
|
+
gesture.onTouchesMove = jest.fn(() => gesture);
|
|
20
|
+
gesture.onUpdate = jest.fn(() => gesture);
|
|
21
|
+
gesture.simultaneousWithExternalGesture = jest.fn(() => gesture);
|
|
22
|
+
gesture.withRef = jest.fn(() => gesture);
|
|
23
|
+
return gesture;
|
|
24
|
+
}
|
|
25
|
+
const Gesture = {
|
|
26
|
+
Native: createMockGesture,
|
|
27
|
+
Pan: createMockGesture,
|
|
28
|
+
Race: jest.fn((..._gestures) => createMockGesture()),
|
|
29
|
+
Simultaneous: jest.fn((..._gestures) => createMockGesture()),
|
|
30
|
+
Tap: createMockGesture
|
|
31
|
+
};
|
|
32
|
+
function GestureHandlerRootView({ children }) {
|
|
33
|
+
return children;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
exports.Gesture = Gesture;
|
|
37
|
+
exports.GestureDetector = GestureDetector;
|
|
38
|
+
exports.GestureHandlerRootView = GestureHandlerRootView;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/jest/mocks/gesture-handler.d.ts
|
|
5
|
+
interface GestureDetectorProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
type MockGestureMethod = jest.Mock<MockGesture, unknown[]>;
|
|
9
|
+
interface MockGesture {
|
|
10
|
+
activeOffsetY: MockGestureMethod;
|
|
11
|
+
enabled: MockGestureMethod;
|
|
12
|
+
failOffsetX: MockGestureMethod;
|
|
13
|
+
manualActivation: MockGestureMethod;
|
|
14
|
+
onBegin: MockGestureMethod;
|
|
15
|
+
onChange: MockGestureMethod;
|
|
16
|
+
onEnd: MockGestureMethod;
|
|
17
|
+
onFinalize: MockGestureMethod;
|
|
18
|
+
onStart: MockGestureMethod;
|
|
19
|
+
onTouchesDown: MockGestureMethod;
|
|
20
|
+
onTouchesMove: MockGestureMethod;
|
|
21
|
+
onUpdate: MockGestureMethod;
|
|
22
|
+
simultaneousWithExternalGesture: MockGestureMethod;
|
|
23
|
+
withRef: MockGestureMethod;
|
|
24
|
+
}
|
|
25
|
+
declare function GestureDetector({
|
|
26
|
+
children
|
|
27
|
+
}: GestureDetectorProps): ReactNode;
|
|
28
|
+
declare function createMockGesture(): MockGesture;
|
|
29
|
+
declare const Gesture: {
|
|
30
|
+
Native: typeof createMockGesture;
|
|
31
|
+
Pan: typeof createMockGesture;
|
|
32
|
+
Race: jest.Mock<MockGesture, unknown[], any>;
|
|
33
|
+
Simultaneous: jest.Mock<MockGesture, unknown[], any>;
|
|
34
|
+
Tap: typeof createMockGesture;
|
|
35
|
+
};
|
|
36
|
+
declare function GestureHandlerRootView({
|
|
37
|
+
children
|
|
38
|
+
}: GestureDetectorProps): ReactNode;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Gesture, GestureDetector, GestureHandlerRootView };
|
|
41
|
+
//# sourceMappingURL=gesture-handler.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gesture-handler.d.cts","names":[],"sources":["../../../src/jest/mocks/gesture-handler.tsx"],"mappings":";;;;UAIU,oBAAA;EACR,QAAA,GAAW,SAAA;AAAA;AAAA,KAGR,iBAAA,GAAoB,IAAA,CAAK,IAAA,CAAK,WAAA;AAAA,UAEzB,WAAA;EACR,aAAA,EAAe,iBAAA;EACf,OAAA,EAAS,iBAAA;EACT,WAAA,EAAa,iBAAA;EACb,gBAAA,EAAkB,iBAAA;EAClB,OAAA,EAAS,iBAAA;EACT,QAAA,EAAU,iBAAA;EACV,KAAA,EAAO,iBAAA;EACP,UAAA,EAAY,iBAAA;EACZ,OAAA,EAAS,iBAAA;EACT,aAAA,EAAe,iBAAA;EACf,aAAA,EAAe,iBAAA;EACf,QAAA,EAAU,iBAAA;EACV,+BAAA,EAAiC,iBAAA;EACjC,OAAA,EAAS,iBAAA;AAAA;AAAA,iBAGF,eAAA,CAAA;EAAkB;AAAA,GAAY,oBAAA,GAAoB,SAAA;AAAA,iBAIlD,iBAAA,CAAA,GAAqB,WAAA;AAAA,cAqBxB,OAAA;;;;;;;iBAQG,sBAAA,CAAA;EAAyB;AAAA,GAAY,oBAAA,GAAoB,SAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/jest/mocks/gesture-handler.d.ts
|
|
5
|
+
interface GestureDetectorProps {
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
type MockGestureMethod = jest.Mock<MockGesture, unknown[]>;
|
|
9
|
+
interface MockGesture {
|
|
10
|
+
activeOffsetY: MockGestureMethod;
|
|
11
|
+
enabled: MockGestureMethod;
|
|
12
|
+
failOffsetX: MockGestureMethod;
|
|
13
|
+
manualActivation: MockGestureMethod;
|
|
14
|
+
onBegin: MockGestureMethod;
|
|
15
|
+
onChange: MockGestureMethod;
|
|
16
|
+
onEnd: MockGestureMethod;
|
|
17
|
+
onFinalize: MockGestureMethod;
|
|
18
|
+
onStart: MockGestureMethod;
|
|
19
|
+
onTouchesDown: MockGestureMethod;
|
|
20
|
+
onTouchesMove: MockGestureMethod;
|
|
21
|
+
onUpdate: MockGestureMethod;
|
|
22
|
+
simultaneousWithExternalGesture: MockGestureMethod;
|
|
23
|
+
withRef: MockGestureMethod;
|
|
24
|
+
}
|
|
25
|
+
declare function GestureDetector({
|
|
26
|
+
children
|
|
27
|
+
}: GestureDetectorProps): ReactNode;
|
|
28
|
+
declare function createMockGesture(): MockGesture;
|
|
29
|
+
declare const Gesture: {
|
|
30
|
+
Native: typeof createMockGesture;
|
|
31
|
+
Pan: typeof createMockGesture;
|
|
32
|
+
Race: jest.Mock<MockGesture, unknown[], any>;
|
|
33
|
+
Simultaneous: jest.Mock<MockGesture, unknown[], any>;
|
|
34
|
+
Tap: typeof createMockGesture;
|
|
35
|
+
};
|
|
36
|
+
declare function GestureHandlerRootView({
|
|
37
|
+
children
|
|
38
|
+
}: GestureDetectorProps): ReactNode;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { Gesture, GestureDetector, GestureHandlerRootView };
|
|
41
|
+
//# sourceMappingURL=gesture-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gesture-handler.d.ts","names":[],"sources":["../../../src/jest/mocks/gesture-handler.tsx"],"mappings":";;;;UAIU,oBAAA;EACR,QAAA,GAAW,SAAA;AAAA;AAAA,KAGR,iBAAA,GAAoB,IAAA,CAAK,IAAA,CAAK,WAAA;AAAA,UAEzB,WAAA;EACR,aAAA,EAAe,iBAAA;EACf,OAAA,EAAS,iBAAA;EACT,WAAA,EAAa,iBAAA;EACb,gBAAA,EAAkB,iBAAA;EAClB,OAAA,EAAS,iBAAA;EACT,QAAA,EAAU,iBAAA;EACV,KAAA,EAAO,iBAAA;EACP,UAAA,EAAY,iBAAA;EACZ,OAAA,EAAS,iBAAA;EACT,aAAA,EAAe,iBAAA;EACf,aAAA,EAAe,iBAAA;EACf,QAAA,EAAU,iBAAA;EACV,+BAAA,EAAiC,iBAAA;EACjC,OAAA,EAAS,iBAAA;AAAA;AAAA,iBAGF,eAAA,CAAA;EAAkB;AAAA,GAAY,oBAAA,GAAoB,SAAA;AAAA,iBAIlD,iBAAA,CAAA,GAAqB,WAAA;AAAA,cAqBxB,OAAA;;;;;;;iBAQG,sBAAA,CAAA;EAAyB;AAAA,GAAY,oBAAA,GAAoB,SAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
//#region src/jest/mocks/gesture-handler.tsx
|
|
3
|
+
function GestureDetector({ children }) {
|
|
4
|
+
return children;
|
|
5
|
+
}
|
|
6
|
+
function createMockGesture() {
|
|
7
|
+
const gesture = {};
|
|
8
|
+
gesture.activeOffsetY = jest.fn(() => gesture);
|
|
9
|
+
gesture.enabled = jest.fn(() => gesture);
|
|
10
|
+
gesture.failOffsetX = jest.fn(() => gesture);
|
|
11
|
+
gesture.manualActivation = jest.fn(() => gesture);
|
|
12
|
+
gesture.onBegin = jest.fn(() => gesture);
|
|
13
|
+
gesture.onChange = jest.fn(() => gesture);
|
|
14
|
+
gesture.onEnd = jest.fn(() => gesture);
|
|
15
|
+
gesture.onFinalize = jest.fn(() => gesture);
|
|
16
|
+
gesture.onStart = jest.fn(() => gesture);
|
|
17
|
+
gesture.onTouchesDown = jest.fn(() => gesture);
|
|
18
|
+
gesture.onTouchesMove = jest.fn(() => gesture);
|
|
19
|
+
gesture.onUpdate = jest.fn(() => gesture);
|
|
20
|
+
gesture.simultaneousWithExternalGesture = jest.fn(() => gesture);
|
|
21
|
+
gesture.withRef = jest.fn(() => gesture);
|
|
22
|
+
return gesture;
|
|
23
|
+
}
|
|
24
|
+
const Gesture = {
|
|
25
|
+
Native: createMockGesture,
|
|
26
|
+
Pan: createMockGesture,
|
|
27
|
+
Race: jest.fn((..._gestures) => createMockGesture()),
|
|
28
|
+
Simultaneous: jest.fn((..._gestures) => createMockGesture()),
|
|
29
|
+
Tap: createMockGesture
|
|
30
|
+
};
|
|
31
|
+
function GestureHandlerRootView({ children }) {
|
|
32
|
+
return children;
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { Gesture, GestureDetector, GestureHandlerRootView };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=gesture-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gesture-handler.js","names":[],"sources":["../../../src/jest/mocks/gesture-handler.tsx"],"sourcesContent":["/// <reference types=\"jest\" />\n\nimport type { ReactNode } from 'react';\n\ninterface GestureDetectorProps {\n children?: ReactNode;\n}\n\ntype MockGestureMethod = jest.Mock<MockGesture, unknown[]>;\n\ninterface MockGesture {\n activeOffsetY: MockGestureMethod;\n enabled: MockGestureMethod;\n failOffsetX: MockGestureMethod;\n manualActivation: MockGestureMethod;\n onBegin: MockGestureMethod;\n onChange: MockGestureMethod;\n onEnd: MockGestureMethod;\n onFinalize: MockGestureMethod;\n onStart: MockGestureMethod;\n onTouchesDown: MockGestureMethod;\n onTouchesMove: MockGestureMethod;\n onUpdate: MockGestureMethod;\n simultaneousWithExternalGesture: MockGestureMethod;\n withRef: MockGestureMethod;\n}\n\nfunction GestureDetector({ children }: GestureDetectorProps) {\n return children;\n}\n\nfunction createMockGesture(): MockGesture {\n const gesture = {} as MockGesture;\n\n gesture.activeOffsetY = jest.fn(() => gesture);\n gesture.enabled = jest.fn(() => gesture);\n gesture.failOffsetX = jest.fn(() => gesture);\n gesture.manualActivation = jest.fn(() => gesture);\n gesture.onBegin = jest.fn(() => gesture);\n gesture.onChange = jest.fn(() => gesture);\n gesture.onEnd = jest.fn(() => gesture);\n gesture.onFinalize = jest.fn(() => gesture);\n gesture.onStart = jest.fn(() => gesture);\n gesture.onTouchesDown = jest.fn(() => gesture);\n gesture.onTouchesMove = jest.fn(() => gesture);\n gesture.onUpdate = jest.fn(() => gesture);\n gesture.simultaneousWithExternalGesture = jest.fn(() => gesture);\n gesture.withRef = jest.fn(() => gesture);\n\n return gesture;\n}\n\nconst Gesture = {\n Native: createMockGesture,\n Pan: createMockGesture,\n Race: jest.fn((..._gestures: unknown[]) => createMockGesture()),\n Simultaneous: jest.fn((..._gestures: unknown[]) => createMockGesture()),\n Tap: createMockGesture,\n};\n\nfunction GestureHandlerRootView({ children }: GestureDetectorProps) {\n return children;\n}\n\nexport { Gesture, GestureDetector, GestureHandlerRootView };\n"],"mappings":";;AA2BA,SAAS,gBAAgB,EAAE,YAAkC;CAC3D,OAAO;;AAGT,SAAS,oBAAiC;CACxC,MAAM,UAAU,EAAE;CAElB,QAAQ,gBAAgB,KAAK,SAAS,QAAQ;CAC9C,QAAQ,UAAU,KAAK,SAAS,QAAQ;CACxC,QAAQ,cAAc,KAAK,SAAS,QAAQ;CAC5C,QAAQ,mBAAmB,KAAK,SAAS,QAAQ;CACjD,QAAQ,UAAU,KAAK,SAAS,QAAQ;CACxC,QAAQ,WAAW,KAAK,SAAS,QAAQ;CACzC,QAAQ,QAAQ,KAAK,SAAS,QAAQ;CACtC,QAAQ,aAAa,KAAK,SAAS,QAAQ;CAC3C,QAAQ,UAAU,KAAK,SAAS,QAAQ;CACxC,QAAQ,gBAAgB,KAAK,SAAS,QAAQ;CAC9C,QAAQ,gBAAgB,KAAK,SAAS,QAAQ;CAC9C,QAAQ,WAAW,KAAK,SAAS,QAAQ;CACzC,QAAQ,kCAAkC,KAAK,SAAS,QAAQ;CAChE,QAAQ,UAAU,KAAK,SAAS,QAAQ;CAExC,OAAO;;AAGT,MAAM,UAAU;CACd,QAAQ;CACR,KAAK;CACL,MAAM,KAAK,IAAI,GAAG,cAAyB,mBAAmB,CAAC;CAC/D,cAAc,KAAK,IAAI,GAAG,cAAyB,mBAAmB,CAAC;CACvE,KAAK;CACN;AAED,SAAS,uBAAuB,EAAE,YAAkC;CAClE,OAAO"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
//#region src/jest/mocks/safe-area-context.tsx
|
|
4
|
+
const initialWindowMetrics = {
|
|
5
|
+
frame: {
|
|
6
|
+
x: 0,
|
|
7
|
+
y: 0,
|
|
8
|
+
width: 375,
|
|
9
|
+
height: 812
|
|
10
|
+
},
|
|
11
|
+
insets: {
|
|
12
|
+
top: 0,
|
|
13
|
+
right: 0,
|
|
14
|
+
bottom: 0,
|
|
15
|
+
left: 0
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
function SafeAreaProvider({ children }) {
|
|
19
|
+
return children;
|
|
20
|
+
}
|
|
21
|
+
function SafeAreaView({ children }) {
|
|
22
|
+
return children;
|
|
23
|
+
}
|
|
24
|
+
function useSafeAreaInsets() {
|
|
25
|
+
return initialWindowMetrics.insets;
|
|
26
|
+
}
|
|
27
|
+
function useSafeAreaFrame() {
|
|
28
|
+
return initialWindowMetrics.frame;
|
|
29
|
+
}
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.SafeAreaProvider = SafeAreaProvider;
|
|
32
|
+
exports.SafeAreaView = SafeAreaView;
|
|
33
|
+
exports.initialWindowMetrics = initialWindowMetrics;
|
|
34
|
+
exports.useSafeAreaFrame = useSafeAreaFrame;
|
|
35
|
+
exports.useSafeAreaInsets = useSafeAreaInsets;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/jest/mocks/safe-area-context.d.ts
|
|
5
|
+
declare const initialWindowMetrics: {
|
|
6
|
+
frame: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
insets: {
|
|
13
|
+
top: number;
|
|
14
|
+
right: number;
|
|
15
|
+
bottom: number;
|
|
16
|
+
left: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare function SafeAreaProvider({
|
|
20
|
+
children
|
|
21
|
+
}: {
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
}): ReactNode;
|
|
24
|
+
declare function SafeAreaView({
|
|
25
|
+
children
|
|
26
|
+
}: {
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}): ReactNode;
|
|
29
|
+
declare function useSafeAreaInsets(): {
|
|
30
|
+
top: number;
|
|
31
|
+
right: number;
|
|
32
|
+
bottom: number;
|
|
33
|
+
left: number;
|
|
34
|
+
};
|
|
35
|
+
declare function useSafeAreaFrame(): {
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { SafeAreaProvider, SafeAreaView, initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets };
|
|
43
|
+
//# sourceMappingURL=safe-area-context.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-area-context.d.cts","names":[],"sources":["../../../src/jest/mocks/safe-area-context.tsx"],"mappings":";;;;cAEM,oBAAA;;;;;;;;;;;;;;iBAKG,gBAAA,CAAA;EAAmB;AAAA;EAAc,QAAA,GAAW,SAAA;AAAA,IAAW,SAAA;AAAA,iBAIvD,YAAA,CAAA;EAAe;AAAA;EAAc,QAAA,GAAW,SAAA;AAAA,IAAW,SAAA;AAAA,iBAInD,iBAAA,CAAA;;;;;;iBAIA,gBAAA,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/jest/mocks/safe-area-context.d.ts
|
|
5
|
+
declare const initialWindowMetrics: {
|
|
6
|
+
frame: {
|
|
7
|
+
x: number;
|
|
8
|
+
y: number;
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
};
|
|
12
|
+
insets: {
|
|
13
|
+
top: number;
|
|
14
|
+
right: number;
|
|
15
|
+
bottom: number;
|
|
16
|
+
left: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare function SafeAreaProvider({
|
|
20
|
+
children
|
|
21
|
+
}: {
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
}): ReactNode;
|
|
24
|
+
declare function SafeAreaView({
|
|
25
|
+
children
|
|
26
|
+
}: {
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}): ReactNode;
|
|
29
|
+
declare function useSafeAreaInsets(): {
|
|
30
|
+
top: number;
|
|
31
|
+
right: number;
|
|
32
|
+
bottom: number;
|
|
33
|
+
left: number;
|
|
34
|
+
};
|
|
35
|
+
declare function useSafeAreaFrame(): {
|
|
36
|
+
x: number;
|
|
37
|
+
y: number;
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { SafeAreaProvider, SafeAreaView, initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets };
|
|
43
|
+
//# sourceMappingURL=safe-area-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-area-context.d.ts","names":[],"sources":["../../../src/jest/mocks/safe-area-context.tsx"],"mappings":";;;;cAEM,oBAAA;;;;;;;;;;;;;;iBAKG,gBAAA,CAAA;EAAmB;AAAA;EAAc,QAAA,GAAW,SAAA;AAAA,IAAW,SAAA;AAAA,iBAIvD,YAAA,CAAA;EAAe;AAAA;EAAc,QAAA,GAAW,SAAA;AAAA,IAAW,SAAA;AAAA,iBAInD,iBAAA,CAAA;;;;;;iBAIA,gBAAA,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
//#region src/jest/mocks/safe-area-context.tsx
|
|
3
|
+
const initialWindowMetrics = {
|
|
4
|
+
frame: {
|
|
5
|
+
x: 0,
|
|
6
|
+
y: 0,
|
|
7
|
+
width: 375,
|
|
8
|
+
height: 812
|
|
9
|
+
},
|
|
10
|
+
insets: {
|
|
11
|
+
top: 0,
|
|
12
|
+
right: 0,
|
|
13
|
+
bottom: 0,
|
|
14
|
+
left: 0
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
function SafeAreaProvider({ children }) {
|
|
18
|
+
return children;
|
|
19
|
+
}
|
|
20
|
+
function SafeAreaView({ children }) {
|
|
21
|
+
return children;
|
|
22
|
+
}
|
|
23
|
+
function useSafeAreaInsets() {
|
|
24
|
+
return initialWindowMetrics.insets;
|
|
25
|
+
}
|
|
26
|
+
function useSafeAreaFrame() {
|
|
27
|
+
return initialWindowMetrics.frame;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { SafeAreaProvider, SafeAreaView, initialWindowMetrics, useSafeAreaFrame, useSafeAreaInsets };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=safe-area-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"safe-area-context.js","names":[],"sources":["../../../src/jest/mocks/safe-area-context.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nconst initialWindowMetrics = {\n frame: { x: 0, y: 0, width: 375, height: 812 },\n insets: { top: 0, right: 0, bottom: 0, left: 0 },\n};\n\nfunction SafeAreaProvider({ children }: { children?: ReactNode }) {\n return children;\n}\n\nfunction SafeAreaView({ children }: { children?: ReactNode }) {\n return children;\n}\n\nfunction useSafeAreaInsets() {\n return initialWindowMetrics.insets;\n}\n\nfunction useSafeAreaFrame() {\n return initialWindowMetrics.frame;\n}\n\nexport {\n initialWindowMetrics,\n SafeAreaProvider,\n SafeAreaView,\n useSafeAreaFrame,\n useSafeAreaInsets,\n};\n"],"mappings":";;AAEA,MAAM,uBAAuB;CAC3B,OAAO;EAAE,GAAG;EAAG,GAAG;EAAG,OAAO;EAAK,QAAQ;EAAK;CAC9C,QAAQ;EAAE,KAAK;EAAG,OAAO;EAAG,QAAQ;EAAG,MAAM;EAAG;CACjD;AAED,SAAS,iBAAiB,EAAE,YAAsC;CAChE,OAAO;;AAGT,SAAS,aAAa,EAAE,YAAsC;CAC5D,OAAO;;AAGT,SAAS,oBAAoB;CAC3B,OAAO,qBAAqB;;AAG9B,SAAS,mBAAmB;CAC1B,OAAO,qBAAqB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
//#region src/jest/mocks/screens.tsx
|
|
4
|
+
function FullWindowOverlay({ children }) {
|
|
5
|
+
return children;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
exports.FullWindowOverlay = FullWindowOverlay;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/jest/mocks/screens.d.ts
|
|
5
|
+
declare function FullWindowOverlay({
|
|
6
|
+
children
|
|
7
|
+
}: {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}): ReactNode;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { FullWindowOverlay };
|
|
12
|
+
//# sourceMappingURL=screens.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screens.d.cts","names":[],"sources":["../../../src/jest/mocks/screens.tsx"],"mappings":";;;;iBAES,iBAAA,CAAA;EAAoB;AAAA;EAAc,QAAA,GAAW,SAAA;AAAA,IAAW,SAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/jest/mocks/screens.d.ts
|
|
5
|
+
declare function FullWindowOverlay({
|
|
6
|
+
children
|
|
7
|
+
}: {
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
}): ReactNode;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { FullWindowOverlay };
|
|
12
|
+
//# sourceMappingURL=screens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screens.d.ts","names":[],"sources":["../../../src/jest/mocks/screens.tsx"],"mappings":";;;;iBAES,iBAAA,CAAA;EAAoB;AAAA;EAAc,QAAA,GAAW,SAAA;AAAA,IAAW,SAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"screens.js","names":[],"sources":["../../../src/jest/mocks/screens.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nfunction FullWindowOverlay({ children }: { children?: ReactNode }) {\n return children;\n}\n\nexport { FullWindowOverlay };\n"],"mappings":";;AAEA,SAAS,kBAAkB,EAAE,YAAsC;CACjE,OAAO"}
|
|
@@ -15,7 +15,8 @@ var styles_exports = /* @__PURE__ */ require("../../_virtual/_rolldown/runtime.c
|
|
|
15
15
|
styles: () => styles,
|
|
16
16
|
switchStyles: () => switchStyles,
|
|
17
17
|
tabsStyles: () => tabsStyles,
|
|
18
|
-
textStyles: () => textStyles
|
|
18
|
+
textStyles: () => textStyles,
|
|
19
|
+
toastStyles: () => toastStyles
|
|
19
20
|
});
|
|
20
21
|
/**
|
|
21
22
|
* Jest mock for generated/styles.
|
|
@@ -323,6 +324,41 @@ const tabsStyles = createComponentStyles({ root: {
|
|
|
323
324
|
alignItems: "center",
|
|
324
325
|
gap: 8
|
|
325
326
|
} });
|
|
327
|
+
const toastStyles = createComponentStyles({
|
|
328
|
+
root: {
|
|
329
|
+
alignItems: "center",
|
|
330
|
+
backgroundBlurColor: "rgba(255, 255, 255, 0.9)",
|
|
331
|
+
backgroundBlurRadius: 0,
|
|
332
|
+
backgroundColor: "#FFFFFF",
|
|
333
|
+
borderColor: "#E0E0E0",
|
|
334
|
+
borderRadius: 12,
|
|
335
|
+
borderWidth: 1,
|
|
336
|
+
boxShadow: "",
|
|
337
|
+
flexDirection: "row",
|
|
338
|
+
gap: 8,
|
|
339
|
+
paddingHorizontal: 12,
|
|
340
|
+
paddingVertical: 10
|
|
341
|
+
},
|
|
342
|
+
text: { color: "#000000" },
|
|
343
|
+
icon: {
|
|
344
|
+
color: "#000000",
|
|
345
|
+
fontSize: 16,
|
|
346
|
+
iconSizeToken: "md",
|
|
347
|
+
lineHeight: 16
|
|
348
|
+
},
|
|
349
|
+
closeIcon: {
|
|
350
|
+
color: "#000000",
|
|
351
|
+
fontSize: 12,
|
|
352
|
+
iconSizeToken: "sm",
|
|
353
|
+
lineHeight: 12
|
|
354
|
+
},
|
|
355
|
+
label: {
|
|
356
|
+
fontFamily: "YahooProductSans-Medium",
|
|
357
|
+
fontSize: 14,
|
|
358
|
+
letterSpacing: 0,
|
|
359
|
+
lineHeight: 20
|
|
360
|
+
}
|
|
361
|
+
});
|
|
326
362
|
//#endregion
|
|
327
363
|
exports.avatarStyles = avatarStyles;
|
|
328
364
|
exports.badgeStyles = badgeStyles;
|
|
@@ -344,3 +380,4 @@ Object.defineProperty(exports, "styles_exports", {
|
|
|
344
380
|
exports.switchStyles = switchStyles;
|
|
345
381
|
exports.tabsStyles = tabsStyles;
|
|
346
382
|
exports.textStyles = textStyles;
|
|
383
|
+
exports.toastStyles = toastStyles;
|