@tap-payments/os-micro-frontend-shared 0.1.373-test.1 → 0.1.374-test.1

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 (71) hide show
  1. package/build/components/FilterDropdown/FilterDropdown.d.ts +11 -4
  2. package/build/components/FilterDropdown/FilterDropdown.js +18 -4
  3. package/build/components/FilterDropdown/style.js +1 -1
  4. package/build/components/MultiDatakeyDonut/MultiDatakeyDonut.d.ts +12 -0
  5. package/build/components/MultiDatakeyDonut/MultiDatakeyDonut.js +19 -0
  6. package/build/components/MultiDatakeyDonut/index.d.ts +1 -0
  7. package/build/components/MultiDatakeyDonut/index.js +1 -0
  8. package/build/components/MultiDatakeyDonut/style.d.ts +10 -0
  9. package/build/components/MultiDatakeyDonut/style.js +23 -0
  10. package/build/components/RangeCalender/RangeCalender.js +4 -2
  11. package/build/components/Sandbox/style.js +2 -3
  12. package/build/components/TableHeader/FiltersRow.d.ts +1 -1
  13. package/build/components/TableHeader/FiltersRow.js +2 -4
  14. package/build/components/TableHeader/TableHeader.d.ts +1 -1
  15. package/build/components/TableHeader/TableHeader.js +2 -2
  16. package/build/components/TableHeader/TableView/CustomViews.js +1 -1
  17. package/build/components/TableHeader/TableView/TableView.js +1 -0
  18. package/build/components/TableHeader/TableView/hooks/index.d.ts +0 -6
  19. package/build/components/TableHeader/TableView/hooks/index.js +0 -6
  20. package/build/components/TableHeader/TableView/index.d.ts +3 -12
  21. package/build/components/TableHeader/TableView/index.js +3 -13
  22. package/build/components/TableHeader/type.d.ts +1 -21
  23. package/build/components/Toolbar/Toolbar.js +1 -1
  24. package/build/components/index.d.ts +1 -0
  25. package/build/components/index.js +1 -0
  26. package/build/constants/apps.js +2 -0
  27. package/build/constants/assets.d.ts +2 -1
  28. package/build/constants/assets.js +2 -1
  29. package/build/types/index.d.ts +1 -0
  30. package/build/types/index.js +1 -0
  31. package/build/types/reports.d.ts +21 -0
  32. package/build/types/toggleOptions.d.ts +2 -0
  33. package/build/utils/date.d.ts +5 -0
  34. package/build/utils/date.js +37 -0
  35. package/package.json +1 -1
  36. package/build/components/TableHeader/TableView/CreateViewDialog.d.ts +0 -3
  37. package/build/components/TableHeader/TableView/CreateViewDialog.js +0 -92
  38. package/build/components/TableHeader/TableView/ViewSelector.d.ts +0 -5
  39. package/build/components/TableHeader/TableView/ViewSelector.js +0 -44
  40. package/build/components/TableHeader/TableView/ViewsDropdown.d.ts +0 -5
  41. package/build/components/TableHeader/TableView/ViewsDropdown.js +0 -206
  42. package/build/components/TableHeader/TableView/components/ColumnList.d.ts +0 -3
  43. package/build/components/TableHeader/TableView/components/ColumnList.js +0 -70
  44. package/build/components/TableHeader/TableView/components/ViewsSubmenu.d.ts +0 -3
  45. package/build/components/TableHeader/TableView/components/ViewsSubmenu.js +0 -52
  46. package/build/components/TableHeader/TableView/components/index.d.ts +0 -2
  47. package/build/components/TableHeader/TableView/components/index.js +0 -2
  48. package/build/components/TableHeader/TableView/constants.d.ts +0 -10
  49. package/build/components/TableHeader/TableView/constants.js +0 -10
  50. package/build/components/TableHeader/TableView/data.d.ts +0 -5
  51. package/build/components/TableHeader/TableView/data.js +0 -48
  52. package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.d.ts +0 -22
  53. package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.js +0 -88
  54. package/build/components/TableHeader/TableView/hooks/useDialogPosition.d.ts +0 -8
  55. package/build/components/TableHeader/TableView/hooks/useDialogPosition.js +0 -16
  56. package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.d.ts +0 -7
  57. package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.js +0 -34
  58. package/build/components/TableHeader/TableView/hooks/useOriginalColumns.d.ts +0 -6
  59. package/build/components/TableHeader/TableView/hooks/useOriginalColumns.js +0 -18
  60. package/build/components/TableHeader/TableView/hooks/useSubmenuHover.d.ts +0 -8
  61. package/build/components/TableHeader/TableView/hooks/useSubmenuHover.js +0 -43
  62. package/build/components/TableHeader/TableView/hooks/useViewSelector.d.ts +0 -56
  63. package/build/components/TableHeader/TableView/hooks/useViewSelector.js +0 -177
  64. package/build/components/TableHeader/TableView/hooks/useViewsManager.d.ts +0 -12
  65. package/build/components/TableHeader/TableView/hooks/useViewsManager.js +0 -106
  66. package/build/components/TableHeader/TableView/styles.d.ts +0 -127
  67. package/build/components/TableHeader/TableView/styles.js +0 -417
  68. package/build/components/TableHeader/TableView/types.d.ts +0 -179
  69. package/build/components/TableHeader/TableView/utils.d.ts +0 -121
  70. package/build/components/TableHeader/TableView/utils.js +0 -457
  71. /package/build/{components/TableHeader/TableView/types.js → types/toggleOptions.js} +0 -0
