@tap-payments/os-micro-frontend-shared 0.1.58 → 0.1.59-test.1

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.
Files changed (40) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/AccountDropdown/style.d.ts +1 -1
  4. package/build/components/ActivityAreaChart/styles.d.ts +3 -3
  5. package/build/components/AppServices/style.d.ts +1 -1
  6. package/build/components/CircularProgressWithLabel/style.d.ts +1 -1
  7. package/build/components/DockButton/style.d.ts +1 -1
  8. package/build/components/FileUpload/style.d.ts +2 -2
  9. package/build/components/FileUploader/style.d.ts +1 -1
  10. package/build/components/IconWithLabel/style.d.ts +1 -1
  11. package/build/components/IconsDropdown/style.d.ts +2 -2
  12. package/build/components/JSONViewer/style.d.ts +1 -1
  13. package/build/components/LabeledIconDropdown/style.d.ts +3 -3
  14. package/build/components/MultiSelectWithSearch/style.d.ts +3 -3
  15. package/build/components/NestedDropdown/styles.d.ts +1 -1
  16. package/build/components/ProgressBar/style.d.ts +1 -1
  17. package/build/components/ProgressRing/style.d.ts +2 -2
  18. package/build/components/RFH/Inputs/SelectWithAccordion/style.d.ts +3 -3
  19. package/build/components/SelectDropdown/style.d.ts +1 -1
  20. package/build/components/SelectWithSearch/style.d.ts +3 -3
  21. package/build/components/StatusChipWithCopy/utils.d.ts +1 -1
  22. package/build/components/StatusLabel/style.d.ts +1 -1
  23. package/build/components/TableHeader/style.d.ts +1 -1
  24. package/build/components/Timepicker/style.d.ts +2 -2
  25. package/build/components/ToolbarIcon/ExpandButton/style.d.ts +1 -1
  26. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableHeaderCell.d.ts +1 -1
  27. package/build/components/VirtualTables/SheetViewVirtualTable/components/SheetViewTableHeaderCell.js +2 -3
  28. package/build/components/VirtualTables/SheetViewVirtualTable/style.js +0 -1
  29. package/build/components/VirtualTables/VirtualTable/VirtualTable.d.ts +1 -1
  30. package/build/components/VirtualTables/VirtualTable/VirtualTable.js +4 -2
  31. package/build/components/VirtualTables/components/TableFooter/style.d.ts +2 -2
  32. package/build/components/VirtualTables/components/TableRow.js +4 -8
  33. package/build/components/VirtualTables/components/style.d.ts +0 -2
  34. package/build/components/VirtualTables/components/style.js +3 -7
  35. package/build/components/Widget/style.d.ts +1 -1
  36. package/build/components/WindowAppIcon/style.d.ts +1 -1
  37. package/build/types/table.d.ts +1 -0
  38. package/build/utils/style.d.ts +3 -5
  39. package/build/utils/style.js +11 -27
  40. package/package.json +3 -3
@@ -14,11 +14,9 @@ interface GetSelectionStylesParams {
14
14
  type SelectionStyles = Record<string, string | Record<string, string>>;
15
15
  export declare const getSelectionStyles: ({ isSelected, isCellSelected, isColumnSelected, isRowSelected, isLastRow, }: GetSelectionStylesParams) => SelectionStyles;
16
16
  interface GetRowSelectionBorderStylesParams {
17
- isCellSelected: boolean;
18
- isNextCellSelected: boolean;
19
- effectiveLast: boolean;
17
+ effectiveFirst: boolean;
18
+ isPinnedStart: boolean;
20
19
  isPinnedEnd: boolean;
21
- colIndex: number;
22
20
  }
23
- export declare const getRowSelectionBorderStyles: ({ isCellSelected, isNextCellSelected, effectiveLast, isPinnedEnd, colIndex, }: GetRowSelectionBorderStylesParams) => SelectionStyles;
21
+ export declare const getRowSelectionBorderStyles: ({ effectiveFirst, isPinnedStart, isPinnedEnd }: GetRowSelectionBorderStylesParams) => SelectionStyles;
24
22
  export {};
@@ -37,16 +37,13 @@ const getRowSelectionStyles = () => ({
37
37
  },
38
38
  });
