@astral/ui 0.45.0 → 0.47.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/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/Fade/Fade.d.ts +3 -0
- package/Fade/Fade.js +5 -0
- package/Fade/index.d.ts +1 -0
- package/Fade/index.js +17 -0
- package/FormHelperText/styled.d.ts +2 -2
- package/Grow/Grow.d.ts +3 -0
- package/Grow/Grow.js +5 -0
- package/Grow/index.d.ts +1 -0
- package/Grow/index.js +17 -0
- 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/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 +1 -1
- package/Notification/styled.d.ts +4 -4
- package/OverflowTypography/hooks/useOverflowed/useOverflowed.js +2 -5
- package/OverflowTypography/styles.js +1 -1
- package/Slide/Slide.d.ts +3 -0
- package/Slide/Slide.js +5 -0
- package/Slide/index.d.ts +1 -0
- package/Slide/index.js +17 -0
- package/Tooltip/Tooltip.js +6 -3
- package/Zoom/Zoom.d.ts +3 -0
- package/Zoom/Zoom.js +5 -0
- package/Zoom/index.d.ts +1 -0
- package/Zoom/index.js +17 -0
- 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/Fade/Fade.d.ts +3 -0
- package/esm/Fade/Fade.js +2 -0
- package/esm/Fade/index.d.ts +1 -0
- package/esm/Fade/index.js +1 -0
- package/esm/FormHelperText/styled.d.ts +2 -2
- package/esm/Grow/Grow.d.ts +3 -0
- package/esm/Grow/Grow.js +2 -0
- package/esm/Grow/index.d.ts +1 -0
- package/esm/Grow/index.js +1 -0
- 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/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 +1 -1
- package/esm/Notification/styled.d.ts +4 -4
- package/esm/OverflowTypography/hooks/useOverflowed/useOverflowed.js +1 -1
- package/esm/OverflowTypography/styles.js +1 -1
- package/esm/Slide/Slide.d.ts +3 -0
- package/esm/Slide/Slide.js +2 -0
- package/esm/Slide/index.d.ts +1 -0
- package/esm/Slide/index.js +1 -0
- package/esm/Tooltip/Tooltip.js +6 -3
- package/esm/Zoom/Zoom.d.ts +3 -0
- package/esm/Zoom/Zoom.js +2 -0
- package/esm/Zoom/index.d.ts +1 -0
- package/esm/Zoom/index.js +1 -0
- 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 +6 -1
- package/esm/index.js +6 -1
- 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 +6 -1
- package/index.js +6 -1
- 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
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.useOverflowed = void 0;
|
|
7
4
|
var react_1 = require("react");
|
|
8
|
-
var
|
|
5
|
+
var lodash_es_1 = require("lodash-es");
|
|
9
6
|
var useOverflowed = function (forwardedRef) {
|
|
10
7
|
var localRef = (0, react_1.useRef)(null);
|
|
11
8
|
var ref = forwardedRef && typeof forwardedRef !== 'function'
|
|
12
9
|
? forwardedRef
|
|
13
10
|
: localRef;
|
|
14
11
|
var _a = (0, react_1.useState)(false), isOverflowed = _a[0], setOverflow = _a[1];
|
|
15
|
-
var handleResize = (0, react_1.useCallback)((0,
|
|
12
|
+
var handleResize = (0, react_1.useCallback)((0, lodash_es_1.debounce)(function (_a) {
|
|
16
13
|
var _b = _a[0], target = _b.target, contentRect = _b.contentRect;
|
|
17
14
|
return setOverflow(contentRect.height < target.scrollHeight);
|
|
18
15
|
}, 500), []);
|
|
@@ -9,7 +9,7 @@ var styles_1 = require("../styles");
|
|
|
9
9
|
var Typography_1 = require("../Typography");
|
|
10
10
|
exports.OverflowTypographyWrapper = (0, styles_1.styled)(Typography_1.Typography, {
|
|
11
11
|
shouldForwardProp: function (name) { return name !== 'rowsCount'; },
|
|
12
|
-
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
12
|
+
})(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"], ["\n display: box;\n max-width: 100%;\n overflow: hidden;\n\n white-space: initial;\n text-overflow: ellipsis;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n"])), function (_a) {
|
|
13
13
|
var rowsCount = _a.rowsCount;
|
|
14
14
|
return rowsCount;
|
|
15
15
|
});
|
package/Slide/Slide.d.ts
ADDED
package/Slide/Slide.js
ADDED
package/Slide/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Slide';
|
package/Slide/index.js
ADDED
|
@@ -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("./Slide"), exports);
|
package/Tooltip/Tooltip.js
CHANGED
|
@@ -27,7 +27,10 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
27
27
|
var react_1 = require("react");
|
|
28
28
|
var styled_1 = require("./styled");
|
|
29
29
|
var constants_1 = require("./constants");
|
|
30
|
-
exports.Tooltip = (0, react_1.forwardRef)(function (
|
|
31
|
-
var
|
|
32
|
-
|
|
30
|
+
exports.Tooltip = (0, react_1.forwardRef)(function (props, ref) {
|
|
31
|
+
var title = props.title, _a = props.placement, placement = _a === void 0 ? 'top' : _a, _b = props.size, size = _b === void 0 ? constants_1.TooltipSizes.MEDIUM : _b, children = props.children, restProps = __rest(props, ["title", "placement", "size", "children"]);
|
|
32
|
+
if (title) {
|
|
33
|
+
return ((0, jsx_runtime_1.jsx)(styled_1.StyledTooltip, __assign({ ref: ref, title: title, size: size, placement: placement }, restProps, { children: children })));
|
|
34
|
+
}
|
|
35
|
+
return children;
|
|
33
36
|
});
|
package/Zoom/Zoom.d.ts
ADDED
package/Zoom/Zoom.js
ADDED
package/Zoom/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Zoom';
|
package/Zoom/index.js
ADDED
|
@@ -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("./Zoom"), exports);
|
package/esm/Chevron/styles.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const ChevronWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
11
11
|
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
12
12
|
titleAccess?: string | undefined;
|
|
13
13
|
viewBox?: string | undefined;
|
|
14
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "fontSize" | "fontWeight" | "fontFamily" | "href" | "tabIndex" | "to" | "type" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "css" | "name" | "id" | "lang" | "role" | "color" | "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" | "cursor" | "direction" | "display" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "values" | "elevation" | "spacing" | "mode" | "local" | "in" | "max" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "
|
|
14
|
+
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "fontSize" | "fontWeight" | "fontFamily" | "href" | "tabIndex" | "to" | "type" | "children" | "className" | "style" | "clipPath" | "filter" | "mask" | "path" | "key" | "css" | "name" | "id" | "lang" | "role" | "color" | "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" | "cursor" | "direction" | "display" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "height" | "imageRendering" | "letterSpacing" | "opacity" | "order" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "visibility" | "width" | "wordSpacing" | "writingMode" | "offset" | "overflow" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fill" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "values" | "elevation" | "spacing" | "mode" | "local" | "in" | "end" | "max" | "orientation" | "media" | "target" | "origin" | "min" | "viewBox" | "method" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "ideographic" | "in2" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "numOctaves" | "operator" | "orient" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
|
|
15
15
|
ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
|
|
16
16
|
}, "fontSize" | "children" | "color" | "shapeRendering" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & {
|
|
17
17
|
theme?: import("@emotion/react").Theme | undefined;
|
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;
|