@terreno/ui 57.10.1 → 57.12.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.
- package/LICENSE +1 -0
- package/dist/Button.js +1 -1
- package/dist/Button.js.map +1 -1
- package/dist/Common.d.ts +7 -0
- package/dist/Common.d.ts.map +1 -1
- package/dist/Common.js.map +1 -1
- package/dist/DataTable.js +1 -1
- package/dist/DataTable.js.map +1 -1
- package/dist/DateTimeActionSheet.js +1 -1
- package/dist/DateTimeActionSheet.js.map +1 -1
- package/dist/DateTimeField.js +1 -1
- package/dist/DateTimeField.js.map +1 -1
- package/dist/SplitPage.d.ts +2 -2
- package/dist/SplitPage.d.ts.map +1 -1
- package/dist/SplitPage.js +148 -46
- package/dist/SplitPage.js.map +1 -1
- package/dist/table/TableHeaderCell.js +1 -1
- package/dist/table/TableHeaderCell.js.map +1 -1
- package/package.json +2 -2
- package/src/Button.test.tsx +29 -0
- package/src/Button.tsx +1 -1
- package/src/Common.ts +7 -0
- package/src/DataTable.tsx +1 -1
- package/src/DateTimeActionSheet.tsx +1 -1
- package/src/DateTimeField.tsx +1 -1
- package/src/SplitPage.test.tsx +527 -4
- package/src/SplitPage.tsx +269 -129
- package/src/__snapshots__/Button.test.tsx.snap +1 -1
- package/src/__snapshots__/SplitPage.test.tsx.snap +168 -56
- package/src/bunSetup.ts +0 -6
- package/src/table/TableHeaderCell.tsx +1 -1
|
@@ -249,50 +249,82 @@ exports[`SplitPage renders correctly with children 1`] = `
|
|
|
249
249
|
"children": [
|
|
250
250
|
{
|
|
251
251
|
"$$typeof": Symbol(react.test.json),
|
|
252
|
-
"children":
|
|
252
|
+
"children": [
|
|
253
|
+
{
|
|
254
|
+
"$$typeof": Symbol(react.test.json),
|
|
255
|
+
"children": null,
|
|
256
|
+
"props": {
|
|
257
|
+
"style": undefined,
|
|
258
|
+
"testID": "child-1",
|
|
259
|
+
},
|
|
260
|
+
"type": "View",
|
|
261
|
+
},
|
|
262
|
+
],
|
|
253
263
|
"props": {
|
|
254
|
-
"
|
|
255
|
-
|
|
264
|
+
"contentContainerStyle": {
|
|
265
|
+
"flex": 1,
|
|
266
|
+
},
|
|
267
|
+
"style": {
|
|
268
|
+
"flex": 1,
|
|
269
|
+
"height": "100%",
|
|
270
|
+
},
|
|
271
|
+
"testID": "split-page-desktop-child-scroll-0",
|
|
256
272
|
},
|
|
257
|
-
"type": "
|
|
273
|
+
"type": "ScrollView",
|
|
258
274
|
},
|
|
259
275
|
],
|
|
260
276
|
"props": {
|
|
261
|
-
"contentContainerStyle": {
|
|
262
|
-
"flex": 1,
|
|
263
|
-
},
|
|
264
277
|
"style": {
|
|
278
|
+
"borderRadius": 4,
|
|
265
279
|
"flex": 1,
|
|
266
280
|
"height": "100%",
|
|
281
|
+
"overflow": "hidden",
|
|
267
282
|
"width": "60%",
|
|
268
283
|
},
|
|
284
|
+
"testID": "split-page-desktop-row-child-0",
|
|
269
285
|
},
|
|
270
|
-
"type": "
|
|
286
|
+
"type": "View",
|
|
271
287
|
},
|
|
272
288
|
{
|
|
273
289
|
"$$typeof": Symbol(react.test.json),
|
|
274
290
|
"children": [
|
|
275
291
|
{
|
|
276
292
|
"$$typeof": Symbol(react.test.json),
|
|
277
|
-
"children":
|
|
293
|
+
"children": [
|
|
294
|
+
{
|
|
295
|
+
"$$typeof": Symbol(react.test.json),
|
|
296
|
+
"children": null,
|
|
297
|
+
"props": {
|
|
298
|
+
"style": undefined,
|
|
299
|
+
"testID": "child-2",
|
|
300
|
+
},
|
|
301
|
+
"type": "View",
|
|
302
|
+
},
|
|
303
|
+
],
|
|
278
304
|
"props": {
|
|
279
|
-
"
|
|
280
|
-
|
|
305
|
+
"contentContainerStyle": {
|
|
306
|
+
"flex": 1,
|
|
307
|
+
},
|
|
308
|
+
"style": {
|
|
309
|
+
"flex": 1,
|
|
310
|
+
"height": "100%",
|
|
311
|
+
},
|
|
312
|
+
"testID": "split-page-desktop-child-scroll-1",
|
|
281
313
|
},
|
|
282
|
-
"type": "
|
|
314
|
+
"type": "ScrollView",
|
|
283
315
|
},
|
|
284
316
|
],
|
|
285
317
|
"props": {
|
|
286
|
-
"contentContainerStyle": {
|
|
287
|
-
"flex": 1,
|
|
288
|
-
},
|
|
289
318
|
"style": {
|
|
319
|
+
"borderRadius": 4,
|
|
290
320
|
"flex": 1,
|
|
291
321
|
"height": "100%",
|
|
322
|
+
"overflow": "hidden",
|
|
292
323
|
"width": "60%",
|
|
293
324
|
},
|
|
325
|
+
"testID": "split-page-desktop-row-child-1",
|
|
294
326
|
},
|
|
295
|
-
"type": "
|
|
327
|
+
"type": "View",
|
|
296
328
|
},
|
|
297
329
|
],
|
|
298
330
|
"props": {
|
|
@@ -946,54 +978,86 @@ exports[`SplitPage renders with tabs when more than 2 children 1`] = `
|
|
|
946
978
|
"children": [
|
|
947
979
|
{
|
|
948
980
|
"$$typeof": Symbol(react.test.json),
|
|
949
|
-
"children":
|
|
981
|
+
"children": [
|
|
982
|
+
{
|
|
983
|
+
"$$typeof": Symbol(react.test.json),
|
|
984
|
+
"children": null,
|
|
985
|
+
"props": {
|
|
986
|
+
"style": undefined,
|
|
987
|
+
"testID": "child-1",
|
|
988
|
+
},
|
|
989
|
+
"type": "View",
|
|
990
|
+
},
|
|
991
|
+
],
|
|
950
992
|
"props": {
|
|
951
|
-
"
|
|
952
|
-
|
|
993
|
+
"contentContainerStyle": {
|
|
994
|
+
"flex": 1,
|
|
995
|
+
},
|
|
996
|
+
"style": {
|
|
997
|
+
"flex": 1,
|
|
998
|
+
"height": "100%",
|
|
999
|
+
},
|
|
1000
|
+
"testID": "split-page-desktop-child-scroll-0",
|
|
953
1001
|
},
|
|
954
|
-
"type": "
|
|
1002
|
+
"type": "ScrollView",
|
|
955
1003
|
},
|
|
956
1004
|
],
|
|
957
1005
|
"props": {
|
|
958
|
-
"contentContainerStyle": {
|
|
959
|
-
"flex": 1,
|
|
960
|
-
},
|
|
961
1006
|
"style": {
|
|
1007
|
+
"borderRadius": 4,
|
|
962
1008
|
"flex": 1,
|
|
963
1009
|
"height": "100%",
|
|
1010
|
+
"overflow": "hidden",
|
|
964
1011
|
"paddingLeft": 0,
|
|
965
1012
|
"paddingRight": 16,
|
|
966
1013
|
"width": "60%",
|
|
967
1014
|
},
|
|
1015
|
+
"testID": "split-page-desktop-segment-child-0",
|
|
968
1016
|
},
|
|
969
|
-
"type": "
|
|
1017
|
+
"type": "View",
|
|
970
1018
|
},
|
|
971
1019
|
{
|
|
972
1020
|
"$$typeof": Symbol(react.test.json),
|
|
973
1021
|
"children": [
|
|
974
1022
|
{
|
|
975
1023
|
"$$typeof": Symbol(react.test.json),
|
|
976
|
-
"children":
|
|
1024
|
+
"children": [
|
|
1025
|
+
{
|
|
1026
|
+
"$$typeof": Symbol(react.test.json),
|
|
1027
|
+
"children": null,
|
|
1028
|
+
"props": {
|
|
1029
|
+
"style": undefined,
|
|
1030
|
+
"testID": "child-2",
|
|
1031
|
+
},
|
|
1032
|
+
"type": "View",
|
|
1033
|
+
},
|
|
1034
|
+
],
|
|
977
1035
|
"props": {
|
|
978
|
-
"
|
|
979
|
-
|
|
1036
|
+
"contentContainerStyle": {
|
|
1037
|
+
"flex": 1,
|
|
1038
|
+
},
|
|
1039
|
+
"style": {
|
|
1040
|
+
"flex": 1,
|
|
1041
|
+
"height": "100%",
|
|
1042
|
+
},
|
|
1043
|
+
"testID": "split-page-desktop-child-scroll-1",
|
|
980
1044
|
},
|
|
981
|
-
"type": "
|
|
1045
|
+
"type": "ScrollView",
|
|
982
1046
|
},
|
|
983
1047
|
],
|
|
984
1048
|
"props": {
|
|
985
|
-
"contentContainerStyle": {
|
|
986
|
-
"flex": 1,
|
|
987
|
-
},
|
|
988
1049
|
"style": {
|
|
1050
|
+
"borderRadius": 4,
|
|
989
1051
|
"flex": 1,
|
|
990
1052
|
"height": "100%",
|
|
1053
|
+
"overflow": "hidden",
|
|
991
1054
|
"paddingLeft": 16,
|
|
992
1055
|
"paddingRight": 0,
|
|
993
1056
|
"width": "60%",
|
|
994
1057
|
},
|
|
1058
|
+
"testID": "split-page-desktop-segment-child-1",
|
|
995
1059
|
},
|
|
996
|
-
"type": "
|
|
1060
|
+
"type": "View",
|
|
997
1061
|
},
|
|
998
1062
|
],
|
|
999
1063
|
"props": {
|
|
@@ -1783,50 +1847,82 @@ exports[`SplitPage filters out null children 1`] = `
|
|
|
1783
1847
|
"children": [
|
|
1784
1848
|
{
|
|
1785
1849
|
"$$typeof": Symbol(react.test.json),
|
|
1786
|
-
"children":
|
|
1850
|
+
"children": [
|
|
1851
|
+
{
|
|
1852
|
+
"$$typeof": Symbol(react.test.json),
|
|
1853
|
+
"children": null,
|
|
1854
|
+
"props": {
|
|
1855
|
+
"style": undefined,
|
|
1856
|
+
"testID": "child-1",
|
|
1857
|
+
},
|
|
1858
|
+
"type": "View",
|
|
1859
|
+
},
|
|
1860
|
+
],
|
|
1787
1861
|
"props": {
|
|
1788
|
-
"
|
|
1789
|
-
|
|
1862
|
+
"contentContainerStyle": {
|
|
1863
|
+
"flex": 1,
|
|
1864
|
+
},
|
|
1865
|
+
"style": {
|
|
1866
|
+
"flex": 1,
|
|
1867
|
+
"height": "100%",
|
|
1868
|
+
},
|
|
1869
|
+
"testID": "split-page-desktop-child-scroll-0",
|
|
1790
1870
|
},
|
|
1791
|
-
"type": "
|
|
1871
|
+
"type": "ScrollView",
|
|
1792
1872
|
},
|
|
1793
1873
|
],
|
|
1794
1874
|
"props": {
|
|
1795
|
-
"contentContainerStyle": {
|
|
1796
|
-
"flex": 1,
|
|
1797
|
-
},
|
|
1798
1875
|
"style": {
|
|
1876
|
+
"borderRadius": 4,
|
|
1799
1877
|
"flex": 1,
|
|
1800
1878
|
"height": "100%",
|
|
1879
|
+
"overflow": "hidden",
|
|
1801
1880
|
"width": "60%",
|
|
1802
1881
|
},
|
|
1882
|
+
"testID": "split-page-desktop-row-child-0",
|
|
1803
1883
|
},
|
|
1804
|
-
"type": "
|
|
1884
|
+
"type": "View",
|
|
1805
1885
|
},
|
|
1806
1886
|
{
|
|
1807
1887
|
"$$typeof": Symbol(react.test.json),
|
|
1808
1888
|
"children": [
|
|
1809
1889
|
{
|
|
1810
1890
|
"$$typeof": Symbol(react.test.json),
|
|
1811
|
-
"children":
|
|
1891
|
+
"children": [
|
|
1892
|
+
{
|
|
1893
|
+
"$$typeof": Symbol(react.test.json),
|
|
1894
|
+
"children": null,
|
|
1895
|
+
"props": {
|
|
1896
|
+
"style": undefined,
|
|
1897
|
+
"testID": "child-2",
|
|
1898
|
+
},
|
|
1899
|
+
"type": "View",
|
|
1900
|
+
},
|
|
1901
|
+
],
|
|
1812
1902
|
"props": {
|
|
1813
|
-
"
|
|
1814
|
-
|
|
1903
|
+
"contentContainerStyle": {
|
|
1904
|
+
"flex": 1,
|
|
1905
|
+
},
|
|
1906
|
+
"style": {
|
|
1907
|
+
"flex": 1,
|
|
1908
|
+
"height": "100%",
|
|
1909
|
+
},
|
|
1910
|
+
"testID": "split-page-desktop-child-scroll-1",
|
|
1815
1911
|
},
|
|
1816
|
-
"type": "
|
|
1912
|
+
"type": "ScrollView",
|
|
1817
1913
|
},
|
|
1818
1914
|
],
|
|
1819
1915
|
"props": {
|
|
1820
|
-
"contentContainerStyle": {
|
|
1821
|
-
"flex": 1,
|
|
1822
|
-
},
|
|
1823
1916
|
"style": {
|
|
1917
|
+
"borderRadius": 4,
|
|
1824
1918
|
"flex": 1,
|
|
1825
1919
|
"height": "100%",
|
|
1920
|
+
"overflow": "hidden",
|
|
1826
1921
|
"width": "60%",
|
|
1827
1922
|
},
|
|
1923
|
+
"testID": "split-page-desktop-row-child-1",
|
|
1828
1924
|
},
|
|
1829
|
-
"type": "
|
|
1925
|
+
"type": "View",
|
|
1830
1926
|
},
|
|
1831
1927
|
],
|
|
1832
1928
|
"props": {
|
|
@@ -2134,25 +2230,41 @@ exports[`SplitPage renders with bottomNavBarHeight 1`] = `
|
|
|
2134
2230
|
"children": [
|
|
2135
2231
|
{
|
|
2136
2232
|
"$$typeof": Symbol(react.test.json),
|
|
2137
|
-
"children":
|
|
2233
|
+
"children": [
|
|
2234
|
+
{
|
|
2235
|
+
"$$typeof": Symbol(react.test.json),
|
|
2236
|
+
"children": null,
|
|
2237
|
+
"props": {
|
|
2238
|
+
"style": undefined,
|
|
2239
|
+
"testID": "child-1",
|
|
2240
|
+
},
|
|
2241
|
+
"type": "View",
|
|
2242
|
+
},
|
|
2243
|
+
],
|
|
2138
2244
|
"props": {
|
|
2139
|
-
"
|
|
2140
|
-
|
|
2245
|
+
"contentContainerStyle": {
|
|
2246
|
+
"flex": 1,
|
|
2247
|
+
},
|
|
2248
|
+
"style": {
|
|
2249
|
+
"flex": 1,
|
|
2250
|
+
"height": "100%",
|
|
2251
|
+
},
|
|
2252
|
+
"testID": "split-page-desktop-child-scroll-0",
|
|
2141
2253
|
},
|
|
2142
|
-
"type": "
|
|
2254
|
+
"type": "ScrollView",
|
|
2143
2255
|
},
|
|
2144
2256
|
],
|
|
2145
2257
|
"props": {
|
|
2146
|
-
"contentContainerStyle": {
|
|
2147
|
-
"flex": 1,
|
|
2148
|
-
},
|
|
2149
2258
|
"style": {
|
|
2259
|
+
"borderRadius": 4,
|
|
2150
2260
|
"flex": 1,
|
|
2151
2261
|
"height": "100%",
|
|
2262
|
+
"overflow": "hidden",
|
|
2152
2263
|
"width": "60%",
|
|
2153
2264
|
},
|
|
2265
|
+
"testID": "split-page-desktop-row-child-0",
|
|
2154
2266
|
},
|
|
2155
|
-
"type": "
|
|
2267
|
+
"type": "View",
|
|
2156
2268
|
},
|
|
2157
2269
|
],
|
|
2158
2270
|
"props": {
|
package/src/bunSetup.ts
CHANGED
|
@@ -929,12 +929,6 @@ mock.module("expo-localization", () => ({
|
|
|
929
929
|
timezone: "America/New_York",
|
|
930
930
|
}));
|
|
931
931
|
|
|
932
|
-
// Mock @expo/vector-icons
|
|
933
|
-
mock.module("@expo/vector-icons", () => ({
|
|
934
|
-
default: mock(() => null),
|
|
935
|
-
FontAwesome6: mock(() => null),
|
|
936
|
-
}));
|
|
937
|
-
|
|
938
932
|
// Mock @expo/vector-icons/FontAwesome6
|
|
939
933
|
mock.module("@expo/vector-icons/FontAwesome6", () => ({
|
|
940
934
|
default: mock(() => null),
|