39
39
  const getSingleCellSelectionStyles = () => ({
40
- border: `1.5px solid ${SELECTION_COLORS.primary}`,
40
+ border: `${BORDER_STYLES.thin} solid ${SELECTION_COLORS.primary}`,
41
41
  backgroundColor: SELECTION_COLORS.background,
42
42
  color: SELECTION_COLORS.primary,
43
43
  borderRadius: '2px',
44
- '&:before': {
45
- border: `1.5px solid ${SELECTION_COLORS.primary}`,
46
- },
47
44
  });
48
45
  const getColumnSelectionStyles = (isLastRow) => {
49
- const borderWidth = getBorderWidthForColumn(isLastRow);
46
+ const borderWidth = getBorderWidthForColumn();
50
47
  const borderBottom = getBorderBottomForColumn(isLastRow);
51
48
  return {
52
49
  borderWidth,
@@ -57,31 +54,18 @@ const getColumnSelectionStyles = (isLastRow) => {
57
54
  minHeight: CELL_DIMENSIONS.minHeight,
58
55
  display: 'flex',
59
56
  alignItems: 'center',
60
- '&:before': {
61
- borderWidth,
62
- borderBottom: isLastRow
63
- ? `${BORDER_STYLES.thick} solid ${SELECTION_COLORS.primary}`
64
- : `${BORDER_STYLES.thin} solid ${SELECTION_COLORS.transparent}`,
65
- },
66
57
  };
67
58
  };
68
- const getBorderWidthForColumn = (isLastRow) => {
69
- const { none, thick } = BORDER_STYLES;
70
- return isLastRow ? `${none} ${thick} ${thick} ${thick}` : `${none} ${thick} ${none} ${thick}`;
59
+ const getBorderWidthForColumn = () => {
60
+ const { none, thin } = BORDER_STYLES;
61
+ return `${none} ${thin} ${thin} ${thin}`;
71
62
  };
72
63
  const getBorderBottomForColumn = (isLastRow) => {
73
64
  return isLastRow ? `${BORDER_STYLES.thick} solid ${SELECTION_COLORS.primary}` : `${BORDER_STYLES.thin} solid ${SELECTION_COLORS.border}`;
74
65
  };
75
- export const getRowSelectionBorderStyles = ({ isCellSelected, isNextCellSelected, effectiveLast, isPinnedEnd, colIndex, }) => (Object.assign(Object.assign(Object.assign({ borderRadius: '0px', '&:before': {
76
- border: 'none',
77
- }, '&:after': {
78
- border: 'none',
79
- }, border: `1.5px solid ${SELECTION_COLORS.primary}` }, (isCellSelected && Object.assign({ border: `1.5px solid ${SELECTION_COLORS.primary}` }, (isNextCellSelected && {
80
- borderRight: `1.5px solid ${SELECTION_COLORS.primary}`,
81
- })))), (isCellSelected &&
82
- colIndex > 0 && {
83
- borderLeft: `1.5px solid ${SELECTION_COLORS.primary}`,
84
- })), (effectiveLast &&
85
- isPinnedEnd && {
86
- borderRight: `2.5px solid ${SELECTION_COLORS.primary}`,
87
- })));
66
+ export const getRowSelectionBorderStyles = ({ effectiveFirst, isPinnedStart, isPinnedEnd }) => ({
67
+ borderTop: `${BORDER_STYLES.thin} solid ${SELECTION_COLORS.primary}`,
68
+ borderBottom: `${BORDER_STYLES.thin} solid ${SELECTION_COLORS.primary}`,
69
+ borderRight: isPinnedEnd ? `${BORDER_STYLES.thin} solid ${SELECTION_COLORS.primary}` : 'none',
70
+ borderLeft: isPinnedStart && effectiveFirst ? `${BORDER_STYLES.thin} solid ${SELECTION_COLORS.primary}` : 'none',
71
+ });
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.58",
5
- "testVersion": 0,
4
+ "version": "0.1.59-test.1",
5
+ "testVersion": 1,
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
+ }