@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.
Files changed (69) hide show
  1. package/README.md +92 -0
  2. package/dist/_virtual/_rolldown/runtime.cjs +14 -0
  3. package/dist/_virtual/_rolldown/runtime.js +19 -0
  4. package/dist/components/Switch.cjs +2 -2
  5. package/dist/components/Switch.js +2 -2
  6. package/dist/components/Switch.js.map +1 -1
  7. package/dist/jest/index.cjs +27 -0
  8. package/dist/jest/index.d.cts +19 -0
  9. package/dist/jest/index.d.cts.map +1 -0
  10. package/dist/jest/index.d.ts +19 -0
  11. package/dist/jest/index.d.ts.map +1 -0
  12. package/dist/jest/index.js +25 -0
  13. package/dist/jest/index.js.map +1 -0
  14. package/dist/jest/mocks/icons.cjs +56 -0
  15. package/dist/jest/mocks/icons.d.cts +24 -0
  16. package/dist/jest/mocks/icons.d.cts.map +1 -0
  17. package/dist/jest/mocks/icons.d.ts +24 -0
  18. package/dist/jest/mocks/icons.d.ts.map +1 -0
  19. package/dist/jest/mocks/icons.js +46 -0
  20. package/dist/jest/mocks/icons.js.map +1 -0
  21. package/dist/jest/mocks/react-native.cjs +212 -0
  22. package/dist/jest/mocks/react-native.d.cts +293 -0
  23. package/dist/jest/mocks/react-native.d.cts.map +1 -0
  24. package/dist/jest/mocks/react-native.d.ts +293 -0
  25. package/dist/jest/mocks/react-native.d.ts.map +1 -0
  26. package/dist/jest/mocks/react-native.js +180 -0
  27. package/dist/jest/mocks/react-native.js.map +1 -0
  28. package/dist/jest/mocks/reanimated.cjs +249 -0
  29. package/dist/jest/mocks/reanimated.d.cts +150 -0
  30. package/dist/jest/mocks/reanimated.d.cts.map +1 -0
  31. package/dist/jest/mocks/reanimated.d.ts +150 -0
  32. package/dist/jest/mocks/reanimated.d.ts.map +1 -0
  33. package/dist/jest/mocks/reanimated.js +210 -0
  34. package/dist/jest/mocks/reanimated.js.map +1 -0
  35. package/dist/jest/mocks/styles.cjs +327 -0
  36. package/dist/jest/mocks/styles.d.cts +33 -0
  37. package/dist/jest/mocks/styles.d.cts.map +1 -0
  38. package/dist/jest/mocks/styles.d.ts +33 -0
  39. package/dist/jest/mocks/styles.d.ts.map +1 -0
  40. package/dist/jest/mocks/styles.js +310 -0
  41. package/dist/jest/mocks/styles.js.map +1 -0
  42. package/dist/jest/mocks/svg.cjs +133 -0
  43. package/dist/jest/mocks/svg.d.cts +137 -0
  44. package/dist/jest/mocks/svg.d.cts.map +1 -0
  45. package/dist/jest/mocks/svg.d.ts +137 -0
  46. package/dist/jest/mocks/svg.d.ts.map +1 -0
  47. package/dist/jest/mocks/svg.js +100 -0
  48. package/dist/jest/mocks/svg.js.map +1 -0
  49. package/dist/jest/mocks/unistyles.cjs +143 -0
  50. package/dist/jest/mocks/unistyles.d.cts +197 -0
  51. package/dist/jest/mocks/unistyles.d.cts.map +1 -0
  52. package/dist/jest/mocks/unistyles.d.ts +197 -0
  53. package/dist/jest/mocks/unistyles.d.ts.map +1 -0
  54. package/dist/jest/mocks/unistyles.js +132 -0
  55. package/dist/jest/mocks/unistyles.js.map +1 -0
  56. package/dist/jest/setup.cjs +40 -0
  57. package/dist/jest/setup.d.cts +11 -0
  58. package/dist/jest/setup.d.cts.map +1 -0
  59. package/dist/jest/setup.d.ts +11 -0
  60. package/dist/jest/setup.d.ts.map +1 -0
  61. package/dist/jest/setup.js +39 -0
  62. package/dist/jest/setup.js.map +1 -0
  63. package/dist/types/dist/index.d.cts.map +1 -1
  64. package/dist/types/dist/index.d.ts.map +1 -1
  65. package/generated/styles.cjs +46 -0
  66. package/generated/styles.d.ts +17 -0
  67. package/generated/styles.mjs +46 -0
  68. package/generated/unistyles.d.ts +25 -0
  69. package/package.json +11 -1
