@tap-payments/os-micro-frontend-shared 0.1.253 → 0.1.254-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 (93) hide show
  1. package/build/components/Chip/style.d.ts +0 -1
  2. package/build/components/CountBadge/style.d.ts +0 -1
  3. package/build/components/Dialog/style.d.ts +0 -1
  4. package/build/components/FilterDropdown/FilterDropdown.d.ts +10 -0
  5. package/build/components/FilterDropdown/FilterDropdown.js +54 -0
  6. package/build/components/FilterDropdown/components/BrandItem/BrandItem.d.ts +12 -0
  7. package/build/components/FilterDropdown/components/BrandItem/BrandItem.js +39 -0
  8. package/build/components/FilterDropdown/components/BrandItem/index.d.ts +2 -0
  9. package/build/components/FilterDropdown/components/BrandItem/index.js +2 -0
  10. package/build/components/FilterDropdown/components/BrandItem/style.d.ts +4 -0
  11. package/build/components/FilterDropdown/components/BrandItem/style.js +9 -0
  12. package/build/components/FilterDropdown/components/CountriesItem/CountriesItem.d.ts +12 -0
  13. package/build/components/FilterDropdown/components/CountriesItem/CountriesItem.js +54 -0
  14. package/build/components/FilterDropdown/components/CountriesItem/index.d.ts +1 -0
  15. package/build/components/FilterDropdown/components/CountriesItem/index.js +1 -0
  16. package/build/components/FilterDropdown/components/CurrenciesItem/CurrenciesItem.d.ts +12 -0
  17. package/build/components/FilterDropdown/components/CurrenciesItem/CurrenciesItem.js +59 -0
  18. package/build/components/FilterDropdown/components/CurrenciesItem/index.d.ts +1 -0
  19. package/build/components/FilterDropdown/components/CurrenciesItem/index.js +1 -0
  20. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/FlatMerchantsListMenu.d.ts +11 -0
  21. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/FlatMerchantsListMenu.js +39 -0
  22. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/index.d.ts +2 -0
  23. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/index.js +2 -0
  24. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/style.d.ts +12 -0
  25. package/build/components/FilterDropdown/components/FlatMerchantsListMenu/style.js +23 -0
  26. package/build/components/FilterDropdown/components/MerchantItem/MerchantItem.d.ts +13 -0
  27. package/build/components/FilterDropdown/components/MerchantItem/MerchantItem.js +43 -0
  28. package/build/components/FilterDropdown/components/MerchantItem/index.d.ts +2 -0
  29. package/build/components/FilterDropdown/components/MerchantItem/index.js +2 -0
  30. package/build/components/FilterDropdown/components/RetailersItem/RetailersItem.d.ts +14 -0
  31. package/build/components/FilterDropdown/components/RetailersItem/RetailersItem.js +70 -0
  32. package/build/components/FilterDropdown/components/RetailersItem/index.d.ts +1 -0
  33. package/build/components/FilterDropdown/components/RetailersItem/index.js +1 -0
  34. package/build/components/FilterDropdown/components/RetailersItem/style.d.ts +4 -0
  35. package/build/components/FilterDropdown/components/RetailersItem/style.js +8 -0
  36. package/build/components/FilterDropdown/components/index.d.ts +4 -0
  37. package/build/components/FilterDropdown/components/index.js +4 -0
  38. package/build/components/FilterDropdown/index.d.ts +3 -0
  39. package/build/components/FilterDropdown/index.js +3 -0
  40. package/build/components/FilterDropdown/style.d.ts +20 -0
  41. package/build/components/FilterDropdown/style.js +60 -0
  42. package/build/components/FilterDropdown/type.d.ts +4 -0
  43. package/build/components/FilterDropdown/type.js +1 -0
  44. package/build/components/FlippingCard/style.d.ts +0 -1
  45. package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
  46. package/build/components/JSONViewer/style.d.ts +0 -1
  47. package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
  48. package/build/components/MenuItem/MenuItem.d.ts +1 -1
  49. package/build/components/MerchantCurrencyDropdown/MerchantCurrencyDropdown.d.ts +12 -0
  50. package/build/components/MerchantCurrencyDropdown/MerchantCurrencyDropdown.js +38 -0
  51. package/build/components/MerchantCurrencyDropdown/SelectedCurrency.d.ts +5 -0
  52. package/build/components/MerchantCurrencyDropdown/SelectedCurrency.js +6 -0
  53. package/build/components/MerchantCurrencyDropdown/index.d.ts +1 -0
  54. package/build/components/MerchantCurrencyDropdown/index.js +1 -0
  55. package/build/components/MerchantCurrencyDropdown/style.d.ts +13 -0
  56. package/build/components/MerchantCurrencyDropdown/style.js +64 -0
  57. package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
  58. package/build/components/SearchButton/styles.d.ts +0 -1
  59. package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
  60. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
  61. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
  62. package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
  63. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
  64. package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
  65. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
  66. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
  67. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
  68. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
  69. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
  70. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
  71. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
  72. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
  73. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
  74. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
  75. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
  76. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
  77. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
  78. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
  79. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
  80. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +0 -1
  81. package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
  82. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
  83. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +0 -1
  84. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
  85. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
  86. package/build/components/TableCells/CustomCells/style.d.ts +0 -1
  87. package/build/components/VirtualTables/components/style.d.ts +0 -1
  88. package/build/components/index.d.ts +2 -0
  89. package/build/components/index.js +2 -0
  90. package/build/types/destination.d.ts +14 -0
  91. package/build/types/index.d.ts +1 -0
  92. package/build/types/index.js +1 -0
  93. package/package.json +3 -3
