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.
Files changed (93) hide show
  1. package/dist/asma-core-ui.es.js +21 -22
  2. package/dist/src/components/data-display/badge/StyledBadge.d.ts +1 -4
  3. package/dist/src/components/data-display/chip/StyledChip.d.ts +1 -4
  4. package/dist/src/components/data-display/icons/index.d.ts +0 -5
  5. package/dist/src/components/feedback/dialog/StyledDialog.d.ts +1 -2
  6. package/dist/src/components/feedback/snack-bar/index.d.ts +0 -2
  7. package/dist/src/components/inputs/button/StyledButton.d.ts +3 -3
  8. package/dist/src/components/inputs/checkbox/StyledCheckbox.d.ts +1 -4
  9. package/dist/src/components/inputs/checkbox/StyledCheckbox.stories.d.ts +14 -0
  10. package/dist/src/components/inputs/date-picker/StyledCalendarPicker.d.ts +4 -0
  11. package/dist/src/components/{pickers/date-picker/types.d.ts → inputs/date-picker/StyledDatePicker.d.ts} +2 -10
  12. package/dist/src/components/inputs/input/StyledInput.d.ts +10 -6
  13. package/dist/src/components/inputs/input-field/StyledInputField.d.ts +1 -7
  14. package/dist/src/components/inputs/input-field/index.d.ts +0 -1
  15. package/dist/src/components/inputs/rich-input/RichInput.d.ts +0 -1
  16. package/dist/src/components/inputs/select/StyledSelect.d.ts +3 -10
  17. package/dist/src/components/inputs/select/index.d.ts +0 -1
  18. package/dist/src/components/inputs/slider/StyledSlider.d.ts +1 -4
  19. package/dist/src/components/inputs/switch/StyledSwitch.d.ts +1 -3
  20. package/dist/src/components/navigation/menu/index.d.ts +0 -1
  21. package/dist/src/components/table/StyledTable.d.ts +27 -12
  22. package/dist/src/components/table/components/columns/actionColumn.d.ts +8 -0
  23. package/dist/src/components/table/components/columns/widthStabilizer.d.ts +6 -0
  24. package/dist/src/components/table/index.d.ts +1 -1
  25. package/dist/src/components/table/types.d.ts +3 -35
  26. package/dist/src/index.d.ts +1 -6
  27. package/dist/style.css +2 -2
  28. package/dist/tailwind.config.d.ts +2 -0
  29. package/package.json +1 -1
  30. package/dist/src/components/data-display/icons/delete-outline-icon/DeleteOutlineIcon.d.ts +0 -3
  31. package/dist/src/components/data-display/icons/delete-outline-icon/index.d.ts +0 -1
  32. package/dist/src/components/data-display/icons/drag-horizontal-icon/DragHorizontalIcon.d.ts +0 -3
  33. package/dist/src/components/data-display/icons/drag-horizontal-icon/index.d.ts +0 -1
  34. package/dist/src/components/data-display/icons/file-pdf-icon/FilePdfIcon.d.ts +0 -3
  35. package/dist/src/components/data-display/icons/file-pdf-icon/index.d.ts +0 -1
  36. package/dist/src/components/data-display/icons/filter-icon/FilterIcon.d.ts +0 -3
  37. package/dist/src/components/data-display/icons/filter-icon/index.d.ts +0 -1
  38. package/dist/src/components/data-display/icons/lock-icon/LockIcon.d.ts +0 -3
  39. package/dist/src/components/data-display/icons/lock-icon/index.d.ts +0 -1
  40. package/dist/src/components/feedback/snack-bar/components/StyledInfoSnackbar.d.ts +0 -12
  41. package/dist/src/components/feedback/snack-bar/components/processMessageError.d.ts +0 -3
  42. package/dist/src/components/feedback/snack-bar/components/processMessageInfo.d.ts +0 -3
  43. package/dist/src/components/feedback/snack-bar/components/types.d.ts +0 -10
  44. package/dist/src/components/feedback/snack-bar/components-styled/InfoMessages.d.ts +0 -2
  45. package/dist/src/components/feedback/snack-bar/message.d.ts +0 -17
  46. package/dist/src/components/feedback/snack-bar/processInfoSnackbar.d.ts +0 -1
  47. package/dist/src/components/filter-menu/StyledFilterMenu.d.ts +0 -13
  48. package/dist/src/components/inputs/input-field/story/components/StyledInputFieldExample.d.ts +0 -2
  49. package/dist/src/components/inputs/radio-button/StyledRadio.d.ts +0 -4
  50. package/dist/src/components/inputs/radio-button/StyledRadioGroup.d.ts +0 -4
  51. package/dist/src/components/inputs/radio-button/index.d.ts +0 -2
  52. package/dist/src/components/inputs/select/story/components/StyledSelectExample.d.ts +0 -2
  53. package/dist/src/components/inputs/select-autocomplete/StyledSelectAutocomplete.d.ts +0 -11
  54. package/dist/src/components/inputs/select-autocomplete/index.d.ts +0 -1
  55. package/dist/src/components/inputs/select-autocomplete/story/components/StyledSelectAutocompleteExample.d.ts +0 -2
  56. package/dist/src/components/pickers/date-picker/StyledDatePicker.d.ts +0 -2
  57. package/dist/src/components/pickers/date-picker/components/DefaultInput.d.ts +0 -5
  58. package/dist/src/components/pickers/date-picker/components/RangeInput.d.ts +0 -5
  59. package/dist/src/components/pickers/date-picker/components/StyledCalendarPicker.d.ts +0 -8
  60. package/dist/src/components/pickers/date-picker/components/StyledCalendarPickerCaption.d.ts +0 -7
  61. package/dist/src/components/pickers/date-picker/components/StyledCalendarPickerFooter.d.ts +0 -10
  62. package/dist/src/components/pickers/date-picker/components/StyledCalendarPickerSelectMonth.d.ts +0 -3
  63. package/dist/src/components/pickers/date-picker/components/StyledCalendarPickerSelectYear.d.ts +0 -3
  64. package/dist/src/components/pickers/date-picker/helpers.d.ts +0 -3
  65. package/dist/src/components/pickers/date-picker/story/components/DatePickerContainer.d.ts +0 -5
  66. package/dist/src/components/pickers/date-picker/story/components/DefaultPickerExample.d.ts +0 -2
  67. package/dist/src/components/pickers/date-picker/story/components/NestedRangePickerExample.d.ts +0 -2
  68. package/dist/src/components/pickers/date-picker/story/components/RangePickerExample.d.ts +0 -2
  69. package/dist/src/components/pickers/time-picker/StyledTimePicker.d.ts +0 -16
  70. package/dist/src/components/pickers/time-picker/components/TimePickerBody.d.ts +0 -5
  71. package/dist/src/components/pickers/time-picker/components/TimePickerColumn.d.ts +0 -6
  72. package/dist/src/components/pickers/time-picker/index.d.ts +0 -1
  73. package/dist/src/components/table/components/TableHeader.d.ts +0 -6
  74. package/dist/src/components/table/components/TablePagination.d.ts +0 -6
  75. package/dist/src/components/table/components/columns/action-column/actionColumn.d.ts +0 -21
  76. package/dist/src/components/table/components/columns/action-column/components/HeaderActionMenu.d.ts +0 -5
  77. package/dist/src/components/table/components/columns/action-column/components/RowActionMenu.d.ts +0 -12
  78. package/dist/src/components/table/components/columns/expandColumn.d.ts +0 -10
  79. package/dist/src/components/table/components/columns/injectColumns.d.ts +0 -2
  80. package/dist/src/components/table/components/columns/selectColumn.d.ts +0 -8
  81. package/dist/src/components/table/story/components/useTableColumns.d.ts +0 -10
  82. package/dist/src/helpers/date.helpers.d.ts +0 -2
  83. package/dist/src/hooks/useWindowWidthSize.hook.d.ts +0 -5
  84. /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/StyledDataGrid.d.ts +0 -0
  85. /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/StyledGridActionsCellItem.d.ts +0 -0
  86. /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/components/ColumnFormControlItem.d.ts +0 -0
  87. /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/components/ColumnsMenu.d.ts +0 -0
  88. /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/components/columnActions.d.ts +0 -0
  89. /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/index.d.ts +0 -0
  90. /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/types.d.ts +0 -0
  91. /package/dist/src/components/{table/__deprecated-data-grid → data-grid}/x-data-grid-types.d.ts +0 -0
  92. /package/dist/src/components/{pickers → inputs}/date-picker/index.d.ts +0 -0
  93. /package/dist/src/{hooks/useToggleMenuVisibility.hook.d.ts → components/table/useToggleMenuVisibility.d.ts} +0 -0
