@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,203 @@
1
+ // Bun Snapshot v1, https://bun.sh/docs/test/snapshots
2
+
3
+ exports[`TerrenoProvider renders correctly with default props 1`] = `
4
+ [
5
+ {
6
+ "$$typeof": Symbol(react.test.json),
7
+ "children": [
8
+ {
9
+ "$$typeof": Symbol(react.test.json),
10
+ "children": [
11
+ {
12
+ "$$typeof": Symbol(react.test.json),
13
+ "children": [
14
+ "App content",
15
+ ],
16
+ "props": {
17
+ "style": undefined,
18
+ },
19
+ "type": "Text",
20
+ },
21
+ ],
22
+ "props": {
23
+ "style": undefined,
24
+ "testID": undefined,
25
+ },
26
+ "type": "View",
27
+ },
28
+ ],
29
+ "props": {
30
+ "collapsable": false,
31
+ "pointerEvents": "box-none",
32
+ "style": [
33
+ {
34
+ "flex": 1,
35
+ },
36
+ undefined,
37
+ ],
38
+ "testID": undefined,
39
+ },
40
+ "type": "View",
41
+ },
42
+ {
43
+ "$$typeof": Symbol(react.test.json),
44
+ "children": [
45
+ {
46
+ "$$typeof": Symbol(react.test.json),
47
+ "children": null,
48
+ "props": {},
49
+ "type": "SafeAreaView",
50
+ },
51
+ ],
52
+ "props": {
53
+ "behavior": "position",
54
+ "pointerEvents": "box-none",
55
+ "style": [
56
+ {
57
+ "alignSelf": "center",
58
+ "elevation": 999999,
59
+ "flex": 0,
60
+ "maxWidth": "100%",
61
+ "position": "absolute",
62
+ "zIndex": 999999,
63
+ },
64
+ {
65
+ "flexDirection": "column-reverse",
66
+ "justifyContent": "flex-start",
67
+ "top": 50,
68
+ "width": 375,
69
+ },
70
+ ],
71
+ },
72
+ "type": "KeyboardAvoidingView",
73
+ },
74
+ {
75
+ "$$typeof": Symbol(react.test.json),
76
+ "children": [
77
+ {
78
+ "$$typeof": Symbol(react.test.json),
79
+ "children": null,
80
+ "props": {},
81
+ "type": "SafeAreaView",
82
+ },
83
+ ],
84
+ "props": {
85
+ "behavior": "position",
86
+ "pointerEvents": "box-none",
87
+ "style": [
88
+ {
89
+ "alignSelf": "center",
90
+ "elevation": 999999,
91
+ "flex": 0,
92
+ "maxWidth": "100%",
93
+ "position": "absolute",
94
+ "zIndex": 999999,
95
+ },
96
+ {
97
+ "bottom": 50,
98
+ "flexDirection": "column",
99
+ "justifyContent": "flex-end",
100
+ "width": 375,
101
+ },
102
+ ],
103
+ },
104
+ "type": "KeyboardAvoidingView",
105
+ },
106
+ ]
107
+ `;
108
+
109
+ exports[`TerrenoProvider renders with openAPISpecUrl 1`] = `
110
+ [
111
+ {
112
+ "$$typeof": Symbol(react.test.json),
113
+ "children": [
114
+ {
115
+ "$$typeof": Symbol(react.test.json),
116
+ "children": [
117
+ "Content",
118
+ ],
119
+ "props": {
120
+ "style": undefined,
121
+ },
122
+ "type": "Text",
123
+ },
124
+ ],
125
+ "props": {
126
+ "collapsable": false,
127
+ "pointerEvents": "box-none",
128
+ "style": [
129
+ {
130
+ "flex": 1,
131
+ },
132
+ undefined,
133
+ ],
134
+ "testID": undefined,
135
+ },
136
+ "type": "View",
137
+ },
138
+ {
139
+ "$$typeof": Symbol(react.test.json),
140
+ "children": [
141
+ {
142
+ "$$typeof": Symbol(react.test.json),
143
+ "children": null,
144
+ "props": {},
145
+ "type": "SafeAreaView",
146
+ },
147
+ ],
148
+ "props": {
149
+ "behavior": "position",
150
+ "pointerEvents": "box-none",
151
+ "style": [
152
+ {
153
+ "alignSelf": "center",
154
+ "elevation": 999999,
155
+ "flex": 0,
156
+ "maxWidth": "100%",
157
+ "position": "absolute",
158
+ "zIndex": 999999,
159
+ },
160
+ {
161
+ "flexDirection": "column-reverse",
162
+ "justifyContent": "flex-start",
163
+ "top": 50,
164
+ "width": 375,
165
+ },
166
+ ],
167
+ },
168
+ "type": "KeyboardAvoidingView",
169
+ },
170
+ {
171
+ "$$typeof": Symbol(react.test.json),
172
+ "children": [
173
+ {
174
+ "$$typeof": Symbol(react.test.json),
175
+ "children": null,
176
+ "props": {},
177
+ "type": "SafeAreaView",
178
+ },
179
+ ],
180
+ "props": {
181
+ "behavior": "position",
182
+ "pointerEvents": "box-none",
183
+ "style": [
184
+ {
185
+ "alignSelf": "center",
186
+ "elevation": 999999,
187
+ "flex": 0,
188
+ "maxWidth": "100%",
189
+ "position": "absolute",
190
+ "zIndex": 999999,
191
+ },
192
+ {
193
+ "bottom": 50,
194
+ "flexDirection": "column",
195
+ "justifyContent": "flex-end",
196
+ "width": 375,
197
+ },
198
+ ],
199
+ },
200
+ "type": "KeyboardAvoidingView",
201
+ },
202
+ ]
203
+ `;