@terreno/ui 57.1.0 → 57.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (201) hide show
  1. package/.ai/guidelines/core.md +1 -1
  2. package/README.md +17 -8
  3. package/dist/ActionSheet.d.ts +3 -3
  4. package/dist/ActionSheet.js +2 -2
  5. package/dist/ActionSheet.js.map +1 -1
  6. package/dist/Box.d.ts +1 -1
  7. package/dist/Box.js +219 -177
  8. package/dist/Box.js.map +1 -1
  9. package/dist/Button.js +101 -34
  10. package/dist/Button.js.map +1 -1
  11. package/dist/Common.d.ts +119 -9
  12. package/dist/Common.js.map +1 -1
  13. package/dist/ConsentFormScreen.js +46 -12
  14. package/dist/ConsentFormScreen.js.map +1 -1
  15. package/dist/ConsentNavigator.d.ts +5 -1
  16. package/dist/ConsentNavigator.js.map +1 -1
  17. package/dist/DataTable.d.ts +2 -2
  18. package/dist/DataTable.js +203 -44
  19. package/dist/DataTable.js.map +1 -1
  20. package/dist/DataTableHeaderInfoMarkdown.d.ts +6 -0
  21. package/dist/DataTableHeaderInfoMarkdown.js +7 -0
  22. package/dist/DataTableHeaderInfoMarkdown.js.map +1 -0
  23. package/dist/EmojiSelector.d.ts +2 -46
  24. package/dist/EmojiSelector.js +46 -56
  25. package/dist/EmojiSelector.js.map +1 -1
  26. package/dist/GPTChat.js +1 -1
  27. package/dist/GPTChat.js.map +1 -1
  28. package/dist/Heading.d.ts +5 -2
  29. package/dist/Heading.js +6 -8
  30. package/dist/Heading.js.map +1 -1
  31. package/dist/Hyperlink.js.map +1 -1
  32. package/dist/Icon.d.ts +1 -2
  33. package/dist/Icon.js +4 -1
  34. package/dist/Icon.js.map +1 -1
  35. package/dist/MarkdownView.d.ts +6 -3
  36. package/dist/MarkdownView.js +45 -43
  37. package/dist/MarkdownView.js.map +1 -1
  38. package/dist/MediaQuery.d.ts +5 -3
  39. package/dist/MediaQuery.js +9 -40
  40. package/dist/MediaQuery.js.map +1 -1
  41. package/dist/OpenAPIContext.js +7 -6
  42. package/dist/OpenAPIContext.js.map +1 -1
  43. package/dist/Page.js +7 -1
  44. package/dist/Page.js.map +1 -1
  45. package/dist/PickerSelect.js +8 -1
  46. package/dist/PickerSelect.js.map +1 -1
  47. package/dist/Popover.d.ts +12 -0
  48. package/dist/Popover.js +37 -0
  49. package/dist/Popover.js.map +1 -0
  50. package/dist/PortalHost.js +10 -1
  51. package/dist/PortalHost.js.map +1 -1
  52. package/dist/ResponsiveBreakpoint.d.ts +65 -0
  53. package/dist/ResponsiveBreakpoint.js +111 -0
  54. package/dist/ResponsiveBreakpoint.js.map +1 -0
  55. package/dist/SplitPage.d.ts +2 -2
  56. package/dist/SplitPage.js +7 -12
  57. package/dist/SplitPage.js.map +1 -1
  58. package/dist/SplitPage.native.d.ts +2 -2
  59. package/dist/SplitPage.native.js +1 -6
  60. package/dist/SplitPage.native.js.map +1 -1
  61. package/dist/TapToEdit.js +12 -10
  62. package/dist/TapToEdit.js.map +1 -1
  63. package/dist/TerrenoFontProvider.d.ts +7 -0
  64. package/dist/TerrenoFontProvider.js +27 -0
  65. package/dist/TerrenoFontProvider.js.map +1 -0
  66. package/dist/TerrenoProvider.js +4 -2
  67. package/dist/TerrenoProvider.js.map +1 -1
  68. package/dist/Text.d.ts +5 -2
  69. package/dist/Text.js +6 -11
  70. package/dist/Text.js.map +1 -1
  71. package/dist/TextFieldNumberActionSheet.js +9 -2
  72. package/dist/TextFieldNumberActionSheet.js.map +1 -1
  73. package/dist/Theme.js +10 -8
  74. package/dist/Theme.js.map +1 -1
  75. package/dist/ToastNotifications.d.ts +4 -2
  76. package/dist/ToastNotifications.js.map +1 -1
  77. package/dist/Tooltip.d.ts +4 -3
  78. package/dist/Tooltip.js +14 -3
  79. package/dist/Tooltip.js.map +1 -1
  80. package/dist/Unifier.d.ts +26 -1
  81. package/dist/Unifier.js.map +1 -1
  82. package/dist/WebAddressAutocomplete.js +6 -1
  83. package/dist/WebAddressAutocomplete.js.map +1 -1
  84. package/dist/emojiCategories.d.ts +46 -0
  85. package/dist/emojiCategories.js +47 -0
  86. package/dist/emojiCategories.js.map +1 -0
  87. package/dist/index.d.ts +13 -13
  88. package/dist/index.js +2 -13
  89. package/dist/index.js.map +1 -1
  90. package/dist/lazyBoundaries/createLazyComponentExport.d.ts +6 -0
  91. package/dist/lazyBoundaries/createLazyComponentExport.js +35 -0
  92. package/dist/lazyBoundaries/createLazyComponentExport.js.map +1 -0
  93. package/dist/lazyBoundaries/heavyOptionalExports.d.ts +41 -0
  94. package/dist/lazyBoundaries/heavyOptionalExports.js +43 -0
  95. package/dist/lazyBoundaries/heavyOptionalExports.js.map +1 -0
  96. package/dist/login/LoginScreen.d.ts +1 -0
  97. package/dist/login/LoginScreen.js +4 -2
  98. package/dist/login/LoginScreen.js.map +1 -1
  99. package/dist/login/loginTypes.d.ts +2 -0
  100. package/package.json +41 -2
  101. package/src/AIRequestExplorer.test.tsx +141 -0
  102. package/src/ActionSheet.tsx +9 -7
  103. package/src/AttachmentPreview.test.tsx +80 -0
  104. package/src/Box.test.tsx +97 -10
  105. package/src/Box.tsx +263 -200
  106. package/src/Button.test.tsx +207 -0
  107. package/src/Button.tsx +146 -48
  108. package/src/Common.ts +124 -25
  109. package/src/ConsentFormScreen.markdownGate.test.tsx +129 -0
  110. package/src/ConsentFormScreen.test.tsx +145 -8
  111. package/src/ConsentFormScreen.tsx +74 -25
  112. package/src/ConsentNavigator.tsx +13 -5
  113. package/src/DataTable.tsx +418 -147
  114. package/src/DataTableHeaderInfoMarkdown.test.tsx +21 -0
  115. package/src/DataTableHeaderInfoMarkdown.tsx +17 -0
  116. package/src/DataTableVirtualizationRegression.test.tsx +266 -0
  117. package/src/DateTimeField.test.tsx +54 -0
  118. package/src/EmojiSelector.test.tsx +33 -42
  119. package/src/EmojiSelector.tsx +60 -57
  120. package/src/FilePickerButton.test.tsx +167 -0
  121. package/src/FilterAccordion.test.tsx +37 -0
  122. package/src/FilterBoolean.test.tsx +96 -0
  123. package/src/FilterSelectMenu.test.tsx +23 -0
  124. package/src/GPTChat.test.tsx +696 -0
  125. package/src/GPTChat.tsx +2 -2
  126. package/src/GPTMemoryModal.test.tsx +67 -0
  127. package/src/Heading.tsx +8 -14
  128. package/src/HeightActionSheet.test.tsx +6 -9
  129. package/src/Hyperlink.tsx +5 -18
  130. package/src/Icon.tsx +6 -2
  131. package/src/MarkdownEditor.test.tsx +134 -0
  132. package/src/MarkdownEditorField.test.tsx +124 -0
  133. package/src/MarkdownView.test.tsx +55 -11
  134. package/src/MarkdownView.tsx +149 -150
  135. package/src/MediaQuery.ts +30 -34
  136. package/src/OpenAPIContext.tsx +36 -29
  137. package/src/OpenAPIRenderRegression.test.tsx +200 -0
  138. package/src/P0RenderRegression.test.tsx +214 -0
  139. package/src/P1RenderRegression.test.tsx +141 -0
  140. package/src/P2ButtonRenderRegression.test.tsx +158 -0
  141. package/src/Page.test.tsx +13 -0
  142. package/src/Page.tsx +25 -5
  143. package/src/PickerSelect.test.tsx +38 -0
  144. package/src/PickerSelect.tsx +7 -0
  145. package/src/Popover.test.tsx +151 -0
  146. package/src/Popover.tsx +211 -0
  147. package/src/PortalHost.tsx +12 -6
  148. package/src/ResponsiveBreakpoint.test.tsx +184 -0
  149. package/src/ResponsiveBreakpoint.tsx +195 -0
  150. package/src/RootImportRegression.test.tsx +62 -0
  151. package/src/SplitPage.native.tsx +5 -9
  152. package/src/SplitPage.tsx +16 -19
  153. package/src/TapToEdit.test.tsx +45 -0
  154. package/src/TapToEdit.tsx +23 -18
  155. package/src/TerrenoFontProvider.test.tsx +38 -0
  156. package/src/TerrenoFontProvider.tsx +50 -0
  157. package/src/TerrenoProvider.tsx +6 -1
  158. package/src/Text.tsx +8 -21
  159. package/src/TextFieldNumberActionSheet.test.tsx +100 -0
  160. package/src/TextFieldNumberActionSheet.tsx +11 -2
  161. package/src/Theme.test.tsx +27 -0
  162. package/src/Theme.tsx +15 -10
  163. package/src/Toast.tsx +1 -1
  164. package/src/ToastNotifications.tsx +4 -4
  165. package/src/Tooltip.test.tsx +64 -0
  166. package/src/Tooltip.tsx +18 -4
  167. package/src/Unifier.ts +26 -3
  168. package/src/WebAddressAutocomplete.tsx +6 -2
  169. package/src/__snapshots__/ActionSheet.test.tsx.snap +0 -36
  170. package/src/__snapshots__/AddressField.test.tsx.snap +1 -0
  171. package/src/__snapshots__/AttachmentPreview.test.tsx.snap +225 -0
  172. package/src/__snapshots__/CustomSelectField.test.tsx.snap +7 -0
  173. package/src/__snapshots__/DataTable.test.tsx.snap +793 -250
  174. package/src/__snapshots__/DecimalRangeActionSheet.test.tsx.snap +0 -8
  175. package/src/__snapshots__/EmojiSelector.test.tsx.snap +35555 -30
  176. package/src/__snapshots__/Field.test.tsx.snap +7 -0
  177. package/src/__snapshots__/FilterSelectMenu.test.tsx.snap +1 -0
  178. package/src/__snapshots__/HeightActionSheet.test.tsx.snap +0 -8
  179. package/src/__snapshots__/HeightField.test.tsx.snap +0 -20
  180. package/src/__snapshots__/NumberPickerActionSheet.test.tsx.snap +0 -8
  181. package/src/__snapshots__/Page.test.tsx.snap +13 -1
  182. package/src/__snapshots__/PickerSelect.test.tsx.snap +7 -0
  183. package/src/__snapshots__/SelectField.test.tsx.snap +6 -0
  184. package/src/__snapshots__/TimezonePicker.test.tsx.snap +6 -0
  185. package/src/benchmarks/importGraph.test.ts +71 -0
  186. package/src/benchmarks/importGraph.ts +136 -0
  187. package/src/benchmarks/importTiming.test.ts +42 -0
  188. package/src/benchmarks/importTiming.ts +86 -0
  189. package/src/bunSetup.ts +174 -32
  190. package/src/emojiCategories.test.ts +23 -0
  191. package/src/emojiCategories.ts +46 -0
  192. package/src/index.tsx +27 -13
  193. package/src/lazyBoundaries/createLazyComponentExport.test.tsx +104 -0
  194. package/src/lazyBoundaries/createLazyComponentExport.tsx +63 -0
  195. package/src/lazyBoundaries/heavyOptionalExports.test.tsx +33 -0
  196. package/src/lazyBoundaries/heavyOptionalExports.tsx +106 -0
  197. package/src/login/LoginScreen.test.tsx +9 -2
  198. package/src/login/LoginScreen.tsx +6 -2
  199. package/src/login/loginTypes.ts +2 -0
  200. package/src/table/TableDate.test.tsx +35 -1
  201. package/src/table/__snapshots__/TableBadge.test.tsx.snap +1 -0
