@tap-payments/os-micro-frontend-shared 0.1.60-test.3 → 0.1.60-test.3-test.4

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 (42) 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/components/VirtualTable.js +1 -2
  29. package/build/components/VirtualTables/SheetViewVirtualTable/style.js +0 -1
  30. package/build/components/VirtualTables/components/TableFooter/style.d.ts +2 -2
  31. package/build/components/VirtualTables/components/TableRow.js +4 -8
  32. package/build/components/VirtualTables/components/style.d.ts +0 -2
  33. package/build/components/VirtualTables/components/style.js +3 -7
  34. package/build/components/Widget/style.d.ts +1 -1
  35. package/build/components/WindowAppIcon/style.d.ts +1 -1
  36. package/build/components/WindowSideBar/WindowSideBar.d.ts +7 -3
  37. package/build/constants/assets.d.ts +0 -1
  38. package/build/constants/assets.js +0 -1
  39. package/build/types/user.d.ts +2 -1
  40. package/build/utils/style.d.ts +3 -5
  41. package/build/utils/style.js +11 -27
  42. package/package.json +2 -2
@@ -107,7 +107,6 @@ export const checkIcon = `${appBaseUrl}/check.svg`;
107
107
  export const closeXIcon = `${appBaseUrl}/closeX.svg`;
108
108
  export const dragIcon = `${appBaseUrl}/drag.svg`;
109
109
  export const checkboxIcon = `${appBaseUrl}/checkboxIcon.svg`;
110
- export const whitePlusIcon = `${lightUrl}/plusWhite.svg`;
111
110
  export const protectIcon = `${appBaseUrl}/checkboxIcon.svg`;
112
111
  export const unisoIcon = `${lightUrl}/Uniso.svg`;
113
112
  export const addidasIcon = `${lightUrl}/addidas.svg`;
@@ -2,6 +2,7 @@ import { UserApp } from './apps';
2
2
  import { Brand } from './brand';
3
3
  import { Entity } from './entity';
4
4
  import { Merchant } from './merchant';
5
+ import { ACCOUNT_SECTION } from './account';
5
6
  import { Country } from './appConfig';
6
7
  export interface TextAndLang {
7
8
  lang: string;
@@ -160,7 +161,7 @@ export interface SegmentRole {
160
161
  role_id: string;
161
162
  }
162
163
  export interface UserSection {
163
- id: string;
164
+ id: ACCOUNT_SECTION;
164
165
  title?: string;
165
166
  icon?: string;
166
167
  }
@@ -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.60-test.3",
5
- "testVersion": 3,
4
+ "version": "0.1.60-test.3-test.4",
5
+ "testVersion": 4,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",