@astral/ui 0.46.1 → 0.48.1
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/Chevron/styles.d.ts +1 -1
- package/Collapse/Collapse.d.ts +2 -3
- package/Collapse/Collapse.js +2 -17
- package/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/DashboardLayout/DashboardLayout.js +2 -2
- package/DashboardLayout/DashboardLayoutStory.d.ts +2 -0
- package/DashboardLayout/DashboardLayoutStory.js +2 -7
- package/DashboardLayout/Header/Header.js +2 -2
- package/DashboardLayout/Header/{styled.d.ts → styles.d.ts} +0 -0
- package/DashboardLayout/Header/{styled.js → styles.js} +1 -1
- package/DashboardLayout/Sidebar/Sidebar.d.ts +16 -4
- package/DashboardLayout/Sidebar/Sidebar.js +14 -5
- package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.d.ts +5 -0
- package/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +20 -0
- package/DashboardLayout/Sidebar/SidebarNav/index.d.ts +1 -0
- package/DashboardLayout/Sidebar/SidebarNav/index.js +17 -0
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +6 -0
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +33 -0
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/index.d.ts +1 -0
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/index.js +17 -0
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +4 -0
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +14 -0
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.d.ts +6 -0
- package/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +25 -0
- package/DashboardLayout/Sidebar/SidebarToggler/index.d.ts +1 -0
- package/DashboardLayout/Sidebar/SidebarToggler/index.js +17 -0
- package/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +8 -0
- package/DashboardLayout/Sidebar/SidebarToggler/styled.js +15 -0
- package/DashboardLayout/Sidebar/styles.d.ts +7 -0
- package/DashboardLayout/Sidebar/{styled.js → styles.js} +12 -8
- package/DashboardLayout/{styled.d.ts → styles.d.ts} +0 -0
- package/DashboardLayout/{styled.js → styles.js} +1 -1
- package/DataGridPagination/styled.d.ts +5 -13
- package/DatePicker/DatePickerHeader/styled.d.ts +5 -13
- package/FormHelperText/styled.d.ts +2 -2
- package/List/List.d.ts +2 -1
- package/List/List.js +5 -2
- package/List/index.d.ts +0 -1
- package/List/index.js +0 -1
- package/ListItem/ListItem.js +2 -2
- package/ListItem/{styled.d.ts → styles.d.ts} +0 -0
- package/ListItem/{styled.js → styles.js} +0 -0
- package/ListItemButton/ListItemButton.d.ts +6 -3
- package/ListItemButton/ListItemButton.js +5 -17
- package/ListItemIcon/ListItemIcon.d.ts +1 -1
- package/ListItemIcon/ListItemIcon.js +4 -16
- package/ListItemText/ListItemText.d.ts +3 -2
- package/ListItemText/ListItemText.js +5 -14
- package/MenuGroup/stories/Icons.js +7 -7
- package/MenuGroup/stories/styled.d.ts +5 -13
- package/MenuGroup/styled.d.ts +5 -13
- package/NavMenu/NavMenu.d.ts +10 -0
- package/NavMenu/NavMenu.js +24 -0
- package/NavMenu/NavMenuItem/NavMenuItem.d.ts +16 -0
- package/NavMenu/NavMenuItem/NavMenuItem.js +40 -0
- package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.d.ts +11 -0
- package/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +34 -0
- package/NavMenu/NavMenuItem/NavMenuItemButton/index.d.ts +1 -0
- package/NavMenu/NavMenuItem/NavMenuItemButton/index.js +17 -0
- package/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +29 -0
- package/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +46 -0
- package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.d.ts +13 -0
- package/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +26 -0
- package/NavMenu/NavMenuItem/NavMenuItemList/index.d.ts +1 -0
- package/NavMenu/NavMenuItem/NavMenuItemList/index.js +17 -0
- package/NavMenu/NavMenuItem/index.d.ts +1 -0
- package/NavMenu/NavMenuItem/index.js +17 -0
- package/NavMenu/index.d.ts +1 -0
- package/NavMenu/index.js +17 -0
- package/Notification/NotificationTemplate/styled.d.ts +6 -14
- package/Notification/styled.d.ts +4 -4
- package/OverflowTypography/OverflowTypography.d.ts +1 -1
- package/OverflowTypography/styles.d.ts +5 -13
- package/OverflowTypography/styles.js +1 -1
- package/Placeholder/styles.d.ts +10 -26
- package/Tooltip/Tooltip.js +6 -3
- package/Typography/Typography.d.ts +4 -1
- package/Typography/Typography.js +37 -4
- package/Typography/enums.d.ts +10 -0
- package/Typography/enums.js +14 -0
- package/Typography/types.d.ts +10 -3
- package/esm/Chevron/styles.d.ts +1 -1
- package/esm/Collapse/Collapse.d.ts +2 -3
- package/esm/Collapse/Collapse.js +2 -16
- package/esm/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/esm/DashboardLayout/DashboardLayout.js +1 -1
- package/esm/DashboardLayout/DashboardLayoutStory.d.ts +2 -0
- package/esm/DashboardLayout/DashboardLayoutStory.js +2 -7
- package/esm/DashboardLayout/Header/Header.js +1 -1
- package/esm/DashboardLayout/Header/{styled.d.ts → styles.d.ts} +0 -0
- package/esm/DashboardLayout/Header/{styled.js → styles.js} +1 -1
- package/esm/DashboardLayout/Sidebar/Sidebar.d.ts +16 -4
- package/esm/DashboardLayout/Sidebar/Sidebar.js +14 -5
- package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.d.ts +5 -0
- package/esm/DashboardLayout/Sidebar/SidebarNav/SidebarNav.js +17 -0
- package/esm/DashboardLayout/Sidebar/SidebarNav/index.d.ts +1 -0
- package/esm/DashboardLayout/Sidebar/SidebarNav/index.js +1 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts +6 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.js +30 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/index.d.ts +1 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/index.js +1 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.d.ts +4 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/styles.js +11 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.d.ts +6 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggler.js +22 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/index.d.ts +1 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/index.js +1 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.d.ts +8 -0
- package/esm/DashboardLayout/Sidebar/SidebarToggler/styled.js +12 -0
- package/esm/DashboardLayout/Sidebar/styles.d.ts +7 -0
- package/esm/DashboardLayout/Sidebar/{styled.js → styles.js} +11 -7
- package/esm/DashboardLayout/{styled.d.ts → styles.d.ts} +0 -0
- package/esm/DashboardLayout/{styled.js → styles.js} +1 -1
- package/esm/DataGridPagination/styled.d.ts +5 -13
- package/esm/DatePicker/DatePickerHeader/styled.d.ts +5 -13
- package/esm/FormHelperText/styled.d.ts +2 -2
- package/esm/List/List.d.ts +2 -1
- package/esm/List/List.js +2 -2
- package/esm/List/index.d.ts +0 -1
- package/esm/List/index.js +0 -1
- package/esm/ListItem/ListItem.js +1 -1
- package/esm/ListItem/{styled.d.ts → styles.d.ts} +0 -0
- package/esm/ListItem/{styled.js → styles.js} +0 -0
- package/esm/ListItemButton/ListItemButton.d.ts +6 -3
- package/esm/ListItemButton/ListItemButton.js +5 -16
- package/esm/ListItemIcon/ListItemIcon.d.ts +1 -1
- package/esm/ListItemIcon/ListItemIcon.js +4 -15
- package/esm/ListItemText/ListItemText.d.ts +3 -2
- package/esm/ListItemText/ListItemText.js +3 -15
- package/esm/MenuGroup/stories/Icons.js +7 -7
- package/esm/MenuGroup/stories/styled.d.ts +5 -13
- package/esm/MenuGroup/styled.d.ts +5 -13
- package/esm/NavMenu/NavMenu.d.ts +10 -0
- package/esm/NavMenu/NavMenu.js +21 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItem.d.ts +16 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItem.js +36 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.d.ts +11 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/NavMenuItemButton.js +31 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/index.d.ts +1 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/index.js +1 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.d.ts +29 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemButton/styles.js +43 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.d.ts +13 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemList/NavMenuItemList.js +22 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemList/index.d.ts +1 -0
- package/esm/NavMenu/NavMenuItem/NavMenuItemList/index.js +1 -0
- package/esm/NavMenu/NavMenuItem/index.d.ts +1 -0
- package/esm/NavMenu/NavMenuItem/index.js +1 -0
- package/esm/NavMenu/index.d.ts +1 -0
- package/esm/NavMenu/index.js +1 -0
- package/esm/Notification/NotificationTemplate/styled.d.ts +6 -14
- package/esm/Notification/styled.d.ts +4 -4
- package/esm/OverflowTypography/OverflowTypography.d.ts +1 -1
- package/esm/OverflowTypography/styles.d.ts +5 -13
- package/esm/OverflowTypography/styles.js +1 -1
- package/esm/Placeholder/styles.d.ts +10 -26
- package/esm/Tooltip/Tooltip.js +6 -3
- package/esm/Typography/Typography.d.ts +4 -1
- package/esm/Typography/Typography.js +37 -1
- package/esm/Typography/enums.d.ts +10 -0
- package/esm/Typography/enums.js +11 -0
- package/esm/Typography/types.d.ts +10 -3
- package/esm/hooks/index.d.ts +1 -0
- package/esm/hooks/index.js +1 -0
- package/esm/hooks/useLocalStorage/index.d.ts +1 -0
- package/esm/hooks/useLocalStorage/index.js +1 -0
- package/esm/hooks/useLocalStorage/useLocalStorage.d.ts +1 -0
- package/esm/hooks/useLocalStorage/useLocalStorage.js +1 -0
- package/esm/index.d.ts +1 -0
- package/esm/index.js +1 -0
- package/esm/theme/components/MuiButton.js +1 -0
- package/esm/theme/components/MuiListItemButton.d.ts +3 -0
- package/esm/theme/components/MuiListItemButton.js +13 -0
- package/esm/theme/components/MuiListItemText.d.ts +3 -0
- package/esm/theme/components/MuiListItemText.js +12 -0
- package/esm/theme/components/components.js +4 -0
- package/hooks/index.d.ts +1 -0
- package/hooks/index.js +1 -0
- package/hooks/useLocalStorage/index.d.ts +1 -0
- package/hooks/useLocalStorage/index.js +17 -0
- package/hooks/useLocalStorage/useLocalStorage.d.ts +1 -0
- package/hooks/useLocalStorage/useLocalStorage.js +5 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +4 -3
- package/theme/components/MuiButton.js +1 -0
- package/theme/components/MuiListItemButton.d.ts +3 -0
- package/theme/components/MuiListItemButton.js +16 -0
- package/theme/components/MuiListItemText.d.ts +3 -0
- package/theme/components/MuiListItemText.js +15 -0
- package/theme/components/components.js +4 -0
- package/Collapse/styles.d.ts +0 -3
- package/Collapse/styles.js +0 -11
- package/DashboardLayout/Sidebar/styled.d.ts +0 -8
- package/List/styles.d.ts +0 -15
- package/List/styles.js +0 -11
- package/List/types.d.ts +0 -4
- package/List/types.js +0 -2
- package/ListItemButton/styled.d.ts +0 -35
- package/ListItemButton/styled.js +0 -49
- package/ListItemButton/types.d.ts +0 -2
- package/ListItemButton/types.js +0 -2
- package/ListItemText/styles.d.ts +0 -7
- package/ListItemText/styles.js +0 -11
- package/esm/Collapse/styles.d.ts +0 -3
- package/esm/Collapse/styles.js +0 -8
- package/esm/DashboardLayout/Sidebar/styled.d.ts +0 -8
- package/esm/List/styles.d.ts +0 -15
- package/esm/List/styles.js +0 -8
- package/esm/List/types.d.ts +0 -4
- package/esm/List/types.js +0 -1
- package/esm/ListItemButton/styled.d.ts +0 -35
- package/esm/ListItemButton/styled.js +0 -44
- package/esm/ListItemButton/types.d.ts +0 -2
- package/esm/ListItemButton/types.js +0 -1
- package/esm/ListItemText/styles.d.ts +0 -7
- package/esm/ListItemText/styles.js +0 -8
package/esm/Collapse/Collapse.js
CHANGED
|
@@ -1,16 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { StyledCollapse } from './styles';
|
|
14
|
-
export var Collapse = function (props) {
|
|
15
|
-
return _jsx(StyledCollapse, __assign({}, props));
|
|
16
|
-
};
|
|
1
|
+
import { Collapse } from '@mui/material';
|
|
2
|
+
export { Collapse };
|
|
@@ -5,7 +5,7 @@ export declare type DashBoardLayoutProps = {
|
|
|
5
5
|
export declare const DashboardLayout: {
|
|
6
6
|
(props: DashBoardLayoutProps): JSX.Element;
|
|
7
7
|
Header: import("react").ForwardRefExoticComponent<import("./Header").HeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
-
Sidebar: import("react").ForwardRefExoticComponent<import("./Sidebar").SidebarProps & import("react").RefAttributes<
|
|
8
|
+
Sidebar: import("react").ForwardRefExoticComponent<import("./Sidebar").SidebarProps & import("react").RefAttributes<HTMLBaseElement>>;
|
|
9
9
|
Main: import("react").ForwardRefExoticComponent<import("./Main").MainProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
};
|
|
11
11
|
export default DashboardLayout;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Header } from './Header';
|
|
3
3
|
import { Sidebar } from './Sidebar';
|
|
4
4
|
import { Main } from './Main';
|
|
5
|
-
import { DashboardLayoutRoot } from './
|
|
5
|
+
import { DashboardLayoutRoot } from './styles';
|
|
6
6
|
export var DashboardLayout = function (props) {
|
|
7
7
|
var children = props.children;
|
|
8
8
|
return _jsx(DashboardLayoutRoot, { children: children });
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { HeaderProps } from './Header';
|
|
3
|
+
import { SidebarProps } from './Sidebar';
|
|
3
4
|
export declare type DashboardLayoutStoryProps = {
|
|
4
5
|
header: HeaderProps;
|
|
6
|
+
sidebar: SidebarProps;
|
|
5
7
|
};
|
|
6
8
|
export declare const DashboardLayoutStory: FC<DashboardLayoutStoryProps>;
|
|
7
9
|
export default DashboardLayoutStory;
|
|
@@ -10,14 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { CompanyOutlineMd, ProfileOutlineMd, SettingsFillMd, } from '@astral/icons';
|
|
14
|
-
import { ListItemButton } from '@mui/material';
|
|
15
|
-
import { List } from '../List';
|
|
16
|
-
import { ListItemIcon } from '../ListItemIcon';
|
|
17
|
-
import { ListItemText } from '../ListItemText';
|
|
18
13
|
import { DashboardLayout } from '../DashboardLayout';
|
|
19
14
|
export var DashboardLayoutStory = function (props) {
|
|
20
|
-
var header = props.header;
|
|
21
|
-
return (_jsxs(DashboardLayout, { children: [_jsx(DashboardLayout.Header, __assign({}, header)), _jsx(DashboardLayout.Sidebar,
|
|
15
|
+
var header = props.header, sidebar = props.sidebar;
|
|
16
|
+
return (_jsxs(DashboardLayout, { children: [_jsx(DashboardLayout.Header, __assign({}, header)), _jsx(DashboardLayout.Sidebar, __assign({}, sidebar)), _jsx(DashboardLayout.Main, { children: "main-content" })] }));
|
|
22
17
|
};
|
|
23
18
|
export default DashboardLayoutStory;
|
|
@@ -14,7 +14,7 @@ import { forwardRef } from 'react';
|
|
|
14
14
|
// import { MenuListProps } from '../../MenuList';
|
|
15
15
|
import { Product } from '../../Product';
|
|
16
16
|
import { Profile } from '../../Profile';
|
|
17
|
-
import { HeaderNav, HeaderRoot } from './
|
|
17
|
+
import { HeaderNav, HeaderRoot } from './styles';
|
|
18
18
|
export var Header = forwardRef(function (props, ref) {
|
|
19
19
|
var ProductSwitcher = props.productSwitcher, product = props.product,
|
|
20
20
|
// menu: Menu,
|
|
File without changes
|
|
@@ -8,7 +8,7 @@ export var HeaderRoot = styled.header(templateObject_1 || (templateObject_1 = __
|
|
|
8
8
|
return theme.zIndex.appBar;
|
|
9
9
|
}, function (_a) {
|
|
10
10
|
var theme = _a.theme;
|
|
11
|
-
return theme.spacing(2,
|
|
11
|
+
return theme.spacing(2, 3);
|
|
12
12
|
}, function (_a) {
|
|
13
13
|
var theme = _a.theme;
|
|
14
14
|
return theme.palette.background.default;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { NavMenuProps } from '../../NavMenu';
|
|
2
3
|
export declare type SidebarProps = {
|
|
3
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Ключ по которому осуществляется персист состояния collapsedIn в localStorage
|
|
6
|
+
*/
|
|
7
|
+
localStorageKey?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Описание меню
|
|
10
|
+
*/
|
|
11
|
+
menu: {
|
|
12
|
+
/**
|
|
13
|
+
* Пункты меню
|
|
14
|
+
*/
|
|
15
|
+
items: NavMenuProps['items'];
|
|
16
|
+
};
|
|
4
17
|
};
|
|
5
|
-
export declare const Sidebar: import("react").ForwardRefExoticComponent<SidebarProps & import("react").RefAttributes<
|
|
6
|
-
export default Sidebar;
|
|
18
|
+
export declare const Sidebar: import("react").ForwardRefExoticComponent<SidebarProps & import("react").RefAttributes<HTMLBaseElement>>;
|
|
@@ -11,9 +11,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { forwardRef } from 'react';
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
import { NavMenu } from '../../NavMenu';
|
|
15
|
+
import { useLocalStorage } from '../../hooks';
|
|
16
|
+
import { SidebarRoot } from './styles';
|
|
17
|
+
import { SidebarNav } from './SidebarNav';
|
|
18
|
+
import { SidebarToggler } from './SidebarToggler';
|
|
19
|
+
export var Sidebar = forwardRef(function (props, ref) {
|
|
20
|
+
var menu = props.menu, _a = props.localStorageKey, localStorageKey = _a === void 0 ? '@astral/ui::Sidebar::collapsedIn' : _a;
|
|
21
|
+
var _b = useLocalStorage(localStorageKey, true), _c = _b[0], collapsedIn = _c === void 0 ? true : _c, setCollapsedIn = _b[1];
|
|
22
|
+
var handleTogglerChange = function () {
|
|
23
|
+
setCollapsedIn(function () {
|
|
24
|
+
return !collapsedIn;
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
return (_jsxs(SidebarRoot, __assign({ ref: ref, collapsedIn: collapsedIn }, { children: [_jsx(SidebarNav, { menu: _jsx(NavMenu, { collapsedIn: collapsedIn, items: menu.items }) }), _jsx(SidebarToggler, { collapsedIn: collapsedIn, onToggle: handleTogglerChange })] })));
|
|
18
28
|
});
|
|
19
|
-
export default Sidebar;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { forwardRef } from 'react';
|
|
14
|
+
export var SidebarNav = forwardRef(function (props, ref) {
|
|
15
|
+
var menu = props.menu;
|
|
16
|
+
return _jsx("nav", __assign({ ref: ref }, { children: menu }));
|
|
17
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SidebarNav';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SidebarNav';
|
package/esm/DashboardLayout/Sidebar/SidebarToggler/SidebarToggleButton/SidebarToggleButton.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from '../../../../Button';
|
|
3
|
+
export declare type SidebarTogglerButtonProps = ButtonProps & {
|
|
4
|
+
collapsedIn: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const SidebarTogglerButton: import("react").ForwardRefExoticComponent<Pick<SidebarTogglerButtonProps, "disabled" | "href" | "onFocusVisible" | "tabIndex" | "type" | "action" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "size" | "component" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition" | "collapsedIn"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
+
import { forwardRef } from 'react';
|
|
25
|
+
import { MenuOffOutlineMd, MenuOnOutlineMd } from '@astral/icons';
|
|
26
|
+
import { SidebarTogglerButtonRoot } from './styles';
|
|
27
|
+
export var SidebarTogglerButton = forwardRef(function (props, ref) {
|
|
28
|
+
var collapsedIn = props.collapsedIn, restProps = __rest(props, ["collapsedIn"]);
|
|
29
|
+
return (_jsx(SidebarTogglerButtonRoot, __assign({ ref: ref, startIcon: collapsedIn ? _jsx(MenuOffOutlineMd, {}) : _jsx(MenuOnOutlineMd, {}), variant: "text" }, restProps)));
|
|
30
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SidebarToggleButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SidebarToggleButton';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SidebarTogglerButtonRoot: import("@emotion/styled").StyledComponent<Pick<import("../../../../Button").ButtonProps, "disabled" | "href" | "onFocusVisible" | "tabIndex" | "type" | "action" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "size" | "component" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { styled } from '../../../../styles';
|
|
6
|
+
import { Button } from '../../../../Button';
|
|
7
|
+
export var SidebarTogglerButtonRoot = styled(Button)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n gap: 0;\n justify-content: flex-start;\n width: 100%;\n min-width: 0;\n padding: ", ";\n\n &.MuiButton-root .MuiButton-startIcon {\n margin: 0;\n }\n"], ["\n gap: 0;\n justify-content: flex-start;\n width: 100%;\n min-width: 0;\n padding: ", ";\n\n &.MuiButton-root .MuiButton-startIcon {\n margin: 0;\n }\n"])), function (_a) {
|
|
8
|
+
var theme = _a.theme;
|
|
9
|
+
return theme.spacing(2);
|
|
10
|
+
});
|
|
11
|
+
var templateObject_1;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type SidebarTogglerProps = {
|
|
3
|
+
collapsedIn: boolean;
|
|
4
|
+
onToggle: () => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const SidebarToggler: import("react").ForwardRefExoticComponent<SidebarTogglerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { forwardRef } from 'react';
|
|
14
|
+
import { Collapse } from '../../../Collapse';
|
|
15
|
+
import { SidebarTogglerContent, SidebarTogglerRoot } from './styled';
|
|
16
|
+
export var SidebarToggler = forwardRef(function (props, ref) {
|
|
17
|
+
var collapsedIn = props.collapsedIn, onToggle = props.onToggle;
|
|
18
|
+
var handleButtonClick = function () {
|
|
19
|
+
onToggle();
|
|
20
|
+
};
|
|
21
|
+
return (_jsx(SidebarTogglerRoot, __assign({ ref: ref, collapsedIn: collapsedIn, onClick: handleButtonClick }, { children: _jsx(Collapse, __assign({ orientation: "horizontal", in: collapsedIn }, { children: _jsx(SidebarTogglerContent, { children: "\u0421\u0432\u0435\u0440\u043D\u0443\u0442\u044C \u043C\u0435\u043D\u044E" }) })) })));
|
|
22
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SidebarToggler';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SidebarToggler';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SidebarTogglerRoot: import("@emotion/styled").StyledComponent<Pick<import("./SidebarToggleButton").SidebarTogglerButtonProps, "disabled" | "href" | "onFocusVisible" | "tabIndex" | "type" | "action" | "children" | "form" | "slot" | "title" | "key" | "css" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "name" | "value" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "size" | "component" | "selected" | keyof import("@mui/material/OverridableComponent").CommonProps | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "startIcon" | "loading" | "loadingIndicator" | "loadingPosition" | "collapsedIn"> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
}, {}, {}>;
|
|
5
|
+
export declare const SidebarTogglerContent: import("@emotion/styled").StyledComponent<{
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: import("react").ElementType<any> | undefined;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { styled } from '../../../styles';
|
|
6
|
+
import { SidebarTogglerButton } from './SidebarToggleButton';
|
|
7
|
+
export var SidebarTogglerRoot = styled(SidebarTogglerButton)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n height: 40px;\n margin-top: auto;\n"], ["\n height: 40px;\n margin-top: auto;\n"])));
|
|
8
|
+
export var SidebarTogglerContent = styled.span(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-left: ", ";\n\n white-space: nowrap;\n"], ["\n margin-left: ", ";\n\n white-space: nowrap;\n"])), function (_a) {
|
|
9
|
+
var theme = _a.theme;
|
|
10
|
+
return theme.spacing(4);
|
|
11
|
+
});
|
|
12
|
+
var templateObject_1, templateObject_2;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SidebarRoot: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
collapsedIn: boolean;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -3,21 +3,25 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
return cooked;
|
|
4
4
|
};
|
|
5
5
|
import { styled } from '../../styles';
|
|
6
|
-
|
|
7
|
-
export var SidebarRoot = styled.aside(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n"], ["\n z-index: ", ";\n\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n"])), function (_a) {
|
|
6
|
+
export var SidebarRoot = styled.aside(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n min-width: ", ";\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n\n transition: ", ";\n"], ["\n z-index: ", ";\n\n display: flex;\n flex-direction: column;\n grid-area: sidebar;\n min-width: ", ";\n padding: ", ";\n\n background-color: ", ";\n border-right: 1px solid ", ";\n\n transition: ", ";\n"])), function (_a) {
|
|
8
7
|
var theme = _a.theme;
|
|
9
8
|
return theme.zIndex.appBar - 1;
|
|
9
|
+
}, function (_a) {
|
|
10
|
+
var collapsedIn = _a.collapsedIn;
|
|
11
|
+
return (collapsedIn ? '240px' : '100%');
|
|
10
12
|
}, function (_a) {
|
|
11
13
|
var theme = _a.theme;
|
|
12
|
-
return theme.spacing(
|
|
14
|
+
return theme.spacing(2);
|
|
13
15
|
}, function (_a) {
|
|
14
16
|
var theme = _a.theme;
|
|
15
17
|
return theme.palette.background.element;
|
|
16
18
|
}, function (_a) {
|
|
17
19
|
var theme = _a.theme;
|
|
18
20
|
return theme.palette.grey[300];
|
|
21
|
+
}, function (_a) {
|
|
22
|
+
var theme = _a.theme;
|
|
23
|
+
return theme.transitions.create('min-width', {
|
|
24
|
+
duration: theme.transitions.duration.standard,
|
|
25
|
+
});
|
|
19
26
|
});
|
|
20
|
-
|
|
21
|
-
// `;
|
|
22
|
-
export var SidebarToggler = styled(Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n margin-top: auto;\n"], ["\n margin-top: auto;\n"])));
|
|
23
|
-
var templateObject_1, templateObject_2;
|
|
27
|
+
var templateObject_1;
|
|
File without changes
|
|
@@ -4,6 +4,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
4
4
|
};
|
|
5
5
|
import { styled } from '../styles';
|
|
6
6
|
export var DashboardLayoutRoot = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: grid;\n grid-template: ", ";\n height: 100vh;\n"], ["\n display: grid;\n grid-template: ", ";\n height: 100vh;\n"])), function () {
|
|
7
|
-
return "\n\n [header-start] \"header header\" [header-end]\n [main-start] \"sidebar main\" 1fr [main-end] /
|
|
7
|
+
return "\n\n [header-start] \"header header\" [header-end]\n [main-start] \"sidebar main\" 1fr [main-end] / auto 1fr\n ";
|
|
8
8
|
});
|
|
9
9
|
var templateObject_1;
|
|
@@ -3,18 +3,10 @@ export declare const PaginationWrapper: import("@emotion/styled").StyledComponen
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const Range: import("@emotion/styled").StyledComponent<import("@mui/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
noWrap?: boolean | undefined;
|
|
12
|
-
paragraph?: boolean | undefined;
|
|
13
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
14
|
-
variant?: "inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div" | undefined;
|
|
15
|
-
variantMapping?: Partial<Record<"inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div", string>> | undefined;
|
|
16
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
17
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
18
|
-
}, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
|
6
|
+
export declare const Range: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
7
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
8
|
+
component?: import("react").ElementType<any> | undefined;
|
|
9
|
+
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
10
|
+
} & {
|
|
19
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
12
|
}, {}, {}>;
|
|
@@ -3,18 +3,10 @@ export declare const DatePickerHeaderWrapper: import("@emotion/styled").StyledCo
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<import("@mui/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
noWrap?: boolean | undefined;
|
|
12
|
-
paragraph?: boolean | undefined;
|
|
13
|
-
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
14
|
-
variant?: "inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div" | undefined;
|
|
15
|
-
variantMapping?: Partial<Record<"inherit" | "small" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "body1" | "body2" | "caption" | "button" | "overline" | "h7" | "h8" | "h9" | "ui" | "link" | "pointer" | "code" | "div", string>> | undefined;
|
|
16
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
17
|
-
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
18
|
-
}, "children" | "variant" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | ("fontSize" | "fontWeight" | "lineHeight" | "fontFamily" | "p" | "color" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "zIndex" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "typography" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint") | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
|
6
|
+
export declare const DatePickerHeaderTitle: import("@emotion/styled").StyledComponent<Omit<import("@mui/material/OverridableComponent").OverrideProps<import("@mui/material").TypographyTypeMap<{}, "span">, import("react").ElementType<any>>, "color" | "variant"> & {
|
|
7
|
+
variant?: import("@mui/material").TypographyVariant | keyof import("@mui/material").TypographyPropsVariantOverrides | undefined;
|
|
8
|
+
component?: import("react").ElementType<any> | undefined;
|
|
9
|
+
color?: "primary" | "secondary" | "error" | "success" | "warning" | "text" | "info" | "textSecondary" | ((theme: import("@mui/material").Theme) => string) | undefined;
|
|
10
|
+
} & {
|
|
19
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
12
|
}, {}, {}>;
|