@max-ts/components 0.7.0 → 1.0.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 (74) hide show
  1. package/lib/components/Checkbox/Checkbox.d.ts +2 -7
  2. package/lib/components/CheckboxField/CheckboxField.d.ts +4 -0
  3. package/lib/components/CheckboxField/styles.d.ts +1 -1
  4. package/lib/components/DashboardLayout/DashboardContext.d.ts +4 -0
  5. package/lib/components/DashboardLayout/DashboardLayout.d.ts +13 -0
  6. package/lib/components/DashboardLayout/Main/Main.d.ts +6 -0
  7. package/lib/components/DashboardLayout/Sidebar/Sidebar.d.ts +11 -0
  8. package/lib/components/DashboardLayout/Sidebar/constants.d.ts +2 -0
  9. package/lib/components/DashboardLayout/Sidebar/styles.d.ts +8 -0
  10. package/lib/components/DashboardLayout/constants.d.ts +1 -0
  11. package/lib/components/DashboardLayout/index.d.ts +1 -0
  12. package/lib/components/DashboardLayout/styles.d.ts +1 -0
  13. package/lib/components/DataGridPagination/useLogic/useLogic.d.ts +1 -1
  14. package/lib/components/FormLabel/styles.d.ts +1 -1
  15. package/lib/components/ListItemButton/ListItemButton.d.ts +3 -4
  16. package/lib/components/Profile/Profile.d.ts +1 -0
  17. package/lib/components/SidebarNav/MenuItem/MenuItem.d.ts +4 -0
  18. package/lib/components/SidebarNav/MenuItem/index.d.ts +1 -0
  19. package/lib/components/SidebarNav/MenuItem/styles.d.ts +11 -0
  20. package/lib/components/SidebarNav/SidebarNav.d.ts +6 -0
  21. package/lib/components/{Layout/Sidebar/SidebarNav → SidebarNav}/index.d.ts +1 -0
  22. package/lib/components/SidebarNav/styles.d.ts +1 -0
  23. package/lib/components/SidebarNav/types.d.ts +9 -0
  24. package/lib/components/SidebarProduct/SidebarProduct.d.ts +6 -0
  25. package/lib/components/SidebarProduct/index.d.ts +1 -0
  26. package/lib/components/SidebarProduct/styles.d.ts +25 -0
  27. package/lib/components/Tag/styles.d.ts +1 -1
  28. package/lib/components/index.d.ts +3 -4
  29. package/lib/index.mjs +3719 -4139
  30. package/package.json +6 -6
  31. package/lib/components/Checkbox/icons.d.ts +0 -4
  32. package/lib/components/Checkbox/styles.d.ts +0 -5
  33. package/lib/components/Layout/Header/Header.d.ts +0 -8
  34. package/lib/components/Layout/Header/index.d.ts +0 -1
  35. package/lib/components/Layout/Header/styles.d.ts +0 -3
  36. package/lib/components/Layout/Layout.d.ts +0 -13
  37. package/lib/components/Layout/LayoutContext/LayoutContext.d.ts +0 -6
  38. package/lib/components/Layout/LayoutContext/index.d.ts +0 -1
  39. package/lib/components/Layout/Main/Main.d.ts +0 -10
  40. package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -26
  41. package/lib/components/Layout/Sidebar/SidebarNav/SidebarNav.d.ts +0 -5
  42. package/lib/components/Layout/Sidebar/SidebarNav/styles.d.ts +0 -1
  43. package/lib/components/Layout/Sidebar/Toggler/ToggleButton/ToggleButton.d.ts +0 -5
  44. package/lib/components/Layout/Sidebar/Toggler/ToggleButton/index.d.ts +0 -1
  45. package/lib/components/Layout/Sidebar/Toggler/ToggleButton/styles.d.ts +0 -10
  46. package/lib/components/Layout/Sidebar/Toggler/Toggler.d.ts +0 -5
  47. package/lib/components/Layout/Sidebar/Toggler/index.d.ts +0 -1
  48. package/lib/components/Layout/Sidebar/Toggler/styles.d.ts +0 -12
  49. package/lib/components/Layout/Sidebar/constants.d.ts +0 -1
  50. package/lib/components/Layout/Sidebar/styles.d.ts +0 -6
  51. package/lib/components/Layout/constants.d.ts +0 -3
  52. package/lib/components/Layout/hooks/index.d.ts +0 -1
  53. package/lib/components/Layout/hooks/useSidebar/index.d.ts +0 -1
  54. package/lib/components/Layout/hooks/useSidebar/useSidebar.d.ts +0 -7
  55. package/lib/components/Layout/index.d.ts +0 -3
  56. package/lib/components/Layout/styles.d.ts +0 -5
  57. package/lib/components/NavMenu/Item/Item.d.ts +0 -16
  58. package/lib/components/NavMenu/Item/ItemButton/ItemButton.d.ts +0 -11
  59. package/lib/components/NavMenu/Item/ItemButton/index.d.ts +0 -1
  60. package/lib/components/NavMenu/Item/List/List.d.ts +0 -13
  61. package/lib/components/NavMenu/Item/List/index.d.ts +0 -1
  62. package/lib/components/NavMenu/Item/index.d.ts +0 -1
  63. package/lib/components/NavMenu/NavMenu.d.ts +0 -15
  64. package/lib/components/NavMenu/index.d.ts +0 -1
  65. package/lib/components/Product/Product.d.ts +0 -6
  66. package/lib/components/Product/index.d.ts +0 -1
  67. package/lib/components/Product/styles.d.ts +0 -9
  68. package/lib/components/SidebarButton/SidebarButton.d.ts +0 -2
  69. package/lib/components/SidebarButton/index.d.ts +0 -1
  70. package/lib/components/SidebarButton/styles.d.ts +0 -11
  71. package/lib/theme/components/MuiListItemButton.d.ts +0 -3
  72. /package/lib/components/{Layout → DashboardLayout}/Main/index.d.ts +0 -0
  73. /package/lib/components/{Layout → DashboardLayout}/Main/styles.d.ts +0 -0
  74. /package/lib/components/{Layout → DashboardLayout}/Sidebar/index.d.ts +0 -0