@@ -0,0 +1,4 @@
1
+ export { default as MerchantItem } from './MerchantItem';
2
+ export { default as RetailersItem } from './RetailersItem';
3
+ export { default as CountriesItem } from './CountriesItem';
4
+ export { default as CurrenciesItem } from './CurrenciesItem';
@@ -0,0 +1,3 @@
1
+ export { default as FilterDropdown } from './FilterDropdown';
2
+ export * from './components';
3
+ export * from './FilterDropdown';
@@ -0,0 +1,3 @@
1
+ export { default as FilterDropdown } from './FilterDropdown';
2
+ export * from './components';
3
+ export * from './FilterDropdown';
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ export declare const FilterButton: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
5
+ isActive?: boolean | undefined;
6
+ }, {}, {}>;
7
+ export declare const TitleStyled: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
8
+ ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
9
+ }, "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"> & {
10
+ component?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
12
+ export declare const Footer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
13
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
14
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
15
+ export declare const OkayButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
16
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
17
+ }, "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/styles").Theme>, {}, {}>;
18
+ export declare const CancelButton: import("@emotion/styled").StyledComponent<import("@mui/material/Button").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
19
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
20
+ }, "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/styles").Theme>, {}, {}>;
@@ -0,0 +1,60 @@
1
+ import Box from '@mui/material/Box';
2
+ import { styled } from '@mui/material/styles';
3
+ import Button from '@mui/material/Button';
4
+ import { Text } from '../index.js';
5
+ export const FilterButton = styled(Box, { shouldForwardProp: (props) => props !== 'isActive' })(({ theme, isActive }) => (Object.assign({ borderRadius: '4px', border: `1px solid ${theme.palette.divider}`, height: 32, width: 30, display: 'flex', alignItems: 'center', justifyContent: 'center', cursor: 'pointer', backgroundColor: theme.palette.common.white, ':hover': {
6
+ opacity: 0.7,
7
+ } }, (isActive && {
8
+ boxShadow: `0px 0px 4px 0px ${theme.palette.info.dark}80`,
9
+ border: `1px solid ${theme.palette.info.dark}`,
10
+ }))));
11
+ export const TitleStyled = styled(Text)(({ theme }) => ({
12
+ fontWeight: theme.typography.fontWeightMedium,
13
+ fontSize: theme.typography.subtitle1.fontSize,
14
+ color: theme.palette.grey[700],
15
+ paddingInlineStart: theme.spacing(2),
16
+ paddingTop: theme.spacing(1),
17
+ paddingBottom: theme.spacing(1),
18
+ paddingInlineEnd: theme.spacing(1),
19
+ borderBottom: `1px solid ${theme.palette.divider}`,
20
+ }));
21
+ export const Footer = styled(Box)(({ theme }) => ({
22
+ padding: '8px 16px',
23
+ display: 'flex',
24
+ gap: '8px',
25
+ justifyContent: 'flex-end',
26
+ backgroundColor: theme.palette.common.white,
27
+ borderTop: `1px solid ${theme.palette.divider}`,
28
+ }));
29
+ export const OkayButton = styled(Button)(({ theme }) => ({
30
+ textTransform: 'capitalize',
31
+ minWidth: 'auto',
32
+ width: 70,
33
+ borderRadius: '4px',
34
+ border: `1px solid ${theme.palette.info.dark}`,
35
+ backgroundColor: theme.palette.info.dark,
36
+ fontWeight: 700,
37
+ fontSize: '11px',
38
+ color: theme.palette.common.white,
39
+ '&:hover': {
40
+ backgroundColor: theme.palette.info.dark,
41
+ },
42
+ '&.Mui-disabled': {
43
+ color: '#fff !important',
44
+ opacity: 0.5,
45
+ },
46
+ }));
47
+ export const CancelButton = styled(Button)(({ theme }) => ({
48
+ textTransform: 'capitalize',
49
+ minWidth: 'auto',
50
+ width: 70,
51
+ borderRadius: '4px',
52
+ border: `1px solid ${theme.palette.divider}`,
53
+ backgroundColor: theme.palette.common.white,
54
+ fontWeight: 500,
55
+ fontSize: '11px',
56
+ color: theme.palette.text.primary,
57
+ '&:hover': {
58
+ background: 'transparent',
59
+ },
60
+ }));
@@ -0,0 +1,4 @@
1
+ import { Brand, Merchant } from '../../types/index.js';
2
+ export interface BrandProps extends Omit<Brand, 'entities'> {
3
+ merchants: Merchant[];
4
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const FOOTER_HEIGHT = 37;
4
3
  export declare const TITLE_BAR_HEIGHT = "32px";
5
4
  export declare const VIEWER_HEIGHT = 545;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const DEFAULT_CHIP_MIN_WIDTH = 24;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { BoxProps } from '@mui/material/Box';
3
- interface MenuItemProps extends BoxProps {
3
+ export interface MenuItemProps extends BoxProps {
4
4
  isSelected?: boolean;
5
5
  isDisabled?: boolean;
6
6
  isIndeterminate?: boolean;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { Currency } from '../../types/index.js';
3
+ interface MerchantCurrencyDropdownProps {
4
+ merchantCurrencies: Currency[];
5
+ selectedCurrency?: Currency;
6
+ isLoading?: boolean;
7
+ isDisabled?: boolean;
8
+ onChangeCurrency?: (currency: Currency) => void;
9
+ }
10
+ declare function MerchantCurrencyDropdown({ merchantCurrencies, isLoading, onChangeCurrency, isDisabled, selectedCurrency, }: Readonly<MerchantCurrencyDropdownProps>): import("react/jsx-runtime").JSX.Element;
11
+ declare const _default: import("react").MemoExoticComponent<typeof MerchantCurrencyDropdown>;
12
+ export default _default;
@@ -0,0 +1,38 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { memo, useState } from 'react';
3
+ import Box from '@mui/material/Box';
4
+ import Popper from '@mui/material/Popper';
5
+ import { downArrowIcon3 } from '../../constants/index.js';
6
+ import { Text, Loader, CustomBackdrop } from '../index.js';
7
+ import { CurrencyDropdownContainer, BrandsDropdown, CurrencyBox } from './style';
8
+ import CurrencyItem from './SelectedCurrency';
9
+ function MerchantCurrencyDropdown({ merchantCurrencies, isLoading, onChangeCurrency, isDisabled, selectedCurrency, }) {
10
+ var _a, _b, _c, _d, _e;
11
+ const [anchorEl, setAnchorEl] = useState(null);
12
+ const open = Boolean(anchorEl);
13
+ const onOpenDropdown = (event) => {
14
+ if (!open)
15
+ setAnchorEl(event.currentTarget);
16
+ };
17
+ const onCloseDropdown = () => {
18
+ if (open)
19
+ setAnchorEl(null);
20
+ };
21
+ const selectCurrency = (currency) => {
22
+ onChangeCurrency === null || onChangeCurrency === void 0 ? void 0 : onChangeCurrency(currency);
23
+ onCloseDropdown();
24
+ };
25
+ if (isLoading || !merchantCurrencies) {
26
+ return (_jsxs(CurrencyDropdownContainer, Object.assign({ sx: { pointerEvents: 'none' } }, { children: [_jsx(Text, Object.assign({ sx: { fontSize: '11px' } }, { children: "Select" })), isLoading ? _jsx(Loader, {}) : _jsx(Box, { component: "img", src: downArrowIcon3, alt: "c", sx: { marginTop: '2px' } })] })));
27
+ }
28
+ if (merchantCurrencies.length === 0) {
29
+ return (_jsxs(CurrencyDropdownContainer, Object.assign({ sx: { pointerEvents: 'none', opacity: 0.5 } }, { children: [_jsx(Text, Object.assign({ sx: { fontSize: '11px' } }, { children: "Select" })), _jsx(Box, Object.assign({ sx: { width: 25, textAlign: 'center' } }, { children: _jsx(Box, { component: "img", src: downArrowIcon3, alt: "c", sx: { marginTop: '2px' } }) }))] })));
30
+ }
31
+ if (merchantCurrencies.length === 1) {
32
+ return (_jsx(CurrencyDropdownContainer, Object.assign({ sx: { border: 'none', pointerEvents: 'none' } }, { children: _jsx(CurrencyItem, { selectedCurrencyCode: (_c = (_b = (_a = merchantCurrencies === null || merchantCurrencies === void 0 ? void 0 : merchantCurrencies[0]) === null || _a === void 0 ? void 0 : _a.code) === null || _b === void 0 ? void 0 : _b.english) !== null && _c !== void 0 ? _c : '' }) })));
33
+ }
34
+ return (_jsxs(CurrencyDropdownContainer, Object.assign({ onClick: onOpenDropdown, sx: Object.assign({}, (isDisabled && { pointerEvents: 'none', opacity: 0.7 })) }, { children: [_jsx(CurrencyItem, { selectedCurrencyCode: (_e = (_d = selectedCurrency === null || selectedCurrency === void 0 ? void 0 : selectedCurrency.code) === null || _d === void 0 ? void 0 : _d.english) !== null && _e !== void 0 ? _e : '' }), _jsx(Box, { component: "img", src: downArrowIcon3, alt: "c", sx: Object.assign({ marginTop: '2px' }, (open && { transform: 'rotate(180deg)' })) }), open && _jsx(CustomBackdrop, { onClick: onCloseDropdown }), _jsx(Popper, Object.assign({ open: open, anchorEl: anchorEl, placement: "bottom-start" }, { children: _jsx(BrandsDropdown, { children: merchantCurrencies.map((currency, index) => (_jsx(CurrencyBox, Object.assign({ className: "currency", onClick: () => {
35
+ selectCurrency(currency);
36
+ } }, { children: _jsx(CurrencyItem, { selectedCurrencyCode: currency.code.english }) }), `${currency.symbol}-${index}`))) }) }))] })));
37
+ }
38
+ export default memo(MerchantCurrencyDropdown);
@@ -0,0 +1,5 @@
1
+ interface SelectedCurrencyProps {
2
+ selectedCurrencyCode: string;
3
+ }
4
+ export default function SelectedCurrency({ selectedCurrencyCode }: Readonly<SelectedCurrencyProps>): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { CountryFlag } from '../index.js';
3
+ import { Label } from './style';
4
+ export default function SelectedCurrency({ selectedCurrencyCode }) {
5
+ return (_jsxs(Label, Object.assign({ sx: { padding: 0 } }, { children: [_jsx(CountryFlag, { currencyCode: selectedCurrencyCode }), _jsxs("span", { children: [" ", selectedCurrencyCode] })] })));
6
+ }
@@ -0,0 +1 @@
1
+ export { default as MerchantCurrencyDropdown } from './MerchantCurrencyDropdown';
@@ -0,0 +1 @@
1
+ export { default as MerchantCurrencyDropdown } from './MerchantCurrencyDropdown';
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export declare const CurrencyDropdownContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
3
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
4
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
5
+ export declare const BrandsDropdown: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
7
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
8
+ export declare const CurrencyBox: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
9
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
10
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
11
+ export declare const Label: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
12
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
13
+ }, keyof import("@mui/system").BoxOwnProps<import("@mui/material/styles").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
@@ -0,0 +1,64 @@
1
+ import Box from '@mui/material/Box';
2
+ import { styled } from '@mui/material/styles';
3
+ export const CurrencyDropdownContainer = styled(Box)(({ theme }) => ({
4
+ display: 'flex',
5
+ alignItems: 'center',
6
+ justifyContent: 'center',
7
+ gap: '4px',
8
+ cursor: 'pointer',
9
+ padding: '8px',
10
+ border: `1px solid ${theme.palette.divider}`,
11
+ background: theme.palette.common.white,
12
+ borderRadius: '4px',
13
+ fontSize: '14px',
14
+ fontWeight: 500,
15
+ '.logo': { width: 17 },
16
+ color: theme.palette.text.primary,
17
+ height: 32,
18
+ }));
19
+ export const BrandsDropdown = styled(Box)(({ theme }) => ({
20
+ width: 109,
21
+ boxShadow: theme.shadows[9],
22
+ backgroundColor: theme.palette.common.white,
23
+ borderRadius: '4px',
24
+ fontSize: '14px',
25
+ fontWeight: 500,
26
+ color: theme.palette.text.primary,
27
+ maxHeight: 210,
28
+ overflow: 'auto',
29
+ marginTop: '8px',
30
+ '.currecy+.currency': {
31
+ marginTop: '4px',
32
+ },
33
+ }));
34
+ export const CurrencyBox = styled(Box)(({ theme }) => ({
35
+ display: 'flex',
36
+ alignItems: 'center',
37
+ paddingInlineStart: theme.spacing(1),
38
+ paddingInlineEnd: theme.spacing(2),
39
+ paddingTop: theme.spacing(1),
40
+ paddingBottom: theme.spacing(1),
41
+ gap: '4px',
42
+ cursor: 'pointer',
43
+ height: 42,
44
+ '.logo': {
45
+ width: 20,
46
+ borderRadius: '2px',
47
+ border: `1px solid ${theme.palette.divider}`,
48
+ },
49
+ '&:hover': {
50
+ boxShadow: theme.shadows[4],
51
+ },
52
+ }));
53
+ export const Label = styled(Box)(({ theme }) => ({
54
+ fontSize: '14px',
55
+ fontWeight: 500,
56
+ color: theme.palette.text.primary,
57
+ textTransform: 'uppercase',
58
+ display: 'flex',
59
+ alignItems: 'center',
60
+ justifyContent: 'center',
61
+ gap: '4px',
62
+ padding: '8px',
63
+ img: { width: 17, borderRadius: '4px' },
64
+ }));
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import type { SxProps, Theme } from '@mui/material/styles';
4
3
  export declare const CHIP_GAP = 3;
5
4
  export declare const CenterIconWrapper: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  import { TableMode } from '../../../../types/index.js';
4
3
  export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
5
4
  tableMode?: TableMode | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledAppsCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const AppsStatusContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
4
3
  export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const Button: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const SalesChannelsContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
5
4
  hidden?: boolean | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
4
3
  export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
5
4
  export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
4
3
  width?: string | number | undefined;
5
4
  height?: string | number | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
4
3
  hidden?: boolean | undefined;
5
4
  color?: string | undefined;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
4
3
  variant?: "Global" | "Regional" | "Local" | undefined;
5
4
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- /// <reference types="react" />
3
2
  interface TableWrapperProps {
4
3
  showNoDataView?: boolean;
5
4
  }
@@ -127,3 +127,5 @@ export * from './Amount';
127
127
  export * from './VAT';
128
128
  export * from './Discount';
129
129
  export * from './MerchantLogo';
130
+ export * from './FilterDropdown';
131
+ export * from './MerchantCurrencyDropdown';
@@ -127,3 +127,5 @@ export * from './Amount';
127
127
  export * from './VAT';
128
128
  export * from './Discount';
129
129
  export * from './MerchantLogo';
130
+ export * from './FilterDropdown';
131
+ export * from './MerchantCurrencyDropdown';
@@ -1 +1,15 @@
1
1
  export type DestinationStatus = 'PROCESSED' | 'FAILED';
2
+ export interface RetailersDestination {
3
+ id: string;
4
+ status: string;
5
+ created: number;
6
+ display_name: string;
7
+ business_entity_id: string;
8
+ wallet_id: string;
9
+ business_id: string;
10
+ brand: {
11
+ id: string;
12
+ name: Record<string, string>;
13
+ logo: string;
14
+ };
15
+ }
@@ -27,3 +27,4 @@ export * from './tsUtils';
27
27
  export * from './appEvents';
28
28
  export * from './common';
29
29
  export * from './discount';
30
+ export * from './destination';
@@ -27,3 +27,4 @@ export * from './tsUtils';
27
27
  export * from './appEvents';
28
28
  export * from './common';
29
29
  export * from './discount';
30
+ export * from './destination';
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.253",
5
- "testVersion": 0,
4
+ "version": "0.1.254-test.1",
5
+ "testVersion": 1,
6
6
  "type": "module",
7
7
  "main": "build/index.js",
8
8
  "module": "build/index.js",
@@ -163,4 +163,4 @@
163
163
  "publishConfig": {
164
164
  "registry": "https://registry.npmjs.org/"
165
165
  }
166
- }
166
+ }