@max-ts/components 0.4.0 → 0.5.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.
- package/lib/components/ActionGroup/SecondaryActions/SecondaryActions.d.ts +1 -1
- 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/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 +4 -4
- package/lib/components/NavMenu/Item/ItemButton/styles.d.ts +1 -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 +10 -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 +44 -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/index.d.ts +7 -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 +5634 -3531
- package/package.json +2 -1
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@max-ts/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"browser": "./src/index.ts",
|
|
5
5
|
"main": "./lib/index.mjs",
|
|
6
6
|
"module": "./lib/index.mjs",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"react": "^19.0.0",
|
|
31
31
|
"react-day-picker": "^9.6.2",
|
|
32
32
|
"react-dom": "^19.0.0",
|
|
33
|
+
"react-hook-form": "^7.54.2",
|
|
33
34
|
"react-use": "^17.6.0",
|
|
34
35
|
"remeda": "^2.21.2"
|
|
35
36
|
},
|
package/src/index.ts
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DataGridColumn } from '../types';
|
|
2
|
-
export type BodyProps<TRow> = {
|
|
3
|
-
noDataText?: string;
|
|
4
|
-
noDataImgSrc?: string;
|
|
5
|
-
isLoading?: boolean;
|
|
6
|
-
isEmpty?: boolean;
|
|
7
|
-
columns: DataGridColumn<TRow>[];
|
|
8
|
-
rows: TRow[];
|
|
9
|
-
rowHeight: number;
|
|
10
|
-
keyId: keyof TRow;
|
|
11
|
-
onRowClick?: (row: TRow) => void;
|
|
12
|
-
};
|
|
13
|
-
export declare function Body<TRow>({ isEmpty, isLoading, noDataText, noDataImgSrc, columns, rows, rowHeight, keyId, onRowClick, }: BodyProps<TRow>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Body';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledBody: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLUListElement>, HTMLUListElement>, keyof import('react').ClassAttributes<HTMLUListElement> | keyof import('react').HTMLAttributes<HTMLUListElement>>, {}>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DataGridColumn } from '../types';
|
|
2
|
-
export type CellProps<TRow> = {
|
|
3
|
-
row: TRow;
|
|
4
|
-
column: DataGridColumn<TRow>;
|
|
5
|
-
rowIndex: number;
|
|
6
|
-
};
|
|
7
|
-
export declare function Cell<TRow>({ row, column, rowIndex }: CellProps<TRow>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Cell';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const StyledCell: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
2
|
-
$align?: "left" | "center" | "right" | "justify";
|
|
3
|
-
$disabled?: boolean;
|
|
4
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { DataGridColumn } from './types';
|
|
3
|
-
export type DataGridProps<TRow> = {
|
|
4
|
-
rows: TRow[];
|
|
5
|
-
columns: DataGridColumn<TRow>[];
|
|
6
|
-
className?: string;
|
|
7
|
-
height?: CSSProperties['height'];
|
|
8
|
-
noDataText?: string;
|
|
9
|
-
noDataImgSrc?: string;
|
|
10
|
-
rowHeight?: number;
|
|
11
|
-
keyId: keyof TRow;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
isDisabled?: boolean;
|
|
14
|
-
isEmpty?: boolean;
|
|
15
|
-
onSelectRow?: (row: TRow[]) => void;
|
|
16
|
-
onRowClick?: (row: TRow) => void;
|
|
17
|
-
minDisplayRows?: number;
|
|
18
|
-
footer?: ReactNode;
|
|
19
|
-
};
|
|
20
|
-
export declare function DataGrid<TRow>({ rows, columns, height, className, noDataText, rowHeight, keyId, onRowClick, isLoading, isDisabled, isEmpty, noDataImgSrc, footer, }: DataGridProps<TRow>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DataGridColumn } from '../types';
|
|
2
|
-
type DataGridHeaderProps<TRow> = {
|
|
3
|
-
columns: DataGridColumn<TRow>[];
|
|
4
|
-
height: number;
|
|
5
|
-
};
|
|
6
|
-
export declare function Head<TRow>({ columns, height }: DataGridHeaderProps<TRow>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Head';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './HeadCell';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const StyledHeadCell: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
2
|
-
$align?: "left" | "center" | "right" | "justify";
|
|
3
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DataGridColumn } from '../types';
|
|
2
|
-
type RowProps<TRow> = {
|
|
3
|
-
row: TRow;
|
|
4
|
-
columns: DataGridColumn<TRow>[];
|
|
5
|
-
rowIndex: number;
|
|
6
|
-
rowId: string;
|
|
7
|
-
rowHeight: number;
|
|
8
|
-
onRowClick?: (row: TRow) => void;
|
|
9
|
-
};
|
|
10
|
-
export declare function Row<TRow>({ row, rowHeight, onRowClick, columns, rowIndex, rowId, }: RowProps<TRow>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Row';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const StyledRow: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
2
|
-
$height: number;
|
|
3
|
-
$gridTemplateColumns: string;
|
|
4
|
-
$selectable: boolean;
|
|
5
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, keyof import('react').ClassAttributes<HTMLLIElement> | keyof import('react').LiHTMLAttributes<HTMLLIElement>>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './State';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Container: 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 declare const ROW_HEIGHT = 40;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
2
|
-
export declare const Container: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
3
|
-
$height: CSSProperties["height"];
|
|
4
|
-
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
|
-
export declare const Wrapper: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
|
|
6
|
-
$disabled?: boolean;
|
|
7
|
-
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type DataGridColumn<TRow> = {
|
|
3
|
-
title: string;
|
|
4
|
-
key?: keyof TRow;
|
|
5
|
-
width?: number | string;
|
|
6
|
-
align?: 'left' | 'center' | 'right' | 'justify';
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
headComponent?: ReactNode;
|
|
9
|
-
component?: (row: TRow, index: number) => ReactNode;
|
|
10
|
-
getCellValue?: (row: TRow) => string | number | null | undefined;
|
|
11
|
-
cellClassName?: (row: TRow) => string;
|
|
12
|
-
cellColor?: (row: TRow) => string;
|
|
13
|
-
};
|
|
14
|
-
export type DataGridColumns<TRow> = DataGridColumn<TRow>[];
|
|
15
|
-
export type AlignVariant = 'left' | 'center' | 'right' | 'justify';
|