@mdtl/uikit 0.0.51 → 0.0.53

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.
@@ -0,0 +1,77 @@
1
+ import { CSSProperties } from '@mui/material/styles';
2
+ import { default as React } from 'react';
3
+ import { IHashMap, IHeadCell, THeadCellType } from '../interfaces/interfaces';
4
+ export declare function getCellContentByType<T>(type: THeadCellType, value: T): string | T | React.JSX.Element;
5
+ export declare const actionsShadow: {
6
+ content: string;
7
+ width: number;
8
+ height: string;
9
+ position: string;
10
+ right: string;
11
+ top: number;
12
+ background: string;
13
+ };
14
+ export declare const itemActionsStyle: {
15
+ position: string;
16
+ right: number;
17
+ top: number;
18
+ display: string;
19
+ alignItems: string;
20
+ justifyContent: string;
21
+ zIndex: number;
22
+ '&:before': {
23
+ content: string;
24
+ width: number;
25
+ height: string;
26
+ position: string;
27
+ right: string;
28
+ top: number;
29
+ background: string;
30
+ };
31
+ };
32
+ export declare const stickyStyle: {
33
+ position: string;
34
+ top: number;
35
+ background: string;
36
+ };
37
+ /**
38
+ * Обработка колонок для таблицы десктоп/адаптив
39
+ * @param columns
40
+ * @param adaptive
41
+ */
42
+ export declare const getTableColumns: <TData>(columns: IHeadCell<TData>[], adaptive: boolean) => {
43
+ columns: unknown;
44
+ header: string;
45
+ label: string;
46
+ field: string;
47
+ editable?: boolean;
48
+ editTemplate?: (row: TData, props: IHashMap) => React.JSX.Element;
49
+ fixed?: boolean;
50
+ hiddenSelect?: boolean;
51
+ hidden?: boolean;
52
+ type?: THeadCellType;
53
+ sorting?: boolean;
54
+ width?: number;
55
+ folder?: import('../interfaces/interfaces').ICellFolderCfg;
56
+ disablePadding?: boolean;
57
+ template?: (row: TData, props: TData) => React.JSX.Element;
58
+ backgroundColorCallback?: (row: TData) => string | undefined;
59
+ isLast?: boolean;
60
+ }[];
61
+ export declare const getCommonPinningStyles: (column: any, isHeader?: boolean, hasShadow?: boolean) => CSSProperties;
62
+ export declare const dragOverlayStyle: {
63
+ padding: string;
64
+ background: string;
65
+ borderRadius: string;
66
+ height: number;
67
+ boxShadow: (theme: any) => any;
68
+ cursor: string;
69
+ whiteSpace: string;
70
+ opacity: number;
71
+ };
72
+ /**
73
+ * Получение элемента таблицы по id. Работает с плоским списком/деревом
74
+ * @param data
75
+ * @param id
76
+ */
77
+ export declare function getTableItemById(data: IHashMap[], id: string): IHashMap;
package/dist/index.d.ts CHANGED
@@ -18,6 +18,8 @@ export { CustomSwitch } from './components/CustomSwitch/CustomSwitch';
18
18
  export { LoadingIndicator } from './components/LoadingIndicator/LoadingIndicator';
19
19
  export { Snackbar } from './components/Snackbar/Snackbar';
20
20
  export { Stepper } from './components/Stepper/Stepper';
21
+ export { BasicTable } from './components/Table/BasicTable';
22
+ export * from './components/Table/interfaces/interfaces';
21
23
  export { AutocompleteSelect } from './components/AutocompleteSelect/AutocompleteSelect';
22
24
  export type { Option, IAutocompleteSelectProps } from './components/AutocompleteSelect/interfaces';
23
25
  export * from './components/AutocompleteSelect/utils';