@tap-payments/os-micro-frontend-shared 0.1.219 → 0.1.221-test.1-test.2-test.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/Chip/style.d.ts +0 -1
  4. package/build/components/CountBadge/style.d.ts +0 -1
  5. package/build/components/Dialog/style.d.ts +0 -1
  6. package/build/components/FlippingCard/style.d.ts +0 -1
  7. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  8. package/build/components/JSONViewer/style.d.ts +0 -1
  9. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  10. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  11. package/build/components/SearchButton/styles.d.ts +0 -1
  12. package/build/components/StatusButton/style.d.ts +1 -1
  13. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  14. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  15. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  16. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  17. package/build/components/TableCells/CustomCells/ActionCell/ActionCell.js +13 -10
  18. package/build/components/TableCells/CustomCells/ActionCell/components/ActionIconColumn.js +13 -10
  19. package/build/components/TableCells/CustomCells/ActionCell/hooks/useActionCell.d.ts +3 -1
  20. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
  21. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  22. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  23. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  24. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  25. package/build/components/TableCells/CustomCells/BalanceCell/BalanceCell.js +1 -1
  26. package/build/components/TableCells/CustomCells/BalanceCell/BalanceCellSheet.d.ts +1 -1
  27. package/build/components/TableCells/CustomCells/BalanceCell/BalanceCellSheet.js +2 -4
  28. package/build/components/TableCells/CustomCells/BalanceCell/index.d.ts +0 -1
  29. package/build/components/TableCells/CustomCells/BalanceCell/index.js +0 -1
  30. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  31. package/build/components/TableCells/CustomCells/BalanceCell/type.d.ts +1 -1
  32. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  33. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  34. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  35. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  36. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  37. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  38. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  39. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  40. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  41. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  42. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  43. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  44. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  45. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  46. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +0 -1
  47. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  48. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  49. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  50. package/build/components/TableCells/CustomCells/type.d.ts +3 -1
  51. package/build/components/VirtualTables/components/style.d.ts +0 -1
  52. package/build/constants/assets.d.ts +1 -0
  53. package/build/constants/assets.js +1 -0
  54. package/build/constants/table/cell/authorizationTableCellWidth.d.ts +2 -2
  55. package/build/constants/table/cell/authorizationTableCellWidth.js +2 -2
  56. package/build/constants/table/cell/chargeTableCellWidth.d.ts +1 -1
  57. package/build/constants/table/cell/chargeTableCellWidth.js +1 -1
  58. package/build/constants/table/cell/destinationsTableCellWidth.d.ts +1 -1
  59. package/build/constants/table/cell/destinationsTableCellWidth.js +1 -1
  60. package/build/constants/table/cell/refundTableCellWidth.d.ts +2 -2
  61. package/build/constants/table/cell/refundTableCellWidth.js +2 -2
  62. package/build/types/table.d.ts +9 -0
  63. package/package.json +3 -3
  64. package/build/components/TableCells/CustomCells/BalanceCell/BalanceCellText.d.ts +0 -3
  65. package/build/components/TableCells/CustomCells/BalanceCell/BalanceCellText.js +0 -44
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Tap Payments
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tap Payments
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # os-micro-frontend-shared
2
-
3
- ## Publishing Workflow
4
-
5
- 1. Update version in package.json
6
- 2. Commit changes
7
- 3. Create and push a tag:
8
-
9
- ```bash
10
- npm version patch # or minor, major
11
- git push origin main --tags
12
- ```
1
+ # os-micro-frontend-shared
2
+
3
+ ## Publishing Workflow
4
+
5
+ 1. Update version in package.json
6
+ 2. Commit changes
7
+ 3. Create and push a tag:
8
+
9
+ ```bash
10
+ npm version patch # or minor, major
11
+ git push origin main --tags
12
+ ```
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { GetSourceAnimationFunction } from './type';
4
3
  export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
5
4
  variant?: import("./type").ChipVariant | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AgreementImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DialogWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const FOOTER_HEIGHT = 37;
4
3
  export declare const TITLE_BAR_HEIGHT = "32px";
5
4
  export declare const VIEWER_HEIGHT = 545;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const DEFAULT_CHIP_MIN_WIDTH = 24;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const CenterIconWrapper: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -21,7 +21,7 @@ export declare const CountBadge: import("@emotion/styled").StyledComponent<impor
21
21
  }, {}, {}>;
