@tap-payments/os-micro-frontend-shared 0.1.277-test.3 → 0.1.278

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 (60) hide show
  1. package/build/components/Chip/style.d.ts +1 -0
  2. package/build/components/CountBadge/style.d.ts +1 -0
  3. package/build/components/CountryFilter/index.d.ts +2 -1
  4. package/build/components/CountryFilter/index.js +2 -1
  5. package/build/components/Dialog/style.d.ts +1 -0
  6. package/build/components/FlippingCard/style.d.ts +1 -0
  7. package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
  8. package/build/components/JSONViewer/style.d.ts +1 -0
  9. package/build/components/LeftPeekRightExpandingChip/style.d.ts +1 -0
  10. package/build/components/PhoneFilter/index.d.ts +2 -1
  11. package/build/components/PhoneFilter/index.js +2 -1
  12. package/build/components/RightLeftExpandingCenterChip/style.d.ts +1 -0
  13. package/build/components/SearchButton/styles.d.ts +1 -0
  14. package/build/components/StatusButton/constant.d.ts +2 -0
  15. package/build/components/StatusButton/constant.js +3 -1
  16. package/build/components/StatusButton/style.d.ts +1 -1
  17. package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
  18. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
  19. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
  20. package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -0
  21. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
  22. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +1 -0
  23. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
  24. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
  25. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
  26. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
  27. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
  28. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
  29. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
  30. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
  31. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
  32. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
  33. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
  34. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
  35. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
  36. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
  37. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
  38. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
  39. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +1 -0
  40. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
  41. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +1 -0
  42. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
  43. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
  44. package/build/components/TableCells/CustomCells/style.d.ts +1 -0
  45. package/build/components/VirtualTables/components/style.d.ts +1 -0
  46. package/build/components/index.d.ts +2 -4
  47. package/build/components/index.js +2 -4
  48. package/package.json +3 -3
  49. package/build/components/Filters/index.d.ts +0 -1
  50. package/build/components/Filters/index.js +0 -1
  51. package/build/components/Filters/style.d.ts +0 -15
  52. package/build/components/Filters/style.js +0 -51
  53. package/build/components/StatusFilter/StatusFilter.d.ts +0 -16
  54. package/build/components/StatusFilter/StatusFilter.js +0 -88
  55. package/build/components/StatusFilter/index.d.ts +0 -1
  56. package/build/components/StatusFilter/index.js +0 -1
  57. package/build/components/StatusFilter/type.d.ts +0 -5
  58. package/build/components/StatusFilter/type.js +0 -6
  59. package/build/components/StatusFilter/utils.d.ts +0 -4
  60. package/build/components/StatusFilter/utils.js +0 -10
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import { GetSourceAnimationFunction } from './type';
3
4
  export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
5
  variant?: import("./type").ChipVariant | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const AgreementImageWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1 +1,2 @@
1
- export { default as CountryFilter } from './CountryFilter';
1
+ import CountryFilter from './CountryFilter';
2
+ export default CountryFilter;
@@ -1 +1,2 @@
1
- export { default as CountryFilter } from './CountryFilter';
1
+ import CountryFilter from './CountryFilter';
2
+ export default CountryFilter;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DialogWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const FOOTER_HEIGHT = 37;
3
4
  export declare const TITLE_BAR_HEIGHT = "32px";
4
5
  export declare const VIEWER_HEIGHT = 545;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import type { SxProps, Theme } from '@mui/material/styles';
3
4
  export declare const CHIP_GAP = 3;
4
5
  export declare const DEFAULT_CHIP_MIN_WIDTH = 24;
@@ -1 +1,2 @@
1
- export { default as PhoneFilter } from './PhoneFilter';
1
+ import PhoneFilter from './PhoneFilter';
2
+ export default PhoneFilter;
@@ -1 +1,2 @@
1
- export { default as PhoneFilter } from './PhoneFilter';
1
+ import PhoneFilter from './PhoneFilter';
2
+ export default PhoneFilter;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import type { SxProps, Theme } from '@mui/material/styles';
3
4
  export declare const CHIP_GAP = 3;