@@ -1,127 +0,0 @@
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
- zIndex: number;
89
- '& .MuiDialog-container': {
90
- transition: string;
91
- zIndex: number;
92
- };
93
- '& .MuiDialog-paper': {
94
- transition: string;
95
- pointerEvents: string;
96
- zIndex: number;
97
- };
98
- };
99
- export declare const ResetHeaderBox: 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 ResetCheckboxSx: SxProps<Theme>;
103
- export declare const SubmenuContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
104
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
105
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
106
- export declare const ColumnItemsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
107
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
108
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
109
- export declare const SaveCustomViewBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
110
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
111
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
112
- export declare const SaveCustomViewInnerBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
113
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
114
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
115
- disabled?: boolean | undefined;
116
- }, {}, {}>;
117
- export declare const ButtonsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
118
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
119
- }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
120
- export declare const CancelButtonSx: SxProps<Theme>;
121
- export declare const OkayButtonSx: SxProps<Theme>;
122
- export declare const ModifiedTextSx: {
123
- readonly color: "#20232B80";
124
- readonly fontSize: "9px";
125
- readonly fontWeight: 500;
126
- readonly marginLeft: "4px";
127
- };
@@ -1,417 +0,0 @@
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
- paddingRight: 0,
32
- marginRight: 0,
33
- '&:after': {
34
- content: '""',
35
- position: 'absolute',
36
- left: -8,
37
- right: 0,
38
- width: '100%',
39
- height: '100%',
40
- boxShadow: theme.shadows[11],
41
- borderRadius: theme.spacing(0.5),
42
- paddingInlineStart: theme.spacing(1),
43
- paddingTop: '9px',
44
- paddingBottom: '9px',
45
- paddingInlineEnd: '9px',
46
- zIndex: -1,
47
- },
48
- '& > *:last-child': {
49
- marginRight: 0,
50
- paddingRight: 0,
51
- },
52
- }));
53
- export const ListStyled = styled(Box)(({ theme }) => ({
54
- background: theme.palette.common.white,
55
- borderRadius: theme.spacing(1),
56
- boxShadow: theme.shadows[5],
57
- border: '1px solid',
58
- borderColor: theme.palette.divider,
59
- zIndex: 5,
60
- fontSize: '11px',
61
- width: 192,
62
- }));
63
- export const DropdownStyled = styled(Box)(() => ({
64
- minWidth: 160,
65
- position: 'relative',
66
- marginRight: 0,
67
- paddingRight: 0,
68
- }));
69
- export const MenuItem = styled(Box, { shouldForwardProp: (props) => props !== 'addColumnViewEl' })(({ theme }) => ({
70
- padding: theme.spacing(1),
71
- paddingInlineEnd: 2,
72
- borderBottom: '1px solid',
73
- borderColor: theme.palette.divider,
74
- display: 'flex',
75
- alignItems: 'center',
76
- height: 32,
77
- cursor: 'pointer',
78
- img: {
79
- height: 12,
80
- },
81
- '.check-icon': {
82
- height: 'auto',
83
- marginInlineEnd: theme.spacing(1),
84
- },
85
- '&:hover': {
86
- color: theme.palette.info.dark,
87
- fontWeight: theme.typography.fontWeightBold,
88
- },
89
- '&.add-column': {
90
- justifyContent: 'space-between',
91
- paddingInlineEnd: theme.spacing(1),
92
- position: 'relative',
93
- border: 'none',
94
- zIndex: 5,
95
- borderBottom: '1px solid',
96
- borderColor: theme.palette.divider,
97
- borderTopRightRadius: theme.spacing(1),
98
- borderTopLeftRadius: theme.spacing(1),
99
- '&:hover': {
100
- boxShadow: theme.shadows[6],
101
- },
102
- },
103
- }));
104
- export const Space = styled(Box)(({ theme }) => ({
105
- width: 12,
106
- marginInlineEnd: theme.spacing(1),
107
- }));
108
- export const SpaceAfter = styled(Box)(() => ({
109
- width: 16,
110
- }));
111
- export const DialogContentWrapper = styled(Box)(({ theme }) => ({
112
- display: 'flex',
113
- flexDirection: 'column',
114
- height: 'calc(100% - 32px)',
115
- backgroundColor: theme.palette.background.paper,
116
- position: 'relative',
117
- }));
118
- export const ScrollableContent = styled(Box)(() => ({
119
- flex: 1,
120
- overflowY: 'auto',
121
- paddingLeft: 16,
122
- paddingRight: 16,
123
- paddingBottom: 64,
124
- }));
125
- export const TitleSection = styled(Box)(() => ({
126
- padding: '24px 0',
127
- display: 'flex',
128
- justifyContent: 'space-between',
129
- alignItems: 'center',
130
- }));
131
- export const ColumnListContainer = styled(Box)(({ theme }) => ({
132
- border: '1px solid',
133
- borderColor: theme.palette.divider,
134
- borderRadius: '8px',
135
- overflow: 'hidden',
136
- display: 'flex',
137
- flexDirection: 'column',
138
- flex: 1,
139
- minHeight: 0,
140
- }));
141
- export const SelectAllHeader = styled(Box)(({ theme }) => ({
142
- display: 'flex',
143
- alignItems: 'center',
144
- padding: '12px',
145
- borderBottom: '1px solid',
146
- borderColor: theme.palette.divider,
147
- backgroundColor: '#FAFAFA',
148
- cursor: 'pointer',
149
- '&:hover': {
150
- backgroundColor: '#F0F0F0',
151
- },
152
- }));
153
- export const ColumnItemRow = styled(Box, {
154
- shouldForwardProp: (prop) => prop !== 'isHovered' && prop !== 'isDate',
155
- })(({ theme, isHovered, isDate }) => ({
156
- display: 'flex',
157
- alignItems: 'center',
158
- padding: '12px',
159
- borderBottom: '1px solid',
160
- borderColor: theme.palette.divider,
161
- backgroundColor: isHovered ? theme.palette.action.hover : theme.palette.background.paper,
162
- cursor: isDate ? 'default' : 'grab',
163
- '&:hover': {
164
- backgroundColor: isDate ? theme.palette.background.paper : theme.palette.action.hover,
165
- },
166
- '&:last-child': {
167
- borderBottom: 'none',
168
- },
169
- }));
170
- export const DragIconWrapper = styled(Box)(() => ({
171
- width: 20,
172
- height: 20,
173
- marginRight: 8,
174
- display: 'flex',
175
- alignItems: 'center',
176
- justifyContent: 'center',
177
- flexShrink: 0,
178
- }));
179
- export const CheckboxWrapper = styled(Box)(() => ({
180
- display: 'flex',
181
- alignItems: 'center',
182
- justifyContent: 'center',
183
- padding: 0,
184
- width: 14,
185
- height: 14,
186
- minWidth: 14,
187
- minHeight: 14,
188
- flexShrink: 0,
189
- }));
190
- export const FooterBar = styled(Box)(({ theme }) => ({
191
- position: 'absolute',
192
- bottom: 0,
193
- left: 0,
194
- right: 0,
195
- height: 35,
196
- backgroundColor: '#F8F9FB',
197
- borderTop: '1px solid',
198
- borderColor: theme.palette.divider,
199
- }));
200
- export const CreateButtonWrapper = styled(Box)(() => ({
201
- position: 'absolute',
202
- bottom: 12,
203
- right: 16,
204
- padding: 6,
205
- backgroundColor: 'white',
206
- }));
207
- export const SubmenuPaper = styled(Paper)(() => ({
208
- paddingTop: 4,
209
- paddingBottom: 4,
210
- minWidth: 180,
211
- boxShadow: '0 4px 12px rgba(0,0,0,0.15)',
212
- borderRadius: '8px',
213
- }));
214
- export const SubmenuItem = styled(Box)(({ theme }) => ({
215
- display: 'flex',
216
- alignItems: 'center',
217
- padding: '8px 12px',
218
- cursor: 'pointer',
219
- }));
220
- export const DeleteButton = styled(Button)(() => ({
221
- color: '#FF0000',
222
- textTransform: 'none',
223
- fontSize: 10,
224
- fontWeight: 500,
225
- borderRadius: '4px',
226
- border: '1px solid #F4F4F4',
227
- paddingLeft: 8,
228
- paddingRight: 8,
229
- paddingTop: 4,
230
- paddingBottom: 4,
231
- '&:hover': {
232
- backgroundColor: 'transparent',
233
- },
234
- }));
235
- export const CreateButton = styled(Button)(({ theme }) => ({
236
- fontSize: 9,
237
- fontWeight: 600,
238
- borderRadius: 4,
239
- paddingLeft: 20,
240
- paddingRight: 20,
241
- paddingTop: 8,
242
- paddingBottom: 8,
243
- textTransform: 'none',
244
- backgroundColor: '#1F88D0',
245
- '&:hover': {
246
- backgroundColor: '#1A7BC0',
247
- },
248
- '&.Mui-disabled': {
249
- backgroundColor: theme.palette.grey[300],
250
- color: theme.palette.grey[500],
251
- },
252
- }));
253
- export const NameTextField = styled(TextField)(({ theme }) => ({
254
- '& .MuiFilledInput-root': {
255
- borderRadius: '8px',
256
- backgroundColor: theme.palette.background.paper,
257
- border: '1px solid',
258
- borderColor: theme.palette.divider,
259
- '&:hover': {
260
- backgroundColor: theme.palette.background.paper,
261
- },
262
- '&.Mui-focused': {
263
- backgroundColor: theme.palette.background.paper,
264
- },
265
- '&::before, &::after': {
266
- display: 'none',
267
- },
268
- },
269
- }));
270
- export const checkboxSx = {
271
- display: 'flex',
272
- alignItems: 'center',
273
- justifyContent: 'center',
274
- padding: 0,
275
- width: 14,
276
- height: 14,
277
- minWidth: 14,
278
- minHeight: 14,
279
- flexShrink: 0,
280
- color: 'grey.A400',
281
- '&.Mui-checked': {
282
- color: 'info.dark',
283
- },
284
- '&.MuiCheckbox-indeterminate': {
285
- color: 'info.dark',
286
- },
287
- '&.Mui-disabled.Mui-checked': {
288
- color: 'grey.500',
289
- '& .MuiSvgIcon-root': {
290
- backgroundColor: 'grey.500',
291
- borderRadius: '3px',
292
- color: '#fff',
293
- },
294
- },
295
- '& .MuiSvgIcon-root': {
296
- width: 14,
297
- height: 14,
298
- },
299
- '& img': {
300
- width: 14,
301
- height: 14,
302
- },
303
- };
304
- export const getDialogPaperStyle = (width, height) => ({
305
- margin: 0,
306
- maxHeight: '100%',
307
- maxWidth: 'none',
308
- width,
309
- height,
310
- borderRadius: 12,
311
- overflow: 'hidden',
312
- boxShadow: '0px 8px 32px rgba(0, 0, 0, 0.15)',
313
- });
314
- export const dialogSx = {
315
- backgroundColor: 'transparent',
316
- pointerEvents: 'none',
317
- zIndex: 1300,
318
- '& .MuiDialog-container': {
319
- transition: 'none !important',
320
- zIndex: 1300,
321
- },
322
- '& .MuiDialog-paper': {
323
- transition: 'none !important',
324
- pointerEvents: 'auto',
325
- zIndex: 1300,
326
- },
327
- };
328
- export const ResetHeaderBox = styled(Box)(({ theme }) => ({
329
- display: 'flex',
330
- alignItems: 'center',
331
- justifyContent: 'space-between',
332
- paddingLeft: theme.spacing(1.5),
333
- paddingRight: theme.spacing(1.5),
334
- paddingTop: theme.spacing(1),
335
- paddingBottom: theme.spacing(1),
336
- cursor: 'pointer',
337
- '&:hover': {
338
- backgroundColor: theme.palette.action.hover,
339
- },
340
- }));
341
- export const ResetCheckboxSx = {
342
- p: 0,
343
- width: 14,
344
- height: 14,
345
- minWidth: 14,
346
- minHeight: 14,
347
- '&.Mui-checked': { color: 'info.dark' },
348
- '&.MuiCheckbox-indeterminate': { color: 'info.dark' },
349
- '& .MuiSvgIcon-root': { width: 14, height: 14 },
350
- };
351
- export const SubmenuContainer = styled(Box)(() => ({
352
- minWidth: 200,
353
- }));
354
- export const ColumnItemsContainer = styled(Box)(() => ({
355
- maxHeight: 300,
356
- overflowY: 'auto',
357
- paddingLeft: 6,
358
- paddingRight: 6,
359
- }));
360
- export const SaveCustomViewBox = styled(Box)(() => ({
361
- paddingLeft: 8,
362
- paddingRight: 8,
363
- paddingTop: 8,
364
- paddingBottom: 8,
365
- }));
366
- export const SaveCustomViewInnerBox = styled(Box)(({ disabled }) => ({
367
- width: '100%',
368
- borderRadius: '8px',
369
- backgroundColor: '#1F88D00D',
370
- padding: '8px',
371
- marginLeft: 6,
372
- marginRight: 6,
373
- display: 'flex',
374
- flexDirection: 'column',
375
- gap: '6px',
376
- cursor: disabled ? 'not-allowed' : 'pointer',
377
- opacity: disabled ? 0.5 : 1,
378
- }));
379
- export const ButtonsContainer = styled(Box)(() => ({
380
- display: 'flex',
381
- justifyContent: 'flex-end',
382
- gap: 12,
383
- paddingTop: 8,
384
- paddingBottom: 8,
385
- paddingLeft: 12,
386
- paddingRight: 12,
387
- }));
388
- export const CancelButtonSx = {
389
- fontSize: 11,
390
- fontWeight: 400,
391
- textTransform: 'none',
392
- color: 'text.primary',
393
- minWidth: 80,
394
- height: 38,
395
- borderRadius: '8px',
396
- border: '1px solid #F2F2F2',
397
- };
398
- export const OkayButtonSx = {
399
- fontSize: 11,
400
- fontWeight: 500,
401
- textTransform: 'none',
402
- backgroundColor: '#1F88D0',
403
- minWidth: 80,
404
- height: 38,
405
- borderRadius: '8px',
406
- boxShadow: 'none',
407
- '&:hover': {
408
- backgroundColor: '#1976B8',
409
- boxShadow: 'none',
410
- },
411
- };
412
- export const ModifiedTextSx = {
413
- color: '#20232B80',
414
- fontSize: '9px',
415
- fontWeight: 500,
416
- marginLeft: '4px',
417
- };