@astral/ui 1.39.3 → 1.40.0
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 +6 -6
- package/Alert/Alert.d.ts +1 -1
- package/Autocomplete/Autocomplete.d.ts +3 -3
- package/Autocomplete/Autocomplete.js +1 -1
- package/Autocomplete/Autocomplete.test.d.ts +1 -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/useBackdropStackToggle.d.ts +3 -3
- package/BackdropStack/services/BackdropStackManager/BackdropStackManager.d.ts +1 -1
- package/Badge/types.d.ts +2 -2
- package/Breadcrumbs/index.d.ts +1 -0
- package/Breadcrumbs/index.js +5 -0
- package/Button/Button.d.ts +1 -1
- package/Button/Button.test.d.ts +1 -0
- package/Button/Button.test.js +35 -0
- package/Button/types.d.ts +1 -1
- package/ButtonBase/ButtonBase.d.ts +1 -1
- package/ButtonBase/styles.d.ts +2 -2
- package/ButtonBase/types.d.ts +5 -5
- package/Checkbox/Checkbox.d.ts +1 -1
- package/Checkbox/types.d.ts +1 -1
- package/Chevron/Chevron.d.ts +1 -1
- package/Chevron/styles.d.ts +1 -1
- package/CircularProgress/CircularProgress.d.ts +2 -2
- package/CircularProgress/CircularProgressStory.d.ts +1 -1
- package/Collapse/Collapse.d.ts +1 -1
- package/ConfigProvider/ConfigProvider.d.ts +3 -3
- package/ContentState/ContentState.d.ts +2 -2
- package/ContentState/types.d.ts +1 -1
- package/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/DashboardLayout/DashboardLayoutStory.d.ts +1 -1
- package/DashboardLayout/Header/Header.d.ts +1 -1
- package/DashboardLayout/Main/Main.d.ts +1 -1
- package/DashboardLayout/Sidebar/Sidebar.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +2 -2
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.d.ts +1 -1
- package/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +1 -1
- package/DataGrid/DataGrid.d.ts +1 -1
- package/DataGrid/DataGrid.js +2 -1
- package/DataGrid/DataGrid.test.d.ts +1 -0
- package/DataGrid/DataGrid.test.js +117 -0
- package/DataGrid/DataGridBody/DataGridBody.d.ts +1 -1
- package/DataGrid/DataGridCell/DataGridCell.d.ts +1 -1
- package/DataGrid/DataGridHead/DataGridHead.d.ts +1 -1
- package/DataGrid/DataGridHead/DataGridHead.js +5 -5
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +1 -1
- package/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +3 -3
- package/DataGrid/DataGridLoader/DataGridLoader.d.ts +1 -1
- package/DataGrid/DataGridLoader/styles.d.ts +1 -1
- package/DataGrid/DataGridNoData/DataGridNoData.d.ts +1 -1
- package/DataGrid/{constants.d.ts → enums.d.ts} +0 -0
- package/DataGrid/{constants.js → enums.js} +0 -0
- package/DataGrid/types.d.ts +7 -7
- package/DataGridPagination/DataGridPagination.d.ts +1 -1
- package/DatePicker/DateCalendar/DateCalendarBtn/DateCalendarBtn.d.ts +2 -2
- package/DatePicker/DateCalendar/DateCalendarBtn/styles.d.ts +1 -1
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/DateCalendarNextBtn.d.ts +1 -1
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/styles.d.ts +1 -1
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/DateCalendarPrevBtn.d.ts +1 -1
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/styles.d.ts +1 -1
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/styles.d.ts +1 -1
- package/DatePicker/DateCalendar/DateCalendarChevronBtn/types.d.ts +1 -1
- package/DatePicker/DateCalendar/DateCalendarGridBtn/styles.d.ts +3 -3
- package/DatePicker/DateCalendar/DateCalendarHead/DateCalendarHead.d.ts +2 -2
- package/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -1
- package/DatePicker/DatePicker.d.ts +1 -1
- package/DatePicker/DatePickerClickAwayListener/DatePickerClickAwayListener.d.ts +1 -1
- package/DatePicker/DatePickerInput/DatePickerInput.d.ts +2 -2
- package/DatePicker/DatePickerInput/styles.d.ts +1 -1
- package/DatePicker/DatePickerPopper/DatePickerPopper.d.ts +1 -1
- package/DatePicker/DayPicker/DateDayPickerGridHead/DateDayPickerGridHead.d.ts +1 -1
- package/DatePicker/DayPicker/DayPicker.d.ts +3 -3
- package/DatePicker/DayPicker/hooks/useDaysGrid/useDaysGrid.d.ts +2 -2
- package/DatePicker/MonthPicker/MonthPicker.d.ts +2 -2
- package/DatePicker/MonthPicker/hooks/useMonthsGrid/useMonthsGrid.d.ts +1 -1
- package/DatePicker/YearMonthDayPicker/YearMonthDayPicker.d.ts +2 -2
- package/DatePicker/YearPicker/YearPicker.d.ts +2 -2
- package/DatePicker/YearPicker/hooks/useYearsGrid/useYearsGrid.d.ts +1 -1
- package/DatePicker/hooks/useBaseDateInRange/useBaseDateInRange.d.ts +1 -1
- package/DatePicker/hooks/useCalendarNavigate/useCalendarNavigate.d.ts +1 -1
- package/DatePicker/hooks/useLocaleDateTimeFormat/useLocaleDateTimeFormat.d.ts +1 -1
- package/DatePicker/types/configTypes.d.ts +3 -3
- package/DatePicker/types/gridBuilder.d.ts +4 -4
- package/DatePicker/types/minMaxDate.d.ts +1 -1
- package/DatePicker/types/pickerProps.d.ts +1 -1
- package/DatePicker/utils/buildGridItem/buildGridResult.d.ts +1 -1
- package/DatePickerProvider/DatePickerProvider.d.ts +1 -1
- package/Description/Description.d.ts +1 -1
- package/Description/Name/Name.d.ts +1 -1
- package/Description/Value/Value.d.ts +1 -1
- package/Dialog/types.d.ts +1 -1
- package/DialogActions/DialogActions.d.ts +1 -1
- package/DialogContent/DialogContent.d.ts +1 -1
- package/DialogContentText/DialogContentText.d.ts +1 -1
- package/DialogTitle/DialogTitle.d.ts +1 -1
- package/Divider/Divider.d.ts +1 -1
- package/DropdownButton/DropdownButton.d.ts +2 -2
- package/ErrorBoundary/ErrorBoundary.d.ts +3 -3
- package/Fab/Fab.d.ts +2 -2
- package/Fab/types.d.ts +1 -1
- package/Fade/Fade.d.ts +1 -1
- package/FormControl/FormControl.d.ts +1 -1
- package/FormControlLabel/types.d.ts +1 -1
- package/FormHelperText/FormHelperText.d.ts +1 -1
- package/FormHelperText/FormHelperTextContent/FormHelperTextContent.d.ts +1 -1
- package/FormHelperText/FormHelperTextContent/styles.d.ts +3 -3
- package/Grid/types.d.ts +4 -4
- package/IconButton/IconButton.d.ts +1 -1
- package/IconButton/styles.d.ts +2 -2
- package/IconDropdownButton/IconDropdownButton.d.ts +2 -2
- package/List/List.d.ts +1 -1
- package/ListItem/styles.d.ts +8 -2
- package/ListItem/types.d.ts +1 -1
- package/ListItemAvatar/ListItemAvatar.d.ts +1 -1
- package/ListItemButton/ListItemButton.d.ts +2 -2
- package/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +1 -1
- package/ListItemText/ListItemText.d.ts +1 -1
- package/ListSubheader/ListSubheader.d.ts +1 -1
- package/LocalizationProvider/LocalizationProvider.d.ts +1 -1
- package/MaskField/MaskField.d.ts +4 -4
- package/MaskField/types.d.ts +1 -1
- package/Menu/Menu.d.ts +1 -1
- package/MenuGroup/types.d.ts +1 -1
- package/MenuItem/types.d.ts +1 -1
- package/MenuList/types.d.ts +1 -1
- package/NavMenu/NavMenu.d.ts +1 -1
- package/NavMenu/NavMenuItem/NavMenuItem.d.ts +1 -1
- package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.d.ts +1 -1
- package/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +8 -5
- package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.d.ts +1 -1
- package/Notification/Notification.d.ts +1 -1
- package/Notification/NotificationTemplate/styled.d.ts +2 -2
- package/Notification/constants/notificationVariant.d.ts +1 -1
- package/Notification/styled.d.ts +4 -4
- package/Notification/types.d.ts +2 -2
- package/OverflowTypography/OverflowTypography.d.ts +5 -5
- 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/PageHeader/ButtonGroup/styles.d.ts +5 -0
- 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 +38 -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/types.d.ts +1 -1
- package/Placeholder/Placeholder.d.ts +1 -1
- package/Product/Product.d.ts +1 -1
- package/Product/types.d.ts +1 -1
- package/ProductSwitcher/ProductSwitcher.d.ts +1 -1
- package/ProductSwitcher/ProductSwitcher.stories.d.ts +8 -0
- package/ProductSwitcher/ProductSwitcher.stories.js +90 -0
- package/ProductSwitcher/ProductSwitcherContent/ProductSwitcherContent.d.ts +1 -1
- package/ProductSwitcher/types.d.ts +1 -1
- package/Profile/styled.d.ts +1 -1
- package/Profile/types.d.ts +1 -1
- package/Radio/Radio.d.ts +1 -1
- package/Radio/types.d.ts +1 -1
- package/RadioGroup/RadioGroup.d.ts +1 -1
- package/Select/Select.d.ts +3 -3
- package/SideDialog/types.d.ts +1 -1
- package/SideDialogActions/types.d.ts +1 -1
- package/SideDialogContent/types.d.ts +1 -1
- package/SideDialogContentText/types.d.ts +1 -1
- package/SideDialogTitle/types.d.ts +1 -1
- package/Slide/Slide.d.ts +1 -1
- package/Stepper/ArrowConnector/ArrowConnector.d.ts +1 -1
- package/Stepper/StepConnector/index.d.ts +1 -1
- package/Stepper/StepIcon/styles.d.ts +3 -3
- package/Stepper/StepLabel/StepLabel.d.ts +1 -1
- package/Stepper/Stepper.d.ts +3 -3
- package/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/SwipeableDrawer/styles.d.ts +2 -2
- package/Tab/Tab.d.ts +1 -1
- package/Table/Table.d.ts +1 -1
- package/Table/TableBody/TableBody.d.ts +1 -1
- package/Table/TableCell/TableCell.d.ts +1 -1
- package/Table/TableContainer/TableContainer.d.ts +1 -1
- package/Table/TableFooter/TableFooter.d.ts +1 -1
- package/Table/TableHead/TableHead.d.ts +1 -1
- package/Table/TableRow/TableRow.d.ts +1 -1
- package/Table/TableSortLabel/TableSortLabel.d.ts +1 -1
- package/Tabs/Tabs.d.ts +1 -1
- package/Tag/Tag.d.ts +1 -1
- package/Tag/types.d.ts +4 -4
- package/TextArea/TextArea.d.ts +1 -1
- package/TextArea/types.d.ts +1 -1
- package/TextField/TextField.d.ts +1 -1
- package/TextField/types.d.ts +1 -1
- package/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/Tooltip/Tooltip.d.ts +2 -2
- package/Tooltip/types.d.ts +1 -1
- package/Typography/Typography.d.ts +3 -3
- package/Zoom/Zoom.d.ts +1 -1
- 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 +6 -6
- package/esm/Alert/Alert.d.ts +1 -1
- package/esm/Autocomplete/Autocomplete.d.ts +3 -3
- package/esm/Autocomplete/Autocomplete.js +2 -2
- package/esm/Autocomplete/Autocomplete.test.d.ts +1 -0
- package/esm/Autocomplete/Autocomplete.test.js +96 -0
- package/esm/Autocomplete/constants.d.ts +0 -4
- package/esm/Autocomplete/constants.js +0 -5
- package/esm/Autocomplete/enums.d.ts +4 -0
- package/esm/Autocomplete/enums.js +5 -0
- package/esm/BackdropStack/hooks/useBackdropStackToggle/useBackdropStackToggle.d.ts +3 -3
- package/esm/BackdropStack/services/BackdropStackManager/BackdropStackManager.d.ts +1 -1
- package/esm/Badge/types.d.ts +2 -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.test.d.ts +1 -0
- package/esm/Button/Button.test.js +33 -0
- package/esm/Button/types.d.ts +1 -1
- package/esm/ButtonBase/ButtonBase.d.ts +1 -1
- package/esm/ButtonBase/styles.d.ts +2 -2
- package/esm/ButtonBase/types.d.ts +5 -5
- package/esm/Checkbox/Checkbox.d.ts +1 -1
- package/esm/Checkbox/types.d.ts +1 -1
- package/esm/Chevron/Chevron.d.ts +1 -1
- package/esm/Chevron/styles.d.ts +1 -1
- package/esm/CircularProgress/CircularProgress.d.ts +2 -2
- package/esm/CircularProgress/CircularProgressStory.d.ts +1 -1
- package/esm/Collapse/Collapse.d.ts +1 -1
- package/esm/ConfigProvider/ConfigProvider.d.ts +3 -3
- package/esm/ContentState/ContentState.d.ts +2 -2
- package/esm/ContentState/types.d.ts +1 -1
- package/esm/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/esm/DashboardLayout/DashboardLayoutStory.d.ts +1 -1
- package/esm/DashboardLayout/Header/Header.d.ts +1 -1
- package/esm/DashboardLayout/Main/Main.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/Sidebar.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +2 -2
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.d.ts +1 -1
- package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +1 -1
- package/esm/DataGrid/DataGrid.d.ts +1 -1
- package/esm/DataGrid/DataGrid.js +2 -1
- package/esm/DataGrid/DataGrid.test.d.ts +1 -0
- package/esm/DataGrid/DataGrid.test.js +115 -0
- package/esm/DataGrid/DataGridBody/DataGridBody.d.ts +1 -1
- package/esm/DataGrid/DataGridCell/DataGridCell.d.ts +1 -1
- package/esm/DataGrid/DataGridHead/DataGridHead.d.ts +1 -1
- package/esm/DataGrid/DataGridHead/DataGridHead.js +1 -1
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.d.ts +1 -1
- package/esm/DataGrid/DataGridHeadColumn/DataGridHeadColumn.js +1 -1
- package/esm/DataGrid/DataGridLoader/DataGridLoader.d.ts +1 -1
- package/esm/DataGrid/DataGridLoader/styles.d.ts +1 -1
- package/esm/DataGrid/DataGridNoData/DataGridNoData.d.ts +1 -1
- package/esm/DataGrid/{constants.d.ts → enums.d.ts} +0 -0
- package/esm/DataGrid/{constants.js → enums.js} +0 -0
- package/esm/DataGrid/types.d.ts +7 -7
- package/esm/DataGridPagination/DataGridPagination.d.ts +1 -1
- package/esm/DatePicker/DateCalendar/DateCalendarBtn/DateCalendarBtn.d.ts +2 -2
- package/esm/DatePicker/DateCalendar/DateCalendarBtn/styles.d.ts +1 -1
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/DateCalendarNextBtn.d.ts +1 -1
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarNextBtn/styles.d.ts +1 -1
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/DateCalendarPrevBtn.d.ts +1 -1
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/DateCalendarPrevBtn/styles.d.ts +1 -1
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/styles.d.ts +1 -1
- package/esm/DatePicker/DateCalendar/DateCalendarChevronBtn/types.d.ts +1 -1
- package/esm/DatePicker/DateCalendar/DateCalendarGridBtn/styles.d.ts +3 -3
- package/esm/DatePicker/DateCalendar/DateCalendarHead/DateCalendarHead.d.ts +2 -2
- package/esm/DatePicker/DateCalendar/DateCalendarHead/styles.d.ts +1 -1
- package/esm/DatePicker/DatePicker.d.ts +1 -1
- package/esm/DatePicker/DatePickerClickAwayListener/DatePickerClickAwayListener.d.ts +1 -1
- package/esm/DatePicker/DatePickerInput/DatePickerInput.d.ts +2 -2
- package/esm/DatePicker/DatePickerInput/styles.d.ts +1 -1
- package/esm/DatePicker/DatePickerPopper/DatePickerPopper.d.ts +1 -1
- package/esm/DatePicker/DayPicker/DateDayPickerGridHead/DateDayPickerGridHead.d.ts +1 -1
- package/esm/DatePicker/DayPicker/DayPicker.d.ts +3 -3
- package/esm/DatePicker/DayPicker/hooks/useDaysGrid/useDaysGrid.d.ts +2 -2
- package/esm/DatePicker/MonthPicker/MonthPicker.d.ts +2 -2
- package/esm/DatePicker/MonthPicker/hooks/useMonthsGrid/useMonthsGrid.d.ts +1 -1
- package/esm/DatePicker/YearMonthDayPicker/YearMonthDayPicker.d.ts +2 -2
- package/esm/DatePicker/YearPicker/YearPicker.d.ts +2 -2
- package/esm/DatePicker/YearPicker/hooks/useYearsGrid/useYearsGrid.d.ts +1 -1
- package/esm/DatePicker/hooks/useBaseDateInRange/useBaseDateInRange.d.ts +1 -1
- package/esm/DatePicker/hooks/useCalendarNavigate/useCalendarNavigate.d.ts +1 -1
- package/esm/DatePicker/hooks/useLocaleDateTimeFormat/useLocaleDateTimeFormat.d.ts +1 -1
- package/esm/DatePicker/types/configTypes.d.ts +3 -3
- package/esm/DatePicker/types/gridBuilder.d.ts +4 -4
- package/esm/DatePicker/types/minMaxDate.d.ts +1 -1
- package/esm/DatePicker/types/pickerProps.d.ts +1 -1
- package/esm/DatePicker/utils/buildGridItem/buildGridResult.d.ts +1 -1
- package/esm/DatePickerProvider/DatePickerProvider.d.ts +1 -1
- package/esm/Description/Description.d.ts +1 -1
- package/esm/Description/Name/Name.d.ts +1 -1
- package/esm/Description/Value/Value.d.ts +1 -1
- package/esm/Dialog/types.d.ts +1 -1
- package/esm/DialogActions/DialogActions.d.ts +1 -1
- package/esm/DialogContent/DialogContent.d.ts +1 -1
- package/esm/DialogContentText/DialogContentText.d.ts +1 -1
- package/esm/DialogTitle/DialogTitle.d.ts +1 -1
- package/esm/Divider/Divider.d.ts +1 -1
- package/esm/DropdownButton/DropdownButton.d.ts +2 -2
- package/esm/ErrorBoundary/ErrorBoundary.d.ts +3 -3
- package/esm/Fab/Fab.d.ts +2 -2
- package/esm/Fab/types.d.ts +1 -1
- package/esm/Fade/Fade.d.ts +1 -1
- package/esm/FormControl/FormControl.d.ts +1 -1
- package/esm/FormControlLabel/types.d.ts +1 -1
- package/esm/FormHelperText/FormHelperText.d.ts +1 -1
- package/esm/FormHelperText/FormHelperTextContent/FormHelperTextContent.d.ts +1 -1
- package/esm/FormHelperText/FormHelperTextContent/styles.d.ts +3 -3
- package/esm/Grid/types.d.ts +4 -4
- package/esm/IconButton/IconButton.d.ts +1 -1
- package/esm/IconButton/styles.d.ts +2 -2
- package/esm/IconDropdownButton/IconDropdownButton.d.ts +2 -2
- package/esm/List/List.d.ts +1 -1
- package/esm/ListItem/styles.d.ts +8 -2
- package/esm/ListItem/types.d.ts +1 -1
- package/esm/ListItemAvatar/ListItemAvatar.d.ts +1 -1
- package/esm/ListItemButton/ListItemButton.d.ts +2 -2
- package/esm/ListItemIcon/ListItemIcon.d.ts +2 -2
- package/esm/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +1 -1
- package/esm/ListItemText/ListItemText.d.ts +1 -1
- package/esm/ListSubheader/ListSubheader.d.ts +1 -1
- package/esm/LocalizationProvider/LocalizationProvider.d.ts +1 -1
- package/esm/MaskField/MaskField.d.ts +4 -4
- package/esm/MaskField/types.d.ts +1 -1
- package/esm/Menu/Menu.d.ts +1 -1
- package/esm/MenuGroup/types.d.ts +1 -1
- package/esm/MenuItem/types.d.ts +1 -1
- package/esm/MenuList/types.d.ts +1 -1
- package/esm/NavMenu/NavMenu.d.ts +1 -1
- package/esm/NavMenu/NavMenuItem/NavMenuItem.d.ts +1 -1
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.d.ts +1 -1
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +8 -5
- package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.d.ts +1 -1
- package/esm/Notification/Notification.d.ts +1 -1
- package/esm/Notification/NotificationTemplate/styled.d.ts +2 -2
- package/esm/Notification/constants/notificationVariant.d.ts +1 -1
- package/esm/Notification/styled.d.ts +4 -4
- package/esm/Notification/types.d.ts +2 -2
- package/esm/OverflowTypography/OverflowTypography.d.ts +5 -5
- 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 +35 -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/types.d.ts +1 -1
- package/esm/Placeholder/Placeholder.d.ts +1 -1
- package/esm/Product/Product.d.ts +1 -1
- package/esm/Product/types.d.ts +1 -1
- package/esm/ProductSwitcher/ProductSwitcher.d.ts +1 -1
- package/esm/ProductSwitcher/ProductSwitcher.stories.d.ts +8 -0
- package/esm/ProductSwitcher/ProductSwitcher.stories.js +84 -0
- package/esm/ProductSwitcher/ProductSwitcherContent/ProductSwitcherContent.d.ts +1 -1
- package/esm/ProductSwitcher/types.d.ts +1 -1
- package/esm/Profile/styled.d.ts +1 -1
- package/esm/Profile/types.d.ts +1 -1
- package/esm/Radio/Radio.d.ts +1 -1
- package/esm/Radio/types.d.ts +1 -1
- package/esm/RadioGroup/RadioGroup.d.ts +1 -1
- package/esm/Select/Select.d.ts +3 -3
- package/esm/SideDialog/types.d.ts +1 -1
- package/esm/SideDialogActions/types.d.ts +1 -1
- package/esm/SideDialogContent/types.d.ts +1 -1
- package/esm/SideDialogContentText/types.d.ts +1 -1
- package/esm/SideDialogTitle/types.d.ts +1 -1
- package/esm/Slide/Slide.d.ts +1 -1
- package/esm/Stepper/ArrowConnector/ArrowConnector.d.ts +1 -1
- package/esm/Stepper/StepConnector/index.d.ts +1 -1
- package/esm/Stepper/StepIcon/styles.d.ts +3 -3
- package/esm/Stepper/StepLabel/StepLabel.d.ts +1 -1
- package/esm/Stepper/Stepper.d.ts +3 -3
- package/esm/SwipeableDrawer/SwipeableDrawer.d.ts +1 -1
- package/esm/SwipeableDrawer/styles.d.ts +2 -2
- package/esm/Tab/Tab.d.ts +1 -1
- package/esm/Table/Table.d.ts +1 -1
- package/esm/Table/TableBody/TableBody.d.ts +1 -1
- package/esm/Table/TableCell/TableCell.d.ts +1 -1
- package/esm/Table/TableContainer/TableContainer.d.ts +1 -1
- package/esm/Table/TableFooter/TableFooter.d.ts +1 -1
- package/esm/Table/TableHead/TableHead.d.ts +1 -1
- package/esm/Table/TableRow/TableRow.d.ts +1 -1
- package/esm/Table/TableSortLabel/TableSortLabel.d.ts +1 -1
- package/esm/Tabs/Tabs.d.ts +1 -1
- package/esm/Tag/Tag.d.ts +1 -1
- package/esm/Tag/types.d.ts +4 -4
- package/esm/TextArea/TextArea.d.ts +1 -1
- package/esm/TextArea/types.d.ts +1 -1
- package/esm/TextField/TextField.d.ts +1 -1
- package/esm/TextField/types.d.ts +1 -1
- package/esm/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/esm/Tooltip/Tooltip.d.ts +2 -2
- package/esm/Tooltip/types.d.ts +1 -1
- package/esm/Typography/Typography.d.ts +3 -3
- package/esm/Zoom/Zoom.d.ts +1 -1
- 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/useEscapeClickEffect/useEscapeClickEffect.d.ts +1 -1
- package/esm/hooks/useEscapeClickEffect/useEscapeClickEffect.test.d.ts +1 -0
- package/esm/hooks/useEscapeClickEffect/useEscapeClickEffect.test.js +25 -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.js → useMenu/useMenu.js} +0 -0
- package/esm/hooks/useToggle/useToggle.d.ts +6 -6
- package/esm/index.d.ts +5 -0
- package/esm/index.js +5 -0
- package/esm/theme/baseTheme/baseTheme.d.ts +3 -3
- package/esm/theme/components/MuiAutocomplete.js +1 -1
- package/esm/theme/components/MuiTypography.d.ts +1 -1
- package/esm/theme/components/components.d.ts +1 -1
- package/esm/theme/elevation.d.ts +1 -1
- package/esm/theme/palette/brandPalette.d.ts +1 -1
- package/esm/theme/palette/palette.d.ts +4 -4
- package/esm/theme/shape.d.ts +1 -1
- package/esm/theme/typography.d.ts +2 -2
- package/esm/types.d.ts +2 -2
- package/esm/utils/date/buildIsoDate/buildIsoDateString.d.ts +1 -1
- package/esm/utils/date/format/maskDate.d.ts +1 -1
- package/esm/utils/date/isDate/isDate.d.ts +1 -1
- package/esm/utils/date/isDateOutOfRange/isDateOutOfRange.d.ts +1 -1
- package/hooks/useEscapeClickEffect/useEscapeClickEffect.d.ts +1 -1
- package/hooks/useEscapeClickEffect/useEscapeClickEffect.test.d.ts +1 -0
- package/hooks/useEscapeClickEffect/useEscapeClickEffect.test.js +27 -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.js → useMenu/useMenu.js} +0 -0
- package/hooks/useToggle/useToggle.d.ts +6 -6
- package/index.d.ts +5 -0
- package/index.js +5 -0
- package/package.json +2 -2
- package/theme/baseTheme/baseTheme.d.ts +3 -3
- package/theme/components/MuiAutocomplete.js +2 -2
- package/theme/components/MuiTypography.d.ts +1 -1
- package/theme/components/components.d.ts +1 -1
- package/theme/elevation.d.ts +1 -1
- package/theme/palette/brandPalette.d.ts +1 -1
- package/theme/palette/palette.d.ts +4 -4
- package/theme/shape.d.ts +1 -1
- package/theme/typography.d.ts +2 -2
- package/types.d.ts +2 -2
- package/utils/date/buildIsoDate/buildIsoDateString.d.ts +1 -1
- package/utils/date/format/maskDate.d.ts +1 -1
- package/utils/date/isDate/isDate.d.ts +1 -1
- package/utils/date/isDateOutOfRange/isDateOutOfRange.d.ts +1 -1
package/Notification/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ToastOptions } from 'react-toastify/dist/types';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type Variant = 'success' | 'warning' | 'info' | 'error';
|
|
4
|
+
export type ActionsDirection = 'right' | 'left';
|
|
5
5
|
export interface NotificationProps extends Omit<ToastOptions, 'className' | 'style' | 'isLoading' | 'bodyClassName' | 'bodyStyle' | 'onOpen' | 'onClose' | 'type' | 'toastId' | 'updateId' | 'data' | 'progressClassName' | 'closeButton' | 'transition' | 'draggableDirection' | 'role' | 'containerId' | 'rtl' | 'icon' | 'theme'> {
|
|
6
6
|
/**
|
|
7
7
|
* @example notify.success('title')
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { TypographyProps } from '../Typography';
|
|
3
3
|
import { TooltipProps as BasicTooltipProps } from '../Tooltip';
|
|
4
|
-
|
|
5
|
-
export
|
|
4
|
+
type TooltipProps = Omit<BasicTooltipProps, 'ref'>;
|
|
5
|
+
export type OverflowedProps = {
|
|
6
6
|
/**
|
|
7
7
|
* @example <OverflowTypography rowsCount={2} />
|
|
8
8
|
* @default 1
|
|
@@ -10,15 +10,15 @@ export declare type OverflowedProps = {
|
|
|
10
10
|
*/
|
|
11
11
|
rowsCount?: number;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type TooltipCustomizable = {
|
|
14
14
|
/**
|
|
15
15
|
* @example <OverflowTypography tooltipProps={{placement: 'top-start'}} />
|
|
16
16
|
* @description способ кастомизировать тултип при необходимости
|
|
17
17
|
*/
|
|
18
18
|
tooltipProps?: Omit<TooltipProps, 'children'>;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
21
|
-
export
|
|
20
|
+
export type OverflowedElementProps = OverflowedProps & TooltipCustomizable & TypographyProps;
|
|
21
|
+
export type OverflowedTypographyProps = PropsWithChildren<OverflowedElementProps>;
|
|
22
22
|
export declare const DEFAULT_ROWS_COUNT = 1;
|
|
23
23
|
export declare const OverflowTypography: import("react").ForwardRefExoticComponent<Pick<OverflowedTypographyProps, string | number | symbol> & import("react").RefAttributes<HTMLElement>>;
|
|
24
24
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageAside = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const styles_1 = require("./styles");
|
|
6
|
+
const PageAside = ({ children }) => {
|
|
7
|
+
return (0, jsx_runtime_1.jsx)(styles_1.PageAsideWrapper, { children: children });
|
|
8
|
+
};
|
|
9
|
+
exports.PageAside = PageAside;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageAside';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PageAside"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PageAsideWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageAsideWrapper = void 0;
|
|
4
|
+
const styles_1 = require("../styles");
|
|
5
|
+
exports.PageAsideWrapper = styles_1.styled.aside `
|
|
6
|
+
grid-area: aside;
|
|
7
|
+
width: 320px;
|
|
8
|
+
padding: ${({ theme }) => theme.spacing(6)};
|
|
9
|
+
overflow: auto;
|
|
10
|
+
|
|
11
|
+
border-top: 1px solid ${({ theme }) => theme.palette.grey[300]};
|
|
12
|
+
border-left: 1px solid ${({ theme }) => theme.palette.grey[300]};
|
|
13
|
+
`;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type PageContentProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
/**
|
|
5
|
+
* @example <PageContent isSeparatorShown />
|
|
6
|
+
* @default false
|
|
7
|
+
* Флаг, отображающий границу шапки
|
|
8
|
+
*/
|
|
9
|
+
isSeparatorShown?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* @example <PageContent isPaddingDisabled>Контент</PageContent>
|
|
12
|
+
* @default true
|
|
13
|
+
* Флаг, добавляющий стандартные отсупы (требуются не всегда)
|
|
14
|
+
*/
|
|
15
|
+
isPaddingDisabled?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export declare const PageContent: (props: PageContentProps) => JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageContent = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const styles_1 = require("./styles");
|
|
6
|
+
const PageContent = (props) => {
|
|
7
|
+
const { children, isPaddingDisabled = true, isSeparatorShown = false, } = props;
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(styles_1.PageContentWrapper, Object.assign({ isPaddingDisabled: isPaddingDisabled, isSeparatorShown: isSeparatorShown }, { children: children })));
|
|
9
|
+
};
|
|
10
|
+
exports.PageContent = PageContent;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageContent';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PageContent"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type PageContentWrapperProps = {
|
|
3
|
+
isPaddingDisabled?: boolean;
|
|
4
|
+
isSeparatorShown?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const PageContentWrapper: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
} & PageContentWrapperProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageContentWrapper = void 0;
|
|
4
|
+
const styles_1 = require("../styles");
|
|
5
|
+
exports.PageContentWrapper = styles_1.styled.article `
|
|
6
|
+
grid-area: content;
|
|
7
|
+
padding: ${({ isPaddingDisabled, theme }) => isPaddingDisabled ? 0 : theme.spacing(0, 6)};
|
|
8
|
+
overflow: auto;
|
|
9
|
+
|
|
10
|
+
border-top: ${({ isSeparatorShown, theme }) => isSeparatorShown ? `1px solid ${theme.palette.grey[300]}` : 'none'};
|
|
11
|
+
`;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from '../../Button';
|
|
3
|
+
import { ListItemButtonProps } from '../../ListItemButton';
|
|
4
|
+
export type ButtonGroupProps = {
|
|
5
|
+
main?: (Omit<ButtonProps, 'children'> & {
|
|
6
|
+
text: string;
|
|
7
|
+
})[];
|
|
8
|
+
secondary?: (Omit<ListItemButtonProps, 'children'> & {
|
|
9
|
+
text: string;
|
|
10
|
+
})[];
|
|
11
|
+
};
|
|
12
|
+
export declare const ButtonGroup: (props: ButtonGroupProps) => JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ButtonGroup = void 0;
|
|
15
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
const icons_1 = require("@astral/icons");
|
|
17
|
+
const Button_1 = require("../../Button");
|
|
18
|
+
const ListItemButton_1 = require("../../ListItemButton");
|
|
19
|
+
const ListItemText_1 = require("../../ListItemText");
|
|
20
|
+
const IconDropdownButton_1 = require("../../IconDropdownButton");
|
|
21
|
+
const styles_1 = require("./styles");
|
|
22
|
+
const ButtonGroup = (props) => {
|
|
23
|
+
const { main, secondary } = props;
|
|
24
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.ButtonGroupWrapper, { children: [secondary && ((0, jsx_runtime_1.jsx)(IconDropdownButton_1.IconDropdownButton, Object.assign({ icon: (0, jsx_runtime_1.jsx)(icons_1.DotsOutlineMd, {}), variant: "light" }, { children: secondary.map((_a) => {
|
|
25
|
+
var { text } = _a, secondaryProps = __rest(_a, ["text"]);
|
|
26
|
+
return ((0, jsx_runtime_1.jsx)(ListItemButton_1.ListItemButton, Object.assign({}, secondaryProps, { children: (0, jsx_runtime_1.jsx)(ListItemText_1.ListItemText, { primary: text }) }), text));
|
|
27
|
+
}) }))), main &&
|
|
28
|
+
main.map((_a) => {
|
|
29
|
+
var { text } = _a, mainProps = __rest(_a, ["text"]);
|
|
30
|
+
return ((0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({}, mainProps, { children: text }), text));
|
|
31
|
+
})] }));
|
|
32
|
+
};
|
|
33
|
+
exports.ButtonGroup = ButtonGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ButtonGroup';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ButtonGroup"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ButtonGroupWrapper: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ButtonGroupWrapper = void 0;
|
|
4
|
+
const styles_1 = require("../../styles");
|
|
5
|
+
exports.ButtonGroupWrapper = styles_1.styled.div `
|
|
6
|
+
display: flex;
|
|
7
|
+
grid-area: actions;
|
|
8
|
+
gap: ${({ theme }) => theme.spacing(1)};
|
|
9
|
+
`;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { BaseButtonProps } from '../ButtonBase';
|
|
3
|
+
import { ButtonGroupProps } from './ButtonGroup';
|
|
4
|
+
export type PageHeaderProps = {
|
|
5
|
+
/**
|
|
6
|
+
* @example <PageHeader title="Заголовок страницы" />
|
|
7
|
+
* Заголовок страницы
|
|
8
|
+
*/
|
|
9
|
+
title: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* @example <PageHeader description="Описание страницы" />
|
|
12
|
+
* Описание страницы
|
|
13
|
+
*/
|
|
14
|
+
description?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* @example <PageHeader subheader={<TextField placeholder="Поиск на странице..." size="small" />} />
|
|
17
|
+
* Набор компонент, отображаемый в нижней части блока
|
|
18
|
+
*/
|
|
19
|
+
subheader?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* @example <PageHeader breadcrumbs={
|
|
22
|
+
* [
|
|
23
|
+
* <Link>Первая ссылка</Link>,
|
|
24
|
+
* <Link>Вторая ссылка</Link>,
|
|
25
|
+
* <>Текст</>,
|
|
26
|
+
* ]
|
|
27
|
+
* } />
|
|
28
|
+
* Хлебные крошки
|
|
29
|
+
*/
|
|
30
|
+
breadcrumbs?: ReactNode[];
|
|
31
|
+
/**
|
|
32
|
+
* @example <PageHeader actions={{
|
|
33
|
+
* main: [
|
|
34
|
+
* {
|
|
35
|
+
* text: 'Основное действие',
|
|
36
|
+
* },
|
|
37
|
+
* ],
|
|
38
|
+
* secondary: [
|
|
39
|
+
* {
|
|
40
|
+
* text: 'Вспомогательное действие',
|
|
41
|
+
* },
|
|
42
|
+
* ]
|
|
43
|
+
* }} />
|
|
44
|
+
* Набор кнопок, видимые кофигурируются через объект main, скрытые в меню - через secondary
|
|
45
|
+
*/
|
|
46
|
+
actions?: ButtonGroupProps;
|
|
47
|
+
/**
|
|
48
|
+
* @example <PageHeader backButton={{
|
|
49
|
+
* onClick: () => {},
|
|
50
|
+
* }} />
|
|
51
|
+
* Кнопка назад
|
|
52
|
+
*/
|
|
53
|
+
backButton?: Omit<BaseButtonProps, 'children' | 'variant'>;
|
|
54
|
+
};
|
|
55
|
+
export declare const PageHeader: (props: PageHeaderProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageHeader = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const icons_1 = require("@astral/icons");
|
|
6
|
+
const ButtonGroup_1 = require("./ButtonGroup");
|
|
7
|
+
const styles_1 = require("./styles");
|
|
8
|
+
const PageHeader = (props) => {
|
|
9
|
+
const { title, description, subheader, breadcrumbs, actions, backButton } = props;
|
|
10
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.PageHeaderWrapper, { children: [breadcrumbs && ((0, jsx_runtime_1.jsx)(styles_1.PageHeaderBreadcrumbs, { children: breadcrumbs })), backButton && ((0, jsx_runtime_1.jsx)(styles_1.PageHeaderBackButton, Object.assign({}, backButton, { variant: "light" }, { children: (0, jsx_runtime_1.jsx)(icons_1.ArrowLOutlineMd, {}) }))), (0, jsx_runtime_1.jsx)(styles_1.PageHeaderTitle, Object.assign({ variant: "h3" }, { children: title })), description && ((0, jsx_runtime_1.jsx)(styles_1.PageHeaderDescription, { children: description })), actions && (0, jsx_runtime_1.jsx)(ButtonGroup_1.ButtonGroup, Object.assign({}, actions)), subheader && (0, jsx_runtime_1.jsx)(styles_1.PageSubheader, { children: subheader })] }));
|
|
11
|
+
};
|
|
12
|
+
exports.PageHeader = PageHeader;
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PageHeaderDashboardStory = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const icons_1 = require("@astral/icons");
|
|
6
|
+
const material_1 = require("@mui/material");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const ActionCell_1 = require("../ActionCell");
|
|
9
|
+
const DashboardLayout_1 = require("../DashboardLayout");
|
|
10
|
+
const DataGrid_1 = require("../DataGrid");
|
|
11
|
+
const DataGridPagination_1 = require("../DataGridPagination");
|
|
12
|
+
const Divider_1 = require("../Divider");
|
|
13
|
+
const ListItemIcon_1 = require("../ListItemIcon");
|
|
14
|
+
const ListItemText_1 = require("../ListItemText");
|
|
15
|
+
const Menu_1 = require("../Menu");
|
|
16
|
+
const MenuItem_1 = require("../MenuItem");
|
|
17
|
+
const PageLayout_1 = require("../PageLayout");
|
|
18
|
+
const ProductSwitcher_1 = require("../ProductSwitcher");
|
|
19
|
+
const ProductSwitcher_stories_1 = require("../ProductSwitcher/ProductSwitcher.stories");
|
|
20
|
+
const Select_1 = require("../Select");
|
|
21
|
+
const TextField_1 = require("../TextField");
|
|
22
|
+
const ACTIONS = {
|
|
23
|
+
main: [
|
|
24
|
+
{
|
|
25
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.EyeFillMd, {}),
|
|
26
|
+
name: 'Просмотреть',
|
|
27
|
+
onClick: () => console.log('main'),
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.SendOutlineMd, {}),
|
|
31
|
+
nested: true,
|
|
32
|
+
name: 'Отправить',
|
|
33
|
+
actions: [
|
|
34
|
+
{ name: 'Туда', onClick: () => console.log('nested 1') },
|
|
35
|
+
{ name: 'Сюда', onClick: () => console.log('nested 2') },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
secondary: [
|
|
40
|
+
{ name: 'Редактировать', onClick: () => console.log('secondary 1') },
|
|
41
|
+
{ name: 'Удалить', onClick: () => console.log('secondary 2') },
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
const data = [
|
|
45
|
+
{
|
|
46
|
+
id: '1',
|
|
47
|
+
documentName: 'Документ 1',
|
|
48
|
+
direction: 'ФНС',
|
|
49
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
id: '2',
|
|
53
|
+
documentName: 'Документ 2',
|
|
54
|
+
direction: 'ФСС',
|
|
55
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: '3',
|
|
59
|
+
documentName: 'Документ 3',
|
|
60
|
+
direction: 'ПФР',
|
|
61
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: '4',
|
|
65
|
+
documentName: 'Документ 4',
|
|
66
|
+
direction: 'РПН',
|
|
67
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: '5',
|
|
71
|
+
documentName: 'Документ 5',
|
|
72
|
+
direction: 'ФНС',
|
|
73
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: '6',
|
|
77
|
+
documentName: 'Документ 6',
|
|
78
|
+
direction: 'РПН',
|
|
79
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: '7',
|
|
83
|
+
documentName: 'Документ 7',
|
|
84
|
+
direction: 'ПФР',
|
|
85
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: '8',
|
|
89
|
+
documentName: 'Документ 8',
|
|
90
|
+
direction: 'ФНС',
|
|
91
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
id: '9',
|
|
95
|
+
documentName: 'Документ 9',
|
|
96
|
+
direction: 'ФНС',
|
|
97
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
id: '10',
|
|
101
|
+
documentName: 'Документ 10',
|
|
102
|
+
direction: 'ФСС',
|
|
103
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
id: '11',
|
|
107
|
+
documentName: 'Документ 11',
|
|
108
|
+
direction: 'ФНС',
|
|
109
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: '12',
|
|
113
|
+
documentName: 'Документ 12',
|
|
114
|
+
direction: 'РПН',
|
|
115
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
id: '13',
|
|
119
|
+
documentName: 'Документ 13',
|
|
120
|
+
direction: 'ФНС',
|
|
121
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
id: '15',
|
|
125
|
+
documentName: 'Документ 14',
|
|
126
|
+
direction: 'ФСС',
|
|
127
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: '14',
|
|
131
|
+
documentName: 'Документ 15',
|
|
132
|
+
direction: 'ФНС',
|
|
133
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
id: '16',
|
|
137
|
+
documentName: 'Документ 12',
|
|
138
|
+
direction: 'РПН',
|
|
139
|
+
createDate: '2022-03-24T17:50:40.206Z',
|
|
140
|
+
},
|
|
141
|
+
];
|
|
142
|
+
const columns = [
|
|
143
|
+
{
|
|
144
|
+
field: 'documentName',
|
|
145
|
+
label: 'Наименование документа',
|
|
146
|
+
sortable: true,
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
field: 'direction',
|
|
150
|
+
label: 'Направление',
|
|
151
|
+
sortable: true,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
field: 'createDate',
|
|
155
|
+
label: 'Дата создания',
|
|
156
|
+
sortable: true,
|
|
157
|
+
format: ({ createDate }) => new Date(createDate).toLocaleDateString(),
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
label: 'Действия',
|
|
161
|
+
sortable: false,
|
|
162
|
+
align: 'center',
|
|
163
|
+
width: '1%',
|
|
164
|
+
renderCell: (row) => (0, jsx_runtime_1.jsx)(ActionCell_1.ActionCell, { actions: ACTIONS, row: row }),
|
|
165
|
+
},
|
|
166
|
+
];
|
|
167
|
+
const PageHeaderDashboardStory = () => {
|
|
168
|
+
const [selected, setSelected] = (0, react_1.useState)([]);
|
|
169
|
+
const [loading, setLoading] = (0, react_1.useState)(false);
|
|
170
|
+
const [slicedData, setSlicedData] = (0, react_1.useState)(data.slice(0, 10));
|
|
171
|
+
const [page, setPage] = (0, react_1.useState)(1);
|
|
172
|
+
const header = {
|
|
173
|
+
productSwitcher() {
|
|
174
|
+
return ((0, jsx_runtime_1.jsx)(material_1.Box, { children: (0, jsx_runtime_1.jsx)(ProductSwitcher_1.ProductSwitcher, { getProducts: ProductSwitcher_stories_1.handleGetProducts }) }));
|
|
175
|
+
},
|
|
176
|
+
product: {
|
|
177
|
+
name: 'Астрал.ЭДО',
|
|
178
|
+
logo() {
|
|
179
|
+
return ((0, jsx_runtime_1.jsxs)("svg", Object.assign({ width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: [(0, jsx_runtime_1.jsx)("path", { d: "M6.5 6.10352e-05C5.1195 6.10352e-05 4 1.11956 4 2.50006V3.00006H13.75C15.545 3.00006 17 4.45506 17 6.25006V11.2501C17 12.2166 16.2165 13.0001 15.25 13.0001H8.75C7.7835 13.0001 7 12.2166 7 11.2501V8.00006H5C4.4475 8.00006 4 8.44756 4 9.00006V13.5001C4 14.8806 5.1195 16.0001 6.5 16.0001H17.5C18.8805 16.0001 20 14.8806 20 13.5001V2.50006C20 1.11956 18.8805 6.10352e-05 17.5 6.10352e-05H6.5Z", fill: "#8566FF" }), (0, jsx_runtime_1.jsx)("path", { d: "M2.5 4.00006C1.1195 4.00006 0 5.11956 0 6.50006V17.5001C0 18.8806 1.1195 20.0001 2.5 20.0001H13.5C14.8805 20.0001 16 18.8806 16 17.5001V17.0001H6.25C4.455 17.0001 3 15.5451 3 13.7501V8.75006C3 7.78356 3.7835 7.00006 4.75 7.00006H11.25C12.2165 7.00006 13 7.78356 13 8.75006V12.0001H15C15.5525 12.0001 16 11.5526 16 11.0001V6.50006C16 5.11956 14.8805 4.00006 13.5 4.00006H2.5Z", fill: "#5D3FD4" })] })));
|
|
180
|
+
},
|
|
181
|
+
},
|
|
182
|
+
profile: {
|
|
183
|
+
displayName: 'Григорьев Виталий',
|
|
184
|
+
annotation: 'vitatiy_grig@mail.ru',
|
|
185
|
+
avatar: {
|
|
186
|
+
alt: 'Григорьев Виталий',
|
|
187
|
+
children: 'ГВ',
|
|
188
|
+
},
|
|
189
|
+
menu(props) {
|
|
190
|
+
return ((0, jsx_runtime_1.jsxs)(Menu_1.Menu, Object.assign({}, props, { children: [(0, jsx_runtime_1.jsxs)(MenuItem_1.MenuItem, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(icons_1.ProfileOutlineMd, {}) }), (0, jsx_runtime_1.jsx)(ListItemText_1.ListItemText, { children: "\u041C\u043E\u0439 \u043F\u0440\u043E\u0444\u0438\u043B\u044C" })] }), (0, jsx_runtime_1.jsxs)(MenuItem_1.MenuItem, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(icons_1.CompanyOutlineMd, {}) }), (0, jsx_runtime_1.jsx)(ListItemText_1.ListItemText, { children: "\u041C\u043E\u0438 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438" })] }), (0, jsx_runtime_1.jsxs)(MenuItem_1.MenuItem, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(icons_1.SettingsFillMd, {}) }), (0, jsx_runtime_1.jsx)(ListItemText_1.ListItemText, { children: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438" })] }), (0, jsx_runtime_1.jsx)(Divider_1.Divider, {}), (0, jsx_runtime_1.jsxs)(MenuItem_1.MenuItem, { children: [(0, jsx_runtime_1.jsx)(ListItemIcon_1.ListItemIcon, { children: (0, jsx_runtime_1.jsx)(icons_1.QuitOutlineMd, {}) }), (0, jsx_runtime_1.jsx)(ListItemText_1.ListItemText, { children: "\u0412\u044B\u0439\u0442\u0438" })] })] })));
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
const sidebar = {
|
|
195
|
+
menu: {
|
|
196
|
+
items: [
|
|
197
|
+
[
|
|
198
|
+
'documents',
|
|
199
|
+
{
|
|
200
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.ProfileOutlineMd, {}),
|
|
201
|
+
text: 'Документы',
|
|
202
|
+
items: [
|
|
203
|
+
[
|
|
204
|
+
'incoming-documents',
|
|
205
|
+
{
|
|
206
|
+
text: 'Входящие документы',
|
|
207
|
+
active: true,
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
[
|
|
211
|
+
'outgoing-documents',
|
|
212
|
+
{
|
|
213
|
+
text: 'Исходящие документы',
|
|
214
|
+
active: false,
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
],
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
[
|
|
221
|
+
'counterparties',
|
|
222
|
+
{
|
|
223
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.ProfileOutlineMd, {}),
|
|
224
|
+
text: 'Контрагенты',
|
|
225
|
+
items: [
|
|
226
|
+
[
|
|
227
|
+
'invitations',
|
|
228
|
+
{
|
|
229
|
+
text: 'Приглашения',
|
|
230
|
+
active: false,
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
],
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
[
|
|
237
|
+
'organizations',
|
|
238
|
+
{
|
|
239
|
+
icon: (0, jsx_runtime_1.jsx)(icons_1.CompanyOutlineMd, {}),
|
|
240
|
+
text: 'Мои организации',
|
|
241
|
+
active: true,
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
],
|
|
245
|
+
},
|
|
246
|
+
};
|
|
247
|
+
const handleChangePage = (_event, newPage) => {
|
|
248
|
+
setLoading(true);
|
|
249
|
+
setPage(newPage);
|
|
250
|
+
setTimeout(() => {
|
|
251
|
+
setLoading(false);
|
|
252
|
+
setSlicedData(data.slice((newPage - 1) * 10, newPage * 10));
|
|
253
|
+
}, 1500);
|
|
254
|
+
};
|
|
255
|
+
const handleSelect = (rows) => setSelected(rows);
|
|
256
|
+
const handleRowClick = (row) => console.log('row clicked', row);
|
|
257
|
+
return ((0, jsx_runtime_1.jsxs)(DashboardLayout_1.DashboardLayout, { children: [(0, jsx_runtime_1.jsx)(DashboardLayout_1.DashboardLayout.Header, Object.assign({}, header)), (0, jsx_runtime_1.jsx)(DashboardLayout_1.DashboardLayout.Sidebar, Object.assign({}, sidebar)), (0, jsx_runtime_1.jsx)(DashboardLayout_1.DashboardLayout.Main, { children: (0, jsx_runtime_1.jsx)(PageLayout_1.PageLayout, { header: {
|
|
258
|
+
title: 'Черновики',
|
|
259
|
+
breadcrumbs: [
|
|
260
|
+
(0, jsx_runtime_1.jsx)(react_1.Fragment, { children: "\u041F\u0435\u0440\u0432\u044B\u0439 \u0442\u0435\u043A\u0441\u0442" }, "1"),
|
|
261
|
+
(0, jsx_runtime_1.jsx)(react_1.Fragment, { children: "\u0422\u0435\u043A\u0441\u0442 \u0441 \u0440\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u0435\u043C" }, "2"),
|
|
262
|
+
(0, jsx_runtime_1.jsx)(react_1.Fragment, { children: "\u0422\u0435\u043A\u0441\u0442 \u0441 \u0440\u0430\u0437\u0434\u0435\u043B\u0438\u0442\u0435\u043B\u0435\u043C" }, "3"),
|
|
263
|
+
],
|
|
264
|
+
actions: {
|
|
265
|
+
main: [
|
|
266
|
+
{
|
|
267
|
+
text: 'Основное действие',
|
|
268
|
+
startIcon: (0, jsx_runtime_1.jsx)(icons_1.AddOutlineMd, {}),
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
secondary: [
|
|
272
|
+
{
|
|
273
|
+
text: 'Кнопка',
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
subheader: ((0, jsx_runtime_1.jsxs)(material_1.Stack, Object.assign({ flexDirection: "row", flexWrap: "wrap", gap: 2 }, { children: [(0, jsx_runtime_1.jsx)(TextField_1.TextField, { placeholder: "\u041F\u043E\u0438\u0441\u043A \u043D\u0430 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0435...", size: "small", InputProps: {
|
|
278
|
+
startAdornment: (0, jsx_runtime_1.jsx)(icons_1.SearchOutlineMd, {}),
|
|
279
|
+
} }), (0, jsx_runtime_1.jsx)(Select_1.Select, { value: "", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442", size: "small" }), (0, jsx_runtime_1.jsx)(Select_1.Select, { value: "", placeholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0430\u0440\u0438\u0430\u043D\u0442", size: "small" })] }))),
|
|
280
|
+
}, content: {
|
|
281
|
+
children: ((0, jsx_runtime_1.jsx)(DataGrid_1.DataGrid, { keyId: "id", rows: slicedData, columns: columns, selectedRows: selected, onSelectRow: handleSelect, onRowClick: handleRowClick, minDisplayRows: 10, loading: loading, Footer: (0, jsx_runtime_1.jsx)(DataGridPagination_1.DataGridPagination, { totalCount: data.length, onChange: handleChangePage, page: page }) })),
|
|
282
|
+
isPaddingDisabled: false,
|
|
283
|
+
} }) })] }));
|
|
284
|
+
};
|
|
285
|
+
exports.PageHeaderDashboardStory = PageHeaderDashboardStory;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './PageHeader';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./PageHeader"), exports);
|