4
5
  export declare const CenterIconWrapper: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
3
4
  width?: string | number | undefined;
4
5
  height?: string | number | undefined;
@@ -21,4 +21,6 @@ export declare const statusButtonIcons: {
21
21
  checked: string;
22
22
  dashedChecked: string;
23
23
  deactivated: string;
24
+ destination: string;
25
+ destinationReversed: string;
24
26
  };
@@ -1,4 +1,4 @@
1
- import { initiatedIcon, abandonedIcon, cancelledIcon, reportsIcon, searchIcon, chevronDownIcon, unAuthorizedIcon, settlementInitiatedIcon, unCapturedIcon, capturedIcon, authorizedIcon, openFlagIcon, closedFlagIcon, reverseActionIcon, authenticatedIcon, unauthenticatedIcon, paidOutFilterIcon, scheduledFilterIcon, completedBlackIcon, dashedCheckIcon, deactivatedIcon,
1
+ import { initiatedIcon, abandonedIcon, cancelledIcon, reportsIcon, searchIcon, chevronDownIcon, unAuthorizedIcon, settlementInitiatedIcon, unCapturedIcon, capturedIcon, authorizedIcon, openFlagIcon, closedFlagIcon, reverseActionIcon, authenticatedIcon, unauthenticatedIcon, paidOutFilterIcon, scheduledFilterIcon, completedBlackIcon, dashedCheckIcon, deactivatedIcon, destinationsServiceIcon, destinationWithoutBackgroundIcon,
2
2
  // trashBinIcon,
3
3
  } from '../../constants/index.js';
4
4
  export const statusButtonIcons = {
@@ -24,4 +24,6 @@ export const statusButtonIcons = {
24
24
  checked: completedBlackIcon,
25
25
  dashedChecked: dashedCheckIcon,
26
26
  deactivated: deactivatedIcon,
27
+ destination: destinationsServiceIcon,
28
+ destinationReversed: destinationWithoutBackgroundIcon,
27
29
  };
@@ -21,7 +21,7 @@ export declare const CountBadge: import("@emotion/styled").StyledComponent<impor
21
21
  }, {}, {}>;
22
22
  export declare const StatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
23
23
  variant: StatusButtonVariant;
24
- icon?: "search" | "scheduled" | "paidOut" | "reversed" | "checked" | "inProgress" | "initiated" | "abandoned" | "cancelled" | "reports" | "chevronDown" | "unAuthorized" | "unSettled" | "unCaptured" | "captured" | "authorized" | "openFlag" | "closedFlag" | "unauthenticated" | "authenticated" | "dashedChecked" | "deactivated" | undefined;
24
+ icon?: "search" | "scheduled" | "paidOut" | "destination" | "reversed" | "checked" | "inProgress" | "initiated" | "abandoned" | "cancelled" | "reports" | "chevronDown" | "unAuthorized" | "unSettled" | "unCaptured" | "captured" | "authorized" | "openFlag" | "closedFlag" | "unauthenticated" | "authenticated" | "dashedChecked" | "deactivated" | "destinationReversed" | undefined;
25
25
  }, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
26
26
  export declare const StyledFilterName: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
27
27
  export declare const StyledDropdown: import("@emotion/styled").StyledComponent<import("../DropdownMenu").IProps & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  import { TableMode } from '../../../../types/index.js';
3
4
  export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
4
5
  tableMode?: TableMode | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
3
4
  export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Button: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
4
5
  hidden?: boolean | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
3
4
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
5
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
3
4
  width?: string | number | undefined;
4
5
  height?: string | number | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  color?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
3
4
  variant?: "Global" | "Regional" | "Local" | undefined;
4
5
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  interface TableWrapperProps {
3
4
  showNoDataView?: boolean;
4
5
  }
@@ -129,8 +129,8 @@ export * from './VAT';
129
129
  export * from './Discount';
130
130
  export * from './MerchantLogo';
131
131
  export * from './FilterDropdown';
