@terreno/ui 0.0.14 → 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 (156) hide show
  1. package/README.md +1 -1
  2. package/dist/Card.d.ts +1 -1
  3. package/dist/Card.js +2 -2
  4. package/dist/Card.js.map +1 -1
  5. package/dist/DateUtilities.js +2 -2
  6. package/package.json +1 -1
  7. package/src/ActionSheet.test.tsx +77 -0
  8. package/src/Banner.test.tsx +106 -0
  9. package/src/Body.test.tsx +79 -0
  10. package/src/BooleanField.test.tsx +84 -0
  11. package/src/Button.test.tsx +160 -0
  12. package/src/Card.test.tsx +61 -0
  13. package/src/Card.tsx +1 -2
  14. package/src/CheckBox.test.tsx +53 -0
  15. package/src/CustomSelectField.test.tsx +85 -0
  16. package/src/DataTable.test.tsx +133 -0
  17. package/src/DateTimeActionSheet.test.tsx +16 -0
  18. package/src/DateUtilities.tsx +2 -2
  19. package/src/DecimalRangeActionSheet.test.tsx +46 -0
  20. package/src/DismissButton.test.tsx +49 -0
  21. package/src/EmailField.test.tsx +106 -0
  22. package/src/ErrorBoundary.test.tsx +44 -0
  23. package/src/ErrorPage.test.tsx +44 -0
  24. package/src/Field.test.tsx +128 -0
  25. package/src/Heading.test.tsx +66 -0
  26. package/src/HeightActionSheet.test.tsx +34 -0
  27. package/src/Hyperlink.test.tsx +52 -0
  28. package/src/Icon.test.tsx +61 -0
  29. package/src/IconButton.test.tsx +145 -0
  30. package/src/Image.test.tsx +65 -0
  31. package/src/ImageBackground.test.tsx +46 -0
  32. package/src/InfoModalIcon.test.tsx +54 -0
  33. package/src/InfoTooltipButton.test.tsx +22 -0
  34. package/src/Link.test.tsx +64 -0
  35. package/src/MarkdownView.test.tsx +50 -0
  36. package/src/MobileAddressAutoComplete.test.tsx +15 -0
  37. package/src/Modal.test.tsx +169 -0
  38. package/src/ModalSheet.test.tsx +20 -0
  39. package/src/MultiselectField.test.tsx +134 -0
  40. package/src/NumberField.test.tsx +133 -0
  41. package/src/NumberPickerActionSheet.test.tsx +46 -0
  42. package/src/OpenAPIContext.test.tsx +36 -0
  43. package/src/Page.test.tsx +128 -0
  44. package/src/Pagination.test.tsx +86 -0
  45. package/src/PasswordField.test.tsx +17 -0
  46. package/src/PhoneNumberField.test.tsx +79 -0
  47. package/src/PickerSelect.test.tsx +16 -0
  48. package/src/Radio.test.tsx +30 -0
  49. package/src/RadioField.test.tsx +89 -0
  50. package/src/SectionDivider.test.tsx +17 -0
  51. package/src/SegmentedControl.test.tsx +84 -0
  52. package/src/SelectBadge.test.tsx +103 -0
  53. package/src/SelectField.test.tsx +84 -0
  54. package/src/SideDrawer.test.tsx +99 -0
  55. package/src/Signature.test.tsx +15 -0
  56. package/src/SignatureField.test.tsx +16 -0
  57. package/src/Spinner.test.tsx +74 -0
  58. package/src/SplitPage.test.tsx +15 -0
  59. package/src/TapToEdit.test.tsx +147 -0
  60. package/src/TerrenoProvider.test.tsx +36 -0
  61. package/src/Text.test.tsx +147 -0
  62. package/src/Theme.test.tsx +153 -0
  63. package/src/TimezonePicker.test.tsx +57 -0
  64. package/src/Toast.test.tsx +82 -0
  65. package/src/Tooltip.test.tsx +89 -0
  66. package/src/UnifiedAddressAutoComplete.test.tsx +15 -0
  67. package/src/Utilities.test.tsx +237 -0
  68. package/src/WebAddressAutocomplete.test.tsx +15 -0
  69. package/src/__snapshots__/ActionSheet.test.tsx.snap +889 -0
  70. package/src/__snapshots__/Banner.test.tsx.snap +546 -0
  71. package/src/__snapshots__/Body.test.tsx.snap +685 -0
  72. package/src/__snapshots__/BooleanField.test.tsx.snap +553 -0
  73. package/src/__snapshots__/Button.test.tsx.snap +1281 -0
  74. package/src/__snapshots__/Card.test.tsx.snap +195 -0
  75. package/src/__snapshots__/CheckBox.test.tsx.snap +190 -0
  76. package/src/__snapshots__/CustomSelectField.test.tsx.snap +2299 -0
  77. package/src/__snapshots__/DataTable.test.tsx.snap +9614 -0
  78. package/src/__snapshots__/DecimalRangeActionSheet.test.tsx.snap +1719 -0
  79. package/src/__snapshots__/DismissButton.test.tsx.snap +91 -0
  80. package/src/__snapshots__/EmailField.test.tsx.snap +168 -0
  81. package/src/__snapshots__/ErrorBoundary.test.tsx.snap +57 -0
  82. package/src/__snapshots__/ErrorPage.test.tsx.snap +195 -0
  83. package/src/__snapshots__/Field.test.tsx.snap +4510 -0
  84. package/src/__snapshots__/Heading.test.tsx.snap +193 -0
  85. package/src/__snapshots__/HeightActionSheet.test.tsx.snap +1269 -0
  86. package/src/__snapshots__/Hyperlink.test.tsx.snap +81 -0
  87. package/src/__snapshots__/Icon.test.tsx.snap +47 -0
  88. package/src/__snapshots__/IconButton.test.tsx.snap +29 -0
  89. package/src/__snapshots__/Image.test.tsx.snap +282 -0
  90. package/src/__snapshots__/ImageBackground.test.tsx.snap +120 -0
  91. package/src/__snapshots__/InfoModalIcon.test.tsx.snap +1229 -0
  92. package/src/__snapshots__/InfoTooltipButton.test.tsx.snap +7 -0
  93. package/src/__snapshots__/Link.test.tsx.snap +41 -0
  94. package/src/__snapshots__/MarkdownView.test.tsx.snap +965 -0
  95. package/src/__snapshots__/Modal.test.tsx.snap +1477 -0
  96. package/src/__snapshots__/MultiselectField.test.tsx.snap +1454 -0
  97. package/src/__snapshots__/NumberField.test.tsx.snap +80 -0
  98. package/src/__snapshots__/NumberPickerActionSheet.test.tsx.snap +5359 -0
  99. package/src/__snapshots__/OpenAPIContext.test.tsx.snap +14 -0
  100. package/src/__snapshots__/Page.test.tsx.snap +1647 -0
  101. package/src/__snapshots__/Pagination.test.tsx.snap +1913 -0
  102. package/src/__snapshots__/PasswordField.test.tsx.snap +15 -0
  103. package/src/__snapshots__/PhoneNumberField.test.tsx.snap +405 -0
  104. package/src/__snapshots__/PickerSelect.test.tsx.snap +266 -0
  105. package/src/__snapshots__/Radio.test.tsx.snap +111 -0
  106. package/src/__snapshots__/RadioField.test.tsx.snap +944 -0
  107. package/src/__snapshots__/SectionDivider.test.tsx.snap +37 -0
  108. package/src/__snapshots__/SegmentedControl.test.tsx.snap +1422 -0
  109. package/src/__snapshots__/SelectBadge.test.tsx.snap +2377 -0
  110. package/src/__snapshots__/SelectField.test.tsx.snap +1658 -0
  111. package/src/__snapshots__/SideDrawer.test.tsx.snap +1857 -0
  112. package/src/__snapshots__/SignatureField.test.tsx.snap +133 -0
  113. package/src/__snapshots__/Spinner.test.tsx.snap +73 -0
  114. package/src/__snapshots__/TapToEdit.test.tsx.snap +839 -0
  115. package/src/__snapshots__/TerrenoProvider.test.tsx.snap +203 -0
  116. package/src/__snapshots__/Text.test.tsx.snap +558 -0
  117. package/src/__snapshots__/TimezonePicker.test.tsx.snap +6676 -0
  118. package/src/__snapshots__/Toast.test.tsx.snap +1982 -0
  119. package/src/__snapshots__/Tooltip.test.tsx.snap +456 -0
  120. package/src/bunSetup.ts +101 -8
  121. package/src/fieldElements/FieldError.test.tsx +40 -0
  122. package/src/fieldElements/FieldHelperText.test.tsx +34 -0
  123. package/src/fieldElements/FieldTitle.test.tsx +30 -0
  124. package/src/fieldElements/__snapshots__/FieldError.test.tsx.snap +85 -0
  125. package/src/fieldElements/__snapshots__/FieldHelperText.test.tsx.snap +30 -0
  126. package/src/fieldElements/__snapshots__/FieldTitle.test.tsx.snap +19 -0
  127. package/src/icons/MobileIcon.test.tsx +21 -0
  128. package/src/icons/OfflineIcon.test.tsx +21 -0
  129. package/src/icons/OnlineIcon.test.tsx +21 -0
  130. package/src/icons/OutOfficeIcon.test.tsx +21 -0
  131. package/src/icons/__snapshots__/MobileIcon.test.tsx.snap +160 -0
  132. package/src/icons/__snapshots__/OfflineIcon.test.tsx.snap +133 -0
  133. package/src/icons/__snapshots__/OnlineIcon.test.tsx.snap +124 -0
  134. package/src/icons/__snapshots__/OutOfficeIcon.test.tsx.snap +160 -0
  135. package/src/table/Table.test.tsx +107 -0
  136. package/src/table/TableBadge.test.tsx +53 -0
  137. package/src/table/TableBoolean.test.tsx +38 -0
  138. package/src/table/TableDate.test.tsx +27 -0
  139. package/src/table/TableHeader.test.tsx +67 -0
  140. package/src/table/TableHeaderCell.test.tsx +113 -0
  141. package/src/table/TableIconButton.test.tsx +51 -0
  142. package/src/table/TableNumber.test.tsx +45 -0
  143. package/src/table/TableRow.test.tsx +83 -0
  144. package/src/table/TableText.test.tsx +30 -0
  145. package/src/table/TableTitle.test.tsx +30 -0
  146. package/src/table/__snapshots__/Table.test.tsx.snap +2090 -0
  147. package/src/table/__snapshots__/TableBadge.test.tsx.snap +710 -0
  148. package/src/table/__snapshots__/TableBoolean.test.tsx.snap +231 -0
  149. package/src/table/__snapshots__/TableDate.test.tsx.snap +61 -0
  150. package/src/table/__snapshots__/TableHeader.test.tsx.snap +1089 -0
  151. package/src/table/__snapshots__/TableHeaderCell.test.tsx.snap +1773 -0
  152. package/src/table/__snapshots__/TableIconButton.test.tsx.snap +81 -0
  153. package/src/table/__snapshots__/TableNumber.test.tsx.snap +91 -0
  154. package/src/table/__snapshots__/TableRow.test.tsx.snap +1391 -0
  155. package/src/table/__snapshots__/TableText.test.tsx.snap +73 -0
  156. package/src/table/__snapshots__/TableTitle.test.tsx.snap +109 -0
