@terreno/ui 57.11.0 → 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/dist/Common.d.ts +3 -2
- package/dist/Common.d.ts.map +1 -1
- package/dist/Common.js.map +1 -1
- package/dist/SplitPage.d.ts.map +1 -1
- package/dist/SplitPage.js +144 -54
- package/dist/SplitPage.js.map +1 -1
- package/package.json +2 -2
- package/src/Common.ts +3 -2
- package/src/SplitPage.test.tsx +473 -5
- package/src/SplitPage.tsx +265 -131
- package/src/__snapshots__/SplitPage.test.tsx.snap +154 -56
|
@@ -249,18 +249,31 @@ 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": {
|
|
265
278
|
"borderRadius": 4,
|
|
266
279
|
"flex": 1,
|
|
@@ -268,26 +281,40 @@ exports[`SplitPage renders correctly with children 1`] = `
|
|
|
268
281
|
"overflow": "hidden",
|
|
269
282
|
"width": "60%",
|
|
270
283
|
},
|
|
284
|
+
"testID": "split-page-desktop-row-child-0",
|
|
271
285
|
},
|
|
272
|
-
"type": "
|
|
286
|
+
"type": "View",
|
|
273
287
|
},
|
|
274
288
|
{
|
|
275
289
|
"$$typeof": Symbol(react.test.json),
|
|
276
290
|
"children": [
|
|
277
291
|
{
|
|
278
292
|
"$$typeof": Symbol(react.test.json),
|
|
279
|
-
"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
|
+
],
|
|
280
304
|
"props": {
|
|
281
|
-
"
|
|
282
|
-
|
|
305
|
+
"contentContainerStyle": {
|
|
306
|
+
"flex": 1,
|
|
307
|
+
},
|
|
308
|
+
"style": {
|
|
309
|
+
"flex": 1,
|
|
310
|
+
"height": "100%",
|
|
311
|
+
},
|
|
312
|
+
"testID": "split-page-desktop-child-scroll-1",
|
|
283
313
|
},
|
|
284
|
-
"type": "
|
|
314
|
+
"type": "ScrollView",
|
|
285
315
|
},
|
|
286
316
|
],
|
|
287
317
|
"props": {
|
|
288
|
-
"contentContainerStyle": {
|
|
289
|
-
"flex": 1,
|
|
290
|
-
},
|
|
291
318
|
"style": {
|
|
292
319
|
"borderRadius": 4,
|
|
293
320
|
"flex": 1,
|
|
@@ -295,8 +322,9 @@ exports[`SplitPage renders correctly with children 1`] = `
|
|
|
295
322
|
"overflow": "hidden",
|
|
296
323
|
"width": "60%",
|
|
297
324
|
},
|
|
325
|
+
"testID": "split-page-desktop-row-child-1",
|
|
298
326
|
},
|
|
299
|
-
"type": "
|
|
327
|
+
"type": "View",
|
|
300
328
|
},
|
|
301
329
|
],
|
|
302
330
|
"props": {
|
|
@@ -950,18 +978,31 @@ exports[`SplitPage renders with tabs when more than 2 children 1`] = `
|
|
|
950
978
|
"children": [
|
|
951
979
|
{
|
|
952
980
|
"$$typeof": Symbol(react.test.json),
|
|
953
|
-
"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
|
+
],
|
|
954
992
|
"props": {
|
|
955
|
-
"
|
|
956
|
-
|
|
993
|
+
"contentContainerStyle": {
|
|
994
|
+
"flex": 1,
|
|
995
|
+
},
|
|
996
|
+
"style": {
|
|
997
|
+
"flex": 1,
|
|
998
|
+
"height": "100%",
|
|
999
|
+
},
|
|
1000
|
+
"testID": "split-page-desktop-child-scroll-0",
|
|
957
1001
|
},
|
|
958
|
-
"type": "
|
|
1002
|
+
"type": "ScrollView",
|
|
959
1003
|
},
|
|
960
1004
|
],
|
|
961
1005
|
"props": {
|
|
962
|
-
"contentContainerStyle": {
|
|
963
|
-
"flex": 1,
|
|
964
|
-
},
|
|
965
1006
|
"style": {
|
|
966
1007
|
"borderRadius": 4,
|
|
967
1008
|
"flex": 1,
|
|
@@ -971,26 +1012,40 @@ exports[`SplitPage renders with tabs when more than 2 children 1`] = `
|
|
|
971
1012
|
"paddingRight": 16,
|
|
972
1013
|
"width": "60%",
|
|
973
1014
|
},
|
|
1015
|
+
"testID": "split-page-desktop-segment-child-0",
|
|
974
1016
|
},
|
|
975
|
-
"type": "
|
|
1017
|
+
"type": "View",
|
|
976
1018
|
},
|
|
977
1019
|
{
|
|
978
1020
|
"$$typeof": Symbol(react.test.json),
|
|
979
1021
|
"children": [
|
|
980
1022
|
{
|
|
981
1023
|
"$$typeof": Symbol(react.test.json),
|
|
982
|
-
"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
|
+
],
|
|
983
1035
|
"props": {
|
|
984
|
-
"
|
|
985
|
-
|
|
1036
|
+
"contentContainerStyle": {
|
|
1037
|
+
"flex": 1,
|
|
1038
|
+
},
|
|
1039
|
+
"style": {
|
|
1040
|
+
"flex": 1,
|
|
1041
|
+
"height": "100%",
|
|
1042
|
+
},
|
|
1043
|
+
"testID": "split-page-desktop-child-scroll-1",
|
|
986
1044
|
},
|
|
987
|
-
"type": "
|
|
1045
|
+
"type": "ScrollView",
|
|
988
1046
|
},
|
|
989
1047
|
],
|
|
990
1048
|
"props": {
|
|
991
|
-
"contentContainerStyle": {
|
|
992
|
-
"flex": 1,
|
|
993
|
-
},
|
|
994
1049
|
"style": {
|
|
995
1050
|
"borderRadius": 4,
|
|
996
1051
|
"flex": 1,
|
|
@@ -1000,8 +1055,9 @@ exports[`SplitPage renders with tabs when more than 2 children 1`] = `
|
|
|
1000
1055
|
"paddingRight": 0,
|
|
1001
1056
|
"width": "60%",
|
|
1002
1057
|
},
|
|
1058
|
+
"testID": "split-page-desktop-segment-child-1",
|
|
1003
1059
|
},
|
|
1004
|
-
"type": "
|
|
1060
|
+
"type": "View",
|
|
1005
1061
|
},
|
|
1006
1062
|
],
|
|
1007
1063
|
"props": {
|
|
@@ -1791,18 +1847,31 @@ exports[`SplitPage filters out null children 1`] = `
|
|
|
1791
1847
|
"children": [
|
|
1792
1848
|
{
|
|
1793
1849
|
"$$typeof": Symbol(react.test.json),
|
|
1794
|
-
"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
|
+
],
|
|
1795
1861
|
"props": {
|
|
1796
|
-
"
|
|
1797
|
-
|
|
1862
|
+
"contentContainerStyle": {
|
|
1863
|
+
"flex": 1,
|
|
1864
|
+
},
|
|
1865
|
+
"style": {
|
|
1866
|
+
"flex": 1,
|
|
1867
|
+
"height": "100%",
|
|
1868
|
+
},
|
|
1869
|
+
"testID": "split-page-desktop-child-scroll-0",
|
|
1798
1870
|
},
|
|
1799
|
-
"type": "
|
|
1871
|
+
"type": "ScrollView",
|
|
1800
1872
|
},
|
|
1801
1873
|
],
|
|
1802
1874
|
"props": {
|
|
1803
|
-
"contentContainerStyle": {
|
|
1804
|
-
"flex": 1,
|
|
1805
|
-
},
|
|
1806
1875
|
"style": {
|
|
1807
1876
|
"borderRadius": 4,
|
|
1808
1877
|
"flex": 1,
|
|
@@ -1810,26 +1879,40 @@ exports[`SplitPage filters out null children 1`] = `
|
|
|
1810
1879
|
"overflow": "hidden",
|
|
1811
1880
|
"width": "60%",
|
|
1812
1881
|
},
|
|
1882
|
+
"testID": "split-page-desktop-row-child-0",
|
|
1813
1883
|
},
|
|
1814
|
-
"type": "
|
|
1884
|
+
"type": "View",
|
|
1815
1885
|
},
|
|
1816
1886
|
{
|
|
1817
1887
|
"$$typeof": Symbol(react.test.json),
|
|
1818
1888
|
"children": [
|
|
1819
1889
|
{
|
|
1820
1890
|
"$$typeof": Symbol(react.test.json),
|
|
1821
|
-
"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
|
+
],
|
|
1822
1902
|
"props": {
|
|
1823
|
-
"
|
|
1824
|
-
|
|
1903
|
+
"contentContainerStyle": {
|
|
1904
|
+
"flex": 1,
|
|
1905
|
+
},
|
|
1906
|
+
"style": {
|
|
1907
|
+
"flex": 1,
|
|
1908
|
+
"height": "100%",
|
|
1909
|
+
},
|
|
1910
|
+
"testID": "split-page-desktop-child-scroll-1",
|
|
1825
1911
|
},
|
|
1826
|
-
"type": "
|
|
1912
|
+
"type": "ScrollView",
|
|
1827
1913
|
},
|
|
1828
1914
|
],
|
|
1829
1915
|
"props": {
|
|
1830
|
-
"contentContainerStyle": {
|
|
1831
|
-
"flex": 1,
|
|
1832
|
-
},
|
|
1833
1916
|
"style": {
|
|
1834
1917
|
"borderRadius": 4,
|
|
1835
1918
|
"flex": 1,
|
|
@@ -1837,8 +1920,9 @@ exports[`SplitPage filters out null children 1`] = `
|
|
|
1837
1920
|
"overflow": "hidden",
|
|
1838
1921
|
"width": "60%",
|
|
1839
1922
|
},
|
|
1923
|
+
"testID": "split-page-desktop-row-child-1",
|
|
1840
1924
|
},
|
|
1841
|
-
"type": "
|
|
1925
|
+
"type": "View",
|
|
1842
1926
|
},
|
|
1843
1927
|
],
|
|
1844
1928
|
"props": {
|
|
@@ -2146,18 +2230,31 @@ exports[`SplitPage renders with bottomNavBarHeight 1`] = `
|
|
|
2146
2230
|
"children": [
|
|
2147
2231
|
{
|
|
2148
2232
|
"$$typeof": Symbol(react.test.json),
|
|
2149
|
-
"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
|
+
],
|
|
2150
2244
|
"props": {
|
|
2151
|
-
"
|
|
2152
|
-
|
|
2245
|
+
"contentContainerStyle": {
|
|
2246
|
+
"flex": 1,
|
|
2247
|
+
},
|
|
2248
|
+
"style": {
|
|
2249
|
+
"flex": 1,
|
|
2250
|
+
"height": "100%",
|
|
2251
|
+
},
|
|
2252
|
+
"testID": "split-page-desktop-child-scroll-0",
|
|
2153
2253
|
},
|
|
2154
|
-
"type": "
|
|
2254
|
+
"type": "ScrollView",
|
|
2155
2255
|
},
|
|
2156
2256
|
],
|
|
2157
2257
|
"props": {
|
|
2158
|
-
"contentContainerStyle": {
|
|
2159
|
-
"flex": 1,
|
|
2160
|
-
},
|
|
2161
2258
|
"style": {
|
|
2162
2259
|
"borderRadius": 4,
|
|
2163
2260
|
"flex": 1,
|
|
@@ -2165,8 +2262,9 @@ exports[`SplitPage renders with bottomNavBarHeight 1`] = `
|
|
|
2165
2262
|
"overflow": "hidden",
|
|
2166
2263
|
"width": "60%",
|
|
2167
2264
|
},
|
|
2265
|
+
"testID": "split-page-desktop-row-child-0",
|
|
2168
2266
|
},
|
|
2169
|
-
"type": "
|
|
2267
|
+
"type": "View",
|
|
2170
2268
|
},
|
|
2171
2269
|
],
|
|
2172
2270
|
"props": {
|