132
- export * from './PhoneFilter';
133
- export * from './CountryFilter';
132
+ export { default as PhoneFilter } from './PhoneFilter';
133
+ export { default as CountryFilter } from './CountryFilter';
134
134
  export * from './Customer';
135
135
  export * from './MerchantCurrencyDropdown';
136
136
  export * from './OpenFileInNewTab';
@@ -139,5 +139,3 @@ export * from './FileInputPreview';
139
139
  export * from './ReceiptsViewer';
140
140
  export * from './MerchantsDropdown';
141
141
  export * from './ViewColumnRadioFilter';
142
- export * from './Filters';
143
- export * from './StatusFilter';
@@ -129,8 +129,8 @@ export * from './VAT';
129
129
  export * from './Discount';
130
130
  export * from './MerchantLogo';
131
131
  export * from './FilterDropdown';
132
- export * from './PhoneFilter';
133
- export * from './CountryFilter';
132
+ export { default as PhoneFilter } from './PhoneFilter';
133
+ export { default as CountryFilter } from './CountryFilter';
134
134
  export * from './Customer';
135
135
  export * from './MerchantCurrencyDropdown';
136
136
  export * from './OpenFileInNewTab';
@@ -139,5 +139,3 @@ export * from './FileInputPreview';
139
139
  export * from './ReceiptsViewer';
140
140
  export * from './MerchantsDropdown';
141
141
  export * from './ViewColumnRadioFilter';
142
- export * from './Filters';
143
- export * from './StatusFilter';
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.277-test.3",
5
- "testVersion": 3,
4
+ "version": "0.1.278",
5
+ "testVersion": 0,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -164,4 +164,4 @@
164
164
  "publishConfig": {
165
165
  "registry": "https://registry.npmjs.org/"
166
166
  }
