Skip to content

Commit 75f9f37

Browse files
authored
Add DataGrid component (#89)
* Add x-data-grid dependency * Add Table.tsx * Add table.py * Add tests * Add table demo * Update slider tests * Update Table.tsx * Update CHANGES.md * Update test * Minor refactor * Move Table to right folder * Update init * Rename Table to DataGrid * modify index.ts components order * make x-data-grid optional * Add padding to the box * update package-lock.json * add multiple grid row selection handler
1 parent 79c43fc commit 75f9f37

File tree

14 files changed

+542
-92
lines changed

14 files changed

+542
-92
lines changed

chartlets.js/CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
- `Switch`
5656
- `Tabs`
5757
- `Slider`
58+
- `DataGrid`
5859

5960
* Supporting `tooltip` property for interactive MUI components.
6061

chartlets.js/package-lock.json

Lines changed: 128 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

chartlets.js/packages/lib/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,17 @@
5959
"zustand": "^5.0"
6060
},
6161
"peerDependencies": {
62-
"@mui/material": ">=6",
63-
"react": ">=18",
64-
"react-dom": ">=18",
62+
"@mui/material": "^6.2.1",
63+
"@mui/x-data-grid": ">=7",
64+
"react": "^18.3.1",
65+
"react-dom": "^18.3.1",
6566
"react-vega": ">=7",
6667
"vega-themes": ">=2"
6768
},
6869
"peerDependenciesMeta": {
70+
"@mui/x-data-grid": {
71+
"optional": true
72+
},
6973
"react": {
7074
"optional": false
7175
},
@@ -74,6 +78,7 @@
7478
}
7579
},
7680
"devDependencies": {
81+
"@mui/x-data-grid": "^7.23.5",
7782
"@testing-library/jest-dom": "^6.6.3",
7883
"@testing-library/react": "^16.1.0",
7984
"@types/node": "^20.11.17",

0 commit comments

Comments
 (0)