@max-ts/components 1.1.7 → 1.2.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.
@@ -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;
@@ -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;
@@ -0,0 +1,12 @@
1
+ export type RangeInputProps = {
2
+ minValue: number | null;
3
+ maxValue: number | null;
4
+ min: number;
5
+ max: number;
6
+ title: string;
7
+ onChange: (minValue: number, maxValue: number) => void;
8
+ width?: number | string;
9
+ step?: number | null;
10
+ size?: 'small' | 'medium';
11
+ };
12
+ export declare function RangeInput({ min, max, onChange, minValue, maxValue, width, step, title, size }: RangeInputProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './RangeInput';
@@ -0,0 +1,23 @@
1
+ export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
2
+ $width?: string | number;
3
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
+ export declare const Container: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
5
+ $size?: "small" | "medium";
6
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
7
+ export declare const Label: import('@emotion/styled').StyledComponent<{
8
+ children?: import('react').ReactNode;
9
+ ref?: import('react').Ref<HTMLSpanElement> | undefined;
10
+ align?: "inherit" | "left" | "center" | "right" | "justify" | undefined;
11
+ gutterBottom?: boolean | undefined;
12
+ noWrap?: boolean | undefined;
13
+ paragraph?: boolean | undefined;
14
+ } & {
15
+ color?: import('../Typography').TypographyColor;
16
+ variant?: import('../Typography').TypographyVariant;
17
+ colorIntensity?: import('../Typography').Intensity;
18
+ 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>;
19
+ isUpperCase?: boolean;
20
+ } & import('react').HTMLAttributes<HTMLParagraphElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
21
+ export declare const RangeText: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
22
+ export declare const StyledInput: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {}>;
23
+ export declare const SliderWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,4 +1,4 @@
1
1
  import { SidebarNavItem } from '../types';
2
- export declare const MenuItem: ({ collapsed, icon, active, label, subItems, renderItem, onClick, id, }: SidebarNavItem & {
2
+ export declare const MenuItem: ({ collapsed, icon, active, label, subItems, onClick, id, component, }: SidebarNavItem & {
3
3
  collapsed?: boolean;
4
4
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,11 +1,28 @@
1
- export declare const Item: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
1
+ export declare const Item: 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
+ selected?: boolean;
8
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
9
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
2
10
  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> & {
11
+ collapsed?: boolean;
12
+ }, {}, {}>;
13
+ export declare const SubItem: import('@emotion/styled').StyledComponent<Omit<import('../../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
14
+ variant?: `${import('../..').ButtonVariants}`;
15
+ loading?: boolean;
16
+ loadingIndicator?: import('react').ReactNode;
17
+ loadingPosition?: "start" | "end" | "center";
18
+ color?: `${import('../..').ButtonColors}`;
19
+ selected?: boolean;
20
+ component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
21
+ } & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
5
22
  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>, {}>;
23
+ collapsed?: boolean;
24
+ }, {}, {}>;
25
+ export declare const Title: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
26
+ collapsed?: boolean;
27
+ }, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
28
+ export declare const IconWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -4,6 +4,6 @@ export type SidebarNavItem = {
4
4
  icon: React.ReactNode;
5
5
  active?: boolean;
6
6
  onClick?: (event: React.MouseEvent<HTMLLIElement>) => void;
7
- renderItem?: (props: Omit<SidebarNavItem, 'renderItem' | 'subItems' | 'icon'>) => React.ReactNode;
8
7
  subItems?: Omit<SidebarNavItem, 'subItems' | 'icon'>[];
8
+ component?: React.ElementType;
9
9
  };
@@ -78,6 +78,7 @@ export * from './Radio';
78
78
  export * from './RadioField';
79
79
  export * from './RadioGroup';
80
80
  export * from './RadioGroupField';
81
+ export * from './RangeInput';
81
82
  export * from './SearchField';
82
83
  export * from './Select';
83
84
  export * from './SidebarNav';