asma-core-ui 2.19.65 → 2.19.67
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/dist/asma-core-ui.es.js +21 -22
- package/dist/src/components/data-display/badge/StyledBadge.d.ts +1 -4
- package/dist/src/components/data-display/chip/StyledChip.d.ts +1 -4
- package/dist/src/components/data-display/icons/index.d.ts +0 -5
- package/dist/src/components/feedback/dialog/StyledDialog.d.ts +1 -2
- package/dist/src/components/feedback/snack-bar/index.d.ts +0 -2
- package/dist/src/components/inputs/button/StyledButton.d.ts +3 -3
- package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +1 -4
- package/dist/src/components/inputs/checkbox/StyledCheckbox.stories.d.ts +14 -0
- package/dist/src/components/inputs/date-picker/StyledCalendarPicker.d.ts +4 -0
- package/dist/src/components/{pickers/date-picker/types.d.ts → inputs/date-picker/StyledDatePicker.d.ts} +2 -10
- package/dist/src/components/inputs/input/StyledInput.d.ts +10 -6
- package/dist/src/components/inputs/input-field/StyledInputField.d.ts +1 -7
- package/dist/src/components/inputs/input-field/index.d.ts +0 -1
- package/dist/src/components/inputs/rich-input/RichInput.d.ts +0 -1
- package/dist/src/components/inputs/select/StyledSelect.d.ts +3 -10
- package/dist/src/components/inputs/select/index.d.ts +0 -1
- package/dist/src/components/inputs/slider/StyledSlider.d.ts +1 -4
- package/dist/src/components/inputs/switch/StyledSwitch.d.ts +1 -3
- package/dist/src/components/navigation/menu/index.d.ts +0 -1
- package/dist/src/components/table/StyledTable.d.ts +27 -12
- package/dist/src/components/table/components/columns/actionColumn.d.ts +8 -0
- package/dist/src/components/table/components/columns/widthStabilizer.d.ts +6 -0
- package/dist/src/components/table/index.d.ts +1 -1
- package/dist/src/components/table/types.d.ts +3 -35
- package/dist/src/index.d.ts +1 -6
- package/dist/style.css +2 -2
- package/dist/tailwind.config.d.ts +2 -0
- package/package.json +1 -1
- package/dist/src/components/data-display/icons/delete-outline-icon/DeleteOutlineIcon.d.ts +0 -3
- package/dist/src/components/data-display/icons/delete-outline-icon/index.d.ts +0 -1
- package/dist/src/components/data-display/icons/drag-horizontal-icon/DragHorizontalIcon.d.ts +0 -3
- package/dist/src/components/data-display/icons/drag-horizontal-icon/index.d.ts +0 -1
- package/dist/src/components/data-display/icons/file-pdf-icon/FilePdfIcon.d.ts +0 -3
- package/dist/src/components/data-display/icons/file-pdf-icon/index.d.ts +0 -1
- package/dist/src/components/data-display/icons/filter-icon/FilterIcon.d.ts +0 -3
- package/dist/src/components/data-display/icons/filter-icon/index.d.ts +0 -1
- package/dist/src/components/data-display/icons/lock-icon/LockIcon.d.ts +0 -3
- package/dist/src/components/data-display/icons/lock-icon/index.d.ts +0 -1
- package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +0 -12
- package/dist/src/components/feedback/snack-bar/components/processMessageError.d.ts +0 -3
- package/dist/src/components/feedback/snack-bar/components/processMessageInfo.d.ts +0 -3
- package/dist/src/components/feedback/snack-bar/components/types.d.ts +0 -10
- package/dist/src/components/feedback/snack-bar/components-styled/InfoMessages.d.ts +0 -2
- package/dist/src/components/feedback/snack-bar/message.d.ts +0 -17
- package/dist/src/components/feedback/snack-bar/processInfoSnackbar.d.ts +0 -1
- package/dist/src/components/filter-menu/StyledFilterMenu.d.ts +0 -13
- package/dist/src/components/inputs/input-field/story/components/StyledInputFieldExample.d.ts +0 -2
- package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +0 -4
- package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +0 -4
- package/dist/src/components/inputs/radio-button/index.d.ts +0 -2
- package/dist/src/components/inputs/select/story/components/StyledSelectExample.d.ts +0 -2
- package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +0 -11
- package/dist/src/components/inputs/select-autocomplete/index.d.ts +0 -1
- package/dist/src/components/inputs/select-autocomplete/story/components/StyledSelectAutocompleteExample.d.ts +0 -2
- package/dist/src/components/pickers/date-picker/StyledDatePicker.d.ts +0 -2
- package/dist/src/components/pickers/date-picker/components/DefaultInput.d.ts +0 -5
- package/dist/src/components/pickers/date-picker/components/RangeInput.d.ts +0 -5
- package/dist/src/components/pickers/date-picker/components/StyledCalendarPicker.d.ts +0 -8
- package/dist/src/components/pickers/date-picker/components/StyledCalendarPickerCaption.d.ts +0 -7
- package/dist/src/components/pickers/date-picker/components/StyledCalendarPickerFooter.d.ts +0 -10
- package/dist/src/components/pickers/date-picker/components/StyledCalendarPickerSelectMonth.d.ts +0 -3
- package/dist/src/components/pickers/date-picker/components/StyledCalendarPickerSelectYear.d.ts +0 -3
- package/dist/src/components/pickers/date-picker/helpers.d.ts +0 -3
- package/dist/src/components/pickers/date-picker/story/components/DatePickerContainer.d.ts +0 -5
- package/dist/src/components/pickers/date-picker/story/components/DefaultPickerExample.d.ts +0 -2
- package/dist/src/components/pickers/date-picker/story/components/NestedRangePickerExample.d.ts +0 -2
- package/dist/src/components/pickers/date-picker/story/components/RangePickerExample.d.ts +0 -2
- package/dist/src/components/pickers/time-picker/StyledTimePicker.d.ts +0 -16
- package/dist/src/components/pickers/time-picker/components/TimePickerBody.d.ts +0 -5
- package/dist/src/components/pickers/time-picker/components/TimePickerColumn.d.ts +0 -6
- package/dist/src/components/pickers/time-picker/index.d.ts +0 -1
- package/dist/src/components/table/components/TableHeader.d.ts +0 -6
- package/dist/src/components/table/components/TablePagination.d.ts +0 -6
- package/dist/src/components/table/components/columns/action-column/actionColumn.d.ts +0 -21
- package/dist/src/components/table/components/columns/action-column/components/HeaderActionMenu.d.ts +0 -5
- package/dist/src/components/table/components/columns/action-column/components/RowActionMenu.d.ts +0 -12
- package/dist/src/components/table/components/columns/expandColumn.d.ts +0 -10
- package/dist/src/components/table/components/columns/injectColumns.d.ts +0 -2
- package/dist/src/components/table/components/columns/selectColumn.d.ts +0 -8
- package/dist/src/components/table/story/components/useTableColumns.d.ts +0 -10
- package/dist/src/helpers/date.helpers.d.ts +0 -2
- package/dist/src/hooks/useWindowWidthSize.hook.d.ts +0 -5
- /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/StyledDataGrid.d.ts +0 -0
- /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/StyledGridActionsCellItem.d.ts +0 -0
- /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/components/ColumnFormControlItem.d.ts +0 -0
- /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/components/ColumnsMenu.d.ts +0 -0
- /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/components/columnActions.d.ts +0 -0
- /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/index.d.ts +0 -0
- /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/types.d.ts +0 -0
- /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/x-data-grid-types.d.ts +0 -0
- /package/dist/src/components/{pickers → inputs}/date-picker/index.d.ts +0 -0
- /package/dist/src/{hooks/useToggleMenuVisibility.hook.d.ts → components/table/useToggleMenuVisibility.d.ts} +0 -0
|
@@ -46,8 +46,3 @@ export * from './inbox-outbox-icon';
|
|
|
46
46
|
export * from './inbox-outbox-outline-icon';
|
|
47
47
|
export * from './topic-icon';
|
|
48
48
|
export * from './empty-page-icon';
|
|
49
|
-
export * from './drag-horizontal-icon';
|
|
50
|
-
export * from './file-pdf-icon';
|
|
51
|
-
export * from './delete-outline-icon';
|
|
52
|
-
export * from './filter-icon';
|
|
53
|
-
export * from './lock-icon';
|
|
@@ -3,6 +3,5 @@ import type { ReactNode } from 'react';
|
|
|
3
3
|
export interface IStyledDialogProps extends DialogProps {
|
|
4
4
|
onCloseText?: ReactNode;
|
|
5
5
|
showCloseIcon?: boolean;
|
|
6
|
-
dataTest: string;
|
|
7
6
|
}
|
|
8
|
-
export declare const StyledDialog:
|
|
7
|
+
export declare const StyledDialog: ({ onCloseText, children, onClose, showCloseIcon, ...rest }: IStyledDialogProps) => JSX.Element;
|
|
@@ -2,10 +2,10 @@ import React, { type ReactNode } from 'react';
|
|
|
2
2
|
export type StyledButtonType = 'contained' | 'outlined' | 'text' | 'textGray';
|
|
3
3
|
type commonProps = {
|
|
4
4
|
refLink?: React.Ref<HTMLButtonElement>;
|
|
5
|
-
size?: 'large' | 'small'
|
|
5
|
+
size?: 'large' | 'small';
|
|
6
6
|
startIcon?: ReactNode;
|
|
7
7
|
endIcon?: ReactNode;
|
|
8
|
-
dataTest
|
|
8
|
+
dataTest?: string;
|
|
9
9
|
};
|
|
10
10
|
type variantTextGrayProps = {
|
|
11
11
|
variant?: 'textGray';
|
|
@@ -25,7 +25,7 @@ export type StyledButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> &
|
|
|
25
25
|
*
|
|
26
26
|
* Custom props:
|
|
27
27
|
* @param variant - 'contained' | 'outlined' | 'text' | 'textGray'
|
|
28
|
-
* @param size - 'large' | 'small'
|
|
28
|
+
* @param size - 'large' | 'small'
|
|
29
29
|
* @param startIcon - ReactNode
|
|
30
30
|
* @param endIcon - ReactNode
|
|
31
31
|
* @param error - boolean
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: (props: import("@mui/material").CheckboxProps) => JSX.Element;
|
|
6
|
+
tags: string[];
|
|
7
|
+
argTypes: {};
|
|
8
|
+
args: {
|
|
9
|
+
disableRipple: true;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Checkbox: Story;
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import type { DayPicker, Matcher } from 'react-day-picker';
|
|
3
|
-
export type CalendarProps = React.ComponentProps<typeof DayPicker>;
|
|
1
|
+
import { type CalendarProps } from './StyledCalendarPicker';
|
|
4
2
|
type CommonDatePickerProps = {
|
|
5
3
|
dateFormat?: string;
|
|
6
4
|
className?: string;
|
|
7
5
|
inputClassName?: string;
|
|
8
|
-
onClear?: () => void;
|
|
9
|
-
allowClear?: boolean;
|
|
10
|
-
disabledDays?: Matcher | Matcher[];
|
|
11
|
-
dataTest: string;
|
|
12
6
|
} & CalendarProps;
|
|
13
7
|
type CompactRangeProps = {
|
|
14
8
|
mode: 'range';
|
|
15
9
|
compact: true;
|
|
16
10
|
placeholderFrom?: string;
|
|
17
11
|
placeholderTo?: string;
|
|
18
|
-
allowClear?: never;
|
|
19
12
|
placeholder?: never;
|
|
20
13
|
};
|
|
21
14
|
type DefaultRangeProps = {
|
|
@@ -24,8 +17,6 @@ type DefaultRangeProps = {
|
|
|
24
17
|
placeholder?: string;
|
|
25
18
|
placeholderFrom?: never;
|
|
26
19
|
placeholderTo?: never;
|
|
27
|
-
onClearFrom?: () => void;
|
|
28
|
-
onClearTo?: () => void;
|
|
29
20
|
};
|
|
30
21
|
type DefaultSingleProps = {
|
|
31
22
|
mode: 'single';
|
|
@@ -35,4 +26,5 @@ type DefaultSingleProps = {
|
|
|
35
26
|
placeholderTo?: never;
|
|
36
27
|
};
|
|
37
28
|
export type DatePickerProps = CommonDatePickerProps & (CompactRangeProps | DefaultRangeProps | DefaultSingleProps);
|
|
29
|
+
export declare const StyledDatePicker: ({ placeholder, placeholderFrom, placeholderTo, compact, dateFormat, className, inputClassName, disabled, ...props }: DatePickerProps) => JSX.Element;
|
|
38
30
|
export {};
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { type FC, type ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
|
-
* @
|
|
3
|
+
* Developer: bragari.andrei@carasent.com
|
|
4
|
+
* Custom props:
|
|
5
|
+
* @param description - message under input (string)
|
|
6
|
+
* @param startIcon - icon before input (JSX.Element)
|
|
7
|
+
* @param endIcon - icon after input (JSX.Element)
|
|
8
|
+
* @param dataTest - data-test tag (string)
|
|
9
|
+
* @param label - string
|
|
10
|
+
* @param refLink - ref to component
|
|
11
|
+
* @param size - 'large' | 'small'
|
|
12
|
+
* @param className - for styles (width)
|
|
4
13
|
*/
|
|
5
14
|
type ConditionalProps = {
|
|
6
15
|
disabled?: boolean;
|
|
@@ -32,10 +41,5 @@ export type StyledInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>,
|
|
|
32
41
|
label?: ReactNode;
|
|
33
42
|
refLink?: React.Ref<HTMLInputElement>;
|
|
34
43
|
} & ConditionalProps;
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated The input should not be used, use ->> StyledInputField
|
|
37
|
-
*
|
|
38
|
-
* USE @@@@ StyledInputField @@@
|
|
39
|
-
*/
|
|
40
44
|
export declare const StyledInput: FC<StyledInputProps>;
|
|
41
45
|
export {};
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { type TextFieldProps } from '@mui/material';
|
|
3
2
|
/**
|
|
4
3
|
*
|
|
5
4
|
* @inputRef
|
|
6
5
|
* inputRef to get Node of Input Element inside
|
|
7
6
|
*
|
|
8
|
-
* type='mui-input' is temporary, remove it after deleting antd from all projects. Antd lib overwrites styles for type[text]
|
|
9
7
|
*/
|
|
10
|
-
export declare const StyledInputField:
|
|
11
|
-
allowClear?: boolean;
|
|
12
|
-
onClear?: () => void;
|
|
13
|
-
dataTest: string;
|
|
14
|
-
}>;
|
|
8
|
+
export declare const StyledInputField: (props: TextFieldProps) => JSX.Element;
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type SelectProps } from '@mui/material';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @usage
|
|
6
|
-
* use StyleSelect only inside StyledFormControl
|
|
7
|
-
*
|
|
8
|
-
* @size
|
|
9
|
-
* control the size through StyledFormControl
|
|
10
4
|
*
|
|
11
5
|
* @inputRef
|
|
12
6
|
* inputRef to get Node of Input Element inside
|
|
13
7
|
*
|
|
14
8
|
*/
|
|
15
|
-
export declare const StyledSelect:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}>;
|
|
9
|
+
export declare const StyledSelect: (props: SelectProps<unknown> & {
|
|
10
|
+
reflink?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
|
|
11
|
+
}) => JSX.Element;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { type SliderProps } from '@mui/material';
|
|
2
|
-
export
|
|
3
|
-
dataTest: string;
|
|
4
|
-
}
|
|
5
|
-
export declare const StyledSlider: ({ dataTest, ...props }: StyledSliderProps) => JSX.Element;
|
|
2
|
+
export declare const StyledSlider: (props: SliderProps) => JSX.Element;
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { type SwitchProps as _SwitchProps } from '@mui/material';
|
|
2
2
|
export type SwitchProps = _SwitchProps;
|
|
3
|
-
export declare const StyledSwitch: (
|
|
4
|
-
dataTest: string;
|
|
5
|
-
}) => JSX.Element;
|
|
3
|
+
export declare const StyledSwitch: (props: SwitchProps) => JSX.Element;
|
|
@@ -1,14 +1,29 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { type TableOptions, type Table, type Row } from '@tanstack/react-table';
|
|
2
|
+
import { type ReactElement, type MouseEvent } from 'react';
|
|
3
|
+
export interface StyledTableProps<TData, TCustomData> extends Omit<TableOptions<TData>, 'getCoreRowModel' | 'getExpandedRowModel' | 'getFilteredRowModel' | 'getSortedRowModel'> {
|
|
4
|
+
actions?: (row: Row<TData>) => {
|
|
5
|
+
label: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
hide?: boolean;
|
|
9
|
+
onClick?: (row: Row<TData>) => void;
|
|
10
|
+
}[];
|
|
11
|
+
autoSize?: boolean;
|
|
12
|
+
customSubRowData?: Map<string, TCustomData[]>;
|
|
13
|
+
disableHeaderPin?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
noRowsOverlay?: ReactElement;
|
|
16
|
+
tableInstanceRef?: React.MutableRefObject<Table<TData> | null>;
|
|
17
|
+
className?: string;
|
|
18
|
+
rowHeight?: number;
|
|
19
|
+
tdClassName?: string;
|
|
20
|
+
thClassName?: string;
|
|
21
|
+
getRowClassName?: (row: Row<TData>) => string;
|
|
22
|
+
onRowClick?: (e: MouseEvent<HTMLTableRowElement, globalThis.MouseEvent>, row: Row<TData>) => void;
|
|
23
|
+
renderSubRows?: (props: {
|
|
24
|
+
rows: TCustomData[];
|
|
25
|
+
}) => ReactElement;
|
|
26
|
+
}
|
|
12
27
|
export declare const StyledTable: <TData extends {
|
|
13
28
|
id: string | number;
|
|
14
|
-
}, TCustomData = Record<string, unknown>>({ actions, columns, data, customSubRowData, initialState, enableRowSelection,
|
|
29
|
+
}, TCustomData = Record<string, unknown>>({ actions, autoSize, columns, data, customSubRowData, initialState, enableRowSelection, disableHeaderPin, loading, noRowsOverlay, tableInstanceRef, className, rowHeight, tdClassName, thClassName, getRowClassName, onRowClick, renderSubRows, ...rest }: StyledTableProps<TData, TCustomData>) => JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { type CellContext } from '@tanstack/react-table';
|
|
3
|
+
export declare function generateActionsColumn<TData>(options: {
|
|
4
|
+
disableHeaderPin?: boolean;
|
|
5
|
+
hasActions: boolean;
|
|
6
|
+
handleOpenPin: (event: React.MouseEvent<HTMLElement | SVGSVGElement>) => void;
|
|
7
|
+
handleOpenCellAction: (event: React.MouseEvent<HTMLElement | SVGSVGElement>, info: CellContext<TData, unknown>) => void;
|
|
8
|
+
}): import("@tanstack/react-table").ColumnDef<TData, unknown>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { CellContext, ColumnMeta, HeaderContext, Row
|
|
1
|
+
import type { CellContext, ColumnMeta, HeaderContext, Row } from '@tanstack/react-table';
|
|
2
2
|
import type { AccessorFn, ColumnDefTemplate } from '@tanstack/react-table';
|
|
3
3
|
import type { ColumnPinningColumnDef, ColumnSizingColumnDef, FiltersColumnDef, GroupingColumnDef, RowData, SortingColumnDef, VisibilityColumnDef } from '@tanstack/react-table';
|
|
4
|
-
import type { MouseEvent
|
|
4
|
+
import type { MouseEvent } from 'react';
|
|
5
5
|
declare module '@tanstack/react-table' {
|
|
6
6
|
interface ColumnDefExtensions<TData extends RowData, TValue = unknown> extends VisibilityColumnDef, ColumnPinningColumnDef, FiltersColumnDef<TData>, SortingColumnDef<TData>, GroupingColumnDef<TData, TValue>, ColumnSizingColumnDef {
|
|
7
7
|
className?: string;
|
|
@@ -15,36 +15,4 @@ declare module '@tanstack/react-table' {
|
|
|
15
15
|
meta?: ColumnMeta<TData, TValue>;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
export
|
|
19
|
-
locale?: 'no' | 'en';
|
|
20
|
-
height?: string | number;
|
|
21
|
-
actions?: (row: Row<TData>) => {
|
|
22
|
-
label: string;
|
|
23
|
-
className?: string;
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
hide?: boolean;
|
|
26
|
-
onClick?: (row: Row<TData>) => void;
|
|
27
|
-
}[];
|
|
28
|
-
customActionsNode?: (row: CellContext<TData, TData>) => ReactNode;
|
|
29
|
-
customSubRowData?: Map<string, TCustomData[]>;
|
|
30
|
-
headerPin?: boolean;
|
|
31
|
-
expandArrow?: boolean;
|
|
32
|
-
loading?: boolean;
|
|
33
|
-
noRowsOverlay?: ReactElement;
|
|
34
|
-
tableInstanceRef?: React.MutableRefObject<Table<TData> | null>;
|
|
35
|
-
className?: string;
|
|
36
|
-
rowHeight?: number;
|
|
37
|
-
tdClassName?: string;
|
|
38
|
-
focusable?: boolean;
|
|
39
|
-
stickyHeader?: boolean;
|
|
40
|
-
getRowClassName?: (row: Row<TData>) => string;
|
|
41
|
-
onRowClick?: (e: MouseEvent<HTMLTableRowElement, globalThis.MouseEvent>, row: Row<TData>) => void;
|
|
42
|
-
renderSubRows?: (props: {
|
|
43
|
-
rows: TCustomData[];
|
|
44
|
-
row: TData;
|
|
45
|
-
}) => ReactElement;
|
|
46
|
-
getRowSelectionIds?: (ids: string[]) => void;
|
|
47
|
-
}
|
|
48
|
-
export declare const SELECT_COLUMN_ID = "select";
|
|
49
|
-
export declare const EXPAND_COLUMN_ID = "expand-column-id";
|
|
50
|
-
export declare const ACTIONS_COLUMN_ID = "actions";
|
|
18
|
+
export type TableRowClickHandler<TData extends RowData> = (e: MouseEvent<HTMLTableRowElement, globalThis.MouseEvent>, row: Row<TData>) => void;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from './components/data-display/chip';
|
|
|
6
6
|
export * from './components/data-display/tooltip';
|
|
7
7
|
export * from './components/data-display/icons';
|
|
8
8
|
export * from './components/data-display/typography';
|
|
9
|
-
export * from './components/
|
|
9
|
+
export * from './components/data-grid';
|
|
10
10
|
export * from './components/feedback/dialog';
|
|
11
11
|
export * from './components/feedback/alert';
|
|
12
12
|
export * from './components/feedback/snack-bar';
|
|
@@ -17,12 +17,8 @@ export * from './components/inputs/input-field';
|
|
|
17
17
|
export * from './components/inputs/textarea';
|
|
18
18
|
export * from './components/inputs/rich-input';
|
|
19
19
|
export * from './components/inputs/select';
|
|
20
|
-
export * from './components/inputs/select-autocomplete';
|
|
21
20
|
export * from './components/inputs/slider';
|
|
22
21
|
export * from './components/inputs/switch';
|
|
23
|
-
export * from './components/inputs/radio-button';
|
|
24
|
-
export * from './components/pickers/date-picker';
|
|
25
|
-
export * from './components/pickers/time-picker';
|
|
26
22
|
export * from './components/miscellaneous/StyledFormControl';
|
|
27
23
|
export * from './components/miscellaneous/StyledFormControlLabel';
|
|
28
24
|
export * from './components/miscellaneous/StyledFormHelperText';
|
|
@@ -40,4 +36,3 @@ export * from './components/table';
|
|
|
40
36
|
export * from './components/utils/popover';
|
|
41
37
|
export * from './components/custom/widget/widget-title/StyledWidgetTitle';
|
|
42
38
|
export * from './components/custom/module/module-title/StyledModuleTitle';
|
|
43
|
-
export * from './components/filter-menu/StyledFilterMenu';
|