@@ -0,0 +1,225 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`AttachmentPreview renders an image preview for image mime types 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": null,
13
+ "props": {
14
+ "source": {
15
+ "uri": "file:///tmp/photo.png",
16
+ },
17
+ "style": {
18
+ "borderRadius": 4,
19
+ "height": 40,
20
+ "width": 40,
21
+ },
22
+ },
23
+ "type": "Image",
24
+ },
25
+ {
26
+ "$$typeof": Symbol(react.test.json),
27
+ "children": [
28
+ {
29
+ "$$typeof": Symbol(react.test.json),
30
+ "children": [
31
+ "photo.png",
32
+ ],
33
+ "props": {
34
+ "numberOfLines": 1,
35
+ "selectable": undefined,
36
+ "style": {
37
+ "color": "#1C1C1C",
38
+ "fontFamily": "text-regular",
39
+ "fontSize": 10,
40
+ "textAlign": "left",
41
+ },
42
+ "testID": undefined,
43
+ },
44
+ "type": "Text",
45
+ },
46
+ ],
47
+ "props": {},
48
+ "type": "View",
49
+ },
50
+ {
51
+ "$$typeof": Symbol(react.test.json),
52
+ "children": [
53
+ {
54
+ "$$typeof": Symbol(react.test.json),
55
+ "children": null,
56
+ "props": {
57
+ "onPointerEnter": [Function: AsyncFunction],
58
+ "onPointerLeave": [Function: AsyncFunction],
59
+ "style": {},
60
+ "testID": undefined,
61
+ },
62
+ "type": "View",
63
+ },
64
+ ],
65
+ "props": {
66
+ "accessibilityHint": "Removes this attachment",
67
+ "aria-label": "Remove photo.png",
68
+ "aria-role": "button",
69
+ "onPress": [Function],
70
+ "style": {
71
+ "alignItems": "center",
72
+ "height": 24.5,
73
+ "justifyContent": "center",
74
+ "width": 24.5,
75
+ },
76
+ },
77
+ "type": "Pressable",
78
+ },
79
+ ],
80
+ "props": {
81
+ "onPointerEnter": [Function: AsyncFunction],
82
+ "onPointerLeave": [Function: AsyncFunction],
83
+ "style": {
84
+ "alignItems": "center",
85
+ "borderColor": "#CDCDCD",
86
+ "borderRadius": 4,
87
+ "borderWidth": 1,
88
+ "display": "flex",
89
+ "flexDirection": "row",
90
+ "gap": 4,
91
+ "padding": 4,
92
+ },
93
+ "testID": undefined,
94
+ },
95
+ "type": "View",
96
+ },
97
+ ],
98
+ "props": {
99
+ "onPointerEnter": [Function: AsyncFunction],
100
+ "onPointerLeave": [Function: AsyncFunction],
101
+ "style": {
102
+ "alignItems": "flex-start",
103
+ "display": "flex",
104
+ "flexDirection": "row",
105
+ "flexWrap": "wrap",
106
+ "gap": 8,
107
+ "padding": 8,
108
+ },
109
+ "testID": "attachment-preview",
110
+ },
111
+ "type": "View",
112
+ }
113
+ `;
114
+
115
+ exports[`AttachmentPreview renders a file icon for non-image mime types 1`] = `
116
+ {
117
+ "$$typeof": Symbol(react.test.json),
118
+ "children": [
119
+ {
120
+ "$$typeof": Symbol(react.test.json),
121
+ "children": [
122
+ {
123
+ "$$typeof": Symbol(react.test.json),
124
+ "children": null,
125
+ "props": {
126
+ "onPointerEnter": [Function: AsyncFunction],
127
+ "onPointerLeave": [Function: AsyncFunction],
128
+ "style": {
129
+ "alignItems": "center",
130
+ "justifyContent": "center",
131
+ "padding": 4,
132
+ },
133
+ "testID": undefined,
134
+ },
135
+ "type": "View",
136
+ },
137
+ {
138
+ "$$typeof": Symbol(react.test.json),
139
+ "children": [
140
+ {
141
+ "$$typeof": Symbol(react.test.json),
142
+ "children": [
143
+ "report.pdf",
144
+ ],
145
+ "props": {
146
+ "numberOfLines": 1,
147
+ "selectable": undefined,
148
+ "style": {
149
+ "color": "#1C1C1C",
150
+ "fontFamily": "text-regular",
151
+ "fontSize": 10,
152
+ "textAlign": "left",
153
+ },
154
+ "testID": undefined,
155
+ },
156
+ "type": "Text",
157
+ },
158
+ ],
159
+ "props": {},
160
+ "type": "View",
161
+ },
162
+ {
163
+ "$$typeof": Symbol(react.test.json),
164
+ "children": [
165
+ {
166
+ "$$typeof": Symbol(react.test.json),
167
+ "children": null,
168
+ "props": {
169
+ "onPointerEnter": [Function: AsyncFunction],
170
+ "onPointerLeave": [Function: AsyncFunction],
171
+ "style": {},
172
+ "testID": undefined,
173
+ },
174
+ "type": "View",
175
+ },
176
+ ],
177
+ "props": {
178
+ "accessibilityHint": "Removes this attachment",
179
+ "aria-label": "Remove report.pdf",
180
+ "aria-role": "button",
181
+ "onPress": [Function],
182
+ "style": {
183
+ "alignItems": "center",
184
+ "height": 24.5,
185
+ "justifyContent": "center",
186
+ "width": 24.5,
187
+ },
188
+ },
189
+ "type": "Pressable",
190
+ },
191
+ ],
192
+ "props": {
193
+ "onPointerEnter": [Function: AsyncFunction],
194
+ "onPointerLeave": [Function: AsyncFunction],
195
+ "style": {
196
+ "alignItems": "center",
197
+ "borderColor": "#CDCDCD",
198
+ "borderRadius": 4,
199
+ "borderWidth": 1,
200
+ "display": "flex",
201
+ "flexDirection": "row",
202
+ "gap": 4,
203
+ "padding": 4,
204
+ },
205
+ "testID": undefined,
206
+ },
207
+ "type": "View",
208
+ },
209
+ ],
210
+ "props": {
211
+ "onPointerEnter": [Function: AsyncFunction],
212
+ "onPointerLeave": [Function: AsyncFunction],
213
+ "style": {
214
+ "alignItems": "flex-start",
215
+ "display": "flex",
216
+ "flexDirection": "row",
217
+ "flexWrap": "wrap",
218
+ "gap": 8,
219
+ "padding": 8,
220
+ },
221
+ "testID": "attachment-preview",
222
+ },
223
+ "type": "View",
224
+ }
225
+ `;
@@ -31,6 +31,7 @@ exports[`CustomSelectField renders correctly with default props 1`] = `
31
31
  "flex": 1,
32
32
  "fontFamily": "text",
33
33
  "fontSize": 16,
34
+ "minWidth": 0,
34
35
  "paddingRight": 8,
35
36
  },
36
37
  "testID": "text_input",
@@ -465,6 +466,7 @@ exports[`CustomSelectField renders with title 1`] = `
465
466
  "flex": 1,