@@ -1,5 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { type BadgeProps } from '@mui/material';
3
- export declare const StyledBadge: React.FC<BadgeProps & {
4
- dataTest: string;
5
- }>;
2
+ export declare const StyledBadge: ({ color, ...props }: BadgeProps) => JSX.Element;
@@ -1,5 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { type ChipProps } from '@mui/material';
3
- export declare const StyledChip: React.FC<ChipProps & {
4
- dataTest: string;
5
- }>;
2
+ export declare const StyledChip: (props: ChipProps) => JSX.Element;
@@ -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: React.FC<IStyledDialogProps>;
7
+ export declare const StyledDialog: ({ onCloseText, children, onClose, showCloseIcon, ...rest }: IStyledDialogProps) => JSX.Element;
@@ -2,5 +2,3 @@ export * from './SnackbarProvider';
2
2
  export { enqueueSnackbar, closeSnackbar, useSnackbar } from 'notistack';
3
3
  export * from './StyledSnackbar';
4
4
  export * from './processAlertSnackBar';
5
- export * from './processInfoSnackbar';
6
- export * from './message';
@@ -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' | 'medium';
5
+ size?: 'large' | 'small';
6
6
  startIcon?: ReactNode;
7
7
  endIcon?: ReactNode;
8
- dataTest: string;
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' | 'medium'
28
+ * @param size - 'large' | 'small'
29
29
  * @param startIcon - ReactNode
