@terreno/ui 0.0.15 → 0.0.16

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 (151) hide show
  1. package/dist/DateUtilities.js +2 -2
  2. package/package.json +1 -1
  3. package/src/ActionSheet.test.tsx +77 -0
  4. package/src/Banner.test.tsx +106 -0
  5. package/src/Body.test.tsx +79 -0
  6. package/src/BooleanField.test.tsx +84 -0
  7. package/src/Button.test.tsx +160 -0
  8. package/src/Card.test.tsx +61 -0
  9. package/src/CheckBox.test.tsx +53 -0
  10. package/src/CustomSelectField.test.tsx +85 -0
  11. package/src/DataTable.test.tsx +133 -0
  12. package/src/DateTimeActionSheet.test.tsx +16 -0
  13. package/src/DateUtilities.tsx +2 -2
  14. package/src/DecimalRangeActionSheet.test.tsx +46 -0
  15. package/src/DismissButton.test.tsx +49 -0
  16. package/src/EmailField.test.tsx +106 -0
  17. package/src/ErrorBoundary.test.tsx +44 -0
  18. package/src/ErrorPage.test.tsx +44 -0
  19. package/src/Field.test.tsx +128 -0
  20. package/src/Heading.test.tsx +66 -0
  21. package/src/HeightActionSheet.test.tsx +34 -0
  22. package/src/Hyperlink.test.tsx +52 -0
  23. package/src/Icon.test.tsx +61 -0
  24. package/src/IconButton.test.tsx +145 -0
  25. package/src/Image.test.tsx +65 -0
  26. package/src/ImageBackground.test.tsx +46 -0
  27. package/src/InfoModalIcon.test.tsx +54 -0
  28. package/src/InfoTooltipButton.test.tsx +22 -0
  29. package/src/Link.test.tsx +64 -0
  30. package/src/MarkdownView.test.tsx +50 -0
  31. package/src/MobileAddressAutoComplete.test.tsx +15 -0
  32. package/src/Modal.test.tsx +169 -0
  33. package/src/ModalSheet.test.tsx +20 -0
  34. package/src/MultiselectField.test.tsx +134 -0
  35. package/src/NumberField.test.tsx +133 -0
  36. package/src/NumberPickerActionSheet.test.tsx +46 -0
  37. package/src/OpenAPIContext.test.tsx +36 -0
  38. package/src/Page.test.tsx +128 -0
  39. package/src/Pagination.test.tsx +86 -0
  40. package/src/PasswordField.test.tsx +17 -0
  41. package/src/PhoneNumberField.test.tsx +79 -0
  42. package/src/PickerSelect.test.tsx +16 -0
  43. package/src/Radio.test.tsx +30 -0
  44. package/src/RadioField.test.tsx +89 -0
  45. package/src/SectionDivider.test.tsx +17 -0
  46. package/src/SegmentedControl.test.tsx +84 -0
  47. package/src/SelectBadge.test.tsx +103 -0
  48. package/src/SelectField.test.tsx +84 -0
  49. package/src/SideDrawer.test.tsx +99 -0
  50. package/src/Signature.test.tsx +15 -0
  51. package/src/SignatureField.test.tsx +16 -0
  52. package/src/Spinner.test.tsx +74 -0
  53. package/src/SplitPage.test.tsx +15 -0
  54. package/src/TapToEdit.test.tsx +147 -0
  55. package/src/TerrenoProvider.test.tsx +36 -0
  56. package/src/Text.test.tsx +147 -0
  57. package/src/Theme.test.tsx +153 -0
  58. package/src/TimezonePicker.test.tsx +57 -0
  59. package/src/Toast.test.tsx +82 -0
  60. package/src/Tooltip.test.tsx +89 -0
  61. package/src/UnifiedAddressAutoComplete.test.tsx +15 -0
  62. package/src/Utilities.test.tsx +237 -0
  63. package/src/WebAddressAutocomplete.test.tsx +15 -0
  64. package/src/__snapshots__/ActionSheet.test.tsx.snap +889 -0
  65. package/src/__snapshots__/Banner.test.tsx.snap +546 -0
  66. package/src/__snapshots__/Body.test.tsx.snap +685 -0
  67. package/src/__snapshots__/BooleanField.test.tsx.snap +553 -0
  68. package/src/__snapshots__/Button.test.tsx.snap +1281 -0
  69. package/src/__snapshots__/Card.test.tsx.snap +195 -0
  70. package/src/__snapshots__/CheckBox.test.tsx.snap +190 -0
  71. package/src/__snapshots__/CustomSelectField.test.tsx.snap +2299 -0
  72. package/src/__snapshots__/DataTable.test.tsx.snap +9614 -0
  73. package/src/__snapshots__/DecimalRangeActionSheet.test.tsx.snap +1719 -0
  74. package/src/__snapshots__/DismissButton.test.tsx.snap +91 -0
  75. package/src/__snapshots__/EmailField.test.tsx.snap +168 -0
  76. package/src/__snapshots__/ErrorBoundary.test.tsx.snap +57 -0
  77. package/src/__snapshots__/ErrorPage.test.tsx.snap +195 -0
  78. package/src/__snapshots__/Field.test.tsx.snap +4510 -0
  79. package/src/__snapshots__/Heading.test.tsx.snap +193 -0
  80. package/src/__snapshots__/HeightActionSheet.test.tsx.snap +1269 -0
  81. package/src/__snapshots__/Hyperlink.test.tsx.snap +81 -0
  82. package/src/__snapshots__/Icon.test.tsx.snap +47 -0
  83. package/src/__snapshots__/IconButton.test.tsx.snap +29 -0
  84. package/src/__snapshots__/Image.test.tsx.snap +282 -0
  85. package/src/__snapshots__/ImageBackground.test.tsx.snap +120 -0
  86. package/src/__snapshots__/InfoModalIcon.test.tsx.snap +1229 -0
  87. package/src/__snapshots__/InfoTooltipButton.test.tsx.snap +7 -0
  88. package/src/__snapshots__/Link.test.tsx.snap +41 -0
  89. package/src/__snapshots__/MarkdownView.test.tsx.snap +965 -0
  90. package/src/__snapshots__/Modal.test.tsx.snap +1477 -0
  91. package/src/__snapshots__/MultiselectField.test.tsx.snap +1454 -0
  92. package/src/__snapshots__/NumberField.test.tsx.snap +80 -0
  93. package/src/__snapshots__/NumberPickerActionSheet.test.tsx.snap +5359 -0
  94. package/src/__snapshots__/OpenAPIContext.test.tsx.snap +14 -0
  95. package/src/__snapshots__/Page.test.tsx.snap +1647 -0
  96. package/src/__snapshots__/Pagination.test.tsx.snap +1913 -0
  97. package/src/__snapshots__/PasswordField.test.tsx.snap +15 -0
  98. package/src/__snapshots__/PhoneNumberField.test.tsx.snap +405 -0
  99. package/src/__snapshots__/PickerSelect.test.tsx.snap +266 -0
  100. package/src/__snapshots__/Radio.test.tsx.snap +111 -0
  101. package/src/__snapshots__/RadioField.test.tsx.snap +944 -0
  102. package/src/__snapshots__/SectionDivider.test.tsx.snap +37 -0
  103. package/src/__snapshots__/SegmentedControl.test.tsx.snap +1422 -0
  104. package/src/__snapshots__/SelectBadge.test.tsx.snap +2377 -0
  105. package/src/__snapshots__/SelectField.test.tsx.snap +1658 -0
  106. package/src/__snapshots__/SideDrawer.test.tsx.snap +1857 -0
  107. package/src/__snapshots__/SignatureField.test.tsx.snap +133 -0
  108. package/src/__snapshots__/Spinner.test.tsx.snap +73 -0
  109. package/src/__snapshots__/TapToEdit.test.tsx.snap +839 -0
  110. package/src/__snapshots__/TerrenoProvider.test.tsx.snap +203 -0
  111. package/src/__snapshots__/Text.test.tsx.snap +558 -0
  112. package/src/__snapshots__/TimezonePicker.test.tsx.snap +6676 -0
  113. package/src/__snapshots__/Toast.test.tsx.snap +1982 -0
  114. package/src/__snapshots__/Tooltip.test.tsx.snap +456 -0
  115. package/src/bunSetup.ts +101 -8
  116. package/src/fieldElements/FieldError.test.tsx +40 -0
  117. package/src/fieldElements/FieldHelperText.test.tsx +34 -0
  118. package/src/fieldElements/FieldTitle.test.tsx +30 -0
  119. package/src/fieldElements/__snapshots__/FieldError.test.tsx.snap +85 -0
  120. package/src/fieldElements/__snapshots__/FieldHelperText.test.tsx.snap +30 -0
  121. package/src/fieldElements/__snapshots__/FieldTitle.test.tsx.snap +19 -0
  122. package/src/icons/MobileIcon.test.tsx +21 -0
  123. package/src/icons/OfflineIcon.test.tsx +21 -0
  124. package/src/icons/OnlineIcon.test.tsx +21 -0
  125. package/src/icons/OutOfficeIcon.test.tsx +21 -0
  126. package/src/icons/__snapshots__/MobileIcon.test.tsx.snap +160 -0
  127. package/src/icons/__snapshots__/OfflineIcon.test.tsx.snap +133 -0
  128. package/src/icons/__snapshots__/OnlineIcon.test.tsx.snap +124 -0
  129. package/src/icons/__snapshots__/OutOfficeIcon.test.tsx.snap +160 -0
  130. package/src/table/Table.test.tsx +107 -0
  131. package/src/table/TableBadge.test.tsx +53 -0
  132. package/src/table/TableBoolean.test.tsx +38 -0
  133. package/src/table/TableDate.test.tsx +27 -0
  134. package/src/table/TableHeader.test.tsx +67 -0
  135. package/src/table/TableHeaderCell.test.tsx +113 -0
  136. package/src/table/TableIconButton.test.tsx +51 -0
  137. package/src/table/TableNumber.test.tsx +45 -0
  138. package/src/table/TableRow.test.tsx +83 -0
  139. package/src/table/TableText.test.tsx +30 -0
  140. package/src/table/TableTitle.test.tsx +30 -0
  141. package/src/table/__snapshots__/Table.test.tsx.snap +2090 -0
  142. package/src/table/__snapshots__/TableBadge.test.tsx.snap +710 -0
  143. package/src/table/__snapshots__/TableBoolean.test.tsx.snap +231 -0
  144. package/src/table/__snapshots__/TableDate.test.tsx.snap +61 -0
  145. package/src/table/__snapshots__/TableHeader.test.tsx.snap +1089 -0
  146. package/src/table/__snapshots__/TableHeaderCell.test.tsx.snap +1773 -0
  147. package/src/table/__snapshots__/TableIconButton.test.tsx.snap +81 -0
  148. package/src/table/__snapshots__/TableNumber.test.tsx.snap +91 -0
  149. package/src/table/__snapshots__/TableRow.test.tsx.snap +1391 -0
  150. package/src/table/__snapshots__/TableText.test.tsx.snap +73 -0
  151. package/src/table/__snapshots__/TableTitle.test.tsx.snap +109 -0