@@ -1,9 +1,4 @@
1
1
  import { CheckboxProps as MuiCheckboxProps } from '@mui/material';
2
2
  import { WithoutEmotionSpecific } from '../types';
3
- export type CheckboxProps = Omit<WithoutEmotionSpecific<MuiCheckboxProps>, 'size' | 'color'> & {
4
- /**
5
- * Флаг для активации error стилей.
6
- */
7
- isError?: boolean;
8
- };
9
- export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
3
+ export type CheckboxProps = Omit<WithoutEmotionSpecific<MuiCheckboxProps>, 'size' | 'color'>;
4
+ export declare const Checkbox: ({ ...props }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -5,6 +5,10 @@ export type CheckboxFieldProps = CheckboxProps & {
5
5
  * Флаг отображения успешного состояния текстовой ошибки (helperText)
6
6
  */
7
7
  isSuccess?: boolean;
8
+ /**
9
+ * Флаг отображения ошибочного состояния текстовой ошибки (helperText)
10
+ */
11
+ isError?: boolean;
8
12
  /**
9
13
  * Текст-подсказка
10
14
  */
@@ -5,4 +5,4 @@ export declare const StyledFormControlledLabel: import('@emotion/styled').Styled
5
5
  /**
6
6
  * Уменьшает padding сверху, чтобы чекбокс не был ниже текста
7
7
  */
8
- export declare const StyledCheckbox: import('@emotion/styled').StyledComponent<Omit<import('../Checkbox').CheckboxProps, "ref"> & import('react').RefAttributes<HTMLButtonElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
8
+ export declare const StyledCheckbox: import('@emotion/styled').StyledComponent<import('../Checkbox').CheckboxProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -0,0 +1,4 @@
1
+ export declare const DashboardContext: import('react').Context<{
2
+ collapsed?: boolean;
3
+ toggleCollapsed: () => void;
4
+ }>;
@@ -0,0 +1,13 @@
1
+ export type DashboardLayoutProps = {
2
+ children: React.ReactNode;
3
+ className?: string;
4
+ };
5
+ export declare const DashboardLayout: {
6
+ ({ children, className, }: DashboardLayoutProps): import("react/jsx-runtime").JSX.Element;
7
+ Sidebar: ({ width, collapsedWidth, header, footer, content, groups, className, }: import('./Sidebar').SidebarProps) => import("react/jsx-runtime").JSX.Element;
8
+ Main: ({ children, className }: import('./Main').MainProps) => import("react/jsx-runtime").JSX.Element;
9
+ };
10
+ export declare const useDashboard: () => {
11
+ collapsed?: boolean;
12
+ toggleCollapsed: () => void;
13
+ };
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ export type MainProps = {
3
+ children: ReactNode;
4
+ className?: string;
5
+ };
6
+ export declare const Main: ({ children, className }: MainProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { CSSProperties } from 'react';
2
+ export type SidebarProps = {
3
+ width?: CSSProperties['width'];
4
+ collapsedWidth?: CSSProperties['width'];
5
+ header?: React.ReactNode;
6
+ footer?: React.ReactNode;
7
+ content?: React.ReactNode;
8
+ groups?: React.ReactNode[];
9
+ className?: string;
10
+ };
11
+ export declare const Sidebar: ({ width, collapsedWidth, header, footer, content, groups, className, }: SidebarProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export declare const SIDEBAR_WIDTH = "16rem";
2
+ export declare const SIDEBAR_WIDTH_COLLAPSED = "54px";
@@ -0,0 +1,8 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const SidebarContainer: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
3
+ width: CSSProperties["width"];
4
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
5
+ export declare const SidebarHeader: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
6
+ export declare const SidebarFooter: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
7
+ export declare const SidebarContent: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
8
+ export declare const SidebarGroup: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
@@ -0,0 +1 @@
1
+ export declare const LOCAL_STORAGE_KEY = "dashboard::collapsedIn";
@@ -0,0 +1 @@
1
+ export * from './DashboardLayout';
@@ -0,0 +1 @@
1
+ export declare const LayoutContainer: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -5,6 +5,6 @@ export declare const useLogic: ({ totalCount, rowsPerPage, page, onSetCountPerPa
5
5
  isVisiblePagination: boolean;
6
6
  pageCount: number;
7
7
  formattedRange: () => string;
8
- handleChangeRowsPerPage: (event: SelectChangeEvent<unknown>) => void;
8
+ handleChangeRowsPerPage: (event: SelectChangeEvent<number>) => void;
9
9
  };
10
10
  export {};
@@ -1 +1 @@
1
- export declare const StyledFormLabel: import('@emotion/styled').StyledComponent<import('@mui/material').FormLabelBaseProps & import('@mui/material').FormLabelOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "sx" | "error" | "disabled" | "filled" | "color" | "content" | "translate" | keyof import('@mui/material/OverridableComponent').CommonProps | "children" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "focused" | "required" | "htmlFor"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
1
+ export declare const StyledFormLabel: import('@emotion/styled').StyledComponent<import('@mui/material').FormLabelBaseProps & import('@mui/material').FormLabelOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "sx" | "error" | "disabled" | "color" | "content" | "translate" | "filled" | keyof import('@mui/material/OverridableComponent').CommonProps | "children" | "form" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "focused" | "required" | "htmlFor"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -1,8 +1,7 @@
1
- import { ListItemButtonProps as MuiListItemButtonProps } from '@mui/material';
2
- import { ElementType } from 'react';
1
+ import { ListItemButtonTypeMap, ListItemButtonProps as MuiLostItemButtonProps } from '@mui/material';
3
2
  import { TooltipProps } from '../Tooltip';
4
3
  import { WithoutEmotionSpecific } from '../types';
5
- export type ListItemButtonProps<RootComponent extends React.ElementType> = Omit<WithoutEmotionSpecific<MuiListItemButtonProps<RootComponent>>, 'disableRipple'> & {
4
+ export type ListItemButtonProps<RootComponent extends React.ElementType> = Omit<WithoutEmotionSpecific<MuiLostItemButtonProps<RootComponent>>, 'disableRipple'> & {
6
5
  tooltipPlacement?: TooltipProps['placement'];
7
6
  /**
8
7
  * Текст тултипа при заблокированном состоянии элемента меню
@@ -18,4 +17,4 @@ export type ListItemButtonProps<RootComponent extends React.ElementType> = Omit<
18
17
  withoutContainer?: boolean;
19
18
  component?: RootComponent;
20
19
  };
21
- export declare const ListItemButton: <RootComponent extends React.ElementType = ElementType>(props: ListItemButtonProps<RootComponent>) => import("react/jsx-runtime").JSX.Element;
20
+ export declare const ListItemButton: <RootComponent extends React.ElementType = ListItemButtonTypeMap["defaultComponent"]>(props: ListItemButtonProps<RootComponent>) => import("react/jsx-runtime").JSX.Element;
@@ -40,5 +40,6 @@ export type ProfileProps = {
40
40
  * Рендер menu через массив данных. Перекрывает menu и может использоваться с exitButton
41
41
  */
42
42
  menuList?: Array<ProfileMenuItemData>;
43
+ collapsed?: boolean;
43
44
  };
44
45
  export declare const Profile: (props: ProfileProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { SidebarNavItem } from '../types';
2
+ export declare const MenuItem: ({ collapsed, icon, active, label, subItems, renderItem, onClick, id, }: SidebarNavItem & {
3
+ collapsed?: boolean;
4
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './MenuItem';
@@ -0,0 +1,11 @@
1
+ export declare const Item: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
2
+ active?: boolean;
3
+ }, import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
4
+ export declare const SubItem: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
5
+ active?: boolean;
6
+ }, import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, {}>;
7
+ export declare const ItemButton: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
8
+ active?: boolean;
9
+ }, import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
10
+ export declare const ItemCollapse: import('@emotion/styled').StyledComponent<import('../..').CollapseProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
11
+ export declare const Label: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
@@ -0,0 +1,6 @@
1
+ import { SidebarNavItem } from './types';
2
+ export type SidebarNavProps = {
3
+ items: SidebarNavItem[];
4
+ collapsed?: boolean;
5
+ };
6
+ export declare const SidebarNav: ({ items, collapsed }: SidebarNavProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,2 @@
1
1
  export * from './SidebarNav';
2
+ export * from './types';
@@ -0,0 +1 @@
1
+ export declare const StyledNav: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
@@ -0,0 +1,9 @@
1
+ export type SidebarNavItem = {
2
+ label: string;
3
+ id: string;
4
+ icon: React.ReactNode;
5
+ active?: boolean;
6
+ onClick?: (event: React.MouseEvent<HTMLLIElement>) => void;
7
+ renderItem?: (props: Omit<SidebarNavItem, 'renderItem' | 'subItems' | 'icon'>) => React.ReactNode;
8
+ subItems?: Omit<SidebarNavItem, 'subItems' | 'icon'>[];
9
+ };
@@ -0,0 +1,6 @@
1
+ import { ButtonProps } from '../Button';
2
+ export type SidebarProductProps = ButtonProps<'button'> & {
3
+ logo: () => React.ReactNode;
4
+ name: string;
5
+ };
6
+ export declare const SidebarProduct: (props: SidebarProductProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './SidebarProduct';
@@ -0,0 +1,25 @@
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> & {
10
+ collapsed?: boolean;
11
+ }, {}, {}>;
12
+ export declare const Name: import('@emotion/styled').StyledComponent<{
13
+ children?: import('react').ReactNode;
14
+ ref?: import('react').Ref<HTMLSpanElement> | undefined;
15
+ align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
16
+ gutterBottom?: boolean | undefined;
17
+ noWrap?: boolean | undefined;
18
+ paragraph?: boolean | undefined;
19
+ } & {
20
+ color?: import('../Typography').TypographyColor;
21
+ variant?: import('../Typography').TypographyVariant;
22
+ colorIntensity?: import('../Typography').Intensity;
23
+ 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>;
24
+ isUpperCase?: boolean;
25
+ } & import('react').HTMLAttributes<HTMLParagraphElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
@@ -17,7 +17,7 @@ export declare const getBadgeColor: (args: {
17
17
  theme: Theme;
18
18
  }) => BadgeColor;
19
19
  export declare const getDeleteIconColor: ({ customVariant, customColor, theme, }: StyledTagThemeProps) => string;
20
- export declare const StyledTag: import('@emotion/styled').StyledComponent<import('@mui/material').ChipOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "sx" | "disabled" | "icon" | "color" | "classes" | "className" | "style" | "children" | "variant" | "label" | "tabIndex" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & StyledTagProps, {}, {}>;
20
+ export declare const StyledTag: import('@emotion/styled').StyledComponent<import('@mui/material').ChipOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "sx" | "disabled" | "color" | "icon" | "classes" | "className" | "style" | "children" | "variant" | "label" | "tabIndex" | "size" | "avatar" | "clickable" | "deleteIcon" | "onDelete" | "skipFocusWhenDisabled"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & StyledTagProps, {}, {}>;
21
21
  export declare const LabelContainer: import('@emotion/styled').StyledComponent<import('../Container/styles').ContainerRootProps & {
22
22
  style?: import('react').CSSProperties;
23
23
  id?: string;
@@ -26,6 +26,7 @@ export * from './ConfirmDialog';
26
26
  export * from './Container';
27
27
  export * from './ContentState';
28
28
  export * from './CopyTypography';
29
+ export * from './DashboardLayout';
29
30
  export * from './DataGrid';
30
31
  export * from './DataGridActionCell';
31
32
  export * from './DataGridPagination';
@@ -53,7 +54,6 @@ export * from './IconButton';
53
54
  export * from './IconDropdownButton';
54
55
  export * from './InputOTP';
55
56
  export * from './InternalErrorPlaceholder';
56
- export * from './Layout';
57
57
  export * from './Link';
58
58
  export * from './List';
59
59
  export * from './ListItem';
@@ -65,7 +65,6 @@ export * from './MaskField';
65
65
  export * from './Menu';
66
66
  export * from './MenuItem';
67
67
  export * from './MenuList';
68
- export * from './NavMenu';
69
68
  export * from './OutdatedReleasePlaceholder';
70
69
  export * from './OverflowTypography';
71
70
  export * from './PageLayout';
@@ -73,7 +72,6 @@ export * from './Pagination';
73
72
  export * from './Paper';
74
73
  export * from './Placeholder';
75
74
  export * from './Popover';
76
- export * from './Product';
77
75
  export * from './Profile';
78
76
  export * from './ProgressBar';
79
77
  export * from './Radio';
@@ -82,7 +80,8 @@ export * from './RadioGroup';
82
80
  export * from './RadioGroupField';
83
81
  export * from './SearchField';
84
82
  export * from './Select';
85
- export * from './SidebarButton';
83
+ export * from './SidebarNav';
84
+ export * from './SidebarProduct';
86
85
  export * from './Skeleton';
87
86
  export * from './Slider';
88
87
  export * from './Switch';