167
- }
167
+ }
@@ -1 +0,0 @@
1
- export * from './style';
@@ -1 +0,0 @@
1
- export * from './style';
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const FilterTitle: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
3
- ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
4
- }, "width" | "minHeight" | "height" | "bottom" | "left" | "right" | "top" | "border" | "boxShadow" | "fontWeight" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "classes" | "align" | "className" | "style" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping"> & {
5
- component?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
6
- } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
- export declare const FilterFooter: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
- ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
9
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
- export declare const FilterOkayButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
11
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
12
- }, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
13
- export declare const FilterCancelButton: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
14
- ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
15
- }, "color" | "disabled" | "classes" | "className" | "style" | "tabIndex" | "children" | "sx" | "variant" | "size" | "fullWidth" | "href" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "startIcon"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,51 +0,0 @@
1
- import { Box, Button, styled } from '@mui/material';
2
- import { Text } from '../index.js';
3
- export const FilterTitle = styled(Text)(({ theme }) => ({
4
- fontWeight: theme.typography.fontWeightMedium,
5
- fontSize: theme.typography.subtitle1.fontSize,
6
- color: theme.palette.grey[700],
7
- paddingInlineStart: theme.spacing(2),
8
- paddingTop: theme.spacing(1),
9
- paddingBottom: theme.spacing(1),
10
- paddingInlineEnd: theme.spacing(1),
11
- borderBottom: `1px solid ${theme.palette.divider}`,
12
- }));
13
- export const FilterFooter = styled(Box)(({ theme }) => ({
14
- padding: '8px 16px',
15
- display: 'flex',
16
- gap: '8px',
17
- justifyContent: 'center',
18
- position: 'sticky',
19
- bottom: 0,
20
- backgroundColor: 'white',
21
- zIndex: 99999,
22
- borderTop: `1px solid ${theme.palette.divider}`,
23
- }));
24
- export const FilterOkayButton = styled(Button)(({ theme }) => ({
25
- textTransform: 'capitalize',
26
- minWidth: 'auto',
27
- width: 74,
28
- borderRadius: '4px',
29
- border: `1px solid ${theme.palette.info.dark}`,
30
- backgroundColor: theme.palette.info.dark,
31
- fontWeight: 700,
32
- fontSize: '11px',
33
- color: theme.palette.common.white,
34
- '&:hover': {
35
- backgroundColor: theme.palette.info.dark,
36
- },
37
- }));
38
- export const FilterCancelButton = styled(Button)(({ theme }) => ({
39
- textTransform: 'capitalize',
40
- minWidth: 'auto',
41
- width: 74,
42
- borderRadius: '4px',
43
- border: `1px solid ${theme.palette.divider}`,
44
- backgroundColor: theme.palette.common.white,
45
- fontWeight: 500,
46
- fontSize: '11px',
47
- color: theme.palette.text.primary,
48
- '&:hover': {
49
- background: 'transparent',
50
- },
51
- }));
@@ -1,16 +0,0 @@
1
- import { CustomColumnFilterProps } from '../VirtualTables';
2
- import { StatusValue } from './type';
3
- import { ColumnFilterValues } from '../../types/index.js';
4
- interface StatusFilterProps extends CustomColumnFilterProps {
5
- options: {
6
- icon: string;
7
- label: string;
8
- value: string;
9
- }[];
10
- apiKey?: string;
11
- initialStatuses?: Record<string, StatusValue>;
12
- onClear: (apiKeys: string[]) => void;
13
- onConfirm: (filterValues: ColumnFilterValues) => void;
14
- }
15
- export default function StatusFilter({ anchorEl, options, apiKey, initialStatuses, onCloseDropdown, onClear, onConfirm, }: Readonly<StatusFilterProps>): import("react/jsx-runtime").JSX.Element;
16
- export {};
@@ -1,88 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useCallback, useRef, useState } from 'react';
3
- import { useTranslation } from 'react-i18next';
4
- import Box from '@mui/material/Box';
5
- import { Menu, MenuItem, RadioGroup } from '../index.js';
6
- import { FilterCancelButton, FilterFooter, FilterOkayButton, FilterTitle } from '../Filters';
7
- import { rightArrow } from '../../constants/index.js';
8
- import { ClickAwayListener, Popper } from '@mui/material';
9
- import { StatusValue } from './type';
10
- import { getInitialStatuses } from './utils';
11
- export default function StatusFilter({ anchorEl, options, apiKey = 'statuses', initialStatuses, onCloseDropdown, onClear, onConfirm, }) {
12
- const open = Boolean(anchorEl);
13
- const { t } = useTranslation();
14
- const [statuses, setStatuses] = useState(() => {
15
- return getInitialStatuses(initialStatuses, options);
16
- });
17
- const containerRef = useRef(null);
18
- const [childAnchorEl, setChildAnchorEl] = useState(null);
19
- const [hoveredStatus, setHoveredStatus] = useState(null);
20
- const onChildMouseOver = (event, status) => {
21
- setChildAnchorEl(event.currentTarget);
22
- setHoveredStatus(status);
23
- };
24
- const onChildLeave = useCallback(() => {
25
- setChildAnchorEl(null);
26
- setHoveredStatus(null);
27
- }, []);
28
- const onCloseDropdowns = useCallback((e) => {
29
- onCloseDropdown(e);
30
- onChildLeave();
31
- }, [onChildLeave, onCloseDropdown]);
32
- const handleOkButtonClick = (e) => {
33
- const newStatuses = Object.keys(statuses).reduce((acc, key) => {
34
- const value = statuses[key];
35
- if (value !== StatusValue.ALL) {
36
- acc[key] = value;
37
- }
38
- return acc;
39
- }, {});
40
- const isAllStatuses = Object.values(statuses).every((value) => value === StatusValue.ALL);
41
- if (isAllStatuses) {
42
- // when all statuses are selected as `all`, remove the active filter icon if it exists
43
- onClear([apiKey]);
44
- }
45
- else {
46
- onConfirm({ [apiKey]: newStatuses });
47
- }
48
- onCloseDropdown(e);
49
- };
50
- const onClickStatus = (value) => {
51
- if (hoveredStatus) {
52
- setStatuses((prev) => (Object.assign(Object.assign({}, prev), { [hoveredStatus]: value })));
53
- }
54
- };
55
- return (_jsx(ClickAwayListener, Object.assign({ onClickAway: (e) => {
56
- e.stopPropagation();
57
- onCloseDropdown(e);
58
- } }, { children: _jsxs(Box, Object.assign({ ref: containerRef }, { children: [_jsxs(Menu, Object.assign({ open: open, anchorEl: anchorEl }, { children: [_jsx(FilterTitle, Object.assign({ component: "span" }, { children: t('filterBy') })), options.map(({ value, label }) => (_jsxs(MenuItem, Object.assign({ onClick: (e) => {
59
- setChildAnchorEl(e.currentTarget);
60
- }, onMouseOver: (e) => {
61
- onChildMouseOver(e, value);
62
- }, sx: {
63
- minHeight: '35px',
64
- padding: '8px 16px',
65
- display: 'flex',
66
- alignItems: 'center',
67
- justifyContent: 'space-between',
68
- cursor: 'pointer',
69
- '&:hover': { backgroundColor: '#fff', boxShadow: '0px 0px 16px 0px #00000021' },
70
- }, hideCheckbox: true }, { children: [_jsx(Box, Object.assign({ sx: { display: 'flex', alignItems: 'center', gap: '4px' } }, { children: label })), _jsx(Box, { component: "img", src: rightArrow, width: 16, height: 12, sx: { marginLeft: 'auto' } })] }), value))), _jsxs(FilterFooter, { children: [_jsx(FilterCancelButton, Object.assign({ onClick: onCloseDropdowns }, { children: t('cancel') })), _jsx(FilterOkayButton, Object.assign({ onClick: handleOkButtonClick }, { children: t('okay') }))] })] })), _jsx(Popper, Object.assign({ open: Boolean(childAnchorEl), anchorEl: childAnchorEl, placement: "right-start", onMouseLeave: onChildLeave }, { children: _jsx(Box, Object.assign({ sx: {
71
- backgroundColor: '#fff',
72
- borderEndEndRadius: '8px',
73
- border: '1px solid #F2F2F2',
74
- } }, { children: _jsx(RadioGroup, { options: [
75
- {
76
- value: StatusValue.ALL,
77
- label: 'All',
78
- },
79
- {
80
- value: StatusValue.ENABLED,
81
- label: 'Enabled',
82
- },
83
- {
84
- value: StatusValue.DISABLED,
85
- label: 'Disabled',
86
- },
87
- ], value: statuses[hoveredStatus || ''], onOptionChange: onClickStatus }) })) }))] })) })));
88
- }
@@ -1 +0,0 @@
1
- export { default as StatusFilter } from './StatusFilter';
@@ -1 +0,0 @@
1
- export { default as StatusFilter } from './StatusFilter';
@@ -1,5 +0,0 @@
1
- export declare enum StatusValue {
2
- ALL = "all",
3
- ENABLED = "enabled",
4
- DISABLED = "disabled"
5
- }
@@ -1,6 +0,0 @@
1
- export var StatusValue;
2
- (function (StatusValue) {
3
- StatusValue["ALL"] = "all";
4
- StatusValue["ENABLED"] = "enabled";
5
- StatusValue["DISABLED"] = "disabled";
6
- })(StatusValue || (StatusValue = {}));
@@ -1,4 +0,0 @@
1
- import { StatusValue } from './type';
2
- export declare const getInitialStatuses: (statuses?: Record<string, StatusValue>, options?: {
3
- value: string;
4
- }[]) => Record<string, StatusValue>;
@@ -1,10 +0,0 @@
1
- import { StatusValue } from './type';
2
- export const getInitialStatuses = (statuses, options) => {
3
- const rawStatuses = (statuses || {});
4
- const mappedStatuses = {};
5
- options === null || options === void 0 ? void 0 : options.forEach(({ value }) => {
6
- const statusValue = rawStatuses === null || rawStatuses === void 0 ? void 0 : rawStatuses[value];
7
- mappedStatuses[value] = statusValue === undefined ? StatusValue.ALL : statusValue;
8
- });
9
- return mappedStatuses;
10
- };