Closed oliviertassinari closed 4 years ago
Problem solved, we went with
import { DatePicker } from '@material-ui/pickers';
import { DateRangePicker } from '@material-ui/x-pickers';
import { DataGrid } from '@material-ui/data-grid';
import { XGrid } from '@material-ui/x-grid';
This is a follow-up on a couple of past discussions we had, mostly speaking. I couldn't find any written conclusion on how to best name the package and components outside of a verbal discussion that no other member can introspect. In order to improve decision making and transparency, I'm making a written RFC, so we can settle.
Introduction
We came to the conclusion at https://github.com/mui-org/material-ui-pickers/issues/1778 that:
@material-ui/core
vs@material-ui/x
.@material-ui/pickers
.@materal-ui/utils
.Problems
Looking at the current naming organization, I see a couple of things we could potentially improve:
Grid
component name is already reserved by https://material-ui.com/api/grid/. We can't use it here./grid
folder. A flat structure would be easier to navigate./grid
was introduced to fix a naming organization issue: if we sort ASC, related components won't be grouped. This might be an issue we would want to solve userland too (not only in the repository).Solutions?
A couple of options that we could consider to solve the above:
to
I've not convinced it's better, but it could have its advantages, to consider.
/grid
folder. I think that it would make it easier to navigate the codebase.