@astral/ui 0.46.0 → 0.48.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/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/hooks/useOverflowed/useOverflowed.js +2 -5
- package/OverflowTypography/styles.d.ts +5 -13
- 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/hooks/useOverflowed/useOverflowed.js +1 -1
- package/esm/OverflowTypography/styles.d.ts +5 -13
- 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
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Theme } from '../theme';
|
|
3
|
-
import { ListItemButtonStates } from './constants';
|
|
4
|
-
import { ListItemButtonProps } from './types';
|
|
5
|
-
declare type StyledListItemButtonThemeProps = ListItemButtonProps & {
|
|
6
|
-
theme: Theme;
|
|
7
|
-
};
|
|
8
|
-
export declare const getBgColor: ({ selected, theme, }: StyledListItemButtonThemeProps) => string;
|
|
9
|
-
export declare const getColor: ({ theme, selected, listItemButtonState, }: ListItemButtonProps & {
|
|
10
|
-
theme: Theme;
|
|
11
|
-
} & {
|
|
12
|
-
listItemButtonState: ListItemButtonStates;
|
|
13
|
-
}) => string;
|
|
14
|
-
export declare const StyledListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
|
|
15
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
16
|
-
centerRipple?: boolean | undefined;
|
|
17
|
-
children?: import("react").ReactNode;
|
|
18
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
19
|
-
disabled?: boolean | undefined;
|
|
20
|
-
disableRipple?: boolean | undefined;
|
|
21
|
-
disableTouchRipple?: boolean | undefined;
|
|
22
|
-
focusRipple?: boolean | undefined;
|
|
23
|
-
focusVisibleClassName?: string | undefined;
|
|
24
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
25
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
26
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
27
|
-
tabIndex?: number | undefined;
|
|
28
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
29
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
30
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
31
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
32
|
-
}, "disabled" | "onFocusVisible" | "tabIndex" | "action" | "children" | "className" | "style" | "autoFocus" | "selected" | "alignItems" | "divider" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "dense" | "disableGutters"> & {
|
|
33
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
34
|
-
} & ListItemButtonProps, {}, {}>;
|
|
35
|
-
export {};
|
package/ListItemButton/styled.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.StyledListItemButton = exports.getColor = exports.getBgColor = void 0;
|
|
19
|
-
var material_1 = require("@mui/material");
|
|
20
|
-
var styles_1 = require("../styles");
|
|
21
|
-
var constants_1 = require("./constants");
|
|
22
|
-
var getBgColor = function (_a) {
|
|
23
|
-
var selected = _a.selected, theme = _a.theme;
|
|
24
|
-
if (selected) {
|
|
25
|
-
return theme.palette.grey[100];
|
|
26
|
-
}
|
|
27
|
-
return 'transparent';
|
|
28
|
-
};
|
|
29
|
-
exports.getBgColor = getBgColor;
|
|
30
|
-
var getColor = function (_a) {
|
|
31
|
-
var theme = _a.theme, selected = _a.selected, listItemButtonState = _a.listItemButtonState;
|
|
32
|
-
if (listItemButtonState === constants_1.ListItemButtonStates.DEFAULT) {
|
|
33
|
-
return theme.palette.grey[900];
|
|
34
|
-
}
|
|
35
|
-
if (listItemButtonState === constants_1.ListItemButtonStates.HOVER || selected) {
|
|
36
|
-
return theme.palette.primary[800];
|
|
37
|
-
}
|
|
38
|
-
return theme.palette.grey[900];
|
|
39
|
-
};
|
|
40
|
-
exports.getColor = getColor;
|
|
41
|
-
exports.StyledListItemButton = (0, styles_1.styled)(material_1.ListItemButton)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n cursor: pointer;\n\n user-select: none;\n\n :hover {\n color: ", ";\n }\n"], ["\n color: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n cursor: pointer;\n\n user-select: none;\n\n :hover {\n color: ", ";\n }\n"])), function (props) {
|
|
42
|
-
return (0, exports.getColor)(__assign(__assign({}, props), { listItemButtonState: constants_1.ListItemButtonStates.DEFAULT }));
|
|
43
|
-
}, function (props) { return (0, exports.getBgColor)(__assign({}, props)); }, function (_a) {
|
|
44
|
-
var theme = _a.theme;
|
|
45
|
-
return theme.shape.small;
|
|
46
|
-
}, function (props) {
|
|
47
|
-
return (0, exports.getColor)(__assign(__assign({}, props), { listItemButtonState: constants_1.ListItemButtonStates.HOVER }));
|
|
48
|
-
});
|
|
49
|
-
var templateObject_1;
|
package/ListItemButton/types.js
DELETED
package/ListItemText/styles.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ListItemTextProps } from '@mui/material';
|
|
3
|
-
declare type StyledListItemTextProps = ListItemTextProps;
|
|
4
|
-
export declare const StyledListItemText: import("@emotion/styled").StyledComponent<ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & {
|
|
5
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
} & StyledListItemTextProps, {}, {}>;
|
|
7
|
-
export {};
|
package/ListItemText/styles.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.StyledListItemText = void 0;
|
|
8
|
-
var material_1 = require("@mui/material");
|
|
9
|
-
var styles_1 = require("../styles");
|
|
10
|
-
exports.StyledListItemText = (0, styles_1.styled)(material_1.ListItemText)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n\n white-space: nowrap;\n text-align: left;\n text-overflow: ellipsis;\n"], ["\n overflow: hidden;\n\n white-space: nowrap;\n text-align: left;\n text-overflow: ellipsis;\n"])));
|
|
11
|
-
var templateObject_1;
|
package/esm/Collapse/styles.d.ts
DELETED
package/esm/Collapse/styles.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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 { Collapse } from '@mui/material';
|
|
6
|
-
import { styled } from '../styles';
|
|
7
|
-
export var StyledCollapse = styled(Collapse)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &.MuiCollapse-horizontal {\n .MuiCollapse-wrapperInner {\n width: 100%;\n }\n }\n"], ["\n &.MuiCollapse-horizontal {\n .MuiCollapse-wrapperInner {\n width: 100%;\n }\n }\n"])));
|
|
8
|
-
var templateObject_1;
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
6
|
-
export declare const SidebarToggler: 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> & {
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
}, {}, {}>;
|
package/esm/List/styles.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledList: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
children?: import("react").ReactNode;
|
|
4
|
-
classes?: Partial<import("@mui/material").ListClasses> | undefined;
|
|
5
|
-
dense?: boolean | undefined;
|
|
6
|
-
disablePadding?: boolean | undefined;
|
|
7
|
-
subheader?: import("react").ReactNode;
|
|
8
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
9
|
-
} & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLUListElement>> & {
|
|
10
|
-
ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
|
|
11
|
-
}, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "dense" | "subheader" | "disablePadding"> & {
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
collapsed?: boolean | undefined;
|
|
15
|
-
}, {}, {}>;
|
package/esm/List/styles.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
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 { List as MuiList } from '@mui/material';
|
|
6
|
-
import { styled } from '../styles';
|
|
7
|
-
export var StyledList = styled(MuiList)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n a {\n display: inline-block;\n width: 100%;\n\n text-decoration: none;\n }\n"], ["\n a {\n display: inline-block;\n width: 100%;\n\n text-decoration: none;\n }\n"])));
|
|
8
|
-
var templateObject_1;
|
package/esm/List/types.d.ts
DELETED
package/esm/List/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Theme } from '../theme';
|
|
3
|
-
import { ListItemButtonStates } from './constants';
|
|
4
|
-
import { ListItemButtonProps } from './types';
|
|
5
|
-
declare type StyledListItemButtonThemeProps = ListItemButtonProps & {
|
|
6
|
-
theme: Theme;
|
|
7
|
-
};
|
|
8
|
-
export declare const getBgColor: ({ selected, theme, }: StyledListItemButtonThemeProps) => string;
|
|
9
|
-
export declare const getColor: ({ theme, selected, listItemButtonState, }: ListItemButtonProps & {
|
|
10
|
-
theme: Theme;
|
|
11
|
-
} & {
|
|
12
|
-
listItemButtonState: ListItemButtonStates;
|
|
13
|
-
}) => string;
|
|
14
|
-
export declare const StyledListItemButton: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonBaseProps & Omit<{
|
|
15
|
-
action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
|
|
16
|
-
centerRipple?: boolean | undefined;
|
|
17
|
-
children?: import("react").ReactNode;
|
|
18
|
-
classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
|
|
19
|
-
disabled?: boolean | undefined;
|
|
20
|
-
disableRipple?: boolean | undefined;
|
|
21
|
-
disableTouchRipple?: boolean | undefined;
|
|
22
|
-
focusRipple?: boolean | undefined;
|
|
23
|
-
focusVisibleClassName?: string | undefined;
|
|
24
|
-
LinkComponent?: import("react").ElementType<any> | undefined;
|
|
25
|
-
onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
|
|
26
|
-
sx?: import("@mui/material").SxProps<import("@mui/material").Theme> | undefined;
|
|
27
|
-
tabIndex?: number | undefined;
|
|
28
|
-
TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
|
|
29
|
-
touchRippleRef?: import("react").Ref<import("@mui/material/ButtonBase/TouchRipple").TouchRippleActions> | undefined;
|
|
30
|
-
}, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | "css" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
31
|
-
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
32
|
-
}, "disabled" | "onFocusVisible" | "tabIndex" | "action" | "children" | "className" | "style" | "autoFocus" | "selected" | "alignItems" | "divider" | "classes" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "sx" | "TouchRippleProps" | "touchRippleRef" | "dense" | "disableGutters"> & {
|
|
33
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
34
|
-
} & ListItemButtonProps, {}, {}>;
|
|
35
|
-
export {};
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
var __assign = (this && this.__assign) || function () {
|
|
6
|
-
__assign = Object.assign || function(t) {
|
|
7
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8
|
-
s = arguments[i];
|
|
9
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
10
|
-
t[p] = s[p];
|
|
11
|
-
}
|
|
12
|
-
return t;
|
|
13
|
-
};
|
|
14
|
-
return __assign.apply(this, arguments);
|
|
15
|
-
};
|
|
16
|
-
import { ListItemButton } from '@mui/material';
|
|
17
|
-
import { styled } from '../styles';
|
|
18
|
-
import { ListItemButtonStates } from './constants';
|
|
19
|
-
export var getBgColor = function (_a) {
|
|
20
|
-
var selected = _a.selected, theme = _a.theme;
|
|
21
|
-
if (selected) {
|
|
22
|
-
return theme.palette.grey[100];
|
|
23
|
-
}
|
|
24
|
-
return 'transparent';
|
|
25
|
-
};
|
|
26
|
-
export var getColor = function (_a) {
|
|
27
|
-
var theme = _a.theme, selected = _a.selected, listItemButtonState = _a.listItemButtonState;
|
|
28
|
-
if (listItemButtonState === ListItemButtonStates.DEFAULT) {
|
|
29
|
-
return theme.palette.grey[900];
|
|
30
|
-
}
|
|
31
|
-
if (listItemButtonState === ListItemButtonStates.HOVER || selected) {
|
|
32
|
-
return theme.palette.primary[800];
|
|
33
|
-
}
|
|
34
|
-
return theme.palette.grey[900];
|
|
35
|
-
};
|
|
36
|
-
export var StyledListItemButton = styled(ListItemButton)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n cursor: pointer;\n\n user-select: none;\n\n :hover {\n color: ", ";\n }\n"], ["\n color: ", ";\n\n background-color: ", ";\n border-radius: ", ";\n cursor: pointer;\n\n user-select: none;\n\n :hover {\n color: ", ";\n }\n"])), function (props) {
|
|
37
|
-
return getColor(__assign(__assign({}, props), { listItemButtonState: ListItemButtonStates.DEFAULT }));
|
|
38
|
-
}, function (props) { return getBgColor(__assign({}, props)); }, function (_a) {
|
|
39
|
-
var theme = _a.theme;
|
|
40
|
-
return theme.shape.small;
|
|
41
|
-
}, function (props) {
|
|
42
|
-
return getColor(__assign(__assign({}, props), { listItemButtonState: ListItemButtonStates.HOVER }));
|
|
43
|
-
});
|
|
44
|
-
var templateObject_1;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ListItemTextProps } from '@mui/material';
|
|
3
|
-
declare type StyledListItemTextProps = ListItemTextProps;
|
|
4
|
-
export declare const StyledListItemText: import("@emotion/styled").StyledComponent<ListItemTextProps<import("react").ElementType<any>, import("react").ElementType<any>> & {
|
|
5
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
} & StyledListItemTextProps, {}, {}>;
|
|
7
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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 { ListItemText } from '@mui/material';
|
|
6
|
-
import { styled } from '../styles';
|
|
7
|
-
export var StyledListItemText = styled(ListItemText)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n\n white-space: nowrap;\n text-align: left;\n text-overflow: ellipsis;\n"], ["\n overflow: hidden;\n\n white-space: nowrap;\n text-align: left;\n text-overflow: ellipsis;\n"])));
|
|
8
|
-
var templateObject_1;
|