@tap-payments/os-micro-frontend-shared 0.1.96-test.18 → 0.1.96-test.19

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 (35) hide show
  1. package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.d.ts +1 -1
  2. package/build/components/AppWindowWrapper/headers/AccountHeader/components/AccountHeaderTitle/AccountHeaderTitle.js +1 -1
  3. package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.d.ts +1 -1
  4. package/build/components/AppWindowWrapper/headers/AppWindowHeader/AppWindowHeaderBase.js +2 -2
  5. package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.d.ts +1 -1
  6. package/build/components/JSONViewer/components/JSONTitleBar/JSONTitleBar.js +1 -1
  7. package/build/components/NestedDropdown/Dropdown.js +2 -2
  8. package/build/components/TableCells/SheetViewCells/index.d.ts +0 -1
  9. package/build/components/TableCells/SheetViewCells/index.js +0 -1
  10. package/build/components/Toolbar/style.d.ts +0 -3
  11. package/build/components/Toolbar/style.js +1 -1
  12. package/build/components/VirtualTables/components/ColumnFilter/List/List.js +1 -1
  13. package/build/components/VirtualTables/components/virtualScroll/ListItemWrapper.d.ts +0 -1
  14. package/build/components/VirtualTables/components/virtualScroll/ListItemWrapper.js +3 -3
  15. package/build/components/Window/Window.d.ts +2 -1
  16. package/build/components/Window/Window.js +2 -2
  17. package/build/components/Window/style.d.ts +1 -0
  18. package/build/components/Window/style.js +1 -1
  19. package/build/constants/assets.d.ts +0 -3
  20. package/build/constants/assets.js +0 -3
  21. package/build/constants/table/cell/authorizationTableCellWidth.d.ts +2 -7
  22. package/build/constants/table/cell/authorizationTableCellWidth.js +2 -7
  23. package/build/constants/table/cell/chargeTableCellWidth.d.ts +3 -3
  24. package/build/constants/table/cell/chargeTableCellWidth.js +3 -3
  25. package/build/constants/table/cell/destinationsTableCellWidth.d.ts +2 -2
  26. package/build/constants/table/cell/destinationsTableCellWidth.js +2 -2
  27. package/build/constants/table/cell/refundTableCellWidth.d.ts +2 -2
  28. package/build/constants/table/cell/refundTableCellWidth.js +2 -2
  29. package/build/types/apps.d.ts +8 -13
  30. package/build/utils/navigation.d.ts +1 -1
  31. package/package.json +2 -2
  32. package/build/components/TableCells/SheetViewCells/CustomerSheetCell/CustomerSheetCell.d.ts +0 -14
  33. package/build/components/TableCells/SheetViewCells/CustomerSheetCell/CustomerSheetCell.js +0 -21
  34. package/build/components/TableCells/SheetViewCells/CustomerSheetCell/index.d.ts +0 -1
  35. package/build/components/TableCells/SheetViewCells/CustomerSheetCell/index.js +0 -1
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { AccountHeaderTitleProps } from './type';
3
- declare function AccountHeaderTitle({ title, onClose, onMaximize, maximized, id, onRequestClick, isSidebarExpanded, isHovered, onMouseHover, onMouseLeave, showSectionsButton, }: AccountHeaderTitleProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function AccountHeaderTitle({ title, onClose, onMaximize, maximized, id, onRequestClick, isSidebarExpanded, isHovered, onMouseHover, onMouseLeave, showSectionsButton, }: Readonly<AccountHeaderTitleProps>): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: import("react").MemoExoticComponent<typeof AccountHeaderTitle>;
5
5
  export default _default;
@@ -5,6 +5,6 @@ import { StyledHeaderWrapperStyled } from '../../../../../Toolbar/style';
5
5
  import { CloseIcon, ExpandButton, MaximizeIcon } from '../../../../../ToolbarIcon';
6
6
  import { teamWindowIcon } from '../../../../../../constants/index.js';
7
7
  function AccountHeaderTitle({ title, onClose, onMaximize, maximized = false, id, onRequestClick, isSidebarExpanded = false, isHovered = false, onMouseHover, onMouseLeave, showSectionsButton, }) {
8
- return (_jsx(StyledHeaderWrapperStyled, Object.assign({ id: id, "data-testid": "UserTitleBar", maximized: maximized || false, sandboxMode: false }, { children: _jsx(Toolbar, { onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, isHovered: isHovered, title: title, icon: teamWindowIcon, leftActions: _jsxs(_Fragment, { children: [_jsx(CloseIcon, { onClick: onClose }), _jsx(MaximizeIcon, { isMaximized: maximized, onClick: onMaximize }), showSectionsButton && (_jsx(ExpandButton, Object.assign({ onClick: onRequestClick, isExpanded: isSidebarExpanded, isHovered: isHovered }, { children: "Sections" })))] }) }) })));
8
+ return (_jsx(StyledHeaderWrapperStyled, Object.assign({ id: id, "data-testid": "UserTitleBar", maximized: maximized || false }, { children: _jsx(Toolbar, { onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, isHovered: isHovered, title: title, icon: teamWindowIcon, leftActions: _jsxs(_Fragment, { children: [_jsx(CloseIcon, { onClick: onClose }), _jsx(MaximizeIcon, { isMaximized: maximized, onClick: onMaximize }), showSectionsButton && (_jsx(ExpandButton, Object.assign({ onClick: onRequestClick, isExpanded: isSidebarExpanded, isHovered: isHovered }, { children: "Sections" })))] }) }) })));
9
9
  }
10
10
  export default memo(AccountHeaderTitle);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { AppWindowHeaderBaseProps } from './type';
3
- declare function AppWindowHeaderBase({ title, maximized, id, isHovered, onMouseHover, onMouseLeave, leftActions, sandboxMode, titleIconSrc, sx, ...rootProps }: AppWindowHeaderBaseProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function AppWindowHeaderBase({ title, maximized, id, isHovered, onMouseHover, onMouseLeave, leftActions, titleIconSrc, sx, ...rootProps }: AppWindowHeaderBaseProps): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: import("react").MemoExoticComponent<typeof AppWindowHeaderBase>;
5
5
  export default _default;
@@ -14,7 +14,7 @@ import { memo } from 'react';
14
14
  import Toolbar from '../../../Toolbar';
15
15
  import { StyledHeaderWrapperStyled } from '../../../Toolbar/style';
16
16
  function AppWindowHeaderBase(_a) {
17
- var { title, maximized = false, id, isHovered = false, onMouseHover, onMouseLeave, leftActions, sandboxMode = false, titleIconSrc, sx } = _a, rootProps = __rest(_a, ["title", "maximized", "id", "isHovered", "onMouseHover", "onMouseLeave", "leftActions", "sandboxMode", "titleIconSrc", "sx"]);
18
- return (_jsx(StyledHeaderWrapperStyled, Object.assign({ className: "header-wrapper", id: id, maximized: maximized || false, sandboxMode: sandboxMode, sx: sx }, rootProps, { children: _jsx(Toolbar, { onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, isHovered: isHovered, title: title || '', icon: titleIconSrc, leftActions: leftActions }) })));
17
+ var { title, maximized = false, id, isHovered = false, onMouseHover, onMouseLeave, leftActions, titleIconSrc, sx } = _a, rootProps = __rest(_a, ["title", "maximized", "id", "isHovered", "onMouseHover", "onMouseLeave", "leftActions", "titleIconSrc", "sx"]);
18
+ return (_jsx(StyledHeaderWrapperStyled, Object.assign({ className: "header-wrapper", id: id, maximized: maximized || false, sx: sx }, rootProps, { children: _jsx(Toolbar, { onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, isHovered: isHovered, title: title || '', icon: titleIconSrc, leftActions: leftActions }) })));
19
19
  }
20
20
  export default memo(AppWindowHeaderBase);
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import { JSONTitleBarProps } from './type';
3
- declare function JSONTitleBar({ title, onClose, onMaximize, maximized, id, onMouseHover, onMouseLeave, onRequestClick, isRequestExpanded, showRequestIcon, isHovered, }: JSONTitleBarProps): import("react/jsx-runtime").JSX.Element;
3
+ declare function JSONTitleBar({ title, onClose, onMaximize, maximized, id, onMouseHover, onMouseLeave, onRequestClick, isRequestExpanded, showRequestIcon, isHovered, }: Readonly<JSONTitleBarProps>): import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: import("react").MemoExoticComponent<typeof JSONTitleBar>;
5
5
  export default _default;
@@ -4,6 +4,6 @@ import Toolbar, { StyledHeaderWrapperStyled } from '../../../Toolbar';
4
4
  import { CloseIcon, ExpandButton, MaximizeIcon } from '../../../ToolbarIcon';
5
5
  import { jsonIcon } from '../../../../constants/index.js';
6
6
  function JSONTitleBar({ title, onClose, onMaximize, maximized = false, id, onMouseHover, onMouseLeave, onRequestClick, isRequestExpanded = false, showRequestIcon = false, isHovered = false, }) {
7
- return (_jsx(StyledHeaderWrapperStyled, Object.assign({ id: id, maximized: maximized || false, sandboxMode: false }, { children: _jsx(Toolbar, { isHovered: true, onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, title: title, icon: jsonIcon, leftActions: _jsxs(_Fragment, { children: [_jsx(CloseIcon, { onClick: onClose }), _jsx(MaximizeIcon, { isMaximized: maximized, onClick: onMaximize }), showRequestIcon && (_jsx(ExpandButton, Object.assign({ onClick: onRequestClick, isExpanded: isRequestExpanded, isHovered: isHovered }, { children: "Request" })))] }) }) })));
7
+ return (_jsx(StyledHeaderWrapperStyled, Object.assign({ id: id, maximized: maximized || false }, { children: _jsx(Toolbar, { isHovered: true, onMouseEnter: onMouseHover, onMouseLeave: onMouseLeave, isMaximized: maximized, title: title, icon: jsonIcon, leftActions: _jsxs(_Fragment, { children: [_jsx(CloseIcon, { onClick: onClose }), _jsx(MaximizeIcon, { isMaximized: maximized, onClick: onMaximize }), showRequestIcon && (_jsx(ExpandButton, Object.assign({ onClick: onRequestClick, isExpanded: isRequestExpanded, isHovered: isHovered }, { children: "Request" })))] }) }) })));
8
8
  }
9
9
  export default memo(JSONTitleBar);
@@ -47,11 +47,11 @@ function Dropdown(_a) {
47
47
  onSelect(changedChildren);
48
48
  }
49
49
  }, [selectedItem]);
