@tap-payments/os-micro-frontend-shared 0.1.367-test.1 → 0.1.367-test.1-test.2-test.3
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/build/components/Notifications/Notifications.d.ts +1 -0
- package/build/components/Notifications/Notifications.js +12 -0
- package/build/components/Notifications/index.d.ts +2 -0
- package/build/components/Notifications/index.js +2 -0
- package/build/components/TableHeader/FiltersRow.d.ts +1 -1
- package/build/components/TableHeader/FiltersRow.js +4 -2
- package/build/components/TableHeader/TableHeader.d.ts +1 -1
- package/build/components/TableHeader/TableHeader.js +2 -2
- package/build/components/TableHeader/TableView/CreateViewDialog.d.ts +3 -0
- package/build/components/TableHeader/TableView/CreateViewDialog.js +98 -0
- package/build/components/TableHeader/TableView/CustomViews.js +1 -1
- package/build/components/TableHeader/TableView/ViewsDropdown.d.ts +22 -0
- package/build/components/TableHeader/TableView/ViewsDropdown.js +137 -0
- package/build/components/TableHeader/TableView/ViewsManager.d.ts +29 -0
- package/build/components/TableHeader/TableView/ViewsManager.js +108 -0
- package/build/components/TableHeader/TableView/constants.d.ts +10 -0
- package/build/components/TableHeader/TableView/constants.js +10 -0
- package/build/components/TableHeader/TableView/data.d.ts +5 -0
- package/build/components/TableHeader/TableView/data.js +54 -0
- package/build/components/TableHeader/TableView/hooks.d.ts +25 -0
- package/build/components/TableHeader/TableView/hooks.js +79 -0
- package/build/components/TableHeader/TableView/index.d.ts +12 -3
- package/build/components/TableHeader/TableView/index.js +11 -3
- package/build/components/TableHeader/TableView/styles.d.ts +114 -0
- package/build/components/TableHeader/TableView/styles.js +399 -0
- package/build/components/TableHeader/TableView/types.d.ts +52 -0
- package/build/components/TableHeader/TableView/utils.d.ts +74 -0
- package/build/components/TableHeader/TableView/utils.js +234 -0
- package/build/components/TableHeader/type.d.ts +16 -0
- package/build/components/index.d.ts +1 -1
- package/build/components/index.js +1 -1
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +1 -0
- package/build/hooks/index.d.ts +0 -1
- package/build/hooks/index.js +0 -1
- package/build/types/appEvents.d.ts +1 -3
- package/build/types/appEvents.js +0 -1
- package/build/types/index.d.ts +0 -1
- package/build/types/index.js +0 -1
- package/package.json +2 -2
- package/build/components/Toaster/Toaster.d.ts +0 -1
- package/build/components/Toaster/Toaster.js +0 -12
- package/build/components/Toaster/index.d.ts +0 -2
- package/build/components/Toaster/index.js +0 -2
- package/build/hooks/useToast.d.ts +0 -12
- package/build/hooks/useToast.js +0 -43
- package/build/types/toast.d.ts +0 -16
- /package/build/components/{Toaster → Notifications}/style.d.ts +0 -0
- /package/build/components/{Toaster → Notifications}/style.js +0 -0
- /package/build/{types/toast.js → components/TableHeader/TableView/types.js} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ColumnViewProps } from '../../../types/index.js';
|
|
2
|
+
export { useSubMenu } from './hooks/useSubMenu';
|
|
3
|
+
export { useViewColumns } from './hooks/useViewColumns';
|
|
4
|
+
export { useColumnItem } from './hooks/useColumnItem';
|
|
5
|
+
export declare const useSubmenuHover: () => {
|
|
6
|
+
hoveredColumn: string | null;
|
|
7
|
+
anchorEl: HTMLElement | null;
|
|
8
|
+
openSubmenu: (columnName: string, element: HTMLElement) => void;
|
|
9
|
+
closeSubmenu: () => void;
|
|
10
|
+
cancelClose: () => void;
|
|
11
|
+
forceClose: () => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const useDialogPosition: (width: number, height: number, dialogWidth: number, dialogHeight: number) => {
|
|
14
|
+
position: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
18
|
+
resetPosition: () => void;
|
|
19
|
+
updatePosition: (x: number, y: number) => void;
|
|
20
|
+
};
|
|
21
|
+
export declare const useOriginalColumns: (defaultColumns: ColumnViewProps[]) => {
|
|
22
|
+
originalColumns: ColumnViewProps[];
|
|
23
|
+
saveOriginalState: () => void;
|
|
24
|
+
clearOriginalState: () => void;
|
|
25
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { useState, useRef, useCallback } from 'react';
|
|
2
|
+
import { SUBMENU_CLOSE_DELAY } from './constants';
|
|
3
|
+
export { useSubMenu } from './hooks/useSubMenu';
|
|
4
|
+
export { useViewColumns } from './hooks/useViewColumns';
|
|
5
|
+
export { useColumnItem } from './hooks/useColumnItem';
|
|
6
|
+
export const useSubmenuHover = () => {
|
|
7
|
+
const [hoveredColumn, setHoveredColumn] = useState(null);
|
|
8
|
+
const [anchorEl, setAnchorEl] = useState(null);
|
|
9
|
+
const closeTimeoutRef = useRef(null);
|
|
10
|
+
const openSubmenu = useCallback((columnName, element) => {
|
|
11
|
+
if (closeTimeoutRef.current) {
|
|
12
|
+
clearTimeout(closeTimeoutRef.current);
|
|
13
|
+
closeTimeoutRef.current = null;
|
|
14
|
+
}
|
|
15
|
+
setHoveredColumn(columnName);
|
|
16
|
+
setAnchorEl(element);
|
|
17
|
+
}, []);
|
|
18
|
+
const closeSubmenu = useCallback(() => {
|
|
19
|
+
closeTimeoutRef.current = setTimeout(() => {
|
|
20
|
+
setHoveredColumn(null);
|
|
21
|
+
setAnchorEl(null);
|
|
22
|
+
}, SUBMENU_CLOSE_DELAY);
|
|
23
|
+
}, []);
|
|
24
|
+
const cancelClose = useCallback(() => {
|
|
25
|
+
if (closeTimeoutRef.current) {
|
|
26
|
+
clearTimeout(closeTimeoutRef.current);
|
|
27
|
+
closeTimeoutRef.current = null;
|
|
28
|
+
}
|
|
29
|
+
}, []);
|
|
30
|
+
const forceClose = useCallback(() => {
|
|
31
|
+
if (closeTimeoutRef.current) {
|
|
32
|
+
clearTimeout(closeTimeoutRef.current);
|
|
33
|
+
closeTimeoutRef.current = null;
|
|
34
|
+
}
|
|
35
|
+
setHoveredColumn(null);
|
|
36
|
+
setAnchorEl(null);
|
|
37
|
+
}, []);
|
|
38
|
+
return {
|
|
39
|
+
hoveredColumn,
|
|
40
|
+
anchorEl,
|
|
41
|
+
openSubmenu,
|
|
42
|
+
closeSubmenu,
|
|
43
|
+
cancelClose,
|
|
44
|
+
forceClose,
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export const useDialogPosition = (width, height, dialogWidth, dialogHeight) => {
|
|
48
|
+
const [position, setPosition] = useState({
|
|
49
|
+
x: width / 2 - dialogWidth / 2,
|
|
50
|
+
y: height / 2 - dialogHeight / 2,
|
|
51
|
+
});
|
|
52
|
+
const resetPosition = useCallback(() => {
|
|
53
|
+
setPosition({
|
|
54
|
+
x: width / 2 - dialogWidth / 2,
|
|
55
|
+
y: height / 2 - dialogHeight / 2,
|
|
56
|
+
});
|
|
57
|
+
}, [width, height, dialogWidth, dialogHeight]);
|
|
58
|
+
const updatePosition = useCallback((x, y) => {
|
|
59
|
+
setPosition({ x, y });
|
|
60
|
+
}, []);
|
|
61
|
+
return { position, resetPosition, updatePosition };
|
|
62
|
+
};
|
|
63
|
+
export const useOriginalColumns = (defaultColumns) => {
|
|
64
|
+
const [originalColumns, setOriginalColumns] = useState([]);
|
|
65
|
+
const saveOriginalState = useCallback(() => {
|
|
66
|
+
setOriginalColumns(defaultColumns.map((col) => {
|
|
67
|
+
var _a;
|
|
68
|
+
return (Object.assign(Object.assign({}, col), { selected: col.selected, menuItems: (_a = col.menuItems) === null || _a === void 0 ? void 0 : _a.map((item) => (Object.assign(Object.assign({}, item), { selected: item.selected }))) }));
|
|
69
|
+
}));
|
|
70
|
+
}, [defaultColumns]);
|
|
71
|
+
const clearOriginalState = useCallback(() => {
|
|
72
|
+
setOriginalColumns([]);
|
|
73
|
+
}, []);
|
|
74
|
+
return {
|
|
75
|
+
originalColumns,
|
|
76
|
+
saveOriginalState,
|
|
77
|
+
clearOriginalState,
|
|
78
|
+
};
|
|
79
|
+
};
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export default
|
|
1
|
+
export { default } from './TableView';
|
|
2
|
+
export { default as TableView } from './TableView';
|
|
3
|
+
export { default as DefaultViews } from './DefaultViews';
|
|
4
|
+
export { default as CustomViews } from './CustomViews';
|
|
5
|
+
export { default as ViewsManager } from './ViewsManager';
|
|
6
|
+
export { default as ViewsDropdown } from './ViewsDropdown';
|
|
7
|
+
export { default as CreateViewDialog } from './CreateViewDialog';
|
|
8
|
+
export type { ViewMenuItem, ViewMode, CreateCustomViewDialogProps, LayoutSection, ColumnItem, FieldItem } from './types';
|
|
9
|
+
export { transformLayoutToColumns, getColumnsByMode, createCustomViewMenuItem, isDateColumn, getColumnCheckState } from './utils';
|
|
10
|
+
export { useSubmenuHover, useDialogPosition } from './hooks';
|
|
11
|
+
export { DIALOG_WIDTH, DIALOG_HEIGHT, MAX_CUSTOM_VIEWS, TEMPLATE_NAME_MAX_LENGTH } from './constants';
|
|
12
|
+
export { defaultViewList, advancedColumns, sheetColumns } from './data';
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export default
|
|
1
|
+
export { default } from './TableView';
|
|
2
|
+
export { default as TableView } from './TableView';
|
|
3
|
+
export { default as DefaultViews } from './DefaultViews';
|
|
4
|
+
export { default as CustomViews } from './CustomViews';
|
|
5
|
+
export { default as ViewsManager } from './ViewsManager';
|
|
6
|
+
export { default as ViewsDropdown } from './ViewsDropdown';
|
|
7
|
+
export { default as CreateViewDialog } from './CreateViewDialog';
|
|
8
|
+
export { transformLayoutToColumns, getColumnsByMode, createCustomViewMenuItem, isDateColumn, getColumnCheckState } from './utils';
|
|
9
|
+
export { useSubmenuHover, useDialogPosition } from './hooks';
|
|
10
|
+
export { DIALOG_WIDTH, DIALOG_HEIGHT, MAX_CUSTOM_VIEWS, TEMPLATE_NAME_MAX_LENGTH } from './constants';
|
|
11
|
+
export { defaultViewList, advancedColumns, sheetColumns } from './data';
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
+
export declare const ButtonStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
6
|
+
export declare const ViewWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
9
|
+
export declare const ListStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
12
|
+
export declare const DropdownStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
15
|
+
export declare const MenuItem: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
16
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
17
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
18
|
+
addColumnViewEl?: boolean | undefined;
|
|
19
|
+
}, {}, {}>;
|
|
20
|
+
export declare const Space: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
21
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
22
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
23
|
+
export declare const SpaceAfter: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
24
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
25
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
26
|
+
export declare const DialogContentWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
27
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
28
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
29
|
+
export declare const ScrollableContent: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
30
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
31
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
32
|
+
export declare const TitleSection: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
33
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
34
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
35
|
+
export declare const ColumnListContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
36
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
37
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
38
|
+
export declare const SelectAllHeader: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
39
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
40
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
41
|
+
export declare const ColumnItemRow: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
42
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
43
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
44
|
+
isHovered?: boolean | undefined;
|
|
45
|
+
isDate?: boolean | undefined;
|
|
46
|
+
}, {}, {}>;
|
|
47
|
+
export declare const DragIconWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
48
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
49
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
50
|
+
export declare const CheckboxWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
51
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
52
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
53
|
+
export declare const FooterBar: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
54
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
55
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
56
|
+
export declare const CreateButtonWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
57
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
58
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
59
|
+
export declare const SubmenuPaper: import("@emotion/styled").StyledComponent<import("@mui/material").PaperOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
60
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
61
|
+
}, "classes" | "className" | "style" | "children" | "sx" | "variant" | "square" | "elevation"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
62
|
+
export declare const SubmenuItem: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
63
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
64
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
65
|
+
export declare const DeleteButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
66
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
67
|
+
}, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
68
|
+
export declare const CreateButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
69
|
+
ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
70
|
+
}, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
71
|
+
export declare const NameTextField: import("@emotion/styled").StyledComponent<{
|
|
72
|
+
variant?: import("@mui/material").TextFieldVariants | undefined;
|
|
73
|
+
} & Omit<import("@mui/material").FilledTextFieldProps | import("@mui/material").OutlinedTextFieldProps | import("@mui/material").StandardTextFieldProps, "variant"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
74
|
+
export declare const checkboxSx: SxProps<Theme>;
|
|
75
|
+
export declare const getDialogPaperStyle: (width: number, height: number) => {
|
|
76
|
+
margin: number;
|
|
77
|
+
maxHeight: string;
|
|
78
|
+
maxWidth: string;
|
|
79
|
+
width: number;
|
|
80
|
+
height: number;
|
|
81
|
+
borderRadius: number;
|
|
82
|
+
overflow: string;
|
|
83
|
+
boxShadow: string;
|
|
84
|
+
};
|
|
85
|
+
export declare const dialogSx: {
|
|
86
|
+
backgroundColor: string;
|
|
87
|
+
pointerEvents: string;
|
|
88
|
+
'& .MuiDialog-paper': {
|
|
89
|
+
pointerEvents: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
export declare const ResetHeaderBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
93
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
94
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
95
|
+
export declare const ResetCheckboxSx: SxProps<Theme>;
|
|
96
|
+
export declare const SubmenuContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
97
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
98
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
99
|
+
export declare const ColumnItemsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
100
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
101
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
102
|
+
export declare const SaveCustomViewBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
103
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
104
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
105
|
+
export declare const SaveCustomViewInnerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
106
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
107
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
|
|
108
|
+
disabled?: boolean | undefined;
|
|
109
|
+
}, {}, {}>;
|
|
110
|
+
export declare const ButtonsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
111
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
112
|
+
}, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
|
113
|
+
export declare const CancelButtonSx: SxProps<Theme>;
|
|
114
|
+
export declare const OkayButtonSx: SxProps<Theme>;
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { Box, styled, Button, Paper, TextField } from '@mui/material';
|
|
2
|
+
export const ButtonStyled = styled(Box)(({ theme }) => ({
|
|
3
|
+
display: 'flex',
|
|
4
|
+
alignItems: 'center',
|
|
5
|
+
justifyContent: 'space-between',
|
|
6
|
+
borderRadius: '4px',
|
|
7
|
+
background: theme.palette.common.white,
|
|
8
|
+
padding: '8px',
|
|
9
|
+
border: '1px solid',
|
|
10
|
+
borderColor: theme.palette.divider,
|
|
11
|
+
gap: 8,
|
|
12
|
+
height: 32,
|
|
13
|
+
cursor: 'pointer',
|
|
14
|
+
'&:hover': {
|
|
15
|
+
border: '1px solid',
|
|
16
|
+
borderColor: theme.palette.info.dark,
|
|
17
|
+
boxShadow: theme.shadows[7],
|
|
18
|
+
},
|
|
19
|
+
}));
|
|
20
|
+
export const ViewWrapper = styled(Box)(({ theme }) => ({
|
|
21
|
+
background: theme.palette.common.white,
|
|
22
|
+
display: 'flex',
|
|
23
|
+
gap: theme.spacing(1),
|
|
24
|
+
alignItems: 'center',
|
|
25
|
+
color: theme.palette.text.primary,
|
|
26
|
+
fontSize: '11px',
|
|
27
|
+
fontWeight: theme.typography.fontWeightRegular,
|
|
28
|
+
textTransform: 'capitalize',
|
|
29
|
+
position: 'relative',
|
|
30
|
+
transition: '0.5s',
|
|
31
|
+
'&:after': {
|
|
32
|
+
content: '""',
|
|
33
|
+
position: 'absolute',
|
|
34
|
+
left: -8,
|
|
35
|
+
right: 0,
|
|
36
|
+
width: '100%',
|
|
37
|
+
height: '100%',
|
|
38
|
+
boxShadow: theme.shadows[11],
|
|
39
|
+
borderRadius: theme.spacing(0.5),
|
|
40
|
+
paddingInlineStart: theme.spacing(1),
|
|
41
|
+
paddingTop: '9px',
|
|
42
|
+
paddingBottom: '9px',
|
|
43
|
+
paddingInlineEnd: '9px',
|
|
44
|
+
zIndex: -1,
|
|
45
|
+
},
|
|
46
|
+
}));
|
|
47
|
+
export const ListStyled = styled(Box)(({ theme }) => ({
|
|
48
|
+
background: theme.palette.common.white,
|
|
49
|
+
borderRadius: theme.spacing(1),
|
|
50
|
+
boxShadow: theme.shadows[5],
|
|
51
|
+
border: '1px solid',
|
|
52
|
+
borderColor: theme.palette.divider,
|
|
53
|
+
zIndex: 5,
|
|
54
|
+
fontSize: '11px',
|
|
55
|
+
width: 192,
|
|
56
|
+
}));
|
|
57
|
+
export const DropdownStyled = styled(Box)(() => ({
|
|
58
|
+
minWidth: 160,
|
|
59
|
+
position: 'relative',
|
|
60
|
+
}));
|
|
61
|
+
export const MenuItem = styled(Box, { shouldForwardProp: (props) => props !== 'addColumnViewEl' })(({ theme }) => ({
|
|
62
|
+
padding: theme.spacing(1),
|
|
63
|
+
paddingInlineEnd: 2,
|
|
64
|
+
borderBottom: '1px solid',
|
|
65
|
+
borderColor: theme.palette.divider,
|
|
66
|
+
display: 'flex',
|
|
67
|
+
alignItems: 'center',
|
|
68
|
+
height: 32,
|
|
69
|
+
cursor: 'pointer',
|
|
70
|
+
img: {
|
|
71
|
+
height: 12,
|
|
72
|
+
},
|
|
73
|
+
'.check-icon': {
|
|
74
|
+
height: 'auto',
|
|
75
|
+
marginInlineEnd: theme.spacing(1),
|
|
76
|
+
},
|
|
77
|
+
'&:hover': {
|
|
78
|
+
color: theme.palette.info.dark,
|
|
79
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
80
|
+
},
|
|
81
|
+
'&.add-column': {
|
|
82
|
+
justifyContent: 'space-between',
|
|
83
|
+
paddingInlineEnd: theme.spacing(1),
|
|
84
|
+
position: 'relative',
|
|
85
|
+
border: 'none',
|
|
86
|
+
zIndex: 5,
|
|
87
|
+
borderBottom: '1px solid',
|
|
88
|
+
borderColor: theme.palette.divider,
|
|
89
|
+
borderTopRightRadius: theme.spacing(1),
|
|
90
|
+
borderTopLeftRadius: theme.spacing(1),
|
|
91
|
+
'&:hover': {
|
|
92
|
+
boxShadow: theme.shadows[6],
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
}));
|
|
96
|
+
export const Space = styled(Box)(({ theme }) => ({
|
|
97
|
+
width: 12,
|
|
98
|
+
marginInlineEnd: theme.spacing(1),
|
|
99
|
+
}));
|
|
100
|
+
export const SpaceAfter = styled(Box)(() => ({
|
|
101
|
+
width: 16,
|
|
102
|
+
}));
|
|
103
|
+
export const DialogContentWrapper = styled(Box)(({ theme }) => ({
|
|
104
|
+
display: 'flex',
|
|
105
|
+
flexDirection: 'column',
|
|
106
|
+
height: 'calc(100% - 32px)',
|
|
107
|
+
backgroundColor: theme.palette.background.paper,
|
|
108
|
+
position: 'relative',
|
|
109
|
+
}));
|
|
110
|
+
export const ScrollableContent = styled(Box)(() => ({
|
|
111
|
+
flex: 1,
|
|
112
|
+
overflowY: 'auto',
|
|
113
|
+
paddingLeft: 16,
|
|
114
|
+
paddingRight: 16,
|
|
115
|
+
paddingBottom: 64,
|
|
116
|
+
}));
|
|
117
|
+
export const TitleSection = styled(Box)(() => ({
|
|
118
|
+
padding: '24px 0',
|
|
119
|
+
display: 'flex',
|
|
120
|
+
justifyContent: 'space-between',
|
|
121
|
+
alignItems: 'center',
|
|
122
|
+
}));
|
|
123
|
+
export const ColumnListContainer = styled(Box)(({ theme }) => ({
|
|
124
|
+
border: '1px solid',
|
|
125
|
+
borderColor: theme.palette.divider,
|
|
126
|
+
borderRadius: '8px',
|
|
127
|
+
overflow: 'hidden',
|
|
128
|
+
display: 'flex',
|
|
129
|
+
flexDirection: 'column',
|
|
130
|
+
flex: 1,
|
|
131
|
+
minHeight: 0,
|
|
132
|
+
}));
|
|
133
|
+
export const SelectAllHeader = styled(Box)(({ theme }) => ({
|
|
134
|
+
display: 'flex',
|
|
135
|
+
alignItems: 'center',
|
|
136
|
+
padding: '12px',
|
|
137
|
+
borderBottom: '1px solid',
|
|
138
|
+
borderColor: theme.palette.divider,
|
|
139
|
+
backgroundColor: '#FAFAFA',
|
|
140
|
+
cursor: 'pointer',
|
|
141
|
+
'&:hover': {
|
|
142
|
+
backgroundColor: '#F0F0F0',
|
|
143
|
+
},
|
|
144
|
+
}));
|
|
145
|
+
export const ColumnItemRow = styled(Box, {
|
|
146
|
+
shouldForwardProp: (prop) => prop !== 'isHovered' && prop !== 'isDate',
|
|
147
|
+
})(({ theme, isHovered, isDate }) => ({
|
|
148
|
+
display: 'flex',
|
|
149
|
+
alignItems: 'center',
|
|
150
|
+
padding: '12px',
|
|
151
|
+
borderBottom: '1px solid',
|
|
152
|
+
borderColor: theme.palette.divider,
|
|
153
|
+
backgroundColor: isHovered ? theme.palette.action.hover : theme.palette.background.paper,
|
|
154
|
+
cursor: isDate ? 'default' : 'grab',
|
|
155
|
+
'&:hover': {
|
|
156
|
+
backgroundColor: isDate ? theme.palette.background.paper : theme.palette.action.hover,
|
|
157
|
+
},
|
|
158
|
+
'&:last-child': {
|
|
159
|
+
borderBottom: 'none',
|
|
160
|
+
},
|
|
161
|
+
}));
|
|
162
|
+
export const DragIconWrapper = styled(Box)(() => ({
|
|
163
|
+
width: 20,
|
|
164
|
+
height: 20,
|
|
165
|
+
marginRight: 8,
|
|
166
|
+
display: 'flex',
|
|
167
|
+
alignItems: 'center',
|
|
168
|
+
justifyContent: 'center',
|
|
169
|
+
flexShrink: 0,
|
|
170
|
+
}));
|
|
171
|
+
export const CheckboxWrapper = styled(Box)(() => ({
|
|
172
|
+
display: 'flex',
|
|
173
|
+
alignItems: 'center',
|
|
174
|
+
justifyContent: 'center',
|
|
175
|
+
padding: 0,
|
|
176
|
+
width: 18,
|
|
177
|
+
height: 18,
|
|
178
|
+
minWidth: 18,
|
|
179
|
+
minHeight: 18,
|
|
180
|
+
flexShrink: 0,
|
|
181
|
+
}));
|
|
182
|
+
export const FooterBar = styled(Box)(({ theme }) => ({
|
|
183
|
+
position: 'absolute',
|
|
184
|
+
bottom: 0,
|
|
185
|
+
left: 0,
|
|
186
|
+
right: 0,
|
|
187
|
+
height: 35,
|
|
188
|
+
backgroundColor: '#F8F9FB',
|
|
189
|
+
borderTop: '1px solid',
|
|
190
|
+
borderColor: theme.palette.divider,
|
|
191
|
+
}));
|
|
192
|
+
export const CreateButtonWrapper = styled(Box)(() => ({
|
|
193
|
+
position: 'absolute',
|
|
194
|
+
bottom: 12,
|
|
195
|
+
right: 16,
|
|
196
|
+
padding: 6,
|
|
197
|
+
backgroundColor: 'white',
|
|
198
|
+
}));
|
|
199
|
+
export const SubmenuPaper = styled(Paper)(() => ({
|
|
200
|
+
paddingTop: 4,
|
|
201
|
+
paddingBottom: 4,
|
|
202
|
+
minWidth: 180,
|
|
203
|
+
boxShadow: '0 4px 12px rgba(0,0,0,0.15)',
|
|
204
|
+
borderRadius: '8px',
|
|
205
|
+
}));
|
|
206
|
+
export const SubmenuItem = styled(Box)(({ theme }) => ({
|
|
207
|
+
display: 'flex',
|
|
208
|
+
alignItems: 'center',
|
|
209
|
+
padding: '8px 12px',
|
|
210
|
+
cursor: 'pointer',
|
|
211
|
+
'&:hover': {
|
|
212
|
+
backgroundColor: theme.palette.action.hover,
|
|
213
|
+
},
|
|
214
|
+
}));
|
|
215
|
+
export const DeleteButton = styled(Button)(() => ({
|
|
216
|
+
color: '#FF0000',
|
|
217
|
+
textTransform: 'none',
|
|
218
|
+
fontSize: 10,
|
|
219
|
+
fontWeight: 500,
|
|
220
|
+
borderRadius: '4px',
|
|
221
|
+
border: '1px solid #F4F4F4',
|
|
222
|
+
paddingLeft: 8,
|
|
223
|
+
paddingRight: 8,
|
|
224
|
+
paddingTop: 4,
|
|
225
|
+
paddingBottom: 4,
|
|
226
|
+
'&:hover': {
|
|
227
|
+
backgroundColor: 'transparent',
|
|
228
|
+
},
|
|
229
|
+
}));
|
|
230
|
+
export const CreateButton = styled(Button)(({ theme }) => ({
|
|
231
|
+
fontSize: 9,
|
|
232
|
+
fontWeight: 600,
|
|
233
|
+
borderRadius: 4,
|
|
234
|
+
paddingLeft: 20,
|
|
235
|
+
paddingRight: 20,
|
|
236
|
+
paddingTop: 8,
|
|
237
|
+
paddingBottom: 8,
|
|
238
|
+
textTransform: 'none',
|
|
239
|
+
backgroundColor: '#1F88D0',
|
|
240
|
+
'&:hover': {
|
|
241
|
+
backgroundColor: '#1A7BC0',
|
|
242
|
+
},
|
|
243
|
+
'&.Mui-disabled': {
|
|
244
|
+
backgroundColor: theme.palette.grey[300],
|
|
245
|
+
color: theme.palette.grey[500],
|
|
246
|
+
},
|
|
247
|
+
}));
|
|
248
|
+
export const NameTextField = styled(TextField)(({ theme }) => ({
|
|
249
|
+
'& .MuiFilledInput-root': {
|
|
250
|
+
borderRadius: '8px',
|
|
251
|
+
backgroundColor: theme.palette.background.paper,
|
|
252
|
+
border: '1px solid',
|
|
253
|
+
borderColor: theme.palette.divider,
|
|
254
|
+
'&:hover': {
|
|
255
|
+
backgroundColor: theme.palette.background.paper,
|
|
256
|
+
},
|
|
257
|
+
'&.Mui-focused': {
|
|
258
|
+
backgroundColor: theme.palette.background.paper,
|
|
259
|
+
},
|
|
260
|
+
'&::before, &::after': {
|
|
261
|
+
display: 'none',
|
|
262
|
+
},
|
|
263
|
+
},
|
|
264
|
+
}));
|
|
265
|
+
export const checkboxSx = {
|
|
266
|
+
display: 'flex',
|
|
267
|
+
alignItems: 'center',
|
|
268
|
+
justifyContent: 'center',
|
|
269
|
+
padding: 0,
|
|
270
|
+
width: 18,
|
|
271
|
+
height: 18,
|
|
272
|
+
minWidth: 18,
|
|
273
|
+
minHeight: 18,
|
|
274
|
+
flexShrink: 0,
|
|
275
|
+
color: 'grey.A400',
|
|
276
|
+
'&.Mui-checked': {
|
|
277
|
+
color: 'info.dark',
|
|
278
|
+
},
|
|
279
|
+
'&.MuiCheckbox-indeterminate': {
|
|
280
|
+
color: 'info.dark',
|
|
281
|
+
},
|
|
282
|
+
'&.Mui-disabled.Mui-checked': {
|
|
283
|
+
color: 'grey.500',
|
|
284
|
+
'& .MuiSvgIcon-root': {
|
|
285
|
+
backgroundColor: 'grey.500',
|
|
286
|
+
borderRadius: '3px',
|
|
287
|
+
color: '#fff',
|
|
288
|
+
},
|
|
289
|
+
},
|
|
290
|
+
'& .MuiSvgIcon-root': {
|
|
291
|
+
width: 18,
|
|
292
|
+
height: 18,
|
|
293
|
+
},
|
|
294
|
+
'& img': {
|
|
295
|
+
width: 14,
|
|
296
|
+
height: 14,
|
|
297
|
+
},
|
|
298
|
+
};
|
|
299
|
+
export const getDialogPaperStyle = (width, height) => ({
|
|
300
|
+
margin: 0,
|
|
301
|
+
maxHeight: '90vh',
|
|
302
|
+
maxWidth: 'none',
|
|
303
|
+
width,
|
|
304
|
+
height,
|
|
305
|
+
borderRadius: 12,
|
|
306
|
+
overflow: 'hidden',
|
|
307
|
+
boxShadow: '0px 8px 32px rgba(0, 0, 0, 0.15)',
|
|
308
|
+
});
|
|
309
|
+
export const dialogSx = {
|
|
310
|
+
backgroundColor: 'transparent',
|
|
311
|
+
pointerEvents: 'none',
|
|
312
|
+
'& .MuiDialog-paper': {
|
|
313
|
+
pointerEvents: 'auto',
|
|
314
|
+
},
|
|
315
|
+
};
|
|
316
|
+
export const ResetHeaderBox = styled(Box)(({ theme }) => ({
|
|
317
|
+
display: 'flex',
|
|
318
|
+
alignItems: 'center',
|
|
319
|
+
justifyContent: 'space-between',
|
|
320
|
+
paddingLeft: theme.spacing(1.5),
|
|
321
|
+
paddingRight: theme.spacing(1.5),
|
|
322
|
+
paddingTop: theme.spacing(1),
|
|
323
|
+
paddingBottom: theme.spacing(1),
|
|
324
|
+
cursor: 'pointer',
|
|
325
|
+
'&:hover': {
|
|
326
|
+
backgroundColor: theme.palette.action.hover,
|
|
327
|
+
},
|
|
328
|
+
}));
|
|
329
|
+
export const ResetCheckboxSx = {
|
|
330
|
+
p: 0,
|
|
331
|
+
width: 14,
|
|
332
|
+
height: 14,
|
|
333
|
+
minWidth: 14,
|
|
334
|
+
minHeight: 14,
|
|
335
|
+
'&.Mui-checked': { color: 'info.dark' },
|
|
336
|
+
'&.MuiCheckbox-indeterminate': { color: 'info.dark' },
|
|
337
|
+
'& .MuiSvgIcon-root': { width: 14, height: 14 },
|
|
338
|
+
};
|
|
339
|
+
export const SubmenuContainer = styled(Box)(() => ({
|
|
340
|
+
minWidth: 200,
|
|
341
|
+
}));
|
|
342
|
+
export const ColumnItemsContainer = styled(Box)(() => ({
|
|
343
|
+
maxHeight: 300,
|
|
344
|
+
overflowY: 'auto',
|
|
345
|
+
paddingLeft: 6,
|
|
346
|
+
paddingRight: 6,
|
|
347
|
+
}));
|
|
348
|
+
export const SaveCustomViewBox = styled(Box)(() => ({
|
|
349
|
+
paddingLeft: 8,
|
|
350
|
+
paddingRight: 8,
|
|
351
|
+
paddingTop: 8,
|
|
352
|
+
paddingBottom: 8,
|
|
353
|
+
}));
|
|
354
|
+
export const SaveCustomViewInnerBox = styled(Box)(({ disabled }) => ({
|
|
355
|
+
width: '100%',
|
|
356
|
+
borderRadius: '8px',
|
|
357
|
+
backgroundColor: '#1F88D00D',
|
|
358
|
+
padding: '8px',
|
|
359
|
+
marginLeft: 6,
|
|
360
|
+
marginRight: 6,
|
|
361
|
+
display: 'flex',
|
|
362
|
+
flexDirection: 'column',
|
|
363
|
+
gap: '6px',
|
|
364
|
+
cursor: disabled ? 'not-allowed' : 'pointer',
|
|
365
|
+
opacity: disabled ? 0.5 : 1,
|
|
366
|
+
}));
|
|
367
|
+
export const ButtonsContainer = styled(Box)(() => ({
|
|
368
|
+
display: 'flex',
|
|
369
|
+
justifyContent: 'flex-end',
|
|
370
|
+
gap: 12,
|
|
371
|
+
paddingTop: 8,
|
|
372
|
+
paddingBottom: 8,
|
|
373
|
+
paddingLeft: 12,
|
|
374
|
+
paddingRight: 12,
|
|
375
|
+
}));
|
|
376
|
+
export const CancelButtonSx = {
|
|
377
|
+
fontSize: 11,
|
|
378
|
+
fontWeight: 400,
|
|
379
|
+
textTransform: 'none',
|
|
380
|
+
color: 'text.primary',
|
|
381
|
+
minWidth: 80,
|
|
382
|
+
height: 38,
|
|
383
|
+
borderRadius: '8px',
|
|
384
|
+
border: '1px solid #F2F2F2',
|
|
385
|
+
};
|
|
386
|
+
export const OkayButtonSx = {
|
|
387
|
+
fontSize: 11,
|
|
388
|
+
fontWeight: 500,
|
|
389
|
+
textTransform: 'none',
|
|
390
|
+
backgroundColor: '#1F88D0',
|
|
391
|
+
minWidth: 80,
|
|
392
|
+
height: 38,
|
|
393
|
+
borderRadius: '8px',
|
|
394
|
+
boxShadow: 'none',
|
|
395
|
+
'&:hover': {
|
|
396
|
+
backgroundColor: '#1976B8',
|
|
397
|
+
boxShadow: 'none',
|
|
398
|
+
},
|
|
399
|
+
};
|