@tap-payments/os-micro-frontend-shared 0.1.155 → 0.1.156
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/ConfirmDialog/context/index.d.ts +1 -1
- package/build/components/ConfirmDialog/context/index.js +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/ActionCell.d.ts +2 -3
- package/build/components/TableCells/CustomCells/ActionCell/ActionCell.js +2 -3
- package/build/components/TableCells/CustomCells/ActionCell/{ActionIconColumn.d.ts → components/ActionIconColumn.d.ts} +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/{ActionIconColumn.js → components/ActionIconColumn.js} +7 -7
- package/build/components/TableCells/CustomCells/ActionCell/{ActionsColumn.d.ts → components/ActionsColumn.d.ts} +2 -2
- package/build/components/TableCells/CustomCells/ActionCell/{ActionsColumn.js → components/ActionsColumn.js} +7 -7
- package/build/components/TableCells/CustomCells/ActionCell/components/index.d.ts +2 -0
- package/build/components/TableCells/CustomCells/ActionCell/components/index.js +2 -0
- package/build/components/TableCells/CustomCells/ActionCell/index.d.ts +1 -3
- package/build/components/TableCells/CustomCells/ActionCell/index.js +1 -3
- package/build/components/TableCells/CustomCells/AmountCell/index.d.ts +1 -1
- package/build/components/TableCells/CustomCells/AmountCell/index.js +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/index.d.ts +1 -1
- package/build/components/TableCells/CustomCells/DestinationCell/index.js +1 -1
- package/build/types/table.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './context';
|
|
2
|
-
export
|
|
2
|
+
export * from './Provider';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './context';
|
|
2
|
-
export
|
|
2
|
+
export * from './Provider';
|
|
@@ -3,6 +3,5 @@ import type { ActionCellProps } from '../type';
|
|
|
3
3
|
type Props = Readonly<ActionCellProps> & {
|
|
4
4
|
onJsonViewClick?: () => void;
|
|
5
5
|
};
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
export default _default;
|
|
6
|
+
export declare const ActionCell: React.MemoExoticComponent<({ flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown, row, showJsonViewer, isTextShown, showIdButton, rowId, onJsonViewClick, renderDropdown, ...props }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export {};
|
|
@@ -24,7 +24,7 @@ import { useActionCell } from './hooks/useActionCell';
|
|
|
24
24
|
import { ActionCellContainer, ActionIcon, ActionsIconContainer } from './style';
|
|
25
25
|
import { IDButton } from '../IDButton';
|
|
26
26
|
import { BadgeWrapper, IdButtonContainer, TextLabel, TransparentButton } from '../style';
|
|
27
|
-
|
|
27
|
+
export const ActionCell = memo((_a) => {
|
|
28
28
|
var _b, _c;
|
|
29
29
|
var { flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown = true, row, showJsonViewer = true, isTextShown, showIdButton = true, rowId, onJsonViewClick, renderDropdown } = _a, props = __rest(_a, ["flag", "actions", "flagTooltip", "flagsCount", "dropdownAction", "onCloseDropdown", "isDropdownShown", "row", "showJsonViewer", "isTextShown", "showIdButton", "rowId", "onJsonViewClick", "renderDropdown"]);
|
|
30
30
|
const { t } = useTranslation();
|
|
@@ -91,5 +91,4 @@ function ActionCell(_a) {
|
|
|
91
91
|
(_a = action === null || action === void 0 ? void 0 : action.onRightClick) === null || _a === void 0 ? void 0 : _a.call(action, e);
|
|
92
92
|
handleClose();
|
|
93
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()}`)) }))) }))] }))] }))] }))] })) })));
|
|
94
|
-
}
|
|
95
|
-
export default memo(ActionCell);
|
|
94
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { ActionCellProps } from '
|
|
2
|
+
import type { ActionCellProps } from '../../type';
|
|
3
3
|
type ActionIconColumnProps = Readonly<Pick<ActionCellProps, 'actions' | 'dropdownAction' | 'onCloseDropdown' | 'isDropdownShown' | 'renderDropdown'>>;
|
|
4
4
|
declare function ActionIconColumn({ actions, dropdownAction, onCloseDropdown, isDropdownShown, renderDropdown, ...props }: ActionIconColumnProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
declare const _default: React.MemoExoticComponent<typeof ActionIconColumn>;
|
|
@@ -12,13 +12,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { memo } from 'react';
|
|
14
14
|
import { AnimatePresence } from 'framer-motion';
|
|
15
|
-
import Dropdown from '
|
|
16
|
-
import { TableCell } from '
|
|
17
|
-
import ActionIconsVariants from '
|
|
18
|
-
import { actionIcons } from '
|
|
19
|
-
import { useActionCell } from '
|
|
20
|
-
import { ActionIcon, ActionsIconContainer } from '
|
|
21
|
-
import { TransparentButton } from '
|
|
15
|
+
import Dropdown from '../../../../DropdownMenu';
|
|
16
|
+
import { TableCell } from '../../../../TableCells';
|
|
17
|
+
import ActionIconsVariants from '../components/ActionIconsVariants';
|
|
18
|
+
import { actionIcons } from '../constant';
|
|
19
|
+
import { useActionCell } from '../hooks/useActionCell';
|
|
20
|
+
import { ActionIcon, ActionsIconContainer } from '../style';
|
|
21
|
+
import { TransparentButton } from '../../style';
|
|
22
22
|
function ActionIconColumn(_a) {
|
|
23
23
|
var { actions, dropdownAction, onCloseDropdown, isDropdownShown = true, renderDropdown } = _a, props = __rest(_a, ["actions", "dropdownAction", "onCloseDropdown", "isDropdownShown", "renderDropdown"]);
|
|
24
24
|
const { open, anchorEl, filteredActions, isAnyActionLoading, isAnyActionHasError, isAnyActionSuccessful, areThereAnyShownActions, handleClick, handleClose, setAnchorEl, } = useActionCell({ actions, isDropdownShown, onCloseDropdown, renderDropdown });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
2
|
+
import { TableMode } from '../../../../../types/index.js';
|
|
3
|
+
import type { ActionCellProps } from '../../type';
|
|
4
4
|
type ActionsColumnProps = Readonly<Pick<ActionCellProps, 'flag' | 'flagTooltip' | 'flagsCount' | 'row' | 'showJsonViewer' | 'isTextShown' | 'showIdButton' | 'rowId'>> & {
|
|
5
5
|
onJsonViewClick?: () => void;
|
|
6
6
|
tableMode?: TableMode;
|
|
@@ -12,13 +12,13 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
13
|
import { memo } from 'react';
|
|
14
14
|
import { motion } from 'framer-motion';
|
|
15
|
-
import Tooltip from '
|
|
16
|
-
import { TableCell } from '
|
|
17
|
-
import StyledBadge, { BadgeVariants } from '
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
15
|
+
import Tooltip from '../../../../Tooltip';
|
|
16
|
+
import { TableCell } from '../../../../TableCells';
|
|
17
|
+
import StyledBadge, { BadgeVariants } from '../../../../CountBadge';
|
|
18
|
+
import StatusChip from '../../../../StatusChip';
|
|
19
|
+
import { colorToVariant, flags } from '../constant';
|
|
20
|
+
import { ActionCellContainer, ActionIcon } from '../style';
|
|
21
|
+
import { BadgeWrapper, TextLabel } from '../../style';
|
|
22
22
|
function ActionsColumn(_a) {
|
|
23
23
|
var _b, _c;
|
|
24
24
|
var { flag, flagTooltip, flagsCount, row, showJsonViewer = true, isTextShown, showIdButton = true, rowId, onJsonViewClick, tableMode } = _a, props = __rest(_a, ["flag", "flagTooltip", "flagsCount", "row", "showJsonViewer", "isTextShown", "showIdButton", "rowId", "onJsonViewClick", "tableMode"]);
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as ActionsColumn } from './ActionsColumn';
|
|
3
|
-
export { default as ActionIconColumn } from './ActionIconColumn';
|
|
1
|
+
export * from './ActionCell';
|
|
4
2
|
export * from './components';
|
|
5
3
|
export * from './type';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
export { default as ActionsColumn } from './ActionsColumn';
|
|
3
|
-
export { default as ActionIconColumn } from './ActionIconColumn';
|
|
1
|
+
export * from './ActionCell';
|
|
4
2
|
export * from './components';
|
|
5
3
|
export * from './type';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as AmountCell } from './AmountCell';
|
|
2
|
-
export
|
|
2
|
+
export * from './components';
|
|
3
3
|
export { default as AmountCellText } from './AmountCellText';
|
|
4
4
|
export { default as AmountCellSheet } from './AmountCellSheet';
|
|
5
5
|
export * from './style';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as AmountCell } from './AmountCell';
|
|
2
|
-
export
|
|
2
|
+
export * from './components';
|
|
3
3
|
export { default as AmountCellText } from './AmountCellText';
|
|
4
4
|
export { default as AmountCellSheet } from './AmountCellSheet';
|
|
5
5
|
export * from './style';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as DestinationCell } from './DestinationCell';
|
|
2
2
|
export { default as DestinationCellSheet } from './DestinationCellSheet';
|
|
3
3
|
export { default as DestinationCellText } from './DestinationCellText';
|
|
4
|
-
export
|
|
4
|
+
export * from './utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as DestinationCell } from './DestinationCell';
|
|
2
2
|
export { default as DestinationCellSheet } from './DestinationCellSheet';
|
|
3
3
|
export { default as DestinationCellText } from './DestinationCellText';
|
|
4
|
-
export
|
|
4
|
+
export * from './utils';
|
package/build/types/table.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ export interface IVirtualTable<R = any> {
|
|
|
140
140
|
isSheetView?: boolean;
|
|
141
141
|
isMinimized?: boolean;
|
|
142
142
|
}
|
|
143
|
-
export type ColumnFilterValues = Record<string,
|
|
143
|
+
export type ColumnFilterValues = Record<string, string | string[] | Record<string, boolean> | Record<string, string> | {
|
|
144
144
|
phone: string;
|
|
145
145
|
country: Country | undefined;
|
|
146
146
|
}>;
|
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.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.156",
|
|
5
|
+
"testVersion": 0,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|