50
- return (_jsxs(DropdownStyled, Object.assign({ component: "article", className: `tap-dropdown ${className || ''}` }, props, { children: [_jsx(HeaderWrapper, { children: title && _jsx(TitleStyled, Object.assign({ component: "p" }, { children: title })) }), _jsx(ListWrapper, { children: list === null || list === void 0 ? void 0 : list.map((item, idx) => (_jsx(MenuItem, Object.assign({ setSelected: ({ name, selected }) => {
50
+ return (_jsxs(DropdownStyled, Object.assign({ component: "article", className: `tap-dropdown ${className || ''}` }, props, { children: [_jsx(HeaderWrapper, { children: title && _jsx(TitleStyled, Object.assign({ component: "p" }, { children: title })) }), _jsx(ListWrapper, { children: list === null || list === void 0 ? void 0 : list.map((item) => (_jsx(MenuItem, Object.assign({ setSelected: ({ name, selected }) => {
51
51
  setSelected({ name, selected });
52
52
  }, onSelect: (selectedChildren) => {
53
53
  if (onSelect)
54
54
  onSelect(selectedChildren);
55
- }, placement: placement }, item), `${item.name}-${idx}`))) }), footer && footer] })));
55
+ }, placement: placement }, item), `${item.name}`))) }), footer && footer] })));
56
56
  }