30
30
  * @param endIcon - ReactNode
31
31
  * @param error - boolean
@@ -1,5 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { type CheckboxProps } from '@mui/material';
3
- export declare const StyledCheckbox: React.FC<CheckboxProps & {
4
- dataTest: string;
5
- }>;
2
+ export declare const StyledCheckbox: (props: CheckboxProps) => JSX.Element;
@@ -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;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DayPicker } from 'react-day-picker';
3
+ export type CalendarProps = React.ComponentProps<typeof DayPicker>;
4
+ export declare const StyledCalendarPicker: ({ showOutsideDays, ...props }: CalendarProps) => JSX.Element;
@@ -1,21 +1,14 @@
1
- /// <reference types="react" />
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
- * @deprecated The input should not be used, use ->> StyledInputField
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: React.FC<TextFieldProps & {
11
- allowClear?: boolean;
12
- onClear?: () => void;
13
- dataTest: string;
14
- }>;
8
+ export declare const StyledInputField: (props: TextFieldProps) => JSX.Element;
@@ -1,2 +1 @@
1
1
  export * from './StyledInputField';
2
- export { type TextFieldProps } from '@mui/material';
@@ -7,7 +7,6 @@ export interface IRichInput extends ReactQuill.ReactQuillProps {
7
7
  error?: string;
8
8
  is_error?: boolean;
9
9
  is_warning?: boolean;
10
- dataTest?: string;
11
10
  }
12
11
  declare const RichInput: FC<IRichInput>;
13
12
  export { RichInput };
@@ -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: React.FC<SelectProps & {
16
- allowClear?: boolean;
17
- dataTest: string;
18
- }>;
9
+ export declare const StyledSelect: (props: SelectProps<unknown> & {
10
+ reflink?: import("react").RefObject<unknown> | ((instance: unknown) => void) | null | undefined;
11
+ }) => JSX.Element;
@@ -1,3 +1,2 @@
1
1
  export * from './StyledSelect';
2
2
  export * from './StyledSelectItem';
3
- export { type SelectChangeEvent } from '@mui/material';
@@ -1,5 +1,2 @@
1
1
  import { type SliderProps } from '@mui/material';
2
- export interface StyledSliderProps extends SliderProps {
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: ({ dataTest, ...props }: _SwitchProps & {
4
- dataTest: string;
5
- }) => JSX.Element;
3
+ export declare const StyledSwitch: (props: SwitchProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
1
  export * from './StyledMenu';
2
2
  export * from './StyledMenuItem';
3
3
  export * from './StyledMenuList';
4
- export { type MenuProps } from '@mui/material';
@@ -1,14 +1,29 @@
1
- import { type StyledTableProps } from './types';
2
- /**
3
- *
4
- * Custom props:
5
- * @param size: Column sizing. use NaN (width 100%) - only one time for the main column. It will make the column very responsive.. Example is in Storybook.
6
- *
7
- * If you have a very long data, like descriptions. use input to render long strings instead of div. Example is in Storybook.
8
- *
9
- * @param focusable: Used for controlling the focus of rows. If set to true, the tabIndex={0} attribute will be added to each table row. Used, for example, when adding a new item to scroll to it and focus it
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, headerPin, loading, noRowsOverlay, tableInstanceRef, className, rowHeight, tdClassName, getRowClassName, onRowClick, renderSubRows, customActionsNode, focusable, stickyHeader, expandArrow, height, locale, ...rest }: StyledTableProps<TData, TCustomData>) => JSX.Element;
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>;
@@ -0,0 +1,6 @@
1
+ export declare function widthStabilizer(): {
2
+ id: string;
3
+ header: string;
4
+ cell: () => null;
5
+ size: number;
6
+ };
@@ -1,3 +1,3 @@
1
1
  export * from './types';
2
2
  export * from './StyledTable';
3
- export { createColumnHelper, type Table, type Row, type ColumnDef } from '@tanstack/react-table';
3
+ export { createColumnHelper, type Table } from '@tanstack/react-table';
@@ -1,7 +1,7 @@
1
- import type { CellContext, ColumnMeta, HeaderContext, Row, TableOptions, Table } from '@tanstack/react-table';
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, ReactElement, ReactNode } from 'react';
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 interface StyledTableProps<TData, TCustomData> extends Omit<TableOptions<TData>, 'getCoreRowModel' | 'getExpandedRowModel' | 'getFilteredRowModel' | 'getSortedRowModel'> {
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;
@@ -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/table/__deprecated-data-grid';
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';