@max-ts/components 0.3.11 → 0.5.0
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.
- package/lib/components/Alert/Alert.d.ts +31 -0
- package/lib/components/Alert/index.d.ts +2 -0
- package/lib/components/Alert/styles.d.ts +13 -0
- package/lib/components/Alert/types.d.ts +1 -0
- package/lib/components/Avatar/Avatar.d.ts +3 -0
- package/lib/components/Avatar/index.d.ts +1 -0
- package/lib/components/Avatar/styles.d.ts +1 -0
- package/lib/components/ConfigProvider/ConfigProvider.d.ts +0 -2
- package/lib/components/DataGrid/HeadCell/styles.d.ts +14 -4
- package/lib/components/DataGrid/Loader/styles.d.ts +0 -1
- package/lib/components/DateField/DateField.d.ts +9 -0
- package/lib/components/DateField/index.d.ts +1 -0
- package/lib/components/DateField/styles.d.ts +1 -0
- package/lib/components/DatePicker/DatePicker.d.ts +7 -0
- package/lib/components/DatePicker/DayButton/DayButton.d.ts +8 -0
- package/lib/components/DatePicker/DayButton/index.d.ts +1 -0
- package/lib/components/DatePicker/DayButton/styles.d.ts +12 -0
- package/lib/components/DatePicker/Dropdown/Dropdown.d.ts +5 -0
- package/lib/components/DatePicker/Dropdown/index.d.ts +1 -0
- package/lib/components/DatePicker/index.d.ts +1 -0
- package/lib/components/DatePicker/styles.d.ts +21 -0
- package/lib/components/InputOTP/InputOTP.d.ts +4 -0
- package/lib/components/InputOTP/Separator/Separator.d.ts +4 -0
- package/lib/components/InputOTP/Separator/index.d.ts +1 -0
- package/lib/components/InputOTP/Separator/styles.d.ts +1 -0
- package/lib/components/InputOTP/Slot/Slot.d.ts +2 -0
- package/lib/components/InputOTP/Slot/index.d.ts +1 -0
- package/lib/components/InputOTP/Slot/styles.d.ts +5 -0
- package/lib/components/InputOTP/index.d.ts +1 -0
- package/lib/components/InputOTP/styles.d.ts +2 -0
- package/lib/components/Layout/Header/Header.d.ts +8 -0
- package/lib/components/Layout/Header/index.d.ts +1 -0
- package/lib/components/{DataGridOld/Head → Layout/Header}/styles.d.ts +2 -3
- package/lib/components/Layout/Layout.d.ts +13 -0
- package/lib/components/Layout/LayoutContext/LayoutContext.d.ts +6 -0
- package/lib/components/Layout/LayoutContext/index.d.ts +1 -0
- package/lib/components/Layout/Main/Main.d.ts +10 -0
- package/lib/components/Layout/Main/index.d.ts +1 -0
- package/lib/components/Layout/Main/styles.d.ts +1 -0
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +26 -0
- package/lib/components/Layout/Sidebar/SidebarNav/SidebarNav.d.ts +5 -0
- package/lib/components/Layout/Sidebar/SidebarNav/index.d.ts +1 -0
- package/lib/components/Layout/Sidebar/SidebarNav/styles.d.ts +1 -0
- package/lib/components/Layout/Sidebar/Toggler/ToggleButton/ToggleButton.d.ts +5 -0
- package/lib/components/Layout/Sidebar/Toggler/ToggleButton/index.d.ts +1 -0
- package/lib/components/Layout/Sidebar/Toggler/ToggleButton/styles.d.ts +10 -0
- package/lib/components/Layout/Sidebar/Toggler/Toggler.d.ts +5 -0
- package/lib/components/Layout/Sidebar/Toggler/index.d.ts +1 -0
- package/lib/components/Layout/Sidebar/Toggler/styles.d.ts +12 -0
- package/lib/components/Layout/Sidebar/constants.d.ts +1 -0
- package/lib/components/Layout/Sidebar/index.d.ts +1 -0
- package/lib/components/Layout/Sidebar/styles.d.ts +6 -0
- package/lib/components/Layout/constants.d.ts +3 -0
- package/lib/components/Layout/hooks/index.d.ts +1 -0
- package/lib/components/Layout/hooks/useSidebar/index.d.ts +1 -0
- package/lib/components/Layout/hooks/useSidebar/useSidebar.d.ts +7 -0
- package/lib/components/Layout/index.d.ts +3 -0
- package/lib/components/Layout/styles.d.ts +5 -0
- package/lib/components/ListItemButton/ListItemButton.d.ts +1 -2
- package/lib/components/NavMenu/Item/ItemButton/styles.d.ts +0 -1
- package/lib/components/NavMenu/NavMenu.d.ts +2 -2
- package/lib/components/PageLayout/Aside/Aside.d.ts +6 -0
- package/lib/components/PageLayout/Aside/index.d.ts +1 -0
- package/lib/components/PageLayout/Aside/styles.d.ts +1 -0
- package/lib/components/PageLayout/Content/Content.d.ts +13 -0
- package/lib/components/PageLayout/Content/index.d.ts +1 -0
- package/lib/components/PageLayout/Content/styles.d.ts +5 -0
- package/lib/components/PageLayout/Footer/Footer.d.ts +6 -0
- package/lib/components/PageLayout/Footer/index.d.ts +1 -0
- package/lib/components/PageLayout/Footer/styles.d.ts +1 -0
- package/lib/components/PageLayout/Header/Header.d.ts +66 -0
- package/lib/components/PageLayout/Header/index.d.ts +1 -0
- package/lib/components/PageLayout/Header/styles.d.ts +45 -0
- package/lib/components/PageLayout/PageLayout.d.ts +12 -0
- package/lib/components/PageLayout/constants.d.ts +5 -0
- package/lib/components/PageLayout/index.d.ts +1 -0
- package/lib/components/PageLayout/styles.d.ts +1 -0
- package/lib/components/Product/Product.d.ts +6 -0
- package/lib/components/Product/index.d.ts +1 -0
- package/lib/components/Product/styles.d.ts +9 -0
- package/lib/components/Profile/MenuList/MenuList.d.ts +13 -0
- package/lib/components/Profile/MenuList/index.d.ts +1 -0
- package/lib/components/Profile/MenuList/styles.d.ts +12 -0
- package/lib/components/Profile/Profile.d.ts +50 -0
- package/lib/components/Profile/index.d.ts +1 -0
- package/lib/components/Profile/styles.d.ts +703 -0
- package/lib/components/SidebarButton/SidebarButton.d.ts +2 -0
- package/lib/components/SidebarButton/index.d.ts +1 -0
- package/lib/components/SidebarButton/styles.d.ts +11 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +0 -4
- package/lib/components/index.d.ts +10 -0
- package/lib/form/Form/Form.d.ts +45 -0
- package/lib/form/Form/index.d.ts +1 -0
- package/lib/form/FormAutocomplete/FormAutocomplete.d.ts +4 -0
- package/lib/form/FormAutocomplete/index.d.ts +1 -0
- package/lib/form/FormCheckbox/FormCheckbox.d.ts +7 -0
- package/lib/form/FormCheckbox/index.d.ts +2 -0
- package/lib/form/FormCheckbox/types.d.ts +4 -0
- package/lib/form/FormMaskField/FormMaskField.d.ts +4 -0
- package/lib/form/FormMaskField/index.d.ts +2 -0
- package/lib/form/FormMaskField/types.d.ts +4 -0
- package/lib/form/FormSelect/FormSelect.d.ts +7 -0
- package/lib/form/FormSelect/index.d.ts +1 -0
- package/lib/form/FormSubmitButton/FormSubmitButton.d.ts +6 -0
- package/lib/form/FormSubmitButton/index.d.ts +1 -0
- package/lib/form/FormTextField/FormTextField.d.ts +7 -0
- package/lib/form/FormTextField/index.d.ts +2 -0
- package/lib/form/FormTextField/types.d.ts +4 -0
- package/lib/form/external.d.ts +1 -0
- package/lib/form/hooks/index.d.ts +2 -0
- package/lib/form/hooks/useForm/index.d.ts +1 -0
- package/lib/form/hooks/useForm/useForm.d.ts +4 -0
- package/lib/form/hooks/useFormContext/index.d.ts +1 -0
- package/lib/form/index.d.ts +10 -0
- package/lib/form/types.d.ts +7 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.mjs +8777 -3092
- package/package.json +20 -17
- package/src/index.ts +1 -0
- package/lib/components/DataGridOld/Body/Body.d.ts +0 -13
- package/lib/components/DataGridOld/Body/index.d.ts +0 -1
- package/lib/components/DataGridOld/Body/styles.d.ts +0 -1
- package/lib/components/DataGridOld/Cell/Cell.d.ts +0 -7
- package/lib/components/DataGridOld/Cell/index.d.ts +0 -1
- package/lib/components/DataGridOld/Cell/styles.d.ts +0 -4
- package/lib/components/DataGridOld/DataGridOld.d.ts +0 -20
- package/lib/components/DataGridOld/Head/Head.d.ts +0 -7
- package/lib/components/DataGridOld/Head/index.d.ts +0 -1
- package/lib/components/DataGridOld/HeadCell/HeadCell.d.ts +0 -5
- package/lib/components/DataGridOld/HeadCell/index.d.ts +0 -1
- package/lib/components/DataGridOld/HeadCell/styles.d.ts +0 -3
- package/lib/components/DataGridOld/Row/Row.d.ts +0 -11
- package/lib/components/DataGridOld/Row/index.d.ts +0 -1
- package/lib/components/DataGridOld/Row/styles.d.ts +0 -5
- package/lib/components/DataGridOld/State/State.d.ts +0 -6
- package/lib/components/DataGridOld/State/index.d.ts +0 -1
- package/lib/components/DataGridOld/State/styles.d.ts +0 -1
- package/lib/components/DataGridOld/constants.d.ts +0 -1
- package/lib/components/DataGridOld/index.d.ts +0 -2
- package/lib/components/DataGridOld/styles.d.ts +0 -7
- package/lib/components/DataGridOld/types.d.ts +0 -15
|
@@ -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,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 @@
|
|
|
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>, {}, {}>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AlignVariant } from '../types';
|
|
2
2
|
type HeadCellProps = {
|
|
3
3
|
$align?: AlignVariant;
|
|
4
|
-
$isSortable?: boolean;
|
|
5
4
|
$hasStartAdornment?: boolean;
|
|
6
5
|
};
|
|
7
6
|
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & HeadCellProps, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -13,10 +12,21 @@ export declare const StyledTypography: import('@emotion/styled').StyledComponent
|
|
|
13
12
|
noWrap?: boolean | undefined;
|
|
14
13
|
paragraph?: boolean | undefined;
|
|
15
14
|
} & {
|
|
16
|
-
color?: import('
|
|
17
|
-
variant?: import('
|
|
18
|
-
colorIntensity?: import('
|
|
15
|
+
color?: import('../..').TypographyColor;
|
|
16
|
+
variant?: import('../..').TypographyVariant;
|
|
17
|
+
colorIntensity?: import('../..').Intensity;
|
|
19
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>;
|
|
20
19
|
isUpperCase?: boolean;
|
|
21
20
|
} & import('react').HTMLAttributes<HTMLParagraphElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
21
|
+
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"> & {
|
|
22
|
+
variant?: `${import('../..').ButtonVariants}`;
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
loadingIndicator?: import('react').ReactNode;
|
|
25
|
+
loadingPosition?: "start" | "end" | "center";
|
|
26
|
+
color?: `${import('../..').ButtonColors}`;
|
|
27
|
+
component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
28
|
+
selected?: boolean;
|
|
29
|
+
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
30
|
+
$isActive: boolean;
|
|
31
|
+
}, {}, {}>;
|
|
22
32
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export declare const Backdrop: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
-
export declare const StyledDivider: import('@emotion/styled').StyledComponent<import('../../Divider').DividerProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
3
2
|
export declare const LoaderWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
3
|
export declare const StyledLinearProgress: import('@emotion/styled').StyledComponent<import('@mui/material').LinearProgressProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PropsSingle } from '../DatePicker';
|
|
2
|
+
export type DateFieldProps = Omit<PropsSingle, 'onSelect' | 'mode'> & {
|
|
3
|
+
label?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
onSelect?: (date: Date | undefined) => void;
|
|
6
|
+
selectMonth?: boolean;
|
|
7
|
+
selectYear?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const DateField: (props: DateFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DateField';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DatePickerWrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsBase, PropsMulti, PropsMultiRequired, PropsRange, PropsRangeRequired, PropsSingle, PropsSingleRequired } from 'react-day-picker';
|
|
2
|
+
export type { PropsBase, PropsMulti, PropsMultiRequired, PropsRange, PropsRangeRequired, PropsSingle, PropsSingleRequired, };
|
|
3
|
+
export type DatePickerProps = PropsBase & (PropsSingle | PropsSingleRequired | PropsMulti | PropsMultiRequired | PropsRange | PropsRangeRequired | {
|
|
4
|
+
mode?: undefined;
|
|
5
|
+
required?: undefined;
|
|
6
|
+
});
|
|
7
|
+
export declare const DatePicker: ({ className, classNames, showOutsideDays, ...props }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { CalendarDay, Modifiers } from 'react-day-picker';
|
|
3
|
+
export declare const DayButton: (props: {
|
|
4
|
+
/** The day to render. */
|
|
5
|
+
day: CalendarDay;
|
|
6
|
+
/** The modifiers for the day. */
|
|
7
|
+
modifiers: Modifiers;
|
|
8
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DayButton';
|
|
@@ -0,0 +1,12 @@
|
|
|
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('../..').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
|
+
$isOutside?: boolean;
|
|
11
|
+
$isToday?: boolean;
|
|
12
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SelectHTMLAttributes } from 'react';
|
|
2
|
+
import { DropdownOption } from 'react-day-picker';
|
|
3
|
+
export declare function Dropdown(props: {
|
|
4
|
+
options?: DropdownOption[] | undefined;
|
|
5
|
+
} & Omit<SelectHTMLAttributes<HTMLSelectElement>, 'children'>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Dropdown';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DatePicker';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const StyledNav: import('@emotion/styled').StyledComponent<{
|
|
2
|
+
onPreviousClick?: import('react').MouseEventHandler<HTMLButtonElement>;
|
|
3
|
+
onNextClick?: import('react').MouseEventHandler<HTMLButtonElement>;
|
|
4
|
+
previousMonth?: Date | undefined;
|
|
5
|
+
nextMonth?: Date | undefined;
|
|
6
|
+
} & import('react').HTMLAttributes<HTMLElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
7
|
+
export declare const MonthButton: import('@emotion/styled').StyledComponent<Omit<import('../types').WithoutEmotionSpecific<import('@mui/material').ButtonProps<import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements>>>, "color" | "variant"> & {
|
|
8
|
+
variant?: `${import('../Button').ButtonVariants}`;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
loadingIndicator?: import('react').ReactNode;
|
|
11
|
+
loadingPosition?: "start" | "end" | "center";
|
|
12
|
+
color?: `${import('../Button').ButtonColors}`;
|
|
13
|
+
component?: import('react').ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
+
selected?: boolean;
|
|
15
|
+
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
16
|
+
export declare const StyledMonths: import('@emotion/styled').StyledComponent<import('react').HTMLAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
17
|
+
export declare const StyledMonthCaption: import('@emotion/styled').StyledComponent<{
|
|
18
|
+
calendarMonth: import('react-day-picker').CalendarMonth;
|
|
19
|
+
displayIndex: number;
|
|
20
|
+
} & import('react').HTMLAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
21
|
+
export declare const Dropdowns: import('@emotion/styled').StyledComponent<import('react').HTMLAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { OTPInput } from 'input-otp';
|
|
3
|
+
export type InputOTPProps = ComponentPropsWithRef<typeof OTPInput>;
|
|
4
|
+
export declare const InputOTP: ({ ...props }: Omit<InputOTPProps, "children" | "render">) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Separator';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledSeparator: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').HTMLAttributes<HTMLSpanElement> | keyof import('react').ClassAttributes<HTMLSpanElement>>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Slot';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
2
|
+
$isActive?: boolean;
|
|
3
|
+
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
+
export declare const CaretContainer: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
+
export declare const Caret: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './InputOTP';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const GroupContainer: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
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,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
|
|
2
|
-
|
|
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 @@
|
|
|
1
|
+
export * from './LayoutContext';
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
1
|
+
export * from './useSidebar';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useSidebar';
|
|
@@ -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;
|
|
@@ -12,10 +12,9 @@ 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;
|
|
20
19
|
};
|
|
21
|
-
export declare const ListItemButton: <RootComponent extends React.ElementType = "
|
|
20
|
+
export declare const ListItemButton: <RootComponent extends React.ElementType = ElementType<any, keyof import("react").JSX.IntrinsicElements>>(props: ListItemButtonProps<RootComponent>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,6 @@ 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;
|
|
7
6
|
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
8
7
|
$isGroupTitleItem: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
}
|
|
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 @@
|
|
|
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 @@
|
|
|
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>, {}>;
|