@yahoo/uds-mobile 2.2.0 → 2.3.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/README.md +92 -0
- package/dist/_virtual/_rolldown/runtime.cjs +14 -0
- package/dist/_virtual/_rolldown/runtime.js +19 -0
- package/dist/components/Switch.cjs +2 -2
- package/dist/components/Switch.js +2 -2
- package/dist/components/Switch.js.map +1 -1
- package/dist/jest/index.cjs +27 -0
- package/dist/jest/index.d.cts +19 -0
- package/dist/jest/index.d.cts.map +1 -0
- package/dist/jest/index.d.ts +19 -0
- package/dist/jest/index.d.ts.map +1 -0
- package/dist/jest/index.js +25 -0
- package/dist/jest/index.js.map +1 -0
- package/dist/jest/mocks/icons.cjs +56 -0
- package/dist/jest/mocks/icons.d.cts +24 -0
- package/dist/jest/mocks/icons.d.cts.map +1 -0
- package/dist/jest/mocks/icons.d.ts +24 -0
- package/dist/jest/mocks/icons.d.ts.map +1 -0
- package/dist/jest/mocks/icons.js +46 -0
- package/dist/jest/mocks/icons.js.map +1 -0
- package/dist/jest/mocks/react-native.cjs +212 -0
- package/dist/jest/mocks/react-native.d.cts +293 -0
- package/dist/jest/mocks/react-native.d.cts.map +1 -0
- package/dist/jest/mocks/react-native.d.ts +293 -0
- package/dist/jest/mocks/react-native.d.ts.map +1 -0
- package/dist/jest/mocks/react-native.js +180 -0
- package/dist/jest/mocks/react-native.js.map +1 -0
- package/dist/jest/mocks/reanimated.cjs +249 -0
- package/dist/jest/mocks/reanimated.d.cts +150 -0
- package/dist/jest/mocks/reanimated.d.cts.map +1 -0
- package/dist/jest/mocks/reanimated.d.ts +150 -0
- package/dist/jest/mocks/reanimated.d.ts.map +1 -0
- package/dist/jest/mocks/reanimated.js +210 -0
- package/dist/jest/mocks/reanimated.js.map +1 -0
- package/dist/jest/mocks/styles.cjs +327 -0
- package/dist/jest/mocks/styles.d.cts +33 -0
- package/dist/jest/mocks/styles.d.cts.map +1 -0
- package/dist/jest/mocks/styles.d.ts +33 -0
- package/dist/jest/mocks/styles.d.ts.map +1 -0
- package/dist/jest/mocks/styles.js +310 -0
- package/dist/jest/mocks/styles.js.map +1 -0
- package/dist/jest/mocks/svg.cjs +133 -0
- package/dist/jest/mocks/svg.d.cts +137 -0
- package/dist/jest/mocks/svg.d.cts.map +1 -0
- package/dist/jest/mocks/svg.d.ts +137 -0
- package/dist/jest/mocks/svg.d.ts.map +1 -0
- package/dist/jest/mocks/svg.js +100 -0
- package/dist/jest/mocks/svg.js.map +1 -0
- package/dist/jest/mocks/unistyles.cjs +143 -0
- package/dist/jest/mocks/unistyles.d.cts +197 -0
- package/dist/jest/mocks/unistyles.d.cts.map +1 -0
- package/dist/jest/mocks/unistyles.d.ts +197 -0
- package/dist/jest/mocks/unistyles.d.ts.map +1 -0
- package/dist/jest/mocks/unistyles.js +132 -0
- package/dist/jest/mocks/unistyles.js.map +1 -0
- package/dist/jest/setup.cjs +40 -0
- package/dist/jest/setup.d.cts +11 -0
- package/dist/jest/setup.d.cts.map +1 -0
- package/dist/jest/setup.d.ts +11 -0
- package/dist/jest/setup.d.ts.map +1 -0
- package/dist/jest/setup.js +39 -0
- package/dist/jest/setup.js.map +1 -0
- package/dist/types/dist/index.d.cts.map +1 -1
- package/dist/types/dist/index.d.ts.map +1 -1
- package/generated/styles.cjs +46 -0
- package/generated/styles.d.ts +17 -0
- package/generated/styles.mjs +46 -0
- package/generated/unistyles.d.ts +25 -0
- package/package.json +11 -1
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
|
|
2
|
+
import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
|
|
6
|
+
//#region src/jest/mocks/reanimated.tsx
|
|
7
|
+
var reanimated_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
Animated: () => Animated,
|
|
9
|
+
Easing: () => Easing,
|
|
10
|
+
FadeIn: () => FadeIn,
|
|
11
|
+
FadeOut: () => FadeOut,
|
|
12
|
+
SlideInRight: () => SlideInRight,
|
|
13
|
+
SlideOutLeft: () => SlideOutLeft,
|
|
14
|
+
ZoomIn: () => ZoomIn,
|
|
15
|
+
ZoomOut: () => ZoomOut,
|
|
16
|
+
cancelAnimation: () => cancelAnimation,
|
|
17
|
+
convertToRGBA: () => convertToRGBA,
|
|
18
|
+
createAnimatedComponent: () => createAnimatedComponent,
|
|
19
|
+
default: () => Animated,
|
|
20
|
+
interpolate: () => interpolate,
|
|
21
|
+
interpolateColor: () => interpolateColor,
|
|
22
|
+
isWorklet: () => isWorklet,
|
|
23
|
+
measure: () => measure,
|
|
24
|
+
runOnJS: () => runOnJS,
|
|
25
|
+
runOnUI: () => runOnUI,
|
|
26
|
+
scrollTo: () => scrollTo,
|
|
27
|
+
useAnimatedGestureHandler: () => useAnimatedGestureHandler,
|
|
28
|
+
useAnimatedProps: () => useAnimatedProps,
|
|
29
|
+
useAnimatedReaction: () => useAnimatedReaction,
|
|
30
|
+
useAnimatedRef: () => useAnimatedRef,
|
|
31
|
+
useAnimatedScrollHandler: () => useAnimatedScrollHandler,
|
|
32
|
+
useAnimatedStyle: () => useAnimatedStyle,
|
|
33
|
+
useDerivedValue: () => useDerivedValue,
|
|
34
|
+
useSharedValue: () => useSharedValue,
|
|
35
|
+
withDecay: () => withDecay,
|
|
36
|
+
withDelay: () => withDelay,
|
|
37
|
+
withRepeat: () => withRepeat,
|
|
38
|
+
withSequence: () => withSequence,
|
|
39
|
+
withSpring: () => withSpring,
|
|
40
|
+
withTiming: () => withTiming
|
|
41
|
+
});
|
|
42
|
+
function useSharedValue(initialValue) {
|
|
43
|
+
return {
|
|
44
|
+
value: initialValue,
|
|
45
|
+
addListener: jest.fn(),
|
|
46
|
+
removeListener: jest.fn(),
|
|
47
|
+
modify: jest.fn()
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function useDerivedValue(derivedFn) {
|
|
51
|
+
try {
|
|
52
|
+
return { value: derivedFn() };
|
|
53
|
+
} catch {
|
|
54
|
+
return { value: void 0 };
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
function useAnimatedStyle(styleWorklet) {
|
|
58
|
+
try {
|
|
59
|
+
return styleWorklet();
|
|
60
|
+
} catch {
|
|
61
|
+
return {};
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
function withTiming(toValue) {
|
|
65
|
+
return toValue;
|
|
66
|
+
}
|
|
67
|
+
function withSpring(toValue) {
|
|
68
|
+
return toValue;
|
|
69
|
+
}
|
|
70
|
+
function withDelay(_delay, animation) {
|
|
71
|
+
return animation;
|
|
72
|
+
}
|
|
73
|
+
function withSequence(...animations) {
|
|
74
|
+
return animations[animations.length - 1];
|
|
75
|
+
}
|
|
76
|
+
function withRepeat(animation) {
|
|
77
|
+
return animation;
|
|
78
|
+
}
|
|
79
|
+
function withDecay(config) {
|
|
80
|
+
return config.velocity ?? 0;
|
|
81
|
+
}
|
|
82
|
+
function interpolate(value, inputRange, outputRange, _extrapolation) {
|
|
83
|
+
if (value <= inputRange[0]) return outputRange[0];
|
|
84
|
+
if (value >= inputRange[inputRange.length - 1]) return outputRange[outputRange.length - 1];
|
|
85
|
+
for (let i = 0; i < inputRange.length - 1; i++) if (value >= inputRange[i] && value <= inputRange[i + 1]) {
|
|
86
|
+
const progress = (value - inputRange[i]) / (inputRange[i + 1] - inputRange[i]);
|
|
87
|
+
return outputRange[i] + progress * (outputRange[i + 1] - outputRange[i]);
|
|
88
|
+
}
|
|
89
|
+
return outputRange[outputRange.length - 1];
|
|
90
|
+
}
|
|
91
|
+
function interpolateColor(value, inputRange, outputRange) {
|
|
92
|
+
if (value <= inputRange[0]) return outputRange[0];
|
|
93
|
+
if (value >= inputRange[inputRange.length - 1]) return outputRange[outputRange.length - 1];
|
|
94
|
+
const index = Math.round((value - inputRange[0]) / (inputRange[inputRange.length - 1] - inputRange[0]) * (outputRange.length - 1));
|
|
95
|
+
return outputRange[Math.min(index, outputRange.length - 1)];
|
|
96
|
+
}
|
|
97
|
+
const Easing = {
|
|
98
|
+
linear: (t) => t,
|
|
99
|
+
ease: (t) => t,
|
|
100
|
+
quad: (t) => t * t,
|
|
101
|
+
cubic: (t) => t * t * t,
|
|
102
|
+
poly: (_n) => (t) => t,
|
|
103
|
+
sin: (t) => t,
|
|
104
|
+
circle: (t) => t,
|
|
105
|
+
exp: (t) => t,
|
|
106
|
+
elastic: (_bounciness) => (t) => t,
|
|
107
|
+
back: (_s) => (t) => t,
|
|
108
|
+
bounce: (t) => t,
|
|
109
|
+
bezier: () => (t) => t,
|
|
110
|
+
bezierFn: () => (t) => t,
|
|
111
|
+
in: (easing) => easing,
|
|
112
|
+
out: (easing) => easing,
|
|
113
|
+
inOut: (easing) => easing
|
|
114
|
+
};
|
|
115
|
+
function useAnimatedGestureHandler() {
|
|
116
|
+
return {};
|
|
117
|
+
}
|
|
118
|
+
function useAnimatedScrollHandler() {
|
|
119
|
+
return {};
|
|
120
|
+
}
|
|
121
|
+
function useAnimatedProps(propsWorklet) {
|
|
122
|
+
try {
|
|
123
|
+
return propsWorklet();
|
|
124
|
+
} catch {
|
|
125
|
+
return {};
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
function useAnimatedRef() {
|
|
129
|
+
return { current: null };
|
|
130
|
+
}
|
|
131
|
+
function useAnimatedReaction() {}
|
|
132
|
+
function MockView({ children, style, testID, ...props }) {
|
|
133
|
+
return React.createElement("View", {
|
|
134
|
+
style,
|
|
135
|
+
testID,
|
|
136
|
+
...props
|
|
137
|
+
}, children);
|
|
138
|
+
}
|
|
139
|
+
function MockText({ children, style, testID, ...props }) {
|
|
140
|
+
return React.createElement("Text", {
|
|
141
|
+
style,
|
|
142
|
+
testID,
|
|
143
|
+
...props
|
|
144
|
+
}, children);
|
|
145
|
+
}
|
|
146
|
+
function MockScrollView({ children, style, testID, ...props }) {
|
|
147
|
+
return React.createElement("ScrollView", {
|
|
148
|
+
style,
|
|
149
|
+
testID,
|
|
150
|
+
...props
|
|
151
|
+
}, children);
|
|
152
|
+
}
|
|
153
|
+
function MockImage({ style, testID = "AnimatedImage", ...props }) {
|
|
154
|
+
return React.createElement("Image", {
|
|
155
|
+
style,
|
|
156
|
+
testID,
|
|
157
|
+
...props
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function createAnimatedComponent(Component) {
|
|
161
|
+
function AnimatedComponent({ children, style, ...props }) {
|
|
162
|
+
return /* @__PURE__ */ jsx(Component, {
|
|
163
|
+
style: Array.isArray(style) ? Object.assign({}, ...style) : style,
|
|
164
|
+
...props,
|
|
165
|
+
children
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
AnimatedComponent.displayName = `Animated(${Component.displayName || Component.name || "Component"})`;
|
|
169
|
+
return AnimatedComponent;
|
|
170
|
+
}
|
|
171
|
+
const Animated = {
|
|
172
|
+
View: MockView,
|
|
173
|
+
Text: MockText,
|
|
174
|
+
Image: MockImage,
|
|
175
|
+
ScrollView: MockScrollView,
|
|
176
|
+
createAnimatedComponent
|
|
177
|
+
};
|
|
178
|
+
const FadeIn = { duration: jest.fn().mockReturnThis() };
|
|
179
|
+
const FadeOut = { duration: jest.fn().mockReturnThis() };
|
|
180
|
+
const SlideInRight = { duration: jest.fn().mockReturnThis() };
|
|
181
|
+
const SlideOutLeft = { duration: jest.fn().mockReturnThis() };
|
|
182
|
+
const ZoomIn = { duration: jest.fn().mockReturnThis() };
|
|
183
|
+
const ZoomOut = { duration: jest.fn().mockReturnThis() };
|
|
184
|
+
function convertToRGBA(color) {
|
|
185
|
+
if (typeof color === "string") return color;
|
|
186
|
+
return `rgba(${color >> 16 & 255}, ${color >> 8 & 255}, ${color & 255}, 1)`;
|
|
187
|
+
}
|
|
188
|
+
function runOnJS(fn) {
|
|
189
|
+
return fn;
|
|
190
|
+
}
|
|
191
|
+
function runOnUI(fn) {
|
|
192
|
+
return fn;
|
|
193
|
+
}
|
|
194
|
+
function isWorklet() {
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
197
|
+
const cancelAnimation = jest.fn();
|
|
198
|
+
const measure = jest.fn(() => ({
|
|
199
|
+
x: 0,
|
|
200
|
+
y: 0,
|
|
201
|
+
width: 100,
|
|
202
|
+
height: 100,
|
|
203
|
+
pageX: 0,
|
|
204
|
+
pageY: 0
|
|
205
|
+
}));
|
|
206
|
+
const scrollTo = jest.fn();
|
|
207
|
+
|
|
208
|
+
//#endregion
|
|
209
|
+
export { Animated, Animated as default, Easing, FadeIn, FadeOut, SlideInRight, SlideOutLeft, ZoomIn, ZoomOut, cancelAnimation, convertToRGBA, createAnimatedComponent, interpolate, interpolateColor, isWorklet, measure, reanimated_exports, runOnJS, runOnUI, scrollTo, useAnimatedGestureHandler, useAnimatedProps, useAnimatedReaction, useAnimatedRef, useAnimatedScrollHandler, useAnimatedStyle, useDerivedValue, useSharedValue, withDecay, withDelay, withRepeat, withSequence, withSpring, withTiming };
|
|
210
|
+
//# sourceMappingURL=reanimated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reanimated.js","names":[],"sources":["../../../src/jest/mocks/reanimated.tsx"],"sourcesContent":["/**\n * Jest mock for react-native-reanimated.\n *\n * Provides minimal implementations for testing components\n * that use Reanimated animations.\n */\n\n/// <reference types=\"jest\" />\n\nimport type { ComponentType, PropsWithChildren, ReactNode } from 'react';\nimport React from 'react';\n\n// Shared value mock\nfunction useSharedValue<T>(initialValue: T) {\n return {\n value: initialValue,\n addListener: jest.fn(),\n removeListener: jest.fn(),\n modify: jest.fn(),\n };\n}\n\n// Derived value mock\nfunction useDerivedValue<T>(derivedFn: () => T): { value: T } {\n try {\n return { value: derivedFn() };\n } catch {\n return { value: undefined as T };\n }\n}\n\n// Animated style mock - returns empty object for snapshots\nfunction useAnimatedStyle<T extends object>(styleWorklet: () => T): T {\n try {\n return styleWorklet();\n } catch {\n return {} as T;\n }\n}\n\n// Animation timing functions - return the target value immediately\nfunction withTiming<T>(toValue: T): T {\n return toValue;\n}\n\nfunction withSpring<T>(toValue: T): T {\n return toValue;\n}\n\nfunction withDelay<T>(_delay: number, animation: T): T {\n return animation;\n}\n\nfunction withSequence<T>(...animations: T[]): T {\n return animations[animations.length - 1];\n}\n\nfunction withRepeat<T>(animation: T): T {\n return animation;\n}\n\nfunction withDecay(config: { velocity?: number; deceleration?: number }): number {\n return config.velocity ?? 0;\n}\n\n// Interpolation mock\nfunction interpolate(\n value: number,\n inputRange: readonly number[],\n outputRange: readonly number[],\n _extrapolation?: 'clamp' | 'extend' | { extrapolateLeft?: string; extrapolateRight?: string },\n): number {\n // Simple linear interpolation for testing\n if (value <= inputRange[0]) {\n return outputRange[0];\n }\n if (value >= inputRange[inputRange.length - 1]) {\n return outputRange[outputRange.length - 1];\n }\n\n // Find the segment\n for (let i = 0; i < inputRange.length - 1; i++) {\n if (value >= inputRange[i] && value <= inputRange[i + 1]) {\n const progress = (value - inputRange[i]) / (inputRange[i + 1] - inputRange[i]);\n return outputRange[i] + progress * (outputRange[i + 1] - outputRange[i]);\n }\n }\n\n return outputRange[outputRange.length - 1];\n}\n\nfunction interpolateColor(\n value: number,\n inputRange: readonly number[],\n outputRange: readonly string[],\n): string {\n if (value <= inputRange[0]) {\n return outputRange[0];\n }\n if (value >= inputRange[inputRange.length - 1]) {\n return outputRange[outputRange.length - 1];\n }\n // For testing, just return the closest color\n const index = Math.round(\n ((value - inputRange[0]) / (inputRange[inputRange.length - 1] - inputRange[0])) *\n (outputRange.length - 1),\n );\n return outputRange[Math.min(index, outputRange.length - 1)];\n}\n\n// Easing mock\nconst Easing = {\n linear: (t: number) => t,\n ease: (t: number) => t,\n quad: (t: number) => t * t,\n cubic: (t: number) => t * t * t,\n poly: (_n: number) => (t: number) => t,\n sin: (t: number) => t,\n circle: (t: number) => t,\n exp: (t: number) => t,\n elastic: (_bounciness?: number) => (t: number) => t,\n back: (_s?: number) => (t: number) => t,\n bounce: (t: number) => t,\n bezier: () => (t: number) => t,\n bezierFn: () => (t: number) => t,\n in: (easing: (t: number) => number) => easing,\n out: (easing: (t: number) => number) => easing,\n inOut: (easing: (t: number) => number) => easing,\n};\n\n// Gesture handler event hooks\nfunction useAnimatedGestureHandler(): Record<string, unknown> {\n return {};\n}\n\nfunction useAnimatedScrollHandler(): Record<string, unknown> {\n return {};\n}\n\n// Animated props\nfunction useAnimatedProps<T extends object>(propsWorklet: () => T): T {\n try {\n return propsWorklet();\n } catch {\n return {} as T;\n }\n}\n\n// Refs\nfunction useAnimatedRef<T>(): { current: T | null } {\n return { current: null };\n}\n\n// Reactions\nfunction useAnimatedReaction(): void {\n // no-op\n}\n\n// Simple mock components that don't depend on react-native imports\n// (to avoid issues with React Native's Jest mock initialization order)\ninterface MockViewProps {\n children?: ReactNode;\n style?: object;\n testID?: string;\n [key: string]: unknown;\n}\n\nfunction MockView({ children, style, testID, ...props }: MockViewProps) {\n // Use a simple div-like structure for Jest\n return React.createElement('View', { style, testID, ...props }, children);\n}\n\nfunction MockText({ children, style, testID, ...props }: MockViewProps) {\n return React.createElement('Text', { style, testID, ...props }, children);\n}\n\nfunction MockScrollView({ children, style, testID, ...props }: MockViewProps) {\n return React.createElement('ScrollView', { style, testID, ...props }, children);\n}\n\nfunction MockImage({ style, testID = 'AnimatedImage', ...props }: MockViewProps) {\n return React.createElement('Image', { style, testID, ...props });\n}\n\n// Animated component factory - creates a pass-through wrapper\nfunction createAnimatedComponent<T extends ComponentType<object>>(Component: T) {\n function AnimatedComponent({ children, style, ...props }: PropsWithChildren<{ style?: object }>) {\n // Flatten animated styles for rendering\n const flatStyle = Array.isArray(style) ? Object.assign({}, ...style) : style;\n const Comp = Component as ComponentType<{ style?: object; children?: ReactNode }>;\n return (\n <Comp style={flatStyle} {...props}>\n {children}\n </Comp>\n );\n }\n AnimatedComponent.displayName = `Animated(${(Component as { displayName?: string }).displayName || Component.name || 'Component'})`;\n return AnimatedComponent;\n}\n\n// Animated namespace with pre-created mock components\nconst Animated = {\n View: MockView,\n Text: MockText,\n Image: MockImage,\n ScrollView: MockScrollView,\n createAnimatedComponent,\n};\n\n// Layout animations\nconst FadeIn = { duration: jest.fn().mockReturnThis() };\nconst FadeOut = { duration: jest.fn().mockReturnThis() };\nconst SlideInRight = { duration: jest.fn().mockReturnThis() };\nconst SlideOutLeft = { duration: jest.fn().mockReturnThis() };\nconst ZoomIn = { duration: jest.fn().mockReturnThis() };\nconst ZoomOut = { duration: jest.fn().mockReturnThis() };\n\n// Color conversion\nfunction convertToRGBA(color: string | number): string {\n if (typeof color === 'string') {\n return color;\n }\n return `rgba(${(color >> 16) & 255}, ${(color >> 8) & 255}, ${color & 255}, 1)`;\n}\n\n// Run on JS/UI\nfunction runOnJS<T extends (...args: unknown[]) => unknown>(fn: T): T {\n return fn;\n}\n\nfunction runOnUI<T extends (...args: unknown[]) => unknown>(fn: T): T {\n return fn;\n}\n\n// Worklet helper\nfunction isWorklet(): boolean {\n return false;\n}\n\n// Cancel animation\nconst cancelAnimation = jest.fn();\n\n// Measure\nconst measure = jest.fn(() => ({\n x: 0,\n y: 0,\n width: 100,\n height: 100,\n pageX: 0,\n pageY: 0,\n}));\n\n// Scroll to\nconst scrollTo = jest.fn();\n\nexport default Animated;\n\nexport {\n Animated,\n cancelAnimation,\n convertToRGBA,\n createAnimatedComponent,\n Easing,\n FadeIn,\n FadeOut,\n interpolate,\n interpolateColor,\n isWorklet,\n measure,\n runOnJS,\n runOnUI,\n scrollTo,\n SlideInRight,\n SlideOutLeft,\n useAnimatedGestureHandler,\n useAnimatedProps,\n useAnimatedReaction,\n useAnimatedRef,\n useAnimatedScrollHandler,\n useAnimatedStyle,\n useDerivedValue,\n useSharedValue,\n withDecay,\n withDelay,\n withRepeat,\n withSequence,\n withSpring,\n withTiming,\n ZoomIn,\n ZoomOut,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,SAAS,eAAkB,cAAiB;AAC1C,QAAO;EAC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|
3
|
+
const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
|
|
4
|
+
|
|
5
|
+
//#region src/jest/mocks/styles.ts
|
|
6
|
+
var styles_exports = /* @__PURE__ */ require_runtime.__exportAll({
|
|
7
|
+
avatarStyles: () => avatarStyles,
|
|
8
|
+
badgeStyles: () => badgeStyles,
|
|
9
|
+
buttonStyles: () => buttonStyles,
|
|
10
|
+
checkboxStyles: () => checkboxStyles,
|
|
11
|
+
chipStyles: () => chipStyles,
|
|
12
|
+
iconButtonStyles: () => iconButtonStyles,
|
|
13
|
+
inputStyles: () => inputStyles,
|
|
14
|
+
linkStyles: () => linkStyles,
|
|
15
|
+
radioStyles: () => radioStyles,
|
|
16
|
+
styles: () => styles,
|
|
17
|
+
switchStyles: () => switchStyles,
|
|
18
|
+
textStyles: () => textStyles
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* Jest mock for generated/styles.
|
|
22
|
+
*
|
|
23
|
+
* Provides proxy-based mocks for the generated style objects
|
|
24
|
+
* (styles, buttonStyles, etc.) with useVariants as a no-op.
|
|
25
|
+
*/
|
|
26
|
+
const defaultFoundation = {
|
|
27
|
+
display: "flex",
|
|
28
|
+
flexDirection: "column",
|
|
29
|
+
alignItems: "stretch",
|
|
30
|
+
justifyContent: "flex-start",
|
|
31
|
+
padding: 0,
|
|
32
|
+
paddingHorizontal: 0,
|
|
33
|
+
paddingVertical: 0,
|
|
34
|
+
margin: 0,
|
|
35
|
+
gap: 0,
|
|
36
|
+
backgroundColor: "transparent",
|
|
37
|
+
color: "#000000",
|
|
38
|
+
borderColor: "transparent",
|
|
39
|
+
borderWidth: 0,
|
|
40
|
+
borderRadius: 0,
|
|
41
|
+
fontFamily: "System",
|
|
42
|
+
fontSize: 14,
|
|
43
|
+
lineHeight: 20,
|
|
44
|
+
fontWeight: "regular",
|
|
45
|
+
opacity: 1,
|
|
46
|
+
boxShadow: ""
|
|
47
|
+
};
|
|
48
|
+
function createStyleObject(baseStyles = {}) {
|
|
49
|
+
return new Proxy({
|
|
50
|
+
...defaultFoundation,
|
|
51
|
+
...baseStyles,
|
|
52
|
+
useVariants: jest.fn()
|
|
53
|
+
}, { get(target, prop) {
|
|
54
|
+
if (prop === "useVariants") return jest.fn();
|
|
55
|
+
if (prop in target) return target[prop];
|
|
56
|
+
if (typeof prop === "string") {
|
|
57
|
+
if (prop.includes("color") || prop.includes("Color")) return "#000000";
|
|
58
|
+
if (prop.includes("width") || prop.includes("Width")) return 0;
|
|
59
|
+
if (prop.includes("radius") || prop.includes("Radius")) return 0;
|
|
60
|
+
if (prop.includes("size") || prop.includes("Size")) return 16;
|
|
61
|
+
if (prop.includes("spacing") || prop.includes("Spacing")) return 0;
|
|
62
|
+
if (prop.includes("gap") || prop.includes("Gap")) return 0;
|
|
63
|
+
}
|
|
64
|
+
} });
|
|
65
|
+
}
|
|
66
|
+
function createComponentStyles(styleKeys) {
|
|
67
|
+
const result = { useVariants: jest.fn() };
|
|
68
|
+
for (const [key, baseStyles] of Object.entries(styleKeys)) result[key] = createStyleObject(baseStyles);
|
|
69
|
+
return new Proxy(result, { get(target, prop) {
|
|
70
|
+
if (prop === "useVariants") return jest.fn();
|
|
71
|
+
if (prop in target) return target[prop];
|
|
72
|
+
if (typeof prop === "string") return createStyleObject();
|
|
73
|
+
} });
|
|
74
|
+
}
|
|
75
|
+
const styles = createComponentStyles({ foundation: defaultFoundation });
|
|
76
|
+
const buttonStyles = createComponentStyles({
|
|
77
|
+
root: {
|
|
78
|
+
display: "flex",
|
|
79
|
+
flexDirection: "row",
|
|
80
|
+
alignItems: "center",
|
|
81
|
+
justifyContent: "center",
|
|
82
|
+
gap: 8,
|
|
83
|
+
paddingHorizontal: 16,
|
|
84
|
+
paddingVertical: 10,
|
|
85
|
+
backgroundColor: "#6001D2",
|
|
86
|
+
borderRadius: 8,
|
|
87
|
+
borderWidth: 0,
|
|
88
|
+
borderColor: "transparent",
|
|
89
|
+
opacity: 1,
|
|
90
|
+
boxShadow: ""
|
|
91
|
+
},
|
|
92
|
+
text: {
|
|
93
|
+
fontFamily: "YahooProductSans-Medium",
|
|
94
|
+
fontSize: 14,
|
|
95
|
+
letterSpacing: 0,
|
|
96
|
+
lineHeight: 20,
|
|
97
|
+
color: "#FFFFFF"
|
|
98
|
+
},
|
|
99
|
+
icon: {
|
|
100
|
+
fontSize: 16,
|
|
101
|
+
iconSizeToken: "sm",
|
|
102
|
+
lineHeight: 16,
|
|
103
|
+
color: "#FFFFFF"
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
const textStyles = createComponentStyles({ root: {
|
|
107
|
+
fontFamily: "YahooProductSans-Regular",
|
|
108
|
+
fontSize: 14,
|
|
109
|
+
lineHeight: 20,
|
|
110
|
+
color: "#000000"
|
|
111
|
+
} });
|
|
112
|
+
const inputStyles = createComponentStyles({
|
|
113
|
+
root: {
|
|
114
|
+
display: "flex",
|
|
115
|
+
flexDirection: "column",
|
|
116
|
+
gap: 4
|
|
117
|
+
},
|
|
118
|
+
label: {
|
|
119
|
+
fontFamily: "YahooProductSans-Medium",
|
|
120
|
+
fontSize: 14,
|
|
121
|
+
lineHeight: 20,
|
|
122
|
+
color: "#000000"
|
|
123
|
+
},
|
|
124
|
+
inputContainer: {
|
|
125
|
+
display: "flex",
|
|
126
|
+
flexDirection: "row",
|
|
127
|
+
alignItems: "center",
|
|
128
|
+
paddingHorizontal: 12,
|
|
129
|
+
paddingVertical: 10,
|
|
130
|
+
backgroundColor: "#FFFFFF",
|
|
131
|
+
borderRadius: 8,
|
|
132
|
+
borderWidth: 1,
|
|
133
|
+
borderColor: "#E0E0E0"
|
|
134
|
+
},
|
|
135
|
+
input: {
|
|
136
|
+
flex: 1,
|
|
137
|
+
fontFamily: "YahooProductSans-Regular",
|
|
138
|
+
fontSize: 16,
|
|
139
|
+
lineHeight: 24,
|
|
140
|
+
color: "#000000"
|
|
141
|
+
},
|
|
142
|
+
helperText: {
|
|
143
|
+
fontFamily: "YahooProductSans-Regular",
|
|
144
|
+
fontSize: 12,
|
|
145
|
+
lineHeight: 16,
|
|
146
|
+
color: "#666666"
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
const checkboxStyles = createComponentStyles({
|
|
150
|
+
root: {
|
|
151
|
+
display: "flex",
|
|
152
|
+
flexDirection: "row",
|
|
153
|
+
alignItems: "center",
|
|
154
|
+
gap: 8
|
|
155
|
+
},
|
|
156
|
+
box: {
|
|
157
|
+
width: 20,
|
|
158
|
+
height: 20,
|
|
159
|
+
borderRadius: 4,
|
|
160
|
+
borderWidth: 2,
|
|
161
|
+
borderColor: "#6001D2",
|
|
162
|
+
backgroundColor: "transparent"
|
|
163
|
+
},
|
|
164
|
+
label: {
|
|
165
|
+
fontFamily: "YahooProductSans-Regular",
|
|
166
|
+
fontSize: 14,
|
|
167
|
+
lineHeight: 20,
|
|
168
|
+
color: "#000000"
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
const switchStyles = createComponentStyles({
|
|
172
|
+
root: {
|
|
173
|
+
display: "flex",
|
|
174
|
+
flexDirection: "row",
|
|
175
|
+
alignItems: "center",
|
|
176
|
+
gap: 8
|
|
177
|
+
},
|
|
178
|
+
track: {
|
|
179
|
+
width: 48,
|
|
180
|
+
height: 28,
|
|
181
|
+
borderRadius: 14,
|
|
182
|
+
backgroundColor: "#E0E0E0"
|
|
183
|
+
},
|
|
184
|
+
thumb: {
|
|
185
|
+
width: 24,
|
|
186
|
+
height: 24,
|
|
187
|
+
borderRadius: 12,
|
|
188
|
+
backgroundColor: "#FFFFFF"
|
|
189
|
+
},
|
|
190
|
+
label: {
|
|
191
|
+
fontFamily: "YahooProductSans-Regular",
|
|
192
|
+
fontSize: 14,
|
|
193
|
+
lineHeight: 20,
|
|
194
|
+
color: "#000000"
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
const avatarStyles = createComponentStyles({
|
|
198
|
+
root: {
|
|
199
|
+
display: "flex",
|
|
200
|
+
alignItems: "center",
|
|
201
|
+
justifyContent: "center",
|
|
202
|
+
borderRadius: 9999,
|
|
203
|
+
backgroundColor: "#E0E0E0",
|
|
204
|
+
overflow: "hidden"
|
|
205
|
+
},
|
|
206
|
+
image: {
|
|
207
|
+
width: "100%",
|
|
208
|
+
height: "100%"
|
|
209
|
+
},
|
|
210
|
+
initials: {
|
|
211
|
+
fontFamily: "YahooProductSans-Medium",
|
|
212
|
+
fontSize: 14,
|
|
213
|
+
color: "#000000"
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
const badgeStyles = createComponentStyles({
|
|
217
|
+
root: {
|
|
218
|
+
display: "flex",
|
|
219
|
+
alignItems: "center",
|
|
220
|
+
justifyContent: "center",
|
|
221
|
+
paddingHorizontal: 8,
|
|
222
|
+
paddingVertical: 2,
|
|
223
|
+
borderRadius: 4,
|
|
224
|
+
backgroundColor: "#E0E0E0"
|
|
225
|
+
},
|
|
226
|
+
text: {
|
|
227
|
+
fontFamily: "YahooProductSans-Medium",
|
|
228
|
+
fontSize: 12,
|
|
229
|
+
lineHeight: 16,
|
|
230
|
+
color: "#000000"
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
const chipStyles = createComponentStyles({
|
|
234
|
+
root: {
|
|
235
|
+
display: "flex",
|
|
236
|
+
flexDirection: "row",
|
|
237
|
+
alignItems: "center",
|
|
238
|
+
gap: 4,
|
|
239
|
+
paddingHorizontal: 12,
|
|
240
|
+
paddingVertical: 6,
|
|
241
|
+
borderRadius: 16,
|
|
242
|
+
backgroundColor: "#F5F5F5",
|
|
243
|
+
borderWidth: 1,
|
|
244
|
+
borderColor: "#E0E0E0"
|
|
245
|
+
},
|
|
246
|
+
text: {
|
|
247
|
+
fontFamily: "YahooProductSans-Medium",
|
|
248
|
+
fontSize: 14,
|
|
249
|
+
lineHeight: 20,
|
|
250
|
+
color: "#000000"
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
const linkStyles = createComponentStyles({
|
|
254
|
+
root: {
|
|
255
|
+
flexDirection: "row",
|
|
256
|
+
alignItems: "center",
|
|
257
|
+
gap: 4
|
|
258
|
+
},
|
|
259
|
+
text: {
|
|
260
|
+
fontFamily: "YahooProductSans-Regular",
|
|
261
|
+
fontSize: 14,
|
|
262
|
+
lineHeight: 20,
|
|
263
|
+
color: "#6001D2",
|
|
264
|
+
textDecorationLine: "underline"
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
const radioStyles = createComponentStyles({
|
|
268
|
+
root: {
|
|
269
|
+
display: "flex",
|
|
270
|
+
flexDirection: "row",
|
|
271
|
+
alignItems: "center",
|
|
272
|
+
gap: 8
|
|
273
|
+
},
|
|
274
|
+
circle: {
|
|
275
|
+
width: 20,
|
|
276
|
+
height: 20,
|
|
277
|
+
borderRadius: 10,
|
|
278
|
+
borderWidth: 2,
|
|
279
|
+
borderColor: "#6001D2",
|
|
280
|
+
backgroundColor: "transparent"
|
|
281
|
+
},
|
|
282
|
+
dot: {
|
|
283
|
+
width: 10,
|
|
284
|
+
height: 10,
|
|
285
|
+
borderRadius: 5,
|
|
286
|
+
backgroundColor: "#6001D2"
|
|
287
|
+
},
|
|
288
|
+
label: {
|
|
289
|
+
fontFamily: "YahooProductSans-Regular",
|
|
290
|
+
fontSize: 14,
|
|
291
|
+
lineHeight: 20,
|
|
292
|
+
color: "#000000"
|
|
293
|
+
}
|
|
294
|
+
});
|
|
295
|
+
const iconButtonStyles = createComponentStyles({
|
|
296
|
+
root: {
|
|
297
|
+
display: "flex",
|
|
298
|
+
alignItems: "center",
|
|
299
|
+
justifyContent: "center",
|
|
300
|
+
borderRadius: 8,
|
|
301
|
+
backgroundColor: "transparent"
|
|
302
|
+
},
|
|
303
|
+
icon: {
|
|
304
|
+
fontSize: 24,
|
|
305
|
+
color: "#000000"
|
|
306
|
+
}
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
//#endregion
|
|
310
|
+
exports.avatarStyles = avatarStyles;
|
|
311
|
+
exports.badgeStyles = badgeStyles;
|
|
312
|
+
exports.buttonStyles = buttonStyles;
|
|
313
|
+
exports.checkboxStyles = checkboxStyles;
|
|
314
|
+
exports.chipStyles = chipStyles;
|
|
315
|
+
exports.iconButtonStyles = iconButtonStyles;
|
|
316
|
+
exports.inputStyles = inputStyles;
|
|
317
|
+
exports.linkStyles = linkStyles;
|
|
318
|
+
exports.radioStyles = radioStyles;
|
|
319
|
+
exports.styles = styles;
|
|
320
|
+
Object.defineProperty(exports, 'styles_exports', {
|
|
321
|
+
enumerable: true,
|
|
322
|
+
get: function () {
|
|
323
|
+
return styles_exports;
|
|
324
|
+
}
|
|
325
|
+
});
|
|
326
|
+
exports.switchStyles = switchStyles;
|
|
327
|
+
exports.textStyles = textStyles;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
declare namespace styles_d_exports {
|
|
3
|
+
export { StyleProps, avatarStyles, badgeStyles, buttonStyles, checkboxStyles, chipStyles, iconButtonStyles, inputStyles, linkStyles, radioStyles, styles, switchStyles, textStyles };
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Jest mock for generated/styles.
|
|
7
|
+
*
|
|
8
|
+
* Provides proxy-based mocks for the generated style objects
|
|
9
|
+
* (styles, buttonStyles, etc.) with useVariants as a no-op.
|
|
10
|
+
*/
|
|
11
|
+
declare const styles: Record<string, unknown>;
|
|
12
|
+
declare const buttonStyles: Record<string, unknown>;
|
|
13
|
+
declare const textStyles: Record<string, unknown>;
|
|
14
|
+
declare const inputStyles: Record<string, unknown>;
|
|
15
|
+
declare const checkboxStyles: Record<string, unknown>;
|
|
16
|
+
declare const switchStyles: Record<string, unknown>;
|
|
17
|
+
declare const avatarStyles: Record<string, unknown>;
|
|
18
|
+
declare const badgeStyles: Record<string, unknown>;
|
|
19
|
+
declare const chipStyles: Record<string, unknown>;
|
|
20
|
+
declare const linkStyles: Record<string, unknown>;
|
|
21
|
+
declare const radioStyles: Record<string, unknown>;
|
|
22
|
+
declare const iconButtonStyles: Record<string, unknown>;
|
|
23
|
+
interface StyleProps {
|
|
24
|
+
color?: string;
|
|
25
|
+
backgroundColor?: string;
|
|
26
|
+
borderColor?: string;
|
|
27
|
+
borderWidth?: number;
|
|
28
|
+
borderRadius?: number;
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { StyleProps, avatarStyles, badgeStyles, buttonStyles, checkboxStyles, chipStyles, iconButtonStyles, inputStyles, linkStyles, radioStyles, styles, styles_d_exports, switchStyles, textStyles };
|
|
33
|
+
//# sourceMappingURL=styles.d.cts.map
|
|
@@ -0,0 +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,UAAA,EAAU,MAAA;AAAA,cAgBV,WAAA,EAAW,MAAA;AAAA,cA8BX,gBAAA,EAAgB,MAAA;AAAA,UAeZ,UAAA;EACf,KAAA;EACA,eAAA;EACA,WAAA;EACA,WAAA;EACA,YAAA;EAAA,CACC,GAAA;AAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
declare namespace styles_d_exports {
|
|
3
|
+
export { StyleProps, avatarStyles, badgeStyles, buttonStyles, checkboxStyles, chipStyles, iconButtonStyles, inputStyles, linkStyles, radioStyles, styles, switchStyles, textStyles };
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Jest mock for generated/styles.
|
|
7
|
+
*
|
|
8
|
+
* Provides proxy-based mocks for the generated style objects
|
|
9
|
+
* (styles, buttonStyles, etc.) with useVariants as a no-op.
|
|
10
|
+
*/
|
|
11
|
+
declare const styles: Record<string, unknown>;
|
|
12
|
+
declare const buttonStyles: Record<string, unknown>;
|
|
13
|
+
declare const textStyles: Record<string, unknown>;
|
|
14
|
+
declare const inputStyles: Record<string, unknown>;
|
|
15
|
+
declare const checkboxStyles: Record<string, unknown>;
|
|
16
|
+
declare const switchStyles: Record<string, unknown>;
|
|
17
|
+
declare const avatarStyles: Record<string, unknown>;
|
|
18
|
+
declare const badgeStyles: Record<string, unknown>;
|
|
19
|
+
declare const chipStyles: Record<string, unknown>;
|
|
20
|
+
declare const linkStyles: Record<string, unknown>;
|
|
21
|
+
declare const radioStyles: Record<string, unknown>;
|
|
22
|
+
declare const iconButtonStyles: Record<string, unknown>;
|
|
23
|
+
interface StyleProps {
|
|
24
|
+
color?: string;
|
|
25
|
+
backgroundColor?: string;
|
|
26
|
+
borderColor?: string;
|
|
27
|
+
borderWidth?: number;
|
|
28
|
+
borderRadius?: number;
|
|
29
|
+
[key: string]: unknown;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { StyleProps, avatarStyles, badgeStyles, buttonStyles, checkboxStyles, chipStyles, iconButtonStyles, inputStyles, linkStyles, radioStyles, styles, styles_d_exports, switchStyles, textStyles };
|
|
33
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +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,UAAA,EAAU,MAAA;AAAA,cAgBV,WAAA,EAAW,MAAA;AAAA,cA8BX,gBAAA,EAAgB,MAAA;AAAA,UAeZ,UAAA;EACf,KAAA;EACA,eAAA;EACA,WAAA;EACA,WAAA;EACA,YAAA;EAAA,CACC,GAAA;AAAA"}
|