@nexusui/theme
Version:
This is a simple MUI theme drop in for your React application, which aims to be the source of truth for the NexusUI Design system.
20 lines (19 loc) • 1.15 kB
TypeScript
/**
* Because there is no targetable component for the outermost element of the Date Pickers, we have
* to style them in the context of their parent container(s). This can be either a Static wrapper, a
* Modal, or a Popper (from what I have seen), so these styles are re-used in the styleOverrides
* for the PickerStaticWrapper, the Modal, and the Popper.
*
* These styleOverrides are, admittedly, a bit of a mess - the MUI X Date/Time picker classes have some
* very inconsistent class naming conventions and DOM structures, making them very annoying to try to
* style. Hence, these styles are on the brittle side (some being based on DOM structure where classes
* are not available) and sometimes repetitive (because of inconsistencies in parent class names between
* different pickers).
*
* XXXXXXXXXXXXXXXXXXXXXX
* TODO: These style rules need to be overhauled/redone — MUI have added many new structural class names that should
* make targeting specific elements much easier and we shouldn't have to do styling based on DOM structure anymore
* XXXXXXXXXXXXXXXXXXXXXX
*/
declare const _default: any;
export default _default;