57
57
  export default memo(Dropdown);
@@ -1,2 +1 @@
1
1
  export * from './PaymentAgreementCell';
2
- export * from './CustomerSheetCell';
@@ -1,2 +1 @@
1
1
  export * from './PaymentAgreementCell';
2
- export * from './CustomerSheetCell';
@@ -9,14 +9,12 @@ export declare const StyledBox: import("@emotion/styled").StyledComponent<import
9
9
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
10
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
11
11
  export declare const StyledHeaderWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
12
- sandboxMode?: boolean | undefined;
13
12
  maximized?: boolean | undefined;
14
13
  isDragging?: boolean | undefined;
15
14
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
15
  export declare const StyledAppHeaderWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
17
16
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
18
17
  }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
19
- sandboxMode?: boolean | undefined;
20
18
  isDragging?: boolean | undefined;
21
19
  }, {}, {}>;
22
20
  export declare const ToolbarStyled: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
@@ -26,7 +24,6 @@ export declare const ToolbarStyled: import("@emotion/styled").StyledComponent<im
26
24
  isHovered?: boolean | undefined;
27
25
  }, {}, {}>;
28
26
  export declare const StyledHeaderWrapperStyled: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
29
- sandboxMode?: boolean | undefined;
30
27
  maximized?: boolean | undefined;
