@tap-payments/os-micro-frontend-shared 0.1.104-test.1 → 0.1.104-test.3
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/utils/table.d.ts +3 -1
- package/build/utils/table.js +7 -1
- package/package.json +2 -2
package/build/utils/table.d.ts
CHANGED
|
@@ -6,4 +6,6 @@ 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 isTableDefaultMode: (tableMode
|
|
9
|
+
export declare const isTableDefaultMode: (tableMode: TableMode) => boolean;
|
|
10
|
+
export declare const isTableSheetMode: (tableMode: TableMode) => boolean;
|
|
11
|
+
export declare const isTableTextMode: (tableMode: TableMode) => boolean;
|
package/build/utils/table.js
CHANGED
|
@@ -73,6 +73,12 @@ export const isHeightNotFullyFilledByRows = (totalRows) => {
|
|
|
73
73
|
const allowedRows = maxRowsThatFit();
|
|
74
74
|
return totalRows < allowedRows + 1;
|
|
75
75
|
};
|
|
76
|
-
export const isTableDefaultMode = (tableMode
|
|
76
|
+
export const isTableDefaultMode = (tableMode) => {
|
|
77
77
|
return tableMode === 'default';
|
|
78
78
|
};
|
|
79
|
+
export const isTableSheetMode = (tableMode) => {
|
|
80
|
+
return tableMode === 'sheet';
|
|
81
|
+
};
|
|
82
|
+
export const isTableTextMode = (tableMode) => {
|
|
83
|
+
return tableMode === 'text';
|
|
84
|
+
};
|
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.104-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.104-test.3",
|
|
5
|
+
"testVersion": 3,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|