22
22
  export declare const StatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
23
23
  variant: StatusButtonVariant;
24
- icon?: "search" | "scheduled" | "paidOut" | "reversed" | "checked" | "initiated" | "captured" | "unCaptured" | "inProgress" | "abandoned" | "cancelled" | "authorized" | "unauthenticated" | "authenticated" | "unSettled" | "reports" | "chevronDown" | "unAuthorized" | "openFlag" | "closedFlag" | "dashedChecked" | "deactivated" | undefined;
24
+ icon?: "search" | "scheduled" | "paidOut" | "reversed" | "checked" | "inProgress" | "initiated" | "abandoned" | "cancelled" | "reports" | "chevronDown" | "unAuthorized" | "unSettled" | "unCaptured" | "captured" | "authorized" | "openFlag" | "closedFlag" | "unauthenticated" | "authenticated" | "dashedChecked" | "deactivated" | undefined;
25
25
  }, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
26
26
  export declare const StyledFilterName: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
27
27
  export declare const StyledDropdown: import("@emotion/styled").StyledComponent<import("../DropdownMenu").IProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -80,15 +80,18 @@ export const ActionCell = memo((_a) => {
80
80
  pointerEvents: 'none',
81
81
  })) }, { children: [_jsx(TransparentButton, Object.assign({ onClick: handleClick, "data-testid": "ActionCell_ActionsIconContainer_TransparentButton", "data-is-active": areThereAnyShownActions, sx: Object.assign({}, (!areThereAnyShownActions && {
82
82
  pointerEvents: 'none',
83
- })) }, { children: _jsx(AnimatePresence, Object.assign({ mode: "wait" }, { children: _jsx(ActionIconsVariants, { isAnyActionLoading: isAnyActionLoading, isAnyActionHasError: isAnyActionHasError, isAnyActionSuccessful: isAnyActionSuccessful, areThereAnyShownActions: areThereAnyShownActions }) })) })), renderDropdown ? (renderDropdown(anchorEl, setAnchorEl)) : (_jsxs(_Fragment, { children: [dropdownAction, areThereAnyShownActions && (_jsx(Dropdown, { style: { zIndex: 2000 }, open: open, onClose: handleClose, anchorEl: anchorEl, menuItems: filteredActions.map((action) => (Object.assign(Object.assign({}, action), { onClick: (e) => {
84
- var _a;
85
- (_a = action === null || action === void 0 ? void 0 : action.onClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
86
- if (!action.hasActionMenu) {
83
+ })) }, { children: _jsx(AnimatePresence, Object.assign({ mode: "wait" }, { children: _jsx(ActionIconsVariants, { isAnyActionLoading: isAnyActionLoading, isAnyActionHasError: isAnyActionHasError, isAnyActionSuccessful: isAnyActionSuccessful, areThereAnyShownActions: areThereAnyShownActions }) })) })), renderDropdown ? (renderDropdown(anchorEl, setAnchorEl)) : (_jsxs(_Fragment, { children: [dropdownAction, areThereAnyShownActions && (_jsx(Dropdown, { style: { zIndex: 2000 }, open: open, onClose: handleClose, anchorEl: anchorEl, menuItems: filteredActions.map((action) => {
84
+ var _a;
85
+ return (Object.assign(Object.assign({}, action), { onClick: (e) => {
86
+ var _a;
87
+ (_a = action === null || action === void 0 ? void 0 : action.onClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
88
+ if (!action.hasActionMenu) {
89
+ handleClose();
90
+ }
91
+ }, onRightClick: (e) => {
92
+ var _a;
93
+ (_a = action === null || action === void 0 ? void 0 : action.onRightClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
87
94
  handleClose();
88
- }
89
- }, onRightClick: (e) => {
90
- var _a;
91
- (_a = action === null || action === void 0 ? void 0 : action.onRightClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
92
- handleClose();
93
- }, icon: (_jsx(ActionIcon, { icon: action.icon, src: actionIcons[action.icon], initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 } }, `action.label-${action.label.trim()}`)) }))) }))] }))] }))] }))] })) })));
95
+ }, icon: action.customIcon || (_jsx(ActionIcon, { icon: action.icon, src: (_a = action.iconSrc) !== null && _a !== void 0 ? _a : (action.icon && actionIcons[action.icon]), initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 } }, `action.label-${action.label.trim()}`)) }));
96
+ }) }))] }))] }))] }))] })) })));
94
97
  });
