@m4l/components 9.1.90 → 9.1.92
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/@types/types.d.ts +9 -2
- package/components/Chip/types.d.ts +2 -2
- package/components/Pager/Pager.d.ts +1 -1
- package/components/Pager/Pager.js +10 -7
- package/components/Pager/dicctionary.d.ts +1 -0
- package/components/Pager/dicctionary.js +2 -1
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.d.ts +1 -1
- package/components/Pager/subcomponents/CustomTablePagination/CustomTablePagination.js +13 -7
- package/components/Pager/subcomponents/CustomTablePagination/types.d.ts +38 -1
- package/components/Pager/subcomponents/PagerActions/PagerActions.d.ts +2 -2
- package/components/Pager/types.d.ts +13 -0
- package/components/commercial/SectionCommercial/styles.d.ts +1 -5
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/styles.d.ts +1 -5
- package/components/mui_extended/Stack/Stack.d.ts +2 -2
- package/components/mui_extended/Stack/Stack.js +20 -6
- package/components/mui_extended/Stack/Stack.styles.d.ts +2 -0
- package/components/mui_extended/Stack/Stack.styles.js +9 -0
- package/components/mui_extended/Stack/constant.d.ts +1 -0
- package/components/mui_extended/Stack/constant.js +4 -0
- package/components/mui_extended/Stack/slots/StackEnum.d.ts +3 -0
- package/components/mui_extended/Stack/slots/StackEnum.js +7 -0
- package/components/mui_extended/Stack/slots/StackSlot.d.ts +5 -0
- package/components/mui_extended/Stack/slots/StackSlot.js +11 -0
- package/components/mui_extended/Stack/slots/index.d.ts +2 -0
- package/components/mui_extended/Stack/slots/index.js +1 -0
- package/components/mui_extended/Stack/types.d.ts +9 -2
- package/package.json +1 -1
- package/components/mui_extended/Stack/classes/constants.d.ts +0 -1
- package/components/mui_extended/Stack/classes/constants.js +0 -4
- package/components/mui_extended/Stack/classes/index.d.ts +0 -9
- package/components/mui_extended/Stack/classes/index.js +0 -23
- package/components/mui_extended/Stack/classes/types.d.ts +0 -6
- package/components/mui_extended/Stack/styles.d.ts +0 -3
- package/components/mui_extended/Stack/styles.js +0 -7
package/@types/types.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ import { MenuDividerOwnerState, MenuDividerSlotsType } from '../components/mui_e
|
|
|
144
144
|
import { NavLinkOwnerState, NavLinkSlotsType } from '../components/mui_extended/NavLink/types';
|
|
145
145
|
|
|
146
146
|
import { RHFSelectSlotsType, RHFSelectOwnerState } from '../components/hook-form/RHFSelect/types';
|
|
147
|
+
import { StackOwnerState, StackSlotsType } from '../components/mui_extended/Stack/types';
|
|
147
148
|
import { RHFCheckBoxOwnerState, RHFCheckBoxSlotsType } from '../components/hook-form/RHFCheckbox/types';
|
|
148
149
|
import { DateTimePickerOwnerState, DateTimePickerSlotsType } from '../components/mui_extended/DateTimePicker/types';
|
|
149
150
|
import { DividerOwnerState, DividerSlotsType } from '../components/mui_extended/Divider/types';
|
|
@@ -208,6 +209,7 @@ declare module '@mui/material/styles' {
|
|
|
208
209
|
M4LMenuDivider: MenuDividerSlotsType;
|
|
209
210
|
M4LNavLink: NavLinkSlotsType;
|
|
210
211
|
M4LRHFSelect: RHFSelectSlotsType;
|
|
212
|
+
M4LStack: StackSlotsType;
|
|
211
213
|
M4LDateTimePicker: DateTimePickerSlotsType;
|
|
212
214
|
M4LDivider: DividerSlotsType;
|
|
213
215
|
}
|
|
@@ -270,6 +272,7 @@ declare module '@mui/material/styles' {
|
|
|
270
272
|
M4LMenuDivider: Partial<MenuDividerOwnerState>;
|
|
271
273
|
M4LNavLink: Partial<NavLinkOwnerState>;
|
|
272
274
|
M4LRHFSelect: Partial<RHFSelectOwnerState>;
|
|
275
|
+
M4LStack: Partial<StackOwnerState>;
|
|
273
276
|
M4LDateTimePicker: Partial<DateTimePickerOwnerState>;
|
|
274
277
|
M4LDivider: Partial<DividerOwnerState>;
|
|
275
278
|
}
|
|
@@ -556,7 +559,10 @@ declare module '@mui/material/styles' {
|
|
|
556
559
|
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFSelect'];
|
|
557
560
|
variants?: ComponentsVariants['M4LRHFSelect'];
|
|
558
561
|
};
|
|
559
|
-
|
|
562
|
+
M4LStack?: {
|
|
563
|
+
defaultProps?: ComponentsPropsList['M4LStack'];
|
|
564
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LStack'];
|
|
565
|
+
variants?: ComponentsVariants['M4LStack'];
|
|
560
566
|
M4LDateTimePicker?: {
|
|
561
567
|
defaultProps?: ComponentsPropsList['M4LDateTimePicker'];
|
|
562
568
|
styleOverrides?: ComponentsOverrides<Theme>['M4LDateTimePicker'];
|
|
@@ -568,4 +574,5 @@ declare module '@mui/material/styles' {
|
|
|
568
574
|
variants?: ComponentsVariants['M4LDivider'];
|
|
569
575
|
};
|
|
570
576
|
}
|
|
571
|
-
}
|
|
577
|
+
}
|
|
578
|
+
}
|
|
@@ -39,7 +39,7 @@ export interface ChipProps {
|
|
|
39
39
|
* Defines the color of the `Chip`.
|
|
40
40
|
* @createdAt 2025-01-08 10:36:39 - automatic
|
|
41
41
|
*/
|
|
42
|
-
color?: Exclude<ComponentPalletColor, 'primary'> | '
|
|
42
|
+
color?: Exclude<ComponentPalletColor, 'primary'> | 'forest' | 'disabled';
|
|
43
43
|
/**
|
|
44
44
|
* Alternative color for the `Chip`.
|
|
45
45
|
*/
|
|
@@ -82,7 +82,7 @@ export interface ChipProps {
|
|
|
82
82
|
export interface ChipOwnerState extends Pick<ChipProps, 'variant' | 'externalColor'> {
|
|
83
83
|
opacity?: boolean;
|
|
84
84
|
chipSize: ChipProps['size'];
|
|
85
|
-
color: Exclude<ComponentPalletColor, 'primary'> | '
|
|
85
|
+
color: Exclude<ComponentPalletColor, 'primary'> | 'forest' | 'disabled';
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* Defines the types of Slots available for the `Chip`.
|
|
@@ -48,7 +48,7 @@ import { PagerProps } from './types';
|
|
|
48
48
|
* ```
|
|
49
49
|
* @author cesar - automatic
|
|
50
50
|
* @createdAt 2025-01-15 17:01:04 - automatic
|
|
51
|
-
* @updatedAt 2025-01-
|
|
51
|
+
* @updatedAt 2025-01-29 08:56:53 - automatic
|
|
52
52
|
* @updatedUser cesar - automatic
|
|
53
53
|
*/
|
|
54
54
|
export declare function Pager(props: PagerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,8 +13,8 @@ function Pager(props) {
|
|
|
13
13
|
page = 0,
|
|
14
14
|
onPageChange,
|
|
15
15
|
onRowsPerPageChange,
|
|
16
|
-
labelRows
|
|
17
|
-
labelOf
|
|
16
|
+
labelRows,
|
|
17
|
+
labelOf,
|
|
18
18
|
size = "medium"
|
|
19
19
|
} = props;
|
|
20
20
|
const totalPages = useMemo(() => Math.max(1, Math.ceil(totalRecords / rowsPerPage)), [totalRecords, rowsPerPage]);
|
|
@@ -24,9 +24,12 @@ function Pager(props) {
|
|
|
24
24
|
const currentPage = useMemo(() => {
|
|
25
25
|
return Math.max(0, Math.min(page, totalPages - 1));
|
|
26
26
|
}, [page, totalPages]);
|
|
27
|
-
const
|
|
28
|
-
return
|
|
29
|
-
}, [
|
|
27
|
+
const memoizedLabelOf = useMemo(() => {
|
|
28
|
+
return labelOf ?? getLabel(PAGER_DICTIONARY.of);
|
|
29
|
+
}, [labelOf, getLabel]);
|
|
30
|
+
const memoizedLabelTotalRows = useMemo(() => {
|
|
31
|
+
return labelRows ?? getLabel(PAGER_DICTIONARY.total_rows);
|
|
32
|
+
}, [labelRows, getLabel]);
|
|
30
33
|
const handleChangeRowsPerPage = (option) => {
|
|
31
34
|
if (onRowsPerPageChange && option.value !== void 0) {
|
|
32
35
|
onRowsPerPageChange(option.value);
|
|
@@ -47,11 +50,11 @@ function Pager(props) {
|
|
|
47
50
|
rowsPerPageOptions,
|
|
48
51
|
count: totalRecords,
|
|
49
52
|
rowsPerPage,
|
|
50
|
-
labelRowsPerPage: labelRows,
|
|
51
53
|
page: currentPage,
|
|
52
54
|
onPageChange: handleChangePage,
|
|
53
55
|
onRowsPerPageChange: handleChangeRowsPerPage,
|
|
54
|
-
|
|
56
|
+
labelOf: memoizedLabelOf,
|
|
57
|
+
labelTotalRows: memoizedLabelTotalRows
|
|
55
58
|
}
|
|
56
59
|
) });
|
|
57
60
|
}
|
|
@@ -7,7 +7,8 @@ const PAGER_DICTIONARY = {
|
|
|
7
7
|
of: "pager.of",
|
|
8
8
|
page: "pager.page",
|
|
9
9
|
no_records: "pager.no_records",
|
|
10
|
-
total_rows: "pager.total_rows"
|
|
10
|
+
total_rows: "pager.total_rows",
|
|
11
|
+
rows: "pager.rows"
|
|
11
12
|
};
|
|
12
13
|
function getPagerComponentsDictionary() {
|
|
13
14
|
return ["pager"];
|
|
@@ -3,7 +3,7 @@ import { CustomTablePaginationProps } from './types';
|
|
|
3
3
|
* CustomTablePagination component
|
|
4
4
|
* @author cesar - automatic
|
|
5
5
|
* @createdAt 2025-01-15 17:13:29 - automatic
|
|
6
|
-
* @updatedAt 2025-01-
|
|
6
|
+
* @updatedAt 2025-01-28 14:04:43 - automatic
|
|
7
7
|
* @updatedUser cesar - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare const CustomTablePagination: (props: CustomTablePaginationProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -13,7 +13,9 @@ const CustomTablePagination = (props) => {
|
|
|
13
13
|
rowsPerPageOptions = [10, 25, 50, 100],
|
|
14
14
|
onRowsPerPageChange,
|
|
15
15
|
onPageChange,
|
|
16
|
-
size
|
|
16
|
+
size,
|
|
17
|
+
labelOf,
|
|
18
|
+
labelTotalRows
|
|
17
19
|
} = props;
|
|
18
20
|
const [localRowsPerPage, setLocalRowsPerPage] = useState(rowsPerPage);
|
|
19
21
|
const [localPage, setLocalPage] = useState(Math.max(0, page));
|
|
@@ -32,13 +34,17 @@ const CustomTablePagination = (props) => {
|
|
|
32
34
|
const currentPage = useMemo(() => {
|
|
33
35
|
return Math.max(0, Math.min(localPage, totalPages - 1));
|
|
34
36
|
}, [localPage, totalPages]);
|
|
37
|
+
const memoizedLabelPage = useMemo(() => getLabel(PAGER_DICTIONARY.page), [getLabel]);
|
|
38
|
+
const memoizedLabelRows = useMemo(() => getLabel(PAGER_DICTIONARY.rows), [getLabel]);
|
|
39
|
+
const memoizedLabelRowsPerPage = useMemo(() => getLabel(PAGER_DICTIONARY.rows_per_page), [getLabel]);
|
|
40
|
+
const memoizedLabelNoRecords = useMemo(() => getLabel(PAGER_DICTIONARY.no_records), [getLabel]);
|
|
35
41
|
const formattedLabelDisplayedRows = useMemo(() => {
|
|
36
42
|
if (countTotal === 0) {
|
|
37
|
-
return
|
|
43
|
+
return memoizedLabelNoRecords;
|
|
38
44
|
}
|
|
39
45
|
const displayedPage = currentPage === 1 ? 1 : currentPage + 1;
|
|
40
|
-
return `${
|
|
41
|
-
}, [currentPage, totalPages, countTotal,
|
|
46
|
+
return `${memoizedLabelPage} ${displayedPage} ${labelOf} ${totalPages}`;
|
|
47
|
+
}, [currentPage, totalPages, countTotal, labelOf, memoizedLabelPage, memoizedLabelNoRecords]);
|
|
42
48
|
const handleChangeRowsPerPage = (option) => {
|
|
43
49
|
const selectedValue = Number(option.id);
|
|
44
50
|
const newTotalPages = Math.ceil(countTotal / selectedValue);
|
|
@@ -46,7 +52,7 @@ const CustomTablePagination = (props) => {
|
|
|
46
52
|
setLocalRowsPerPage(selectedValue);
|
|
47
53
|
setLocalPage(newPage);
|
|
48
54
|
if (onRowsPerPageChange) {
|
|
49
|
-
onRowsPerPageChange({ id: selectedValue, value: selectedValue, label: `${selectedValue}
|
|
55
|
+
onRowsPerPageChange({ id: selectedValue, value: selectedValue, label: `${selectedValue} ${memoizedLabelRows}` });
|
|
50
56
|
}
|
|
51
57
|
if (onPageChange) {
|
|
52
58
|
onPageChange(null, newPage);
|
|
@@ -54,9 +60,9 @@ const CustomTablePagination = (props) => {
|
|
|
54
60
|
};
|
|
55
61
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
56
62
|
rowsPerPageOptions?.length > 1 ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57
|
-
/* @__PURE__ */ jsx(TotalRowStyled, { skeletonWidth: 50, size, variant: "body", children: `${
|
|
63
|
+
/* @__PURE__ */ jsx(TotalRowStyled, { skeletonWidth: 50, size, variant: "body", children: `${labelTotalRows}: ${countTotal}` }),
|
|
58
64
|
/* @__PURE__ */ jsxs(LabelSelectContainerStyled, { children: [
|
|
59
|
-
/* @__PURE__ */ jsx(RowsPerPageStyled, { skeletonWidth: 50, size, variant: "body", children: `${
|
|
65
|
+
/* @__PURE__ */ jsx(RowsPerPageStyled, { skeletonWidth: 50, size, variant: "body", children: `${memoizedLabelRowsPerPage}:` }),
|
|
60
66
|
/* @__PURE__ */ jsx(
|
|
61
67
|
Select,
|
|
62
68
|
{
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import { LabelDisplayedRowsArgs, TablePaginationProps } from '@mui/material';
|
|
2
2
|
import { selectOption } from '../../types';
|
|
3
3
|
export type CustomTablePaginationProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Label for the rows per page select.
|
|
6
|
+
* @deprecated Use `slotProps.select` instead.
|
|
7
|
+
* @createdAt 2025-01-27 15:42:54 - automatic
|
|
8
|
+
*/
|
|
9
|
+
labelOf: string;
|
|
10
|
+
/**
|
|
11
|
+
* List of rows per page options.
|
|
12
|
+
* @author cesar - automatic
|
|
13
|
+
* @createdAt 2025-01-27 15:42:54 - automatic
|
|
14
|
+
* @updatedAt 2025-01-28 14:04:43 - automatic
|
|
15
|
+
* @updatedUser cesar - automatic
|
|
16
|
+
*/
|
|
4
17
|
rowsPerPageOptions: number[];
|
|
5
18
|
onPageChange: (_event: unknown, newPage: number) => void;
|
|
6
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Label rows per page.
|
|
21
|
+
* @deprecated Use `slotProps.select` instead.
|
|
22
|
+
* @createdAt 2025-01-27 15:42:54 - automatic
|
|
23
|
+
*/
|
|
24
|
+
labelRowsPerPage?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Label total rows.
|
|
27
|
+
* @createdAt 2025-01-27 17:28:22 - automatic
|
|
28
|
+
*/
|
|
29
|
+
labelTotalRows?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Total number of rows.
|
|
32
|
+
* @author cesar - automatic
|
|
33
|
+
* @createdAt 2025-01-27 15:42:54 - automatic
|
|
34
|
+
* @updatedAt 2025-01-28 14:04:43 - automatic
|
|
35
|
+
* @updatedUser cesar - automatic
|
|
36
|
+
*/
|
|
7
37
|
onRowsPerPageChange: (option: selectOption<number>) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Labe displayed rows.
|
|
40
|
+
* @author cesar - automatic
|
|
41
|
+
* @createdAt 2025-01-27 15:42:54 - automatic
|
|
42
|
+
* @updatedAt 2025-01-28 14:04:43 - automatic
|
|
43
|
+
* @updatedUser cesar - automatic
|
|
44
|
+
*/
|
|
8
45
|
labelDisplayedRows?: (paginationInfo: LabelDisplayedRowsArgs) => string;
|
|
9
46
|
} & Omit<TablePaginationProps, 'onPageChange' | 'onRowsPerPageChange' | 'ActionsComponent' | 'labelDisplayedRows'>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PagerActionsProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* PagerActions component is a subcomponent of the Pager component that allows the user to navigate between different pages.
|
|
4
4
|
* @author cesar - automatic
|
|
5
5
|
* @createdAt 2025-01-15 17:13:29 - automatic
|
|
6
|
-
* @updatedAt 2025-01-
|
|
6
|
+
* @updatedAt 2025-01-27 08:17:21 - automatic
|
|
7
7
|
* @updatedUser cesar - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare function PagerActions(props: PagerActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,7 +12,20 @@ export interface PagerProps {
|
|
|
12
12
|
page: number;
|
|
13
13
|
onPageChange: (newPage: number) => void;
|
|
14
14
|
onRowsPerPageChange: (newRowsPerPage: number) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Label rows per page.
|
|
17
|
+
* @deprecated Use `slotProps.select` instead.
|
|
18
|
+
* @createdAt 2025-01-27 15:42:54 - automatic
|
|
19
|
+
* @author cesar - automatic
|
|
20
|
+
* @updatedAt 2025-01-27 15:51:21 - automatic
|
|
21
|
+
* @updatedUser cesar - automatic
|
|
22
|
+
*/
|
|
15
23
|
labelRows?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Label for the rows per page select.
|
|
26
|
+
* @deprecated Use `slotProps.select` instead.
|
|
27
|
+
* @createdAt 2025-01-27 15:42:54 - automatic
|
|
28
|
+
*/
|
|
16
29
|
labelOf?: string;
|
|
17
30
|
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
18
31
|
}
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export declare const SectionCommercialRoot: import('@emotion/styled').StyledComponent<import('
|
|
2
|
-
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
-
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & {
|
|
4
|
-
component?: React.ElementType;
|
|
5
|
-
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
1
|
+
export declare const SectionCommercialRoot: import('@emotion/styled').StyledComponent<import('../../mui_extended/Stack').StackProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export declare const StackGeofenceListRoot: import('@emotion/styled').StyledComponent<import('
|
|
2
|
-
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
-
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & {
|
|
4
|
-
component?: React.ElementType;
|
|
5
|
-
} & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
1
|
+
export declare const StackGeofenceListRoot: import('@emotion/styled').StyledComponent<import('../../../../../../../mui_extended/Stack').StackProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, {}, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StackProps } from '
|
|
1
|
+
import { StackProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Stack es un componente contenedor para organizar elementos vertical u horizontalmente.
|
|
4
4
|
*/
|
|
5
5
|
export declare const Stack: (props: StackProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
2
|
+
import { M as MUISTackRootStyled } from "./slots/StackSlot.js";
|
|
3
|
+
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
4
|
+
import { S as STACK_KEY_COMPONENT } from "./constant.js";
|
|
5
|
+
import { S as StackSlots } from "./slots/StackEnum.js";
|
|
6
6
|
const Stack = (props) => {
|
|
7
|
-
const {
|
|
8
|
-
|
|
7
|
+
const {
|
|
8
|
+
children,
|
|
9
|
+
flexDirection,
|
|
10
|
+
dataTestId,
|
|
11
|
+
...others
|
|
12
|
+
} = props;
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
MUISTackRootStyled,
|
|
15
|
+
{
|
|
16
|
+
ownerState: {},
|
|
17
|
+
flexDirection,
|
|
18
|
+
...getPropDataTestId(STACK_KEY_COMPONENT, StackSlots.root, dataTestId),
|
|
19
|
+
...others,
|
|
20
|
+
children
|
|
21
|
+
}
|
|
22
|
+
);
|
|
9
23
|
};
|
|
10
24
|
export {
|
|
11
25
|
Stack as S
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const STACK_KEY_COMPONENT = "M4LStack";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const MUISTackRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps>, "ref" | "title" | "id" | "hidden" | "content" | "translate" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
4
|
+
ownerState: any;
|
|
5
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { S as STACK_KEY_COMPONENT } from "../constant.js";
|
|
2
|
+
import { s as stackStyles } from "../Stack.styles.js";
|
|
3
|
+
import { S as StackSlots } from "./StackEnum.js";
|
|
4
|
+
import { styled, Stack } from "@mui/material";
|
|
5
|
+
const MUISTackRootStyled = styled(Stack, {
|
|
6
|
+
name: STACK_KEY_COMPONENT,
|
|
7
|
+
slot: StackSlots.root
|
|
8
|
+
})(stackStyles?.root);
|
|
9
|
+
export {
|
|
10
|
+
MUISTackRootStyled as M
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import { StackProps as MUIStackProps } from '@mui/material';
|
|
2
|
-
|
|
1
|
+
import { StackProps as MUIStackProps, Theme } from '@mui/material';
|
|
2
|
+
import { StackSlots } from './slots';
|
|
3
|
+
import { M4LOverridesStyleRules } from '../../../@types/augmentations';
|
|
4
|
+
import { STACK_KEY_COMPONENT } from './constant';
|
|
5
|
+
export interface StackProps extends MUIStackProps {
|
|
6
|
+
dataTestId?: string;
|
|
7
|
+
}
|
|
8
|
+
export type StackSlotsType = keyof typeof StackSlots;
|
|
9
|
+
export type StackStyles = M4LOverridesStyleRules<StackSlotsType, typeof STACK_KEY_COMPONENT, Theme>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const componentName = "M4LStack";
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StackClassesType } from './types';
|
|
2
|
-
export declare const stackClasses: StackClassesType;
|
|
3
|
-
export declare function getStackUtilityClass(slot: string): string;
|
|
4
|
-
/**
|
|
5
|
-
* TODO: Documentar
|
|
6
|
-
*/
|
|
7
|
-
export declare const getStackUtilityClasses: () => {
|
|
8
|
-
root: string;
|
|
9
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
|
|
2
|
-
import { unstable_composeClasses } from "@mui/base";
|
|
3
|
-
import { c as componentName } from "./constants.js";
|
|
4
|
-
generateUtilityClasses(componentName, [
|
|
5
|
-
/* elements */
|
|
6
|
-
"root"
|
|
7
|
-
/* states or variants of elements */
|
|
8
|
-
]);
|
|
9
|
-
function getStackUtilityClass(slot) {
|
|
10
|
-
return generateUtilityClass(componentName, slot);
|
|
11
|
-
}
|
|
12
|
-
const getStackUtilityClasses = () => {
|
|
13
|
-
const slots = {
|
|
14
|
-
root: ["root"]
|
|
15
|
-
};
|
|
16
|
-
const composedClasses = unstable_composeClasses(slots, getStackUtilityClass, {});
|
|
17
|
-
return {
|
|
18
|
-
...composedClasses
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
export {
|
|
22
|
-
getStackUtilityClasses as g
|
|
23
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const MUISTack: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
-
ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
-
}, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|