@astral/ui 4.68.1 → 4.70.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/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +3 -2
- package/components/ActionGroup/MainActions/styles.d.ts +2 -1
- package/components/ActionGroup/SecondaryVisibleActions/styles.d.ts +2 -1
- package/components/Alert/styles.d.ts +2 -1
- package/components/AutoSaveIndicator/ErrorState/styles.d.ts +2 -1
- package/components/AutoSaveIndicator/styles.d.ts +2 -1
- package/components/Button/Button.d.ts +2 -1
- package/components/Button/types.d.ts +4 -3
- package/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +2 -1
- package/components/CheckableTag/CheckableTag.d.ts +0 -1
- package/components/CheckableTag/CheckableTag.js +0 -1
- package/components/CollapsibleTypography/styles.d.ts +2 -1
- package/components/ConfirmDialog/styles.d.ts +2 -1
- package/components/DashboardAlert/styles.d.ts +2 -1
- package/components/DashboardLayout/Container/styles.js +1 -1
- package/components/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/components/DashboardLayout/DashboardLayout.js +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.js +5 -5
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.js +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.js +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.d.ts +6 -6
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.js +8 -8
- package/{node/components → components/DashboardLayout}/DashboardSidebar/types.d.ts +1 -1
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.js +3 -3
- package/{node/components → components/DashboardLayout}/DashboardSidebar/useLogic/useLogic.d.ts +2 -2
- package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/useLogic.js +7 -7
- package/components/DashboardLayout/Header/styles.d.ts +2 -1
- package/components/DashboardLayout/Header/styles.js +1 -1
- package/components/DashboardLayout/index.d.ts +1 -0
- package/components/DashboardLayout/public.d.ts +1 -1
- package/components/DashboardSidebarButton/styles.d.ts +2 -1
- package/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +1 -1
- package/components/DataGrid/DataGrid.js +1 -2
- package/components/DataGrid/Row/NestedChildren/styles.d.ts +2 -1
- package/components/DataGrid/Row/Row.js +5 -2
- package/components/DataGrid/Row/constants.d.ts +1 -0
- package/components/DataGrid/Row/constants.js +1 -0
- package/components/DataGrid/Row/styles.d.ts +2 -1
- package/components/DataGrid/Row/styles.js +23 -11
- package/components/DataGrid/Row/useLogic/useLogic.d.ts +2 -1
- package/components/DataGrid/Row/useLogic/useLogic.js +3 -1
- package/components/DataGrid/types.d.ts +0 -3
- package/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.d.ts +2 -1
- package/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.d.ts +2 -1
- package/components/DataGridActionCell/SecondaryActionsButton/styles.d.ts +2 -1
- package/components/DataGridInfinite/DataGridInfinite.js +2 -2
- package/components/DatePicker/styles.d.ts +2 -1
- package/components/FlowButton/styles.d.ts +2 -1
- package/components/IconButton/IconButton.d.ts +2 -1
- package/components/IconButton/styles.d.ts +2 -1
- package/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -1
- package/components/MenuOrganization/OrganizationButton/styles.d.ts +2 -1
- package/components/MenuOrganization/OrganizationItem/styles.d.ts +2 -1
- package/components/NewStepper/Step/styles.d.ts +2 -1
- package/components/Notification/NotificationStackContainer/NotificationStackContainer.js +1 -1
- package/components/Notification/NotificationStackContainer/styles.d.ts +2 -1
- package/components/Notification/NotificationTemplate/styles.d.ts +2 -1
- package/components/NotificationList/ListItem/ListItem.js +1 -1
- package/components/PageHeader/MobilePageActions/styles.d.ts +1 -1
- package/components/PageHeader/PageActions/PageActions.d.ts +1 -1
- package/components/PageHeader/PageActions/SecondaryActions/styles.d.ts +2 -1
- package/components/PageHeader/PageActions/SecondaryVisibleActions/styles.d.ts +2 -1
- package/components/PageHeader/PageActions/styles.d.ts +2 -1
- package/components/PageHeader/Title/styles.d.ts +2 -1
- package/components/Pagination/PaginationItem/PaginationItem.js +1 -1
- package/components/Pagination/PaginationItem/styles.d.ts +2 -1
- package/components/PinButton/styles.d.ts +2 -1
- package/components/Product/styles.d.ts +2 -1
- package/components/Profile/styles.d.ts +2 -1
- package/components/SearchField/styles.d.ts +2 -1
- package/components/StaticCalendar/StaticCalendarButton/styles.d.ts +2 -1
- package/components/Tag/styles.d.ts +2 -1
- package/components/Tree/TreeItem/styles.d.ts +2 -1
- package/components/index.d.ts +1 -1
- package/hook-form/EditableText/EditingForm/styles.d.ts +2 -1
- package/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.d.ts +2 -1
- package/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.d.ts +4 -2
- package/hook-form/FormPageLayout/FormPageFooter/styles.d.ts +2 -1
- package/hook-form/FormPageLayoutBase/FormMobileActions/styles.d.ts +2 -1
- package/hook-form/FormWizard/Footer/styles.d.ts +2 -1
- package/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -1
- package/node/components/ActionGroup/MainActions/hooks/useMainActions/useMainActions.d.ts +3 -2
- package/node/components/ActionGroup/MainActions/styles.d.ts +2 -1
- package/node/components/ActionGroup/SecondaryVisibleActions/styles.d.ts +2 -1
- package/node/components/Alert/styles.d.ts +2 -1
- package/node/components/AutoSaveIndicator/ErrorState/styles.d.ts +2 -1
- package/node/components/AutoSaveIndicator/styles.d.ts +2 -1
- package/node/components/Button/Button.d.ts +2 -1
- package/node/components/Button/types.d.ts +4 -3
- package/node/components/CardGridInfinite/Card/SecondaryActionButton/styles.d.ts +2 -1
- package/node/components/CheckableTag/CheckableTag.d.ts +0 -1
- package/node/components/CheckableTag/CheckableTag.js +0 -1
- package/node/components/CollapsibleTypography/styles.d.ts +2 -1
- package/node/components/ConfirmDialog/styles.d.ts +2 -1
- package/node/components/DashboardAlert/styles.d.ts +2 -1
- package/node/components/DashboardLayout/Container/styles.js +6 -6
- package/node/components/DashboardLayout/DashboardLayout.d.ts +1 -1
- package/node/components/DashboardLayout/DashboardLayout.js +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.js +5 -5
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.js +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.js +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.d.ts +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/styles.js +12 -12
- package/{components → node/components/DashboardLayout}/DashboardSidebar/types.d.ts +1 -1
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.js +3 -3
- package/{components → node/components/DashboardLayout}/DashboardSidebar/useLogic/useLogic.d.ts +2 -2
- package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/useLogic.js +7 -7
- package/node/components/DashboardLayout/Header/styles.d.ts +2 -1
- package/node/components/DashboardLayout/Header/styles.js +20 -20
- package/node/components/DashboardLayout/index.d.ts +1 -0
- package/node/components/DashboardLayout/public.d.ts +1 -1
- package/node/components/DashboardSidebarButton/styles.d.ts +2 -1
- package/node/components/DashboardSidebarSkeleton/DashboardSidebarSkeleton.js +1 -1
- package/node/components/DataGrid/DataGrid.js +1 -2
- package/node/components/DataGrid/Row/NestedChildren/styles.d.ts +2 -1
- package/node/components/DataGrid/Row/Row.js +5 -2
- package/node/components/DataGrid/Row/constants.d.ts +1 -0
- package/node/components/DataGrid/Row/constants.js +1 -0
- package/node/components/DataGrid/Row/styles.d.ts +2 -1
- package/node/components/DataGrid/Row/styles.js +23 -11
- package/node/components/DataGrid/Row/useLogic/useLogic.d.ts +2 -1
- package/node/components/DataGrid/Row/useLogic/useLogic.js +3 -1
- package/node/components/DataGrid/types.d.ts +0 -3
- package/node/components/DataGridActionCell/DataGridMainActions/Action/MainIconButton/styles.d.ts +2 -1
- package/node/components/DataGridActionCell/DataGridMainActions/Action/MobileMainButton/styles.d.ts +2 -1
- package/node/components/DataGridActionCell/SecondaryActionsButton/styles.d.ts +2 -1
- package/node/components/DataGridInfinite/DataGridInfinite.js +2 -2
- package/node/components/DatePicker/styles.d.ts +2 -1
- package/node/components/FlowButton/styles.d.ts +2 -1
- package/node/components/IconButton/IconButton.d.ts +2 -1
- package/node/components/IconButton/styles.d.ts +2 -1
- package/node/components/LegacyNotification/NotificationTemplate/styles.d.ts +2 -1
- package/node/components/MenuOrganization/OrganizationButton/styles.d.ts +2 -1
- package/node/components/MenuOrganization/OrganizationItem/styles.d.ts +2 -1
- package/node/components/NewStepper/Step/styles.d.ts +2 -1
- package/node/components/Notification/NotificationStackContainer/NotificationStackContainer.js +1 -1
- package/node/components/Notification/NotificationStackContainer/styles.d.ts +2 -1
- package/node/components/Notification/NotificationTemplate/styles.d.ts +2 -1
- package/node/components/NotificationList/ListItem/ListItem.js +1 -1
- package/node/components/PageHeader/MobilePageActions/styles.d.ts +1 -1
- package/node/components/PageHeader/PageActions/PageActions.d.ts +1 -1
- package/node/components/PageHeader/PageActions/SecondaryActions/styles.d.ts +2 -1
- package/node/components/PageHeader/PageActions/SecondaryVisibleActions/styles.d.ts +2 -1
- package/node/components/PageHeader/PageActions/styles.d.ts +2 -1
- package/node/components/PageHeader/Title/styles.d.ts +2 -1
- package/node/components/Pagination/PaginationItem/PaginationItem.js +1 -1
- package/node/components/Pagination/PaginationItem/styles.d.ts +2 -1
- package/node/components/PinButton/styles.d.ts +2 -1
- package/node/components/Product/styles.d.ts +2 -1
- package/node/components/Profile/styles.d.ts +2 -1
- package/node/components/SearchField/styles.d.ts +2 -1
- package/node/components/StaticCalendar/StaticCalendarButton/styles.d.ts +2 -1
- package/node/components/Tag/styles.d.ts +2 -1
- package/node/components/Tree/TreeItem/styles.d.ts +2 -1
- package/node/components/index.d.ts +1 -1
- package/node/hook-form/EditableText/EditingForm/styles.d.ts +2 -1
- package/node/hook-form/FormFilters/FormFiltersDialog/ResetButton/styles.d.ts +2 -1
- package/node/hook-form/FormPageLayout/FormPageFooter/SecondaryActions/styles.d.ts +4 -2
- package/node/hook-form/FormPageLayout/FormPageFooter/styles.d.ts +2 -1
- package/node/hook-form/FormPageLayoutBase/FormMobileActions/styles.d.ts +2 -1
- package/node/hook-form/FormWizard/Footer/styles.d.ts +2 -1
- package/node/hook-form/FormWizardPageLayout/FormWizardFooter/styles.d.ts +2 -1
- package/package.json +1 -1
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/types.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.js +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.d.ts +0 -0
- /package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/SidebarNav.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/constants.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/SidebarNav/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/constants.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/types.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/index.js +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/hooks/useCloseSidebarOnMobile/useCloseSidebarOnMobile.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.d.ts +0 -0
- /package/node/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/index.js +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ElementType } from 'react';
|
|
2
|
+
import type { ButtonSize } from '../../../../Button';
|
|
2
3
|
import type { MainActionsProps, MultipleAction, SingleAction } from '../../../types';
|
|
3
4
|
export declare const useMainActions: <TMainActionComponent extends ElementType>({ actions, size, isDisabled, }: MainActionsProps<TMainActionComponent>) => ({
|
|
4
5
|
tooltipProps: {
|
|
@@ -9,7 +10,7 @@ export declare const useMainActions: <TMainActionComponent extends ElementType>(
|
|
|
9
10
|
buttonProps: Omit<MultipleAction<TMainActionComponent>, "text" | "note" | "disabled" | "disabledReason" | "isNested" | "actions" | "isBlockingOperation"> & {
|
|
10
11
|
disabled: boolean | undefined;
|
|
11
12
|
name: string;
|
|
12
|
-
size:
|
|
13
|
+
size: ButtonSize;
|
|
13
14
|
};
|
|
14
15
|
isNested: true;
|
|
15
16
|
nestedActions: {
|
|
@@ -330,7 +331,7 @@ export declare const useMainActions: <TMainActionComponent extends ElementType>(
|
|
|
330
331
|
buttonProps: Omit<SingleAction<TMainActionComponent>, "text" | "note" | "disabled" | "disabledReason" | "isNested" | "isBlockingOperation"> & {
|
|
331
332
|
disabled: boolean | undefined;
|
|
332
333
|
children: string;
|
|
333
|
-
size:
|
|
334
|
+
size: ButtonSize;
|
|
334
335
|
};
|
|
335
336
|
nestedActions: never[];
|
|
336
337
|
})[];
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const StyledButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const StyledButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
export declare const StyledGrid: import("../styled").StyledComponent<Omit<import("../Grid/GridComponent").GridComponentProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
} & import("../Grid/styles").StyledGridProps, {}, {}>;
|
|
5
|
-
export declare const StyledIconButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
5
|
+
export declare const StyledIconButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
6
6
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
7
7
|
loading?: boolean | undefined;
|
|
8
8
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
9
9
|
component?: import("react").ElementType | undefined;
|
|
10
10
|
selected?: boolean | undefined;
|
|
11
|
+
size?: "large" | "medium" | undefined;
|
|
11
12
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
12
13
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
14
|
}, {}, {}>;
|
|
@@ -3,12 +3,13 @@ export declare const ErrorWrapper: import("../../styled").StyledComponent<{
|
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const StyledButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
6
|
+
export declare const StyledButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
7
7
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
8
8
|
loading?: boolean | undefined;
|
|
9
9
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
10
10
|
component?: import("react").ElementType | undefined;
|
|
11
11
|
selected?: boolean | undefined;
|
|
12
|
+
size?: "large" | "medium" | undefined;
|
|
12
13
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
13
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
15
|
}, {}, {}>;
|
|
@@ -17,12 +17,13 @@ export declare const StyledTypography: import("../styled").StyledComponent<impor
|
|
|
17
17
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
18
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
19
|
}, {}, {}>;
|
|
20
|
-
export declare const StyledIconButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
20
|
+
export declare const StyledIconButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
21
21
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
22
22
|
loading?: boolean | undefined;
|
|
23
23
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
24
24
|
component?: import("react").ElementType | undefined;
|
|
25
25
|
selected?: boolean | undefined;
|
|
26
|
+
size?: "large" | "medium" | undefined;
|
|
26
27
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
27
28
|
theme?: import("@emotion/react").Theme | undefined;
|
|
28
29
|
}, {}, {}>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type ElementType } from 'react';
|
|
2
|
-
export declare const Button: <TComponent extends ElementType>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const Button: <TComponent extends ElementType>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: TComponent | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").ComponentPropsWithRef<ElementType extends TComponent ? "button" : TComponent>, ""> & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
|
|
9
10
|
export default Button;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ButtonProps as MuiButtonProps } from '@mui/material/Button';
|
|
2
2
|
import { type ComponentPropsWithRef, type ElementType } from 'react';
|
|
3
3
|
import type { WithoutEmotionSpecific } from '../types/WithoutEmotionSpecific';
|
|
4
|
-
import { type ButtonColors, type
|
|
4
|
+
import { type ButtonColors, type ButtonStates, type ButtonVariants } from './enums';
|
|
5
5
|
declare module '@mui/material/Button' {
|
|
6
6
|
interface ButtonPropsVariantOverrides {
|
|
7
7
|
contained: true;
|
|
@@ -20,9 +20,9 @@ declare module '@mui/material/Button' {
|
|
|
20
20
|
}
|
|
21
21
|
export type ButtonColor = `${ButtonColors}`;
|
|
22
22
|
export type ButtonVariant = `${ButtonVariants}`;
|
|
23
|
-
export type ButtonSize =
|
|
23
|
+
export type ButtonSize = 'medium' | 'large';
|
|
24
24
|
export type ButtonState = `${ButtonStates}`;
|
|
25
|
-
export type ButtonProps<TComponent extends ElementType = ElementType> = Omit<WithoutEmotionSpecific<MuiButtonProps>, 'variant' | 'color' | 'centerRipple' | 'disableRipple' | 'TouchRippleProps' | 'disableTouchRipple' | 'disableFocusRipple' | 'focusRipple' | 'touchRippleRef' | 'component'> & {
|
|
25
|
+
export type ButtonProps<TComponent extends ElementType = ElementType> = Omit<WithoutEmotionSpecific<MuiButtonProps>, 'variant' | 'color' | 'centerRipple' | 'disableRipple' | 'TouchRippleProps' | 'disableTouchRipple' | 'disableFocusRipple' | 'focusRipple' | 'touchRippleRef' | 'component' | 'size'> & {
|
|
26
26
|
/**
|
|
27
27
|
* Тип кнопки
|
|
28
28
|
*/
|
|
@@ -43,4 +43,5 @@ export type ButtonProps<TComponent extends ElementType = ElementType> = Omit<Wit
|
|
|
43
43
|
* Состояние кнопки - selected
|
|
44
44
|
*/
|
|
45
45
|
selected?: boolean;
|
|
46
|
+
size?: 'medium' | 'large';
|
|
46
47
|
} & Omit<ComponentPropsWithRef<ElementType extends TComponent ? 'button' : TComponent>, ''>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const StyledIconButton: import("../../../styled").StyledComponent<Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const StyledIconButton: import("../../../styled").StyledComponent<Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
|
@@ -38,7 +38,6 @@ export type CheckableTagProps = Omit<TagProps, 'onChange' | 'startAddon' | 'endA
|
|
|
38
38
|
* onChange={handleChecked}
|
|
39
39
|
* endAddon={(props: TagBadgeProps) => (<TagBadge {...props} badgeContent={'12'} />)}
|
|
40
40
|
* />
|
|
41
|
-
* @deprecated Используйте компонент Chip
|
|
42
41
|
*/
|
|
43
42
|
export declare const CheckableTag: import("react").ForwardRefExoticComponent<Omit<TagProps, "onChange" | "variant" | "startAddon" | "endAddon"> & {
|
|
44
43
|
/**
|
|
@@ -12,7 +12,6 @@ import { HiddenInput, StyledTag, Wrapper } from './styles';
|
|
|
12
12
|
* onChange={handleChecked}
|
|
13
13
|
* endAddon={(props: TagBadgeProps) => (<TagBadge {...props} badgeContent={'12'} />)}
|
|
14
14
|
* />
|
|
15
|
-
* @deprecated Используйте компонент Chip
|
|
16
15
|
*/
|
|
17
16
|
export const CheckableTag = forwardRef(({ checked, variant = 'light', color = 'grey', onChange, disabled, startAddon: StartAddon, endAddon: EndAddon, ...tagProps }, ref) => {
|
|
18
17
|
const checkableStartAddon = StartAddon
|
|
@@ -18,12 +18,13 @@ export declare const Wrapper: import("../styled").StyledComponent<import("../Typ
|
|
|
18
18
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & import("react").RefAttributes<HTMLSpanElement> & {
|
|
19
19
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
20
|
} & CollapsibleTypographyWrapperProps, {}, {}>;
|
|
21
|
-
export declare const StyledButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
21
|
+
export declare const StyledButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
22
22
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
23
23
|
loading?: boolean | undefined;
|
|
24
24
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
25
25
|
component?: import("react").ElementType | undefined;
|
|
26
26
|
selected?: boolean | undefined;
|
|
27
|
+
size?: "large" | "medium" | undefined;
|
|
27
28
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
28
29
|
theme?: import("@emotion/react").Theme | undefined;
|
|
29
30
|
} & {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const CancelButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const CancelButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
}, {}, {}>;
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
export declare const StyledAlert: import("../styled").StyledComponent<import("../Alert").AlertProps & import("react").RefAttributes<HTMLDivElement> & {
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
}, {}, {}>;
|
|
5
|
-
export declare const StyledButton: <TComponent extends import("react").ElementType>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
5
|
+
export declare const StyledButton: <TComponent extends import("react").ElementType>(props: Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
6
6
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
7
7
|
loading?: boolean | undefined;
|
|
8
8
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
9
9
|
component?: TComponent | undefined;
|
|
10
10
|
selected?: boolean | undefined;
|
|
11
|
+
size?: "large" | "medium" | undefined;
|
|
11
12
|
} & Omit<import("react").ComponentPropsWithRef<import("react").ElementType extends TComponent ? "button" : TComponent>, ""> & import("react").RefAttributes<HTMLButtonElement>) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dashboardSidebarClassnames } from '../../DashboardSidebar/constants';
|
|
2
1
|
import { styled } from '../../styled';
|
|
2
|
+
import { dashboardSidebarClassnames } from '../DashboardSidebar';
|
|
3
3
|
import { containerClassnames } from './constants';
|
|
4
4
|
export const Root = styled.div `
|
|
5
5
|
display: grid;
|
|
@@ -6,6 +6,6 @@ import { type DashboardLayoutProps } from './types';
|
|
|
6
6
|
export declare const DashboardLayout: {
|
|
7
7
|
({ children, isFocusedMode, isLoading, mobileHeaderPriorityFeature, desktopViewMode, }: DashboardLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
Header: import("react").ForwardRefExoticComponent<import("./Header").HeaderProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
Sidebar: import("react").ForwardRefExoticComponent<import("
|
|
9
|
+
Sidebar: import("react").ForwardRefExoticComponent<import("./DashboardSidebar").DashboardSidebarProps & import("react").RefAttributes<HTMLBaseElement>>;
|
|
10
10
|
Main: import("react").ForwardRefExoticComponent<import("./Main").MainProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { DashboardContextProvider } from '../DashboardContext';
|
|
3
|
-
import { DashboardSidebar } from '
|
|
3
|
+
import { DashboardSidebar } from './DashboardSidebar';
|
|
4
4
|
import { DashboardWrapper } from './DashboardWrapper';
|
|
5
5
|
import { Header } from './Header';
|
|
6
6
|
import { Main } from './Main';
|
package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/DashboardSidebar.js
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import { DashboardSidebarSkeleton } from '
|
|
4
|
-
import { NavMenu } from '
|
|
5
|
-
import { PinButton } from '
|
|
6
|
-
import { cva } from '
|
|
7
|
-
import { getInertProps } from '
|
|
3
|
+
import { DashboardSidebarSkeleton } from '../../DashboardSidebarSkeleton';
|
|
4
|
+
import { NavMenu } from '../../NavMenu';
|
|
5
|
+
import { PinButton } from '../../PinButton';
|
|
6
|
+
import { cva } from '../../utils/cva';
|
|
7
|
+
import { getInertProps } from '../../utils/getInertProps';
|
|
8
8
|
import { dashboardSidebarClassnames } from './constants';
|
|
9
9
|
import { SidebarNav } from './SidebarNav';
|
|
10
10
|
import { Footer, SidebarContent, SidebarHeader, SidebarRoot, StyledPaper, Wrapper, } from './styles';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createUIKitClassname } from '
|
|
1
|
+
import { createUIKitClassname } from '../../utils/createUIKitClassname';
|
|
2
2
|
export const dashboardSidebarClassnames = {
|
|
3
3
|
root: createUIKitClassname('dashboard-layout-sidebar'),
|
|
4
4
|
hasProfile: createUIKitClassname('dashboard-layout-sidebar_has-profile'),
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const Wrapper: import("
|
|
2
|
+
export declare const Wrapper: import("../../styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
$isPinned: boolean;
|
|
7
7
|
$alertHeight: number;
|
|
8
8
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
-
export declare const StyledPaper: import("
|
|
9
|
+
export declare const StyledPaper: import("../../styled").StyledComponent<Omit<import("../../Paper").PaperProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
|
|
10
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
11
|
}, {}, {}>;
|
|
12
|
-
export declare const SidebarRoot: import("
|
|
12
|
+
export declare const SidebarRoot: import("../../styled").StyledComponent<{
|
|
13
13
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
14
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
$isPinned: boolean;
|
|
17
17
|
$collapsedIn: boolean;
|
|
18
18
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
19
|
-
export declare const SidebarHeader: import("
|
|
19
|
+
export declare const SidebarHeader: import("../../styled").StyledComponent<{
|
|
20
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
21
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
22
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
23
|
-
export declare const SidebarContent: import("
|
|
23
|
+
export declare const SidebarContent: import("../../styled").StyledComponent<{
|
|
24
24
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
25
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
26
|
} & {
|
|
@@ -28,7 +28,7 @@ export declare const SidebarContent: import("../styled").StyledComponent<{
|
|
|
28
28
|
$isPinned: boolean;
|
|
29
29
|
$hasHeader: boolean;
|
|
30
30
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
31
|
-
export declare const Footer: import("
|
|
31
|
+
export declare const Footer: import("../../styled").StyledComponent<{
|
|
32
32
|
theme?: import("@emotion/react").Theme | undefined;
|
|
33
33
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
34
34
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { FOOTER_DESKTOP_HEIGHT, FOOTER_LAPTOP_HEIGHT } from '
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { FOOTER_DESKTOP_HEIGHT, FOOTER_LAPTOP_HEIGHT } from '../../constants';
|
|
2
|
+
import { menuOrganizationClassnames } from '../../MenuOrganization/constants';
|
|
3
|
+
import { MOBILE_BUTTON_HEIGHT } from '../../MenuOrganization/OrganizationButton';
|
|
4
|
+
import { navMenuItemButtonClassnames } from '../../NavMenu/Item';
|
|
5
|
+
import { Paper } from '../../Paper';
|
|
6
|
+
import { pinButtonClassnames } from '../../PinButton';
|
|
7
|
+
import { styled } from '../../styled';
|
|
8
|
+
import { HEADER_HEIGHT_MOBILE } from '../constants';
|
|
9
9
|
import { dashboardSidebarClassnames, LABEL_WIDTH } from './constants';
|
|
10
10
|
export const Wrapper = styled('div', {
|
|
11
11
|
shouldForwardProp: (prop) => !['$isPinned', '$alertHeight'].includes(prop),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext, useEffect } from 'react';
|
|
2
|
-
import { DashboardSidebarContext } from '
|
|
3
|
-
import { navMenuItemButtonClassnames } from '
|
|
4
|
-
import { useViewportType } from '
|
|
2
|
+
import { DashboardSidebarContext } from '../../../../../DashboardSidebarProvider';
|
|
3
|
+
import { navMenuItemButtonClassnames } from '../../../../../NavMenu';
|
|
4
|
+
import { useViewportType } from '../../../../../useViewportType';
|
|
5
5
|
import { sidebarNavClassnames } from '../../../SidebarNav';
|
|
6
6
|
export const useCloseSidebarOnMobile = () => {
|
|
7
7
|
const { isMobile } = useViewportType();
|
package/{node/components → components/DashboardLayout}/DashboardSidebar/useLogic/useLogic.d.ts
RENAMED
|
@@ -12,13 +12,13 @@ export declare const useLogic: (props: DashboardSidebarProps) => {
|
|
|
12
12
|
items: [key: string, value: {
|
|
13
13
|
icon: import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
|
|
14
14
|
text: import("react").ReactNode;
|
|
15
|
-
counter?: import("
|
|
15
|
+
counter?: import("../../../NavMenu/Item").CounterProps | undefined;
|
|
16
16
|
active?: boolean | undefined;
|
|
17
17
|
items?: [key: string, value: {
|
|
18
18
|
text: import("react").ReactNode;
|
|
19
19
|
active: boolean;
|
|
20
20
|
component: import("react").ElementType;
|
|
21
|
-
counter?: import("
|
|
21
|
+
counter?: import("../../../NavMenu/Item").CounterProps | undefined;
|
|
22
22
|
}][] | undefined;
|
|
23
23
|
component?: import("react").ElementType | undefined;
|
|
24
24
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & {
|
package/components/{DashboardSidebar → DashboardLayout/DashboardSidebar}/useLogic/useLogic.js
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useContext, useEffect, useRef } from 'react';
|
|
2
|
-
import { DashboardContext } from '
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { DashboardContext } from '../../../DashboardContext';
|
|
3
|
+
import { DashboardSidebarContext } from '../../../DashboardSidebarProvider';
|
|
4
|
+
import { useTheme } from '../../../theme/hooks/useTheme';
|
|
5
|
+
import { useViewportType } from '../../../useViewportType';
|
|
6
|
+
import { classNames } from '../../../utils/classNames';
|
|
7
|
+
import { dashboardLayoutHeaderClassnames } from '../../Header';
|
|
8
|
+
import { dashboardLayoutMainClassnames } from '../../Main';
|
|
9
9
|
import { dashboardSidebarClassnames } from '../constants';
|
|
10
10
|
import { useCloseSidebarOnMobile } from './hooks';
|
|
11
11
|
export const useLogic = (props) => {
|
|
@@ -29,12 +29,13 @@ export declare const ProfileWrapper: import("../../styled").StyledComponent<{
|
|
|
29
29
|
} & {
|
|
30
30
|
$isShow: boolean;
|
|
31
31
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
32
|
-
export declare const ExitButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material/Button").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
32
|
+
export declare const ExitButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material/Button").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
33
33
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
34
34
|
loading?: boolean | undefined;
|
|
35
35
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
36
36
|
component?: import("react").ElementType | undefined;
|
|
37
37
|
selected?: boolean | undefined;
|
|
38
|
+
size?: "large" | "medium" | undefined;
|
|
38
39
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
39
40
|
theme?: import("@emotion/react").Theme | undefined;
|
|
40
41
|
} & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { buttonClasses } from '@mui/material/Button';
|
|
2
2
|
import { dashboardLayoutNotificationListClassnames } from '../../DashboardLayoutNotificationList';
|
|
3
|
-
import { dashboardSidebarClassnames } from '../../DashboardSidebar/constants';
|
|
4
3
|
import { IconButton } from '../../IconButton';
|
|
5
4
|
import { menuOrganizationClassnames } from '../../MenuOrganization/constants';
|
|
6
5
|
import { MOBILE_BUTTON_HEIGHT } from '../../MenuOrganization/OrganizationButton/constants';
|
|
7
6
|
import { profileClassnames } from '../../Profile/constants';
|
|
8
7
|
import { styled } from '../../styled';
|
|
9
8
|
import { dashboardLayoutClassnames, HEADER_HEIGHT_DESKTOP, HEADER_HEIGHT_LAPTOP, HEADER_HEIGHT_MOBILE, } from '../constants';
|
|
9
|
+
import { dashboardSidebarClassnames } from '../DashboardSidebar/constants';
|
|
10
10
|
import { dashboardLayoutHeaderClassnames } from './constants';
|
|
11
11
|
export const HeaderRoot = styled('header', {
|
|
12
12
|
shouldForwardProp: (prop) => !['$isFocusedMode'].includes(prop),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { DashboardLayout } from './DashboardLayout';
|
|
2
2
|
export type { DashboardLayoutProps } from './types';
|
|
3
|
+
export type { DashboardSidebarProps } from './DashboardSidebar';
|
|
3
4
|
export { dashboardLayoutHeaderClassnames } from './Header';
|
|
4
5
|
export { dashboardLayoutMainClassnames } from './Main';
|
|
5
6
|
export { dashboardLayoutClassnames } from './constants';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SidebarButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
2
|
+
export declare const SidebarButton: import("../styled").StyledComponent<Omit<import("..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
3
3
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
4
4
|
loading?: boolean | undefined;
|
|
5
5
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
6
6
|
component?: import("react").ElementType | undefined;
|
|
7
7
|
selected?: boolean | undefined;
|
|
8
|
+
size?: "large" | "medium" | undefined;
|
|
8
9
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
9
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
11
|
} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { dashboardSidebarClassnames } from '../DashboardSidebar/constants';
|
|
2
|
+
import { dashboardSidebarClassnames } from '../DashboardLayout/DashboardSidebar/constants';
|
|
3
3
|
import { Skeleton } from '../Skeleton';
|
|
4
4
|
import { classNames } from '../utils/classNames';
|
|
5
5
|
import { ItemWrapper, ListWrapper, SkeletonDescription, Wrapper, } from './styles';
|
|
@@ -64,7 +64,6 @@ export const DataGrid = (props) => {
|
|
|
64
64
|
}, [noDataPlaceholder, noDataOptions, isLoading]);
|
|
65
65
|
const commonBodyProps = {
|
|
66
66
|
...bodyProps,
|
|
67
|
-
activeRowId,
|
|
68
67
|
keyId,
|
|
69
68
|
selectedRows,
|
|
70
69
|
minDisplayRows,
|
|
@@ -82,7 +81,7 @@ export const DataGrid = (props) => {
|
|
|
82
81
|
};
|
|
83
82
|
const renderTableContent = () => {
|
|
84
83
|
if (!hasPinnedColumns || isMobile) {
|
|
85
|
-
return (_jsxs(Wrapper, { ...getInertProps(isDataGridDisabled), className: dataGridClassnames.wrapper, children: [headPreAddon, !isHideHead && (_jsx(Head, { ...headProps, columns: headColumns, gridColumns: gridColumns })), _jsx(ContentState, { ...contentStateProps, loadingContent: isMobile && _jsx(MobileSkeleton, { ...mobileSkeletonProps }), children: _jsx(Body, { ...commonBodyProps, columns: columns, gridColumns: gridColumns, className: bodyCva({
|
|
84
|
+
return (_jsxs(Wrapper, { ...getInertProps(isDataGridDisabled), className: dataGridClassnames.wrapper, children: [headPreAddon, !isHideHead && (_jsx(Head, { ...headProps, columns: headColumns, gridColumns: gridColumns })), _jsx(ContentState, { ...contentStateProps, loadingContent: isMobile && _jsx(MobileSkeleton, { ...mobileSkeletonProps }), children: _jsx(Body, { ...commonBodyProps, activeRowId: activeRowId, columns: columns, gridColumns: gridColumns, className: bodyCva({
|
|
86
85
|
isNoData,
|
|
87
86
|
}) }) })] }));
|
|
88
87
|
}
|
|
@@ -14,12 +14,13 @@ export declare const MoreButtonRow: import("../../../styled").StyledComponent<{
|
|
|
14
14
|
$isShowConnector: boolean;
|
|
15
15
|
$gridColumns: string;
|
|
16
16
|
}, import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
|
|
17
|
-
export declare const MoreButton: import("../../../styled").StyledComponent<Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
17
|
+
export declare const MoreButton: import("../../../styled").StyledComponent<Omit<import("../../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
18
18
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
19
19
|
loading?: boolean | undefined;
|
|
20
20
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
21
21
|
component?: import("react").ElementType | undefined;
|
|
22
22
|
selected?: boolean | undefined;
|
|
23
|
+
size?: "large" | "medium" | undefined;
|
|
23
24
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
24
25
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
26
|
} & {
|
|
@@ -26,6 +26,9 @@ const rowContentCva = cva(dataGridRowContentClassnames.root, {
|
|
|
26
26
|
isHovered: {
|
|
27
27
|
true: dataGridRowContentClassnames.hovered,
|
|
28
28
|
},
|
|
29
|
+
isActive: {
|
|
30
|
+
true: dataGridRowContentClassnames.active,
|
|
31
|
+
},
|
|
29
32
|
},
|
|
30
33
|
});
|
|
31
34
|
const groupedColumnLabelCva = cva(dataGridGroupedColumnLabelClassnames.root, {
|
|
@@ -36,7 +39,7 @@ const groupedColumnLabelCva = cva(dataGridGroupedColumnLabelClassnames.root, {
|
|
|
36
39
|
},
|
|
37
40
|
});
|
|
38
41
|
const RowComponent = (props) => {
|
|
39
|
-
const { isOpen, isShowConnector, childrenColumns, rowId, handleToggle, checkboxProps, rowProps, isHovered, tooltipProps, nestedChildrenProps, disabled, isRenderCollapseButton, rowRef, rowStyles, drawerProps, disabledReasonText, } = useLogic(props);
|
|
42
|
+
const { isOpen, isShowConnector, childrenColumns, rowId, handleToggle, checkboxProps, rowProps, isHovered, tooltipProps, nestedChildrenProps, disabled, isRenderCollapseButton, rowRef, rowStyles, drawerProps, disabledReasonText, isActive, } = useLogic(props);
|
|
40
43
|
const { className, row, options, variant, isSelectable, gridColumns, isInitialExpanded, expandedLevel, level, nestedChildren, initialVisibleChildrenCount, moreButtonColumnPosition, isVisibleCollapseButton, columns, emptyCellValue, selectedRows, activeRowId, keyId, onSelectRow, onRowClick, sectionOffset, totalColumnsCount, registerRowElement, unregisterRowElement, onRowEnter, onRowLeave, style,
|
|
41
44
|
// В этот rest-оператор попадают специфичные пропсы (атрибуты) virtuoso
|
|
42
45
|
// Необходимы для DataGridInfinite
|
|
@@ -99,7 +102,7 @@ const RowComponent = (props) => {
|
|
|
99
102
|
onRowEnter,
|
|
100
103
|
onRowLeave,
|
|
101
104
|
]);
|
|
102
|
-
return (_jsxs(Wrapper, { className: classNames(className, rootCva({ isShowConnector })), style: rowStyles, ...selfProps, children: [_jsx(Tooltip, { followCursor: true, arrow: false, ...tooltipProps, children: _jsx(ContentWrapper, { "data-row-id": rowId, ref: rowRef, onPointerEnter: () => onRowEnter?.(rowId), onPointerLeave: (event) => onRowLeave?.(rowId, event.nativeEvent), className: rowContentCva({ isHovered }), "$gridColumns": gridColumns, [DISABLE_ROW_ATTR]: disabled, ...rowProps, children: renderCells() }) }), _jsx(NestedChildren, { ...nestedChildrenProps, data: nestedChildren, keyId: keyId, level: level, variant: variant, gridColumns: gridColumns, initialVisibleChildrenCount: initialVisibleChildrenCount, moreButtonColumnPosition: moreButtonColumnPosition,
|
|
105
|
+
return (_jsxs(Wrapper, { className: classNames(className, rootCva({ isShowConnector })), style: rowStyles, ...selfProps, children: [_jsx(Tooltip, { followCursor: true, arrow: false, ...tooltipProps, children: _jsx(ContentWrapper, { "data-row-id": rowId, ref: rowRef, onPointerEnter: () => onRowEnter?.(rowId), onPointerLeave: (event) => onRowLeave?.(rowId, event.nativeEvent), className: rowContentCva({ isHovered, isActive }), "$gridColumns": gridColumns, [DISABLE_ROW_ATTR]: disabled, ...rowProps, children: renderCells() }) }), _jsx(NestedChildren, { ...nestedChildrenProps, data: nestedChildren, keyId: keyId, level: level, variant: variant, gridColumns: gridColumns, initialVisibleChildrenCount: initialVisibleChildrenCount, moreButtonColumnPosition: moreButtonColumnPosition,
|
|
103
106
|
// biome-ignore lint/suspicious/noTsIgnore: <>
|
|
104
107
|
// @ts-ignore
|
|
105
108
|
renderRow: renderRow }), _jsx(BottomDrawer, { ...drawerProps, children: _jsx(BottomDrawerContent, { children: disabledReasonText }) })] }));
|
|
@@ -12,6 +12,7 @@ export const dataGridRowClassnames = {
|
|
|
12
12
|
export const dataGridRowContentClassnames = {
|
|
13
13
|
root: createUIKitClassname('data-grid__row-content'),
|
|
14
14
|
hovered: createUIKitClassname('data-grid__row-content_hovered'),
|
|
15
|
+
active: createUIKitClassname('data-grid__row-content_active'),
|
|
15
16
|
};
|
|
16
17
|
export const dataGridRowCellClassnames = {
|
|
17
18
|
single: createUIKitClassname('data-grid__row-cell_single'),
|
|
@@ -20,12 +20,13 @@ export declare const CollapseCell: import("../../styled").StyledComponent<{
|
|
|
20
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
21
21
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
22
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
|
-
export declare const CollapseButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
23
|
+
export declare const CollapseButton: import("../../styled").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
|
|
24
24
|
variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
|
|
25
25
|
loading?: boolean | undefined;
|
|
26
26
|
color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
|
|
27
27
|
component?: import("react").ElementType | undefined;
|
|
28
28
|
selected?: boolean | undefined;
|
|
29
|
+
size?: "large" | "medium" | undefined;
|
|
29
30
|
} & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
|
|
30
31
|
theme?: import("@emotion/react").Theme | undefined;
|
|
31
32
|
}, {}, {}>;
|