@tap-payments/os-micro-frontend-shared 0.0.302 → 0.0.303-test.2

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.
@@ -3,6 +3,6 @@ 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;
6
+ declare function ActionCell({ flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown, row, showJsonViewer, isTextShown, showIdButton, rowId, onJsonViewClick, renderDropdown, render, ...props }: Props): import("react/jsx-runtime").JSX.Element;
7
7
  declare const _default: React.MemoExoticComponent<typeof ActionCell>;
8
8
  export default _default;
@@ -26,12 +26,12 @@ import { IDButton } from '../IDButton';
26
26
  import { BadgeWrapper, IdButtonContainer, TextLabel, TransparentButton } from '../style';
27
27
  function ActionCell(_a) {
28
28
  var _b, _c;
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"]);
29
+ var { flag, actions, flagTooltip, flagsCount, dropdownAction, onCloseDropdown, isDropdownShown = true, row, showJsonViewer = true, isTextShown, showIdButton = true, rowId, onJsonViewClick, renderDropdown, render } = _a, props = __rest(_a, ["flag", "actions", "flagTooltip", "flagsCount", "dropdownAction", "onCloseDropdown", "isDropdownShown", "row", "showJsonViewer", "isTextShown", "showIdButton", "rowId", "onJsonViewClick", "renderDropdown", "render"]);
30
30
  const { t } = useTranslation();
31
31
  const { open, anchorEl, filteredActions, isAnyActionLoading, isAnyActionHasError, isAnyActionSuccessful, areThereAnyShownActions, handleClick, handleClose, setAnchorEl, } = useActionCell({ actions, isDropdownShown, onCloseDropdown, renderDropdown });
32
32
  return (_jsx(TableCell, Object.assign({}, props, { sx: {
33
33
  overflow: 'visible',
34
- } }, { children: _jsxs(ActionCellContainer, Object.assign({ "data-testid": "ActionCell_ActionCellContainer" }, { children: [flag && (_jsx(_Fragment, { children: isTextShown ? (_jsx(Tooltip, Object.assign({ title: flagTooltip }, { children: _jsx(TextLabel, Object.assign({ "data-testid": "ActionCell_FlagLabel", sx: {
34
+ } }, { children: _jsxs(ActionCellContainer, Object.assign({ "data-testid": "ActionCell_ActionCellContainer" }, { children: [render && render, flag && (_jsx(_Fragment, { children: isTextShown ? (_jsx(Tooltip, Object.assign({ title: flagTooltip }, { children: _jsx(TextLabel, Object.assign({ "data-testid": "ActionCell_FlagLabel", sx: {
35
35
  textAlign: 'left',
36
36
  justifyContent: 'flex-start',
37
37
  } }, { children: flagTooltip })) }))) : (_jsx(Tooltip, Object.assign({ title: flagTooltip }, { children: _jsxs(BadgeWrapper, Object.assign({ "data-testid": "ActionCell_FlagBadge", sx: {
@@ -116,6 +116,7 @@ export interface ActionCellProps extends TableCellProps {
116
116
  isTextShown?: boolean;
117
117
  showIdButton?: boolean;
118
118
  renderDropdown?: (anchorEl: HTMLElement | null, setAnchorEl: (anchorEl: HTMLElement | null) => void) => React.ReactNode;
119
+ render?: JSX.Element;
119
120
  }
120
121
  export interface DeviceCellProps extends TableCellProps {
121
122
  deviceType?: 'DESKTOP' | 'PHONE' | 'TABLET';
@@ -77,7 +77,7 @@ export declare const chargeTableCellWidth: {
77
77
  readonly merchant: {
78
78
  readonly default: "100px";
79
79
  readonly text: "150px";
80
- readonly sheet: "190px";
80
+ readonly sheet: "215px";
81
81
  };
82
82
  readonly charge: {
83
83
  readonly default: "150px";
@@ -77,7 +77,7 @@ export const chargeTableCellWidth = {
77
77
  merchant: {
78
78
  default: '100px',
79
79
  text: '150px',
80
- sheet: '190px',
80
+ sheet: '215px',
81
81
  },
82
82
  charge: {
83
83
  default: '150px',
@@ -20,9 +20,9 @@ export declare const terminalsTableCellWidth: {
20
20
  readonly sheet: "80px";
21
21
  };
22
22
  readonly platform: {
23
- readonly default: "60px";
24
- readonly text: "60px";
25
- readonly sheet: "60px";
23
+ readonly default: "80px";
24
+ readonly text: "80px";
25
+ readonly sheet: "80px";
26
26
  };
27
27
  readonly branding: {
28
28
  readonly default: "80px";
@@ -20,9 +20,9 @@ export const terminalsTableCellWidth = {
20
20
  sheet: '80px',
21
21
  },
22
22
  platform: {
23
- default: '60px',
24
- text: '60px',
25
- sheet: '60px',
23
+ default: '80px',
24
+ text: '80px',
25
+ sheet: '80px',
26
26
  },
27
27
  branding: {
28
28
  default: '80px',
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.0.302",
5
- "testVersion": 6,
4
+ "version": "0.0.303-test.2",
5
+ "testVersion": 2,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -131,4 +131,4 @@
131
131
  "publishConfig": {
132
132
  "registry": "https://registry.npmjs.org/"
133
133
  }
134
- }
134
+ }