@@ -33,16 +33,19 @@ function ActionIconColumn(_a) {
33
33
  pointerEvents: 'none',
34
34
  })) }, { children: [_jsx(TransparentButton, Object.assign({ onClick: handleClick, "data-testid": "ActionIconColumn_ActionsIconContainer_TransparentButton", "data-is-active": areThereAnyShownActions, sx: Object.assign({}, (!areThereAnyShownActions && {
35
35
  pointerEvents: 'none',
36
- })) }, { children: _jsx(AnimatePresence, Object.assign({ mode: "wait" }, { children: _jsx(ActionIconsVariants, { isAnyActionLoading: isAnyActionLoading, isAnyActionHasError: isAnyActionHasError, isAnyActionSuccessful: isAnyActionSuccessful, areThereAnyShownActions: areThereAnyShownActions }) })) })), renderDropdown ? (renderDropdown(anchorEl, setAnchorEl)) : (_jsxs(_Fragment, { children: [dropdownAction, areThereAnyShownActions && (_jsx(Dropdown, { style: { zIndex: 2000 }, open: open, onClose: handleClose, anchorEl: anchorEl, menuItems: filteredActions.map((action) => (Object.assign(Object.assign({}, action), { onClick: (e) => {
37
- var _a;
38
- (_a = action === null || action === void 0 ? void 0 : action.onClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
39
- if (!action.hasActionMenu) {
36
+ })) }, { children: _jsx(AnimatePresence, Object.assign({ mode: "wait" }, { children: _jsx(ActionIconsVariants, { isAnyActionLoading: isAnyActionLoading, isAnyActionHasError: isAnyActionHasError, isAnyActionSuccessful: isAnyActionSuccessful, areThereAnyShownActions: areThereAnyShownActions }) })) })), renderDropdown ? (renderDropdown(anchorEl, setAnchorEl)) : (_jsxs(_Fragment, { children: [dropdownAction, areThereAnyShownActions && (_jsx(Dropdown, { style: { zIndex: 2000 }, open: open, onClose: handleClose, anchorEl: anchorEl, menuItems: filteredActions.map((action) => {
37
+ var _a;
38
+ return (Object.assign(Object.assign({}, action), { onClick: (e) => {
39
+ var _a;
40
+ (_a = action === null || action === void 0 ? void 0 : action.onClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
41
+ if (!action.hasActionMenu) {
42
+ handleClose();
43
+ }
44
+ }, onRightClick: (e) => {
45
+ var _a;
46
+ (_a = action === null || action === void 0 ? void 0 : action.onRightClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
40
47
  handleClose();
41
- }
42
- }, onRightClick: (e) => {
43
- var _a;
44
- (_a = action === null || action === void 0 ? void 0 : action.onRightClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
45
- handleClose();
46
- }, icon: (_jsx(ActionIcon, { icon: action.icon, src: actionIcons[action.icon], initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 } }, `action.label-${action.label.trim()}`)) }))) }))] }))] })) })) })));
48
+ }, icon: action.customIcon || (_jsx(ActionIcon, { icon: action.icon, src: (_a = action.iconSrc) !== null && _a !== void 0 ? _a : (action.icon && actionIcons[action.icon]), initial: { opacity: 0 }, animate: { opacity: 1 }, exit: { opacity: 0 } }, `action.label-${action.label.trim()}`)) }));
49
+ }) }))] }))] })) })) })));
47
50
  }
48
51
  export default memo(ActionIconColumn);
