@tap-payments/os-micro-frontend-shared 0.1.153-test.14 → 0.1.154
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 +3 -2
- package/build/components/TableCells/CustomCells/ActionCell/ActionCell.js +3 -2
- package/build/components/TableCells/CustomCells/ActionCell/{components/ActionIconColumn.d.ts → ActionIconColumn.d.ts} +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/{components/ActionIconColumn.js → ActionIconColumn.js} +7 -7
- package/build/components/TableCells/CustomCells/ActionCell/{components/ActionsColumn.d.ts → ActionsColumn.d.ts} +2 -2
- package/build/components/TableCells/CustomCells/ActionCell/{components/ActionsColumn.js → ActionsColumn.js} +7 -7
- package/build/components/TableCells/CustomCells/ActionCell/components/index.d.ts +0 -2
- package/build/components/TableCells/CustomCells/ActionCell/components/index.js +0 -2
- package/build/components/TableCells/CustomCells/ActionCell/index.d.ts +3 -1
- package/build/components/TableCells/CustomCells/ActionCell/index.js +3 -1
- 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/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './context';
|
|
2
|
-
export
|
|
2
|
+
export { ConfirmDialogProvider } from './Provider';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './context';
|
|
2
|
-
export
|
|
2
|
+
export { ConfirmDialogProvider } from './Provider';
|
|
@@ -3,5 +3,6 @@ import type { ActionCellProps } from '../type';
|
|
|
3
3
|
type Props = Readonly<ActionCellProps> & {
|
|
4
4
|
onJsonViewClick?: () => void;
|
|
5
5
|
};
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
declare function ActionCell({ flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown, row, showJsonViewer, isTextShown, showIdButton, rowId, onJsonViewClick, renderDropdown, ...props }: Props): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const _default: React.MemoExoticComponent<typeof ActionCell>;
|
|
8
|
+
export default _default;
|
|
@@ -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
|
+
function ActionCell(_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,4 +91,5 @@ export const ActionCell = memo((_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
|
-
}
|
|
94
|
+
}
|
|
95
|
+
export default memo(ActionCell);
|
|
@@ -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 type { ActionCellProps } from '../type';
|
|
3
|
+
import { TableMode } from '../../../../types/index.js';
|
|
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 { colorToVariant, flags } from './constant';
|
|
19
|
+
import { ActionCellContainer, ActionIcon } from './style';
|
|
20
|
+
import { BadgeWrapper, TextLabel } from '../style';
|
|
21
|
+
import StatusChip from '../../../StatusChip';
|
|
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,3 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as ActionCell } from './ActionCell';
|
|
2
|
+
export { default as ActionsColumn } from './ActionsColumn';
|
|
3
|
+
export { default as ActionIconColumn } from './ActionIconColumn';
|
|
2
4
|
export * from './components';
|
|
3
5
|
export * from './type';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as ActionCell } from './ActionCell';
|
|
2
|
+
export { default as ActionsColumn } from './ActionsColumn';
|
|
3
|
+
export { default as ActionIconColumn } from './ActionIconColumn';
|
|
2
4
|
export * from './components';
|
|
3
5
|
export * from './type';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as AmountCell } from './AmountCell';
|
|
2
|
-
export
|
|
2
|
+
export { AmountConversionTooltipLabel } 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 { AmountConversionTooltipLabel } 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 { generateDestinationTooltip } 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 { generateDestinationTooltip } from './utils';
|
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.154",
|
|
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
|
+
}
|