diff --git a/next-docs/public/examples/table/MiniMap.tsx b/next-docs/public/examples/table/MiniMap.tsx index c348919d41..7de17cd163 100644 --- a/next-docs/public/examples/table/MiniMap.tsx +++ b/next-docs/public/examples/table/MiniMap.tsx @@ -35,6 +35,78 @@ const Example = () => { }, ], }, + { + Header: 'Info1', + columns: [ + { + Header: 'Age1', + accessor: 'age1', + width: 50, + }, + { + Header: 'Visits1', + accessor: 'visits1', + }, + { + Header: 'Activity1', + accessor: 'activity1', + }, + ], + }, + { + Header: 'Info2', + columns: [ + { + Header: 'Age2', + accessor: 'age2', + width: 50, + }, + { + Header: 'Visits2', + accessor: 'visits2', + }, + { + Header: 'Activity2', + accessor: 'activity2', + }, + ], + }, + { + Header: 'Info3', + columns: [ + { + Header: 'Age3', + accessor: 'age3', + width: 50, + }, + { + Header: 'Visits3', + accessor: 'visits3', + }, + { + Header: 'Activity3', + accessor: 'activity3', + }, + ], + }, + { + Header: 'Info4', + columns: [ + { + Header: 'Age4', + accessor: 'age4', + width: 50, + }, + { + Header: 'Visits4', + accessor: 'visits4', + }, + { + Header: 'Activity4', + accessor: 'activity4', + }, + ], + }, { Header: 'Progress', sticky: 'right', @@ -55,9 +127,21 @@ const Example = () => { lastName: 'Test', age: {Math.floor(index * 30)}, visits: {Math.floor(index * 100)}, + activity: Math.floor(index * 100), progress: {Math.floor(index * 100)}, status: Math.floor(index * 100), - activity: Math.floor(index * 100), + age1: {Math.floor(index * 30)}, + visits1: {Math.floor(index * 100)}, + activity1: Math.floor(index * 100), + age2: {Math.floor(index * 30)}, + visits2: {Math.floor(index * 100)}, + activity2: Math.floor(index * 100), + age3: {Math.floor(index * 30)}, + visits3: {Math.floor(index * 100)}, + activity3: Math.floor(index * 100), + age4: {Math.floor(index * 30)}, + visits4: {Math.floor(index * 100)}, + activity4: Math.floor(index * 100), }; }); }; diff --git a/next-docs/public/examples/table/__tests__/__snapshots__/index.test.tsx.snap b/next-docs/public/examples/table/__tests__/__snapshots__/index.test.tsx.snap index 9fa5e5e04f..322d6b7103 100644 --- a/next-docs/public/examples/table/__tests__/__snapshots__/index.test.tsx.snap +++ b/next-docs/public/examples/table/__tests__/__snapshots__/index.test.tsx.snap @@ -75211,7 +75211,7 @@ Object {
+
+ Info1 + +
+ Info2 + +
+ Info3 + +
+ Info4 +
+
+ Age1 + +
+ Visits1 + +
+ Activity1 + +
+ Age2 + +
+ Visits2 + +
+ Activity2 + +
+ Age3 + +
+ Visits3 + +
+ Activity3 + +
+ Age4 + +
+ Visits4 + +
+ Activity4 +
+
+
+
+
+
+
+
+
+
+
+
+
0
-
-
- Test + + 0 +
- Test + 0
- 30 + 0
- 100 + 0
- 100 + 0
- 100 + 0
-
-
- Test + + 0 +
- Test + 0
- 60 + 0
- 200 + 0
- 200 + 0
- 200 + 0
- 90 + 30
- 300 + 100
- 300 + 100
- 300 + 30
-
-
- Test + + 100 +
- Test + 100
- 120 + 30
- 400 + 100
- 400 + 100
- 400 + 30
-
-
- Test + + 100 +
- Test + 100
- 150 + 30
- 500 + 100
- 500 + 100
- 500 + 100
- 180 + 60
- 600 + 200
- 600 + 200
- 600 + 60
-
-
- Test + + 200 +
- Test + 200
- 210 + 60
- 700 + 200
- 700 + 200
- 700 + 60
-
-
- Test + + 200 +
- Test + 200
- 240 + 60
- 800 + 200
- 800 + 200
- 800 + 200
- 270 + 90
- 900 + 300
- 900 + 300
- 900 + 90
-
-
- Test + + 300 +
- Test + 300
+ + 90 + +
+
300
+
+ 300 +
+
+ + 90 + +
- 1000 + 300
- 1000 + 300 +
+
+ + 90 + +
+
+ + 300 + +
+
+ 300
- 1000 + 300
- 330 + 120
- 1100 + 400
- 1100 + 400
- 1100 + 120
-
-
- Test + + 400 +
- Test + 400
- 360 + 120
- 1200 + 400
- 1200 + 400
- 1200 + 120
-
-
- Test + + 400 +
- Test + 400
- 390 + 120
- 1300 + 400
- 1300 + 400
- 1300 + 400
- 420 + 150
- 1400 + 500
- 1400 + 500
- 1400 + 150
-
-
- Test + + 500 +
- Test + 500
- 450 + 150
- 1500 + 500
- 1500 + 500
- 1500 + 150
-
-
- Test + + 500 +
- Test + 500
- 480 + 150
- 1600 + 500
- 1600 + 500
- 1600 + 500
- 510 + 180
- 1700 + 600
- 1700 + 600 +
+
+ + 180 + +
+
+ + 600 + +
+
+ 600 +
+
+ + 180 + +
+
+ + 600 + +
+
+ 600 +
+
+ + 180 + +
+
+ + 600 + +
+
+ 600 +
+
+ + 180 + +
+
+ + 600 + +
+
+ 600
- 1700 + 600
- 540 + 210
- 1800 + 700
- 1800 + 700 +
+
+ + 210 + +
+
+ + 700 + +
+
+ 700 +
+
+ + 210 + +
+
+ + 700 + +
+
+ 700 +
+
+ + 210 + +
+
+ + 700 + +
+
+ 700 +
+
+ + 210 + +
+
+ + 700 + +
+
+ 700
- 1800 + 700
- 570 + 240
- 1900 + 800
- 1900 + 800
- 1900 + 240
-
-
-
-
-
-