@tap-payments/os-micro-frontend-shared 0.0.101 → 0.0.102
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.
- package/build/components/CurrencyIcon/CurrencyIcon.js +2 -1
- package/build/components/Menu/Menu.d.ts +1 -3
- package/build/components/Menu/Menu.js +2 -2
- package/build/components/SearchButton/styles.d.ts +1 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +1 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -1
- package/build/components/VirtualTable/style.d.ts +1 -1
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +1 -0
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -554,9 +554,9 @@ export declare const Icon: import("@emotion/styled").StyledComponent<{
|
|
|
554
554
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
|
|
555
555
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
556
556
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
557
|
+
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
557
558
|
src?: string | undefined;
|
|
558
559
|
alt?: string | undefined;
|
|
559
|
-
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
560
560
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
561
561
|
useMap?: string | undefined;
|
|
562
562
|
loading?: "eager" | "lazy" | undefined;
|
|
@@ -269,9 +269,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
|
|
|
269
269
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
|
|
270
270
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
271
271
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
272
|
+
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
272
273
|
src?: string | undefined;
|
|
273
274
|
alt?: string | undefined;
|
|
274
|
-
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
275
275
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
276
276
|
useMap?: string | undefined;
|
|
277
277
|
loading?: "eager" | "lazy" | undefined;
|
|
@@ -273,9 +273,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
|
|
|
273
273
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
|
|
274
274
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
275
275
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
276
|
+
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
276
277
|
src?: string | undefined;
|
|
277
278
|
alt?: string | undefined;
|
|
278
|
-
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
279
279
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
280
280
|
useMap?: string | undefined;
|
|
281
281
|
loading?: "eager" | "lazy" | undefined;
|
|
@@ -262,9 +262,9 @@ export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<
|
|
|
262
262
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
|
|
263
263
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
264
264
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
265
|
+
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
265
266
|
src?: string | undefined;
|
|
266
267
|
alt?: string | undefined;
|
|
267
|
-
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
268
268
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
269
269
|
useMap?: string | undefined;
|
|
270
270
|
loading?: "eager" | "lazy" | undefined;
|
|
@@ -306,9 +306,9 @@ export declare const ActionIcon: import("@emotion/styled").StyledComponent<{
|
|
|
306
306
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLImageElement> | undefined;
|
|
307
307
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
308
308
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLImageElement> | undefined;
|
|
309
|
+
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
309
310
|
src?: string | undefined;
|
|
310
311
|
alt?: string | undefined;
|
|
311
|
-
referrerPolicy?: import("react").HTMLAttributeReferrerPolicy | undefined;
|
|
312
312
|
crossOrigin?: "" | "anonymous" | "use-credentials" | undefined;
|
|
313
313
|
useMap?: string | undefined;
|
|
314
314
|
loading?: "eager" | "lazy" | undefined;
|
|
@@ -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