@tap-payments/os-micro-frontend-shared 0.1.411 → 0.1.412-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 (118) hide show
  1. package/build/components/AnimatedSpinnerIcon/style.d.ts +0 -1
  2. package/build/components/Chip/style.d.ts +0 -1
  3. package/build/components/CountBadge/style.d.ts +0 -1
  4. package/build/components/Dialog/style.d.ts +0 -1
  5. package/build/components/FlippingCard/style.d.ts +0 -1
  6. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  7. package/build/components/JSONViewer/style.d.ts +0 -1
  8. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  9. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  10. package/build/components/SearchButton/styles.d.ts +0 -1
  11. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  12. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  13. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  14. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  15. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
  16. package/build/components/TableCells/CustomCells/AgreementCell/style.d.ts +0 -1
  17. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  18. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  19. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  20. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  21. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  22. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  23. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  24. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  25. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  26. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  27. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  28. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  29. package/build/components/TableCells/CustomCells/PayoutReportCell/style.d.ts +0 -1
  30. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  31. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  32. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  33. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  34. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  35. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  36. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  37. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  38. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  39. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  40. package/build/components/TableHeader/FiltersRow.d.ts +1 -1
  41. package/build/components/TableHeader/FiltersRow.js +4 -2
  42. package/build/components/TableHeader/TableHeader.d.ts +1 -1
  43. package/build/components/TableHeader/TableHeader.js +2 -2
  44. package/build/components/TableHeader/TableView/CreateViewDialog.d.ts +3 -0
  45. package/build/components/TableHeader/TableView/CreateViewDialog.js +91 -0
  46. package/build/components/TableHeader/TableView/CustomViews.d.ts +1 -1
  47. package/build/components/TableHeader/TableView/CustomViews.js +1 -1
  48. package/build/components/TableHeader/TableView/DefaultViews.js +1 -1
  49. package/build/components/TableHeader/TableView/TableView.js +1 -2
  50. package/build/components/TableHeader/TableView/ViewsDropdown.d.ts +5 -0
  51. package/build/components/TableHeader/TableView/ViewsDropdown.js +153 -0
  52. package/build/components/TableHeader/TableView/ViewsMenu.d.ts +5 -0
  53. package/build/components/TableHeader/TableView/ViewsMenu.js +56 -0
  54. package/build/components/TableHeader/TableView/components/ColumnList.d.ts +3 -0
  55. package/build/components/TableHeader/TableView/components/ColumnList.js +70 -0
  56. package/build/components/TableHeader/TableView/components/ViewsSubmenu.d.ts +3 -0
  57. package/build/components/TableHeader/TableView/components/ViewsSubmenu.js +68 -0
  58. package/build/components/TableHeader/TableView/components/index.d.ts +2 -0
  59. package/build/components/TableHeader/TableView/components/index.js +2 -0
  60. package/build/components/TableHeader/TableView/constants.d.ts +25 -0
  61. package/build/components/TableHeader/TableView/constants.js +25 -0
  62. package/build/components/TableHeader/TableView/hooks/index.d.ts +6 -0
  63. package/build/components/TableHeader/TableView/hooks/index.js +6 -0
  64. package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.d.ts +22 -0
  65. package/build/components/TableHeader/TableView/hooks/useCreateViewDialog.js +92 -0
  66. package/build/components/TableHeader/TableView/hooks/useDialogPosition.d.ts +8 -0
  67. package/build/components/TableHeader/TableView/hooks/useDialogPosition.js +16 -0
  68. package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.d.ts +7 -0
  69. package/build/components/TableHeader/TableView/hooks/useNestedSubmenu.js +27 -0
  70. package/build/components/TableHeader/TableView/hooks/useOriginalColumns.d.ts +6 -0
  71. package/build/components/TableHeader/TableView/hooks/useOriginalColumns.js +18 -0
  72. package/build/components/TableHeader/TableView/hooks/useSubmenuHover.d.ts +8 -0
  73. package/build/components/TableHeader/TableView/hooks/useSubmenuHover.js +42 -0
  74. package/build/components/TableHeader/TableView/hooks/useViewsManager.d.ts +12 -0
  75. package/build/components/TableHeader/TableView/hooks/useViewsManager.js +32 -0
  76. package/build/components/TableHeader/TableView/hooks/useViewsMenu.d.ts +48 -0
  77. package/build/components/TableHeader/TableView/hooks/useViewsMenu.js +150 -0
  78. package/build/components/TableHeader/TableView/index.d.ts +11 -3
  79. package/build/components/TableHeader/TableView/index.js +10 -3
  80. package/build/components/TableHeader/TableView/styles.d.ts +127 -0
  81. package/build/components/TableHeader/TableView/styles.js +427 -0
  82. package/build/components/TableHeader/TableView/types.d.ts +198 -0
  83. package/build/components/TableHeader/TableView/utils/columnState.d.ts +20 -0
  84. package/build/components/TableHeader/TableView/utils/columnState.js +187 -0
  85. package/build/components/TableHeader/TableView/utils/index.d.ts +4 -0
  86. package/build/components/TableHeader/TableView/utils/index.js +4 -0
  87. package/build/components/TableHeader/TableView/utils/layoutTransform.d.ts +10 -0
  88. package/build/components/TableHeader/TableView/utils/layoutTransform.js +71 -0
  89. package/build/components/TableHeader/TableView/utils/templateToColumnsView.d.ts +30 -0
  90. package/build/components/TableHeader/TableView/utils/templateToColumnsView.js +144 -0
  91. package/build/components/TableHeader/TableView/utils/viewMenu.d.ts +36 -0
  92. package/build/components/TableHeader/TableView/utils/viewMenu.js +90 -0
  93. package/build/components/TableHeader/index.d.ts +2 -0
  94. package/build/components/TableHeader/index.js +1 -0
  95. package/build/components/TableHeader/type.d.ts +18 -1
  96. package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
  97. package/build/components/TableReports/style.d.ts +0 -1
  98. package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.d.ts +1 -1
  99. package/build/components/VirtualTables/SheetViewVirtualTable/SheetViewVirtualTable.js +6 -3
  100. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableRowLoading.js +1 -2
  101. package/build/components/VirtualTables/SheetViewVirtualTable/hooks/usePinnedColumns.js +3 -2
  102. package/build/components/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
  103. package/build/components/VirtualTables/VirtualTable/VirtualTable.js +4 -3
  104. package/build/components/VirtualTables/components/style.d.ts +0 -1
  105. package/build/constants/assets.d.ts +1 -0
  106. package/build/constants/assets.js +1 -0
  107. package/build/constants/table/cell/authenticationsTableCellWidth.d.ts +10 -0
  108. package/build/constants/table/cell/authenticationsTableCellWidth.js +10 -0
  109. package/build/types/table.d.ts +1 -0
  110. package/build/utils/index.d.ts +1 -0
  111. package/build/utils/index.js +1 -0
  112. package/build/utils/skeletonColumns.d.ts +4 -0
  113. package/build/utils/skeletonColumns.js +55 -0
  114. package/package.json +3 -3
  115. package/build/components/TableHeader/TableView/style.d.ts +0 -24
  116. package/build/components/TableHeader/TableView/style.js +0 -102
  117. package/build/components/TableHeader/TableView/type.d.ts +0 -10
  118. /package/build/components/TableHeader/TableView/{type.js → types.js} +0 -0
