@max-ts/components 0.4.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.d.ts +1 -1
  2. package/lib/components/Alert/Alert.d.ts +31 -0
  3. package/lib/components/Alert/index.d.ts +2 -0
  4. package/lib/components/Alert/styles.d.ts +13 -0
  5. package/lib/components/Alert/types.d.ts +1 -0
  6. package/lib/components/Avatar/Avatar.d.ts +3 -0
  7. package/lib/components/Avatar/index.d.ts +1 -0
  8. package/lib/components/Avatar/styles.d.ts +1 -0
  9. package/lib/components/ConfigProvider/ConfigProvider.d.ts +0 -2
  10. package/lib/components/Layout/Header/Header.d.ts +8 -0
  11. package/lib/components/Layout/Header/index.d.ts +1 -0
  12. package/lib/components/{DataGridOld/Head → Layout/Header}/styles.d.ts +2 -3
  13. package/lib/components/Layout/Layout.d.ts +13 -0
  14. package/lib/components/Layout/LayoutContext/LayoutContext.d.ts +6 -0
  15. package/lib/components/Layout/LayoutContext/index.d.ts +1 -0
  16. package/lib/components/Layout/Main/Main.d.ts +10 -0
  17. package/lib/components/Layout/Main/index.d.ts +1 -0
  18. package/lib/components/Layout/Main/styles.d.ts +1 -0
  19. package/lib/components/Layout/Sidebar/Sidebar.d.ts +26 -0
  20. package/lib/components/Layout/Sidebar/SidebarNav/SidebarNav.d.ts +5 -0
  21. package/lib/components/Layout/Sidebar/SidebarNav/index.d.ts +1 -0
  22. package/lib/components/Layout/Sidebar/SidebarNav/styles.d.ts +1 -0
  23. package/lib/components/Layout/Sidebar/Toggler/ToggleButton/ToggleButton.d.ts +5 -0
  24. package/lib/components/Layout/Sidebar/Toggler/ToggleButton/index.d.ts +1 -0
  25. package/lib/components/Layout/Sidebar/Toggler/ToggleButton/styles.d.ts +10 -0
  26. package/lib/components/Layout/Sidebar/Toggler/Toggler.d.ts +5 -0
  27. package/lib/components/Layout/Sidebar/Toggler/index.d.ts +1 -0
  28. package/lib/components/Layout/Sidebar/Toggler/styles.d.ts +12 -0
  29. package/lib/components/Layout/Sidebar/constants.d.ts +1 -0
  30. package/lib/components/Layout/Sidebar/index.d.ts +1 -0
  31. package/lib/components/Layout/Sidebar/styles.d.ts +6 -0
  32. package/lib/components/Layout/constants.d.ts +3 -0
  33. package/lib/components/Layout/hooks/index.d.ts +1 -0
  34. package/lib/components/Layout/hooks/useSidebar/index.d.ts +1 -0
  35. package/lib/components/Layout/hooks/useSidebar/useSidebar.d.ts +7 -0
  36. package/lib/components/Layout/index.d.ts +3 -0
  37. package/lib/components/Layout/styles.d.ts +5 -0
  38. package/lib/components/ListItemButton/ListItemButton.d.ts +4 -4
  39. package/lib/components/NavMenu/Item/ItemButton/styles.d.ts +1 -1
  40. package/lib/components/NavMenu/NavMenu.d.ts +2 -2
  41. package/lib/components/PageLayout/Aside/Aside.d.ts +6 -0
  42. package/lib/components/PageLayout/Aside/index.d.ts +1 -0
  43. package/lib/components/PageLayout/Aside/styles.d.ts +1 -0
  44. package/lib/components/PageLayout/Content/Content.d.ts +13 -0
  45. package/lib/components/PageLayout/Content/index.d.ts +1 -0
  46. package/lib/components/PageLayout/Content/styles.d.ts +5 -0
  47. package/lib/components/PageLayout/Footer/Footer.d.ts +6 -0
  48. package/lib/components/PageLayout/Footer/index.d.ts +1 -0
  49. package/lib/components/PageLayout/Footer/styles.d.ts +1 -0
  50. package/lib/components/PageLayout/Header/Header.d.ts +66 -0
  51. package/lib/components/PageLayout/Header/index.d.ts +1 -0
  52. package/lib/components/PageLayout/Header/styles.d.ts +45 -0
  53. package/lib/components/PageLayout/PageLayout.d.ts +12 -0
  54. package/lib/components/PageLayout/constants.d.ts +5 -0
  55. package/lib/components/PageLayout/index.d.ts +1 -0
  56. package/lib/components/PageLayout/styles.d.ts +1 -0
  57. package/lib/components/Product/Product.d.ts +6 -0
  58. package/lib/components/Product/index.d.ts +1 -0
  59. package/lib/components/Product/styles.d.ts +9 -0
  60. package/lib/components/Profile/MenuList/MenuList.d.ts +10 -0
  61. package/lib/components/Profile/MenuList/index.d.ts +1 -0
  62. package/lib/components/Profile/MenuList/styles.d.ts +12 -0
  63. package/lib/components/Profile/Profile.d.ts +44 -0
  64. package/lib/components/Profile/index.d.ts +1 -0
  65. package/lib/components/Profile/styles.d.ts +703 -0
  66. package/lib/components/SidebarButton/SidebarButton.d.ts +2 -0
  67. package/lib/components/SidebarButton/index.d.ts +1 -0
  68. package/lib/components/SidebarButton/styles.d.ts +11 -0
  69. package/lib/components/index.d.ts +7 -0
  70. package/lib/form/Form/Form.d.ts +45 -0
  71. package/lib/form/Form/index.d.ts +1 -0
  72. package/lib/form/FormAutocomplete/FormAutocomplete.d.ts +4 -0
  73. package/lib/form/FormAutocomplete/index.d.ts +1 -0
  74. package/lib/form/FormCheckbox/FormCheckbox.d.ts +7 -0
  75. package/lib/form/FormCheckbox/index.d.ts +2 -0
  76. package/lib/form/FormCheckbox/types.d.ts +4 -0
  77. package/lib/form/FormMaskField/FormMaskField.d.ts +4 -0
  78. package/lib/form/FormMaskField/index.d.ts +2 -0
  79. package/lib/form/FormMaskField/types.d.ts +4 -0
  80. package/lib/form/FormSelect/FormSelect.d.ts +7 -0
  81. package/lib/form/FormSelect/index.d.ts +1 -0
  82. package/lib/form/FormSubmitButton/FormSubmitButton.d.ts +6 -0
  83. package/lib/form/FormSubmitButton/index.d.ts +1 -0
  84. package/lib/form/FormTextField/FormTextField.d.ts +7 -0
  85. package/lib/form/FormTextField/index.d.ts +2 -0
  86. package/lib/form/FormTextField/types.d.ts +4 -0
  87. package/lib/form/external.d.ts +1 -0
  88. package/lib/form/hooks/index.d.ts +2 -0
  89. package/lib/form/hooks/useForm/index.d.ts +1 -0
  90. package/lib/form/hooks/useForm/useForm.d.ts +4 -0
  91. package/lib/form/hooks/useFormContext/index.d.ts +1 -0
  92. package/lib/form/index.d.ts +10 -0
  93. package/lib/form/types.d.ts +7 -0
  94. package/lib/index.d.ts +1 -0
  95. package/lib/index.mjs +5634 -3531
  96. package/package.json +2 -1
  97. package/src/index.ts +1 -0
  98. package/lib/components/DataGridOld/Body/Body.d.ts +0 -13
  99. package/lib/components/DataGridOld/Body/index.d.ts +0 -1
  100. package/lib/components/DataGridOld/Body/styles.d.ts +0 -1
  101. package/lib/components/DataGridOld/Cell/Cell.d.ts +0 -7
  102. package/lib/components/DataGridOld/Cell/index.d.ts +0 -1
  103. package/lib/components/DataGridOld/Cell/styles.d.ts +0 -4
  104. package/lib/components/DataGridOld/DataGridOld.d.ts +0 -20
  105. package/lib/components/DataGridOld/Head/Head.d.ts +0 -7
  106. package/lib/components/DataGridOld/Head/index.d.ts +0 -1
  107. package/lib/components/DataGridOld/HeadCell/HeadCell.d.ts +0 -5
  108. package/lib/components/DataGridOld/HeadCell/index.d.ts +0 -1
  109. package/lib/components/DataGridOld/HeadCell/styles.d.ts +0 -3
  110. package/lib/components/DataGridOld/Row/Row.d.ts +0 -11
  111. package/lib/components/DataGridOld/Row/index.d.ts +0 -1
  112. package/lib/components/DataGridOld/Row/styles.d.ts +0 -5
  113. package/lib/components/DataGridOld/State/State.d.ts +0 -6
  114. package/lib/components/DataGridOld/State/index.d.ts +0 -1
  115. package/lib/components/DataGridOld/State/styles.d.ts +0 -1
  116. package/lib/components/DataGridOld/constants.d.ts +0 -1
  117. package/lib/components/DataGridOld/index.d.ts +0 -2
  118. package/lib/components/DataGridOld/styles.d.ts +0 -7
  119. package/lib/components/DataGridOld/types.d.ts +0 -15
