@tap-payments/os-micro-frontend-shared 0.0.101 → 0.0.103
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { SARIconImage } from '../../constants/index.js';
|
|
2
|
+
import { DirhamIconImage, SARIconImage } from '../../constants/index.js';
|
|
3
3
|
import { StyleCurrencyIcon } from './style';
|
|
4
4
|
const currencyMap = {
|
|
5
5
|
SAR: SARIconImage,
|
|
6
|
+
AED: DirhamIconImage,
|
|
6
7
|
};
|
|
7
8
|
function CurrencyIcon({ currency, fontSize }) {
|
|
8
9
|
const currencyIcon = currencyMap[currency];
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { PopperProps } from '@mui/material/Popper';
|
|
3
|
-
import { SxProps } from '@mui/material/styles';
|
|
4
3
|
interface MenuProps extends PopperProps {
|
|
5
4
|
children: ReactNode;
|
|
6
|
-
popperSx?: SxProps;
|
|
7
5
|
}
|
|
8
|
-
declare function Menu({ open, anchorEl, children, sx, placement
|
|
6
|
+
declare function Menu({ open, anchorEl, children, sx, placement }: MenuProps): import("react/jsx-runtime").JSX.Element;
|
|
9
7
|
declare const _default: import("react").MemoExoticComponent<typeof Menu>;
|
|
10
8
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import Popper from '@mui/material/Popper';
|
|
4
4
|
import { Dropdown } from './style';
|
|
5
|
-
function Menu({ open, anchorEl, children, sx, placement
|
|
6
|
-
return (_jsx(Popper, Object.assign({ open: open, anchorEl: anchorEl, placement: placement || 'bottom-start'
|
|
5
|
+
function Menu({ open, anchorEl, children, sx, placement }) {
|
|
6
|
+
return (_jsx(Popper, Object.assign({ open: open, anchorEl: anchorEl, placement: placement || 'bottom-start' }, { children: _jsx(Dropdown, Object.assign({ sx: sx }, { children: children })) })));
|
|
7
7
|
}
|
|
8
8
|
export default memo(Menu);
|
|
@@ -2,6 +2,7 @@ export declare const lightUrl: string;
|
|
|
2
2
|
export declare const appBaseUrl: string;
|
|
3
3
|
export declare const functionBaseUrl: string;
|
|
4
4
|
export declare const SARIconImage: string;
|
|
5
|
+
export declare const DirhamIconImage: string;
|
|
5
6
|
export declare const abandonedIcon: string;
|
|
6
7
|
export declare const abandonedYellowIcon: string;
|
|
7
8
|
export declare const chevronDownIcon: string;
|
|
@@ -3,6 +3,7 @@ export const lightUrl = `${cdnUrl}/icons/dashboard/light`;
|
|
|
3
3
|
export const appBaseUrl = `${lightUrl}/other`;
|
|
4
4
|
export const functionBaseUrl = `${lightUrl}/function`;
|
|
5
5
|
export const SARIconImage = `${lightUrl}/currency/sar.svg`;
|
|
6
|
+
export const DirhamIconImage = `${lightUrl}/currency/dirham.svg`;
|
|
6
7
|
export const abandonedIcon = `${lightUrl}/abandoned.svg`;
|
|
7
8
|
export const abandonedYellowIcon = `${lightUrl}/abandonedYellow.svg`;
|
|
8
9
|
export const chevronDownIcon = `${lightUrl}/chevron-down.svg`;
|
package/package.json
CHANGED