@@ -0,0 +1,81 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`Hyperlink renders correctly with default props 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ {
8
+ "$$typeof": Symbol(react.test.json),
9
+ "children": [
10
+ "Hello world",
11
+ ],
12
+ "props": {
13
+ "style": undefined,
14
+ },
15
+ "type": "Text",
16
+ },
17
+ ],
18
+ "props": {},
19
+ "type": "View",
20
+ }
21
+ `;
22
+
23
+ exports[`Hyperlink renders text with URLs 1`] = `
24
+ {
25
+ "$$typeof": Symbol(react.test.json),
26
+ "children": [
27
+ {
28
+ "$$typeof": Symbol(react.test.json),
29
+ "children": [
30
+ "Check out https://example.com for more info",
31
+ ],
32
+ "props": {
33
+ "style": undefined,
34
+ },
35
+ "type": "Text",
36
+ },
37
+ ],
38
+ "props": {},
39
+ "type": "View",
40
+ }
41
+ `;
42
+
43
+ exports[`Hyperlink renders with custom link style 1`] = `
44
+ {
45
+ "$$typeof": Symbol(react.test.json),
46
+ "children": [
47
+ {
48
+ "$$typeof": Symbol(react.test.json),
49
+ "children": [
50
+ "Visit https://example.com",
51
+ ],
52
+ "props": {
53
+ "style": undefined,
54
+ },
55
+ "type": "Text",
56
+ },
57
+ ],
58
+ "props": {},
59
+ "type": "View",
60
+ }
61
+ `;
62
+
63
+ exports[`Hyperlink renders plain text without linkDefault 1`] = `
64
+ {
65
+ "$$typeof": Symbol(react.test.json),
66
+ "children": [
67
+ {
68
+ "$$typeof": Symbol(react.test.json),
69
+ "children": [
70
+ "No links here https://example.com",
71
+ ],
72
+ "props": {
73
+ "style": undefined,
74
+ },
75
+ "type": "Text",
76
+ },
77
+ ],
78
+ "props": {},
79
+ "type": "View",
80
+ }
81
+ `;
@@ -0,0 +1,47 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`Icon renders correctly with default props 1`] = `null`;
4
+
5
+ exports[`Icon renders with testID 1`] = `null`;
6
+
7
+ exports[`Icon renders with different sizes 1`] = `null`;
8
+
9
+ exports[`Icon renders with different sizes 2`] = `null`;
10
+
11
+ exports[`Icon renders with different sizes 3`] = `null`;
12
+
13
+ exports[`Icon renders with different sizes 4`] = `null`;
14
+
15
+ exports[`Icon renders with different sizes 5`] = `null`;
16
+
17
+ exports[`Icon renders with different sizes 6`] = `null`;
18
+
19
+ exports[`Icon renders with different colors 1`] = `null`;
20
+
21
+ exports[`Icon renders with different colors 2`] = `null`;
22
+
23
+ exports[`Icon renders with different colors 3`] = `null`;
24
+
25
+ exports[`Icon renders with different colors 4`] = `null`;
26
+
27
+ exports[`Icon renders with different colors 5`] = `null`;
28
+
29
+ exports[`Icon renders with solid type (default) 1`] = `null`;
30
+
31
+ exports[`Icon renders with regular type 1`] = `null`;
32
+
33
+ exports[`Icon renders with light type 1`] = `null`;
34
+
35
+ exports[`Icon renders with brand type 1`] = `null`;
36
+
37
+ exports[`Icon renders different icon names 1`] = `null`;
38
+
39
+ exports[`Icon renders different icon names 2`] = `null`;
40
+
41
+ exports[`Icon renders different icon names 3`] = `null`;
42
+
43
+ exports[`Icon renders different icon names 4`] = `null`;
44
+
45
+ exports[`Icon renders different icon names 5`] = `null`;
46
+
47
+ exports[`Icon renders different icon names 6`] = `null`;
@@ -0,0 +1,29 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`IconButton renders correctly with default props 1`] = `null`;
4
+
5
+ exports[`IconButton renders with testID 1`] = `null`;
6
+
7
+ exports[`IconButton renders primary variant (default) 1`] = `null`;
8
+
9
+ exports[`IconButton renders secondary variant 1`] = `null`;
10
+
11
+ exports[`IconButton renders muted variant 1`] = `null`;
12
+
13
+ exports[`IconButton renders navigation variant 1`] = `null`;
14
+
15
+ exports[`IconButton renders destructive variant 1`] = `null`;
16
+
17
+ exports[`IconButton renders disabled state 1`] = `null`;
18
+
19
+ exports[`IconButton renders loading state 1`] = `null`;
20
+
21
+ exports[`IconButton renders with indicator 1`] = `null`;
22
+
23
+ exports[`IconButton renders with indicator and text 1`] = `null`;
24
+
25
+ exports[`IconButton calls onClick when pressed 1`] = `null`;
26
+
27
+ exports[`IconButton has correct accessibility props 1`] = `null`;
28
+
29
+ exports[`IconButton renders with confirmation props 1`] = `null`;
@@ -0,0 +1,282 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`Image renders correctly with naturalWidth 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ {
8
+ "$$typeof": Symbol(react.test.json),
9
+ "children": null,
10
+ "props": {
11
+ "resizeMode": undefined,
12
+ "source": {
13
+ "cache": "force-cache",
14
+ "uri": "https://example.com/image.jpg",
15
+ },
16
+ "style": {
17
+ "height": 200,
18
+ "maxHeight": undefined,
19
+ "maxWidth": undefined,
20
+ "width": 200,
21
+ },
22
+ },
23
+ "type": "Image",
24
+ },
25
+ ],
26
+ "props": {
27
+ "onPointerEnter": [Function: AsyncFunction],
28
+ "onPointerLeave": [Function: AsyncFunction],
29
+ "style": {
30
+ "backgroundColor": undefined,
31
+ },
32
+ "testID": undefined,
33
+ },
34
+ "type": "View",
35
+ }
36
+ `;
37
+
38
+ exports[`Image renders correctly with fullWidth 1`] = `
39
+ {
40
+ "$$typeof": Symbol(react.test.json),
41
+ "children": [
42
+ {
43
+ "$$typeof": Symbol(react.test.json),
44
+ "children": null,
45
+ "props": {
46
+ "resizeMode": undefined,
47
+ "source": {
48
+ "cache": "force-cache",
49
+ "uri": "https://example.com/image.jpg",
50
+ },
51
+ "style": {
52
+ "height": 210.9375,
53
+ "maxHeight": undefined,
54
+ "maxWidth": undefined,
55
+ "width": 375,
56
+ },
57
+ },
58
+ "type": "Image",
59
+ },
60
+ ],
61
+ "props": {
62
+ "onPointerEnter": [Function: AsyncFunction],
63
+ "onPointerLeave": [Function: AsyncFunction],
64
+ "style": {
65
+ "backgroundColor": undefined,
66
+ },
67
+ "testID": undefined,
68
+ },
69
+ "type": "View",
70
+ }
71
+ `;
72
+
73
+ exports[`Image renders with cover fit mode 1`] = `
74
+ {
75
+ "$$typeof": Symbol(react.test.json),
76
+ "children": [
77
+ {
78
+ "$$typeof": Symbol(react.test.json),
79
+ "children": null,
80
+ "props": {
81
+ "resizeMode": "cover",
82
+ "source": {
83
+ "cache": "force-cache",
84
+ "uri": "https://example.com/image.jpg",
85
+ },
86
+ "style": {
87
+ "height": 200,
88
+ "maxHeight": undefined,
89
+ "maxWidth": undefined,
90
+ "width": 200,
91
+ },
92
+ },
93
+ "type": "Image",
94
+ },
95
+ ],
96
+ "props": {
97
+ "onPointerEnter": [Function: AsyncFunction],
98
+ "onPointerLeave": [Function: AsyncFunction],
99
+ "style": {
100
+ "backgroundColor": undefined,
101
+ },
102
+ "testID": undefined,
103
+ },
104
+ "type": "View",
105
+ }
106
+ `;
107
+
108
+ exports[`Image renders with contain fit mode 1`] = `
109
+ {
110
+ "$$typeof": Symbol(react.test.json),
111
+ "children": [
112
+ {
113
+ "$$typeof": Symbol(react.test.json),
114
+ "children": null,
115
+ "props": {
116
+ "resizeMode": "contain",
117
+ "source": {
118
+ "cache": "force-cache",
119
+ "uri": "https://example.com/image.jpg",
120
+ },
121
+ "style": {
122
+ "height": 200,
123
+ "maxHeight": undefined,
124
+ "maxWidth": undefined,
125
+ "width": 200,
126
+ },
127
+ },
128
+ "type": "Image",
129
+ },
130
+ ],
131
+ "props": {
132
+ "onPointerEnter": [Function: AsyncFunction],
133
+ "onPointerLeave": [Function: AsyncFunction],
134
+ "style": {
135
+ "backgroundColor": undefined,
136
+ },
137
+ "testID": undefined,
138
+ },
139
+ "type": "View",
140
+ }
141
+ `;
142
+
143
+ exports[`Image renders with none fit mode 1`] = `
144
+ {
145
+ "$$typeof": Symbol(react.test.json),
146
+ "children": [
147
+ {
148
+ "$$typeof": Symbol(react.test.json),
149
+ "children": null,
150
+ "props": {
151
+ "resizeMode": undefined,
152
+ "source": {
153
+ "cache": "force-cache",
154
+ "uri": "https://example.com/image.jpg",
155
+ },
156
+ "style": {
157
+ "height": 200,
158
+ "maxHeight": undefined,
159
+ "maxWidth": undefined,
160
+ "width": 200,
161
+ },
162
+ },
163
+ "type": "Image",
164
+ },
165
+ ],
166
+ "props": {
167
+ "onPointerEnter": [Function: AsyncFunction],
168
+ "onPointerLeave": [Function: AsyncFunction],
169
+ "style": {
170
+ "backgroundColor": undefined,
171
+ },
172
+ "testID": undefined,
173
+ },
174
+ "type": "View",
175
+ }
176
+ `;
177
+
178
+ exports[`Image renders with maxWidth and maxHeight 1`] = `
179
+ {
180
+ "$$typeof": Symbol(react.test.json),
181
+ "children": [
182
+ {
183
+ "$$typeof": Symbol(react.test.json),
184
+ "children": null,
185
+ "props": {
186
+ "resizeMode": undefined,
187
+ "source": {
188
+ "cache": "force-cache",
189
+ "uri": "https://example.com/image.jpg",
190
+ },
191
+ "style": {
192
+ "height": 200,
193
+ "maxHeight": 300,
194
+ "maxWidth": 400,
195
+ "width": 200,
196
+ },
197
+ },
198
+ "type": "Image",
199
+ },
200
+ ],
201
+ "props": {
202
+ "onPointerEnter": [Function: AsyncFunction],
203
+ "onPointerLeave": [Function: AsyncFunction],
204
+ "style": {
205
+ "backgroundColor": undefined,
206
+ },
207
+ "testID": undefined,
208
+ },
209
+ "type": "View",
210
+ }
211
+ `;
212
+
213
+ exports[`Image renders with background color 1`] = `
214
+ {
215
+ "$$typeof": Symbol(react.test.json),
216
+ "children": [
217
+ {
218
+ "$$typeof": Symbol(react.test.json),
219
+ "children": null,
220
+ "props": {
221
+ "resizeMode": undefined,
222
+ "source": {
223
+ "cache": "force-cache",
224
+ "uri": "https://example.com/image.jpg",
225
+ },
226
+ "style": {
227
+ "height": 200,
228
+ "maxHeight": undefined,
229
+ "maxWidth": undefined,
230
+ "width": 200,
231
+ },
232
+ },
233
+ "type": "Image",
234
+ },
235
+ ],
236
+ "props": {
237
+ "onPointerEnter": [Function: AsyncFunction],
238
+ "onPointerLeave": [Function: AsyncFunction],
239
+ "style": {
240
+ "backgroundColor": undefined,
241
+ },
242
+ "testID": undefined,
243
+ },
244
+ "type": "View",
245
+ }
246
+ `;
247
+
248
+ exports[`Image renders with custom style 1`] = `
249
+ {
250
+ "$$typeof": Symbol(react.test.json),
251
+ "children": [
252
+ {
253
+ "$$typeof": Symbol(react.test.json),
254
+ "children": null,
255
+ "props": {
256
+ "resizeMode": undefined,
257
+ "source": {
258
+ "cache": "force-cache",
259
+ "uri": "https://example.com/image.jpg",
260
+ },
261
+ "style": {
262
+ "borderRadius": 10,
263
+ "height": 200,
264
+ "maxHeight": undefined,
265
+ "maxWidth": undefined,
266
+ "width": 200,
267
+ },
268
+ },
269
+ "type": "Image",
270
+ },
271
+ ],
272
+ "props": {
273
+ "onPointerEnter": [Function: AsyncFunction],
274
+ "onPointerLeave": [Function: AsyncFunction],
275
+ "style": {
276
+ "backgroundColor": undefined,
277
+ },
278
+ "testID": undefined,
279
+ },
280
+ "type": "View",
281
+ }
282
+ `;
@@ -0,0 +1,120 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`ImageBackground renders correctly with source 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ {
8
+ "$$typeof": Symbol(react.test.json),
9
+ "children": [
10
+ {
11
+ "$$typeof": Symbol(react.test.json),
12
+ "children": [
13
+ "Content over image",
14
+ ],
15
+ "props": {
16
+ "numberOfLines": 0,
17
+ "selectable": undefined,
18
+ "style": {
19
+ "color": "#1C1C1C",
20
+ "fontFamily": "text-regular",
21
+ "fontSize": 14,
22
+ "textAlign": "left",
23
+ },
24
+ "testID": undefined,
25
+ },
26
+ "type": "Text",
27
+ },
28
+ ],
29
+ "props": {},
30
+ "type": "View",
31
+ },
32
+ ],
33
+ "props": {
34
+ "source": {
35
+ "uri": "https://example.com/image.jpg",
36
+ },
37
+ },
38
+ "type": "ImageBackground",
39
+ }
40
+ `;
41
+
42
+ exports[`ImageBackground renders with custom style 1`] = `
43
+ {
44
+ "$$typeof": Symbol(react.test.json),
45
+ "children": [
46
+ {
47
+ "$$typeof": Symbol(react.test.json),
48
+ "children": [
49
+ {
50
+ "$$typeof": Symbol(react.test.json),
51
+ "children": [
52
+ "Styled content",
53
+ ],
54
+ "props": {
55
+ "numberOfLines": 0,
56
+ "selectable": undefined,
57
+ "style": {
58
+ "color": "#1C1C1C",
59
+ "fontFamily": "text-regular",
60
+ "fontSize": 14,
61
+ "textAlign": "left",
62
+ },
63
+ "testID": undefined,
64
+ },
65
+ "type": "Text",
66
+ },
67
+ ],
68
+ "props": {},
69
+ "type": "View",
70
+ },
71
+ ],
72
+ "props": {
73
+ "source": {
74
+ "uri": "https://example.com/image.jpg",
75
+ },
76
+ "style": {
77
+ "height": 200,
78
+ "width": "100%",
79
+ },
80
+ },
81
+ "type": "ImageBackground",
82
+ }
83
+ `;
84
+
85
+ exports[`ImageBackground renders with local image source 1`] = `
86
+ {
87
+ "$$typeof": Symbol(react.test.json),
88
+ "children": [
89
+ {
90
+ "$$typeof": Symbol(react.test.json),
91
+ "children": [
92
+ {
93
+ "$$typeof": Symbol(react.test.json),
94
+ "children": [
95
+ "Local image",
96
+ ],
97
+ "props": {
98
+ "numberOfLines": 0,
99
+ "selectable": undefined,
100
+ "style": {
101
+ "color": "#1C1C1C",
102
+ "fontFamily": "text-regular",
103
+ "fontSize": 14,
104
+ "textAlign": "left",
105
+ },
106
+ "testID": undefined,
107
+ },
108
+ "type": "Text",
109
+ },
110
+ ],
111
+ "props": {},
112
+ "type": "View",
113
+ },
114
+ ],
115
+ "props": {
116
+ "source": Module {},
117
+ },
118
+ "type": "ImageBackground",
119
+ }
120
+ `;