@@ -1,6 +1,6 @@
1
1
  import { ElementType } from 'react';
2
2
  import { ListItemButtonProps, TooltipProps } from '../..';
3
- export type SecondaryAction<TSecondaryActionComponent extends ElementType> = Omit<ListItemButtonProps<TSecondaryActionComponent>, 'children'> & {
3
+ export type SecondaryAction<TSecondaryActionComponent extends ElementType> = ListItemButtonProps<TSecondaryActionComponent> & {
4
4
  /**
5
5
  * Название действия
6
6
  */
@@ -0,0 +1,31 @@
1
+ import { AlertProps as MuiAlertProps } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+ import { WithoutEmotionSpecific } from '../types';
4
+ import { AlertSeverity } from './types';
5
+ export type AlertProps = Omit<WithoutEmotionSpecific<MuiAlertProps>, 'severity' | 'variant' | 'action' | 'color' | 'iconMapping'> & {
6
+ /**
7
+ * Тип тоста
8
+ */
9
+ severity?: `${AlertSeverity}`;
10
+ /**
11
+ * @example <Alert title="Заголовок">Сообщение</Alert>
12
+ * Заголовок
13
+ */
14
+ title?: string;
15
+ /**
16
+ * @example <Alert actions={
17
+ * <>
18
+ * <button>действие 1</button>
19
+ * <button>действие 2</button>
20
+ * </>
21
+ * }>Сообщение</Alert>
22
+ * Используется для отображения набора действий
23
+ */
24
+ actions?: ReactNode;
25
+ /**
26
+ * @example <Alert display={false}>Сообщение</Alert>
27
+ * Флаг для отображения/скрытия компонента Alert
28
+ */
29
+ isVisible?: boolean;
30
+ };
31
+ export declare const Alert: ({ children, title, closeText, isVisible, actions, onClose, ...props }: AlertProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './Alert';
2
+ export * from './types';
@@ -0,0 +1,13 @@
1
+ export declare const StyledAlert: import('@emotion/styled').StyledComponent<import('@mui/material').AlertProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
2
+ export declare const Actions: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
3
+ export declare const StyledIconButton: import('@emotion/styled').StyledComponent<Omit<import('../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
4
+ variant?: `${import('..').ButtonVariants}`;
5
+ loading?: boolean;
6
+ loadingIndicator?: import('react').ReactNode;
7
+ loadingPosition?: "start" | "end" | "center";
8
+ color?: `${import('..').ButtonColors}`;
9
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
10
+ selected?: boolean;
11
+ } & {
12
+ loading?: boolean;
13
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1 @@
1
+ export type AlertSeverity = 'info' | 'success' | 'warning' | 'error';
@@ -0,0 +1,3 @@
1
+ import { AvatarProps as MuiAvatarProps } from '@mui/material';
2
+ export type AvatarProps = MuiAvatarProps;
3
+ export declare const Avatar: import('react').ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
@@ -0,0 +1 @@
1
+ export * from './Avatar';
@@ -0,0 +1 @@
1
+ export declare const StyledAvatar: import('@emotion/styled').StyledComponent<import('@mui/material').AvatarOwnProps & import('@mui/material').AvatarSlotsAndSlotProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "sx" | "classes" | "className" | "style" | "children" | "variant" | "slots" | "slotProps" | "alt" | "imgProps" | "sizes" | "src" | "srcSet"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -41,8 +41,6 @@ export type ConfigContextProps = {
41
41
  captureException: (error: unknown) => void;
42
42
  /**
43
43
  * Карта для типовых изображений.
44
- * Используется в компонентах ui-kit, где требуется отображение декоративных
45
- * img
46
44
  */
47
45
  imagesMap: ImagesMap;
48
46
  /**
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ import { ProductProps, ProfileProps } from '../..';
3
+ export type HeaderProps = {
4
+ profile?: ProfileProps;
5
+ product?: ProductProps;
6
+ children?: ReactNode;
7
+ };
8
+ export declare const Header: (props: HeaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Header';
@@ -1,4 +1,3 @@
1
- export declare const StyledHead: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
2
- $height: number;
3
- $gridTemplateColumns: string;
1
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
2
+ isFocusedMode: boolean;
4
3
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
@@ -0,0 +1,13 @@
1
+ export type LayoutProps = {
2
+ children: React.ReactNode;
3
+ isFocusedMode?: boolean;
4
+ };
5
+ export declare const Layout: {
6
+ ({ children, isFocusedMode }: LayoutProps): import("react/jsx-runtime").JSX.Element;
7
+ Header: (props: import('./Header').HeaderProps) => import("react/jsx-runtime").JSX.Element;
8
+ Sidebar: (props: import('./Sidebar').SidebarProps) => import("react/jsx-runtime").JSX.Element;
9
+ Main: ({ children }: {
10
+ children: import('react').ReactNode;
11
+ }) => import("react/jsx-runtime").JSX.Element;
12
+ Alert: ({ children, title, closeText, isVisible, actions, onClose, ...props }: import('..').AlertProps) => import("react/jsx-runtime").JSX.Element;
13
+ };
@@ -0,0 +1,6 @@
1
+ export type LayoutContextProps = {
2
+ isFocusedMode: boolean;
3
+ collapsedIn: boolean;
4
+ onToggleSidebar: () => void;
5
+ };
6
+ export declare const LayoutContext: import('react').Context<LayoutContextProps>;
@@ -0,0 +1 @@
1
+ export * from './LayoutContext';
@@ -0,0 +1,10 @@
1
+ import { ReactNode } from 'react';
2
+ export type MainProps = {
3
+ children: ReactNode;
4
+ };
5
+ /**
6
+ * Основной контент приложения
7
+ */
8
+ export declare const Main: ({ children }: {
9
+ children: ReactNode;
10
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Main';
@@ -0,0 +1 @@
1
+ export declare const MainRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { NavMenuProps } from '../..';
3
+ export type SidebarProps = {
4
+ /**
5
+ * Название класса, применяется к корневому компоненту
6
+ */
7
+ className?: string;
8
+ /**
9
+ * Пропс для передачи контента в заголовок сайдбара
10
+ * @example <Sidebar header={<SidebarButton />>} >
11
+ */
12
+ header?: ReactNode;
13
+ /**
14
+ * Описание меню
15
+ */
16
+ menu: {
17
+ /**
18
+ * Пункты меню
19
+ */
20
+ items: NavMenuProps['items'];
21
+ };
22
+ };
23
+ /**
24
+ * Основной sidebar приложения
25
+ */
26
+ export declare const Sidebar: (props: SidebarProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { ReactElement } from 'react';
2
+ export type SidebarNavProps = {
3
+ menu: ReactElement;
4
+ };
5
+ export declare const SidebarNav: (props: SidebarNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './SidebarNav';
@@ -0,0 +1 @@
1
+ export declare const Navigation: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,5 @@
1
+ import { ButtonProps } from '../../../..';
2
+ export type TogglerButtonProps = ButtonProps<'button'> & {
3
+ collapsedIn: boolean;
4
+ };
5
+ export declare const ToggleButton: (props: TogglerButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './ToggleButton';
@@ -0,0 +1,10 @@
1
+ export declare const TogglerButtonRoot: import('@emotion/styled').StyledComponent<Omit<import('../../../../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
2
+ variant?: `${import('../../../..').ButtonVariants}`;
3
+ loading?: boolean;
4
+ loadingIndicator?: import('react').ReactNode;
5
+ loadingPosition?: "start" | "end" | "center";
6
+ color?: `${import('../../../..').ButtonColors}`;
7
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
+ selected?: boolean;
9
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
10
+ export declare const TogglerIconWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,5 @@
1
+ export type TogglerProps = {
2
+ collapsedIn: boolean;
3
+ onToggle: () => void;
4
+ };
5
+ export declare const Toggler: (props: TogglerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Toggler';
@@ -0,0 +1,12 @@
1
+ export declare const TogglerRoot: import('@emotion/styled').StyledComponent<Omit<import('../../../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<"button">>, "color" | "variant"> & {
2
+ variant?: `${import('../../..').ButtonVariants}`;
3
+ loading?: boolean;
4
+ loadingIndicator?: import('react').ReactNode;
5
+ loadingPosition?: "start" | "end" | "center";
6
+ color?: `${import('../../..').ButtonColors}`;
7
+ component?: "button" | undefined;
8
+ selected?: boolean;
9
+ } & {
10
+ collapsedIn: boolean;
11
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
12
+ export declare const TogglerContent: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -0,0 +1 @@
1
+ export declare const LAYOUT_SIDEBAR_CLASSNAME = "layout-sidebar";
@@ -0,0 +1 @@
1
+ export * from './Sidebar';
@@ -0,0 +1,6 @@
1
+ export declare const SidebarRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
2
+ $collapsedIn: boolean;
3
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
4
+ export declare const SidebarHeader: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
5
+ export declare const SidebarContent: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const SidebarFooter: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,3 @@
1
+ export declare const HEADER_HEIGHT = "60px";
2
+ export declare const LAYOUT_CLASSNAME = "app-layout";
3
+ export declare const LOCAL_STORAGE_KEY = "sidebar::collapsedIn";
@@ -0,0 +1 @@
1
+ export * from './useSidebar';
@@ -0,0 +1 @@
1
+ export * from './useSidebar';
@@ -0,0 +1,7 @@
1
+ type ReturnedSidebarHook = {
2
+ collapsedIn: boolean;
3
+ onToggleSidebar: () => void;
4
+ };
5
+ type UseSidebarHook = (localStorageKey: string, isFocusedMode: boolean) => ReturnedSidebarHook;
6
+ export declare const useSidebar: UseSidebarHook;
7
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from './Layout';
2
+ export * from './LayoutContext';
3
+ export type { SidebarProps } from './Sidebar';
@@ -0,0 +1,5 @@
1
+ import { Alert } from '../Alert';
2
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
3
+ isFocusedMode: boolean;
4
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const StyledAlert: typeof Alert;
@@ -1,8 +1,8 @@
1
- import { ListItemButtonTypeMap, ListItemButtonProps as MuiListItemButtonProps } from '@mui/material';
1
+ import { ListItemButtonProps as MuiListItemButtonProps } from '@mui/material';
2
2
  import { ElementType } from 'react';
3
3
  import { TooltipProps } from '../Tooltip';
4
4
  import { WithoutEmotionSpecific } from '../types';
5
- export type ListItemButtonProps<RootComponent extends React.ElementType = ListItemButtonTypeMap['defaultComponent']> = Omit<WithoutEmotionSpecific<MuiListItemButtonProps<RootComponent>>, 'disableRipple'> & {
5
+ export type ListItemButtonProps<RootComponent extends React.ElementType> = Omit<WithoutEmotionSpecific<MuiListItemButtonProps<RootComponent>>, 'disableRipple'> & {
6
6
  tooltipPlacement?: TooltipProps['placement'];
7
7
  /**
8
8
  * Текст тултипа при заблокированном состоянии элемента меню
@@ -12,10 +12,10 @@ export type ListItemButtonProps<RootComponent extends React.ElementType = ListIt
12
12
  * Текст тултипа при наведении на элемент меню
13
13
  */
14
14
  note?: string;
15
- component?: ElementType;
16
15
  /**
17
16
  * withoutContainer необходим для обратной совместимости и рендерит компонент без тега li
18
17
  */
19
18
  withoutContainer?: boolean;
19
+ component?: RootComponent;
20
20
  };
21
- export declare const ListItemButton: <RootComponent extends React.ElementType = "div">(props: ListItemButtonProps<RootComponent>) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const ListItemButton: <RootComponent extends React.ElementType = ElementType>(props: ListItemButtonProps<RootComponent>) => import("react/jsx-runtime").JSX.Element;
@@ -2,8 +2,8 @@ export declare const StyledListItemButton: import('@emotion/styled').StyledCompo
2
2
  tooltipPlacement?: import('../../..').TooltipProps["placement"];
3
3
  disabledReason?: string;
4
4
  note?: string;
5
- component?: import('react').ElementType;
6
5
  withoutContainer?: boolean;
6
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
7
7
  } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
8
8
  $isGroupTitleItem: boolean;
9
9
  }, {}, {}>;
@@ -1,4 +1,4 @@
1
- import { ComponentProps, ElementType } from 'react';
1
+ import { ElementType } from 'react';
2
2
  import { ItemProps } from './Item';
3
3
  export type NavMenuProps<TComponent extends ElementType = ElementType> = {
4
4
  /**
@@ -9,7 +9,7 @@ export type NavMenuProps<TComponent extends ElementType = ElementType> = {
9
9
  key: ItemProps['item'][0],
10
10
  value: ItemProps['item'][1] & {
11
11
  component?: TComponent;
12
- } & Omit<ComponentProps<ElementType extends TComponent ? 'button' : TComponent>, ''>
12
+ }
13
13
  ][];
14
14
  };
15
15
  export declare const NavMenu: <TComponent extends ElementType>(props: NavMenuProps<TComponent>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type PageAsideProps = {
3
+ children: ReactNode;
4
+ className?: string;
5
+ };
6
+ export declare const Aside: ({ children, className }: PageAsideProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Aside';
@@ -0,0 +1 @@
1
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ export type PageContentProps = {
3
+ children: ReactNode;
4
+ /**
5
+ * Флаг, растягивающий контейнер на 100% высоты
6
+ */
7
+ isFullHeight?: boolean;
8
+ /**
9
+ * Название класса, применяется к корневому компоненту
10
+ */
11
+ className?: string;
12
+ };
13
+ export declare const Content: (props: PageContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Content';
@@ -0,0 +1,5 @@
1
+ type PageContentWrapperProps = {
2
+ $isFullHeight?: boolean;
3
+ };
4
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & PageContentWrapperProps, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type PageLayoutFooterProps = {
3
+ className?: string;
4
+ children: ReactNode;
5
+ };
6
+ export declare const Footer: (props: PageLayoutFooterProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Footer';
@@ -0,0 +1 @@
1
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,66 @@
1
+ import { ElementType, ReactNode } from 'react';
2
+ import { ActionGroupProps } from '../../ActionGroup';
3
+ import { ButtonProps } from '../../Button';
4
+ import { Theme } from '../../../theme';
5
+ export type PageHeaderProps<TMainActionComponent extends ElementType = ElementType, TSecondaryActionComponent extends ElementType = ElementType, TBackButtonComponent extends ElementType = ElementType> = {
6
+ /**
7
+ * Заголовок страницы
8
+ * @example <PageHeader title="Заголовок страницы" />
9
+ */
10
+ title: ReactNode;
11
+ /**
12
+ * Описание страницы
13
+ * @example <PageHeader description="Описание страницы" />
14
+ */
15
+ description?: ReactNode;
16
+ /**
17
+ * Набор компонент, отображаемый в нижней части блока
18
+ * @example <PageHeader subheader={<TextField placeholder="Поиск на странице..." size="small" />} />
19
+ */
20
+ subheader?: ReactNode;
21
+ /**
22
+ * Хлебные крошки
23
+ * @example <PageHeader breadcrumbs={
24
+ * [
25
+ * <Link>Первая ссылка</Link>,
26
+ * <Link>Вторая ссылка</Link>,
27
+ * <>Текст</>,
28
+ * ]
29
+ * } />
30
+ */
31
+ breadcrumbs?: ReactNode[];
32
+ /**
33
+ * Набор кнопок, видимые конфигурируются через объект main, скрытые в меню - через secondary
34
+ * @example <PageHeader actions={{
35
+ * main: [
36
+ * {
37
+ * text: 'Основное действие',
38
+ * },
39
+ * ],
40
+ * secondary: [
41
+ * {
42
+ * text: 'Вспомогательное действие',
43
+ * },
44
+ * ]
45
+ * }} />
46
+ */
47
+ actions?: ActionGroupProps<TMainActionComponent, TSecondaryActionComponent>;
48
+ /**
49
+ * Название класса, применяется к корневому компоненту
50
+ */
51
+ className?: string;
52
+ /**
53
+ * Кнопка возврата на предыдущий экран
54
+ * @example
55
+ * <PageHeader
56
+ * backButton={{
57
+ * onClick: () => {},
58
+ * }}
59
+ * />
60
+ */
61
+ backButton?: Omit<ButtonProps<TBackButtonComponent>, 'children' | 'variant'> & {
62
+ component?: TBackButtonComponent;
63
+ theme?: Theme | undefined;
64
+ };
65
+ };
66
+ export declare const Header: <TMainActionComponent extends ElementType, TSecondaryActionComponent extends ElementType, TBackButtonComponent extends ElementType>(props: PageHeaderProps<TMainActionComponent, TSecondaryActionComponent, TBackButtonComponent>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Header';
@@ -0,0 +1,45 @@
1
+ import { ActionGroup } from '../../ActionGroup';
2
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
3
+ export declare const StyledBreadcrumbs: import('@emotion/styled').StyledComponent<import('@mui/material').BreadcrumbsOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "sx" | "classes" | "className" | "style" | "children" | "separator" | "slots" | "slotProps" | "expandText" | "itemsAfterCollapse" | "itemsBeforeCollapse" | "maxItems"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
+ export declare const BackButton: import('@emotion/styled').StyledComponent<Omit<import('../../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
5
+ variant?: `${import('../..').ButtonVariants}`;
6
+ loading?: boolean;
7
+ loadingIndicator?: import('react').ReactNode;
8
+ loadingPosition?: "start" | "end" | "center";
9
+ color?: `${import('../..').ButtonColors}`;
10
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
+ selected?: boolean;
12
+ } & {
13
+ loading?: boolean;
14
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
15
+ export declare const PageSubheader: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const Description: import('@emotion/styled').StyledComponent<{
17
+ children?: import('react').ReactNode;
18
+ ref?: import('react').Ref<HTMLSpanElement> | undefined;
19
+ align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
20
+ gutterBottom?: boolean | undefined;
21
+ noWrap?: boolean | undefined;
22
+ paragraph?: boolean | undefined;
23
+ } & {
24
+ color?: import('../../Typography').TypographyColor;
25
+ variant?: import('../../Typography').TypographyVariant;
26
+ colorIntensity?: import('../../Typography').Intensity;
27
+ component?: "symbol" | "object" | "text" | "main" | "clipPath" | "filter" | "mask" | "marker" | "style" | "div" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | import('react').ComponentType<any>;
28
+ isUpperCase?: boolean;
29
+ } & import('react').HTMLAttributes<HTMLParagraphElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
30
+ export declare const Title: import('@emotion/styled').StyledComponent<{
31
+ children?: import('react').ReactNode;
32
+ ref?: import('react').Ref<HTMLSpanElement> | undefined;
33
+ align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
34
+ gutterBottom?: boolean | undefined;
35
+ noWrap?: boolean | undefined;
36
+ paragraph?: boolean | undefined;
37
+ } & {
38
+ color?: import('../../Typography').TypographyColor;
39
+ variant?: import('../../Typography').TypographyVariant;
40
+ colorIntensity?: import('../../Typography').Intensity;
41
+ component?: "symbol" | "object" | "text" | "main" | "clipPath" | "filter" | "mask" | "marker" | "style" | "div" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "big" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "center" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "keygen" | "label" | "legend" | "li" | "link" | "map" | "mark" | "menu" | "menuitem" | "meta" | "meter" | "nav" | "noindex" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "param" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "search" | "slot" | "script" | "section" | "select" | "small" | "source" | "span" | "strong" | "sub" | "summary" | "sup" | "table" | "template" | "tbody" | "td" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view" | import('react').ComponentType<any>;
42
+ isUpperCase?: boolean;
43
+ } & import('react').HTMLAttributes<HTMLParagraphElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
44
+ export declare const Actions: typeof ActionGroup;
45
+ export declare const MobileWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ export type PageLayoutProps = {
3
+ children: ReactNode;
4
+ className?: string;
5
+ };
6
+ export declare const PageLayout: {
7
+ ({ children, className }: PageLayoutProps): import("react/jsx-runtime").JSX.Element;
8
+ Header: <TMainActionComponent extends import('react').ElementType, TSecondaryActionComponent extends import('react').ElementType, TBackButtonComponent extends import('react').ElementType>(props: import('./Header').PageHeaderProps<TMainActionComponent, TSecondaryActionComponent, TBackButtonComponent>) => import("react/jsx-runtime").JSX.Element;
9
+ Content: (props: import('./Content').PageContentProps) => import("react/jsx-runtime").JSX.Element;
10
+ Footer: (props: import('./Footer').PageLayoutFooterProps) => import("react/jsx-runtime").JSX.Element;
11
+ Aside: ({ children, className }: import('./Aside').PageAsideProps) => import("react/jsx-runtime").JSX.Element;
12
+ };
@@ -0,0 +1,5 @@
1
+ export declare const PAGE_CONTENT_WRAPPER_CLASSNAME = "page-content__wrapper";
2
+ export declare const PAGE_CONTENT_CLASSNAME = "page-content";
3
+ export declare const PAGE_HEADER_ACTIONS_CLASSNAME = "page_header_actions";
4
+ export declare const PAGE_HEADER_CLASSNAME = "page_header";
5
+ export declare const PAGE_ASIDE_CLASSNAME = "page_aside";
@@ -0,0 +1 @@
1
+ export * from './PageLayout';
@@ -0,0 +1 @@
1
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,6 @@
1
+ import { ButtonProps } from '../Button';
2
+ export type ProductProps = ButtonProps<'button'> & {
3
+ logo: () => React.ReactNode;
4
+ name: string;
5
+ };
6
+ export declare const Product: (props: ProductProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Product';
@@ -0,0 +1,9 @@
1
+ export declare const StyledButton: import('@emotion/styled').StyledComponent<Omit<import('../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
2
+ variant?: `${import('../Button').ButtonVariants}`;
3
+ loading?: boolean;
4
+ loadingIndicator?: import('react').ReactNode;
5
+ loadingPosition?: "start" | "end" | "center";
6
+ color?: `${import('../Button').ButtonColors}`;
7
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
8
+ selected?: boolean;
9
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1,10 @@
1
+ import { MenuProps as MuiMenuProps } from '@mui/material';
2
+ import { ProfileMenuItemData } from '../Profile';
3
+ type MenuListProps = MuiMenuProps & {
4
+ menuList?: Array<ProfileMenuItemData>;
5
+ };
6
+ /**
7
+ * Компонент для рендера menu с помощью массива данных
8
+ */
9
+ export declare const MenuList: (props: MenuListProps) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export * from './MenuList';