@@ -0,0 +1,27 @@
1
+ import { useState, useRef, useCallback } from 'react';
2
+ export const useNestedSubmenu = () => {
3
+ const [hoveredNestedColumn, setHoveredNestedColumn] = useState(null);
4
+ const [nestedSubmenuAnchorEl, setNestedSubmenuAnchorEl] = useState(null);
5
+ const nestedCloseTimeoutRef = useRef(null);
6
+ const openNestedSubmenu = useCallback((columnName, element) => {
7
+ setHoveredNestedColumn(columnName);
8
+ setNestedSubmenuAnchorEl(element);
9
+ }, []);
10
+ const closeNestedSubmenu = useCallback(() => {
11
+ setHoveredNestedColumn(null);
12
+ setNestedSubmenuAnchorEl(null);
13
+ }, []);
14
+ const cancelNestedClose = useCallback(() => {
15
+ if (nestedCloseTimeoutRef.current) {
16
+ clearTimeout(nestedCloseTimeoutRef.current);
17
+ nestedCloseTimeoutRef.current = null;
18
+ }
19
+ }, []);
20
+ return {
21
+ hoveredNestedColumn,
22
+ nestedSubmenuAnchorEl,
23
+ openNestedSubmenu,
24
+ closeNestedSubmenu,
25
+ cancelNestedClose,
26
+ };
27
+ };
@@ -0,0 +1,6 @@
1
+ import type { ColumnViewProps } from '../../../../types/index.js';
2
+ export declare const useOriginalColumns: (defaultColumns: ColumnViewProps[]) => {
3
+ originalColumns: ColumnViewProps[];
4
+ saveOriginalState: () => void;
5
+ clearOriginalState: () => void;
6
+ };
@@ -0,0 +1,18 @@
1
+ import { useState, useCallback } from 'react';
2
+ export const useOriginalColumns = (defaultColumns) => {
3
+ const [originalColumns, setOriginalColumns] = useState([]);
4
+ const saveOriginalState = useCallback(() => {
5
+ setOriginalColumns(defaultColumns.map((col) => {
6
+ var _a;
7
+ 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 }))) }));
8
+ }));
9
+ }, [defaultColumns]);
10
+ const clearOriginalState = useCallback(() => {
11
+ setOriginalColumns([]);
12
+ }, []);
13
+ return {
14
+ originalColumns,
15
+ saveOriginalState,
16
+ clearOriginalState,
17
+ };
18
+ };
@@ -0,0 +1,8 @@
1
+ export declare const useSubmenuHover: () => {
2
+ hoveredColumn: string | null;
3
+ anchorEl: HTMLElement | null;
4
+ openSubmenu: (columnName: string, element: HTMLElement) => void;
5
+ closeSubmenu: () => void;
6
+ cancelClose: () => void;
7
+ forceClose: () => void;
8
+ };
@@ -0,0 +1,42 @@
1
+ import { useState, useRef, useCallback } from 'react';
2
+ export const useSubmenuHover = () => {
3
+ const [hoveredColumn, setHoveredColumn] = useState(null);
4
+ const [anchorEl, setAnchorEl] = useState(null);
5
+ const closeTimeoutRef = useRef(null);
6
+ const openSubmenu = useCallback((columnName, element) => {
7
+ if (closeTimeoutRef.current) {
8
+ clearTimeout(closeTimeoutRef.current);
9
+ closeTimeoutRef.current = null;
10
+ }
11
+ setHoveredColumn(columnName);
12
+ setAnchorEl(element);
13
+ }, []);
14
+ const closeSubmenu = useCallback(() => {
15
+ closeTimeoutRef.current = setTimeout(() => {
16
+ setHoveredColumn(null);
17
+ setAnchorEl(null);
18
+ }, 0);
19
+ }, []);
20
+ const cancelClose = useCallback(() => {
21
+ if (closeTimeoutRef.current) {
22
+ clearTimeout(closeTimeoutRef.current);
23
+ closeTimeoutRef.current = null;
24
+ }
25
+ }, []);
26
+ const forceClose = useCallback(() => {
27
+ if (closeTimeoutRef.current) {
28
+ clearTimeout(closeTimeoutRef.current);
29
+ closeTimeoutRef.current = null;
30
+ }
31
+ setHoveredColumn(null);
32
+ setAnchorEl(null);
33
+ }, []);
34
+ return {
35
+ hoveredColumn,
36
+ anchorEl,
37
+ openSubmenu,
38
+ closeSubmenu,
39
+ cancelClose,
40
+ forceClose,
41
+ };
42
+ };
@@ -0,0 +1,12 @@
1
+ import type { ColumnViewProps } from '../../../../types/index.js';
2
+ import type { UseViewsManagerProps, ViewMenuItem } from '../types';
3
+ export declare const useViewsManager: ({ tableMode, templates, lang }: UseViewsManagerProps) => {
4
+ menuItems: ViewMenuItem[];
5
+ defaultItem: ViewMenuItem | undefined;
6
+ allItems: ViewMenuItem[];
7
+ defaultColumns: ColumnViewProps[];
8
+ customViews: ViewMenuItem[];
9
+ defaultTemplate: ViewMenuItem | undefined;
10
+ allTemplates: ViewMenuItem[];
11
+ baseDefaultColumns: ColumnViewProps[];
12
+ };
@@ -0,0 +1,32 @@
1
+ import { useMemo } from 'react';
2
+ import { mapTemplatesToMenuItems, deepCloneColumns } from '../utils';
3
+ export const useViewsManager = ({ tableMode, templates, lang = 'en' }) => {
4
+ const parsedData = useMemo(() => {
5
+ if (!templates || templates.length === 0) {
6
+ return {
7
+ menuItems: [],
8
+ defaultItem: undefined,
9
+ allItems: [],
10
+ defaultColumns: [],
11
+ };
12
+ }
13
+ const { menuItems, defaultItem, allItems } = mapTemplatesToMenuItems(templates, tableMode, lang);
14
+ const defaultColumns = (defaultItem === null || defaultItem === void 0 ? void 0 : defaultItem.submenu) ? deepCloneColumns(defaultItem.submenu) : [];
15
+ return {
16
+ menuItems,
17
+ defaultItem,
18
+ allItems,
19
+ defaultColumns,
20
+ };
21
+ }, [templates, tableMode, lang]);
22
+ return {
23
+ menuItems: parsedData.menuItems,
24
+ defaultItem: parsedData.defaultItem,
25
+ allItems: parsedData.allItems,
26
+ defaultColumns: parsedData.defaultColumns,
27
+ customViews: parsedData.menuItems,
28
+ defaultTemplate: parsedData.defaultItem,
29
+ allTemplates: parsedData.allItems,
30
+ baseDefaultColumns: parsedData.defaultColumns,
31
+ };
32
+ };
@@ -0,0 +1,48 @@
1
+ import { type MouseEvent } from 'react';
2
+ import type { ColumnViewProps, TableMode } from '../../../../types/index.js';
3
+ import type { ViewMenuItem, LayoutSection } from '../types';
4
+ import type { ViewOption } from '../../type';
5
+ export interface UseViewsMenuProps {
6
+ mode: TableMode;
7
+ onViewChange?: (selectedView?: ViewMenuItem) => void;
8
+ onCreateCustomView?: (data: {
9
+ name: string;
10
+ selectedColumns: ColumnViewProps[];
11
+ layout: LayoutSection;
12
+ }) => Promise<{
13
+ templateId: string;
14
+ name: string;
15
+ } | void>;
16
+ onEditCustomView?: (viewId: string, data: {
17
+ name: string;
18
+ selectedColumns: ColumnViewProps[];
19
+ layout: LayoutSection;
20
+ }) => Promise<void>;
21
+ onDeleteCustomView?: (viewId: string) => Promise<void>;
22
+ defaultColumns: ColumnViewProps[];
23
+ defaultTemplate?: ViewMenuItem;
24
+ allTemplates: ViewMenuItem[];
25
+ }
26
+ export declare const useViewsMenu: ({ mode, onViewChange, onCreateCustomView, onEditCustomView, onDeleteCustomView, defaultColumns, defaultTemplate, allTemplates, }: UseViewsMenuProps) => {
27
+ anchorEl: HTMLDivElement | null;
28
+ isCreateDialogOpen: boolean;
29
+ editingView: ViewMenuItem | null;
30
+ selectedViewInfo: ViewOption;
31
+ shouldUseCurrentState: boolean;
32
+ selectedView: ViewMenuItem | undefined;
33
+ currentViewColumns: ColumnViewProps[];
34
+ initialColumnsForCreate: ColumnViewProps[] | null;
35
+ handleViewButtonClick: (event: MouseEvent<HTMLDivElement>) => void;
36
+ handleCloseViewDropdown: () => void;
37
+ handleSelectedViewInfo: (selected: ViewOption, viewMenuItem?: ViewMenuItem) => void;
38
+ handleOpenCreateDialog: (useCurrentState?: boolean, initialColumns?: ColumnViewProps[]) => void;
39
+ handleOpenEditDialog: (view: ViewMenuItem) => void;
40
+ handleCloseCreateDialog: () => void;
41
+ handleSaveView: (data: {
42
+ name: string;
43
+ selectedColumns: ColumnViewProps[];
44
+ layout: LayoutSection;
45
+ }) => Promise<void>;
46
+ handleDeleteView: (viewId: string) => Promise<void>;
47
+ updateSelectedView: (updatedView: ViewMenuItem) => void;
48
+ };
@@ -0,0 +1,150 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { useState, useCallback, useEffect, useRef, useMemo } from 'react';
11
+ import { deepCloneColumns } from '../utils';
12
+ export const useViewsMenu = ({ mode, onViewChange, onCreateCustomView, onEditCustomView, onDeleteCustomView, defaultColumns, defaultTemplate, allTemplates, }) => {
13
+ const [anchorEl, setAnchorEl] = useState(null);
14
+ const [isCreateDialogOpen, setIsCreateDialogOpen] = useState(false);
15
+ const [editingView, setEditingView] = useState(null);
16
+ const [shouldUseCurrentState, setShouldUseCurrentState] = useState(false);
17
+ const [initialColumnsForCreate, setInitialColumnsForCreate] = useState(null);
18
+ const [selectedTemplateId, setSelectedTemplateId] = useState(null);
19
+ const hasInitializedRef = useRef(false);
20
+ const lastModeRef = useRef(null);
21
+ const getViewForParent = useCallback((view) => {
22
+ var _a;
23
+ const selectedColumns = ((_a = view.submenu) === null || _a === void 0 ? void 0 : _a.filter((col) => col.selected)) || [];
24
+ return Object.assign(Object.assign({}, view), { submenu: selectedColumns, columns: selectedColumns.map((col) => col.name) });
25
+ }, []);
26
+ const selectedView = useMemo(() => {
27
+ if (!selectedTemplateId)
28
+ return defaultTemplate;
29
+ const found = allTemplates.find((t) => (t.templateId || t.id) === selectedTemplateId);
30
+ return found || defaultTemplate;
31
+ }, [allTemplates, selectedTemplateId, defaultTemplate]);
32
+ const currentViewColumns = useMemo(() => {
33
+ return deepCloneColumns((selectedView === null || selectedView === void 0 ? void 0 : selectedView.submenu) || defaultColumns);
34
+ }, [selectedView, defaultColumns]);
35
+ const selectedViewInfo = useMemo(() => {
36
+ return {
37
+ id: (selectedView === null || selectedView === void 0 ? void 0 : selectedView.id) || 'default',
38
+ label: (selectedView === null || selectedView === void 0 ? void 0 : selectedView.label) || 'Default',
39
+ };
40
+ }, [selectedView]);
41
+ useEffect(() => {
42
+ if (hasInitializedRef.current)
43
+ return;
44
+ if (!defaultTemplate)
45
+ return;
46
+ setSelectedTemplateId(defaultTemplate.templateId || null);
47
+ hasInitializedRef.current = true;
48
+ lastModeRef.current = mode;
49
+ }, [defaultTemplate, mode]);
50
+ useEffect(() => {
51
+ if (!hasInitializedRef.current)
52
+ return;
53
+ if (lastModeRef.current === mode)
54
+ return;
55
+ lastModeRef.current = mode;
56
+ if (selectedTemplateId) {
57
+ const matchingView = allTemplates.find((t) => (t.templateId || t.id) === selectedTemplateId);
58
+ if (matchingView)
59
+ return;
60
+ }
61
+ if (defaultTemplate) {
62
+ setSelectedTemplateId(defaultTemplate.templateId || null);
63
+ }
64
+ else {
65
+ setSelectedTemplateId(null);
66
+ }
67
+ }, [mode, selectedTemplateId, allTemplates, defaultTemplate]);
68
+ useEffect(() => {
69
+ if (selectedView) {
70
+ onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(getViewForParent(selectedView));
71
+ }
72
+ else {
73
+ onViewChange === null || onViewChange === void 0 ? void 0 : onViewChange(undefined);
74
+ }
75
+ }, [selectedView, onViewChange, getViewForParent]);
76
+ const handleViewButtonClick = useCallback((event) => {
77
+ setAnchorEl((current) => (current ? null : event.currentTarget));
78
+ }, []);
79
+ const handleCloseViewDropdown = useCallback(() => {
80
+ setAnchorEl(null);
81
+ }, []);
82
+ const handleSelectedViewInfo = useCallback((selected, viewMenuItem) => {
83
+ const templateId = (viewMenuItem === null || viewMenuItem === void 0 ? void 0 : viewMenuItem.isCustom) ? viewMenuItem.templateId || viewMenuItem.id : (viewMenuItem === null || viewMenuItem === void 0 ? void 0 : viewMenuItem.templateId) || null;
84
+ setSelectedTemplateId(templateId);
85
+ handleCloseViewDropdown();
86
+ }, [handleCloseViewDropdown]);
87
+ const updateSelectedView = useCallback((updatedView) => {
88
+ const templateId = updatedView.templateId || updatedView.id;
89
+ setSelectedTemplateId((prev) => (prev !== templateId ? templateId : prev));
90
+ }, []);
91
+ const handleOpenCreateDialog = useCallback((useCurrentState = false, initialColumns) => {
92
+ setEditingView(null);
93
+ setShouldUseCurrentState(useCurrentState);
94
+ setInitialColumnsForCreate(initialColumns !== null && initialColumns !== void 0 ? initialColumns : null);
95
+ setIsCreateDialogOpen(true);
96
+ setAnchorEl(null);
97
+ }, []);
98
+ const handleOpenEditDialog = useCallback((view) => {
99
+ setEditingView(view);
100
+ setShouldUseCurrentState(true);
101
+ setIsCreateDialogOpen(true);
102
+ }, []);
103
+ const handleCloseCreateDialog = useCallback(() => {
104
+ setIsCreateDialogOpen(false);
105
+ setEditingView(null);
106
+ setShouldUseCurrentState(false);
107
+ setInitialColumnsForCreate(null);
108
+ }, []);
109
+ const handleSaveView = useCallback((data) => __awaiter(void 0, void 0, void 0, function* () {
110
+ if (editingView) {
111
+ const templateId = editingView.templateId || editingView.id;
112
+ yield (onEditCustomView === null || onEditCustomView === void 0 ? void 0 : onEditCustomView(templateId, data));
113
+ setSelectedTemplateId(templateId);
114
+ handleCloseViewDropdown();
115
+ }
116
+ else {
117
+ const created = yield (onCreateCustomView === null || onCreateCustomView === void 0 ? void 0 : onCreateCustomView(data));
118
+ if (created === null || created === void 0 ? void 0 : created.templateId) {
119
+ setSelectedTemplateId(created.templateId);
120
+ }
121
+ }
122
+ }), [editingView, onEditCustomView, onCreateCustomView, handleCloseViewDropdown]);
123
+ const handleDeleteView = useCallback((viewId) => __awaiter(void 0, void 0, void 0, function* () {
124
+ const viewToDelete = allTemplates.find((view) => view.id === viewId || view.templateId === viewId);
125
+ const templateId = (viewToDelete === null || viewToDelete === void 0 ? void 0 : viewToDelete.templateId) || viewId;
126
+ yield (onDeleteCustomView === null || onDeleteCustomView === void 0 ? void 0 : onDeleteCustomView(templateId));
127
+ if (selectedTemplateId === templateId) {
128
+ setSelectedTemplateId((defaultTemplate === null || defaultTemplate === void 0 ? void 0 : defaultTemplate.templateId) || null);
129
+ }
130
+ }), [allTemplates, onDeleteCustomView, selectedTemplateId, defaultTemplate]);
131
+ return {
132
+ anchorEl,
133
+ isCreateDialogOpen,
134
+ editingView,
135
+ selectedViewInfo,
136
+ shouldUseCurrentState,
137
+ selectedView,
138
+ currentViewColumns,
139
+ initialColumnsForCreate,
140
+ handleViewButtonClick,
141
+ handleCloseViewDropdown,
142
+ handleSelectedViewInfo,
143
+ handleOpenCreateDialog,
144
+ handleOpenEditDialog,
145
+ handleCloseCreateDialog,
146
+ handleSaveView,
147
+ handleDeleteView,
148
+ updateSelectedView,
149
+ };
150
+ };
@@ -1,3 +1,11 @@
1
- import TableView from './TableView';
2
- export * from './TableView';
3
- export default TableView;
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 ViewsMenu } from './ViewsMenu';
6
+ export { default as ViewsDropdown } from './ViewsDropdown';
7
+ export { default as CreateViewDialog } from './CreateViewDialog';
8
+ export type { ViewMenuItem, CreateCustomViewDialogProps, CreateOrEditViewPayload, ColumnChange, LayoutSection, ColumnItem, FieldItem, Template, CreateTemplatePayload, UpdateTemplatePayload, } from './types';
9
+ export { transformLayoutToColumns, getColumnsByMode, createCustomViewMenuItem, setViewAsDefault, transformTemplatesToViewMenuItems, convertColumnsToLayoutSection, isDateColumn, getColumnCheckState, mapTemplatesToMenuItems, mapColumnsToLayoutSection, getSubmenuFromTemplateLayout, getColumnOrder, updateTemplate, templateToViewMenuItem, convertTemplateToColumnsView, convertTemplatesToColumnsView, } from './utils';
10
+ export { useSubmenuHover, useViewsManager, useViewsMenu } from './hooks';
11
+ export { DIALOG_WIDTH, DIALOG_HEIGHT, MAX_CUSTOM_VIEWS, TEMPLATE_NAME_MAX_LENGTH, INDEX_COLUMN_CONFIG, DATE_COLUMN_CONFIG } from './constants';
@@ -1,3 +1,10 @@
1
- import TableView from './TableView';
2
- export * from './TableView';
3
- export default TableView;
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 ViewsMenu } from './ViewsMenu';
6
+ export { default as ViewsDropdown } from './ViewsDropdown';
7
+ export { default as CreateViewDialog } from './CreateViewDialog';
8
+ export { transformLayoutToColumns, getColumnsByMode, createCustomViewMenuItem, setViewAsDefault, transformTemplatesToViewMenuItems, convertColumnsToLayoutSection, isDateColumn, getColumnCheckState, mapTemplatesToMenuItems, mapColumnsToLayoutSection, getSubmenuFromTemplateLayout, getColumnOrder, updateTemplate, templateToViewMenuItem, convertTemplateToColumnsView, convertTemplatesToColumnsView, } from './utils';
9
+ export { useSubmenuHover, useViewsManager, useViewsMenu } from './hooks';
10
+ export { DIALOG_WIDTH, DIALOG_HEIGHT, MAX_CUSTOM_VIEWS, TEMPLATE_NAME_MAX_LENGTH, INDEX_COLUMN_CONFIG, DATE_COLUMN_CONFIG } from './constants';
@@ -0,0 +1,127 @@
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
+ color: string;
124
+ fontSize: string;
125
+ fontWeight: number;
126
+ marginLeft: string;
127
+ };