31
28
  isDragging?: boolean | undefined;
32
29
  } & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement>, {}, {}>;
@@ -38,7 +38,7 @@ export const StyledBox = styled(Box)(({ theme }) => ({
38
38
  }));
39
39
  export const StyledHeaderWrapper = styled('div', {
40
40
  shouldForwardProp: (prop) => prop !== 'sandboxMode' && prop !== 'maximized' && prop !== 'isDragging',
41
- })(({ theme, sandboxMode, maximized, isDragging }) => (Object.assign(Object.assign(Object.assign({ background: sandboxMode ? theme.palette.common.lightOrange : theme.palette.background.transparent[0], backdropFilter: 'blur(32px)' }, (!maximized && {
41
+ })(({ maximized, isDragging }) => (Object.assign(Object.assign(Object.assign({}, (!maximized && {
42
42
  borderTopRightRadius: 12,
43
43
  borderTopLeftRadius: 12,
44
44
  })), (isDragging && {
@@ -56,6 +56,6 @@ function List({ onCloseDropdown, filter, styles }) {
56
56
  bottom: 0,
57
57
  backgroundColor: 'white',
58
58
  zIndex: 99999,
59
- } }, { children: [_jsx(CancelButton, Object.assign({ onClick: onClickCancel }, { children: t('cancel') }), "nested-dropdown-cancel"), _jsx(OkayButton, Object.assign({ onClick: onClickOkay }, { children: t('okay') }), "nested-dropdown-ok")] })) }));
59
+ } }, { children: [_jsx(CancelButton, Object.assign({ onClick: onClickCancel }, { children: t('cancel') })), _jsx(OkayButton, Object.assign({ onClick: onClickOkay }, { children: t('okay') }))] })) }));
60
60
  }
61
61
  export default memo(List);
@@ -9,7 +9,6 @@ export declare const LastRowContent: React.MemoExoticComponent<({ isLoadingRow,
9
9
  }) => import("react/jsx-runtime").JSX.Element>;
10
10
  export declare const StyledItemWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
11
11
  showShadowHighlight?: boolean | undefined;
12
- isSheetView?: boolean | undefined;
13
12
  }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
13
  declare function ListItemWrapper({ index, style, data: { renderedScrollTopRef, rows, rowProps, columns, isLoading, scrollToIndex, newLoadedRowsEndIndex, isError, areAllRowsLoaded, isSheetView, isPinned, isLoadMoreLoading, ...restData }, }: Readonly<ListChildComponentProps>): import("react/jsx-runtime").JSX.Element;
15
14
  export default ListItemWrapper;
@@ -46,8 +46,8 @@ const createRowClickHandler = (row, onRowClick) => (e) => {
46
46
  };
47
47
  export const StyledItemWrapper = styled('div', {
48
48
  shouldForwardProp: (props) => props !== 'showShadowHighlight' && props !== 'isSheetView',
49
- })(({ theme, isSheetView }) => ({
50
- height: isSheetView ? SHEET_VIEW_TABLE_ROW_HEIGHT : '100%',
49
+ })(({ theme }) => ({
50
+ height: '100%',
51
51
  backgroundColor: theme.palette.background.default,
52
52
  }));
53
53
  function ListItemWrapper(_a) {
@@ -105,6 +105,6 @@ function ListItemWrapper(_a) {
105
105
  renderSheetViewLoadingRow,
106
106
  isLoadMoreLoading,
107
107
  ]);
108
- return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, (!isSheetView && style)), { top: Number(style.top) - ((_b = renderedScrollTopRef === null || renderedScrollTopRef === void 0 ? void 0 : renderedScrollTopRef.current) !== null && _b !== void 0 ? _b : 0), willChange: 'top' }) }, { children: _jsx(StyledItemWrapper, Object.assign({ "data-testid": "ListItemWrapper_StyledItemWrapper", isSheetView: isSheetView }, { children: memoizedListItemComponent })) })));
108
+ return (_jsx("div", Object.assign({ "data-testid": "ListItemWrapper", style: Object.assign(Object.assign({}, style), { top: Number(style.top) - ((_b = renderedScrollTopRef === null || renderedScrollTopRef === void 0 ? void 0 : renderedScrollTopRef.current) !== null && _b !== void 0 ? _b : 0), willChange: 'top' }) }, { children: _jsx(StyledItemWrapper, Object.assign({ "data-testid": "ListItemWrapper_StyledItemWrapper" }, { children: memoizedListItemComponent })) })));
109
109
  }
