@yahoo/uds-mobile 2.19.0 → 2.20.1
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/components/Modal/Modal.cjs +396 -0
- package/dist/components/Modal/Modal.d.cts +9 -0
- package/dist/components/Modal/Modal.d.cts.map +1 -0
- package/dist/components/Modal/Modal.d.ts +9 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.js +395 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/ModalActions.cjs +47 -0
- package/dist/components/Modal/ModalActions.d.cts +9 -0
- package/dist/components/Modal/ModalActions.d.cts.map +1 -0
- package/dist/components/Modal/ModalActions.d.ts +9 -0
- package/dist/components/Modal/ModalActions.d.ts.map +1 -0
- package/dist/components/Modal/ModalActions.js +47 -0
- package/dist/components/Modal/ModalActions.js.map +1 -0
- package/dist/components/Modal/ModalContent.cjs +41 -0
- package/dist/components/Modal/ModalContent.d.cts +9 -0
- package/dist/components/Modal/ModalContent.d.cts.map +1 -0
- package/dist/components/Modal/ModalContent.d.ts +9 -0
- package/dist/components/Modal/ModalContent.d.ts.map +1 -0
- package/dist/components/Modal/ModalContent.js +41 -0
- package/dist/components/Modal/ModalContent.js.map +1 -0
- package/dist/components/Modal/ModalContext.cjs +14 -0
- package/dist/components/Modal/ModalContext.d.cts +10 -0
- package/dist/components/Modal/ModalContext.d.cts.map +1 -0
- package/dist/components/Modal/ModalContext.d.ts +10 -0
- package/dist/components/Modal/ModalContext.d.ts.map +1 -0
- package/dist/components/Modal/ModalContext.js +13 -0
- package/dist/components/Modal/ModalContext.js.map +1 -0
- package/dist/components/Modal/ModalDescription.cjs +21 -0
- package/dist/components/Modal/ModalDescription.d.cts +9 -0
- package/dist/components/Modal/ModalDescription.d.cts.map +1 -0
- package/dist/components/Modal/ModalDescription.d.ts +9 -0
- package/dist/components/Modal/ModalDescription.d.ts.map +1 -0
- package/dist/components/Modal/ModalDescription.js +21 -0
- package/dist/components/Modal/ModalDescription.js.map +1 -0
- package/dist/components/Modal/ModalTitle.cjs +22 -0
- package/dist/components/Modal/ModalTitle.d.cts +9 -0
- package/dist/components/Modal/ModalTitle.d.cts.map +1 -0
- package/dist/components/Modal/ModalTitle.d.ts +9 -0
- package/dist/components/Modal/ModalTitle.d.ts.map +1 -0
- package/dist/components/Modal/ModalTitle.js +22 -0
- package/dist/components/Modal/ModalTitle.js.map +1 -0
- package/dist/components/Modal/index.cjs +12 -0
- package/dist/components/Modal/index.d.cts +8 -0
- package/dist/components/Modal/index.d.ts +8 -0
- package/dist/components/Modal/index.js +7 -0
- package/dist/components/Modal/types.cjs +1 -0
- package/dist/components/Modal/types.d.cts +111 -0
- package/dist/components/Modal/types.d.cts.map +1 -0
- package/dist/components/Modal/types.d.ts +111 -0
- package/dist/components/Modal/types.d.ts.map +1 -0
- package/dist/components/Modal/types.js +1 -0
- package/dist/components/Modal/utils.cjs +59 -0
- package/dist/components/Modal/utils.d.cts +28 -0
- package/dist/components/Modal/utils.d.cts.map +1 -0
- package/dist/components/Modal/utils.d.ts +28 -0
- package/dist/components/Modal/utils.d.ts.map +1 -0
- package/dist/components/Modal/utils.js +56 -0
- package/dist/components/Modal/utils.js.map +1 -0
- package/dist/components/Pagination/paginationTheme.cjs +4 -2
- package/dist/components/Pagination/paginationTheme.d.cts +1 -1
- package/dist/components/Pagination/paginationTheme.d.ts +1 -1
- package/dist/components/Pagination/paginationTheme.js +4 -2
- package/dist/components/Pagination/paginationTheme.js.map +1 -1
- package/dist/jest/mocks/gesture-handler.cjs +29 -0
- package/dist/jest/mocks/gesture-handler.d.cts +27 -2
- package/dist/jest/mocks/gesture-handler.d.cts.map +1 -1
- package/dist/jest/mocks/gesture-handler.d.ts +27 -2
- package/dist/jest/mocks/gesture-handler.d.ts.map +1 -1
- package/dist/jest/mocks/gesture-handler.js +22 -1
- package/dist/jest/mocks/gesture-handler.js.map +1 -1
- package/dist/jest/mocks/styles.cjs +39 -0
- 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 +39 -1
- package/dist/jest/mocks/styles.js.map +1 -1
- package/dist/jest/setup.cjs +8 -28
- package/dist/jest/setup.d.cts.map +1 -1
- package/dist/jest/setup.d.ts.map +1 -1
- package/dist/jest/setup.js +8 -28
- package/dist/jest/setup.js.map +1 -1
- package/generated/styles.d.ts +1 -1
- package/package.json +11 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
import { ModalDimension } from "./types.cjs";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { DimensionValue, GestureResponderEvent } from "react-native";
|
|
5
|
+
|
|
6
|
+
//#region src/components/Modal/utils.d.ts
|
|
7
|
+
interface Point {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}
|
|
11
|
+
interface Rect {
|
|
12
|
+
height: number;
|
|
13
|
+
width: number;
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
}
|
|
17
|
+
declare function separateChildren(children: ReactNode): {
|
|
18
|
+
title: ReactNode | null;
|
|
19
|
+
description: ReactNode | null;
|
|
20
|
+
content: ReactNode | null;
|
|
21
|
+
actions: ReactNode | null;
|
|
22
|
+
};
|
|
23
|
+
declare function resolveModalDimension(value: ModalDimension | undefined): DimensionValue | undefined;
|
|
24
|
+
declare function getEventPagePoint(event?: GestureResponderEvent): Point | null;
|
|
25
|
+
declare function shouldDismissModalRelease(point: Point, surfaceRect: Rect): boolean;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { type Point, type Rect, getEventPagePoint, resolveModalDimension, separateChildren, shouldDismissModalRelease };
|
|
28
|
+
//# sourceMappingURL=utils.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.cts","names":[],"sources":["../../../src/components/Modal/utils.ts"],"mappings":";;;;;;UAMU,KAAA;EACR,CAAA;EACA,CAAA;AAAA;AAAA,UAGQ,IAAA;EACR,MAAA;EACA,KAAA;EACA,CAAA;EACA,CAAA;AAAA;AAAA,iBAYO,gBAAA,CAAiB,QAAA,EAAU,SAAA;EAClC,KAAA,EAAO,SAAA;EACP,WAAA,EAAa,SAAA;EACb,OAAA,EAAS,SAAA;EACT,OAAA,EAAS,SAAA;AAAA;AAAA,iBA4BF,qBAAA,CAAsB,KAAA,EAAO,cAAA,eAA6B,cAAA;AAAA,iBAa1D,iBAAA,CAAkB,KAAA,GAAQ,qBAAA,GAAwB,KAAA;AAAA,iBAsBlD,yBAAA,CAA0B,KAAA,EAAO,KAAA,EAAO,WAAA,EAAa,IAAA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
import { ModalDimension } from "./types.js";
|
|
3
|
+
import { ReactNode } from "react";
|
|
4
|
+
import { DimensionValue, GestureResponderEvent } from "react-native";
|
|
5
|
+
|
|
6
|
+
//#region src/components/Modal/utils.d.ts
|
|
7
|
+
interface Point {
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
}
|
|
11
|
+
interface Rect {
|
|
12
|
+
height: number;
|
|
13
|
+
width: number;
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
}
|
|
17
|
+
declare function separateChildren(children: ReactNode): {
|
|
18
|
+
title: ReactNode | null;
|
|
19
|
+
description: ReactNode | null;
|
|
20
|
+
content: ReactNode | null;
|
|
21
|
+
actions: ReactNode | null;
|
|
22
|
+
};
|
|
23
|
+
declare function resolveModalDimension(value: ModalDimension | undefined): DimensionValue | undefined;
|
|
24
|
+
declare function getEventPagePoint(event?: GestureResponderEvent): Point | null;
|
|
25
|
+
declare function shouldDismissModalRelease(point: Point, surfaceRect: Rect): boolean;
|
|
26
|
+
//#endregion
|
|
27
|
+
export { type Point, type Rect, getEventPagePoint, resolveModalDimension, separateChildren, shouldDismissModalRelease };
|
|
28
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","names":[],"sources":["../../../src/components/Modal/utils.ts"],"mappings":";;;;;;UAMU,KAAA;EACR,CAAA;EACA,CAAA;AAAA;AAAA,UAGQ,IAAA;EACR,MAAA;EACA,KAAA;EACA,CAAA;EACA,CAAA;AAAA;AAAA,iBAYO,gBAAA,CAAiB,QAAA,EAAU,SAAA;EAClC,KAAA,EAAO,SAAA;EACP,WAAA,EAAa,SAAA;EACb,OAAA,EAAS,SAAA;EACT,OAAA,EAAS,SAAA;AAAA;AAAA,iBA4BF,qBAAA,CAAsB,KAAA,EAAO,cAAA,eAA6B,cAAA;AAAA,iBAa1D,iBAAA,CAAkB,KAAA,GAAQ,qBAAA,GAAwB,KAAA;AAAA,iBAsBlD,yBAAA,CAA0B,KAAA,EAAO,KAAA,EAAO,WAAA,EAAa,IAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
import { Children, isValidElement } from "react";
|
|
3
|
+
//#region src/components/Modal/utils.ts
|
|
4
|
+
function getModalSlot(child) {
|
|
5
|
+
if (!isValidElement(child)) return null;
|
|
6
|
+
return child.type.__modalSlot ?? null;
|
|
7
|
+
}
|
|
8
|
+
function separateChildren(children) {
|
|
9
|
+
let title = null;
|
|
10
|
+
let description = null;
|
|
11
|
+
let content = null;
|
|
12
|
+
let actions = null;
|
|
13
|
+
Children.forEach(children, (child) => {
|
|
14
|
+
if (child == null || child === false || child === true || child === "") return;
|
|
15
|
+
const slot = getModalSlot(child);
|
|
16
|
+
if (slot === "title") title = child;
|
|
17
|
+
else if (slot === "description") description = child;
|
|
18
|
+
else if (slot === "content") content = child;
|
|
19
|
+
else if (slot === "actions") actions = child;
|
|
20
|
+
});
|
|
21
|
+
return {
|
|
22
|
+
title,
|
|
23
|
+
description,
|
|
24
|
+
content,
|
|
25
|
+
actions
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function resolveModalDimension(value) {
|
|
29
|
+
if (value === void 0 || value === null || value === "auto") return;
|
|
30
|
+
if (typeof value === "string" && value.endsWith("px")) {
|
|
31
|
+
const parsed = Number.parseFloat(value);
|
|
32
|
+
return Number.isFinite(parsed) ? parsed : void 0;
|
|
33
|
+
}
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
function getEventPagePoint(event) {
|
|
37
|
+
const nativeEvent = event?.nativeEvent;
|
|
38
|
+
const changedTouch = nativeEvent?.changedTouches?.[0];
|
|
39
|
+
const pageX = typeof nativeEvent?.pageX === "number" ? nativeEvent.pageX : changedTouch?.pageX;
|
|
40
|
+
const pageY = typeof nativeEvent?.pageY === "number" ? nativeEvent.pageY : changedTouch?.pageY;
|
|
41
|
+
if (typeof pageX !== "number" || typeof pageY !== "number") return null;
|
|
42
|
+
return {
|
|
43
|
+
x: pageX,
|
|
44
|
+
y: pageY
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function isPointInRect(point, rect) {
|
|
48
|
+
return point.x >= rect.x && point.x <= rect.x + rect.width && point.y >= rect.y && point.y <= rect.y + rect.height;
|
|
49
|
+
}
|
|
50
|
+
function shouldDismissModalRelease(point, surfaceRect) {
|
|
51
|
+
return !isPointInRect(point, surfaceRect);
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { getEventPagePoint, resolveModalDimension, separateChildren, shouldDismissModalRelease };
|
|
55
|
+
|
|
56
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../../src/components/Modal/utils.ts"],"sourcesContent":["import type { ReactNode } from 'react';\nimport { Children, isValidElement } from 'react';\nimport type { DimensionValue, GestureResponderEvent } from 'react-native';\n\nimport type { ModalDimension, ModalSlot, ModalSlotComponent } from './types';\n\ninterface Point {\n x: number;\n y: number;\n}\n\ninterface Rect {\n height: number;\n width: number;\n x: number;\n y: number;\n}\n\nfunction getModalSlot(child: ReactNode): ModalSlot | null {\n if (!isValidElement(child)) {\n return null;\n }\n\n const type = child.type as ModalSlotComponent;\n return type.__modalSlot ?? null;\n}\n\nfunction separateChildren(children: ReactNode): {\n title: ReactNode | null;\n description: ReactNode | null;\n content: ReactNode | null;\n actions: ReactNode | null;\n} {\n let title: ReactNode | null = null;\n let description: ReactNode | null = null;\n let content: ReactNode | null = null;\n let actions: ReactNode | null = null;\n\n Children.forEach(children, (child) => {\n if (child == null || child === false || child === true || child === '') {\n return;\n }\n\n const slot = getModalSlot(child);\n\n if (slot === 'title') {\n title = child;\n } else if (slot === 'description') {\n description = child;\n } else if (slot === 'content') {\n content = child;\n } else if (slot === 'actions') {\n actions = child;\n }\n });\n\n return { title, description, content, actions };\n}\n\nfunction resolveModalDimension(value: ModalDimension | undefined): DimensionValue | undefined {\n if (value === undefined || value === null || value === 'auto') {\n return undefined;\n }\n\n if (typeof value === 'string' && value.endsWith('px')) {\n const parsed = Number.parseFloat(value);\n return Number.isFinite(parsed) ? parsed : undefined;\n }\n\n return value as DimensionValue;\n}\n\nfunction getEventPagePoint(event?: GestureResponderEvent): Point | null {\n const nativeEvent = event?.nativeEvent;\n const changedTouch = nativeEvent?.changedTouches?.[0];\n const pageX = typeof nativeEvent?.pageX === 'number' ? nativeEvent.pageX : changedTouch?.pageX;\n const pageY = typeof nativeEvent?.pageY === 'number' ? nativeEvent.pageY : changedTouch?.pageY;\n\n if (typeof pageX !== 'number' || typeof pageY !== 'number') {\n return null;\n }\n\n return { x: pageX, y: pageY };\n}\n\nfunction isPointInRect(point: Point, rect: Rect): boolean {\n return (\n point.x >= rect.x &&\n point.x <= rect.x + rect.width &&\n point.y >= rect.y &&\n point.y <= rect.y + rect.height\n );\n}\n\nfunction shouldDismissModalRelease(point: Point, surfaceRect: Rect): boolean {\n return !isPointInRect(point, surfaceRect);\n}\n\nexport { getEventPagePoint, resolveModalDimension, separateChildren, shouldDismissModalRelease };\nexport type { Point, Rect };\n"],"mappings":";;;AAkBA,SAAS,aAAa,OAAoC;CACxD,IAAI,CAAC,eAAe,MAAM,EACxB,OAAO;CAIT,OADa,MAAM,KACP,eAAe;;AAG7B,SAAS,iBAAiB,UAKxB;CACA,IAAI,QAA0B;CAC9B,IAAI,cAAgC;CACpC,IAAI,UAA4B;CAChC,IAAI,UAA4B;CAEhC,SAAS,QAAQ,WAAW,UAAU;EACpC,IAAI,SAAS,QAAQ,UAAU,SAAS,UAAU,QAAQ,UAAU,IAClE;EAGF,MAAM,OAAO,aAAa,MAAM;EAEhC,IAAI,SAAS,SACX,QAAQ;OACH,IAAI,SAAS,eAClB,cAAc;OACT,IAAI,SAAS,WAClB,UAAU;OACL,IAAI,SAAS,WAClB,UAAU;GAEZ;CAEF,OAAO;EAAE;EAAO;EAAa;EAAS;EAAS;;AAGjD,SAAS,sBAAsB,OAA+D;CAC5F,IAAI,UAAU,KAAA,KAAa,UAAU,QAAQ,UAAU,QACrD;CAGF,IAAI,OAAO,UAAU,YAAY,MAAM,SAAS,KAAK,EAAE;EACrD,MAAM,SAAS,OAAO,WAAW,MAAM;EACvC,OAAO,OAAO,SAAS,OAAO,GAAG,SAAS,KAAA;;CAG5C,OAAO;;AAGT,SAAS,kBAAkB,OAA6C;CACtE,MAAM,cAAc,OAAO;CAC3B,MAAM,eAAe,aAAa,iBAAiB;CACnD,MAAM,QAAQ,OAAO,aAAa,UAAU,WAAW,YAAY,QAAQ,cAAc;CACzF,MAAM,QAAQ,OAAO,aAAa,UAAU,WAAW,YAAY,QAAQ,cAAc;CAEzF,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,UAChD,OAAO;CAGT,OAAO;EAAE,GAAG;EAAO,GAAG;EAAO;;AAG/B,SAAS,cAAc,OAAc,MAAqB;CACxD,OACE,MAAM,KAAK,KAAK,KAChB,MAAM,KAAK,KAAK,IAAI,KAAK,SACzB,MAAM,KAAK,KAAK,KAChB,MAAM,KAAK,KAAK,IAAI,KAAK;;AAI7B,SAAS,0BAA0B,OAAc,aAA4B;CAC3E,OAAO,CAAC,cAAc,OAAO,YAAY"}
|
|
@@ -46,14 +46,16 @@ function getMergedPaginationIconStyle(theme, size, variant, active, state) {
|
|
|
46
46
|
function getPaginationRootGapStyle(theme, size) {
|
|
47
47
|
return getPaginationSizeLayerStyle(theme, size, "root");
|
|
48
48
|
}
|
|
49
|
-
/** Control height/width from item padding plus icon size, matching web
|
|
49
|
+
/** Control height/width from item padding plus max(icon size, text line-height), matching web. */
|
|
50
50
|
function getPaginationControlMetrics(theme, size) {
|
|
51
51
|
const itemStyle = getPaginationSizeLayerStyle(theme, size, "item");
|
|
52
52
|
const iconStyle = getPaginationSizeLayerStyle(theme, size, "icon");
|
|
53
|
+
const textStyle = getPaginationSizeLayerStyle(theme, size, "text");
|
|
53
54
|
const padding = (typeof itemStyle.padding === "number" ? itemStyle.padding : void 0) ?? (typeof itemStyle.paddingVertical === "number" ? itemStyle.paddingVertical : void 0) ?? 8;
|
|
54
55
|
const iconSize = (typeof iconStyle.fontSize === "number" ? iconStyle.fontSize : void 0) ?? (typeof iconStyle.lineHeight === "number" ? iconStyle.lineHeight : void 0) ?? 16;
|
|
56
|
+
const lineHeight = typeof textStyle.lineHeight === "number" ? textStyle.lineHeight : void 0;
|
|
55
57
|
return {
|
|
56
|
-
controlSize: padding * 2 + iconSize,
|
|
58
|
+
controlSize: padding * 2 + Math.max(iconSize, lineHeight ?? iconSize),
|
|
57
59
|
borderRadius: itemStyle.borderRadius
|
|
58
60
|
};
|
|
59
61
|
}
|
|
@@ -18,7 +18,7 @@ declare function getMergedPaginationTextStyle(theme: PaginationTheme, size: Pagi
|
|
|
18
18
|
/** Icon sizing from size layer; color follows variant rootText. */
|
|
19
19
|
declare function getMergedPaginationIconStyle(theme: PaginationTheme, size: PaginationSize, variant: PaginationVariant, active: PaginationActiveState, state: InteractionState): TextStyle;
|
|
20
20
|
declare function getPaginationRootGapStyle(theme: PaginationTheme, size: PaginationSize): ViewStyle;
|
|
21
|
-
/** Control height/width from item padding plus icon size, matching web
|
|
21
|
+
/** Control height/width from item padding plus max(icon size, text line-height), matching web. */
|
|
22
22
|
declare function getPaginationControlMetrics(theme: PaginationTheme, size: PaginationSize): {
|
|
23
23
|
controlSize: number;
|
|
24
24
|
borderRadius: ViewStyle['borderRadius'];
|
|
@@ -18,7 +18,7 @@ declare function getMergedPaginationTextStyle(theme: PaginationTheme, size: Pagi
|
|
|
18
18
|
/** Icon sizing from size layer; color follows variant rootText. */
|
|
19
19
|
declare function getMergedPaginationIconStyle(theme: PaginationTheme, size: PaginationSize, variant: PaginationVariant, active: PaginationActiveState, state: InteractionState): TextStyle;
|
|
20
20
|
declare function getPaginationRootGapStyle(theme: PaginationTheme, size: PaginationSize): ViewStyle;
|
|
21
|
-
/** Control height/width from item padding plus icon size, matching web
|
|
21
|
+
/** Control height/width from item padding plus max(icon size, text line-height), matching web. */
|
|
22
22
|
declare function getPaginationControlMetrics(theme: PaginationTheme, size: PaginationSize): {
|
|
23
23
|
controlSize: number;
|
|
24
24
|
borderRadius: ViewStyle['borderRadius'];
|
|
@@ -45,14 +45,16 @@ function getMergedPaginationIconStyle(theme, size, variant, active, state) {
|
|
|
45
45
|
function getPaginationRootGapStyle(theme, size) {
|
|
46
46
|
return getPaginationSizeLayerStyle(theme, size, "root");
|
|
47
47
|
}
|
|
48
|
-
/** Control height/width from item padding plus icon size, matching web
|
|
48
|
+
/** Control height/width from item padding plus max(icon size, text line-height), matching web. */
|
|
49
49
|
function getPaginationControlMetrics(theme, size) {
|
|
50
50
|
const itemStyle = getPaginationSizeLayerStyle(theme, size, "item");
|
|
51
51
|
const iconStyle = getPaginationSizeLayerStyle(theme, size, "icon");
|
|
52
|
+
const textStyle = getPaginationSizeLayerStyle(theme, size, "text");
|
|
52
53
|
const padding = (typeof itemStyle.padding === "number" ? itemStyle.padding : void 0) ?? (typeof itemStyle.paddingVertical === "number" ? itemStyle.paddingVertical : void 0) ?? 8;
|
|
53
54
|
const iconSize = (typeof iconStyle.fontSize === "number" ? iconStyle.fontSize : void 0) ?? (typeof iconStyle.lineHeight === "number" ? iconStyle.lineHeight : void 0) ?? 16;
|
|
55
|
+
const lineHeight = typeof textStyle.lineHeight === "number" ? textStyle.lineHeight : void 0;
|
|
54
56
|
return {
|
|
55
|
-
controlSize: padding * 2 + iconSize,
|
|
57
|
+
controlSize: padding * 2 + Math.max(iconSize, lineHeight ?? iconSize),
|
|
56
58
|
borderRadius: itemStyle.borderRadius
|
|
57
59
|
};
|
|
58
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paginationTheme.js","names":[],"sources":["../../../src/components/Pagination/paginationTheme.ts"],"sourcesContent":["import type { PaginationSize, PaginationVariant } from '@yahoo/uds-types';\nimport type { TextStyle, ViewStyle } from 'react-native';\n\nimport { PAGINATION_DEFAULT_COMPONENTS } from './paginationDefaultComponents';\n\ntype PaginationActiveState = 'on' | 'off';\ntype PaginationVariantLayer = 'root' | 'rootText';\ntype InteractionState = 'rest' | 'pressed';\n\ntype PaginationTheme = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n components: Record<string, any>;\n};\n\nfunction paginationSizePath(\n size: PaginationSize,\n layer: 'root' | 'item' | 'icon' | 'text',\n): string {\n return `pagination/size/${size}/${layer}/rest`;\n}\n\nfunction paginationVariantPath(\n variant: PaginationVariant,\n active: PaginationActiveState,\n layer: PaginationVariantLayer,\n state: InteractionState,\n): string {\n return `pagination/variant/${variant}/active/${active}/${layer}/${state}`;\n}\n\nfunction getLayerStyle(theme: PaginationTheme, path: string): ViewStyle | TextStyle {\n const style = theme.components[path];\n if (style && typeof style === 'object' && Object.keys(style).length > 0) {\n return style;\n }\n\n const fallback = PAGINATION_DEFAULT_COMPONENTS[path];\n return fallback && typeof fallback === 'object' ? fallback : {};\n}\n\nexport function getPaginationSizeLayerStyle(\n theme: PaginationTheme,\n size: PaginationSize,\n layer: 'root' | 'item' | 'icon' | 'text',\n): ViewStyle | TextStyle {\n return getLayerStyle(theme, paginationSizePath(size, layer));\n}\n\nexport function getPaginationVariantLayerStyle(\n theme: PaginationTheme,\n variant: PaginationVariant,\n active: PaginationActiveState,\n layer: PaginationVariantLayer,\n state: InteractionState,\n): ViewStyle | TextStyle {\n return getLayerStyle(theme, paginationVariantPath(variant, active, layer, state));\n}\n\n/** Page control container: size item + variant root (matches web stacking). */\nexport function getMergedPaginationControlRootStyle(\n theme: PaginationTheme,\n size: PaginationSize,\n variant: PaginationVariant,\n active: PaginationActiveState,\n state: InteractionState,\n): ViewStyle {\n return {\n ...(getPaginationSizeLayerStyle(theme, size, 'item') as object),\n ...(getPaginationVariantLayerStyle(theme, variant, active, 'root', state) as object),\n } as ViewStyle;\n}\n\n/** Label typography + color: size text + variant rootText. */\nexport function getMergedPaginationTextStyle(\n theme: PaginationTheme,\n size: PaginationSize,\n variant: PaginationVariant,\n active: PaginationActiveState,\n state: InteractionState,\n): TextStyle {\n return {\n ...(getPaginationSizeLayerStyle(theme, size, 'text') as object),\n ...(getPaginationVariantLayerStyle(theme, variant, active, 'rootText', state) as object),\n } as TextStyle;\n}\n\n/** Icon sizing from size layer; color follows variant rootText. */\nexport function getMergedPaginationIconStyle(\n theme: PaginationTheme,\n size: PaginationSize,\n variant: PaginationVariant,\n active: PaginationActiveState,\n state: InteractionState,\n): TextStyle {\n const iconStyle = getPaginationSizeLayerStyle(theme, size, 'icon') as TextStyle;\n const textStyle = getPaginationVariantLayerStyle(\n theme,\n variant,\n active,\n 'rootText',\n state,\n ) as TextStyle;\n\n return {\n ...iconStyle,\n ...(textStyle.color !== undefined ? { color: textStyle.color } : undefined),\n } as TextStyle;\n}\n\nexport function getPaginationRootGapStyle(theme: PaginationTheme, size: PaginationSize): ViewStyle {\n return getPaginationSizeLayerStyle(theme, size, 'root') as ViewStyle;\n}\n\n/** Control height/width from item padding plus icon size, matching web
|
|
1
|
+
{"version":3,"file":"paginationTheme.js","names":[],"sources":["../../../src/components/Pagination/paginationTheme.ts"],"sourcesContent":["import type { PaginationSize, PaginationVariant } from '@yahoo/uds-types';\nimport type { TextStyle, ViewStyle } from 'react-native';\n\nimport { PAGINATION_DEFAULT_COMPONENTS } from './paginationDefaultComponents';\n\ntype PaginationActiveState = 'on' | 'off';\ntype PaginationVariantLayer = 'root' | 'rootText';\ntype InteractionState = 'rest' | 'pressed';\n\ntype PaginationTheme = {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n components: Record<string, any>;\n};\n\nfunction paginationSizePath(\n size: PaginationSize,\n layer: 'root' | 'item' | 'icon' | 'text',\n): string {\n return `pagination/size/${size}/${layer}/rest`;\n}\n\nfunction paginationVariantPath(\n variant: PaginationVariant,\n active: PaginationActiveState,\n layer: PaginationVariantLayer,\n state: InteractionState,\n): string {\n return `pagination/variant/${variant}/active/${active}/${layer}/${state}`;\n}\n\nfunction getLayerStyle(theme: PaginationTheme, path: string): ViewStyle | TextStyle {\n const style = theme.components[path];\n if (style && typeof style === 'object' && Object.keys(style).length > 0) {\n return style;\n }\n\n const fallback = PAGINATION_DEFAULT_COMPONENTS[path];\n return fallback && typeof fallback === 'object' ? fallback : {};\n}\n\nexport function getPaginationSizeLayerStyle(\n theme: PaginationTheme,\n size: PaginationSize,\n layer: 'root' | 'item' | 'icon' | 'text',\n): ViewStyle | TextStyle {\n return getLayerStyle(theme, paginationSizePath(size, layer));\n}\n\nexport function getPaginationVariantLayerStyle(\n theme: PaginationTheme,\n variant: PaginationVariant,\n active: PaginationActiveState,\n layer: PaginationVariantLayer,\n state: InteractionState,\n): ViewStyle | TextStyle {\n return getLayerStyle(theme, paginationVariantPath(variant, active, layer, state));\n}\n\n/** Page control container: size item + variant root (matches web stacking). */\nexport function getMergedPaginationControlRootStyle(\n theme: PaginationTheme,\n size: PaginationSize,\n variant: PaginationVariant,\n active: PaginationActiveState,\n state: InteractionState,\n): ViewStyle {\n return {\n ...(getPaginationSizeLayerStyle(theme, size, 'item') as object),\n ...(getPaginationVariantLayerStyle(theme, variant, active, 'root', state) as object),\n } as ViewStyle;\n}\n\n/** Label typography + color: size text + variant rootText. */\nexport function getMergedPaginationTextStyle(\n theme: PaginationTheme,\n size: PaginationSize,\n variant: PaginationVariant,\n active: PaginationActiveState,\n state: InteractionState,\n): TextStyle {\n return {\n ...(getPaginationSizeLayerStyle(theme, size, 'text') as object),\n ...(getPaginationVariantLayerStyle(theme, variant, active, 'rootText', state) as object),\n } as TextStyle;\n}\n\n/** Icon sizing from size layer; color follows variant rootText. */\nexport function getMergedPaginationIconStyle(\n theme: PaginationTheme,\n size: PaginationSize,\n variant: PaginationVariant,\n active: PaginationActiveState,\n state: InteractionState,\n): TextStyle {\n const iconStyle = getPaginationSizeLayerStyle(theme, size, 'icon') as TextStyle;\n const textStyle = getPaginationVariantLayerStyle(\n theme,\n variant,\n active,\n 'rootText',\n state,\n ) as TextStyle;\n\n return {\n ...iconStyle,\n ...(textStyle.color !== undefined ? { color: textStyle.color } : undefined),\n } as TextStyle;\n}\n\nexport function getPaginationRootGapStyle(theme: PaginationTheme, size: PaginationSize): ViewStyle {\n return getPaginationSizeLayerStyle(theme, size, 'root') as ViewStyle;\n}\n\n/** Control height/width from item padding plus max(icon size, text line-height), matching web. */\nexport function getPaginationControlMetrics(\n theme: PaginationTheme,\n size: PaginationSize,\n): { controlSize: number; borderRadius: ViewStyle['borderRadius'] } {\n const itemStyle = getPaginationSizeLayerStyle(theme, size, 'item') as ViewStyle;\n const iconStyle = getPaginationSizeLayerStyle(theme, size, 'icon') as TextStyle;\n const textStyle = getPaginationSizeLayerStyle(theme, size, 'text') as TextStyle;\n\n const padding =\n (typeof itemStyle.padding === 'number' ? itemStyle.padding : undefined) ??\n (typeof itemStyle.paddingVertical === 'number' ? itemStyle.paddingVertical : undefined) ??\n 8;\n\n const iconSize =\n (typeof iconStyle.fontSize === 'number' ? iconStyle.fontSize : undefined) ??\n (typeof iconStyle.lineHeight === 'number' ? iconStyle.lineHeight : undefined) ??\n 16;\n\n const lineHeight = typeof textStyle.lineHeight === 'number' ? textStyle.lineHeight : undefined;\n\n return {\n controlSize: padding * 2 + Math.max(iconSize, lineHeight ?? iconSize),\n borderRadius: itemStyle.borderRadius,\n };\n}\n"],"mappings":";;;AAcA,SAAS,mBACP,MACA,OACQ;CACR,OAAO,mBAAmB,KAAK,GAAG,MAAM;;AAG1C,SAAS,sBACP,SACA,QACA,OACA,OACQ;CACR,OAAO,sBAAsB,QAAQ,UAAU,OAAO,GAAG,MAAM,GAAG;;AAGpE,SAAS,cAAc,OAAwB,MAAqC;CAClF,MAAM,QAAQ,MAAM,WAAW;CAC/B,IAAI,SAAS,OAAO,UAAU,YAAY,OAAO,KAAK,MAAM,CAAC,SAAS,GACpE,OAAO;CAGT,MAAM,WAAW,8BAA8B;CAC/C,OAAO,YAAY,OAAO,aAAa,WAAW,WAAW,EAAE;;AAGjE,SAAgB,4BACd,OACA,MACA,OACuB;CACvB,OAAO,cAAc,OAAO,mBAAmB,MAAM,MAAM,CAAC;;AAG9D,SAAgB,+BACd,OACA,SACA,QACA,OACA,OACuB;CACvB,OAAO,cAAc,OAAO,sBAAsB,SAAS,QAAQ,OAAO,MAAM,CAAC;;;AAInF,SAAgB,oCACd,OACA,MACA,SACA,QACA,OACW;CACX,OAAO;EACL,GAAI,4BAA4B,OAAO,MAAM,OAAO;EACpD,GAAI,+BAA+B,OAAO,SAAS,QAAQ,QAAQ,MAAM;EAC1E;;;AAIH,SAAgB,6BACd,OACA,MACA,SACA,QACA,OACW;CACX,OAAO;EACL,GAAI,4BAA4B,OAAO,MAAM,OAAO;EACpD,GAAI,+BAA+B,OAAO,SAAS,QAAQ,YAAY,MAAM;EAC9E;;;AAIH,SAAgB,6BACd,OACA,MACA,SACA,QACA,OACW;CACX,MAAM,YAAY,4BAA4B,OAAO,MAAM,OAAO;CAClE,MAAM,YAAY,+BAChB,OACA,SACA,QACA,YACA,MACD;CAED,OAAO;EACL,GAAG;EACH,GAAI,UAAU,UAAU,KAAA,IAAY,EAAE,OAAO,UAAU,OAAO,GAAG,KAAA;EAClE;;AAGH,SAAgB,0BAA0B,OAAwB,MAAiC;CACjG,OAAO,4BAA4B,OAAO,MAAM,OAAO;;;AAIzD,SAAgB,4BACd,OACA,MACkE;CAClE,MAAM,YAAY,4BAA4B,OAAO,MAAM,OAAO;CAClE,MAAM,YAAY,4BAA4B,OAAO,MAAM,OAAO;CAClE,MAAM,YAAY,4BAA4B,OAAO,MAAM,OAAO;CAElE,MAAM,WACH,OAAO,UAAU,YAAY,WAAW,UAAU,UAAU,KAAA,OAC5D,OAAO,UAAU,oBAAoB,WAAW,UAAU,kBAAkB,KAAA,MAC7E;CAEF,MAAM,YACH,OAAO,UAAU,aAAa,WAAW,UAAU,WAAW,KAAA,OAC9D,OAAO,UAAU,eAAe,WAAW,UAAU,aAAa,KAAA,MACnE;CAEF,MAAM,aAAa,OAAO,UAAU,eAAe,WAAW,UAAU,aAAa,KAAA;CAErF,OAAO;EACL,aAAa,UAAU,IAAI,KAAK,IAAI,UAAU,cAAc,SAAS;EACrE,cAAc,UAAU;EACzB"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const require_runtime = require("../../_virtual/_rolldown/runtime.cjs");
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_runtime.__toESM(react);
|
|
3
6
|
//#region src/jest/mocks/gesture-handler.tsx
|
|
7
|
+
var gesture_handler_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
8
|
+
Gesture: () => Gesture,
|
|
9
|
+
GestureDetector: () => GestureDetector,
|
|
10
|
+
GestureHandlerRootView: () => GestureHandlerRootView,
|
|
11
|
+
Pressable: () => Pressable
|
|
12
|
+
});
|
|
4
13
|
function GestureDetector({ children }) {
|
|
5
14
|
return children;
|
|
6
15
|
}
|
|
@@ -10,6 +19,7 @@ function createMockGesture() {
|
|
|
10
19
|
gesture.enabled = jest.fn(() => gesture);
|
|
11
20
|
gesture.failOffsetX = jest.fn(() => gesture);
|
|
12
21
|
gesture.manualActivation = jest.fn(() => gesture);
|
|
22
|
+
gesture.minDistance = jest.fn(() => gesture);
|
|
13
23
|
gesture.onBegin = jest.fn(() => gesture);
|
|
14
24
|
gesture.onChange = jest.fn(() => gesture);
|
|
15
25
|
gesture.onEnd = jest.fn(() => gesture);
|
|
@@ -18,6 +28,7 @@ function createMockGesture() {
|
|
|
18
28
|
gesture.onTouchesDown = jest.fn(() => gesture);
|
|
19
29
|
gesture.onTouchesMove = jest.fn(() => gesture);
|
|
20
30
|
gesture.onUpdate = jest.fn(() => gesture);
|
|
31
|
+
gesture.runOnJS = jest.fn(() => gesture);
|
|
21
32
|
gesture.simultaneousWithExternalGesture = jest.fn(() => gesture);
|
|
22
33
|
gesture.withRef = jest.fn(() => gesture);
|
|
23
34
|
return gesture;
|
|
@@ -32,7 +43,25 @@ const Gesture = {
|
|
|
32
43
|
function GestureHandlerRootView({ children }) {
|
|
33
44
|
return children;
|
|
34
45
|
}
|
|
46
|
+
function Pressable({ children, style, ref, ...props }) {
|
|
47
|
+
const pressableState = { pressed: false };
|
|
48
|
+
const renderedChildren = typeof children === "function" ? children(pressableState) : children;
|
|
49
|
+
const resolvedStyle = typeof style === "function" ? style(pressableState) : style;
|
|
50
|
+
return react.default.createElement("Pressable", {
|
|
51
|
+
...props,
|
|
52
|
+
ref,
|
|
53
|
+
style: resolvedStyle
|
|
54
|
+
}, renderedChildren);
|
|
55
|
+
}
|
|
56
|
+
Pressable.displayName = "GestureHandlerPressable";
|
|
35
57
|
//#endregion
|
|
36
58
|
exports.Gesture = Gesture;
|
|
37
59
|
exports.GestureDetector = GestureDetector;
|
|
38
60
|
exports.GestureHandlerRootView = GestureHandlerRootView;
|
|
61
|
+
exports.Pressable = Pressable;
|
|
62
|
+
Object.defineProperty(exports, "gesture_handler_exports", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function() {
|
|
65
|
+
return gesture_handler_exports;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
import { ReactNode } from "react";
|
|
2
|
+
import React, { ReactNode, Ref } from "react";
|
|
3
|
+
import { StyleProp, View, ViewStyle } from "react-native";
|
|
3
4
|
|
|
4
5
|
//#region src/jest/mocks/gesture-handler.d.ts
|
|
5
6
|
interface GestureDetectorProps {
|
|
6
7
|
children?: ReactNode;
|
|
7
8
|
}
|
|
9
|
+
interface PressableProps$1 {
|
|
10
|
+
children?: ReactNode | ((state: {
|
|
11
|
+
pressed: boolean;
|
|
12
|
+
}) => ReactNode);
|
|
13
|
+
ref?: Ref<View>;
|
|
14
|
+
style?: StyleProp<ViewStyle> | ((state: {
|
|
15
|
+
pressed: boolean;
|
|
16
|
+
}) => StyleProp<ViewStyle>);
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
8
19
|
type MockGestureMethod = jest.Mock<MockGesture, unknown[]>;
|
|
9
20
|
interface MockGesture {
|
|
10
21
|
activeOffsetY: MockGestureMethod;
|
|
11
22
|
enabled: MockGestureMethod;
|
|
12
23
|
failOffsetX: MockGestureMethod;
|
|
13
24
|
manualActivation: MockGestureMethod;
|
|
25
|
+
minDistance: MockGestureMethod;
|
|
14
26
|
onBegin: MockGestureMethod;
|
|
15
27
|
onChange: MockGestureMethod;
|
|
16
28
|
onEnd: MockGestureMethod;
|
|
@@ -19,6 +31,7 @@ interface MockGesture {
|
|
|
19
31
|
onTouchesDown: MockGestureMethod;
|
|
20
32
|
onTouchesMove: MockGestureMethod;
|
|
21
33
|
onUpdate: MockGestureMethod;
|
|
34
|
+
runOnJS: MockGestureMethod;
|
|
22
35
|
simultaneousWithExternalGesture: MockGestureMethod;
|
|
23
36
|
withRef: MockGestureMethod;
|
|
24
37
|
}
|
|
@@ -36,6 +49,18 @@ declare const Gesture: {
|
|
|
36
49
|
declare function GestureHandlerRootView({
|
|
37
50
|
children
|
|
38
51
|
}: GestureDetectorProps): ReactNode;
|
|
52
|
+
declare function Pressable({
|
|
53
|
+
children,
|
|
54
|
+
style,
|
|
55
|
+
ref,
|
|
56
|
+
...props
|
|
57
|
+
}: PressableProps$1): React.ReactElement<{
|
|
58
|
+
ref: Ref<View> | undefined;
|
|
59
|
+
style: StyleProp<ViewStyle>;
|
|
60
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
61
|
+
declare namespace Pressable {
|
|
62
|
+
var displayName: string;
|
|
63
|
+
}
|
|
39
64
|
//#endregion
|
|
40
|
-
export { Gesture, GestureDetector, GestureHandlerRootView };
|
|
65
|
+
export { Gesture, GestureDetector, GestureHandlerRootView, Pressable };
|
|
41
66
|
//# sourceMappingURL=gesture-handler.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gesture-handler.d.cts","names":[],"sources":["../../../src/jest/mocks/gesture-handler.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"gesture-handler.d.cts","names":[],"sources":["../../../src/jest/mocks/gesture-handler.tsx"],"mappings":";;;;;UAMU,oBAAA;EACR,QAAA,GAAW,SAAA;AAAA;AAAA,UAGH,gBAAA;EACR,QAAA,GAAW,SAAA,KAAc,KAAA;IAAS,OAAA;EAAA,MAAuB,SAAA;EACzD,GAAA,GAAM,GAAA,CAAI,IAAA;EACV,KAAA,GAAQ,SAAA,CAAU,SAAA,MAAe,KAAA;IAAS,OAAA;EAAA,MAAuB,SAAA,CAAU,SAAA;EAAA,CAC1E,GAAA;AAAA;AAAA,KAGE,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,WAAA,EAAa,iBAAA;EACb,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,OAAA,EAAS,iBAAA;EACT,+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,cAuBxB,OAAA;;;;;;;iBAQG,sBAAA,CAAA;EAAyB;AAAA,GAAY,oBAAA,GAAoB,SAAA;AAAA,iBAIzD,SAAA,CAAA;EAAY,QAAA;EAAU,KAAA;EAAO,GAAA;EAAA,GAAQ;AAAA,GAAS,gBAAA,GAAc,KAAA,CAAA,YAAA;;;;kBAA5D,SAAA;EAAA,IAAS,WAAA;AAAA"}
|
|
@@ -1,16 +1,28 @@
|
|
|
1
1
|
|
|
2
|
-
import { ReactNode } from "react";
|
|
2
|
+
import React, { ReactNode, Ref } from "react";
|
|
3
|
+
import { StyleProp, View, ViewStyle } from "react-native";
|
|
3
4
|
|
|
4
5
|
//#region src/jest/mocks/gesture-handler.d.ts
|
|
5
6
|
interface GestureDetectorProps {
|
|
6
7
|
children?: ReactNode;
|
|
7
8
|
}
|
|
9
|
+
interface PressableProps$1 {
|
|
10
|
+
children?: ReactNode | ((state: {
|
|
11
|
+
pressed: boolean;
|
|
12
|
+
}) => ReactNode);
|
|
13
|
+
ref?: Ref<View>;
|
|
14
|
+
style?: StyleProp<ViewStyle> | ((state: {
|
|
15
|
+
pressed: boolean;
|
|
16
|
+
}) => StyleProp<ViewStyle>);
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
8
19
|
type MockGestureMethod = jest.Mock<MockGesture, unknown[]>;
|
|
9
20
|
interface MockGesture {
|
|
10
21
|
activeOffsetY: MockGestureMethod;
|
|
11
22
|
enabled: MockGestureMethod;
|
|
12
23
|
failOffsetX: MockGestureMethod;
|
|
13
24
|
manualActivation: MockGestureMethod;
|
|
25
|
+
minDistance: MockGestureMethod;
|
|
14
26
|
onBegin: MockGestureMethod;
|
|
15
27
|
onChange: MockGestureMethod;
|
|
16
28
|
onEnd: MockGestureMethod;
|
|
@@ -19,6 +31,7 @@ interface MockGesture {
|
|
|
19
31
|
onTouchesDown: MockGestureMethod;
|
|
20
32
|
onTouchesMove: MockGestureMethod;
|
|
21
33
|
onUpdate: MockGestureMethod;
|
|
34
|
+
runOnJS: MockGestureMethod;
|
|
22
35
|
simultaneousWithExternalGesture: MockGestureMethod;
|
|
23
36
|
withRef: MockGestureMethod;
|
|
24
37
|
}
|
|
@@ -36,6 +49,18 @@ declare const Gesture: {
|
|
|
36
49
|
declare function GestureHandlerRootView({
|
|
37
50
|
children
|
|
38
51
|
}: GestureDetectorProps): ReactNode;
|
|
52
|
+
declare function Pressable({
|
|
53
|
+
children,
|
|
54
|
+
style,
|
|
55
|
+
ref,
|
|
56
|
+
...props
|
|
57
|
+
}: PressableProps$1): React.ReactElement<{
|
|
58
|
+
ref: Ref<View> | undefined;
|
|
59
|
+
style: StyleProp<ViewStyle>;
|
|
60
|
+
}, string | React.JSXElementConstructor<any>>;
|
|
61
|
+
declare namespace Pressable {
|
|
62
|
+
var displayName: string;
|
|
63
|
+
}
|
|
39
64
|
//#endregion
|
|
40
|
-
export { Gesture, GestureDetector, GestureHandlerRootView };
|
|
65
|
+
export { Gesture, GestureDetector, GestureHandlerRootView, Pressable };
|
|
41
66
|
//# sourceMappingURL=gesture-handler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gesture-handler.d.ts","names":[],"sources":["../../../src/jest/mocks/gesture-handler.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"gesture-handler.d.ts","names":[],"sources":["../../../src/jest/mocks/gesture-handler.tsx"],"mappings":";;;;;UAMU,oBAAA;EACR,QAAA,GAAW,SAAA;AAAA;AAAA,UAGH,gBAAA;EACR,QAAA,GAAW,SAAA,KAAc,KAAA;IAAS,OAAA;EAAA,MAAuB,SAAA;EACzD,GAAA,GAAM,GAAA,CAAI,IAAA;EACV,KAAA,GAAQ,SAAA,CAAU,SAAA,MAAe,KAAA;IAAS,OAAA;EAAA,MAAuB,SAAA,CAAU,SAAA;EAAA,CAC1E,GAAA;AAAA;AAAA,KAGE,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,WAAA,EAAa,iBAAA;EACb,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,OAAA,EAAS,iBAAA;EACT,+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,cAuBxB,OAAA;;;;;;;iBAQG,sBAAA,CAAA;EAAyB;AAAA,GAAY,oBAAA,GAAoB,SAAA;AAAA,iBAIzD,SAAA,CAAA;EAAY,QAAA;EAAU,KAAA;EAAO,GAAA;EAAA,GAAQ;AAAA,GAAS,gBAAA,GAAc,KAAA,CAAA,YAAA;;;;kBAA5D,SAAA;EAAA,IAAS,WAAA;AAAA"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import React from "react";
|
|
2
4
|
//#region src/jest/mocks/gesture-handler.tsx
|
|
5
|
+
var gesture_handler_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
Gesture: () => Gesture,
|
|
7
|
+
GestureDetector: () => GestureDetector,
|
|
8
|
+
GestureHandlerRootView: () => GestureHandlerRootView,
|
|
9
|
+
Pressable: () => Pressable
|
|
10
|
+
});
|
|
3
11
|
function GestureDetector({ children }) {
|
|
4
12
|
return children;
|
|
5
13
|
}
|
|
@@ -9,6 +17,7 @@ function createMockGesture() {
|
|
|
9
17
|
gesture.enabled = jest.fn(() => gesture);
|
|
10
18
|
gesture.failOffsetX = jest.fn(() => gesture);
|
|
11
19
|
gesture.manualActivation = jest.fn(() => gesture);
|
|
20
|
+
gesture.minDistance = jest.fn(() => gesture);
|
|
12
21
|
gesture.onBegin = jest.fn(() => gesture);
|
|
13
22
|
gesture.onChange = jest.fn(() => gesture);
|
|
14
23
|
gesture.onEnd = jest.fn(() => gesture);
|
|
@@ -17,6 +26,7 @@ function createMockGesture() {
|
|
|
17
26
|
gesture.onTouchesDown = jest.fn(() => gesture);
|
|
18
27
|
gesture.onTouchesMove = jest.fn(() => gesture);
|
|
19
28
|
gesture.onUpdate = jest.fn(() => gesture);
|
|
29
|
+
gesture.runOnJS = jest.fn(() => gesture);
|
|
20
30
|
gesture.simultaneousWithExternalGesture = jest.fn(() => gesture);
|
|
21
31
|
gesture.withRef = jest.fn(() => gesture);
|
|
22
32
|
return gesture;
|
|
@@ -31,7 +41,18 @@ const Gesture = {
|
|
|
31
41
|
function GestureHandlerRootView({ children }) {
|
|
32
42
|
return children;
|
|
33
43
|
}
|
|
44
|
+
function Pressable({ children, style, ref, ...props }) {
|
|
45
|
+
const pressableState = { pressed: false };
|
|
46
|
+
const renderedChildren = typeof children === "function" ? children(pressableState) : children;
|
|
47
|
+
const resolvedStyle = typeof style === "function" ? style(pressableState) : style;
|
|
48
|
+
return React.createElement("Pressable", {
|
|
49
|
+
...props,
|
|
50
|
+
ref,
|
|
51
|
+
style: resolvedStyle
|
|
52
|
+
}, renderedChildren);
|
|
53
|
+
}
|
|
54
|
+
Pressable.displayName = "GestureHandlerPressable";
|
|
34
55
|
//#endregion
|
|
35
|
-
export { Gesture, GestureDetector, GestureHandlerRootView };
|
|
56
|
+
export { Gesture, GestureDetector, GestureHandlerRootView, Pressable, gesture_handler_exports };
|
|
36
57
|
|
|
37
58
|
//# sourceMappingURL=gesture-handler.js.map
|
|
@@ -1 +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":"
|
|
1
|
+
{"version":3,"file":"gesture-handler.js","names":[],"sources":["../../../src/jest/mocks/gesture-handler.tsx"],"sourcesContent":["/// <reference types=\"jest\" />\n\nimport type { ReactNode, Ref } from 'react';\nimport React from 'react';\nimport type { StyleProp, View, ViewStyle } from 'react-native';\n\ninterface GestureDetectorProps {\n children?: ReactNode;\n}\n\ninterface PressableProps {\n children?: ReactNode | ((state: { pressed: boolean }) => ReactNode);\n ref?: Ref<View>;\n style?: StyleProp<ViewStyle> | ((state: { pressed: boolean }) => StyleProp<ViewStyle>);\n [key: string]: unknown;\n}\n\ntype MockGestureMethod = jest.Mock<MockGesture, unknown[]>;\n\ninterface MockGesture {\n activeOffsetY: MockGestureMethod;\n enabled: MockGestureMethod;\n failOffsetX: MockGestureMethod;\n manualActivation: MockGestureMethod;\n minDistance: 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 runOnJS: 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.minDistance = 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.runOnJS = 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\nfunction Pressable({ children, style, ref, ...props }: PressableProps) {\n const pressableState = { pressed: false };\n const renderedChildren = typeof children === 'function' ? children(pressableState) : children;\n const resolvedStyle = typeof style === 'function' ? style(pressableState) : style;\n\n return React.createElement(\n 'Pressable',\n { ...props, ref, style: resolvedStyle },\n renderedChildren,\n );\n}\n\nPressable.displayName = 'GestureHandlerPressable';\n\nexport { Gesture, GestureDetector, GestureHandlerRootView, Pressable };\n"],"mappings":";;;;;;;;;;AAsCA,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,cAAc,KAAK,SAAS,QAAQ;CAC5C,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,UAAU,KAAK,SAAS,QAAQ;CACxC,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;;AAGT,SAAS,UAAU,EAAE,UAAU,OAAO,KAAK,GAAG,SAAyB;CACrE,MAAM,iBAAiB,EAAE,SAAS,OAAO;CACzC,MAAM,mBAAmB,OAAO,aAAa,aAAa,SAAS,eAAe,GAAG;CACrF,MAAM,gBAAgB,OAAO,UAAU,aAAa,MAAM,eAAe,GAAG;CAE5E,OAAO,MAAM,cACX,aACA;EAAE,GAAG;EAAO;EAAK,OAAO;EAAe,EACvC,iBACD;;AAGH,UAAU,cAAc"}
|
|
@@ -12,6 +12,7 @@ var styles_exports = /* @__PURE__ */ require("../../_virtual/_rolldown/runtime.c
|
|
|
12
12
|
iconButtonStyles: () => iconButtonStyles,
|
|
13
13
|
inputStyles: () => inputStyles,
|
|
14
14
|
linkStyles: () => linkStyles,
|
|
15
|
+
modalStyles: () => modalStyles,
|
|
15
16
|
paginationStyles: () => paginationStyles,
|
|
16
17
|
popoverStyles: () => popoverStyles,
|
|
17
18
|
radioStyles: () => radioStyles,
|
|
@@ -438,6 +439,43 @@ const toastStyles = createComponentStyles({
|
|
|
438
439
|
lineHeight: 20
|
|
439
440
|
}
|
|
440
441
|
});
|
|
442
|
+
const modalStyles = createComponentStyles({
|
|
443
|
+
root: {
|
|
444
|
+
backgroundBlurColor: "rgba(255, 255, 255, 0.9)",
|
|
445
|
+
backgroundBlurRadius: 0,
|
|
446
|
+
backgroundColor: "#FFFFFF",
|
|
447
|
+
borderColor: "#E0E0E0",
|
|
448
|
+
borderRadius: 16,
|
|
449
|
+
borderWidth: 1,
|
|
450
|
+
boxShadow: "",
|
|
451
|
+
paddingVertical: 32
|
|
452
|
+
},
|
|
453
|
+
actions: { gap: 12 },
|
|
454
|
+
closeIcon: {
|
|
455
|
+
color: "#000000",
|
|
456
|
+
fontSize: 24,
|
|
457
|
+
iconSizeToken: "md",
|
|
458
|
+
lineHeight: 24
|
|
459
|
+
},
|
|
460
|
+
closeIconContainer: { padding: 8 },
|
|
461
|
+
description: {
|
|
462
|
+
color: "#000000",
|
|
463
|
+
fontFamily: "YahooProductSans-Regular",
|
|
464
|
+
fontSize: 18,
|
|
465
|
+
letterSpacing: 0,
|
|
466
|
+
lineHeight: 28
|
|
467
|
+
},
|
|
468
|
+
scrim: { padding: 32 },
|
|
469
|
+
spacingHorizontal: { paddingHorizontal: 32 },
|
|
470
|
+
title: {
|
|
471
|
+
color: "#000000",
|
|
472
|
+
fontFamily: "YahooProductSans-Medium",
|
|
473
|
+
fontSize: 28,
|
|
474
|
+
letterSpacing: 0,
|
|
475
|
+
lineHeight: 36
|
|
476
|
+
},
|
|
477
|
+
titleDescriptionWrapper: { gap: 8 }
|
|
478
|
+
});
|
|
441
479
|
//#endregion
|
|
442
480
|
exports.avatarStyles = avatarStyles;
|
|
443
481
|
exports.badgeStyles = badgeStyles;
|
|
@@ -449,6 +487,7 @@ exports.dividerStyles = dividerStyles;
|
|
|
449
487
|
exports.iconButtonStyles = iconButtonStyles;
|
|
450
488
|
exports.inputStyles = inputStyles;
|
|
451
489
|
exports.linkStyles = linkStyles;
|
|
490
|
+
exports.modalStyles = modalStyles;
|
|
452
491
|
exports.paginationStyles = paginationStyles;
|
|
453
492
|
exports.popoverStyles = popoverStyles;
|
|
454
493
|
exports.radioStyles = radioStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
declare namespace styles_d_exports {
|
|
3
|
-
export { StyleProps, avatarStyles, badgeStyles, bottomSheetStyles, buttonStyles, checkboxStyles, chipStyles, dividerStyles, iconButtonStyles, inputStyles, linkStyles, paginationStyles, popoverStyles, radioStyles, scrimStyles, styles, switchStyles, tabsStyles, textStyles, toastStyles };
|
|
3
|
+
export { StyleProps, avatarStyles, badgeStyles, bottomSheetStyles, buttonStyles, checkboxStyles, chipStyles, dividerStyles, iconButtonStyles, inputStyles, linkStyles, modalStyles, paginationStyles, popoverStyles, radioStyles, scrimStyles, styles, switchStyles, tabsStyles, textStyles, toastStyles };
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Jest mock for generated/styles.
|
|
@@ -27,6 +27,7 @@ declare const popoverStyles: Record<string, unknown>;
|
|
|
27
27
|
declare const tabsStyles: Record<string, unknown>;
|
|
28
28
|
declare const paginationStyles: Record<string, unknown>;
|
|
29
29
|
declare const toastStyles: Record<string, unknown>;
|
|
30
|
+
declare const modalStyles: Record<string, unknown>;
|
|
30
31
|
interface StyleProps {
|
|
31
32
|
color?: string;
|
|
32
33
|
backgroundColor?: string;
|
|
@@ -36,5 +37,5 @@ interface StyleProps {
|
|
|
36
37
|
[key: string]: unknown;
|
|
37
38
|
}
|
|
38
39
|
//#endregion
|
|
39
|
-
export { StyleProps, avatarStyles, badgeStyles, bottomSheetStyles, buttonStyles, checkboxStyles, chipStyles, dividerStyles, iconButtonStyles, inputStyles, linkStyles, paginationStyles, popoverStyles, radioStyles, scrimStyles, styles, styles_d_exports, switchStyles, tabsStyles, textStyles, toastStyles };
|
|
40
|
+
export { StyleProps, avatarStyles, badgeStyles, bottomSheetStyles, buttonStyles, checkboxStyles, chipStyles, dividerStyles, iconButtonStyles, inputStyles, linkStyles, modalStyles, paginationStyles, popoverStyles, radioStyles, scrimStyles, styles, styles_d_exports, switchStyles, tabsStyles, textStyles, toastStyles };
|
|
40
41
|
//# sourceMappingURL=styles.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.cts","names":[],"sources":["../../../src/jest/mocks/styles.ts"],"mappings":";;;;;;;;;;cAyGa,MAAA,EAAM,MAAA;AAAA,cAKN,YAAA,EAAY,MAAA;AAAA,cAgCZ,UAAA,EAAU,MAAA;AAAA,cAUV,WAAA,EAAW,MAAA;AAAA,cAuCX,cAAA,EAAc,MAAA;AAAA,cAwBd,YAAA,EAAY,MAAA;AAAA,cA4BZ,YAAA,EAAY,MAAA;AAAA,cAqBZ,WAAA,EAAW,MAAA;AAAA,cAmBX,UAAA,EAAU,MAAA;AAAA,cAsBV,aAAA,EAAa,MAAA;AAAA,cAiBb,UAAA,EAAU,MAAA;AAAA,cAgBV,WAAA,EAAW,MAAA;AAAA,cA8BX,gBAAA,EAAgB,MAAA;AAAA,cAehB,iBAAA,EAAiB,MAAA;AAAA,cA0BjB,WAAA,EAAW,MAAA;AAAA,cASX,aAAA,EAAa,MAAA;AAAA,cAmCb,UAAA,EAAU,MAAA;AAAA,cASV,gBAAA,EAAgB,MAAA;AAAA,cAuBhB,WAAA,EAAW,MAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"styles.d.cts","names":[],"sources":["../../../src/jest/mocks/styles.ts"],"mappings":";;;;;;;;;;cAyGa,MAAA,EAAM,MAAA;AAAA,cAKN,YAAA,EAAY,MAAA;AAAA,cAgCZ,UAAA,EAAU,MAAA;AAAA,cAUV,WAAA,EAAW,MAAA;AAAA,cAuCX,cAAA,EAAc,MAAA;AAAA,cAwBd,YAAA,EAAY,MAAA;AAAA,cA4BZ,YAAA,EAAY,MAAA;AAAA,cAqBZ,WAAA,EAAW,MAAA;AAAA,cAmBX,UAAA,EAAU,MAAA;AAAA,cAsBV,aAAA,EAAa,MAAA;AAAA,cAiBb,UAAA,EAAU,MAAA;AAAA,cAgBV,WAAA,EAAW,MAAA;AAAA,cA8BX,gBAAA,EAAgB,MAAA;AAAA,cAehB,iBAAA,EAAiB,MAAA;AAAA,cA0BjB,WAAA,EAAW,MAAA;AAAA,cASX,aAAA,EAAa,MAAA;AAAA,cAmCb,UAAA,EAAU,MAAA;AAAA,cASV,gBAAA,EAAgB,MAAA;AAAA,cAuBhB,WAAA,EAAW,MAAA;AAAA,cAuCX,WAAA,EAAW,MAAA;AAAA,UAiDP,UAAA;EACf,KAAA;EACA,eAAA;EACA,WAAA;EACA,WAAA;EACA,YAAA;EAAA,CACC,GAAA;AAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
declare namespace styles_d_exports {
|
|
3
|
-
export { StyleProps, avatarStyles, badgeStyles, bottomSheetStyles, buttonStyles, checkboxStyles, chipStyles, dividerStyles, iconButtonStyles, inputStyles, linkStyles, paginationStyles, popoverStyles, radioStyles, scrimStyles, styles, switchStyles, tabsStyles, textStyles, toastStyles };
|
|
3
|
+
export { StyleProps, avatarStyles, badgeStyles, bottomSheetStyles, buttonStyles, checkboxStyles, chipStyles, dividerStyles, iconButtonStyles, inputStyles, linkStyles, modalStyles, paginationStyles, popoverStyles, radioStyles, scrimStyles, styles, switchStyles, tabsStyles, textStyles, toastStyles };
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Jest mock for generated/styles.
|
|
@@ -27,6 +27,7 @@ declare const popoverStyles: Record<string, unknown>;
|
|
|
27
27
|
declare const tabsStyles: Record<string, unknown>;
|
|
28
28
|
declare const paginationStyles: Record<string, unknown>;
|
|
29
29
|
declare const toastStyles: Record<string, unknown>;
|
|
30
|
+
declare const modalStyles: Record<string, unknown>;
|
|
30
31
|
interface StyleProps {
|
|
31
32
|
color?: string;
|
|
32
33
|
backgroundColor?: string;
|
|
@@ -36,5 +37,5 @@ interface StyleProps {
|
|
|
36
37
|
[key: string]: unknown;
|
|
37
38
|
}
|
|
38
39
|
//#endregion
|
|
39
|
-
export { StyleProps, avatarStyles, badgeStyles, bottomSheetStyles, buttonStyles, checkboxStyles, chipStyles, dividerStyles, iconButtonStyles, inputStyles, linkStyles, paginationStyles, popoverStyles, radioStyles, scrimStyles, styles, styles_d_exports, switchStyles, tabsStyles, textStyles, toastStyles };
|
|
40
|
+
export { StyleProps, avatarStyles, badgeStyles, bottomSheetStyles, buttonStyles, checkboxStyles, chipStyles, dividerStyles, iconButtonStyles, inputStyles, linkStyles, modalStyles, paginationStyles, popoverStyles, radioStyles, scrimStyles, styles, styles_d_exports, switchStyles, tabsStyles, textStyles, toastStyles };
|
|
40
41
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","names":[],"sources":["../../../src/jest/mocks/styles.ts"],"mappings":";;;;;;;;;;cAyGa,MAAA,EAAM,MAAA;AAAA,cAKN,YAAA,EAAY,MAAA;AAAA,cAgCZ,UAAA,EAAU,MAAA;AAAA,cAUV,WAAA,EAAW,MAAA;AAAA,cAuCX,cAAA,EAAc,MAAA;AAAA,cAwBd,YAAA,EAAY,MAAA;AAAA,cA4BZ,YAAA,EAAY,MAAA;AAAA,cAqBZ,WAAA,EAAW,MAAA;AAAA,cAmBX,UAAA,EAAU,MAAA;AAAA,cAsBV,aAAA,EAAa,MAAA;AAAA,cAiBb,UAAA,EAAU,MAAA;AAAA,cAgBV,WAAA,EAAW,MAAA;AAAA,cA8BX,gBAAA,EAAgB,MAAA;AAAA,cAehB,iBAAA,EAAiB,MAAA;AAAA,cA0BjB,WAAA,EAAW,MAAA;AAAA,cASX,aAAA,EAAa,MAAA;AAAA,cAmCb,UAAA,EAAU,MAAA;AAAA,cASV,gBAAA,EAAgB,MAAA;AAAA,cAuBhB,WAAA,EAAW,MAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","names":[],"sources":["../../../src/jest/mocks/styles.ts"],"mappings":";;;;;;;;;;cAyGa,MAAA,EAAM,MAAA;AAAA,cAKN,YAAA,EAAY,MAAA;AAAA,cAgCZ,UAAA,EAAU,MAAA;AAAA,cAUV,WAAA,EAAW,MAAA;AAAA,cAuCX,cAAA,EAAc,MAAA;AAAA,cAwBd,YAAA,EAAY,MAAA;AAAA,cA4BZ,YAAA,EAAY,MAAA;AAAA,cAqBZ,WAAA,EAAW,MAAA;AAAA,cAmBX,UAAA,EAAU,MAAA;AAAA,cAsBV,aAAA,EAAa,MAAA;AAAA,cAiBb,UAAA,EAAU,MAAA;AAAA,cAgBV,WAAA,EAAW,MAAA;AAAA,cA8BX,gBAAA,EAAgB,MAAA;AAAA,cAehB,iBAAA,EAAiB,MAAA;AAAA,cA0BjB,WAAA,EAAW,MAAA;AAAA,cASX,aAAA,EAAa,MAAA;AAAA,cAmCb,UAAA,EAAU,MAAA;AAAA,cASV,gBAAA,EAAgB,MAAA;AAAA,cAuBhB,WAAA,EAAW,MAAA;AAAA,cAuCX,WAAA,EAAW,MAAA;AAAA,UAiDP,UAAA;EACf,KAAA;EACA,eAAA;EACA,WAAA;EACA,WAAA;EACA,YAAA;EAAA,CACC,GAAA;AAAA"}
|