@astral/ui 0.48.4 → 1.0.0-test.1670422830
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/ActionCell/ActionCell.d.ts +18 -10
- package/ActionCell/ActionCell.js +35 -38
- package/ActionCell/styles.js +5 -7
- package/Alert/Alert.d.ts +26 -0
- package/Alert/Alert.js +31 -0
- package/Alert/index.d.ts +1 -0
- package/Alert/index.js +17 -0
- package/Alert/styles.d.ts +4 -0
- package/Alert/styles.js +20 -0
- package/Autocomplete/Autocomplete.d.ts +4 -3
- package/Autocomplete/Autocomplete.js +27 -35
- package/{esm/DatePicker/types.js → Autocomplete/Autocomplete.test.d.ts} +0 -0
- package/Autocomplete/Autocomplete.test.js +98 -0
- package/Autocomplete/constants.d.ts +0 -4
- package/Autocomplete/constants.js +1 -6
- package/Autocomplete/enums.d.ts +4 -0
- package/Autocomplete/enums.js +8 -0
- package/BackdropStack/hooks/useBackdropStackToggle/index.d.ts +1 -0
- package/BackdropStack/hooks/useBackdropStackToggle/index.js +17 -0
- package/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.d.ts +33 -0
- package/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.js +27 -0
- package/BackdropStack/index.d.ts +2 -0
- package/BackdropStack/index.js +18 -0
- package/BackdropStack/services/BackdropStackManager/BackdropStackManager.d.ts +15 -0
- package/BackdropStack/services/BackdropStackManager/BackdropStackManager.js +42 -0
- package/BackdropStack/services/BackdropStackManager/index.d.ts +1 -0
- package/BackdropStack/services/BackdropStackManager/index.js +17 -0
- package/Badge/Badge.d.ts +1 -2
- package/Badge/Badge.js +7 -17
- package/Badge/styled.d.ts +10 -16
- package/Badge/styled.js +26 -31
- package/Badge/types.d.ts +3 -2
- package/Breadcrumbs/index.d.ts +1 -0
- package/Breadcrumbs/index.js +5 -0
- package/Button/Button.d.ts +1 -1
- package/Button/Button.js +11 -22
- package/{esm/Dialog/types.js → Button/Button.test.d.ts} +0 -0
- package/Button/Button.test.js +36 -0
- package/Button/styles.d.ts +72 -0
- package/Button/styles.js +24 -0
- package/Button/types.d.ts +2 -1
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/ButtonBase.js +7 -18
- package/ButtonBase/enums.d.ts +23 -0
- package/ButtonBase/{constants.js → enums.js} +15 -14
- package/ButtonBase/index.d.ts +1 -1
- package/ButtonBase/index.js +1 -1
- package/ButtonBase/styles.d.ts +34 -0
- package/ButtonBase/styles.js +254 -0
- package/ButtonBase/types.d.ts +7 -6
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/Checkbox.js +8 -19
- package/Checkbox/icons.js +8 -19
- package/Checkbox/styled.js +47 -32
- package/Checkbox/types.d.ts +2 -1
- package/Chevron/Chevron.d.ts +3 -2
- package/Chevron/Chevron.js +3 -14
- package/Chevron/styles.d.ts +3 -3
- package/Chevron/styles.js +11 -18
- package/CircularProgress/CircularProgress.d.ts +2 -2
- package/CircularProgress/CircularProgress.js +7 -18
- package/CircularProgress/CircularProgressStory.d.ts +3 -3
- package/CircularProgress/CircularProgressStory.js +4 -4
- package/CircularProgress/CircularProgressStoryTemplate.js +4 -15
- package/Collapse/Collapse.d.ts +5 -3
- package/Collapse/Collapse.js +4 -2
- package/ConfigProvider/ConfigProvider.d.ts +26 -0
- package/ConfigProvider/ConfigProvider.js +25 -0
- package/ConfigProvider/index.d.ts +1 -0
- package/ConfigProvider/index.js +17 -0
- package/ContentState/ContentState.d.ts +3 -3
- package/ContentState/ContentState.js +14 -21
- package/ContentState/styles.js +8 -7
- package/ContentState/types.d.ts +1 -1
- package/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/DashboardLayout/DashboardLayout.js +7 -7
- package/DashboardLayout/DashboardLayoutStory.d.ts +3 -3
- package/DashboardLayout/DashboardLayoutStory.js +5 -16
- package/DashboardLayout/DashboardLayoutStoryTemplate.js +4 -15
- package/DashboardLayout/Header/Header.d.ts +5 -5
- package/DashboardLayout/Header/Header.js +8 -22
- package/DashboardLayout/Header/styles.d.ts +4 -3
- package/DashboardLayout/Header/styles.js +17 -20
- package/DashboardLayout/Main/Main.d.ts +1 -1
- package/DashboardLayout/Main/Main.js +5 -17
- package/DashboardLayout/Main/styled.js +7 -7
- package/DashboardLayout/Sidebar/Sidebar.d.ts +1 -1
- package/DashboardLayout/Sidebar/Sidebar.js +13 -24
- package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +5 -16
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +2 -2
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +7 -18
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +13 -11
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +8 -19
- package/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/styled.js +11 -12
- package/DashboardLayout/Sidebar/styles.js +16 -24
- package/DashboardLayout/styles.js +11 -9
- package/DataGrid/DataGrid.d.ts +24 -7
- package/DataGrid/DataGrid.js +36 -48
- package/{esm/FormHelperText/types.js → DataGrid/DataGrid.test.d.ts} +0 -0
- package/DataGrid/DataGrid.test.js +118 -0
- package/DataGrid/DataGridBody/DataGridBody.d.ts +3 -2
- package/DataGrid/DataGridBody/DataGridBody.js +19 -31
- package/DataGrid/DataGridBody/styles.d.ts +6 -0
- package/DataGrid/DataGridBody/styles.js +16 -0
- package/DataGrid/DataGridCell/DataGridCell.d.ts +2 -2
- package/DataGrid/DataGridCell/DataGridCell.js +7 -19
- package/DataGrid/DataGridHead/DataGridHead.d.ts +4 -4
- package/DataGrid/DataGridHead/DataGridHead.js +21 -56
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +2 -2
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +24 -26
- package/DataGrid/DataGridHeadColumn/styles.d.ts +11 -0
- package/DataGrid/DataGridHeadColumn/styles.js +27 -0
- package/DataGrid/DataGridLoader/DataGridLoader.d.ts +5 -2
- package/DataGrid/DataGridLoader/DataGridLoader.js +4 -5
- package/DataGrid/DataGridLoader/index.d.ts +1 -1
- package/DataGrid/DataGridLoader/index.js +1 -1
- package/DataGrid/DataGridLoader/styles.d.ts +20 -0
- package/DataGrid/DataGridLoader/styles.js +27 -0
- package/DataGrid/DataGridNoData/DataGridNoData.d.ts +22 -0
- package/DataGrid/DataGridNoData/DataGridNoData.js +10 -0
- package/DataGrid/DataGridNoData/index.d.ts +1 -0
- package/DataGrid/DataGridNoData/index.js +17 -0
- package/DataGrid/DataGridNoData/styles.d.ts +24 -0
- package/DataGrid/DataGridNoData/styles.js +32 -0
- package/DataGrid/{constants.d.ts → enums.d.ts} +0 -0
- package/DataGrid/{constants.js → enums.js} +0 -0
- package/DataGrid/styles.d.ts +38 -0
- package/DataGrid/styles.js +26 -0
- package/DataGrid/types.d.ts +7 -7
- package/DataGridPagination/DataGridPagination.d.ts +1 -1
- package/DataGridPagination/DataGridPagination.js +11 -22
- package/DataGridPagination/styles.d.ts +1 -1
- package/DataGridPagination/styles.js +11 -15
- package/DatePicker/DateCalendar/DateCalendarBody/index.d.ts +1 -0
- package/DatePicker/DateCalendar/DateCalendarBody/index.js +17 -0
- package/DatePicker/DateCalendar/DateCalendarBody/styles.d.ts +11 -0
- package/DatePicker/DateCalendar/DateCalendarBody/styles.js +12 -0
- package/DatePicker/DateCalendar/DateCalendarBtn/DateCalendarBtn.d.ts +7 -0
- package/DatePicker/DateCalendar/DateCalendarBtn/DateCalendarBtn.js +22 -0
- package/DatePicker/DateCalendar/DateCalendarBtn/index.d.ts +1 -0
- package/DatePicker/DateCalendar/DateCalendarBtn/index.js +17 -0
- package/DatePicker/DateCalendar/DateCalendarBtn/styles.d.ts +4 -0
- package/DatePicker/DateCalendar/DateCalendarBtn/styles.js +8 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/DateCalendarNextBtn.d.ts +3 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/DateCalendarNextBtn.js +24 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/index.d.ts +1 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/index.js +17 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/styles.d.ts +4 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/styles.js +9 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/DateCalendarPrevBtn.d.ts +3 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/DateCalendarPrevBtn.js +24 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/index.d.ts +1 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/index.js +17 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/styles.d.ts +4 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/styles.js +9 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/index.d.ts +2 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/index.js +18 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/styles.d.ts +4 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/styles.js +10 -0
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/types.d.ts +12 -0
- package/DatePicker/{types.js → DateCalendar/DateCalendarChevronBtn/types.js} +0 -0
- package/DatePicker/DateCalendar/DateCalendarGridBtn/index.d.ts +1 -0
- package/DatePicker/DateCalendar/DateCalendarGridBtn/index.js +17 -0
- package/DatePicker/DateCalendar/DateCalendarGridBtn/styles.d.ts +22 -0
- package/DatePicker/DateCalendar/DateCalendarGridBtn/styles.js +72 -0
- package/DatePicker/DateCalendar/DateCalendarHead/DateCalendarHead.d.ts +38 -0
- package/DatePicker/DateCalendar/DateCalendarHead/DateCalendarHead.js +8 -0
- package/DatePicker/DateCalendar/DateCalendarHead/index.d.ts +1 -0
- package/DatePicker/DateCalendar/DateCalendarHead/index.js +17 -0
- package/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +7 -0
- package/DatePicker/DateCalendar/DateCalendarHead/styles.js +26 -0
- package/DatePicker/DateCalendar/enums/calendarGridPositions.d.ts +6 -0
- package/DatePicker/DateCalendar/enums/calendarGridPositions.js +10 -0
- package/DatePicker/DateCalendar/index.d.ts +4 -0
- package/DatePicker/DateCalendar/index.js +20 -0
- package/DatePicker/DateCalendar/styles.d.ts +5 -0
- package/DatePicker/DateCalendar/styles.js +15 -0
- package/DatePicker/DatePicker.d.ts +41 -7
- package/DatePicker/DatePicker.js +38 -56
- package/{esm/LocalizationProvider/types.js → DatePicker/DatePicker.test.d.ts} +0 -0
- package/DatePicker/DatePicker.test.js +92 -0
- package/DatePicker/DatePickerClickAwayListener/DatePickerClickAwayListener.d.ts +6 -0
- package/DatePicker/DatePickerClickAwayListener/DatePickerClickAwayListener.js +7 -0
- package/DatePicker/DatePickerClickAwayListener/index.d.ts +1 -0
- package/DatePicker/DatePickerClickAwayListener/index.js +17 -0
- package/DatePicker/DatePickerInput/DatePickerInput.d.ts +8 -0
- package/DatePicker/DatePickerInput/DatePickerInput.js +44 -0
- package/DatePicker/DatePickerInput/index.d.ts +1 -0
- package/DatePicker/DatePickerInput/index.js +17 -0
- package/DatePicker/DatePickerInput/styles.d.ts +4 -0
- package/DatePicker/DatePickerInput/styles.js +10 -0
- package/DatePicker/DatePickerPopper/DatePickerPopper.d.ts +7 -0
- package/DatePicker/DatePickerPopper/DatePickerPopper.js +35 -0
- package/DatePicker/DatePickerPopper/index.d.ts +1 -0
- package/DatePicker/DatePickerPopper/index.js +17 -0
- package/DatePicker/DatePickerPopper/styles.d.ts +8 -0
- package/DatePicker/DatePickerPopper/styles.js +15 -0
- package/DatePicker/DayPicker/DateDayPickerGrid/index.d.ts +1 -0
- package/DatePicker/DayPicker/DateDayPickerGrid/index.js +17 -0
- package/DatePicker/DayPicker/DateDayPickerGrid/styles.d.ts +5 -0
- package/DatePicker/DayPicker/DateDayPickerGrid/styles.js +11 -0
- package/DatePicker/DayPicker/DateDayPickerGridHead/DateDayPickerGridHead.d.ts +6 -0
- package/DatePicker/DayPicker/DateDayPickerGridHead/DateDayPickerGridHead.js +11 -0
- package/DatePicker/DayPicker/DateDayPickerGridHead/index.d.ts +1 -0
- package/DatePicker/DayPicker/DateDayPickerGridHead/index.js +17 -0
- package/DatePicker/DayPicker/DateDayPickerGridHead/styles.d.ts +5 -0
- package/DatePicker/DayPicker/DateDayPickerGridHead/styles.js +14 -0
- package/DatePicker/DayPicker/DayPicker.d.ts +13 -0
- package/DatePicker/DayPicker/DayPicker.js +54 -0
- package/DatePicker/DayPicker/hooks/useDaysGrid/index.d.ts +1 -0
- package/DatePicker/DayPicker/hooks/useDaysGrid/index.js +17 -0
- package/DatePicker/DayPicker/hooks/useDaysGrid/useDaysGrid.d.ts +25 -0
- package/DatePicker/DayPicker/hooks/useDaysGrid/useDaysGrid.js +110 -0
- package/DatePicker/DayPicker/index.d.ts +1 -0
- package/DatePicker/DayPicker/index.js +17 -0
- package/DatePicker/MinMaxDateContext/MinMaxDateContext.d.ts +7 -0
- package/DatePicker/MinMaxDateContext/MinMaxDateContext.js +23 -0
- package/DatePicker/MinMaxDateContext/index.d.ts +1 -0
- package/DatePicker/MinMaxDateContext/index.js +17 -0
- package/DatePicker/MonthPicker/MonthPicker.d.ts +6 -0
- package/DatePicker/MonthPicker/MonthPicker.js +46 -0
- package/DatePicker/MonthPicker/hooks/useMonthsGrid/index.d.ts +1 -0
- package/DatePicker/MonthPicker/hooks/useMonthsGrid/index.js +17 -0
- package/DatePicker/MonthPicker/hooks/useMonthsGrid/useMonthsGrid.d.ts +8 -0
- package/DatePicker/MonthPicker/hooks/useMonthsGrid/useMonthsGrid.js +45 -0
- package/DatePicker/MonthPicker/index.d.ts +1 -0
- package/DatePicker/MonthPicker/index.js +17 -0
- package/DatePicker/YearMonthDayPicker/YearMonthDayPicker.d.ts +6 -0
- package/DatePicker/YearMonthDayPicker/YearMonthDayPicker.js +35 -0
- package/DatePicker/YearMonthDayPicker/index.d.ts +1 -0
- package/DatePicker/YearMonthDayPicker/index.js +17 -0
- package/DatePicker/YearPicker/YearPicker.d.ts +6 -0
- package/DatePicker/YearPicker/YearPicker.js +40 -0
- package/DatePicker/YearPicker/constants.d.ts +1 -0
- package/DatePicker/YearPicker/constants.js +4 -0
- package/DatePicker/YearPicker/hooks/useYearsGrid/index.d.ts +1 -0
- package/DatePicker/YearPicker/hooks/useYearsGrid/index.js +17 -0
- package/DatePicker/YearPicker/hooks/useYearsGrid/useYearsGrid.d.ts +8 -0
- package/DatePicker/YearPicker/hooks/useYearsGrid/useYearsGrid.js +44 -0
- package/DatePicker/YearPicker/index.d.ts +1 -0
- package/DatePicker/YearPicker/index.js +17 -0
- package/DatePicker/constants/counts.d.ts +2 -0
- package/DatePicker/constants/counts.js +5 -0
- package/DatePicker/constants/russianMap.d.ts +2 -0
- package/DatePicker/constants/russianMap.js +13 -0
- package/DatePicker/hooks/index.d.ts +3 -0
- package/DatePicker/hooks/index.js +19 -0
- package/DatePicker/hooks/useBaseDateInRange/index.d.ts +1 -0
- package/DatePicker/hooks/useBaseDateInRange/index.js +17 -0
- package/DatePicker/hooks/useBaseDateInRange/useBaseDateInRange.d.ts +7 -0
- package/DatePicker/hooks/useBaseDateInRange/useBaseDateInRange.js +25 -0
- package/DatePicker/hooks/useCalendarNavigate/index.d.ts +1 -0
- package/DatePicker/hooks/useCalendarNavigate/index.js +17 -0
- package/DatePicker/hooks/useCalendarNavigate/useCalendarNavigate.d.ts +20 -0
- package/DatePicker/hooks/useCalendarNavigate/useCalendarNavigate.js +25 -0
- package/DatePicker/hooks/useLocaleDateTimeFormat/index.d.ts +1 -0
- package/DatePicker/hooks/useLocaleDateTimeFormat/index.js +17 -0
- package/DatePicker/hooks/useLocaleDateTimeFormat/useLocaleDateTimeFormat.d.ts +3 -0
- package/DatePicker/hooks/useLocaleDateTimeFormat/useLocaleDateTimeFormat.js +11 -0
- package/DatePicker/hooks/useMaskedValue/index.d.ts +1 -0
- package/DatePicker/hooks/useMaskedValue/index.js +17 -0
- package/DatePicker/hooks/useMaskedValue/useMaskedValue.d.ts +27 -0
- package/DatePicker/hooks/useMaskedValue/useMaskedValue.js +50 -0
- package/DatePicker/hooks/useSelectedBaseDate/index.d.ts +1 -0
- package/DatePicker/hooks/useSelectedBaseDate/index.js +17 -0
- package/DatePicker/hooks/useSelectedBaseDate/useSelectedBaseDate.d.ts +1 -0
- package/DatePicker/hooks/useSelectedBaseDate/useSelectedBaseDate.js +33 -0
- package/DatePicker/index.d.ts +0 -1
- package/DatePicker/index.js +0 -1
- package/DatePicker/types/configTypes.d.ts +14 -0
- package/{Dialog/types.js → DatePicker/types/configTypes.js} +0 -0
- package/DatePicker/types/gridBuilder.d.ts +44 -0
- package/{FormHelperText/types.js → DatePicker/types/gridBuilder.js} +0 -0
- package/DatePicker/types/index.d.ts +4 -0
- package/DatePicker/types/index.js +20 -0
- package/DatePicker/types/minMaxDate.d.ts +4 -0
- package/{LocalizationProvider/types.js → DatePicker/types/minMaxDate.js} +0 -0
- package/DatePicker/types/pickerProps.d.ts +11 -0
- package/{Menu/types.js → DatePicker/types/pickerProps.js} +0 -0
- package/DatePicker/utils/buildGridItem/buildGridResult.d.ts +22 -0
- package/DatePicker/utils/buildGridItem/buildGridResult.js +20 -0
- package/DatePicker/utils/buildGridItem/index.d.ts +1 -0
- package/DatePicker/utils/buildGridItem/index.js +17 -0
- package/DatePickerProvider/DatePickerProvider.d.ts +7 -11
- package/DatePickerProvider/DatePickerProvider.js +6 -23
- package/Description/Description.d.ts +12 -0
- package/Description/Description.js +13 -0
- package/Description/Name/Name.d.ts +4 -0
- package/Description/Name/Name.js +21 -0
- package/Description/Name/index.d.ts +1 -0
- package/Description/Name/index.js +17 -0
- package/Description/Value/Value.d.ts +10 -0
- package/Description/Value/Value.js +22 -0
- package/Description/Value/index.d.ts +1 -0
- package/Description/Value/index.js +17 -0
- package/Description/index.d.ts +1 -0
- package/Description/index.js +17 -0
- package/{esm/DatePicker/styled.d.ts → Description/styles.d.ts} +1 -1
- package/Description/styles.js +17 -0
- package/Dialog/Dialog.d.ts +12 -1
- package/Dialog/Dialog.js +8 -19
- package/Dialog/index.d.ts +0 -1
- package/Dialog/index.js +0 -1
- package/DialogActions/DialogActions.d.ts +3 -1
- package/DialogActions/DialogActions.js +6 -17
- package/DialogContent/DialogContent.d.ts +5 -1
- package/DialogContent/DialogContent.js +4 -2
- package/DialogContentText/DialogContentText.d.ts +5 -1
- package/DialogContentText/DialogContentText.js +4 -2
- package/DialogTitle/DialogTitle.d.ts +2 -1
- package/DialogTitle/DialogTitle.js +8 -19
- package/Divider/Divider.d.ts +5 -3
- package/Divider/Divider.js +4 -2
- package/DropdownButton/DropdownButton.d.ts +2 -2
- package/DropdownButton/DropdownButton.js +11 -22
- package/{esm/Menu/types.js → DropdownButton/DropdownButton.test.d.ts} +0 -0
- package/DropdownButton/DropdownButton.test.js +37 -0
- package/ErrorBoundary/ErrorBoundary.d.ts +18 -0
- package/ErrorBoundary/ErrorBoundary.js +34 -0
- package/ErrorBoundary/index.d.ts +1 -0
- package/ErrorBoundary/index.js +17 -0
- package/Fab/Fab.d.ts +9 -0
- package/Fab/Fab.js +22 -0
- package/Fab/enums.d.ts +17 -0
- package/Fab/enums.js +23 -0
- package/Fab/index.d.ts +2 -0
- package/Fab/index.js +18 -0
- package/Fab/styles.d.ts +38 -0
- package/Fab/styles.js +80 -0
- package/Fab/types.d.ts +2 -0
- package/{MenuGroup → Fab}/types.js +0 -0
- package/Fade/Fade.d.ts +3 -3
- package/Fade/Fade.js +2 -2
- package/FormControl/FormControl.d.ts +5 -0
- package/FormControl/FormControl.js +7 -0
- package/FormControl/index.d.ts +1 -0
- package/FormControl/index.js +17 -0
- package/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/FormControlLabel/FormControlLabel.js +4 -27
- package/FormControlLabel/styled.d.ts +2 -1
- package/FormControlLabel/styled.js +10 -11
- package/FormControlLabel/types.d.ts +2 -1
- package/FormHelperText/FormHelperText.d.ts +7 -3
- package/FormHelperText/FormHelperText.js +17 -19
- package/FormHelperText/FormHelperTextContent/FormHelperTextContent.d.ts +7 -0
- package/FormHelperText/FormHelperTextContent/FormHelperTextContent.js +22 -0
- package/FormHelperText/FormHelperTextContent/index.d.ts +1 -0
- package/FormHelperText/FormHelperTextContent/index.js +17 -0
- package/FormHelperText/FormHelperTextContent/styles.d.ts +46 -0
- package/FormHelperText/FormHelperTextContent/styles.js +34 -0
- package/GlobalStyles/GlobalStyles.js +11 -19
- package/Grid/Grid.d.ts +8 -3
- package/Grid/Grid.js +7 -18
- package/{esm/MenuGroup/types.js → Grid/Grid.test.d.ts} +0 -0
- package/Grid/Grid.test.js +21 -0
- package/Grid/styled.d.ts +5 -3
- package/Grid/styled.js +7 -11
- package/Grid/types.d.ts +4 -7
- package/Grow/Grow.js +1 -1
- package/IconButton/IconButton.d.ts +1 -1
- package/IconButton/IconButton.js +6 -17
- package/IconButton/styles.d.ts +7 -6
- package/IconButton/styles.js +25 -20
- package/IconDropdownButton/IconDropdownButton.d.ts +2 -2
- package/IconDropdownButton/IconDropdownButton.js +10 -21
- package/List/List.d.ts +2 -1
- package/List/List.js +4 -15
- package/ListItem/ListItem.d.ts +1 -1
- package/ListItem/ListItem.js +4 -27
- package/ListItem/styles.d.ts +11 -16
- package/ListItem/styles.js +19 -32
- package/ListItem/types.d.ts +2 -1
- package/ListItemAvatar/ListItemAvatar.d.ts +5 -3
- package/ListItemAvatar/ListItemAvatar.js +4 -2
- package/ListItemButton/ListItemButton.d.ts +4 -3
- package/ListItemButton/ListItemButton.js +5 -16
- package/ListItemIcon/ListItemIcon.d.ts +5 -2
- package/ListItemIcon/ListItemIcon.js +5 -16
- package/ListItemIcon/styled.d.ts +1 -2
- package/ListItemIcon/styled.js +5 -11
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +5 -3
- package/ListItemSecondaryAction/ListItemSecondaryAction.js +4 -2
- package/ListItemText/ListItemText.d.ts +2 -1
- package/ListItemText/ListItemText.js +4 -15
- package/ListSubheader/ListSubheader.d.ts +5 -3
- package/ListSubheader/ListSubheader.js +4 -2
- package/LocalizationProvider/LocalizationProvider.d.ts +4 -3
- package/LocalizationProvider/LocalizationProvider.js +5 -18
- package/MaskField/MaskField.d.ts +14 -4
- package/MaskField/MaskField.js +14 -25
- package/MaskField/types.d.ts +1 -1
- package/Menu/Menu.d.ts +5 -3
- package/Menu/Menu.js +4 -2
- package/Menu/index.d.ts +0 -1
- package/Menu/index.js +0 -1
- package/MenuGroup/MenuGroup.d.ts +8 -2
- package/MenuGroup/MenuGroup.js +7 -18
- package/MenuGroup/stories/Icons.js +8 -19
- package/MenuGroup/stories/styled.d.ts +4 -4
- package/MenuGroup/stories/styled.js +12 -17
- package/MenuGroup/styles.d.ts +8 -0
- package/MenuGroup/styles.js +22 -0
- package/MenuItem/MenuItem.d.ts +4 -3
- package/MenuItem/MenuItem.js +2 -29
- package/MenuList/MenuList.js +5 -16
- package/MenuList/styled.d.ts +4 -3
- package/MenuList/styled.js +10 -17
- package/MenuList/types.d.ts +2 -1
- package/NavMenu/NavMenu.d.ts +1 -1
- package/NavMenu/NavMenu.js +7 -18
- package/NavMenu/NavMenuItem/NavMenuItem.d.ts +2 -2
- package/NavMenu/NavMenuItem/NavMenuItem.js +13 -25
- package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.d.ts +1 -1
- package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +8 -19
- package/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +268 -6
- package/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +64 -30
- package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.d.ts +1 -1
- package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +8 -19
- package/Notification/Notification.d.ts +1 -1
- package/Notification/Notification.js +6 -37
- package/Notification/NotificationContainer/NotificationContainer.d.ts +2 -2
- package/Notification/NotificationContainer/NotificationContainer.js +7 -18
- package/Notification/NotificationContainer/styled.js +16 -7
- package/Notification/NotificationTemplate/NotificationTemplate.d.ts +2 -2
- package/Notification/NotificationTemplate/NotificationTemplate.js +10 -22
- package/Notification/NotificationTemplate/styled.d.ts +5 -5
- package/Notification/NotificationTemplate/styled.js +51 -51
- package/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +2 -2
- package/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +3 -3
- package/Notification/constants/notificationVariant.d.ts +1 -1
- package/Notification/constants/notificationVariant.js +7 -18
- package/Notification/constants/positions.js +1 -1
- package/Notification/styled.d.ts +12 -12
- package/Notification/styled.js +18 -27
- package/Notification/types.d.ts +2 -2
- package/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +5 -6
- package/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +2 -13
- package/OverflowTypography/OverflowTypography.d.ts +5 -5
- package/OverflowTypography/OverflowTypography.js +13 -22
- package/OverflowTypography/hooks/useOverflowed/useOverflowed.js +13 -16
- package/OverflowTypography/styles.d.ts +1 -1
- package/OverflowTypography/styles.js +14 -12
- package/PageAside/PageAside.d.ts +5 -0
- package/PageAside/PageAside.js +9 -0
- package/PageAside/index.d.ts +1 -0
- package/PageAside/index.js +17 -0
- package/PageAside/styles.d.ts +5 -0
- package/PageAside/styles.js +13 -0
- package/PageContent/PageContent.d.ts +17 -0
- package/PageContent/PageContent.js +10 -0
- package/PageContent/index.d.ts +1 -0
- package/PageContent/index.js +17 -0
- package/PageContent/styles.d.ts +10 -0
- package/PageContent/styles.js +11 -0
- package/PageHeader/ButtonGroup/ButtonGroup.d.ts +12 -0
- package/PageHeader/ButtonGroup/ButtonGroup.js +33 -0
- package/PageHeader/ButtonGroup/index.d.ts +1 -0
- package/PageHeader/ButtonGroup/index.js +17 -0
- package/{DatePicker/styled.d.ts → PageHeader/ButtonGroup/styles.d.ts} +1 -1
- package/PageHeader/ButtonGroup/styles.js +9 -0
- package/PageHeader/PageHeader.d.ts +55 -0
- package/PageHeader/PageHeader.js +12 -0
- package/PageHeader/PageHeaderDashboardStory.d.ts +2 -0
- package/PageHeader/PageHeaderDashboardStory.js +285 -0
- package/PageHeader/index.d.ts +1 -0
- package/PageHeader/index.js +17 -0
- package/PageHeader/styles.d.ts +32 -0
- package/PageHeader/styles.js +40 -0
- package/PageLayout/PageLayout.d.ts +30 -0
- package/PageLayout/PageLayout.js +14 -0
- package/PageLayout/index.d.ts +1 -0
- package/PageLayout/index.js +17 -0
- package/PageLayoutContainer/PageLayoutContainer.d.ts +5 -0
- package/PageLayoutContainer/PageLayoutContainer.js +7 -0
- package/PageLayoutContainer/index.d.ts +1 -0
- package/PageLayoutContainer/index.js +17 -0
- package/PageLayoutContainer/styles.d.ts +5 -0
- package/PageLayoutContainer/styles.js +16 -0
- package/Pagination/Pagination.js +4 -15
- package/Pagination/types.d.ts +2 -1
- package/Placeholder/Placeholder.d.ts +15 -7
- package/Placeholder/Placeholder.js +4 -16
- package/Placeholder/styles.d.ts +2 -2
- package/Placeholder/styles.js +70 -31
- package/Product/Product.d.ts +1 -1
- package/Product/Product.js +6 -17
- package/Product/styles.d.ts +4 -0
- package/Product/styles.js +8 -0
- package/Product/types.d.ts +3 -3
- package/ProductSwitcher/ProductSwitcher.d.ts +6 -0
- package/ProductSwitcher/ProductSwitcher.js +46 -0
- package/ProductSwitcher/ProductSwitcher.stories.d.ts +8 -0
- package/ProductSwitcher/ProductSwitcher.stories.js +97 -0
- package/ProductSwitcher/ProductSwitcherContent/ProductSwitcherContent.d.ts +9 -0
- package/ProductSwitcher/ProductSwitcherContent/ProductSwitcherContent.js +19 -0
- package/ProductSwitcher/ProductSwitcherContent/index.d.ts +1 -0
- package/ProductSwitcher/ProductSwitcherContent/index.js +17 -0
- package/ProductSwitcher/ProductSwitcherContent/styles.d.ts +11 -0
- package/ProductSwitcher/ProductSwitcherContent/styles.js +25 -0
- package/ProductSwitcher/index.d.ts +2 -0
- package/ProductSwitcher/index.js +18 -0
- package/ProductSwitcher/styles.d.ts +3 -0
- package/ProductSwitcher/styles.js +16 -0
- package/ProductSwitcher/types.d.ts +7 -0
- package/{MenuItem → ProductSwitcher}/types.js +0 -0
- package/Profile/Profile.js +10 -21
- package/Profile/styled.d.ts +1 -1
- package/Profile/styled.js +32 -36
- package/Profile/types.d.ts +4 -3
- package/Radio/Icon.js +6 -17
- package/Radio/Radio.d.ts +1 -1
- package/Radio/Radio.js +7 -18
- package/Radio/styled.js +43 -32
- package/Radio/types.d.ts +2 -1
- package/RadioGroup/RadioGroup.d.ts +5 -2
- package/RadioGroup/RadioGroup.js +4 -2
- package/Select/Select.d.ts +13 -3
- package/Select/Select.js +16 -27
- package/Select/index.d.ts +0 -1
- package/Select/index.js +0 -1
- package/{esm/Select/styled.d.ts → Select/styles.d.ts} +5 -5
- package/Select/styles.js +39 -0
- package/SideDialog/SideDialog.js +6 -17
- package/SideDialog/styled.d.ts +2 -1
- package/SideDialog/styled.js +8 -8
- package/SideDialog/types.d.ts +2 -1
- package/SideDialogActions/index.d.ts +1 -0
- package/SideDialogActions/index.js +1 -0
- package/SideDialogActions/types.d.ts +3 -1
- package/SideDialogContent/types.d.ts +3 -1
- package/SideDialogContentText/types.d.ts +3 -1
- package/SideDialogTitle/types.d.ts +3 -1
- package/Slide/Slide.d.ts +5 -3
- package/Slide/Slide.js +4 -2
- package/Stepper/ArrowConnector/ArrowConnector.d.ts +17 -0
- package/Stepper/ArrowConnector/ArrowConnector.js +9 -0
- package/Stepper/ArrowConnector/index.d.ts +1 -0
- package/Stepper/ArrowConnector/index.js +17 -0
- package/Stepper/Step/index.d.ts +1 -0
- package/Stepper/Step/index.js +5 -0
- package/Stepper/StepConnector/index.d.ts +4 -0
- package/Stepper/StepConnector/index.js +5 -0
- package/Stepper/StepIcon/StepIcon.d.ts +3 -0
- package/Stepper/StepIcon/StepIcon.js +20 -0
- package/Stepper/StepIcon/index.d.ts +1 -0
- package/Stepper/StepIcon/index.js +17 -0
- package/Stepper/StepIcon/styles.d.ts +49 -0
- package/Stepper/StepIcon/styles.js +14 -0
- package/Stepper/StepLabel/StepLabel.d.ts +5 -0
- package/Stepper/StepLabel/StepLabel.js +10 -0
- package/Stepper/StepLabel/index.d.ts +1 -0
- package/Stepper/StepLabel/index.js +17 -0
- package/Stepper/Stepper.d.ts +12 -0
- package/Stepper/Stepper.js +22 -0
- package/Stepper/enums.d.ts +4 -0
- package/Stepper/enums.js +8 -0
- package/Stepper/index.d.ts +4 -0
- package/Stepper/index.js +20 -0
- package/SwipeableDrawer/SwipeableDrawer.d.ts +29 -0
- package/SwipeableDrawer/SwipeableDrawer.js +21 -0
- package/SwipeableDrawer/index.d.ts +1 -0
- package/SwipeableDrawer/index.js +17 -0
- package/SwipeableDrawer/styles.d.ts +53 -0
- package/SwipeableDrawer/styles.js +92 -0
- package/Switch/Switch.d.ts +5 -0
- package/Switch/Switch.js +9 -0
- package/Switch/index.d.ts +1 -0
- package/Switch/index.js +17 -0
- package/Tab/Tab.d.ts +5 -0
- package/Tab/Tab.js +7 -0
- package/Tab/index.d.ts +1 -0
- package/Tab/index.js +17 -0
- package/Table/Table.d.ts +3 -1
- package/Table/Table.js +5 -16
- package/Table/TableBody/TableBody.d.ts +5 -3
- package/Table/TableBody/TableBody.js +4 -2
- package/Table/TableCell/TableCell.d.ts +5 -3
- package/Table/TableCell/TableCell.js +4 -2
- package/Table/TableContainer/TableContainer.d.ts +5 -3
- package/Table/TableContainer/TableContainer.js +4 -2
- package/Table/TableFooter/TableFooter.d.ts +5 -3
- package/Table/TableFooter/TableFooter.js +4 -2
- package/Table/TableHead/TableHead.d.ts +5 -3
- package/Table/TableHead/TableHead.js +4 -2
- package/Table/TableRow/TableRow.d.ts +5 -3
- package/Table/TableRow/TableRow.js +4 -2
- package/Table/TableSortLabel/TableSortLabel.d.ts +5 -3
- package/Table/TableSortLabel/TableSortLabel.js +4 -2
- package/Tabs/Tabs.d.ts +5 -0
- package/Tabs/Tabs.js +7 -0
- package/Tabs/index.d.ts +1 -0
- package/Tabs/index.js +17 -0
- package/Tag/Tag.d.ts +1 -1
- package/Tag/Tag.js +8 -19
- package/Tag/styled.d.ts +7 -5
- package/Tag/styled.js +84 -60
- package/Tag/types.d.ts +5 -4
- package/TextArea/TextArea.d.ts +1 -1
- package/TextArea/TextArea.js +6 -17
- package/TextArea/types.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/TextField/TextField.js +11 -22
- package/TextField/types.d.ts +2 -1
- package/ThemeProvider/ThemeProvider.d.ts +3 -3
- package/ThemeProvider/ThemeProvider.js +7 -18
- package/ToggleButton/index.d.ts +1 -0
- package/ToggleButton/index.js +5 -0
- package/ToggleButtonGroup/index.d.ts +1 -0
- package/ToggleButtonGroup/index.js +5 -0
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Tooltip/Tooltip.js +7 -18
- package/Tooltip/styled.js +43 -58
- package/Tooltip/types.d.ts +1 -1
- package/Typography/Typography.d.ts +35 -3
- package/Typography/Typography.js +24 -21
- package/Typography/enums.d.ts +6 -2
- package/Typography/enums.js +5 -1
- package/Typography/index.d.ts +0 -1
- package/Typography/index.js +0 -1
- package/Zoom/Zoom.d.ts +3 -3
- package/Zoom/Zoom.js +2 -2
- package/docs/Case/Case.d.ts +9 -0
- package/docs/Case/Case.js +18 -0
- package/docs/Case/index.d.ts +1 -0
- package/docs/Case/index.js +17 -0
- package/docs/Case/styles.d.ts +13 -0
- package/docs/Case/styles.js +16 -0
- package/docs/ExampleTemplate/ExampleTemplate.d.ts +14 -0
- package/docs/ExampleTemplate/ExampleTemplate.js +8 -0
- package/docs/ExampleTemplate/index.d.ts +1 -0
- package/docs/ExampleTemplate/index.js +17 -0
- package/docs/index.d.ts +2 -0
- package/docs/index.js +18 -0
- package/esm/ActionCell/ActionCell.d.ts +18 -10
- package/esm/ActionCell/ActionCell.js +27 -30
- package/esm/ActionCell/styles.js +4 -6
- package/esm/Alert/Alert.d.ts +26 -0
- package/esm/Alert/Alert.js +27 -0
- package/esm/Alert/index.d.ts +1 -0
- package/esm/Alert/index.js +1 -0
- package/esm/Alert/styles.d.ts +4 -0
- package/esm/Alert/styles.js +17 -0
- package/esm/Autocomplete/Autocomplete.d.ts +4 -3
- package/esm/Autocomplete/Autocomplete.js +17 -25
- package/esm/{MenuItem/types.js → Autocomplete/Autocomplete.test.d.ts} +0 -0
- package/esm/Autocomplete/Autocomplete.test.js +96 -0
- package/esm/Autocomplete/constants.d.ts +0 -4
- package/esm/Autocomplete/constants.js +1 -6
- package/esm/Autocomplete/enums.d.ts +4 -0
- package/esm/Autocomplete/enums.js +5 -0
- package/esm/BackdropStack/hooks/useBackdropStackToggle/index.d.ts +1 -0
- package/esm/BackdropStack/hooks/useBackdropStackToggle/index.js +1 -0
- package/esm/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.d.ts +33 -0
- package/esm/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.js +23 -0
- package/esm/BackdropStack/index.d.ts +2 -0
- package/esm/BackdropStack/index.js +2 -0
- package/esm/BackdropStack/services/BackdropStackManager/BackdropStackManager.d.ts +15 -0
- package/esm/BackdropStack/services/BackdropStackManager/BackdropStackManager.js +39 -0
- package/esm/BackdropStack/services/BackdropStackManager/index.d.ts +1 -0
- package/esm/BackdropStack/services/BackdropStackManager/index.js +1 -0
- package/esm/Badge/Badge.d.ts +1 -2
- package/esm/Badge/Badge.js +3 -15
- package/esm/Badge/styled.d.ts +10 -16
- package/esm/Badge/styled.js +25 -30
- package/esm/Badge/types.d.ts +3 -2
- package/esm/Breadcrumbs/index.d.ts +1 -0
- package/esm/Breadcrumbs/index.js +1 -0
- package/esm/Button/Button.d.ts +1 -1
- package/esm/Button/Button.js +6 -17
- package/esm/{Select/types.js → Button/Button.test.d.ts} +0 -0
- package/esm/Button/Button.test.js +34 -0
- package/esm/Button/styles.d.ts +72 -0
- package/esm/Button/styles.js +21 -0
- package/esm/Button/types.d.ts +2 -1
- package/esm/ButtonBase/ButtonBase.d.ts +1 -1
- package/esm/ButtonBase/ButtonBase.js +5 -16
- package/esm/ButtonBase/enums.d.ts +23 -0
- package/esm/ButtonBase/enums.js +27 -0
- package/esm/ButtonBase/index.d.ts +1 -1
- package/esm/ButtonBase/index.js +1 -1
- package/esm/ButtonBase/styles.d.ts +34 -0
- package/esm/ButtonBase/styles.js +241 -0
- package/esm/ButtonBase/types.d.ts +7 -6
- package/esm/Checkbox/Checkbox.d.ts +1 -1
- package/esm/Checkbox/Checkbox.js +5 -15
- package/esm/Checkbox/icons.js +6 -17
- package/esm/Checkbox/styled.js +45 -30
- package/esm/Checkbox/types.d.ts +2 -1
- package/esm/Chevron/Chevron.d.ts +3 -2
- package/esm/Chevron/Chevron.js +1 -12
- package/esm/Chevron/styles.d.ts +3 -3
- package/esm/Chevron/styles.js +10 -17
- package/esm/CircularProgress/CircularProgress.d.ts +2 -2
- package/esm/CircularProgress/CircularProgress.js +4 -15
- package/esm/CircularProgress/CircularProgressStory.d.ts +3 -3
- package/esm/CircularProgress/CircularProgressStory.js +2 -2
- package/esm/CircularProgress/CircularProgressStoryTemplate.js +2 -13
- package/esm/Collapse/Collapse.d.ts +5 -3
- package/esm/Collapse/Collapse.js +3 -2
- package/esm/ConfigProvider/ConfigProvider.d.ts +26 -0
- package/esm/ConfigProvider/ConfigProvider.js +21 -0
- package/esm/ConfigProvider/index.d.ts +1 -0
- package/esm/ConfigProvider/index.js +1 -0
- package/esm/ContentState/ContentState.d.ts +3 -3
- package/esm/ContentState/ContentState.js +10 -20
- package/esm/ContentState/styles.js +7 -6
- package/esm/ContentState/types.d.ts +1 -1
- package/esm/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/esm/DashboardLayout/DashboardLayout.js +2 -2
- package/esm/DashboardLayout/DashboardLayoutStory.d.ts +3 -3
- package/esm/DashboardLayout/DashboardLayoutStory.js +3 -14
- package/esm/DashboardLayout/DashboardLayoutStoryTemplate.js +2 -13
- package/esm/DashboardLayout/Header/Header.d.ts +5 -5
- package/esm/DashboardLayout/Header/Header.js +3 -17
- package/esm/DashboardLayout/Header/styles.d.ts +4 -3
- package/esm/DashboardLayout/Header/styles.js +16 -19
- package/esm/DashboardLayout/Main/Main.d.ts +1 -1
- package/esm/DashboardLayout/Main/Main.js +2 -14
- package/esm/DashboardLayout/Main/styled.js +6 -6
- package/esm/DashboardLayout/Sidebar/Sidebar.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/Sidebar.js +6 -17
- package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +3 -14
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +2 -2
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +3 -14
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +11 -9
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +4 -15
- package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.js +9 -10
- package/esm/DashboardLayout/Sidebar/styles.js +15 -23
- package/esm/DashboardLayout/styles.js +10 -8
- package/esm/DataGrid/DataGrid.d.ts +24 -7
- package/esm/DataGrid/DataGrid.js +30 -42
- package/esm/{Typography/types.js → DataGrid/DataGrid.test.d.ts} +0 -0
- package/esm/DataGrid/DataGrid.test.js +116 -0
- package/esm/DataGrid/DataGridBody/DataGridBody.d.ts +3 -2
- package/esm/DataGrid/DataGridBody/DataGridBody.js +14 -26
- package/esm/DataGrid/DataGridBody/styles.d.ts +6 -0
- package/esm/DataGrid/DataGridBody/styles.js +13 -0
- package/esm/DataGrid/DataGridCell/DataGridCell.d.ts +2 -2
- package/esm/DataGrid/DataGridCell/DataGridCell.js +3 -15
- package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +4 -4
- package/esm/DataGrid/DataGridHead/DataGridHead.js +15 -50
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +2 -2
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +22 -24
- package/esm/DataGrid/DataGridHeadColumn/styles.d.ts +11 -0
- package/esm/DataGrid/DataGridHeadColumn/styles.js +24 -0
- package/esm/DataGrid/DataGridLoader/DataGridLoader.d.ts +5 -2
- package/esm/DataGrid/DataGridLoader/DataGridLoader.js +3 -4
- package/esm/DataGrid/DataGridLoader/index.d.ts +1 -1
- package/esm/DataGrid/DataGridLoader/index.js +1 -1
- package/esm/DataGrid/DataGridLoader/styles.d.ts +20 -0
- package/esm/DataGrid/DataGridLoader/styles.js +24 -0
- package/esm/DataGrid/DataGridNoData/DataGridNoData.d.ts +22 -0
- package/esm/DataGrid/DataGridNoData/DataGridNoData.js +6 -0
- package/esm/DataGrid/DataGridNoData/index.d.ts +1 -0
- package/esm/DataGrid/DataGridNoData/index.js +1 -0
- package/esm/DataGrid/DataGridNoData/styles.d.ts +24 -0
- package/esm/DataGrid/DataGridNoData/styles.js +29 -0
- package/esm/DataGrid/{constants.d.ts → enums.d.ts} +0 -0
- package/esm/DataGrid/{constants.js → enums.js} +0 -0
- package/esm/DataGrid/styles.d.ts +38 -0
- package/esm/DataGrid/styles.js +23 -0
- package/esm/DataGrid/types.d.ts +7 -7
- package/esm/DataGridPagination/DataGridPagination.d.ts +1 -1
- package/esm/DataGridPagination/DataGridPagination.js +7 -18
- package/esm/DataGridPagination/styles.d.ts +1 -1
- package/esm/DataGridPagination/styles.js +9 -13
- package/esm/DatePicker/DateCalendar/DateCalendarBody/index.d.ts +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarBody/index.js +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarBody/styles.d.ts +11 -0
- package/esm/DatePicker/DateCalendar/DateCalendarBody/styles.js +9 -0
- package/esm/DatePicker/DateCalendar/DateCalendarBtn/DateCalendarBtn.d.ts +7 -0
- package/esm/DatePicker/DateCalendar/DateCalendarBtn/DateCalendarBtn.js +19 -0
- package/esm/DatePicker/DateCalendar/DateCalendarBtn/index.d.ts +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarBtn/index.js +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarBtn/styles.d.ts +4 -0
- package/esm/DatePicker/DateCalendar/DateCalendarBtn/styles.js +5 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/DateCalendarNextBtn.d.ts +3 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/DateCalendarNextBtn.js +21 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/index.d.ts +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/index.js +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/styles.d.ts +4 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/styles.js +6 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/DateCalendarPrevBtn.d.ts +3 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/DateCalendarPrevBtn.js +21 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/index.d.ts +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/index.js +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/styles.d.ts +4 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/styles.js +6 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/index.d.ts +2 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/index.js +2 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/styles.d.ts +4 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/styles.js +7 -0
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/types.d.ts +12 -0
- package/esm/{theme/__tests__/BaseTheme.test.d.ts → DatePicker/DateCalendar/DateCalendarChevronBtn/types.js} +0 -0
- package/esm/DatePicker/DateCalendar/DateCalendarGridBtn/index.d.ts +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarGridBtn/index.js +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarGridBtn/styles.d.ts +22 -0
- package/esm/DatePicker/DateCalendar/DateCalendarGridBtn/styles.js +69 -0
- package/esm/DatePicker/DateCalendar/DateCalendarHead/DateCalendarHead.d.ts +38 -0
- package/esm/DatePicker/DateCalendar/DateCalendarHead/DateCalendarHead.js +4 -0
- package/esm/DatePicker/DateCalendar/DateCalendarHead/index.d.ts +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarHead/index.js +1 -0
- package/esm/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +7 -0
- package/esm/DatePicker/DateCalendar/DateCalendarHead/styles.js +23 -0
- package/esm/DatePicker/DateCalendar/enums/calendarGridPositions.d.ts +6 -0
- package/esm/DatePicker/DateCalendar/enums/calendarGridPositions.js +7 -0
- package/esm/DatePicker/DateCalendar/index.d.ts +4 -0
- package/esm/DatePicker/DateCalendar/index.js +4 -0
- package/esm/DatePicker/DateCalendar/styles.d.ts +5 -0
- package/esm/DatePicker/DateCalendar/styles.js +12 -0
- package/esm/DatePicker/DatePicker.d.ts +41 -7
- package/esm/DatePicker/DatePicker.js +37 -52
- package/{theme/__tests__/BaseTheme.test.d.ts → esm/DatePicker/DatePicker.test.d.ts} +0 -0
- package/esm/DatePicker/DatePicker.test.js +90 -0
- package/esm/DatePicker/DatePickerClickAwayListener/DatePickerClickAwayListener.d.ts +6 -0
- package/esm/DatePicker/DatePickerClickAwayListener/DatePickerClickAwayListener.js +3 -0
- package/esm/DatePicker/DatePickerClickAwayListener/index.d.ts +1 -0
- package/esm/DatePicker/DatePickerClickAwayListener/index.js +1 -0
- package/esm/DatePicker/DatePickerInput/DatePickerInput.d.ts +8 -0
- package/esm/DatePicker/DatePickerInput/DatePickerInput.js +41 -0
- package/esm/DatePicker/DatePickerInput/index.d.ts +1 -0
- package/esm/DatePicker/DatePickerInput/index.js +1 -0
- package/esm/DatePicker/DatePickerInput/styles.d.ts +4 -0
- package/esm/DatePicker/DatePickerInput/styles.js +7 -0
- package/esm/DatePicker/DatePickerPopper/DatePickerPopper.d.ts +7 -0
- package/esm/DatePicker/DatePickerPopper/DatePickerPopper.js +31 -0
- package/esm/DatePicker/DatePickerPopper/index.d.ts +1 -0
- package/esm/DatePicker/DatePickerPopper/index.js +1 -0
- package/esm/DatePicker/DatePickerPopper/styles.d.ts +8 -0
- package/esm/DatePicker/DatePickerPopper/styles.js +12 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGrid/index.d.ts +1 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGrid/index.js +1 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGrid/styles.d.ts +5 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGrid/styles.js +8 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGridHead/DateDayPickerGridHead.d.ts +6 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGridHead/DateDayPickerGridHead.js +8 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGridHead/index.d.ts +1 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGridHead/index.js +1 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGridHead/styles.d.ts +5 -0
- package/esm/DatePicker/DayPicker/DateDayPickerGridHead/styles.js +11 -0
- package/esm/DatePicker/DayPicker/DayPicker.d.ts +13 -0
- package/esm/DatePicker/DayPicker/DayPicker.js +50 -0
- package/esm/DatePicker/DayPicker/hooks/useDaysGrid/index.d.ts +1 -0
- package/esm/DatePicker/DayPicker/hooks/useDaysGrid/index.js +1 -0
- package/esm/DatePicker/DayPicker/hooks/useDaysGrid/useDaysGrid.d.ts +25 -0
- package/esm/DatePicker/DayPicker/hooks/useDaysGrid/useDaysGrid.js +106 -0
- package/esm/DatePicker/DayPicker/index.d.ts +1 -0
- package/esm/DatePicker/DayPicker/index.js +1 -0
- package/esm/DatePicker/MinMaxDateContext/MinMaxDateContext.d.ts +7 -0
- package/esm/DatePicker/MinMaxDateContext/MinMaxDateContext.js +19 -0
- package/esm/DatePicker/MinMaxDateContext/index.d.ts +1 -0
- package/esm/DatePicker/MinMaxDateContext/index.js +1 -0
- package/esm/DatePicker/MonthPicker/MonthPicker.d.ts +6 -0
- package/esm/DatePicker/MonthPicker/MonthPicker.js +42 -0
- package/esm/DatePicker/MonthPicker/hooks/useMonthsGrid/index.d.ts +1 -0
- package/esm/DatePicker/MonthPicker/hooks/useMonthsGrid/index.js +1 -0
- package/esm/DatePicker/MonthPicker/hooks/useMonthsGrid/useMonthsGrid.d.ts +8 -0
- package/esm/DatePicker/MonthPicker/hooks/useMonthsGrid/useMonthsGrid.js +41 -0
- package/esm/DatePicker/MonthPicker/index.d.ts +1 -0
- package/esm/DatePicker/MonthPicker/index.js +1 -0
- package/esm/DatePicker/YearMonthDayPicker/YearMonthDayPicker.d.ts +6 -0
- package/esm/DatePicker/YearMonthDayPicker/YearMonthDayPicker.js +31 -0
- package/esm/DatePicker/YearMonthDayPicker/index.d.ts +1 -0
- package/esm/DatePicker/YearMonthDayPicker/index.js +1 -0
- package/esm/DatePicker/YearPicker/YearPicker.d.ts +6 -0
- package/esm/DatePicker/YearPicker/YearPicker.js +36 -0
- package/esm/DatePicker/YearPicker/constants.d.ts +1 -0
- package/esm/DatePicker/YearPicker/constants.js +1 -0
- package/esm/DatePicker/YearPicker/hooks/useYearsGrid/index.d.ts +1 -0
- package/esm/DatePicker/YearPicker/hooks/useYearsGrid/index.js +1 -0
- package/esm/DatePicker/YearPicker/hooks/useYearsGrid/useYearsGrid.d.ts +8 -0
- package/esm/DatePicker/YearPicker/hooks/useYearsGrid/useYearsGrid.js +40 -0
- package/esm/DatePicker/YearPicker/index.d.ts +1 -0
- package/esm/DatePicker/YearPicker/index.js +1 -0
- package/esm/DatePicker/constants/counts.d.ts +2 -0
- package/esm/DatePicker/constants/counts.js +2 -0
- package/esm/DatePicker/constants/russianMap.d.ts +2 -0
- package/esm/DatePicker/constants/russianMap.js +10 -0
- package/esm/DatePicker/hooks/index.d.ts +3 -0
- package/esm/DatePicker/hooks/index.js +3 -0
- package/esm/DatePicker/hooks/useBaseDateInRange/index.d.ts +1 -0
- package/esm/DatePicker/hooks/useBaseDateInRange/index.js +1 -0
- package/esm/DatePicker/hooks/useBaseDateInRange/useBaseDateInRange.d.ts +7 -0
- package/esm/DatePicker/hooks/useBaseDateInRange/useBaseDateInRange.js +21 -0
- package/esm/DatePicker/hooks/useCalendarNavigate/index.d.ts +1 -0
- package/esm/DatePicker/hooks/useCalendarNavigate/index.js +1 -0
- package/esm/DatePicker/hooks/useCalendarNavigate/useCalendarNavigate.d.ts +20 -0
- package/esm/DatePicker/hooks/useCalendarNavigate/useCalendarNavigate.js +21 -0
- package/esm/DatePicker/hooks/useLocaleDateTimeFormat/index.d.ts +1 -0
- package/esm/DatePicker/hooks/useLocaleDateTimeFormat/index.js +1 -0
- package/esm/DatePicker/hooks/useLocaleDateTimeFormat/useLocaleDateTimeFormat.d.ts +3 -0
- package/esm/DatePicker/hooks/useLocaleDateTimeFormat/useLocaleDateTimeFormat.js +7 -0
- package/esm/DatePicker/hooks/useMaskedValue/index.d.ts +1 -0
- package/esm/DatePicker/hooks/useMaskedValue/index.js +1 -0
- package/esm/DatePicker/hooks/useMaskedValue/useMaskedValue.d.ts +27 -0
- package/esm/DatePicker/hooks/useMaskedValue/useMaskedValue.js +46 -0
- package/esm/DatePicker/hooks/useSelectedBaseDate/index.d.ts +1 -0
- package/esm/DatePicker/hooks/useSelectedBaseDate/index.js +1 -0
- package/esm/DatePicker/hooks/useSelectedBaseDate/useSelectedBaseDate.d.ts +1 -0
- package/esm/DatePicker/hooks/useSelectedBaseDate/useSelectedBaseDate.js +29 -0
- package/esm/DatePicker/index.d.ts +0 -1
- package/esm/DatePicker/index.js +0 -1
- package/esm/DatePicker/types/configTypes.d.ts +14 -0
- package/esm/DatePicker/types/configTypes.js +1 -0
- package/esm/DatePicker/types/gridBuilder.d.ts +44 -0
- package/esm/DatePicker/types/gridBuilder.js +1 -0
- package/esm/DatePicker/types/index.d.ts +4 -0
- package/esm/DatePicker/types/index.js +4 -0
- package/esm/DatePicker/types/minMaxDate.d.ts +4 -0
- package/esm/DatePicker/types/minMaxDate.js +1 -0
- package/esm/DatePicker/types/pickerProps.d.ts +11 -0
- package/esm/DatePicker/types/pickerProps.js +1 -0
- package/esm/DatePicker/utils/buildGridItem/buildGridResult.d.ts +22 -0
- package/esm/DatePicker/utils/buildGridItem/buildGridResult.js +16 -0
- package/esm/DatePicker/utils/buildGridItem/index.d.ts +1 -0
- package/esm/DatePicker/utils/buildGridItem/index.js +1 -0
- package/esm/DatePickerProvider/DatePickerProvider.d.ts +7 -11
- package/esm/DatePickerProvider/DatePickerProvider.js +5 -19
- package/esm/Description/Description.d.ts +12 -0
- package/esm/Description/Description.js +9 -0
- package/esm/Description/Name/Name.d.ts +4 -0
- package/esm/Description/Name/Name.js +17 -0
- package/esm/Description/Name/index.d.ts +1 -0
- package/esm/Description/Name/index.js +1 -0
- package/esm/Description/Value/Value.d.ts +10 -0
- package/esm/Description/Value/Value.js +18 -0
- package/esm/Description/Value/index.d.ts +1 -0
- package/esm/Description/Value/index.js +1 -0
- package/esm/Description/index.d.ts +1 -0
- package/esm/Description/index.js +1 -0
- package/esm/Description/styles.d.ts +5 -0
- package/esm/Description/styles.js +14 -0
- package/esm/Dialog/Dialog.d.ts +12 -1
- package/esm/Dialog/Dialog.js +7 -18
- package/esm/Dialog/index.d.ts +0 -1
- package/esm/Dialog/index.js +0 -1
- package/esm/DialogActions/DialogActions.d.ts +3 -1
- package/esm/DialogActions/DialogActions.js +3 -14
- package/esm/DialogContent/DialogContent.d.ts +5 -1
- package/esm/DialogContent/DialogContent.js +3 -1
- package/esm/DialogContentText/DialogContentText.d.ts +5 -1
- package/esm/DialogContentText/DialogContentText.js +3 -1
- package/esm/DialogTitle/DialogTitle.d.ts +2 -1
- package/esm/DialogTitle/DialogTitle.js +4 -15
- package/esm/Divider/Divider.d.ts +5 -3
- package/esm/Divider/Divider.js +3 -2
- package/esm/DropdownButton/DropdownButton.d.ts +2 -2
- package/esm/DropdownButton/DropdownButton.js +4 -15
- package/esm/DropdownButton/DropdownButton.test.d.ts +1 -0
- package/esm/DropdownButton/DropdownButton.test.js +35 -0
- package/esm/ErrorBoundary/ErrorBoundary.d.ts +18 -0
- package/esm/ErrorBoundary/ErrorBoundary.js +29 -0
- package/esm/ErrorBoundary/index.d.ts +1 -0
- package/esm/ErrorBoundary/index.js +1 -0
- package/esm/Fab/Fab.d.ts +9 -0
- package/esm/Fab/Fab.js +19 -0
- package/esm/Fab/enums.d.ts +17 -0
- package/esm/Fab/enums.js +20 -0
- package/esm/Fab/index.d.ts +2 -0
- package/esm/Fab/index.js +2 -0
- package/esm/Fab/styles.d.ts +38 -0
- package/esm/Fab/styles.js +77 -0
- package/esm/Fab/types.d.ts +2 -0
- package/esm/Fab/types.js +1 -0
- package/esm/Fade/Fade.d.ts +3 -3
- package/esm/Fade/Fade.js +2 -2
- package/esm/FormControl/FormControl.d.ts +5 -0
- package/esm/FormControl/FormControl.js +3 -0
- package/esm/FormControl/index.d.ts +1 -0
- package/esm/FormControl/index.js +1 -0
- package/esm/FormControlLabel/FormControlLabel.d.ts +1 -1
- package/esm/FormControlLabel/FormControlLabel.js +2 -25
- package/esm/FormControlLabel/styled.d.ts +2 -1
- package/esm/FormControlLabel/styled.js +8 -9
- package/esm/FormControlLabel/types.d.ts +2 -1
- package/esm/FormHelperText/FormHelperText.d.ts +7 -3
- package/esm/FormHelperText/FormHelperText.js +16 -18
- package/esm/FormHelperText/FormHelperTextContent/FormHelperTextContent.d.ts +7 -0
- package/esm/FormHelperText/FormHelperTextContent/FormHelperTextContent.js +18 -0
- package/esm/FormHelperText/FormHelperTextContent/index.d.ts +1 -0
- package/esm/FormHelperText/FormHelperTextContent/index.js +1 -0
- package/esm/FormHelperText/FormHelperTextContent/styles.d.ts +46 -0
- package/esm/FormHelperText/FormHelperTextContent/styles.js +31 -0
- package/esm/GlobalStyles/GlobalStyles.js +7 -15
- package/esm/Grid/Grid.d.ts +8 -3
- package/esm/Grid/Grid.js +5 -15
- package/esm/Grid/Grid.test.d.ts +1 -0
- package/esm/Grid/Grid.test.js +19 -0
- package/esm/Grid/styled.d.ts +5 -3
- package/esm/Grid/styled.js +5 -9
- package/esm/Grid/types.d.ts +4 -7
- package/esm/IconButton/IconButton.d.ts +1 -1
- package/esm/IconButton/IconButton.js +4 -15
- package/esm/IconButton/styles.d.ts +7 -6
- package/esm/IconButton/styles.js +20 -16
- package/esm/IconDropdownButton/IconDropdownButton.d.ts +2 -2
- package/esm/IconDropdownButton/IconDropdownButton.js +4 -15
- package/esm/List/List.d.ts +2 -1
- package/esm/List/List.js +2 -13
- package/esm/ListItem/ListItem.d.ts +1 -1
- package/esm/ListItem/ListItem.js +2 -25
- package/esm/ListItem/styles.d.ts +11 -16
- package/esm/ListItem/styles.js +17 -30
- package/esm/ListItem/types.d.ts +2 -1
- package/esm/ListItemAvatar/ListItemAvatar.d.ts +5 -3
- package/esm/ListItemAvatar/ListItemAvatar.js +3 -2
- package/esm/ListItemButton/ListItemButton.d.ts +4 -3
- package/esm/ListItemButton/ListItemButton.js +2 -13
- package/esm/ListItemIcon/ListItemIcon.d.ts +5 -2
- package/esm/ListItemIcon/ListItemIcon.js +2 -13
- package/esm/ListItemIcon/styled.d.ts +1 -2
- package/esm/ListItemIcon/styled.js +3 -9
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +5 -3
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.js +3 -2
- package/esm/ListItemText/ListItemText.d.ts +2 -1
- package/esm/ListItemText/ListItemText.js +2 -13
- package/esm/ListSubheader/ListSubheader.d.ts +5 -3
- package/esm/ListSubheader/ListSubheader.js +3 -2
- package/esm/LocalizationProvider/LocalizationProvider.d.ts +4 -3
- package/esm/LocalizationProvider/LocalizationProvider.js +2 -15
- package/esm/MaskField/MaskField.d.ts +14 -4
- package/esm/MaskField/MaskField.js +11 -21
- package/esm/MaskField/types.d.ts +1 -1
- package/esm/Menu/Menu.d.ts +5 -3
- package/esm/Menu/Menu.js +3 -2
- package/esm/Menu/index.d.ts +0 -1
- package/esm/Menu/index.js +0 -1
- package/esm/MenuGroup/MenuGroup.d.ts +8 -2
- package/esm/MenuGroup/MenuGroup.js +5 -16
- package/esm/MenuGroup/stories/Icons.js +7 -18
- package/esm/MenuGroup/stories/styled.d.ts +4 -4
- package/esm/MenuGroup/stories/styled.js +9 -14
- package/esm/MenuGroup/styles.d.ts +8 -0
- package/esm/MenuGroup/styles.js +19 -0
- package/esm/MenuItem/MenuItem.d.ts +4 -3
- package/esm/MenuItem/MenuItem.js +1 -28
- package/esm/MenuList/MenuList.js +3 -14
- package/esm/MenuList/styled.d.ts +4 -3
- package/esm/MenuList/styled.js +8 -15
- package/esm/MenuList/types.d.ts +2 -1
- package/esm/NavMenu/NavMenu.d.ts +1 -1
- package/esm/NavMenu/NavMenu.js +3 -14
- package/esm/NavMenu/NavMenuItem/NavMenuItem.d.ts +2 -2
- package/esm/NavMenu/NavMenuItem/NavMenuItem.js +9 -21
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.d.ts +1 -1
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +3 -14
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +268 -6
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +60 -26
- package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.d.ts +1 -1
- package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +4 -15
- package/esm/Notification/Notification.d.ts +1 -1
- package/esm/Notification/Notification.js +5 -36
- package/esm/Notification/NotificationContainer/NotificationContainer.d.ts +2 -2
- package/esm/Notification/NotificationContainer/NotificationContainer.js +2 -13
- package/esm/Notification/NotificationContainer/styled.js +15 -6
- package/esm/Notification/NotificationTemplate/NotificationTemplate.d.ts +2 -2
- package/esm/Notification/NotificationTemplate/NotificationTemplate.js +6 -18
- package/esm/Notification/NotificationTemplate/styled.d.ts +5 -5
- package/esm/Notification/NotificationTemplate/styled.js +48 -48
- package/esm/Notification/NotificationTemplate/utils/getActionsDirection/getActionsDirection.js +2 -2
- package/esm/Notification/NotificationTemplate/utils/getNotificationTemplateStyles/getNotificationTemplateStyles.js +3 -3
- package/esm/Notification/constants/defaultNotificationProps.js +1 -1
- package/esm/Notification/constants/notificationVariant.d.ts +1 -1
- package/esm/Notification/constants/notificationVariant.js +5 -16
- package/esm/Notification/constants/positions.js +1 -1
- package/esm/Notification/styled.d.ts +12 -12
- package/esm/Notification/styled.js +20 -29
- package/esm/Notification/types.d.ts +2 -2
- package/esm/Notification/utils/getNotificationIconByVariant/getNotificationIconByVariant.js +2 -3
- package/esm/Notification/utils/notificationTemplatePropsCreator/notificationTemplatePropsCreator.js +2 -13
- package/esm/OverflowTypography/OverflowTypography.d.ts +5 -5
- package/esm/OverflowTypography/OverflowTypography.js +9 -18
- package/esm/OverflowTypography/hooks/useOverflowed/useOverflowed.js +11 -14
- package/esm/OverflowTypography/styles.d.ts +1 -1
- package/esm/OverflowTypography/styles.js +13 -11
- package/esm/PageAside/PageAside.d.ts +5 -0
- package/esm/PageAside/PageAside.js +5 -0
- package/esm/PageAside/index.d.ts +1 -0
- package/esm/PageAside/index.js +1 -0
- package/esm/PageAside/styles.d.ts +5 -0
- package/esm/PageAside/styles.js +10 -0
- package/esm/PageContent/PageContent.d.ts +17 -0
- package/esm/PageContent/PageContent.js +6 -0
- package/esm/PageContent/index.d.ts +1 -0
- package/esm/PageContent/index.js +1 -0
- package/esm/PageContent/styles.d.ts +10 -0
- package/esm/PageContent/styles.js +8 -0
- package/esm/PageHeader/ButtonGroup/ButtonGroup.d.ts +12 -0
- package/esm/PageHeader/ButtonGroup/ButtonGroup.js +29 -0
- package/esm/PageHeader/ButtonGroup/index.d.ts +1 -0
- package/esm/PageHeader/ButtonGroup/index.js +1 -0
- package/esm/PageHeader/ButtonGroup/styles.d.ts +5 -0
- package/esm/PageHeader/ButtonGroup/styles.js +6 -0
- package/esm/PageHeader/PageHeader.d.ts +55 -0
- package/esm/PageHeader/PageHeader.js +8 -0
- package/esm/PageHeader/PageHeaderDashboardStory.d.ts +2 -0
- package/esm/PageHeader/PageHeaderDashboardStory.js +281 -0
- package/esm/PageHeader/index.d.ts +1 -0
- package/esm/PageHeader/index.js +1 -0
- package/esm/PageHeader/styles.d.ts +32 -0
- package/esm/PageHeader/styles.js +37 -0
- package/esm/PageLayout/PageLayout.d.ts +30 -0
- package/esm/PageLayout/PageLayout.js +10 -0
- package/esm/PageLayout/index.d.ts +1 -0
- package/esm/PageLayout/index.js +1 -0
- package/esm/PageLayoutContainer/PageLayoutContainer.d.ts +5 -0
- package/esm/PageLayoutContainer/PageLayoutContainer.js +3 -0
- package/esm/PageLayoutContainer/index.d.ts +1 -0
- package/esm/PageLayoutContainer/index.js +1 -0
- package/esm/PageLayoutContainer/styles.d.ts +5 -0
- package/esm/PageLayoutContainer/styles.js +13 -0
- package/esm/Pagination/Pagination.js +2 -13
- package/esm/Pagination/types.d.ts +2 -1
- package/esm/Placeholder/Placeholder.d.ts +15 -7
- package/esm/Placeholder/Placeholder.js +2 -14
- package/esm/Placeholder/styles.d.ts +2 -2
- package/esm/Placeholder/styles.js +68 -29
- package/esm/Product/Product.d.ts +1 -1
- package/esm/Product/Product.js +4 -15
- package/esm/Product/styles.d.ts +4 -0
- package/esm/Product/styles.js +5 -0
- package/esm/Product/types.d.ts +3 -3
- package/esm/ProductSwitcher/ProductSwitcher.d.ts +6 -0
- package/esm/ProductSwitcher/ProductSwitcher.js +42 -0
- package/esm/ProductSwitcher/ProductSwitcher.stories.d.ts +8 -0
- package/esm/ProductSwitcher/ProductSwitcher.stories.js +91 -0
- package/esm/ProductSwitcher/ProductSwitcherContent/ProductSwitcherContent.d.ts +9 -0
- package/esm/ProductSwitcher/ProductSwitcherContent/ProductSwitcherContent.js +15 -0
- package/esm/ProductSwitcher/ProductSwitcherContent/index.d.ts +1 -0
- package/esm/ProductSwitcher/ProductSwitcherContent/index.js +1 -0
- package/esm/ProductSwitcher/ProductSwitcherContent/styles.d.ts +11 -0
- package/esm/ProductSwitcher/ProductSwitcherContent/styles.js +22 -0
- package/esm/ProductSwitcher/index.d.ts +2 -0
- package/esm/ProductSwitcher/index.js +2 -0
- package/esm/ProductSwitcher/styles.d.ts +3 -0
- package/esm/ProductSwitcher/styles.js +13 -0
- package/esm/ProductSwitcher/types.d.ts +7 -0
- package/esm/ProductSwitcher/types.js +1 -0
- package/esm/Profile/Profile.js +4 -15
- package/esm/Profile/styled.d.ts +1 -1
- package/esm/Profile/styled.js +30 -34
- package/esm/Profile/types.d.ts +4 -3
- package/esm/Radio/Icon.js +4 -15
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Radio/Radio.js +3 -14
- package/esm/Radio/styled.js +41 -30
- package/esm/Radio/types.d.ts +2 -1
- package/esm/RadioGroup/RadioGroup.d.ts +5 -2
- package/esm/RadioGroup/RadioGroup.js +3 -1
- package/esm/Select/Select.d.ts +13 -3
- package/esm/Select/Select.js +10 -21
- package/esm/Select/index.d.ts +0 -1
- package/esm/Select/index.js +0 -1
- package/{Select/styled.d.ts → esm/Select/styles.d.ts} +5 -5
- package/esm/Select/styles.js +36 -0
- package/esm/SideDialog/SideDialog.js +3 -14
- package/esm/SideDialog/styled.d.ts +2 -1
- package/esm/SideDialog/styled.js +6 -6
- package/esm/SideDialog/types.d.ts +2 -1
- package/esm/SideDialogActions/index.d.ts +1 -0
- package/esm/SideDialogActions/index.js +1 -0
- package/esm/SideDialogActions/types.d.ts +3 -1
- package/esm/SideDialogContent/types.d.ts +3 -1
- package/esm/SideDialogContentText/types.d.ts +3 -1
- package/esm/SideDialogTitle/types.d.ts +3 -1
- package/esm/Slide/Slide.d.ts +5 -3
- package/esm/Slide/Slide.js +3 -2
- package/esm/Stepper/ArrowConnector/ArrowConnector.d.ts +17 -0
- package/esm/Stepper/ArrowConnector/ArrowConnector.js +6 -0
- package/esm/Stepper/ArrowConnector/index.d.ts +1 -0
- package/esm/Stepper/ArrowConnector/index.js +1 -0
- package/esm/Stepper/Step/index.d.ts +1 -0
- package/esm/Stepper/Step/index.js +1 -0
- package/esm/Stepper/StepConnector/index.d.ts +4 -0
- package/esm/Stepper/StepConnector/index.js +1 -0
- package/esm/Stepper/StepIcon/StepIcon.d.ts +3 -0
- package/esm/Stepper/StepIcon/StepIcon.js +16 -0
- package/esm/Stepper/StepIcon/index.d.ts +1 -0
- package/esm/Stepper/StepIcon/index.js +1 -0
- package/esm/Stepper/StepIcon/styles.d.ts +49 -0
- package/esm/Stepper/StepIcon/styles.js +11 -0
- package/esm/Stepper/StepLabel/StepLabel.d.ts +5 -0
- package/esm/Stepper/StepLabel/StepLabel.js +6 -0
- package/esm/Stepper/StepLabel/index.d.ts +1 -0
- package/esm/Stepper/StepLabel/index.js +1 -0
- package/esm/Stepper/Stepper.d.ts +12 -0
- package/esm/Stepper/Stepper.js +18 -0
- package/esm/Stepper/enums.d.ts +4 -0
- package/esm/Stepper/enums.js +5 -0
- package/esm/Stepper/index.d.ts +4 -0
- package/esm/Stepper/index.js +4 -0
- package/esm/SwipeableDrawer/SwipeableDrawer.d.ts +29 -0
- package/esm/SwipeableDrawer/SwipeableDrawer.js +17 -0
- package/esm/SwipeableDrawer/index.d.ts +1 -0
- package/esm/SwipeableDrawer/index.js +1 -0
- package/esm/SwipeableDrawer/styles.d.ts +53 -0
- package/esm/SwipeableDrawer/styles.js +89 -0
- package/esm/Switch/Switch.d.ts +5 -0
- package/esm/Switch/Switch.js +6 -0
- package/esm/Switch/index.d.ts +1 -0
- package/esm/Switch/index.js +1 -0
- package/esm/Tab/Tab.d.ts +5 -0
- package/esm/Tab/Tab.js +3 -0
- package/esm/Tab/index.d.ts +1 -0
- package/esm/Tab/index.js +1 -0
- package/esm/Table/Table.d.ts +3 -1
- package/esm/Table/Table.js +3 -14
- package/esm/Table/TableBody/TableBody.d.ts +5 -3
- package/esm/Table/TableBody/TableBody.js +3 -2
- package/esm/Table/TableCell/TableCell.d.ts +5 -3
- package/esm/Table/TableCell/TableCell.js +3 -2
- package/esm/Table/TableContainer/TableContainer.d.ts +5 -3
- package/esm/Table/TableContainer/TableContainer.js +3 -2
- package/esm/Table/TableFooter/TableFooter.d.ts +5 -3
- package/esm/Table/TableFooter/TableFooter.js +3 -2
- package/esm/Table/TableHead/TableHead.d.ts +5 -3
- package/esm/Table/TableHead/TableHead.js +3 -2
- package/esm/Table/TableRow/TableRow.d.ts +5 -3
- package/esm/Table/TableRow/TableRow.js +3 -2
- package/esm/Table/TableSortLabel/TableSortLabel.d.ts +5 -3
- package/esm/Table/TableSortLabel/TableSortLabel.js +3 -2
- package/esm/Tabs/Tabs.d.ts +5 -0
- package/esm/Tabs/Tabs.js +3 -0
- package/esm/Tabs/index.d.ts +1 -0
- package/esm/Tabs/index.js +1 -0
- package/esm/Tag/Tag.d.ts +1 -1
- package/esm/Tag/Tag.js +5 -15
- package/esm/Tag/styled.d.ts +7 -5
- package/esm/Tag/styled.js +82 -58
- package/esm/Tag/types.d.ts +5 -4
- package/esm/TextArea/TextArea.d.ts +1 -1
- package/esm/TextArea/TextArea.js +3 -14
- package/esm/TextArea/types.d.ts +1 -1
- package/esm/TextField/TextField.d.ts +1 -1
- package/esm/TextField/TextField.js +8 -19
- package/esm/TextField/types.d.ts +2 -1
- package/esm/ThemeProvider/ThemeProvider.d.ts +3 -3
- package/esm/ThemeProvider/ThemeProvider.js +3 -14
- package/esm/ToggleButton/index.d.ts +1 -0
- package/esm/ToggleButton/index.js +1 -0
- package/esm/ToggleButtonGroup/index.d.ts +1 -0
- package/esm/ToggleButtonGroup/index.js +1 -0
- package/esm/Tooltip/Tooltip.d.ts +2 -2
- package/esm/Tooltip/Tooltip.js +3 -14
- package/esm/Tooltip/styled.js +39 -54
- package/esm/Tooltip/types.d.ts +1 -1
- package/esm/Typography/Typography.d.ts +35 -3
- package/esm/Typography/Typography.js +21 -18
- package/esm/Typography/enums.d.ts +6 -2
- package/esm/Typography/enums.js +5 -1
- package/esm/Typography/index.d.ts +0 -1
- package/esm/Typography/index.js +0 -1
- package/esm/Zoom/Zoom.d.ts +3 -3
- package/esm/Zoom/Zoom.js +2 -2
- package/esm/docs/Case/Case.d.ts +9 -0
- package/esm/docs/Case/Case.js +14 -0
- package/esm/docs/Case/index.d.ts +1 -0
- package/esm/docs/Case/index.js +1 -0
- package/esm/docs/Case/styles.d.ts +13 -0
- package/esm/docs/Case/styles.js +13 -0
- package/esm/docs/ExampleTemplate/ExampleTemplate.d.ts +14 -0
- package/esm/docs/ExampleTemplate/ExampleTemplate.js +4 -0
- package/esm/docs/ExampleTemplate/index.d.ts +1 -0
- package/esm/docs/ExampleTemplate/index.js +1 -0
- package/esm/docs/index.d.ts +2 -0
- package/esm/docs/index.js +2 -0
- package/esm/hooks/index.d.ts +3 -0
- package/esm/hooks/index.js +3 -0
- package/esm/hooks/useEscapeClickEffect/index.d.ts +1 -0
- package/esm/hooks/useEscapeClickEffect/index.js +1 -0
- package/esm/hooks/useEscapeClickEffect/useEscapeClickEffect.d.ts +19 -0
- package/esm/hooks/useEscapeClickEffect/useEscapeClickEffect.js +24 -0
- package/esm/hooks/useEscapeClickEffect/useEscapeClickEffect.test.d.ts +1 -0
- package/esm/hooks/useEscapeClickEffect/useEscapeClickEffect.test.js +26 -0
- package/esm/hooks/useForwardedRef/index.d.ts +1 -0
- package/esm/hooks/useForwardedRef/index.js +1 -0
- package/esm/hooks/useForwardedRef/useForwardedRef.d.ts +5 -0
- package/esm/hooks/useForwardedRef/useForwardedRef.js +9 -0
- package/esm/hooks/useMenu/index.d.ts +1 -0
- package/esm/hooks/useMenu/index.js +1 -0
- package/esm/hooks/{useMenu.d.ts → useMenu/useMenu.d.ts} +1 -1
- package/esm/hooks/useMenu/useMenu.js +19 -0
- package/esm/hooks/useRadioGroup/index.d.ts +1 -0
- package/esm/hooks/useRadioGroup/index.js +1 -0
- package/esm/hooks/useRadioGroup/useRadioGroup.d.ts +1 -0
- package/esm/hooks/useRadioGroup/useRadioGroup.js +1 -0
- package/esm/hooks/useToggle/index.d.ts +1 -0
- package/esm/hooks/useToggle/index.js +1 -0
- package/esm/hooks/useToggle/useToggle.d.ts +43 -0
- package/esm/hooks/useToggle/useToggle.js +19 -0
- package/esm/index.d.ts +21 -1
- package/esm/index.js +21 -1
- package/{theme → esm/theme/baseTheme}/baseTheme.d.ts +6 -6
- package/esm/theme/baseTheme/baseTheme.js +22 -0
- package/esm/theme/baseTheme/baseTheme.test.d.ts +1 -0
- package/esm/theme/{__tests__/BaseTheme.test.js → baseTheme/baseTheme.test.js} +13 -13
- package/esm/theme/baseTheme/index.d.ts +1 -0
- package/esm/theme/baseTheme/index.js +1 -0
- package/esm/theme/breakpoints.js +1 -1
- package/esm/theme/components/MuiAlert.d.ts +3 -0
- package/esm/theme/components/MuiAlert.js +49 -0
- package/esm/theme/components/MuiAutocomplete.js +13 -25
- package/esm/theme/components/MuiButton.js +51 -52
- package/esm/theme/components/MuiButtonBase.js +1 -1
- package/esm/theme/components/MuiCircularProgress.js +3 -4
- package/esm/theme/components/MuiDialog.js +3 -5
- package/esm/theme/components/MuiDialogActions.js +2 -3
- package/esm/theme/components/MuiDialogContent.js +2 -3
- package/esm/theme/components/MuiDialogTitle.js +5 -5
- package/esm/theme/components/MuiFormHelperText.js +2 -3
- package/esm/theme/components/MuiFormLabel.js +2 -2
- package/esm/theme/components/MuiInputLabel.js +2 -3
- package/esm/theme/components/MuiListItemButton.js +2 -3
- package/esm/theme/components/MuiListItemText.js +2 -2
- package/esm/theme/components/MuiLoadingButton.js +12 -14
- package/esm/theme/components/MuiMenu.js +3 -5
- package/esm/theme/components/MuiMenuItem.js +3 -3
- package/esm/theme/components/MuiOutlinedInput.js +7 -12
- package/esm/theme/components/MuiPaginationItem.js +5 -7
- package/esm/theme/components/MuiStep.d.ts +3 -0
- package/esm/theme/components/MuiStep.js +12 -0
- package/esm/theme/components/MuiStepConnector.d.ts +3 -0
- package/esm/theme/components/MuiStepConnector.js +7 -0
- package/esm/theme/components/MuiStepLabel.d.ts +3 -0
- package/esm/theme/components/MuiStepLabel.js +25 -0
- package/esm/theme/components/MuiSwitch.d.ts +3 -0
- package/esm/theme/components/MuiSwitch.js +122 -0
- package/esm/theme/components/MuiTab.d.ts +3 -0
- package/esm/theme/components/MuiTab.js +11 -0
- package/esm/theme/components/MuiTableCell.js +2 -2
- package/esm/theme/components/MuiTableHead.js +3 -4
- package/esm/theme/components/MuiTableRow.js +2 -3
- package/esm/theme/components/MuiTabs.d.ts +3 -0
- package/esm/theme/components/MuiTabs.js +15 -0
- package/esm/theme/components/MuiToggleButton.d.ts +3 -0
- package/esm/theme/components/MuiToggleButton.js +11 -0
- package/esm/theme/components/MuiToggleButtonGroup.d.ts +3 -0
- package/esm/theme/components/MuiToggleButtonGroup.js +6 -0
- package/esm/theme/components/MuiTypography.d.ts +1 -1
- package/esm/theme/components/MuiTypography.js +1 -1
- package/esm/theme/components/components.d.ts +1 -1
- package/esm/theme/components/components.js +78 -33
- package/esm/theme/constants.d.ts +1 -0
- package/esm/theme/constants.js +2 -1
- package/esm/theme/elevation.d.ts +1 -1
- package/esm/theme/elevation.js +1 -1
- package/esm/theme/hooks/useTheme/index.js +1 -1
- package/esm/theme/palette/brandPalette.d.ts +1 -1
- package/esm/theme/palette/brandPalette.js +27 -15
- package/esm/theme/palette/palette.d.ts +4 -4
- package/esm/theme/palette/palette.js +4 -16
- package/esm/theme/shape.d.ts +1 -1
- package/esm/theme/shape.js +1 -1
- package/esm/theme/typography.d.ts +2 -2
- package/esm/theme/typography.js +4 -5
- package/esm/types.d.ts +3 -1
- package/esm/utils/date/addDays/addDays.d.ts +7 -0
- package/esm/utils/date/addDays/addDays.js +8 -0
- package/esm/utils/date/addDays/index.d.ts +1 -0
- package/esm/utils/date/addDays/index.js +1 -0
- package/esm/utils/date/addMonths/addMonths.d.ts +7 -0
- package/esm/utils/date/addMonths/addMonths.js +8 -0
- package/esm/utils/date/addMonths/index.d.ts +1 -0
- package/esm/utils/date/addMonths/index.js +1 -0
- package/esm/utils/date/addYears/addYears.d.ts +7 -0
- package/esm/utils/date/addYears/addYears.js +8 -0
- package/esm/utils/date/addYears/index.d.ts +1 -0
- package/esm/utils/date/addYears/index.js +1 -0
- package/esm/utils/date/areDatesSame/areDatesSame.d.ts +4 -0
- package/esm/utils/date/areDatesSame/areDatesSame.js +5 -0
- package/esm/utils/date/areDatesSame/index.d.ts +1 -0
- package/esm/utils/date/areDatesSame/index.js +1 -0
- package/esm/utils/date/buildIsoDate/buildIsoDate.d.ts +5 -0
- package/esm/utils/date/buildIsoDate/buildIsoDate.js +5 -0
- package/esm/utils/date/buildIsoDate/buildIsoDateString.d.ts +33 -0
- package/esm/utils/date/buildIsoDate/buildIsoDateString.js +13 -0
- package/esm/utils/date/buildIsoDate/index.d.ts +2 -0
- package/esm/utils/date/buildIsoDate/index.js +2 -0
- package/esm/utils/date/format/formatDate/formatDate.d.ts +5 -0
- package/esm/utils/date/format/formatDate/formatDate.js +19 -0
- package/esm/utils/date/format/formatDate/index.d.ts +1 -0
- package/esm/utils/date/format/formatDate/index.js +1 -0
- package/esm/utils/date/format/index.d.ts +3 -0
- package/esm/utils/date/format/index.js +3 -0
- package/esm/utils/date/format/maskDate.d.ts +13 -0
- package/esm/utils/date/format/maskDate.js +9 -0
- package/esm/utils/date/format/parseDate/index.d.ts +1 -0
- package/esm/utils/date/format/parseDate/index.js +1 -0
- package/esm/utils/date/format/parseDate/parseDate.d.ts +5 -0
- package/esm/utils/date/format/parseDate/parseDate.js +21 -0
- package/esm/utils/date/index.d.ts +8 -0
- package/esm/utils/date/index.js +8 -0
- package/esm/utils/date/isDate/index.d.ts +1 -0
- package/esm/utils/date/isDate/index.js +1 -0
- package/esm/utils/date/isDate/isDate.d.ts +6 -0
- package/esm/utils/date/isDate/isDate.js +5 -0
- package/esm/utils/date/isDateOutOfRange/index.d.ts +1 -0
- package/esm/utils/date/isDateOutOfRange/index.js +1 -0
- package/esm/utils/date/isDateOutOfRange/isDateOutOfRange.d.ts +29 -0
- package/esm/utils/date/isDateOutOfRange/isDateOutOfRange.js +40 -0
- package/esm/utils/zeroPad/index.d.ts +1 -0
- package/esm/utils/zeroPad/index.js +1 -0
- package/esm/utils/zeroPad/zeroPad.d.ts +7 -0
- package/esm/utils/zeroPad/zeroPad.js +7 -0
- package/hooks/index.d.ts +3 -0
- package/hooks/index.js +3 -0
- package/hooks/useEscapeClickEffect/index.d.ts +1 -0
- package/hooks/useEscapeClickEffect/index.js +17 -0
- package/hooks/useEscapeClickEffect/useEscapeClickEffect.d.ts +19 -0
- package/hooks/useEscapeClickEffect/useEscapeClickEffect.js +28 -0
- package/hooks/useEscapeClickEffect/useEscapeClickEffect.test.d.ts +1 -0
- package/hooks/useEscapeClickEffect/useEscapeClickEffect.test.js +28 -0
- package/hooks/useForwardedRef/index.d.ts +1 -0
- package/hooks/useForwardedRef/index.js +17 -0
- package/hooks/useForwardedRef/useForwardedRef.d.ts +5 -0
- package/hooks/useForwardedRef/useForwardedRef.js +13 -0
- package/hooks/useMenu/index.d.ts +1 -0
- package/hooks/useMenu/index.js +17 -0
- package/hooks/{useMenu.d.ts → useMenu/useMenu.d.ts} +1 -1
- package/hooks/useMenu/useMenu.js +23 -0
- package/hooks/useRadioGroup/index.d.ts +1 -0
- package/hooks/useRadioGroup/index.js +17 -0
- package/hooks/useRadioGroup/useRadioGroup.d.ts +1 -0
- package/hooks/useRadioGroup/useRadioGroup.js +5 -0
- package/hooks/useToggle/index.d.ts +1 -0
- package/hooks/useToggle/index.js +17 -0
- package/hooks/useToggle/useToggle.d.ts +43 -0
- package/hooks/useToggle/useToggle.js +23 -0
- package/index.d.ts +21 -1
- package/index.js +21 -1
- package/package.json +20 -26
- package/{esm/theme → theme/baseTheme}/baseTheme.d.ts +6 -6
- package/theme/baseTheme/baseTheme.js +26 -0
- package/theme/baseTheme/baseTheme.test.d.ts +1 -0
- package/theme/{__tests__/BaseTheme.test.js → baseTheme/baseTheme.test.js} +14 -14
- package/theme/baseTheme/index.d.ts +1 -0
- package/theme/baseTheme/index.js +17 -0
- package/theme/components/MuiAlert.d.ts +3 -0
- package/theme/components/MuiAlert.js +52 -0
- package/theme/components/MuiAutocomplete.js +13 -25
- package/theme/components/MuiButton.js +62 -63
- package/theme/components/MuiCircularProgress.js +2 -3
- package/theme/components/MuiDialog.js +2 -4
- package/theme/components/MuiDialogActions.js +1 -2
- package/theme/components/MuiDialogContent.js +1 -2
- package/theme/components/MuiDialogTitle.js +4 -4
- package/theme/components/MuiFormHelperText.js +1 -2
- package/theme/components/MuiFormLabel.js +1 -1
- package/theme/components/MuiInputLabel.js +1 -2
- package/theme/components/MuiListItemButton.js +1 -2
- package/theme/components/MuiListItemText.js +1 -1
- package/theme/components/MuiLoadingButton.js +14 -16
- package/theme/components/MuiMenu.js +2 -4
- package/theme/components/MuiMenuItem.js +2 -2
- package/theme/components/MuiOutlinedInput.js +6 -11
- package/theme/components/MuiPaginationItem.js +4 -6
- package/theme/components/MuiStep.d.ts +3 -0
- package/theme/components/MuiStep.js +15 -0
- package/theme/components/MuiStepConnector.d.ts +3 -0
- package/theme/components/MuiStepConnector.js +10 -0
- package/theme/components/MuiStepLabel.d.ts +3 -0
- package/theme/components/MuiStepLabel.js +28 -0
- package/theme/components/MuiSwitch.d.ts +3 -0
- package/theme/components/MuiSwitch.js +125 -0
- package/theme/components/MuiTab.d.ts +3 -0
- package/theme/components/MuiTab.js +14 -0
- package/theme/components/MuiTableCell.js +1 -1
- package/theme/components/MuiTableHead.js +2 -3
- package/theme/components/MuiTableRow.js +1 -2
- package/theme/components/MuiTabs.d.ts +3 -0
- package/theme/components/MuiTabs.js +18 -0
- package/theme/components/MuiToggleButton.d.ts +3 -0
- package/theme/components/MuiToggleButton.js +14 -0
- package/theme/components/MuiToggleButtonGroup.d.ts +3 -0
- package/theme/components/MuiToggleButtonGroup.js +9 -0
- package/theme/components/MuiTypography.d.ts +1 -1
- package/theme/components/components.d.ts +1 -1
- package/theme/components/components.js +78 -33
- package/theme/constants.d.ts +1 -0
- package/theme/constants.js +1 -0
- package/theme/elevation.d.ts +1 -1
- package/theme/hooks/useTheme/index.js +2 -2
- package/theme/palette/brandPalette.d.ts +1 -1
- package/theme/palette/brandPalette.js +28 -16
- package/theme/palette/palette.d.ts +4 -4
- package/theme/palette/palette.js +6 -18
- package/theme/shape.d.ts +1 -1
- package/theme/typography.d.ts +2 -2
- package/theme/typography.js +3 -4
- package/types.d.ts +3 -1
- package/utils/date/addDays/addDays.d.ts +7 -0
- package/utils/date/addDays/addDays.js +15 -0
- package/utils/date/addDays/index.d.ts +1 -0
- package/utils/date/addDays/index.js +17 -0
- package/utils/date/addMonths/addMonths.d.ts +7 -0
- package/utils/date/addMonths/addMonths.js +15 -0
- package/utils/date/addMonths/index.d.ts +1 -0
- package/utils/date/addMonths/index.js +17 -0
- package/utils/date/addYears/addYears.d.ts +7 -0
- package/utils/date/addYears/addYears.js +15 -0
- package/utils/date/addYears/index.d.ts +1 -0
- package/utils/date/addYears/index.js +17 -0
- package/utils/date/areDatesSame/areDatesSame.d.ts +4 -0
- package/utils/date/areDatesSame/areDatesSame.js +9 -0
- package/utils/date/areDatesSame/index.d.ts +1 -0
- package/utils/date/areDatesSame/index.js +17 -0
- package/utils/date/buildIsoDate/buildIsoDate.d.ts +5 -0
- package/utils/date/buildIsoDate/buildIsoDate.js +9 -0
- package/utils/date/buildIsoDate/buildIsoDateString.d.ts +33 -0
- package/utils/date/buildIsoDate/buildIsoDateString.js +17 -0
- package/utils/date/buildIsoDate/index.d.ts +2 -0
- package/utils/date/buildIsoDate/index.js +18 -0
- package/utils/date/format/formatDate/formatDate.d.ts +5 -0
- package/utils/date/format/formatDate/formatDate.js +23 -0
- package/utils/date/format/formatDate/index.d.ts +1 -0
- package/utils/date/format/formatDate/index.js +17 -0
- package/utils/date/format/index.d.ts +3 -0
- package/utils/date/format/index.js +19 -0
- package/utils/date/format/maskDate.d.ts +13 -0
- package/utils/date/format/maskDate.js +12 -0
- package/utils/date/format/parseDate/index.d.ts +1 -0
- package/utils/date/format/parseDate/index.js +17 -0
- package/utils/date/format/parseDate/parseDate.d.ts +5 -0
- package/utils/date/format/parseDate/parseDate.js +25 -0
- package/utils/date/index.d.ts +8 -0
- package/utils/date/index.js +24 -0
- package/utils/date/isDate/index.d.ts +1 -0
- package/utils/date/isDate/index.js +17 -0
- package/utils/date/isDate/isDate.d.ts +6 -0
- package/utils/date/isDate/isDate.js +12 -0
- package/utils/date/isDateOutOfRange/index.d.ts +1 -0
- package/utils/date/isDateOutOfRange/index.js +17 -0
- package/utils/date/isDateOutOfRange/isDateOutOfRange.d.ts +29 -0
- package/utils/date/isDateOutOfRange/isDateOutOfRange.js +45 -0
- package/utils/zeroPad/index.d.ts +1 -0
- package/utils/zeroPad/index.js +17 -0
- package/utils/zeroPad/zeroPad.d.ts +7 -0
- package/utils/zeroPad/zeroPad.js +11 -0
- package/ButtonBase/constants.d.ts +0 -22
- package/ButtonBase/styled.d.ts +0 -31
- package/ButtonBase/styled.js +0 -256
- package/DataGrid/DataGridBody/styled.d.ts +0 -13
- package/DataGrid/DataGridBody/styled.js +0 -17
- package/DataGrid/DataGridHeadColumn/styled.d.ts +0 -39
- package/DataGrid/DataGridHeadColumn/styled.js +0 -29
- package/DataGrid/DataGridLoader/styled.d.ts +0 -27
- package/DataGrid/DataGridLoader/styled.js +0 -18
- package/DataGrid/styled.d.ts +0 -16
- package/DataGrid/styled.js +0 -17
- package/DatePicker/DatePickerDay/DatePickerDay.d.ts +0 -7
- package/DatePicker/DatePickerDay/DatePickerDay.js +0 -20
- package/DatePicker/DatePickerDay/index.d.ts +0 -1
- package/DatePicker/DatePickerDay/index.js +0 -5
- package/DatePicker/DatePickerDay/styled.d.ts +0 -4
- package/DatePicker/DatePickerDay/styled.js +0 -11
- package/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +0 -3
- package/DatePicker/DatePickerHeader/DatePickerHeader.js +0 -31
- package/DatePicker/DatePickerHeader/index.d.ts +0 -1
- package/DatePicker/DatePickerHeader/index.js +0 -5
- package/DatePicker/DatePickerHeader/styled.d.ts +0 -8
- package/DatePicker/DatePickerHeader/styled.js +0 -12
- package/DatePicker/styled.js +0 -73
- package/DatePicker/types.d.ts +0 -1
- package/Dialog/types.d.ts +0 -5
- package/FormHelperText/styled.d.ts +0 -37
- package/FormHelperText/styled.js +0 -22
- package/FormHelperText/types.d.ts +0 -6
- package/LocalizationProvider/types.d.ts +0 -2
- package/Menu/types.d.ts +0 -1
- package/MenuGroup/styled.d.ts +0 -8
- package/MenuGroup/styled.js +0 -24
- package/MenuGroup/types.d.ts +0 -8
- package/MenuItem/styled.d.ts +0 -31
- package/MenuItem/styled.js +0 -14
- package/MenuItem/types.d.ts +0 -1
- package/Select/styled.js +0 -34
- package/Select/types.d.ts +0 -7
- package/Select/types.js +0 -2
- package/Typography/types.d.ts +0 -25
- package/Typography/types.js +0 -2
- package/esm/ButtonBase/constants.d.ts +0 -22
- package/esm/ButtonBase/constants.js +0 -26
- package/esm/ButtonBase/styled.d.ts +0 -31
- package/esm/ButtonBase/styled.js +0 -225
- package/esm/DataGrid/DataGridBody/styled.d.ts +0 -13
- package/esm/DataGrid/DataGridBody/styled.js +0 -14
- package/esm/DataGrid/DataGridHeadColumn/styled.d.ts +0 -39
- package/esm/DataGrid/DataGridHeadColumn/styled.js +0 -26
- package/esm/DataGrid/DataGridLoader/styled.d.ts +0 -27
- package/esm/DataGrid/DataGridLoader/styled.js +0 -15
- package/esm/DataGrid/styled.d.ts +0 -16
- package/esm/DataGrid/styled.js +0 -14
- package/esm/DatePicker/DatePickerDay/DatePickerDay.d.ts +0 -7
- package/esm/DatePicker/DatePickerDay/DatePickerDay.js +0 -16
- package/esm/DatePicker/DatePickerDay/index.d.ts +0 -1
- package/esm/DatePicker/DatePickerDay/index.js +0 -1
- package/esm/DatePicker/DatePickerDay/styled.d.ts +0 -4
- package/esm/DatePicker/DatePickerDay/styled.js +0 -8
- package/esm/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +0 -3
- package/esm/DatePicker/DatePickerHeader/DatePickerHeader.js +0 -24
- package/esm/DatePicker/DatePickerHeader/index.d.ts +0 -1
- package/esm/DatePicker/DatePickerHeader/index.js +0 -1
- package/esm/DatePicker/DatePickerHeader/styled.d.ts +0 -8
- package/esm/DatePicker/DatePickerHeader/styled.js +0 -9
- package/esm/DatePicker/styled.js +0 -70
- package/esm/DatePicker/types.d.ts +0 -1
- package/esm/Dialog/types.d.ts +0 -5
- package/esm/FormHelperText/styled.d.ts +0 -37
- package/esm/FormHelperText/styled.js +0 -19
- package/esm/FormHelperText/types.d.ts +0 -6
- package/esm/LocalizationProvider/types.d.ts +0 -2
- package/esm/Menu/types.d.ts +0 -1
- package/esm/MenuGroup/styled.d.ts +0 -8
- package/esm/MenuGroup/styled.js +0 -21
- package/esm/MenuGroup/types.d.ts +0 -8
- package/esm/MenuItem/styled.d.ts +0 -31
- package/esm/MenuItem/styled.js +0 -11
- package/esm/MenuItem/types.d.ts +0 -1
- package/esm/Select/styled.js +0 -31
- package/esm/Select/types.d.ts +0 -7
- package/esm/Typography/types.d.ts +0 -25
- package/esm/hooks/useMenu.js +0 -20
- package/esm/theme/baseTheme.js +0 -22
- package/esm/theme/components/MuiInputBase.d.ts +0 -4
- package/esm/theme/components/MuiInputBase.js +0 -13
- package/hooks/useMenu.js +0 -24
- package/theme/baseTheme.js +0 -26
- package/theme/components/MuiInputBase.d.ts +0 -4
- package/theme/components/MuiInputBase.js +0 -16
package/DataGrid/DataGrid.js
CHANGED
|
@@ -1,66 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
-
if (ar || !(i in from)) {
|
|
16
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
-
ar[i] = from[i];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
-
};
|
|
22
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
4
|
};
|
|
25
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
6
|
exports.DataGrid = void 0;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
7
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
const react_1 = require("react");
|
|
9
|
+
const lodash_es_1 = require("lodash-es");
|
|
10
|
+
const Table_1 = require("../Table");
|
|
11
|
+
const DataGridHead_1 = require("./DataGridHead");
|
|
12
|
+
const DataGridBody_1 = require("./DataGridBody");
|
|
13
|
+
const DataGridLoader_1 = __importDefault(require("./DataGridLoader/DataGridLoader"));
|
|
14
|
+
const DataGridNoData_1 = require("./DataGridNoData");
|
|
15
|
+
const styles_1 = require("./styles");
|
|
16
|
+
function DataGrid({ columns, rows = [], selectedRows = [], sorting, maxHeight, minDisplayRows = 10, onRowClick, onSelectRow, Footer, noDataPlaceholder, loading, disabled, onSort, keyId, emptyCellValue, className, footerHeight = 50, }) {
|
|
17
|
+
const selectable = Boolean(onSelectRow);
|
|
18
|
+
const withFooter = Boolean(Footer);
|
|
19
|
+
const isTableDisabled = loading || disabled;
|
|
20
|
+
const TableContainer = isTableDisabled
|
|
21
|
+
? styles_1.DisabledTableContainer
|
|
22
|
+
: styles_1.StyledTableContainer;
|
|
23
|
+
const handleSelectAllRows = (event) => {
|
|
38
24
|
if (!onSelectRow) {
|
|
39
25
|
return;
|
|
40
26
|
}
|
|
41
27
|
if (event.target.checked) {
|
|
42
|
-
|
|
28
|
+
const mergedSelectedRows = (0, lodash_es_1.uniqBy)([...selectedRows, ...rows], keyId);
|
|
43
29
|
return onSelectRow(mergedSelectedRows);
|
|
44
30
|
}
|
|
45
|
-
|
|
31
|
+
const filteredRows = selectedRows.filter((selectedRow) => !rows.find((row) => row[keyId] === selectedRow[keyId]));
|
|
46
32
|
onSelectRow(filteredRows);
|
|
47
33
|
};
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return onSelectRow(selectedRows.filter(function (selectedRow) { return selectedRow[keyId] !== row[keyId]; }));
|
|
57
|
-
};
|
|
34
|
+
const handleSelectRow = (0, react_1.useCallback)((row) => (event) => {
|
|
35
|
+
if (!onSelectRow) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
if (event.target.checked) {
|
|
39
|
+
return onSelectRow([...selectedRows, row]);
|
|
40
|
+
}
|
|
41
|
+
return onSelectRow(selectedRows.filter((selectedRow) => selectedRow[keyId] !== row[keyId]));
|
|
58
42
|
}, [selectedRows, onSelectRow, keyId]);
|
|
59
|
-
|
|
60
|
-
return rows.filter(
|
|
61
|
-
return !selectedRows.find(function (selectedRow) { return selectedRow[keyId] === row[keyId]; });
|
|
62
|
-
}).length;
|
|
43
|
+
const uncheckedRowsCount = (0, react_1.useMemo)(() => {
|
|
44
|
+
return rows.filter((row) => !selectedRows.find((selectedRow) => selectedRow[keyId] === row[keyId])).length;
|
|
63
45
|
}, [rows, selectedRows, keyId]);
|
|
64
|
-
|
|
46
|
+
const renderedPlaceholder = (0, react_1.useCallback)(() => {
|
|
47
|
+
if (!loading) {
|
|
48
|
+
return noDataPlaceholder || (0, jsx_runtime_1.jsx)(DataGridNoData_1.DataGridNoData, {});
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}, [noDataPlaceholder, loading]);
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.DataGridContainer, Object.assign({ maxHeight: maxHeight, className: className }, { children: [(0, jsx_runtime_1.jsx)(TableContainer, Object.assign({ inert: isTableDisabled ? '' : false }, { children: (0, jsx_runtime_1.jsxs)(Table_1.Table, Object.assign({ stickyHeader: true }, { children: [(0, jsx_runtime_1.jsx)(DataGridHead_1.DataGridHead, { onSort: onSort, rowsCount: rows.length, uncheckedRowsCount: uncheckedRowsCount, onSelectAllRows: handleSelectAllRows, selectable: selectable, sorting: sorting, columns: columns }), (0, jsx_runtime_1.jsx)(DataGridBody_1.DataGridBody, { keyId: keyId, selectedRows: selectedRows, minDisplayRows: minDisplayRows, onRowClick: onRowClick, onSelectRow: handleSelectRow, selectable: selectable, rows: rows, columns: columns, emptyCellValue: emptyCellValue, noDataPlaceholder: renderedPlaceholder() })] })) })), (0, jsx_runtime_1.jsx)(DataGridLoader_1.default, { footerHeight: footerHeight, withFooter: withFooter, disabled: disabled, loading: loading }), Footer] })));
|
|
65
53
|
}
|
|
66
54
|
exports.DataGrid = DataGrid;
|
|
File without changes
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
13
|
+
const tests_1 = require("@astral/tests");
|
|
14
|
+
const react_1 = require("react");
|
|
15
|
+
const vitest_1 = require("vitest");
|
|
16
|
+
const DataGrid_1 = require("./DataGrid");
|
|
17
|
+
describe('DataGrid', () => {
|
|
18
|
+
it('Props:columns: отображаются названия колонок', () => {
|
|
19
|
+
const columns = [
|
|
20
|
+
{
|
|
21
|
+
field: 'name',
|
|
22
|
+
label: 'Наименование',
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
(0, tests_1.renderWithTheme)((0, jsx_runtime_1.jsx)(DataGrid_1.DataGrid, { keyId: "id", rows: [], columns: columns }));
|
|
26
|
+
const title = tests_1.screen.getByText('Наименование');
|
|
27
|
+
expect(title).toBeVisible();
|
|
28
|
+
});
|
|
29
|
+
it('Props:columns:sortable: отображается иконка сортировки', () => {
|
|
30
|
+
const columns = [
|
|
31
|
+
{
|
|
32
|
+
field: 'name',
|
|
33
|
+
label: 'Наименование',
|
|
34
|
+
sortable: true,
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
(0, tests_1.renderWithTheme)((0, jsx_runtime_1.jsx)(DataGrid_1.DataGrid, { keyId: "id", rows: [], columns: columns }));
|
|
38
|
+
const icon = tests_1.screen.getByText('Наименование').querySelector('svg');
|
|
39
|
+
expect(icon).not.toBeNull();
|
|
40
|
+
});
|
|
41
|
+
it('Props:columns:sortable: по клику на head cell вызывается onSort', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
|
+
const columns = [
|
|
43
|
+
{
|
|
44
|
+
field: 'name',
|
|
45
|
+
label: 'Наименование',
|
|
46
|
+
sortable: true,
|
|
47
|
+
},
|
|
48
|
+
];
|
|
49
|
+
let currentSort;
|
|
50
|
+
const TestComponent = () => {
|
|
51
|
+
const [sorting, setSorting] = (0, react_1.useState)();
|
|
52
|
+
const handleSort = (sort) => {
|
|
53
|
+
currentSort = sort;
|
|
54
|
+
setSorting(sort);
|
|
55
|
+
};
|
|
56
|
+
return ((0, jsx_runtime_1.jsx)(DataGrid_1.DataGrid, { keyId: "name", rows: [], sorting: sorting, onSort: handleSort, columns: columns }));
|
|
57
|
+
};
|
|
58
|
+
(0, tests_1.renderWithTheme)((0, jsx_runtime_1.jsx)(TestComponent, {}));
|
|
59
|
+
expect(currentSort).toBe(undefined);
|
|
60
|
+
yield tests_1.userEvents.click(tests_1.screen.getByText('Наименование'));
|
|
61
|
+
expect(currentSort).toEqual({ fieldId: 'name', sort: 'asc' });
|
|
62
|
+
yield tests_1.userEvents.click(tests_1.screen.getByText('Наименование'));
|
|
63
|
+
expect(currentSort).toEqual({ fieldId: 'name', sort: 'desc' });
|
|
64
|
+
yield tests_1.userEvents.click(tests_1.screen.getByText('Наименование'));
|
|
65
|
+
expect(currentSort).toBe(undefined);
|
|
66
|
+
}));
|
|
67
|
+
it('Props:columns:field: отображает в строке данные по field', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
68
|
+
(0, tests_1.renderWithTheme)((0, jsx_runtime_1.jsx)(DataGrid_1.DataGrid, { keyId: "name", rows: [{ name: 'Vasya' }], columns: [
|
|
69
|
+
{
|
|
70
|
+
field: 'name',
|
|
71
|
+
label: 'Наименование',
|
|
72
|
+
},
|
|
73
|
+
] }));
|
|
74
|
+
const title = tests_1.screen.getByText('Vasya');
|
|
75
|
+
expect(title).toBeVisible();
|
|
76
|
+
}));
|
|
77
|
+
it('Props:options=[]: отображается placeholder', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
78
|
+
const columns = [
|
|
79
|
+
{
|
|
80
|
+
field: 'name',
|
|
81
|
+
label: 'Наименование',
|
|
82
|
+
},
|
|
83
|
+
];
|
|
84
|
+
(0, tests_1.renderWithTheme)((0, jsx_runtime_1.jsx)(DataGrid_1.DataGrid, { keyId: "id", rows: [], columns: columns }));
|
|
85
|
+
const title = tests_1.screen.getByText('Нет данных');
|
|
86
|
+
expect(title).toBeVisible();
|
|
87
|
+
}));
|
|
88
|
+
it('Props:onRowClick: по клику на строку получаем данные row', () => __awaiter(void 0, void 0, void 0, function* () {
|
|
89
|
+
const onRowClick = vitest_1.vi.fn();
|
|
90
|
+
(0, tests_1.renderWithTheme)((0, jsx_runtime_1.jsx)(DataGrid_1.DataGrid, { keyId: "name", rows: [{ name: 'Vasya' }], onRowClick: onRowClick, columns: [
|
|
91
|
+
{
|
|
92
|
+
field: 'name',
|
|
93
|
+
label: 'Наименование',
|
|
94
|
+
},
|
|
95
|
+
] }));
|
|
96
|
+
yield tests_1.userEvents.click(tests_1.screen.getByText('Vasya'));
|
|
97
|
+
expect(onRowClick.mock.calls[0][0]).toEqual({ name: 'Vasya' });
|
|
98
|
+
}));
|
|
99
|
+
// TODO: https://astraltrack.atlassian.net/browse/UIKIT-309
|
|
100
|
+
// it('Props:emptyCellValue: по дефолту для пустого значения отображается -', async () => {
|
|
101
|
+
// renderWithTheme(
|
|
102
|
+
// <DataGrid<{ name?: string }>
|
|
103
|
+
// keyId="name"
|
|
104
|
+
// rows={[{}]}
|
|
105
|
+
// columns={[
|
|
106
|
+
// {
|
|
107
|
+
// field: 'name',
|
|
108
|
+
// label: 'Наименование',
|
|
109
|
+
// },
|
|
110
|
+
// ]}
|
|
111
|
+
// />,
|
|
112
|
+
// );
|
|
113
|
+
//
|
|
114
|
+
// const emptySymbol = screen.getByText('-');
|
|
115
|
+
//
|
|
116
|
+
// expect(emptySymbol).toBeVisible();
|
|
117
|
+
// });
|
|
118
|
+
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeEvent, ReactNode } from 'react';
|
|
2
2
|
import { DataGridColumns, DataGridRow } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type DataGridBodyProps<Data extends object> = {
|
|
4
4
|
columns: DataGridColumns<Data>[];
|
|
5
5
|
keyId: keyof DataGridRow;
|
|
6
6
|
onRowClick?: (row: Data) => void;
|
|
@@ -10,5 +10,6 @@ export declare type DataGridBodyProps<Data> = {
|
|
|
10
10
|
onSelectRow: (row: Data) => (event: ChangeEvent<HTMLInputElement>) => void;
|
|
11
11
|
minDisplayRows: number;
|
|
12
12
|
emptyCellValue?: ReactNode;
|
|
13
|
+
noDataPlaceholder?: ReactNode;
|
|
13
14
|
};
|
|
14
|
-
export declare function DataGridBody<Data>({ rows, columns, selectable, onRowClick, onSelectRow, selectedRows, minDisplayRows, keyId, emptyCellValue, }: DataGridBodyProps<Data>): JSX.Element;
|
|
15
|
+
export declare function DataGridBody<Data extends object>({ rows, columns, selectable, onRowClick, onSelectRow, selectedRows, minDisplayRows, keyId, emptyCellValue, noDataPlaceholder, }: DataGridBodyProps<Data>): JSX.Element;
|
|
@@ -1,44 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.DataGridBody = void 0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function DataGridBody(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var cellId = "".concat(rowId, "-").concat(index);
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const Table_1 = require("../../Table");
|
|
7
|
+
const DataGridCell_1 = require("../DataGridCell");
|
|
8
|
+
const Checkbox_1 = require("../../Checkbox");
|
|
9
|
+
const styles_1 = require("./styles");
|
|
10
|
+
function DataGridBody({ rows, columns, selectable, onRowClick, onSelectRow, selectedRows = [], minDisplayRows, keyId, emptyCellValue, noDataPlaceholder, }) {
|
|
11
|
+
const renderCells = (0, react_1.useCallback)((row, rowId) => {
|
|
12
|
+
return columns.map((cell, index) => {
|
|
13
|
+
const cellId = `${rowId}-${index}`;
|
|
26
14
|
return ((0, jsx_runtime_1.jsx)(DataGridCell_1.DataGridCell, { row: row, cell: cell, emptyCellValue: emptyCellValue }, cellId));
|
|
27
15
|
});
|
|
28
16
|
}, [columns]);
|
|
29
|
-
|
|
17
|
+
const handleRowClick = (row) => () => {
|
|
30
18
|
if (onRowClick) {
|
|
31
19
|
onRowClick(row);
|
|
32
20
|
}
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
return rows.map(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
Boolean(selectedRows.find(
|
|
39
|
-
return ((0, jsx_runtime_1.jsxs)(Table_1.TableRow,
|
|
21
|
+
};
|
|
22
|
+
const renderedRows = (0, react_1.useMemo)(() => {
|
|
23
|
+
return rows.map((row) => {
|
|
24
|
+
const rowId = row[keyId];
|
|
25
|
+
const checked = selectable &&
|
|
26
|
+
Boolean(selectedRows.find((selectedRow) => selectedRow[keyId] === rowId));
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(Table_1.TableRow, Object.assign({ hover: Boolean(onRowClick), onClick: handleRowClick(row) }, { children: [selectable && ((0, jsx_runtime_1.jsx)(Table_1.TableCell, Object.assign({ padding: "checkbox", onClick: (event) => event.stopPropagation() }, { children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: checked, onChange: onSelectRow(row) }) }))), renderCells(row, rowId)] }), rowId));
|
|
40
28
|
});
|
|
41
29
|
}, [rows, keyId, selectable, selectedRows, onSelectRow, onRowClick, columns]);
|
|
42
|
-
return ((0, jsx_runtime_1.jsx)(
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.StyledTableBody, Object.assign({ empty: !rows.length, minDisplayRows: minDisplayRows }, { children: rows.length ? renderedRows : noDataPlaceholder })));
|
|
43
31
|
}
|
|
44
32
|
exports.DataGridBody = DataGridBody;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledTableBody = void 0;
|
|
4
|
+
const styles_1 = require("../../styles");
|
|
5
|
+
const Table_1 = require("../../Table");
|
|
6
|
+
const TABLE_ROW_HEIGHT = 44;
|
|
7
|
+
exports.StyledTableBody = (0, styles_1.styled)(Table_1.TableBody, {
|
|
8
|
+
shouldForwardProp: (prop) => prop !== 'empty' && prop !== 'minDisplayRows',
|
|
9
|
+
}) `
|
|
10
|
+
height: ${({ empty, minDisplayRows }) => empty ? `${TABLE_ROW_HEIGHT * minDisplayRows}px` : '100%'};
|
|
11
|
+
|
|
12
|
+
/* Без этого в FF не применяется height */
|
|
13
|
+
&::after {
|
|
14
|
+
content: '';
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { DataGridColumns } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type CellProps<Data extends object> = {
|
|
4
4
|
row: Data;
|
|
5
5
|
cell: DataGridColumns<Data>;
|
|
6
6
|
emptyCellValue?: ReactNode;
|
|
7
7
|
};
|
|
8
|
-
export declare function DataGridCell<Data>({ row, cell: { field, renderCell, format, align }, emptyCellValue, }: CellProps<Data>): JSX.Element;
|
|
8
|
+
export declare function DataGridCell<Data extends object>({ row, cell: { field, renderCell, format, align }, emptyCellValue, }: CellProps<Data>): JSX.Element;
|
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.DataGridCell = void 0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function DataGridCell(
|
|
20
|
-
|
|
21
|
-
var formattedValue = (0, react_1.useMemo)(function () {
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const Table_1 = require("../../Table");
|
|
7
|
+
const Typography_1 = require("../../Typography");
|
|
8
|
+
function DataGridCell({ row, cell: { field, renderCell, format, align = 'left' }, emptyCellValue = '-', }) {
|
|
9
|
+
const formattedValue = (0, react_1.useMemo)(() => {
|
|
22
10
|
if (format) {
|
|
23
11
|
return format(row);
|
|
24
12
|
}
|
|
@@ -27,6 +15,6 @@ function DataGridCell(_a) {
|
|
|
27
15
|
}
|
|
28
16
|
return emptyCellValue;
|
|
29
17
|
}, [field, format, row, emptyCellValue]);
|
|
30
|
-
return ((0, jsx_runtime_1.jsxs)(Table_1.TableCell,
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(Table_1.TableCell, Object.assign({ align: align }, { children: [renderCell && renderCell(row), !renderCell && ((0, jsx_runtime_1.jsx)(Typography_1.Typography, { children: (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: formattedValue }) }))] })));
|
|
31
19
|
}
|
|
32
20
|
exports.DataGridCell = DataGridCell;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ChangeEvent } from 'react';
|
|
2
2
|
import { DataGridColumns, DataGridRow, DataGridSort } from '../types';
|
|
3
|
-
export
|
|
3
|
+
export type DataGridHeadProps<Data extends object = DataGridRow, SortField extends keyof Data = keyof Data> = {
|
|
4
4
|
columns: DataGridColumns<Data>[];
|
|
5
5
|
selectable: boolean;
|
|
6
6
|
onSelectAllRows: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
7
|
-
sorting
|
|
8
|
-
onSort?: (sorting: DataGridSort<SortField>
|
|
7
|
+
sorting?: DataGridSort<SortField>;
|
|
8
|
+
onSort?: (sorting: DataGridSort<SortField> | undefined) => void;
|
|
9
9
|
uncheckedRowsCount: number;
|
|
10
10
|
rowsCount: number;
|
|
11
11
|
};
|
|
12
|
-
export declare function DataGridHead<Data, SortField extends keyof Data>({ columns, selectable, onSelectAllRows, rowsCount, onSort, sorting, uncheckedRowsCount, }: DataGridHeadProps<Data, SortField>): JSX.Element;
|
|
12
|
+
export declare function DataGridHead<Data extends object, SortField extends keyof Data>({ columns, selectable, onSelectAllRows, rowsCount, onSort, sorting, uncheckedRowsCount, }: DataGridHeadProps<Data, SortField>): JSX.Element;
|
|
@@ -1,72 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
14
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
15
|
-
if (ar || !(i in from)) {
|
|
16
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
17
|
-
ar[i] = from[i];
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
21
|
-
};
|
|
22
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
3
|
exports.DataGridHead = void 0;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function DataGridHead(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var handleSort = (0, react_1.useCallback)(function (field) {
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const TableHead_1 = require("../../Table/TableHead");
|
|
7
|
+
const Table_1 = require("../../Table");
|
|
8
|
+
const Checkbox_1 = require("../../Checkbox");
|
|
9
|
+
const enums_1 = require("../enums");
|
|
10
|
+
const DataGridHeadColumn_1 = require("../DataGridHeadColumn");
|
|
11
|
+
function DataGridHead({ columns, selectable, onSelectAllRows, rowsCount, onSort, sorting, uncheckedRowsCount, }) {
|
|
12
|
+
const checked = (0, react_1.useMemo)(() => !Boolean(uncheckedRowsCount) && rowsCount > 0, [uncheckedRowsCount, rowsCount]);
|
|
13
|
+
const indeterminate = (0, react_1.useMemo)(() => uncheckedRowsCount > 0 && uncheckedRowsCount < rowsCount, [uncheckedRowsCount, rowsCount]);
|
|
14
|
+
const handleSort = (0, react_1.useCallback)((field) => {
|
|
36
15
|
if (!onSort) {
|
|
37
16
|
return;
|
|
38
17
|
}
|
|
39
|
-
|
|
40
|
-
var fieldId = _a.fieldId;
|
|
41
|
-
return fieldId === field;
|
|
42
|
-
});
|
|
18
|
+
const isCurrentField = (sorting === null || sorting === void 0 ? void 0 : sorting.fieldId) === field;
|
|
43
19
|
// если для выбранного столбца текущая сортировка ASC - меняем на DESC
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
var fieldId = _a.fieldId;
|
|
47
|
-
return fieldId !== field;
|
|
48
|
-
}), true), [
|
|
49
|
-
{ fieldId: field, sort: constants_1.SortStates.DESC },
|
|
50
|
-
], false);
|
|
51
|
-
return onSort(newSorting);
|
|
52
|
-
// если для выбранного столбца текущая сортировка DESC - убираем сортировку
|
|
20
|
+
if (isCurrentField && sorting.sort === enums_1.SortStates.ASC) {
|
|
21
|
+
return onSort({ fieldId: field, sort: enums_1.SortStates.DESC });
|
|
53
22
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return fieldId !== field;
|
|
58
|
-
});
|
|
59
|
-
return onSort(newSorting);
|
|
23
|
+
// если для выбранного столбца текущая сортировка DESC - убираем сортировку
|
|
24
|
+
if (isCurrentField && sorting.sort === enums_1.SortStates.DESC) {
|
|
25
|
+
return onSort(undefined);
|
|
60
26
|
}
|
|
61
27
|
// если для выбранного столбца нет сортировки - добавляем сортировку ASC
|
|
62
|
-
onSort(
|
|
28
|
+
onSort({ fieldId: field, sort: enums_1.SortStates.ASC });
|
|
63
29
|
}, [sorting, onSort]);
|
|
64
|
-
|
|
65
|
-
return columns.map(
|
|
66
|
-
var field = _a.field, label = _a.label, sortable = _a.sortable, align = _a.align, width = _a.width;
|
|
30
|
+
const renderColumns = (0, react_1.useMemo)(() => {
|
|
31
|
+
return columns.map(({ field, label, sortable, align, width }) => {
|
|
67
32
|
return ((0, jsx_runtime_1.jsx)(DataGridHeadColumn_1.DataGridHeadColumn, { sorting: sorting, field: field, onSort: handleSort, label: label, sortable: sortable, align: align, width: width }, label));
|
|
68
33
|
});
|
|
69
34
|
}, [columns, handleSort, sorting]);
|
|
70
|
-
return ((0, jsx_runtime_1.jsx)(TableHead_1.TableHead, { children: (0, jsx_runtime_1.jsxs)(Table_1.TableRow, { children: [selectable && ((0, jsx_runtime_1.jsx)(Table_1.TableCell,
|
|
35
|
+
return ((0, jsx_runtime_1.jsx)(TableHead_1.TableHead, { children: (0, jsx_runtime_1.jsxs)(Table_1.TableRow, { children: [selectable && ((0, jsx_runtime_1.jsx)(Table_1.TableCell, Object.assign({ padding: "checkbox" }, { children: (0, jsx_runtime_1.jsx)(Checkbox_1.Checkbox, { checked: checked, indeterminate: indeterminate, onChange: onSelectAllRows }) }))), renderColumns] }) }));
|
|
71
36
|
}
|
|
72
37
|
exports.DataGridHead = DataGridHead;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
import { TableCellProps } from '@mui/material';
|
|
3
3
|
import { DataGridRow, DataGridSort } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type DataGridHeadColumnProps<Data = DataGridRow, SortField extends keyof Data = keyof Data> = {
|
|
5
5
|
onSort: (field: SortField) => void;
|
|
6
|
-
sorting
|
|
6
|
+
sorting?: DataGridSort<SortField>;
|
|
7
7
|
label?: string;
|
|
8
8
|
sortable?: boolean;
|
|
9
9
|
align?: TableCellProps['align'];
|
|
@@ -1,35 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.DataGridHeadColumn = void 0;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
function DataGridHeadColumn(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
const icons_1 = require("@astral/icons");
|
|
7
|
+
const enums_1 = require("../enums");
|
|
8
|
+
const styles_1 = require("./styles");
|
|
9
|
+
function DataGridHeadColumn({ onSort, field, sortable, align, label, sorting, width, }) {
|
|
10
|
+
const sortIcon = (0, react_1.useMemo)(() => {
|
|
11
|
+
if (!sortable) {
|
|
12
|
+
return null;
|
|
13
|
+
}
|
|
14
|
+
if ((sorting === null || sorting === void 0 ? void 0 : sorting.fieldId) !== field) {
|
|
15
|
+
return (0, jsx_runtime_1.jsx)(icons_1.SortFillSm, {});
|
|
16
|
+
}
|
|
17
|
+
switch (sorting === null || sorting === void 0 ? void 0 : sorting.sort) {
|
|
18
|
+
case enums_1.SortStates.ASC:
|
|
19
|
+
return (0, jsx_runtime_1.jsx)(icons_1.SortUpFillSm, { color: "primary" });
|
|
20
|
+
case enums_1.SortStates.DESC:
|
|
21
|
+
return (0, jsx_runtime_1.jsx)(icons_1.SortDownFillSm, { color: "primary" });
|
|
22
|
+
default:
|
|
23
|
+
return (0, jsx_runtime_1.jsx)(icons_1.SortFillSm, {});
|
|
24
|
+
}
|
|
25
|
+
}, [sorting, sortable, field]);
|
|
26
|
+
const handleSortClick = () => {
|
|
29
27
|
if (field && sortable) {
|
|
30
28
|
onSort(field);
|
|
31
29
|
}
|
|
32
30
|
};
|
|
33
|
-
return ((0, jsx_runtime_1.
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.StyledTableCell, Object.assign({ onClick: handleSortClick, align: align, width: width, sortable: sortable }, { children: (0, jsx_runtime_1.jsxs)(styles_1.TableCellTitle, Object.assign({ variant: "pointer" }, { children: [label, sortIcon] })) })));
|
|
34
32
|
}
|
|
35
33
|
exports.DataGridHeadColumn = DataGridHeadColumn;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TableCellProps } from '@mui/material';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
export declare const StyledTableCell: import("@emotion/styled").StyledComponent<import("../../Table").TableCellProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
} & TableCellProps & {
|
|
6
|
+
width?: CSSProperties['width'];
|
|
7
|
+
sortable?: boolean | undefined;
|
|
8
|
+
}, {}, {}>;
|
|
9
|
+
export declare const TableCellTitle: import("@emotion/styled").StyledComponent<Pick<import("react").PropsWithChildren<import("../../Typography").TypographyProps>, string | number | symbol> & import("react").RefAttributes<HTMLElement> & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TableCellTitle = exports.StyledTableCell = void 0;
|
|
4
|
+
const styles_1 = require("../../styles");
|
|
5
|
+
const Table_1 = require("../../Table");
|
|
6
|
+
const Typography_1 = require("../../Typography");
|
|
7
|
+
exports.StyledTableCell = (0, styles_1.styled)(Table_1.TableCell, {
|
|
8
|
+
shouldForwardProp: (prop) => prop !== 'width' && prop !== 'sortable',
|
|
9
|
+
}) `
|
|
10
|
+
width: ${({ width = 'auto' }) => width};
|
|
11
|
+
padding: ${({ theme }) => theme.spacing(3, 4)};
|
|
12
|
+
|
|
13
|
+
color: ${({ theme }) => theme.palette.grey[700]};
|
|
14
|
+
|
|
15
|
+
cursor: ${({ sortable }) => (sortable ? 'pointer' : 'initial')};
|
|
16
|
+
|
|
17
|
+
user-select: none;
|
|
18
|
+
`;
|
|
19
|
+
exports.TableCellTitle = (0, styles_1.styled)(Typography_1.Typography) `
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
|
|
23
|
+
> svg {
|
|
24
|
+
width: 16px;
|
|
25
|
+
height: 16px;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export
|
|
2
|
+
export type DataGridLoaderProps = {
|
|
3
3
|
loading?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
withFooter: boolean;
|
|
6
|
+
footerHeight: number;
|
|
4
7
|
};
|
|
5
|
-
declare const DataGridLoader: ({ loading }: DataGridLoaderProps) => JSX.Element;
|
|
8
|
+
declare const DataGridLoader: ({ loading, disabled, withFooter, footerHeight, }: DataGridLoaderProps) => JSX.Element;
|
|
6
9
|
export default DataGridLoader;
|