466
467
  "fontFamily": "text",
467
468
  "fontSize": 16,
469
+ "minWidth": 0,
468
470
  "paddingRight": 8,
469
471
  },
470
472
  "testID": "text_input",
@@ -884,6 +886,7 @@ exports[`CustomSelectField renders with placeholder 1`] = `
884
886
  "flex": 1,
885
887
  "fontFamily": "text",
886
888
  "fontSize": 16,
889
+ "minWidth": 0,
887
890
  "paddingRight": 8,
888
891
  },
889
892
  "testID": "text_input",
@@ -1303,6 +1306,7 @@ exports[`CustomSelectField renders with selected value 1`] = `
1303
1306
  "flex": 1,
1304
1307
  "fontFamily": "text",
1305
1308
  "fontSize": 16,
1309
+ "minWidth": 0,
1306
1310
  "paddingRight": 8,
1307
1311
  },
1308
1312
  "testID": "text_input",
@@ -1722,6 +1726,7 @@ exports[`CustomSelectField renders with custom value (not in options) 1`] = `
1722
1726
  "flex": 1,
1723
1727
  "fontFamily": "text",
1724
1728
  "fontSize": 16,
1729
+ "minWidth": 0,
1725
1730
  "paddingRight": 8,
1726
1731
  },
1727
1732
  "testID": "text_input",
@@ -2245,6 +2250,7 @@ exports[`CustomSelectField renders disabled state 1`] = `
2245
2250
  "flex": 1,
2246
2251
  "fontFamily": "text",
2247
2252
  "fontSize": 16,
2253
+ "minWidth": 0,
2248
2254
  "paddingRight": 8,
2249
2255
  },
2250
2256
  "testID": "text_input",
@@ -2666,6 +2672,7 @@ exports[`CustomSelectField includes custom option in dropdown 1`] = `
2666
2672
  "flex": 1,
2667
2673
  "fontFamily": "text",
2668
2674
  "fontSize": 16,
2675
+ "minWidth": 0,
2669
2676
  "paddingRight": 8,
2670
2677
  },
2671
2678
  "testID": "text_input",