@tap-payments/os-micro-frontend-shared 0.0.47 → 0.0.49

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.
@@ -24,7 +24,11 @@ const GroupIconChips = ({ children, className, getSourceAnimation, expandDirecti
24
24
  getSourceAnimation,
25
25
  expandDirection }));
26
26
  }), [children, getSourceAnimation, sourceCount, expandDirection]);
27
- return (_jsx(StyledSourceCell, Object.assign({ "data-testid": "styled-source-cell", sx: Object.assign({}, cellDimentions) }, { children: _jsx(SourcesContainer, Object.assign({ ref: animationContainerRef, id: "test", layout: true, className: className, whileHover: "animate", animate: "start", sourcesCount: sourceCount, variants: { animate: { width: sourceCount * (6 + 32) } }, style: {
27
+ return (_jsx(StyledSourceCell, Object.assign({ "data-testid": "styled-source-cell", sx: Object.assign({}, cellDimentions) }, { children: _jsx(SourcesContainer, Object.assign({ ref: animationContainerRef, layout: true, className: className, whileHover: "animate", animate: "start", sourcesCount: sourceCount, variants: {
28
+ animate: {
29
+ width: sourceCount * (6 + 32),
30
+ },
31
+ }, style: {
28
32
  zIndex: 29,
29
33
  } }, { children: overrideChildren })) })));
30
34
  };
@@ -39,7 +39,7 @@ export const StyledSourceCell = styled('span')(({ theme }) => ({
39
39
  gap: theme.spacing(1),
40
40
  position: 'relative',
41
41
  }));
42
- export const SourcesContainer = styled(motion.span)(({ theme, sourcesCount }) => ({
42
+ export const SourcesContainer = styled(motion.span)(({ sourcesCount }) => ({
43
43
  display: 'flex',
44
44
  alignItems: 'center',
45
45
  justifyContent: 'flex-start',
@@ -47,7 +47,7 @@ export const SourcesContainer = styled(motion.span)(({ theme, sourcesCount }) =>
47
47
  minWidth: `${sourcesCount * 6 + 36}px `,
48
48
  minHeight: '24px',
49
49
  cursor: 'pointer',
50
- backgroundColor: theme.palette.background.paper,
50
+ backgroundColor: 'transparent',
51
51
  borderRadius: '16px',
52
52
  }));
53
53
  export const defaultGetSourceAnimation = (params) => {
@@ -1,4 +1,5 @@
1
1
  export { default as TableHeader } from './TableHeader';
2
2
  export * from './style';
3
+ export * from './type';
3
4
  export { FiltersRow } from './FiltersRow';
4
5
  export * from './components';
@@ -1,4 +1,5 @@
1
1
  export { default as TableHeader } from './TableHeader';
2
2
  export * from './style';
3
+ export * from './type';
3
4
  export { FiltersRow } from './FiltersRow';
4
5
  export * from './components';
@@ -9,8 +9,8 @@ declare const viewsOptions: {
9
9
  custom: {};
10
10
  };
11
11
  export type View = keyof typeof viewsOptions;
12
- export type AvailableStatus = StatusButtonProps & {
13
- status: TableHeaderStatus | TableHeaderStatus[];
12
+ export type AvailableStatus<T = undefined> = StatusButtonProps & {
13
+ status: T | TableHeaderStatus | (TableHeaderStatus | T)[];
14
14
  };
15
15
  export interface TableHeaderProps {
16
16
  availableStatuses?: AvailableStatus[];
@@ -473,3 +473,4 @@ export declare const babyBlueCheckIcon: string;
473
473
  export declare const digitalReceiptIcon: string;
474
474
  export declare const bankNoteIcon: string;
475
475
  export declare const terminalDeviceFrame: string;
476
+ export declare const blackBrushIcon: string;
@@ -477,3 +477,4 @@ export const babyBlueCheckIcon = `${lightUrl}/babyBlueCheckIcon.svg`;
477
477
  export const digitalReceiptIcon = `${lightUrl}/digitalReceiptIcon.svg`;
478
478
  export const bankNoteIcon = `${lightUrl}/bankNoteIcon.svg`;
479
479
  export const terminalDeviceFrame = `${lightUrl}/terminalDeviceFrame.svg`;
480
+ export const blackBrushIcon = `${lightUrl}/blackBrushIcon.svg`;
@@ -17,7 +17,7 @@ export interface TableStatus<T> {
17
17
  filterStatus: T;
18
18
  totalCount?: number;
19
19
  }
20
- export type TableHeaderStatus = 'all' | 'initiated' | 'captured' | 'unCaptured' | 'inProgress' | 'abandoned' | 'cancelled' | 'reversed' | 'unsettled' | 'unauthorized' | 'completed' | 'authorized' | 'refunded' | 'paidOut' | 'pending' | 'cleared' | 'open' | 'revered' | 'unauthenticated' | 'authenticated' | 'issued' | 'drafted' | 'scheduled' | 'paid' | 'outstanding' | 'draft' | 'expired' | 'transacted' | 'settled' | 'unSettled' | 'summary' | 'chargeSettlements' | 'refundSettlements' | 'destinationSettlements' | 'chargebackSettlements' | 'used' | 'active' | 'expired' | 'consumed' | 'notActive' | 'signedUp' | undefined;
20
+ export type TableHeaderStatus = 'all' | 'initiated' | 'captured' | 'unCaptured' | 'inProgress' | 'abandoned' | 'cancelled' | 'reversed' | 'unsettled' | 'unauthorized' | 'completed' | 'authorized' | 'refunded' | 'paidOut' | 'pending' | 'cleared' | 'open' | 'revered' | 'unauthenticated' | 'authenticated' | 'issued' | 'drafted' | 'scheduled' | 'paid' | 'outstanding' | 'draft' | 'expired' | 'transacted' | 'settled' | 'unSettled' | 'summary' | 'chargeSettlements' | 'refundSettlements' | 'destinationSettlements' | 'chargebackSettlements' | 'used' | 'active' | 'expired' | 'consumed' | 'notActive' | 'signedUp' | (string & {}) | undefined;
21
21
  export interface IColumnProps<R = any> {
22
22
  header?: string | (() => React.ReactNode);
23
23
  render?: (props: IRenderAttr<R, IColumnProps<R>>) => React.ReactNode;
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.0.47",
4
+ "version": "0.0.49",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
7
7
  "module": "build/index.js",