110
110
  export default ListItemWrapper;
@@ -18,7 +18,8 @@ interface WindowWrapperProps {
18
18
  order?: number;
19
19
  openOrder?: number;
20
20
  };
21
+ sandboxMode?: boolean;
21
22
  }
22
- declare function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder }, }: WindowWrapperProps): import("react/jsx-runtime").JSX.Element;
23
+ declare function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder }, sandboxMode, }: Readonly<WindowWrapperProps>): import("react/jsx-runtime").JSX.Element;
23
24
  declare const _default: import("react").MemoExoticComponent<typeof WindowWrapper>;
24
25
  export default _default;
@@ -4,7 +4,7 @@ import { motion } from 'framer-motion';
4
4
  import { Resizable } from 're-resizable';
5
5
  import { APP_WINDOW_Z_INDEX, FOOTER_HEIGHT, HEADER_HEIGHT } from '../../constants/index.js';
6
6
  import { contentStyle, ContentWrapper, initalStyle, resizableMainStyle, AppContainerWrapper, AppContainerContainer } from './style';
7
- function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder = 1 }, }) {
7
+ function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragControls, onClick, options: { width, height, minHeight, minWidth, maxHeight, maxWidth, order, openOrder = 1 }, sandboxMode = false, }) {
8
8
  const [isDrag, setIsDrag] = useState(true);
9
9
  const modalRef = useRef(null);
10
10
  const constraintsRef = useRef(null);
@@ -32,7 +32,7 @@ function WindowWrapper({ children, id, onResize, isMaximized, isMinimized, dragC
32
32
  left: 48 * (openOrder - 1),
33
33
  })), animate: Object.assign(Object.assign({ width }, (isMaximized && {
34
34
  width: '100vw',
35
- })), { scale: Number(!isMinimized), top: isMaximized ? 0 : HEADER_HEIGHT + FOOTER_HEIGHT * (openOrder - 1), left: isMaximized ? 0 : 48 * (openOrder - 1) }), ref: modalRef, maximized: isMaximized, transition: { duration: isMaximized ? 0.3 : 0 } }, { children: _jsx(Resizable, Object.assign({ ref: (c) => {
35
+ })), { scale: Number(!isMinimized), top: isMaximized ? 0 : HEADER_HEIGHT + FOOTER_HEIGHT * (openOrder - 1), left: isMaximized ? 0 : 48 * (openOrder - 1) }), ref: modalRef, maximized: isMaximized, transition: { duration: isMaximized ? 0.3 : 0 }, sandboxMode: sandboxMode }, { children: _jsx(Resizable, Object.assign({ ref: (c) => {
36
36
  resizableRef.current = c;
37
37
  }, style: resizableStyle, minHeight: minHeight, minWidth: minWidth, maxHeight: maxHeight, maxWidth: maxWidth, onResizeStart: onResizeStart, onResizeStop: onResizeStop, onResize: (_, __, element) => {
38
38
  onResize === null || onResize === void 0 ? void 0 : onResize(element);
@@ -265,6 +265,7 @@ export declare const ContentWrapper: import("@emotion/styled").StyledComponent<{
265
265
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
266
266
  } & import("framer-motion").MotionProps & import("react").RefAttributes<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
267
267
  maximized?: boolean | undefined;
268
+ sandboxMode?: boolean | undefined;
268
269
  }, {}, {}>;
269
270
  export declare const AppContainerWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
270
271
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
@@ -30,7 +30,7 @@ export const initalStyle = {
30
30
  };
31
31
  export const ContentWrapper = styled(motion.div, {
32
32
  shouldForwardProp: (props) => props !== 'maximized',
33
- })(({ maximized }) => (Object.assign({ overflow: 'hidden', display: 'flex', flexDirection: 'column', width: '100%', height: '100%', zIndex: 1, borderRadius: '12px' }, (maximized && {
33
+ })(({ maximized, sandboxMode, theme }) => (Object.assign({ background: sandboxMode ? theme.palette.common.lightOrange : theme.palette.background.transparent[0], backdropFilter: 'blur(32px)', overflow: 'hidden', display: 'flex', flexDirection: 'column', width: '100%', height: '100%', zIndex: 1, borderRadius: '12px' }, (maximized && {
34
34
  transform: 'translate(0,0) !important',
35
35
  }))));
36
36
  export const AppContainerWrapper = styled(Box)(() => ({
@@ -544,6 +544,3 @@ export declare const deemaWithLabel: string;
544
544
  export declare const blackUnLinkIcon: string;
545
545
  export declare const sortDescArrowIcon: string;
546
546
  export declare const sortAscArrowIcon: string;
547
- export declare const closedOutlinedYellowCircle: string;
548
- export declare const deactivatedOrangeCircle: string;
549
- export declare const exclamationOutlinedOrangeCircle: string;
@@ -548,6 +548,3 @@ export const deemaWithLabel = `${lightUrl}/deemaWithLabel.svg`;
548
548
  export const blackUnLinkIcon = `${lightUrl}/blackUnLinkIcon.svg`;
549
549
  export const sortDescArrowIcon = `${lightUrl}/sortDescArrowIcon.svg`;
550
550
  export const sortAscArrowIcon = `${lightUrl}/sortAscArrowIcon.svg`;
551
- export const closedOutlinedYellowCircle = `${lightUrl}/closedOutlinedYellowCircle.svg`;
552
- export const deactivatedOrangeCircle = `${lightUrl}/deactivatedOrangeCircle.svg`;
553
- export const exclamationOutlinedOrangeCircle = `${lightUrl}/exclamationOutlinedOrangeCircle.svg`;
@@ -37,7 +37,7 @@ export declare const authorizationTableCellWidth: {
37
37
  readonly customer: {
38
38
  readonly default: "170px";
39
39
  readonly text: "180px";
40
- readonly sheet: "600px";
40
+ readonly sheet: "180px";
41
41
  };
42
42
  readonly reference: {
43
43
  readonly default: "95px";
@@ -172,12 +172,7 @@ export declare const authorizationTableCellWidth: {
172
172
  readonly payment_issuers: {
173
173
  readonly default: "150px";
174
174
  readonly text: "150px";
175
- readonly sheet: "404px";
176
- };
177
- readonly issuer_response: {
178
- readonly default: "70px";
179
- readonly text: "70px";
180
- readonly sheet: "270px";
175
+ readonly sheet: "350px";
181
176
  };
182
177
  readonly card_number: {
183
178
  readonly default: "120px";
@@ -37,7 +37,7 @@ export const authorizationTableCellWidth = {
37
37
  customer: {
38
38
  default: '170px',
39
39
  text: '180px',
40
- sheet: '600px',
40
+ sheet: '180px',
41
41
  },
42
42
  reference: {
43
43
  default: '95px',
@@ -172,12 +172,7 @@ export const authorizationTableCellWidth = {
172
172
  payment_issuers: {
173
173
  default: '150px',
174
174
  text: '150px',
175
- sheet: '404px',
176
- },
177
- issuer_response: {
178
- default: '70px',
179
- text: '70px',
180
- sheet: '270px',
175
+ sheet: '350px',
181
176
  },
182
177
  card_number: {
183
178
  default: '120px',
@@ -37,7 +37,7 @@ export declare const chargeTableCellWidth: {
37
37
  readonly customer: {
38
38
  readonly default: "180px";
39
39
  readonly text: "180px";
40
- readonly sheet: "600px";
40
+ readonly sheet: "145px";
41
41
  };
42
42
  readonly source: {
43
43
  readonly default: "114px";
@@ -62,7 +62,7 @@ export declare const chargeTableCellWidth: {
62
62
  readonly payment_issuers: {
63
63
  readonly default: "150px";
64
64
  readonly text: "150px";
65
- readonly sheet: "404px";
65
+ readonly sheet: "350px";
66
66
  };
67
67
  readonly payment_method: {
68
68
  readonly default: "150px";
@@ -117,7 +117,7 @@ export declare const chargeTableCellWidth: {
117
117
  readonly issuer_response: {
118
118
  readonly default: "70px";
119
119
  readonly text: "70px";
120
- readonly sheet: "270px";
120
+ readonly sheet: "175px";
121
121
  };
122
122
  readonly acquirer_response: {
123
123
  readonly default: "70px";
@@ -37,7 +37,7 @@ export const chargeTableCellWidth = {
37
37
  customer: {
38
38
  default: '180px',
39
39
  text: '180px',
40
- sheet: '600px',
40
+ sheet: '145px',
41
41
  },
42
42
  source: {
43
43
  default: '114px',
@@ -62,7 +62,7 @@ export const chargeTableCellWidth = {
62
62
  payment_issuers: {
63
63
  default: '150px',
64
64
  text: '150px',
65
- sheet: '404px',
65
+ sheet: '350px',
66
66
  },
67
67
  payment_method: {
68
68
  default: '150px',
@@ -117,7 +117,7 @@ export const chargeTableCellWidth = {
117
117
  issuer_response: {
118
118
  default: '70px',
119
119
  text: '70px',
120
- sheet: '270px',
120
+ sheet: '175px',
121
121
  },
122
122
  acquirer_response: {
123
123
  default: '70px',
@@ -32,7 +32,7 @@ export declare const destinationsTableCellWidth: {
32
32
  readonly customer: {
33
33
  readonly default: "180px";
34
34
  readonly text: "180px";
35
- readonly sheet: "600px";
35
+ readonly sheet: "180px";
36
36
  };
37
37
  readonly chargeId: {
38
38
  readonly default: "225px";
@@ -117,7 +117,7 @@ export declare const destinationsTableCellWidth: {
117
117
  readonly payment_issuers: {
118
118
  readonly default: "150px";
119
119
  readonly text: "150px";
120
- readonly sheet: "404px";
120
+ readonly sheet: "350px";
121
121
  };
122
122
  readonly card_number: {
123
123
  readonly default: "120px";
@@ -32,7 +32,7 @@ export const destinationsTableCellWidth = {
32
32
  customer: {
33
33
  default: '180px',
34
34
  text: '180px',
35
- sheet: '600px',
35
+ sheet: '180px',
36
36
  },
37
37
  chargeId: {
38
38
  default: '225px',
@@ -117,7 +117,7 @@ export const destinationsTableCellWidth = {
117
117
  payment_issuers: {
118
118
  default: '150px',
119
119
  text: '150px',
120
- sheet: '404px',
120
+ sheet: '350px',
121
121
  },
122
122
  card_number: {
123
123
  default: '120px',
@@ -27,7 +27,7 @@ export declare const refundTableCellWidth: {
27
27
  readonly customer: {
28
28
  readonly default: "180px";
29
29
  readonly text: "180px";
30
- readonly sheet: "600px";
30
+ readonly sheet: "145px";
31
31
  };
32
32
  readonly device: {
33
33
  readonly default: "100px";
@@ -57,7 +57,7 @@ export declare const refundTableCellWidth: {
57
57
  readonly payment_issuers: {
58
58
  readonly default: "150px";
59
59
  readonly text: "150px";
60
- readonly sheet: "404px";
60
+ readonly sheet: "350px";
61
61
  };
62
62
  readonly payment_method: {
63
63
  readonly default: "150px";
@@ -27,7 +27,7 @@ export const refundTableCellWidth = {
27
27
  customer: {
28
28
  default: '180px',
29
29
  text: '180px',
30
- sheet: '600px',
30
+ sheet: '145px',
31
31
  },
32
32
  device: {
33
33
  default: '100px',
@@ -57,7 +57,7 @@ export const refundTableCellWidth = {
57
57
  payment_issuers: {
58
58
  default: '150px',
59
59
  text: '150px',
60
- sheet: '404px',
60
+ sheet: '350px',
61
61
  },
62
62
  payment_method: {
63
63
  default: '150px',
@@ -68,6 +68,13 @@ export interface UserApp {
68
68
  name: TextAndLang[];
69
69
  app_services: AppService[];
70
70
  }
71
+ export type NavigateFunction = (params: {
72
+ id?: string;
73
+ appId?: string;
74
+ appCode: string;
75
+ serviceCode: string;
76
+ state?: any;
77
+ }) => void;
71
78
  export type MFWidgetBaseProps = {
72
79
  id: string;
73
80
  i18n?: i18n;
@@ -96,19 +103,7 @@ export type MFWidgetBaseProps = {
96
103
  onSwitch: (mode: CalenderMode) => void;
97
104
  };
98
105
  navigation: {
99
- openAppService: (navigation: {
100
- id?: string;
101
- appId?: string;
102
- appCode: string;
103
- serviceCode: string;
104
- state?: any;
105
- }) => void;
106
- openApp: (app: {
107
- appCode: string;
108
- serviceCode: string;
109
- payload?: AppDetails['payload'];
110
- sandboxMode?: boolean;
111
- }) => void;
106
+ navigate: NavigateFunction;
112
107
  };
113
108
  timezone: {
114
109
  current?: Timezone | null;
@@ -1,7 +1,7 @@
1
1
  import { AppDetails, UserApp } from '../types/index.js';
2
2
  export declare const getApp: (apps: UserApp[], appCode: string) => UserApp | undefined;
3
3
  export declare const getService: (services: UserApp['app_services'], serviceCode: string) => import("../types/index.js").AppService | undefined;
4
- export declare const openNewAppAttrs: ({ appCode, serviceCode, sandboxMode, payload, segmentId, numberOfOpenedApps, }: Pick<AppDetails, "payload" | "appCode" | "serviceCode"> & {
4
+ export declare const openNewAppAttrs: ({ appCode, serviceCode, sandboxMode, payload, segmentId, numberOfOpenedApps, }: Pick<AppDetails, "appCode" | "serviceCode" | "payload"> & {
5
5
  sandboxMode?: boolean | undefined;
6
6
  numberOfOpenedApps: number;
7
7
  segmentId: string;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@tap-payments/os-micro-frontend-shared",
3
3
  "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.1.96-test.18",
5
- "testVersion": 18,
4
+ "version": "0.1.96-test.19",
5
+ "testVersion": 19,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -1,14 +0,0 @@
1
- import { StatusChipWithCopyProps } from '../../../StatusChipWithCopy';
2
- interface CustomerSheetCellProps extends Pick<StatusChipWithCopyProps, 'selectionProps'> {
3
- id?: string;
4
- name?: string;
5
- email?: string;
6
- phone?: string;
7
- isFirstNameShown?: boolean;
8
- isLastNameShown?: boolean;
9
- isEmailShown?: boolean;
10
- isPhoneShown?: boolean;
11
- isIdShown?: boolean;
12
- }
13
- declare function CustomerSheetCell({ id, name, email, phone, isFirstNameShown, isLastNameShown, isEmailShown, isPhoneShown, isIdShown, ...props }: CustomerSheetCellProps): import("react/jsx-runtime").JSX.Element;
14
- export default CustomerSheetCell;
@@ -1,21 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { Box } from '@mui/material';
14
- import { StatusChipWithCopy } from '../../../index.js';
15
- import { isArabic } from '../../../../utils/index.js';
16
- function CustomerSheetCell(_a) {
17
- var { id, name, email, phone, isFirstNameShown = true, isLastNameShown = true, isEmailShown = true, isPhoneShown = true, isIdShown = true } = _a, props = __rest(_a, ["id", "name", "email", "phone", "isFirstNameShown", "isLastNameShown", "isEmailShown", "isPhoneShown", "isIdShown"]);
18
- const isArabicname = isArabic(name);
19
- return (_jsxs(Box, Object.assign({ sx: { display: 'flex', flexDirection: 'row', gap: '4px' } }, { children: [name && (isFirstNameShown || isLastNameShown) && (_jsx(StatusChipWithCopy, Object.assign({ disableAnimation: true, copyText: name, chipIndex: 0 }, props, { children: _jsx("span", Object.assign({ "data-is-arabic": isArabicname }, { children: name })) }))), isEmailShown && email && (_jsx(StatusChipWithCopy, Object.assign({ copyText: email, chipIndex: 1 }, props, { children: email }))), isPhoneShown && phone && (_jsx(StatusChipWithCopy, Object.assign({ copyText: phone, chipIndex: 2 }, props, { children: phone }))), isIdShown && id && (_jsx(StatusChipWithCopy, Object.assign({ copyText: id, chipIndex: 3 }, props, { children: id })))] })));
20
- }
21
- export default CustomerSheetCell;
@@ -1 +0,0 @@
1
- export { default as CustomerSheetCell } from './CustomerSheetCell';
@@ -1 +0,0 @@
1
- export { default as CustomerSheetCell } from './CustomerSheetCell';