@@ -13,12 +13,14 @@ export declare function useActionCell({ actions, isDropdownShown, onCloseDropdow
13
13
  label: string;
14
14
  onClick: (e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
15
15
  onRightClick?: ((e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void) | undefined;
16
- icon: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard" | "viewApi" | "viewReceipt";
16
+ icon?: "brand" | "users" | "cancel" | "reverse" | "refund" | "destination" | "capture" | "flag" | "dispute" | "void" | "clock" | "invoice" | "clipboard" | "viewApi" | "viewReceipt" | undefined;
17
17
  isLoading?: boolean | undefined;
18
18
  isError?: boolean | undefined;
19
19
  isSuccess?: boolean | undefined;
20
20
  isShown?: boolean | undefined;
21
21
  hasActionMenu?: boolean | undefined;
22
+ iconSrc?: string | undefined;
23
+ customIcon?: React.ReactNode;
22
24
  }[];
23
25
  isAnyActionLoading: boolean;
24
26
  isAnyActionHasError: boolean;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { TableMode } from '../../../../types/index.js';
4
3
  export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
5
4
  tableMode?: TableMode | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
3
  export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -21,7 +21,7 @@ import { BalanceCellContainer, PercentageContainer } from './style';
21
21
  import { formatPercentage } from './utils';
22
22
  import { PiePercentage } from '../style';
23
23
  function BalanceCell(_a) {
24
- var { percentage, days, remainingAmount, currency } = _a, props = __rest(_a, ["percentage", "days", "remainingAmount", "currency"]);
24
+ var { percentage = 0, days, remainingAmount, currency } = _a, props = __rest(_a, ["percentage", "days", "remainingAmount", "currency"]);
25
25
  const theme = useTheme();
26
26
  const currencyIcon = _jsx(CurrencyIcon, { currency: currency });
27
27
  const { integerAmount, decimalAmount } = formatAmountWithCurrency(remainingAmount, currency);
@@ -1,3 +1,3 @@
1
1
  import { BalanceCellSheetProps } from './type';
2
- declare function BalanceCellSheet({ percentage, remainingAmount, currency, selectionProps }: BalanceCellSheetProps): import("react/jsx-runtime").JSX.Element | null;
2
+ declare function BalanceCellSheet({ remainingAmount, currency, selectionProps }: BalanceCellSheetProps): import("react/jsx-runtime").JSX.Element;
3
3
  export default BalanceCellSheet;
@@ -1,12 +1,10 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { CurrencyIcon, StatusChipWithCopy } from '../../../index.js';
3
3
  import { formatAmountWithCurrency } from '../../../../utils/index.js';
4
- function BalanceCellSheet({ percentage, remainingAmount, currency, selectionProps }) {
4
+ function BalanceCellSheet({ remainingAmount, currency, selectionProps }) {
5
5
  const currencyIcon = _jsx(CurrencyIcon, { currency: currency });
6
6
  const { integerAmount, decimalAmount } = formatAmountWithCurrency(remainingAmount, currency);
7
7
  const amount = `${integerAmount}.${decimalAmount}`;
8
- if (percentage === 0)
9
- return null;
10
- return (_jsxs(StatusChipWithCopy, Object.assign({ chipIndex: 0, copyText: `${integerAmount}.${decimalAmount}`, selectionProps: selectionProps }, { children: [percentage, "% | Remaining balance - ", currencyIcon, " ", amount] })));
8
+ return (_jsxs(StatusChipWithCopy, Object.assign({ chipIndex: 0, copyText: `${integerAmount}.${decimalAmount}`, selectionProps: selectionProps }, { children: [currencyIcon, " ", amount] })));
11
9
  }
12
10
  export default BalanceCellSheet;
@@ -1,4 +1,3 @@
1
1
  export { default as BalanceCell } from './BalanceCell';
2
2
  export { default as BalanceCellSheet } from './BalanceCellSheet';
3
- export { default as BalanceCellText } from './BalanceCellText';
4
3
  export * from './type';
@@ -1,4 +1,3 @@
1
1
  export { default as BalanceCell } from './BalanceCell';
2
2
  export { default as BalanceCellSheet } from './BalanceCellSheet';
3
- export { default as BalanceCellText } from './BalanceCellText';
4
3
  export * from './type';
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,7 +1,7 @@
1
1
  import { TableCellProps } from '@mui/material';
2
2
  import { SelectionProps } from '../../../../types/index.js';
3
3
  export interface BalanceCellCommonProps {
4
- percentage: number;
4
+ percentage?: number;
5
5
  remainingAmount?: number;
6
6
  currency?: string;
7
7
  }
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  id?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
3
  variant?: "Global" | "Regional" | "Local" | undefined;
5
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -39,12 +39,14 @@ export interface ActionCellProps extends TableCellProps {
39
39
  label: string;
40
40
  onClick: (e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
41
41
  onRightClick?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
42
- icon: ActionType;
42
+ icon?: ActionType;
43
43
  isLoading?: boolean;
44
44
  isError?: boolean;
45
45
  isSuccess?: boolean;
46
46
  isShown?: boolean;
47
47
  hasActionMenu?: boolean;
48
+ iconSrc?: string;
49
+ customIcon?: React.ReactNode;
48
50
  }>;
49
51
  flagTooltip?: React.ReactNode;
50
52
  flagsCount?: number;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  interface TableWrapperProps {
4
3
  showNoDataView?: boolean;
5
4
  }
@@ -555,3 +555,4 @@ export declare const activeGreenIcon: string;
555
555
  export declare const inActiveGreyIcon: string;
556
556
  export declare const terminalLinkVideo: string;
557
557
  export declare const bluePlusIcon: string;
558
+ export declare const blackSettingsVariant2Icon: string;
@@ -563,3 +563,4 @@ export const activeGreenIcon = `${lightUrl}/activeGreenIcon.svg`;
563
563
  export const inActiveGreyIcon = `${lightUrl}/inActiveGreyIcon.svg`;
564
564
  export const terminalLinkVideo = `${videosUrl}/terminal_link.mp4`;
565
565
  export const bluePlusIcon = `${lightUrl}/bluePlusIcon.svg`;
566
+ export const blackSettingsVariant2Icon = `${lightUrl}/blackSettingsVariant2Icon.svg`;
@@ -17,7 +17,7 @@ export declare const authorizationTableCellWidth: {
17
17
  readonly balance: {
18
18
  readonly default: "60px";
19
19
  readonly text: "60px";
20
- readonly sheet: "250px";
20
+ readonly sheet: "125px";
21
21
  };
22
22
  readonly product: {
23
23
  readonly default: "85px";
@@ -185,7 +185,7 @@ export declare const authorizationTableCellWidth: {
185
185
  readonly sheet: "270px";
186
186
  };
187
187
  readonly brand: {
188
- readonly default: "116px";
188
+ readonly default: "125px";
189
189
  readonly text: "116px";
190
190
  readonly sheet: "116px";
191
191
  };
@@ -17,7 +17,7 @@ export const authorizationTableCellWidth = {
17
17
  balance: {
18
18
  default: '60px',
19
19
  text: '60px',
20
- sheet: '250px',
20
+ sheet: '125px',
21
21
  },
22
22
  product: {
23
23
  default: '85px',
@@ -185,7 +185,7 @@ export const authorizationTableCellWidth = {
185
185
  sheet: '270px',
186
186
  },
187
187
  brand: {
188
- default: '116px',
188
+ default: '125px',
189
189
  text: '116px',
190
190
  sheet: '116px',
191
191
  },
@@ -285,7 +285,7 @@ export declare const chargeTableCellWidth: {
285
285
  readonly sheet: "145px";
286
286
  };
287
287
  readonly brand: {
288
- readonly default: "116px";
288
+ readonly default: "125px";
289
289
  readonly text: "116px";
290
290
  readonly sheet: "116px";
291
291
  };
@@ -285,7 +285,7 @@ export const chargeTableCellWidth = {
285
285
  sheet: '145px',
286
286
  },
287
287
  brand: {
288
- default: '116px',
288
+ default: '125px',
289
289
  text: '116px',
290
290
  sheet: '116px',
291
291
  },
@@ -125,7 +125,7 @@ export declare const destinationsTableCellWidth: {
125
125
  readonly sheet: "180px";
126
126
  };
127
127
  readonly brand: {
128
- readonly default: "116px";
128
+ readonly default: "125px";
129
129
  readonly text: "116px";
130
130
  readonly sheet: "116px";
131
131
  };
@@ -125,7 +125,7 @@ export const destinationsTableCellWidth = {
125
125
  sheet: '180px',
126
126
  },
127
127
  brand: {
128
- default: '116px',
128
+ default: '125px',
129
129
  text: '116px',
130
130
  sheet: '116px',
131
131
  },
@@ -132,7 +132,7 @@ export declare const refundTableCellWidth: {
132
132
  readonly balance: {
133
133
  readonly default: "120px";
134
134
  readonly text: "150px";
135
- readonly sheet: "280px";
135
+ readonly sheet: "125px";
136
136
  };
137
137
  readonly status: {
138
138
  readonly default: "100px";
@@ -220,7 +220,7 @@ export declare const refundTableCellWidth: {
220
220
  readonly sheet: "250px";
221
221
  };
222
222
  readonly brand: {
223
- readonly default: "116px";
223
+ readonly default: "125px";
224
224
  readonly text: "116px";
225
225
  readonly sheet: "116px";
226
226
  };
@@ -132,7 +132,7 @@ export const refundTableCellWidth = {
132
132
  balance: {
133
133
  default: '120px',
134
134
  text: '150px',
135
- sheet: '280px',
135
+ sheet: '125px',
136
136
  },
137
137
  status: {
138
138
  default: '100px',
@@ -220,7 +220,7 @@ export const refundTableCellWidth = {
220
220
  sheet: '250px',
221
221
  },
222
222
  brand: {
223
- default: '116px',
223
+ default: '125px',
224
224
  text: '116px',
225
225
  sheet: '116px',
226
226
  },
@@ -5,6 +5,7 @@ import { TableHeadProps } from '@mui/material/TableHead';
5
5
  import { TableRowProps } from '@mui/material/TableRow';
6
6
  import { DragControls } from 'framer-motion';
7
7
  import { CustomColumnFilterProps } from '../components/VirtualTables';
8
+ import { ActionCellProps } from '../components/index.js';
8
9
  import { Country } from './appConfig';
9
10
  import { SortingOrder } from './sort';
10
11
  export interface TableFilters<T> {
@@ -152,3 +153,11 @@ export type IColumnFilter = ({
152
153
  isOnlyOneFilter?: boolean;
153
154
  wrapperSx?: SxProps;
154
155
  } & (IColumnFilterList | IColumnFilterInputs | IColumnFilterCustom));
156
+ type ActionCellActionProps = Exclude<ActionCellProps['actions'], undefined>[number];
157
+ export interface TableNavigation {
158
+ label: string;
159
+ onClick: (e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
160
+ onRightClick: (e: React.MouseEvent<HTMLLIElement, MouseEvent>) => void;
161
+ icon?: ActionCellActionProps['icon'];
162
+ }
163
+ export {};
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.219",
5
- "testVersion": 0,
4
+ "version": "0.1.221-test.1-test.2-test.3",
5
+ "testVersion": 3,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -163,4 +163,4 @@
163
163
  "publishConfig": {
164
164
  "registry": "https://registry.npmjs.org/"
165
165
  }
166
- }
166
+ }
@@ -1,3 +0,0 @@
1
- import { BalanceCellProps } from './type';
2
- declare function BalanceCellText({ percentage, days, remainingAmount, currency, ...props }: BalanceCellProps): import("react/jsx-runtime").JSX.Element | null;
3
- export default BalanceCellText;
@@ -1,44 +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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useMemo } from 'react';
14
- import { useTheme } from '@mui/material/styles';
15
- import Tooltip from '../../../Tooltip';
16
- import { TableCell } from '../../../TableCells';
17
- import { CurrencyIcon } from '../../../index.js';
18
- import { formatAmountWithCurrency } from '../../../../utils/index.js';
19
- import { BalanceCellContainer } from './style';
20
- import { TextLabel } from '../style';
21
- function BalanceCellText(_a) {
22
- var { percentage, days, remainingAmount, currency } = _a, props = __rest(_a, ["percentage", "days", "remainingAmount", "currency"]);
23
- const theme = useTheme();
24
- const currencyIcon = _jsx(CurrencyIcon, { currency: currency });
25
- const { integerAmount, decimalAmount } = formatAmountWithCurrency(remainingAmount, currency);
26
- const amount = `${integerAmount}.${decimalAmount}`;
27
- const generatedTooltip = useMemo(() => {
28
- return (_jsxs(_Fragment, { children: ["Remaining Authorized Balance - ", currencyIcon, " ", amount] }));
29
- }, [remainingAmount, currency]);
30
- if (percentage === 0)
31
- return null;
32
- return (_jsx(TableCell, Object.assign({}, props, { children: _jsx("div", Object.assign({ style: {
33
- display: 'flex',
34
- alignItems: 'center',
35
- justifyContent: 'flex-start',
36
- gap: '8px',
37
- } }, { children: _jsx(Tooltip, Object.assign({ title: generatedTooltip }, { children: _jsx(BalanceCellContainer, Object.assign({ whileHover: ['animate', 'fadeIn'], animate: "start", sx: {
38
- zIndex: 22,
39
- height: 'auto',
40
- padding: '0',
41
- backgroundColor: `${theme.palette.grey.A700}1a`,
42
- } }, { children: _jsxs(TextLabel, { children: [percentage, "%"] }) })) })) })) })));
43
- }
44
- export default BalanceCellText;