@@ -0,0 +1,231 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`TableBoolean renders correctly with true value 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ {
8
+ "$$typeof": Symbol(react.test.json),
9
+ "children": null,
10
+ "props": {
11
+ "accessibilityHint": "Checked icon",
12
+ "aria-label": "The checkbox is checked",
13
+ "aria-role": "image",
14
+ "style": {
15
+ "alignItems": "center",
16
+ "backgroundColor": "#DCF2E2",
17
+ "borderRadius": 16,
18
+ "height": 32,
19
+ "justifyContent": "center",
20
+ "width": 32,
21
+ },
22
+ "testID": undefined,
23
+ },
24
+ "type": "View",
25
+ },
26
+ ],
27
+ "props": {
28
+ "style": {
29
+ "alignItems": "center",
30
+ "justifyContent": "center",
31
+ "width": "100%",
32
+ },
33
+ "testID": undefined,
34
+ },
35
+ "type": "View",
36
+ }
37
+ `;
38
+
39
+ exports[`TableBoolean renders correctly with false value 1`] = `
40
+ {
41
+ "$$typeof": Symbol(react.test.json),
42
+ "children": [
43
+ {
44
+ "$$typeof": Symbol(react.test.json),
45
+ "children": null,
46
+ "props": {
47
+ "accessibilityHint": "Unchecked icon",
48
+ "aria-label": "The checkbox is unchecked",
49
+ "aria-role": "image",
50
+ "style": {
51
+ "alignItems": "center",
52
+ "backgroundColor": "transparent",
53
+ "borderRadius": 16,
54
+ "height": 32,
55
+ "justifyContent": "center",
56
+ "width": 32,
57
+ },
58
+ "testID": undefined,
59
+ },
60
+ "type": "View",
61
+ },
62
+ ],
63
+ "props": {
64
+ "style": {
65
+ "alignItems": "center",
66
+ "justifyContent": "center",
67
+ "width": "100%",
68
+ },
69
+ "testID": undefined,
70
+ },
71
+ "type": "View",
72
+ }
73
+ `;
74
+
75
+ exports[`TableBoolean renders check icon for true value 1`] = `
76
+ {
77
+ "$$typeof": Symbol(react.test.json),
78
+ "children": [
79
+ {
80
+ "$$typeof": Symbol(react.test.json),
81
+ "children": null,
82
+ "props": {
83
+ "accessibilityHint": "Checked icon",
84
+ "aria-label": "The checkbox is checked",
85
+ "aria-role": "image",
86
+ "style": {
87
+ "alignItems": "center",
88
+ "backgroundColor": "#DCF2E2",
89
+ "borderRadius": 16,
90
+ "height": 32,
91
+ "justifyContent": "center",
92
+ "width": 32,
93
+ },
94
+ "testID": undefined,
95
+ },
96
+ "type": "View",
97
+ },
98
+ ],
99
+ "props": {
100
+ "style": {
101
+ "alignItems": "center",
102
+ "justifyContent": "center",
103
+ "width": "100%",
104
+ },
105
+ "testID": undefined,
106
+ },
107
+ "type": "View",
108
+ }
109
+ `;
110
+
111
+ exports[`TableBoolean renders x icon for false value 1`] = `
112
+ {
113
+ "$$typeof": Symbol(react.test.json),
114
+ "children": [
115
+ {
116
+ "$$typeof": Symbol(react.test.json),
117
+ "children": null,
118
+ "props": {
119
+ "accessibilityHint": "Unchecked icon",
120
+ "aria-label": "The checkbox is unchecked",
121
+ "aria-role": "image",
122
+ "style": {
123
+ "alignItems": "center",
124
+ "backgroundColor": "transparent",
125
+ "borderRadius": 16,
126
+ "height": 32,
127
+ "justifyContent": "center",
128
+ "width": 32,
129
+ },
130
+ "testID": undefined,
131
+ },
132
+ "type": "View",
133
+ },
134
+ ],
135
+ "props": {
136
+ "style": {
137
+ "alignItems": "center",
138
+ "justifyContent": "center",
139
+ "width": "100%",
140
+ },
141
+ "testID": undefined,
142
+ },
143
+ "type": "View",
144
+ }
145
+ `;
146
+
147
+ exports[`TableBoolean renders editable checkbox when isEditing is true 1`] = `
148
+ {
149
+ "$$typeof": Symbol(react.test.json),
150
+ "children": [
151
+ {
152
+ "$$typeof": Symbol(react.test.json),
153
+ "children": null,
154
+ "props": {
155
+ "style": {
156
+ "alignItems": "center",
157
+ "backgroundColor": "#0A7092",
158
+ "borderColor": "#0A7092",
159
+ "borderRadius": 3,
160
+ "borderWidth": 1,
161
+ "height": 24,
162
+ "justifyContent": "center",
163
+ "width": 24,
164
+ },
165
+ "testID": undefined,
166
+ },
167
+ "type": "View",
168
+ },
169
+ ],
170
+ "props": {
171
+ "accessibilityHint": "Tap to change the checkbox from unchecked to checked",
172
+ "aria-label": "Checkbox is currently checked",
173
+ "aria-role": "checkbox",
174
+ "hitSlop": {
175
+ "bottom": 10,
176
+ "left": 10,
177
+ "right": 10,
178
+ "top": 10,
179
+ },
180
+ "onPress": [Function],
181
+ "style": {
182
+ "alignItems": "center",
183
+ "justifyContent": "center",
184
+ },
185
+ },
186
+ "type": "TouchableOpacity",
187
+ }
188
+ `;
189
+
190
+ exports[`TableBoolean toggles checkbox when pressed in editing mode 1`] = `
191
+ {
192
+ "$$typeof": Symbol(react.test.json),
193
+ "children": [
194
+ {
195
+ "$$typeof": Symbol(react.test.json),
196
+ "children": null,
197
+ "props": {
198
+ "style": {
199
+ "alignItems": "center",
200
+ "backgroundColor": "#0A7092",
201
+ "borderColor": "#0A7092",
202
+ "borderRadius": 3,
203
+ "borderWidth": 1,
204
+ "height": 24,
205
+ "justifyContent": "center",
206
+ "width": 24,
207
+ },
208
+ "testID": undefined,
209
+ },
210
+ "type": "View",
211
+ },
212
+ ],
213
+ "props": {
214
+ "accessibilityHint": "Tap to change the checkbox from unchecked to checked",
215
+ "aria-label": "Checkbox is currently checked",
216
+ "aria-role": "checkbox",
217
+ "hitSlop": {
218
+ "bottom": 10,
219
+ "left": 10,
220
+ "right": 10,
221
+ "top": 10,
222
+ },
223
+ "onPress": [Function],
224
+ "style": {
225
+ "alignItems": "center",
226
+ "justifyContent": "center",
227
+ },
228
+ },
229
+ "type": "TouchableOpacity",
230
+ }
231
+ `;
@@ -0,0 +1,61 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`TableDate renders correctly with ISO string date 1`] = `
4
+ {
5
+ "$$typeof": Symbol(react.test.json),
6
+ "children": [
7
+ "01/15/2024",
8
+ ],
9
+ "props": {
10
+ "style": {
11
+ "fontSize": 16,
12
+ },
13
+ },
14
+ "type": "Text",
15
+ }
16
+ `;
17
+
18
+ exports[`TableDate renders correctly with Date object 1`] = `
19
+ {
20
+ "$$typeof": Symbol(react.test.json),
21
+ "children": [
22
+ "06/19/2024",
23
+ ],
24
+ "props": {
25
+ "style": {
26
+ "fontSize": 16,
27
+ },
28
+ },
29
+ "type": "Text",
30
+ }
31
+ `;
32
+
33
+ exports[`TableDate renders annotated date with relative time 1`] = `
34
+ {
35
+ "$$typeof": Symbol(react.test.json),
36
+ "children": [
37
+ "12/31/2023 (-7 Mo -17 Day)",
38
+ ],
39
+ "props": {
40
+ "style": {
41
+ "fontSize": 16,
42
+ },
43
+ },
44
+ "type": "Text",
45
+ }
46
+ `;
47
+
48
+ exports[`TableDate renders date in MM/dd/yyyy format by default 1`] = `
49
+ {
50
+ "$$typeof": Symbol(react.test.json),
51
+ "children": [
52
+ "03/25/2024",
53
+ ],
54
+ "props": {
55
+ "style": {
56
+ "fontSize": 16,
57
+ },
58
+ },
59
+ "type": "Text",
60
+ }
61
+ `;