@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.
@@ -1,2 +1,2 @@
1
1
  export * from './context';
2
- export { ConfirmDialogProvider } from './Provider';
2
+ export * from './Provider';
@@ -1,2 +1,2 @@
1
1
  export * from './context';
2
- export { ConfirmDialogProvider } from './Provider';
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 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;
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
- function ActionCell(_a) {
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 '../type';
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 '../../../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';
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 type { ActionCellProps } from '../type';
3
- import { TableMode } from '../../../../types/index.js';
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 '../../../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';
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 +1,3 @@
1
1
  export { default as ActionIconsVariants } from './ActionIconsVariants';
2
+ export { default as ActionsColumn } from './ActionsColumn';
3
+ export { default as ActionIconColumn } from './ActionIconColumn';
@@ -1 +1,3 @@
1
1
  export { default as ActionIconsVariants } from './ActionIconsVariants';
2
+ export { default as ActionsColumn } from './ActionsColumn';
3
+ export { default as ActionIconColumn } from './ActionIconColumn';
@@ -1,5 +1,3 @@
1
- export { default as ActionCell } from './ActionCell';
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 { default as ActionCell } from './ActionCell';
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 { AmountConversionTooltipLabel } from './components';
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 { AmountConversionTooltipLabel } from './components';
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 { generateDestinationTooltip } from './utils';
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 { generateDestinationTooltip } from './utils';
4
+ export * from './utils';
@@ -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, boolean | string | string[] | Record<string, boolean> | Record<string, 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.155",
5
- "testVersion": 3,
4
+ "version": "0.1.156",
5
+ "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",