@max-ts/components 1.2.0 → 1.2.2

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.
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from 'react';
2
+ export declare const Footer: ({ children }: {
3
+ children: ReactNode;
4
+ }) => 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>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
@@ -1,6 +1,5 @@
1
1
  export type LoaderProps = {
2
2
  isLoading?: boolean;
3
3
  isDisabled?: boolean;
4
- isVisibleDivider?: boolean;
5
4
  };
6
- export declare const Loader: ({ isLoading, isDisabled, isVisibleDivider, }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const Loader: ({ isLoading, isDisabled, }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export declare const MIN_ROW_HEIGHT = 44;
2
- export declare const ROOT_ACTION_CELL_WIDTH = 32;
2
+ export declare const ROOT_ACTION_CELL_WIDTH = 36;
3
3
  export declare const MIN_DISPLAY_ROWS_BY_DEFAULT = 10;
@@ -20,7 +20,6 @@ export declare const useLogic: <TData extends Record<string, CellValue> = DataGr
20
20
  };
21
21
  loaderProps: {
22
22
  isLoading: boolean | undefined;
23
- isVisibleDivider: boolean;
24
23
  isDisabled: boolean | undefined;
25
24
  };
26
25
  };
@@ -1,6 +1,7 @@
1
1
  import { LinkProps as MuiLinkProps } from '@mui/material';
2
+ import { ComponentPropsWithRef, ElementType } from 'react';
2
3
  import { WithoutEmotionSpecific } from '../types';
3
- export type LinkProps = Pick<WithoutEmotionSpecific<MuiLinkProps>, 'rel' | 'href' | 'className' | 'classes' | 'style' | 'children' | 'key' | 'target'> & {
4
+ export type LinkProps<TComponent extends ElementType = 'a'> = Pick<WithoutEmotionSpecific<MuiLinkProps>, 'rel' | 'href' | 'className' | 'classes' | 'style' | 'children' | 'key' | 'target'> & {
4
5
  /**
5
6
  * Добавление иконки
6
7
  */
@@ -10,15 +11,6 @@ export type LinkProps = Pick<WithoutEmotionSpecific<MuiLinkProps>, 'rel' | 'href
10
11
  * добавляет атрибут 'download' тегу 'a'
11
12
  */
12
13
  isDownload?: boolean;
13
- };
14
- export declare const Link: import('react').ForwardRefExoticComponent<Pick<WithoutEmotionSpecific<MuiLinkProps>, "classes" | "className" | "style" | "children" | "key" | "rel" | "href" | "target"> & {
15
- /**
16
- * Добавление иконки
17
- */
18
- withAdornment?: "start" | "end";
19
- /**
20
- * Указывает что ссылка для скачивания файла
21
- * добавляет атрибут 'download' тегу 'a'
22
- */
23
- isDownload?: boolean;
24
- } & import('react').RefAttributes<HTMLAnchorElement>>;
14
+ component?: TComponent;
15
+ } & ComponentPropsWithRef<TComponent>;
16
+ export declare const Link: <TComponent extends ElementType = "a">({ withAdornment, isDownload, children, ...props }: LinkProps<TComponent>) => import("react/jsx-runtime").JSX.Element;