@@ -0,0 +1,310 @@
1
+ /*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
2
+ import { __exportAll } from "../../_virtual/_rolldown/runtime.js";
3
+
4
+ //#region src/jest/mocks/styles.ts
5
+ var styles_exports = /* @__PURE__ */ __exportAll({
6
+ avatarStyles: () => avatarStyles,
7
+ badgeStyles: () => badgeStyles,
8
+ buttonStyles: () => buttonStyles,
9
+ checkboxStyles: () => checkboxStyles,
10
+ chipStyles: () => chipStyles,
11
+ iconButtonStyles: () => iconButtonStyles,
12
+ inputStyles: () => inputStyles,
13
+ linkStyles: () => linkStyles,
14
+ radioStyles: () => radioStyles,
15
+ styles: () => styles,
16
+ switchStyles: () => switchStyles,
17
+ textStyles: () => textStyles
18
+ });
19
+ /**
20
+ * Jest mock for generated/styles.
21
+ *
22
+ * Provides proxy-based mocks for the generated style objects
23
+ * (styles, buttonStyles, etc.) with useVariants as a no-op.
24
+ */
25
+ const defaultFoundation = {
26
+ display: "flex",
27
+ flexDirection: "column",
28
+ alignItems: "stretch",
29
+ justifyContent: "flex-start",
30
+ padding: 0,
31
+ paddingHorizontal: 0,
32
+ paddingVertical: 0,
33
+ margin: 0,
34
+ gap: 0,
35
+ backgroundColor: "transparent",
36
+ color: "#000000",
37
+ borderColor: "transparent",
38
+ borderWidth: 0,
39
+ borderRadius: 0,
40
+ fontFamily: "System",
41
+ fontSize: 14,
42
+ lineHeight: 20,
43
+ fontWeight: "regular",
44
+ opacity: 1,
45
+ boxShadow: ""
46
+ };
47
+ function createStyleObject(baseStyles = {}) {
48
+ return new Proxy({
49
+ ...defaultFoundation,
50
+ ...baseStyles,
51
+ useVariants: jest.fn()
52
+ }, { get(target, prop) {
53
+ if (prop === "useVariants") return jest.fn();
54
+ if (prop in target) return target[prop];
55
+ if (typeof prop === "string") {
56
+ if (prop.includes("color") || prop.includes("Color")) return "#000000";
57
+ if (prop.includes("width") || prop.includes("Width")) return 0;
58
+ if (prop.includes("radius") || prop.includes("Radius")) return 0;
59
+ if (prop.includes("size") || prop.includes("Size")) return 16;
60
+ if (prop.includes("spacing") || prop.includes("Spacing")) return 0;
61
+ if (prop.includes("gap") || prop.includes("Gap")) return 0;
62
+ }
63
+ } });
64
+ }
65
+ function createComponentStyles(styleKeys) {
66
+ const result = { useVariants: jest.fn() };
67
+ for (const [key, baseStyles] of Object.entries(styleKeys)) result[key] = createStyleObject(baseStyles);
68
+ return new Proxy(result, { get(target, prop) {
69
+ if (prop === "useVariants") return jest.fn();
70
+ if (prop in target) return target[prop];
71
+ if (typeof prop === "string") return createStyleObject();
72
+ } });
73
+ }
74
+ const styles = createComponentStyles({ foundation: defaultFoundation });
75
+ const buttonStyles = createComponentStyles({
76
+ root: {
77
+ display: "flex",
78
+ flexDirection: "row",
79
+ alignItems: "center",
80
+ justifyContent: "center",
81
+ gap: 8,
82
+ paddingHorizontal: 16,
83
+ paddingVertical: 10,
84
+ backgroundColor: "#6001D2",
85
+ borderRadius: 8,
86
+ borderWidth: 0,
87
+ borderColor: "transparent",
88
+ opacity: 1,
89
+ boxShadow: ""
90
+ },
91
+ text: {
92
+ fontFamily: "YahooProductSans-Medium",
93
+ fontSize: 14,
94
+ letterSpacing: 0,
95
+ lineHeight: 20,
96
+ color: "#FFFFFF"
97
+ },
98
+ icon: {
99
+ fontSize: 16,
100
+ iconSizeToken: "sm",
101
+ lineHeight: 16,
102
+ color: "#FFFFFF"
103
+ }
104
+ });
105
+ const textStyles = createComponentStyles({ root: {
106
+ fontFamily: "YahooProductSans-Regular",
107
+ fontSize: 14,
108
+ lineHeight: 20,
109
+ color: "#000000"
110
+ } });
111
+ const inputStyles = createComponentStyles({
112
+ root: {
113
+ display: "flex",
114
+ flexDirection: "column",
115
+ gap: 4
116
+ },
117
+ label: {
118
+ fontFamily: "YahooProductSans-Medium",
119
+ fontSize: 14,
120
+ lineHeight: 20,
121
+ color: "#000000"
122
+ },
123
+ inputContainer: {
124
+ display: "flex",
125
+ flexDirection: "row",
126
+ alignItems: "center",
127
+ paddingHorizontal: 12,
128
+ paddingVertical: 10,
129
+ backgroundColor: "#FFFFFF",
130
+ borderRadius: 8,
131
+ borderWidth: 1,
132
+ borderColor: "#E0E0E0"
133
+ },
134
+ input: {
135
+ flex: 1,
136
+ fontFamily: "YahooProductSans-Regular",
137
+ fontSize: 16,
138
+ lineHeight: 24,
139
+ color: "#000000"
140
+ },
141
+ helperText: {
142
+ fontFamily: "YahooProductSans-Regular",
143
+ fontSize: 12,
144
+ lineHeight: 16,
145
+ color: "#666666"
146
+ }
147
+ });
148
+ const checkboxStyles = createComponentStyles({
149
+ root: {
150
+ display: "flex",
151
+ flexDirection: "row",
152
+ alignItems: "center",
153
+ gap: 8
154
+ },
155
+ box: {
156
+ width: 20,
157
+ height: 20,
158
+ borderRadius: 4,
159
+ borderWidth: 2,
160
+ borderColor: "#6001D2",
161
+ backgroundColor: "transparent"
162
+ },
163
+ label: {
164
+ fontFamily: "YahooProductSans-Regular",
165
+ fontSize: 14,
166
+ lineHeight: 20,
167
+ color: "#000000"
168
+ }
169
+ });
170
+ const switchStyles = createComponentStyles({
171
+ root: {
172
+ display: "flex",
173
+ flexDirection: "row",
174
+ alignItems: "center",
175
+ gap: 8
176
+ },
177
+ track: {
178
+ width: 48,
179
+ height: 28,
180
+ borderRadius: 14,
181
+ backgroundColor: "#E0E0E0"
182
+ },
183
+ thumb: {
184
+ width: 24,
185
+ height: 24,
186
+ borderRadius: 12,
187
+ backgroundColor: "#FFFFFF"
188
+ },
189
+ label: {
190
+ fontFamily: "YahooProductSans-Regular",
191
+ fontSize: 14,
192
+ lineHeight: 20,
193
+ color: "#000000"
194
+ }
195
+ });
196
+ const avatarStyles = createComponentStyles({
197
+ root: {
198
+ display: "flex",
199
+ alignItems: "center",
200
+ justifyContent: "center",
201
+ borderRadius: 9999,
202
+ backgroundColor: "#E0E0E0",
203
+ overflow: "hidden"
204
+ },
205
+ image: {
206
+ width: "100%",
207
+ height: "100%"
208
+ },
209
+ initials: {
210
+ fontFamily: "YahooProductSans-Medium",
211
+ fontSize: 14,
212
+ color: "#000000"
213
+ }
214
+ });
215
+ const badgeStyles = createComponentStyles({
216
+ root: {
217
+ display: "flex",
218
+ alignItems: "center",
219
+ justifyContent: "center",
220
+ paddingHorizontal: 8,
221
+ paddingVertical: 2,
222
+ borderRadius: 4,
223
+ backgroundColor: "#E0E0E0"
224
+ },
225
+ text: {
226
+ fontFamily: "YahooProductSans-Medium",
227
+ fontSize: 12,
228
+ lineHeight: 16,
229
+ color: "#000000"
230
+ }
231
+ });
232
+ const chipStyles = createComponentStyles({
233
+ root: {
234
+ display: "flex",
235
+ flexDirection: "row",
236
+ alignItems: "center",
237
+ gap: 4,
238
+ paddingHorizontal: 12,
239
+ paddingVertical: 6,
240
+ borderRadius: 16,
241
+ backgroundColor: "#F5F5F5",
242
+ borderWidth: 1,
243
+ borderColor: "#E0E0E0"
244
+ },
245
+ text: {
246
+ fontFamily: "YahooProductSans-Medium",
247
+ fontSize: 14,
248
+ lineHeight: 20,
249
+ color: "#000000"
250
+ }
251
+ });
252
+ const linkStyles = createComponentStyles({
253
+ root: {
254
+ flexDirection: "row",
255
+ alignItems: "center",
256
+ gap: 4
257
+ },
258
+ text: {
259
+ fontFamily: "YahooProductSans-Regular",
260
+ fontSize: 14,
261
+ lineHeight: 20,
262
+ color: "#6001D2",
263
+ textDecorationLine: "underline"
264
+ }
265
+ });
266
+ const radioStyles = createComponentStyles({
267
+ root: {
268
+ display: "flex",
269
+ flexDirection: "row",
270
+ alignItems: "center",
271
+ gap: 8
272
+ },
273
+ circle: {
274
+ width: 20,
275
+ height: 20,
276
+ borderRadius: 10,
277
+ borderWidth: 2,
278
+ borderColor: "#6001D2",
279
+ backgroundColor: "transparent"
280
+ },
281
+ dot: {
282
+ width: 10,
283
+ height: 10,
284
+ borderRadius: 5,
285
+ backgroundColor: "#6001D2"
286
+ },
287
+ label: {
288
+ fontFamily: "YahooProductSans-Regular",
289
+ fontSize: 14,
290
+ lineHeight: 20,
291
+ color: "#000000"
292
+ }
293
+ });
294
+ const iconButtonStyles = createComponentStyles({
295
+ root: {
296
+ display: "flex",
297
+ alignItems: "center",
298
+ justifyContent: "center",
299
+ borderRadius: 8,
300
+ backgroundColor: "transparent"
301
+ },
302
+ icon: {
303
+ fontSize: 24,
304
+ color: "#000000"
305
+ }
306
+ });
307
+
308
+ //#endregion
309
+ export { avatarStyles, badgeStyles, buttonStyles, checkboxStyles, chipStyles, iconButtonStyles, inputStyles, linkStyles, radioStyles, styles, styles_exports, switchStyles, textStyles };
310
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","names":[],"sources":["../../../src/jest/mocks/styles.ts"],"sourcesContent":["/**\n * Jest mock for generated/styles.\n *\n * Provides proxy-based mocks for the generated style objects\n * (styles, buttonStyles, etc.) with useVariants as a no-op.\n */\n\n/// <reference types=\"jest\" />\n\n// Default style values for foundation\nconst defaultFoundation = {\n // Layout\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'stretch',\n justifyContent: 'flex-start',\n // Spacing\n padding: 0,\n paddingHorizontal: 0,\n paddingVertical: 0,\n margin: 0,\n gap: 0,\n // Colors\n backgroundColor: 'transparent',\n color: '#000000',\n borderColor: 'transparent',\n // Border\n borderWidth: 0,\n borderRadius: 0,\n // Typography\n fontFamily: 'System',\n fontSize: 14,\n lineHeight: 20,\n fontWeight: 'regular',\n // Effects\n opacity: 1,\n boxShadow: '',\n};\n\n// Create a style object with useVariants attached\nfunction createStyleObject(baseStyles: Record<string, unknown> = {}) {\n const proxy = new Proxy(\n { ...defaultFoundation, ...baseStyles, useVariants: jest.fn() },\n {\n get(target, prop) {\n if (prop === 'useVariants') {\n return jest.fn();\n }\n if (prop in target) {\n return target[prop as keyof typeof target];\n }\n // Return sensible defaults for unknown properties\n if (typeof prop === 'string') {\n if (prop.includes('color') || prop.includes('Color')) {\n return '#000000';\n }\n if (prop.includes('width') || prop.includes('Width')) {\n return 0;\n }\n if (prop.includes('radius') || prop.includes('Radius')) {\n return 0;\n }\n if (prop.includes('size') || prop.includes('Size')) {\n return 16;\n }\n if (prop.includes('spacing') || prop.includes('Spacing')) {\n return 0;\n }\n if (prop.includes('gap') || prop.includes('Gap')) {\n return 0;\n }\n }\n return undefined;\n },\n },\n );\n return proxy;\n}\n\n// Create a component style object (like buttonStyles) with multiple style keys\nfunction createComponentStyles(styleKeys: Record<string, Record<string, unknown>>) {\n const result: Record<string, unknown> = { useVariants: jest.fn() };\n\n for (const [key, baseStyles] of Object.entries(styleKeys)) {\n result[key] = createStyleObject(baseStyles);\n }\n\n return new Proxy(result, {\n get(target, prop) {\n if (prop === 'useVariants') {\n return jest.fn();\n }\n if (prop in target) {\n return target[prop as keyof typeof target];\n }\n // Return a default style object for any unknown key\n if (typeof prop === 'string') {\n return createStyleObject();\n }\n return undefined;\n },\n });\n}\n\n// Main styles export\nexport const styles = createComponentStyles({\n foundation: defaultFoundation,\n});\n\n// Button styles\nexport const buttonStyles = createComponentStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n gap: 8,\n paddingHorizontal: 16,\n paddingVertical: 10,\n backgroundColor: '#6001D2',\n borderRadius: 8,\n borderWidth: 0,\n borderColor: 'transparent',\n opacity: 1,\n boxShadow: '',\n },\n text: {\n fontFamily: 'YahooProductSans-Medium',\n fontSize: 14,\n letterSpacing: 0,\n lineHeight: 20,\n color: '#FFFFFF',\n },\n icon: {\n fontSize: 16,\n iconSizeToken: 'sm',\n lineHeight: 16,\n color: '#FFFFFF',\n },\n});\n\n// Text styles\nexport const textStyles = createComponentStyles({\n root: {\n fontFamily: 'YahooProductSans-Regular',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n },\n});\n\n// Input styles\nexport const inputStyles = createComponentStyles({\n root: {\n display: 'flex',\n flexDirection: 'column',\n gap: 4,\n },\n label: {\n fontFamily: 'YahooProductSans-Medium',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n },\n inputContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n paddingHorizontal: 12,\n paddingVertical: 10,\n backgroundColor: '#FFFFFF',\n borderRadius: 8,\n borderWidth: 1,\n borderColor: '#E0E0E0',\n },\n input: {\n flex: 1,\n fontFamily: 'YahooProductSans-Regular',\n fontSize: 16,\n lineHeight: 24,\n color: '#000000',\n },\n helperText: {\n fontFamily: 'YahooProductSans-Regular',\n fontSize: 12,\n lineHeight: 16,\n color: '#666666',\n },\n});\n\n// Checkbox styles\nexport const checkboxStyles = createComponentStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n },\n box: {\n width: 20,\n height: 20,\n borderRadius: 4,\n borderWidth: 2,\n borderColor: '#6001D2',\n backgroundColor: 'transparent',\n },\n label: {\n fontFamily: 'YahooProductSans-Regular',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n },\n});\n\n// Switch styles\nexport const switchStyles = createComponentStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n },\n track: {\n width: 48,\n height: 28,\n borderRadius: 14,\n backgroundColor: '#E0E0E0',\n },\n thumb: {\n width: 24,\n height: 24,\n borderRadius: 12,\n backgroundColor: '#FFFFFF',\n },\n label: {\n fontFamily: 'YahooProductSans-Regular',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n },\n});\n\n// Avatar styles\nexport const avatarStyles = createComponentStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: 9999,\n backgroundColor: '#E0E0E0',\n overflow: 'hidden',\n },\n image: {\n width: '100%',\n height: '100%',\n },\n initials: {\n fontFamily: 'YahooProductSans-Medium',\n fontSize: 14,\n color: '#000000',\n },\n});\n\n// Badge styles\nexport const badgeStyles = createComponentStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n paddingHorizontal: 8,\n paddingVertical: 2,\n borderRadius: 4,\n backgroundColor: '#E0E0E0',\n },\n text: {\n fontFamily: 'YahooProductSans-Medium',\n fontSize: 12,\n lineHeight: 16,\n color: '#000000',\n },\n});\n\n// Chip styles\nexport const chipStyles = createComponentStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: 4,\n paddingHorizontal: 12,\n paddingVertical: 6,\n borderRadius: 16,\n backgroundColor: '#F5F5F5',\n borderWidth: 1,\n borderColor: '#E0E0E0',\n },\n text: {\n fontFamily: 'YahooProductSans-Medium',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n },\n});\n\n// Link styles\nexport const linkStyles = createComponentStyles({\n root: {\n flexDirection: 'row',\n alignItems: 'center',\n gap: 4,\n },\n text: {\n fontFamily: 'YahooProductSans-Regular',\n fontSize: 14,\n lineHeight: 20,\n color: '#6001D2',\n textDecorationLine: 'underline',\n },\n});\n\n// Radio styles\nexport const radioStyles = createComponentStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n gap: 8,\n },\n circle: {\n width: 20,\n height: 20,\n borderRadius: 10,\n borderWidth: 2,\n borderColor: '#6001D2',\n backgroundColor: 'transparent',\n },\n dot: {\n width: 10,\n height: 10,\n borderRadius: 5,\n backgroundColor: '#6001D2',\n },\n label: {\n fontFamily: 'YahooProductSans-Regular',\n fontSize: 14,\n lineHeight: 20,\n color: '#000000',\n },\n});\n\n// IconButton styles\nexport const iconButtonStyles = createComponentStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n borderRadius: 8,\n backgroundColor: 'transparent',\n },\n icon: {\n fontSize: 24,\n color: '#000000',\n },\n});\n\n// Type for StyleProps\nexport interface StyleProps {\n color?: string;\n backgroundColor?: string;\n borderColor?: string;\n borderWidth?: number;\n borderRadius?: number;\n [key: string]: unknown;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAUA,MAAM,oBAAoB;CAExB,SAAS;CACT,eAAe;CACf,YAAY;CACZ,gBAAgB;CAEhB,SAAS;CACT,mBAAmB;CACnB,iBAAiB;CACjB,QAAQ;CACR,KAAK;CAEL,iBAAiB;CACjB,OAAO;CACP,aAAa;CAEb,aAAa;CACb,cAAc;CAEd,YAAY;CACZ,UAAU;CACV,YAAY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sBAAsB;CACpD,MAAM;EACJ,SAAS;EACT,YAAY;EACZ,gBAAgB;EAChB,cAAc;EACd,iBAAiB;EAClB;CACD,MAAM;EACJ,UAAU;EACV,OAAO;EACR;CACF,CAAC"}
@@ -0,0 +1,133 @@
1
+ /*! © 2026 Yahoo, Inc. UDS Mobile v0.0.0-development */
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
3
+ const require_runtime = require('../../_virtual/_rolldown/runtime.cjs');
4
+ let react = require("react");
5
+ react = require_runtime.__toESM(react);
6
+ let react_native = require("react-native");
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+
9
+ //#region src/jest/mocks/svg.tsx
10
+ var svg_exports = /* @__PURE__ */ require_runtime.__exportAll({
11
+ Circle: () => Circle,
12
+ ClipPath: () => ClipPath,
13
+ Defs: () => Defs,
14
+ Ellipse: () => Ellipse,
15
+ ForeignObject: () => ForeignObject,
16
+ G: () => G,
17
+ Image: () => SvgImage,
18
+ Line: () => Line,
19
+ LinearGradient: () => LinearGradient,
20
+ Marker: () => Marker,
21
+ Mask: () => Mask,
22
+ Path: () => Path,
23
+ Pattern: () => Pattern,
24
+ Polygon: () => Polygon,
25
+ Polyline: () => Polyline,
26
+ RadialGradient: () => RadialGradient,
27
+ Rect: () => Rect,
28
+ Stop: () => Stop,
29
+ Svg: () => Svg,
30
+ SvgUri: () => SvgUri,
31
+ SvgXml: () => SvgXml,
32
+ Symbol: () => SvgSymbol,
33
+ TSpan: () => TSpan,
34
+ Text: () => SvgText,
35
+ TextPath: () => TextPath,
36
+ Use: () => Use,
37
+ default: () => Svg
38
+ });
39
+ function Svg({ children, testID = "Svg", style, ...props }) {
40
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
41
+ testID,
42
+ style,
43
+ ...props,
44
+ children
45
+ });
46
+ }
47
+ function SvgXml({ xml: _xml, width, height, ...props }) {
48
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
49
+ testID: "SvgXml",
50
+ style: {
51
+ width,
52
+ height
53
+ },
54
+ ...props
55
+ });
56
+ }
57
+ function SvgUri({ uri: _uri, width, height, ...props }) {
58
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
59
+ testID: "SvgUri",
60
+ style: {
61
+ width,
62
+ height
63
+ },
64
+ ...props
65
+ });
66
+ }
67
+ function createShapeComponent(testID) {
68
+ return function ShapeComponent({ children, style }) {
69
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_native.View, {
70
+ testID,
71
+ style,
72
+ children
73
+ });
74
+ };
75
+ }
76
+ const Circle = createShapeComponent("Circle");
77
+ const Rect = createShapeComponent("Rect");
78
+ const Path = createShapeComponent("Path");
79
+ const Line = createShapeComponent("Line");
80
+ const Polygon = createShapeComponent("Polygon");
81
+ const Polyline = createShapeComponent("Polyline");
82
+ const Ellipse = createShapeComponent("Ellipse");
83
+ const SvgText = createShapeComponent("SvgText");
84
+ const TSpan = createShapeComponent("TSpan");
85
+ const TextPath = createShapeComponent("TextPath");
86
+ const G = createShapeComponent("G");
87
+ const Use = createShapeComponent("Use");
88
+ const Defs = createShapeComponent("Defs");
89
+ const ClipPath = createShapeComponent("ClipPath");
90
+ const Mask = createShapeComponent("Mask");
91
+ const LinearGradient = createShapeComponent("LinearGradient");
92
+ const RadialGradient = createShapeComponent("RadialGradient");
93
+ const Stop = createShapeComponent("Stop");
94
+ const Pattern = createShapeComponent("Pattern");
95
+ const SvgSymbol = createShapeComponent("Symbol");
96
+ const SvgImage = createShapeComponent("SvgImage");
97
+ const ForeignObject = createShapeComponent("ForeignObject");
98
+ const Marker = createShapeComponent("Marker");
99
+
100
+ //#endregion
101
+ exports.Circle = Circle;
102
+ exports.ClipPath = ClipPath;
103
+ exports.Defs = Defs;
104
+ exports.Ellipse = Ellipse;
105
+ exports.ForeignObject = ForeignObject;
106
+ exports.G = G;
107
+ exports.Image = SvgImage;
108
+ exports.Line = Line;
109
+ exports.LinearGradient = LinearGradient;
110
+ exports.Marker = Marker;
111
+ exports.Mask = Mask;
112
+ exports.Path = Path;
113
+ exports.Pattern = Pattern;
114
+ exports.Polygon = Polygon;
115
+ exports.Polyline = Polyline;
116
+ exports.RadialGradient = RadialGradient;
117
+ exports.Rect = Rect;
118
+ exports.Stop = Stop;
119
+ exports.Svg = Svg;
120
+ exports.default = Svg;
121
+ exports.SvgUri = SvgUri;
122
+ exports.SvgXml = SvgXml;
123
+ exports.Symbol = SvgSymbol;
124
+ exports.TSpan = TSpan;
125
+ exports.Text = SvgText;
126
+ exports.TextPath = TextPath;
127
+ exports.Use = Use;
128
+ Object.defineProperty(exports, 'svg_exports', {
129
+ enumerable: true,
130
+ get: function () {
131
+ return svg_exports;
132
+ }
133
+ });
@@ -0,0 +1,137 @@
1
+
2
+ import React, { PropsWithChildren } from "react";
3
+
4
+ //#region src/jest/mocks/svg.d.ts
5
+ declare namespace svg_d_exports {
6
+ export { Circle, ClipPath, Defs, Ellipse, ForeignObject, G, SvgImage as Image, Line, LinearGradient, Marker, Mask, Path, Pattern, Polygon, Polyline, RadialGradient, Rect, Stop, Svg, SvgUri, SvgXml, SvgSymbol as Symbol, TSpan, SvgText as Text, TextPath, Use, Svg as default };
7
+ }
8
+ interface SvgProps extends PropsWithChildren {
9
+ width?: number | string;
10
+ height?: number | string;
11
+ viewBox?: string;
12
+ fill?: string;
13
+ stroke?: string;
14
+ style?: object;
15
+ testID?: string;
16
+ }
17
+ declare function Svg({
18
+ children,
19
+ testID,
20
+ style,
21
+ ...props
22
+ }: SvgProps): React.JSX.Element;
23
+ declare function SvgXml({
24
+ xml: _xml,
25
+ width,
26
+ height,
27
+ ...props
28
+ }: {
29
+ xml: string;
30
+ width?: number | string;
31
+ height?: number | string;
32
+ }): React.JSX.Element;
33
+ declare function SvgUri({
34
+ uri: _uri,
35
+ width,
36
+ height,
37
+ ...props
38
+ }: {
39
+ uri: string;
40
+ width?: number | string;
41
+ height?: number | string;
42
+ }): React.JSX.Element;
43
+ declare const Circle: ({
44
+ children,
45
+ style
46
+ }: SvgProps) => React.JSX.Element;
47
+ declare const Rect: ({
48
+ children,
49
+ style
50
+ }: SvgProps) => React.JSX.Element;
51
+ declare const Path: ({
52
+ children,
53
+ style
54
+ }: SvgProps) => React.JSX.Element;
55
+ declare const Line: ({
56
+ children,
57
+ style
58
+ }: SvgProps) => React.JSX.Element;
59
+ declare const Polygon: ({
60
+ children,
61
+ style
62
+ }: SvgProps) => React.JSX.Element;
63
+ declare const Polyline: ({
64
+ children,
65
+ style
66
+ }: SvgProps) => React.JSX.Element;
67
+ declare const Ellipse: ({
68
+ children,
69
+ style
70
+ }: SvgProps) => React.JSX.Element;
71
+ declare const SvgText: ({
72
+ children,
73
+ style
74
+ }: SvgProps) => React.JSX.Element;
75
+ declare const TSpan: ({
76
+ children,
77
+ style
78
+ }: SvgProps) => React.JSX.Element;
79
+ declare const TextPath: ({
80
+ children,
81
+ style
82
+ }: SvgProps) => React.JSX.Element;
83
+ declare const G: ({
84
+ children,
85
+ style
86
+ }: SvgProps) => React.JSX.Element;
87
+ declare const Use: ({
88
+ children,
89
+ style
90
+ }: SvgProps) => React.JSX.Element;
91
+ declare const Defs: ({
92
+ children,
93
+ style
94
+ }: SvgProps) => React.JSX.Element;
95
+ declare const ClipPath: ({
96
+ children,
97
+ style
98
+ }: SvgProps) => React.JSX.Element;
99
+ declare const Mask: ({
100
+ children,
101
+ style
102
+ }: SvgProps) => React.JSX.Element;
103
+ declare const LinearGradient: ({
104
+ children,
105
+ style
106
+ }: SvgProps) => React.JSX.Element;
107
+ declare const RadialGradient: ({
108
+ children,
109
+ style
110
+ }: SvgProps) => React.JSX.Element;
111
+ declare const Stop: ({
112
+ children,
113
+ style
114
+ }: SvgProps) => React.JSX.Element;
115
+ declare const Pattern: ({
116
+ children,
117
+ style
118
+ }: SvgProps) => React.JSX.Element;
119
+ declare const SvgSymbol: ({
120
+ children,
121
+ style
122
+ }: SvgProps) => React.JSX.Element;
123
+ declare const SvgImage: ({
124
+ children,
125
+ style
126
+ }: SvgProps) => React.JSX.Element;
127
+ declare const ForeignObject: ({
128
+ children,
129
+ style
130
+ }: SvgProps) => React.JSX.Element;
131
+ declare const Marker: ({
132
+ children,
133
+ style
134
+ }: SvgProps) => React.JSX.Element;
135
+ //#endregion
136
+ export { Circle, ClipPath, Defs, Ellipse, ForeignObject, G, SvgImage as Image, Line, LinearGradient, Marker, Mask, Path, Pattern, Polygon, Polyline, RadialGradient, Rect, Stop, Svg, Svg as default, SvgUri, SvgXml, SvgSymbol as Symbol, TSpan, SvgText as Text, TextPath, Use, svg_d_exports };
137
+ //# sourceMappingURL=svg.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"svg.d.cts","names":[],"sources":["../../../src/jest/mocks/svg.tsx"],"mappings":";;;;;;;UAYU,QAAA,SAAiB,iBAAA;EACzB,KAAA;EACA,MAAA;EACA,OAAA;EACA,IAAA;EACA,MAAA;EACA,KAAA;EACA,MAAA;AAAA;AAAA,iBAIO,GAAA,CAAA;EAAM,QAAA;EAAU,MAAA;EAAgB,KAAA;EAAA,GAAU;AAAA,GAAS,QAAA,GAAQ,KAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAS3D,MAAA,CAAA;EACP,GAAA,EAAK,IAAA;EACL,KAAA;EACA,MAAA;EAAA,GACG;AAAA;EAEH,GAAA;EACA,KAAA;EACA,MAAA;AAAA,IACD,KAAA,CAAA,GAAA,CAAA,OAAA;AAAA,iBAOQ,MAAA,CAAA;EACP,GAAA,EAAK,IAAA;EACL,KAAA;EACA,MAAA;EAAA,GACG;AAAA;EAEH,GAAA;EACA,KAAA;EACA,MAAA;AAAA,IACD,KAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAkBK,MAAA;EAAM,QAAA;EAAA;AAAA,GAT0C,QAAA,KAAQ,KAAA,CAAA,GAAA,CAAA,OAAA;AAAA,cAUxD,IAAA;EAAI,QAAA;EAAA;AAAA,GAV4C,QAAA,KAAQ,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