@tap-payments/os-micro-frontend-shared 0.1.27 → 0.1.28

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,4 +1,4 @@
1
- import { TableCellWidthProps } from '../types/index.js';
1
+ import { TableCellWidthProps, TableMode } from '../types/index.js';
2
2
  export declare const getColumnWidthPercentage: (widthInPx: number, options?: {
3
3
  isFirst?: boolean;
4
4
  isLast?: boolean;
@@ -6,4 +6,4 @@ export declare const getColumnWidthPercentage: (widthInPx: number, options?: {
6
6
  export declare const getCellWidth: ({ table, cellID, tableMode }: TableCellWidthProps) => string;
7
7
  export declare const calculateMaxAllowedRows: (isLoaded: boolean, isLoading: boolean) => number;
8
8
  export declare const isHeightNotFullyFilledByRows: (totalRows: number) => boolean;
9
- export declare const getTableMode: (isSheetShown?: boolean) => "sheet" | "default";
9
+ export declare const isTableDefaultMode: (tableMode?: TableMode) => boolean;
@@ -73,6 +73,6 @@ export const isHeightNotFullyFilledByRows = (totalRows) => {
73
73
  const allowedRows = maxRowsThatFit();
74
74
  return totalRows < allowedRows + 1;
75
75
  };
76
- export const getTableMode = (isSheetShown = false) => {
77
- return isSheetShown ? 'sheet' : 'default';
76
+ export const isTableDefaultMode = (tableMode = 'default') => {
77
+ return tableMode === 'default';
78
78
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
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.27",
4
+ "version": "0.1.28",
5
5
  "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",