@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
@@ -0,0 +1,12 @@
1
+ export declare const StyledMenu: import('@emotion/styled').StyledComponent<import('../../types').WithoutEmotionSpecific<import('@mui/material').MenuProps> & {
2
+ title?: string;
3
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
4
+ export declare const StyledMenuItem: import('@emotion/styled').StyledComponent<import('../../types').WithoutEmotionSpecific<import('@mui/material').MenuItemProps<import('react').ElementType>> & {
5
+ disabledReason?: string;
6
+ note?: string;
7
+ tooltipPlacement?: import('../..').TooltipProps["placement"];
8
+ component?: import('react').ElementType | undefined;
9
+ href?: string;
10
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
11
+ $divider?: boolean;
12
+ }, {}, {}>;
@@ -0,0 +1,44 @@
1
+ import { AvatarProps, MenuProps } from '@mui/material';
2
+ import { PropsWithChildren, ReactElement, ReactNode } from 'react';
3
+ import { WithoutEmotionSpecific } from '../types';
4
+ export type ProfileMenuItemData = {
5
+ icon: ReactNode;
6
+ title: ReactNode;
7
+ onClick?: () => void;
8
+ divider?: boolean;
9
+ /**
10
+ * @example
11
+ * const renderItem: ProfileMenuItemData['render'] = ({ title, icon }) => (
12
+ * <MenuItem>
13
+ * <Typography variant="caption" color="primary">
14
+ * {title}
15
+ * </Typography>
16
+ * <IconButton variant="text">{icon}</IconButton>
17
+ * </MenuItem>
18
+ * );
19
+ */
20
+ render?: (props: Omit<ProfileMenuItemData, 'render'>) => React.ReactElement;
21
+ };
22
+ export type ProfileProps = {
23
+ /**
24
+ * Имя профиля
25
+ */
26
+ displayName: string;
27
+ /**
28
+ * Дополнительная информация (например email или username)
29
+ */
30
+ annotation?: string;
31
+ /**
32
+ * Аватарка профиля
33
+ */
34
+ avatar?: AvatarProps;
35
+ /**
36
+ * Кастомный рендер menu. Перекрывает menuList и exitButton
37
+ */
38
+ menu?: (props: PropsWithChildren<WithoutEmotionSpecific<MenuProps>>) => ReactElement;
39
+ /**
40
+ * Рендер menu через массив данных. Перекрывает menu и может использоваться с exitButton
41
+ */
42
+ menuList?: Array<ProfileMenuItemData>;
43
+ };
44
+ export declare const Profile: (props: ProfileProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Profile';