@max-ts/components 0.6.0 → 1.0.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/Button/Button.d.ts +1 -1
- package/lib/components/Checkbox/Checkbox.d.ts +2 -7
- package/lib/components/CheckboxField/CheckboxField.d.ts +4 -0
- package/lib/components/CheckboxField/styles.d.ts +1 -1
- package/lib/components/DashboardLayout/DashboardContext.d.ts +4 -0
- package/lib/components/DashboardLayout/DashboardLayout.d.ts +13 -0
- package/lib/components/DashboardLayout/Main/Main.d.ts +6 -0
- package/lib/components/DashboardLayout/Sidebar/Sidebar.d.ts +11 -0
- package/lib/components/DashboardLayout/Sidebar/constants.d.ts +2 -0
- package/lib/components/DashboardLayout/Sidebar/styles.d.ts +8 -0
- package/lib/components/DashboardLayout/constants.d.ts +1 -0
- package/lib/components/DashboardLayout/index.d.ts +1 -0
- package/lib/components/DashboardLayout/styles.d.ts +1 -0
- package/lib/components/DataGridPagination/useLogic/useLogic.d.ts +1 -1
- package/lib/components/FormLabel/styles.d.ts +1 -1
- package/lib/components/InputOTP/InputOTP.d.ts +2 -2
- package/lib/components/InputOTP/Separator/Separator.d.ts +2 -2
- package/lib/components/ListItemButton/ListItemButton.d.ts +3 -4
- package/lib/components/Placeholder/constants.d.ts +12 -4
- package/lib/components/Profile/Profile.d.ts +1 -0
- package/lib/components/SidebarNav/MenuItem/MenuItem.d.ts +4 -0
- package/lib/components/SidebarNav/MenuItem/index.d.ts +1 -0
- package/lib/components/SidebarNav/MenuItem/styles.d.ts +11 -0
- package/lib/components/SidebarNav/SidebarNav.d.ts +6 -0
- package/lib/components/{Layout/Sidebar/SidebarNav → SidebarNav}/index.d.ts +1 -0
- package/lib/components/SidebarNav/styles.d.ts +1 -0
- package/lib/components/SidebarNav/types.d.ts +9 -0
- package/lib/components/SidebarProduct/SidebarProduct.d.ts +6 -0
- package/lib/components/SidebarProduct/index.d.ts +1 -0
- package/lib/components/SidebarProduct/styles.d.ts +25 -0
- package/lib/components/Slider/styles.d.ts +1 -1
- package/lib/components/Tag/styles.d.ts +1 -1
- package/lib/components/index.d.ts +3 -4
- package/lib/index.mjs +4981 -5535
- package/lib/theme/typography.d.ts +2 -2
- package/package.json +6 -6
- package/lib/components/Checkbox/icons.d.ts +0 -4
- package/lib/components/Checkbox/styles.d.ts +0 -5
- package/lib/components/Layout/Header/Header.d.ts +0 -8
- package/lib/components/Layout/Header/index.d.ts +0 -1
- package/lib/components/Layout/Header/styles.d.ts +0 -3
- package/lib/components/Layout/Layout.d.ts +0 -13
- package/lib/components/Layout/LayoutContext/LayoutContext.d.ts +0 -6
- package/lib/components/Layout/LayoutContext/index.d.ts +0 -1
- package/lib/components/Layout/Main/Main.d.ts +0 -10
- package/lib/components/Layout/Sidebar/Sidebar.d.ts +0 -26
- package/lib/components/Layout/Sidebar/SidebarNav/SidebarNav.d.ts +0 -5
- package/lib/components/Layout/Sidebar/SidebarNav/styles.d.ts +0 -1
- package/lib/components/Layout/Sidebar/Toggler/ToggleButton/ToggleButton.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Toggler/ToggleButton/index.d.ts +0 -1
- package/lib/components/Layout/Sidebar/Toggler/ToggleButton/styles.d.ts +0 -10
- package/lib/components/Layout/Sidebar/Toggler/Toggler.d.ts +0 -5
- package/lib/components/Layout/Sidebar/Toggler/index.d.ts +0 -1
- package/lib/components/Layout/Sidebar/Toggler/styles.d.ts +0 -12
- package/lib/components/Layout/Sidebar/constants.d.ts +0 -1
- package/lib/components/Layout/Sidebar/styles.d.ts +0 -6
- package/lib/components/Layout/constants.d.ts +0 -3
- package/lib/components/Layout/hooks/index.d.ts +0 -1
- package/lib/components/Layout/hooks/useSidebar/index.d.ts +0 -1
- package/lib/components/Layout/hooks/useSidebar/useSidebar.d.ts +0 -7
- package/lib/components/Layout/index.d.ts +0 -3
- package/lib/components/Layout/styles.d.ts +0 -5
- package/lib/components/NavMenu/Item/Item.d.ts +0 -16
- package/lib/components/NavMenu/Item/ItemButton/ItemButton.d.ts +0 -11
- package/lib/components/NavMenu/Item/ItemButton/index.d.ts +0 -1
- package/lib/components/NavMenu/Item/ItemButton/styles.d.ts +0 -639
- package/lib/components/NavMenu/Item/List/List.d.ts +0 -13
- package/lib/components/NavMenu/Item/List/index.d.ts +0 -1
- package/lib/components/NavMenu/Item/index.d.ts +0 -1
- package/lib/components/NavMenu/NavMenu.d.ts +0 -15
- package/lib/components/NavMenu/index.d.ts +0 -1
- package/lib/components/Product/Product.d.ts +0 -6
- package/lib/components/Product/index.d.ts +0 -1
- package/lib/components/Product/styles.d.ts +0 -9
- package/lib/components/Profile/styles.d.ts +0 -703
- package/lib/components/SidebarButton/SidebarButton.d.ts +0 -2
- package/lib/components/SidebarButton/index.d.ts +0 -1
- package/lib/components/SidebarButton/styles.d.ts +0 -11
- package/lib/theme/components/MuiListItemButton.d.ts +0 -3
- /package/lib/components/{Layout → DashboardLayout}/Main/index.d.ts +0 -0
- /package/lib/components/{Layout → DashboardLayout}/Main/styles.d.ts +0 -0
- /package/lib/components/{Layout → DashboardLayout}/Sidebar/index.d.ts +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TypographyVariantsOptions } from '@mui/material/styles/createTypography';
|
|
2
2
|
import { Theme } from './types';
|
|
3
|
-
export declare const getTypography: (theme: Theme) =>
|
|
3
|
+
export declare const getTypography: (theme: Theme) => TypographyVariantsOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-ts/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"browser": "./src/index.ts",
|
|
5
5
|
"main": "./lib/index.mjs",
|
|
6
6
|
"module": "./lib/index.mjs",
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"@emotion/react": "^11.14.0",
|
|
22
22
|
"@emotion/styled": "^11.14.0",
|
|
23
23
|
"@fontsource-variable/roboto": "^5.2.5",
|
|
24
|
-
"@mui/material": "^7.0
|
|
25
|
-
"@mui/system": "^7.0
|
|
24
|
+
"@mui/material": "^7.1.0",
|
|
25
|
+
"@mui/system": "^7.1.0",
|
|
26
26
|
"@react-input/mask": "^2.0.4",
|
|
27
27
|
"clsx": "^2.1.1",
|
|
28
28
|
"input-otp": "^1.4.2",
|
|
29
|
-
"lucide-react": "^0.
|
|
29
|
+
"lucide-react": "^0.508.0",
|
|
30
30
|
"react": "^19.1.0",
|
|
31
31
|
"react-day-picker": "^9.6.7",
|
|
32
32
|
"react-dom": "^19.1.0",
|
|
33
|
-
"react-hook-form": "^7.
|
|
33
|
+
"react-hook-form": "^7.56.2",
|
|
34
34
|
"react-use": "^17.6.0",
|
|
35
35
|
"remeda": "^2.21.3"
|
|
36
36
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@storybook/react": "^8.6.12",
|
|
46
46
|
"@storybook/react-vite": "^8.6.12",
|
|
47
47
|
"@storybook/test": "^8.6.12",
|
|
48
|
-
"@types/react": "^19.1.
|
|
48
|
+
"@types/react": "^19.1.3",
|
|
49
49
|
"prop-types": "^15.8.1",
|
|
50
50
|
"storybook": "^8.6.12"
|
|
51
51
|
},
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { SvgIconProps } from '@mui/material';
|
|
2
|
-
export declare const DefaultIcon: React.FunctionComponent<SvgIconProps>;
|
|
3
|
-
export declare const CheckedIcon: React.FunctionComponent<SvgIconProps>;
|
|
4
|
-
export declare const IndeterminateIcon: React.FunctionComponent<SvgIconProps>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type CheckboxStyledProps = {
|
|
2
|
-
isError?: boolean;
|
|
3
|
-
};
|
|
4
|
-
export declare const StyledCheckbox: import('@emotion/styled').StyledComponent<import('@mui/material').CheckboxProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & CheckboxStyledProps, {}, {}>;
|
|
5
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Header';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
2
|
-
isFocusedMode: boolean;
|
|
3
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, keyof import('react').HTMLAttributes<HTMLElement> | keyof import('react').ClassAttributes<HTMLElement>>, {}>;
|
|
@@ -1,13 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './LayoutContext';
|
|
@@ -1,26 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
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>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ToggleButton';
|
|
@@ -1,10 +0,0 @@
|
|
|
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>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Toggler';
|
|
@@ -1,12 +0,0 @@
|
|
|
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>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const LAYOUT_SIDEBAR_CLASSNAME = "layout-sidebar";
|
|
@@ -1,6 +0,0 @@
|
|
|
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>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useSidebar';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useSidebar';
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ElementType, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { ListProps } from './List';
|
|
3
|
-
export type ItemProps<TComponent extends ElementType = ElementType> = {
|
|
4
|
-
collapsedIn: boolean;
|
|
5
|
-
item: [
|
|
6
|
-
key: string,
|
|
7
|
-
value: {
|
|
8
|
-
icon: ReactElement;
|
|
9
|
-
text: ReactNode;
|
|
10
|
-
active?: boolean;
|
|
11
|
-
items?: ListProps['items'];
|
|
12
|
-
component?: TComponent;
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
};
|
|
16
|
-
export declare const Item: <TComponent extends ElementType>(props: ItemProps<TComponent>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ElementType, ReactElement, ReactNode } from 'react';
|
|
2
|
-
import { ListItemButtonProps } from '../../../ListItemButton';
|
|
3
|
-
export type NavMenuItemButtonProps<RootComponent extends ElementType = ElementType> = ListItemButtonProps<RootComponent> & {
|
|
4
|
-
opened?: boolean;
|
|
5
|
-
collapsedIn: boolean;
|
|
6
|
-
selected?: boolean;
|
|
7
|
-
text: ReactNode;
|
|
8
|
-
icon: ReactElement;
|
|
9
|
-
component?: RootComponent;
|
|
10
|
-
};
|
|
11
|
-
export declare const ItemButton: (props: NavMenuItemButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ItemButton';
|