@tap-payments/os-micro-frontend-shared 0.0.228-test.17 → 0.0.229-test.17
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/DropdownMenu/DropdownMenu.d.ts +1 -1
- package/build/components/DropdownMenu/DropdownMenu.js +22 -22
- package/build/components/DropdownMenu/styles.d.ts +0 -1
- package/build/components/DropdownMenu/styles.js +1 -16
- package/build/components/DropdownMenu/type.d.ts +0 -4
- package/build/components/StatusBar/StatusBar.d.ts +8 -3
- package/build/components/StatusBar/StatusBar.js +60 -45
- package/build/components/StatusBar/index.d.ts +0 -1
- package/build/components/StatusBar/type.d.ts +0 -2
- package/build/components/StatusButton/StatusButton.js +3 -13
- package/build/components/StatusButton/type.d.ts +0 -3
- package/build/components/Widget/List.js +1 -1
- package/build/components/index.d.ts +1 -1
- package/build/constants/currency.js +2 -2
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IProps } from './type';
|
|
2
|
-
declare function Dropdown({ open, menuItems, anchorEl, onClose,
|
|
2
|
+
declare function Dropdown({ open, menuItems, anchorEl, onClose, selected, allowShadows, ...props }: IProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Dropdown;
|
|
@@ -11,33 +11,33 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
import { Divider, Box, useTheme } from '@mui/material';
|
|
14
|
-
import { StyledListItemText, StyledMenu, StyledListItemIcon, StyledMenuItem
|
|
14
|
+
import { StyledListItemText, StyledMenu, StyledListItemIcon, StyledMenuItem } from './styles';
|
|
15
15
|
function Dropdown(_a) {
|
|
16
|
-
var { open, menuItems, anchorEl, onClose,
|
|
16
|
+
var { open, menuItems, anchorEl, onClose, selected, allowShadows = true } = _a, props = __rest(_a, ["open", "menuItems", "anchorEl", "onClose", "selected", "allowShadows"]);
|
|
17
17
|
const theme = useTheme();
|
|
18
|
-
return (
|
|
18
|
+
return (_jsx(StyledMenu, Object.assign({ open: open, anchorEl: anchorEl, onClose: onClose, onContextMenu: (e) => {
|
|
19
19
|
e.preventDefault();
|
|
20
20
|
onClose();
|
|
21
|
-
} }, props, { className: "tap-dropdown", minWidth: (anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.clientWidth) || 'auto' }, { children:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
backgroundColor: 'transparent',
|
|
30
|
-
boxShadow: allowShadows ? theme.shadows[10] : 'none',
|
|
31
|
-
'& .sandbox-Icon': {
|
|
32
|
-
display: 'none',
|
|
33
|
-
},
|
|
34
|
-
'& .close-Icon': {
|
|
35
|
-
display: 'block !important',
|
|
36
|
-
},
|
|
37
|
-
} }, (idx === selected && {
|
|
21
|
+
} }, props, { className: "tap-dropdown", minWidth: (anchorEl === null || anchorEl === void 0 ? void 0 : anchorEl.clientWidth) || 'auto' }, { children: menuItems.map((item, idx) => {
|
|
22
|
+
if (item.name === 'divider') {
|
|
23
|
+
return _jsx(Divider, { sx: { margin: '0 !important' } }, `${item.label}-${idx}`);
|
|
24
|
+
}
|
|
25
|
+
return (_jsx("div", { children: item.label && (_jsxs(StyledMenuItem, Object.assign({ alwaysShowRightAction: item.alwaysShowRightAction, onClick: (e) => {
|
|
26
|
+
if (item.onClick)
|
|
27
|
+
item.onClick(e);
|
|
28
|
+
}, onContextMenu: item.onRightClick, selected: item.selected, sx: Object.assign({ '&:hover': {
|
|
38
29
|
backgroundColor: 'transparent',
|
|
39
30
|
boxShadow: allowShadows ? theme.shadows[10] : 'none',
|
|
40
|
-
|
|
41
|
-
|
|
31
|
+
'& .sandbox-Icon': {
|
|
32
|
+
display: 'none',
|
|
33
|
+
},
|
|
34
|
+
'& .close-Icon': {
|
|
35
|
+
display: 'block !important',
|
|
36
|
+
},
|
|
37
|
+
} }, (idx === selected && {
|
|
38
|
+
backgroundColor: 'transparent',
|
|
39
|
+
boxShadow: allowShadows ? theme.shadows[10] : 'none',
|
|
40
|
+
})) }, { children: [item.icon && _jsx(StyledListItemIcon, { children: item.icon }), _jsx(StyledListItemText, { children: item.label }), _jsx(Box, Object.assign({ className: item.alwaysShowRightAction ? '' : 'menu-right-action' }, { children: item.rightAction && item.rightAction }))] }))) }, `${item.label}-${idx}`));
|
|
41
|
+
}) })));
|
|
42
42
|
}
|
|
43
43
|
export default Dropdown;
|
|
@@ -16,4 +16,3 @@ export declare const StyledOption: import("@emotion/styled").StyledComponent<imp
|
|
|
16
16
|
export declare const StyledSelectComponent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
17
17
|
export declare const StyledMenuTitle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {}>;
|
|
18
18
|
export declare const StyledIconForDropDown: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
19
|
-
export declare const CheckboxStyled: import("@emotion/styled").StyledComponent<import("@mui/material").CheckboxProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { ListItemText, Menu, MenuItem, styled, ListItemIcon, Select, alpha } from '@mui/material';
|
|
1
|
+
import { ListItemText, Menu, MenuItem, styled, ListItemIcon, Select } from '@mui/material';
|
|
3
2
|
export const StyledMenuItem = styled(MenuItem, {
|
|
4
3
|
shouldForwardProp: (prop) => prop !== 'alwaysShowRightAction',
|
|
5
4
|
})(({ theme, alwaysShowRightAction }) => ({
|
|
@@ -142,17 +141,3 @@ export const StyledIconForDropDown = styled('img')(() => ({
|
|
|
142
141
|
verticalAlign: 'middle',
|
|
143
142
|
boxSizing: 'border-box',
|
|
144
143
|
}));
|
|
145
|
-
export const CheckboxStyled = styled(Checkbox)(({ theme }) => ({
|
|
146
|
-
padding: 0,
|
|
147
|
-
paddingRight: '4px',
|
|
148
|
-
width: '14px !important',
|
|
149
|
-
svg: {
|
|
150
|
-
width: '12px !important',
|
|
151
|
-
height: '12px !important',
|
|
152
|
-
},
|
|
153
|
-
'&.Mui-disabled': {
|
|
154
|
-
'[data-testid="IndeterminateCheckBoxIcon"]': {
|
|
155
|
-
fill: alpha(theme.palette.common.black, 0.26),
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
}));
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
3
2
|
export interface MenuItemI {
|
|
4
3
|
label?: string | null | ReactNode;
|
|
5
4
|
name?: string;
|
|
@@ -10,7 +9,6 @@ export interface MenuItemI {
|
|
|
10
9
|
selected?: boolean;
|
|
11
10
|
rightAction?: ReactNode;
|
|
12
11
|
alwaysShowRightAction?: boolean;
|
|
13
|
-
sx?: SxProps<Theme>;
|
|
14
12
|
}
|
|
15
13
|
export interface IProps {
|
|
16
14
|
open: boolean;
|
|
@@ -20,6 +18,4 @@ export interface IProps {
|
|
|
20
18
|
style?: CSSProperties;
|
|
21
19
|
selected?: number;
|
|
22
20
|
allowShadows?: boolean;
|
|
23
|
-
multiple?: boolean;
|
|
24
|
-
footer?: React.ReactNode;
|
|
25
21
|
}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { CurrencyOption } from '../MultiSelectStatusButton';
|
|
2
3
|
import { TableHeaderStatus } from '../../types/index.js';
|
|
3
4
|
import { AvailableStatus } from './type';
|
|
4
5
|
interface StatusBarProps {
|
|
5
|
-
status?: TableHeaderStatus
|
|
6
|
+
status?: TableHeaderStatus;
|
|
6
7
|
availableStatuses?: AvailableStatus[];
|
|
7
8
|
isFilteredIdsShown?: boolean;
|
|
8
|
-
onStatusChange?: (status:
|
|
9
|
+
onStatusChange?: (status: TableHeaderStatus) => void;
|
|
10
|
+
onMultiSelectChange?: (status: TableHeaderStatus[]) => void;
|
|
11
|
+
currencyOptions?: CurrencyOption[];
|
|
12
|
+
selectedCurrencies?: TableHeaderStatus[];
|
|
13
|
+
enableMultiSelectCurrency?: boolean;
|
|
9
14
|
}
|
|
10
|
-
declare function StatusBar({ isFilteredIdsShown, onStatusChange, availableStatuses, status, }: StatusBarProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function StatusBar({ isFilteredIdsShown, onStatusChange, availableStatuses, status, onMultiSelectChange, currencyOptions, selectedCurrencies, enableMultiSelectCurrency, }: StatusBarProps): import("react/jsx-runtime").JSX.Element;
|
|
11
16
|
declare const _default: import("react").MemoExoticComponent<typeof StatusBar>;
|
|
12
17
|
export default _default;
|
|
@@ -1,53 +1,68 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
1
|
import { createElement as _createElement } from "react";
|
|
13
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
|
-
import {
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { memo, useCallback, useState, useEffect } from 'react';
|
|
15
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import MultiSelectStatusButton from '../MultiSelectStatusButton';
|
|
16
6
|
import StatusButton from '../StatusButton';
|
|
17
|
-
function StatusBar({ isFilteredIdsShown, onStatusChange, availableStatuses, status, }) {
|
|
7
|
+
function StatusBar({ isFilteredIdsShown, onStatusChange, availableStatuses, status, onMultiSelectChange, currencyOptions, selectedCurrencies = [], enableMultiSelectCurrency = false, }) {
|
|
18
8
|
const { t } = useTranslation();
|
|
19
|
-
const
|
|
9
|
+
const [multiSelectValues, setMultiSelectValues] = useState(selectedCurrencies);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (status && multiSelectValues.length > 0) {
|
|
12
|
+
setMultiSelectValues([]);
|
|
13
|
+
}
|
|
14
|
+
}, [status, multiSelectValues.length]);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
if (!status) {
|
|
17
|
+
setMultiSelectValues(selectedCurrencies);
|
|
18
|
+
}
|
|
19
|
+
}, [selectedCurrencies, status]);
|
|
20
20
|
const getButtonStatus = useCallback((buttonStatus) => {
|
|
21
|
+
if (multiSelectValues.length > 0) {
|
|
22
|
+
return 'inActive';
|
|
23
|
+
}
|
|
21
24
|
return buttonStatus === status && !isFilteredIdsShown ? 'active' : 'inActive';
|
|
22
|
-
}, [status, isFilteredIdsShown]);
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
25
|
+
}, [status, isFilteredIdsShown, multiSelectValues.length]);
|
|
26
|
+
const handleMultiSelectChange = useCallback((selected) => {
|
|
27
|
+
setMultiSelectValues(selected);
|
|
28
|
+
onMultiSelectChange === null || onMultiSelectChange === void 0 ? void 0 : onMultiSelectChange(selected);
|
|
29
|
+
if (selected.length > 0) {
|
|
30
|
+
onStatusChange === null || onStatusChange === void 0 ? void 0 : onStatusChange('');
|
|
31
|
+
}
|
|
32
|
+
}, [onMultiSelectChange, onStatusChange]);
|
|
33
|
+
const handleStatusChange = useCallback((newStatus) => {
|
|
34
|
+
if (multiSelectValues.length > 0) {
|
|
35
|
+
setMultiSelectValues([]);
|
|
36
|
+
onMultiSelectChange === null || onMultiSelectChange === void 0 ? void 0 : onMultiSelectChange([]);
|
|
37
|
+
}
|
|
38
|
+
onStatusChange === null || onStatusChange === void 0 ? void 0 : onStatusChange(newStatus);
|
|
39
|
+
}, [multiSelectValues.length, onMultiSelectChange, onStatusChange]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (enableMultiSelectCurrency && multiSelectValues.length === 0 && selectedCurrencies.length === 0 && !status) {
|
|
42
|
+
handleStatusChange('all');
|
|
43
|
+
}
|
|
44
|
+
}, [enableMultiSelectCurrency, multiSelectValues.length, selectedCurrencies.length, status, handleStatusChange]);
|
|
45
|
+
return (_jsxs(_Fragment, { children: [enableMultiSelectCurrency && currencyOptions && (_jsx(MultiSelectStatusButton, { options: currencyOptions, selectedValues: multiSelectValues, onSelectionChange: handleMultiSelectChange, label: t('Currencies') || 'Currencies', variant: multiSelectValues.length > 0 && !status ? 'active' : 'inActive' })), availableStatuses === null || availableStatuses === void 0 ? void 0 : availableStatuses.map((s) => {
|
|
46
|
+
var _a, _b;
|
|
47
|
+
if (!Array.isArray(s.status)) {
|
|
48
|
+
return (_createElement(StatusButton, Object.assign({}, s, { key: `status-button-array-${s.status}`, variant: getButtonStatus(s.status), onClick: () => {
|
|
49
|
+
if (!Array.isArray(s.status)) {
|
|
50
|
+
handleStatusChange(s.status);
|
|
51
|
+
}
|
|
52
|
+
} })));
|
|
53
|
+
}
|
|
54
|
+
const isCurrentStatusDropdown = (_a = s.status) === null || _a === void 0 ? void 0 : _a.includes(status || '');
|
|
55
|
+
const variant = multiSelectValues.length > 0 ? 'inActive' : isCurrentStatusDropdown ? 'active' : 'inActive';
|
|
56
|
+
const statusLabel = isCurrentStatusDropdown ? status : s.status[0];
|
|
57
|
+
return (_jsx("div", { children: _jsx(StatusButton, Object.assign({}, s, { label: t(statusLabel || ''), variant: variant, onButtonBodyClick: (buttonStatus) => {
|
|
58
|
+
handleStatusChange(buttonStatus);
|
|
59
|
+
}, dropdownOptions: s.status.map((stat) => ({
|
|
60
|
+
label: t(stat || ''),
|
|
61
|
+
onClick: () => {
|
|
62
|
+
handleStatusChange(stat);
|
|
63
|
+
},
|
|
64
|
+
status: stat,
|
|
65
|
+
})) })) }, (_b = s === null || s === void 0 ? void 0 : s.status) === null || _b === void 0 ? void 0 : _b[0]));
|
|
66
|
+
})] }));
|
|
52
67
|
}
|
|
53
68
|
export default memo(StatusBar);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { StatusButtonProps } from '../StatusButton';
|
|
3
2
|
import { TableHeaderStatus } from '../../types/index.js';
|
|
4
3
|
export type AvailableStatus<T = undefined> = StatusButtonProps & {
|
|
5
4
|
status: T | TableHeaderStatus | (TableHeaderStatus | T)[];
|
|
6
|
-
render?: (status: AvailableStatus['status'], onChange: (selected: AvailableStatus['status']) => void) => React.ReactNode;
|
|
7
5
|
};
|
|
@@ -19,7 +19,7 @@ import { ChevronContainer, Label, LabelWrapper, StyledStatusIcon, StyledDropdown
|
|
|
19
19
|
import { statusButtonIcons } from './constant';
|
|
20
20
|
const StatusButton = memo((props) => {
|
|
21
21
|
var _a;
|
|
22
|
-
const { variant = 'inActive', badgeCount, icon, label, dropdownOptions,
|
|
22
|
+
const { variant = 'inActive', badgeCount, icon, label, dropdownOptions, onButtonBodyClick } = props, restProps = __rest(props, ["variant", "badgeCount", "icon", "label", "dropdownOptions", "onButtonBodyClick"]);
|
|
23
23
|
const [buttonClicks, setButtonClicks] = useState(0);
|
|
24
24
|
const { t } = useTranslation();
|
|
25
25
|
const buttonRef = useRef(null);
|
|
@@ -61,24 +61,14 @@ const StatusButton = memo((props) => {
|
|
|
61
61
|
const handleMenuItemClick = useCallback((item) => (e) => {
|
|
62
62
|
var _a;
|
|
63
63
|
(_a = item === null || item === void 0 ? void 0 : item.onClick) === null || _a === void 0 ? void 0 : _a.call(item, e);
|
|
64
|
-
if (multiple)
|
|
65
|
-
return;
|
|
66
64
|
setSelectedStatus(item.status);
|
|
67
65
|
handleDropdownClose();
|
|
68
|
-
}, [handleDropdownClose
|
|
69
|
-
const handleConfirm = useCallback(() => {
|
|
70
|
-
onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm();
|
|
71
|
-
handleDropdownClose();
|
|
72
|
-
}, [onConfirm, handleDropdownClose]);
|
|
73
|
-
const handleCancel = useCallback(() => {
|
|
74
|
-
onCancel === null || onCancel === void 0 ? void 0 : onCancel();
|
|
75
|
-
handleDropdownClose();
|
|
76
|
-
}, [onCancel, handleDropdownClose]);
|
|
66
|
+
}, [handleDropdownClose]);
|
|
77
67
|
const menuItems = useMemo(() => (dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.map((item) => (Object.assign(Object.assign({}, item), { onClick: handleMenuItemClick(item) })))) || [], [dropdownOptions, handleMenuItemClick]);
|
|
78
68
|
const ButtonComponent = statusButtonVariants[variant];
|
|
79
69
|
const displayLabel = selectedStatus ? t(selectedStatus) : label;
|
|
80
70
|
return (_jsxs(_Fragment, { children: [_jsx(ButtonComponent, Object.assign({ "data-testid": "StatusButton" }, restProps, { ref: buttonRef, onClick: handleButtonClick, sx: Object.assign({}, (hasDropdown && {
|
|
81
71
|
paddingInlineEnd: '27px',
|
|
82
|
-
})) }, { children: _jsxs(LabelWrapper, { children: [_jsxs(Label, Object.assign({ variant: variant }, { children: [statusIcon, displayLabel, statusBadge] })), dropdownIcon && _jsx(ChevronContainer, { children: dropdownIcon })] }) })), isDropdownOpen && hasDropdown && (_jsx(StyledDropdown, {
|
|
72
|
+
})) }, { children: _jsxs(LabelWrapper, { children: [_jsxs(Label, Object.assign({ variant: variant }, { children: [statusIcon, displayLabel, statusBadge] })), dropdownIcon && _jsx(ChevronContainer, { children: dropdownIcon })] }) })), isDropdownOpen && hasDropdown && (_jsx(StyledDropdown, { open: isDropdownOpen, onClose: handleDropdownClose, anchorEl: anchorEl, menuItems: menuItems }))] }));
|
|
83
73
|
});
|
|
84
74
|
export default StatusButton;
|
|
@@ -16,9 +16,6 @@ export interface StatusButtonProps extends Omit<ButtonProps, 'variant' | 'childr
|
|
|
16
16
|
dropdownOptions?: Array<MenuItemI & {
|
|
17
17
|
status: TableHeaderStatus;
|
|
18
18
|
}>;
|
|
19
|
-
multiple?: boolean;
|
|
20
|
-
onConfirm?: () => void;
|
|
21
|
-
onCancel?: () => void;
|
|
22
19
|
}
|
|
23
20
|
export interface ChevronIconProps {
|
|
24
21
|
isActive?: boolean;
|
|
@@ -18,6 +18,6 @@ import { useScrollWithShadow } from './useScrollWithShadow';
|
|
|
18
18
|
function List(_a) {
|
|
19
19
|
var { children } = _a, props = __rest(_a, ["children"]);
|
|
20
20
|
const { onScrollHandler, showShadow } = useScrollWithShadow();
|
|
21
|
-
return (_jsxs(ListStyled, Object.assign({ component: "ul", "data-testid": "Widget_List", onScroll: onScrollHandler }, props, { children: [children, showShadow && _jsx(Box, { component: "img", src: listShadowBg, sx: { width: '100%', position: 'fixed', bottom: 0 } })] })));
|
|
21
|
+
return (_jsxs(ListStyled, Object.assign({ component: "ul", "data-testid": "Widget_List", onScroll: onScrollHandler }, props, { children: [children, showShadow && _jsx(Box, { component: "img", src: listShadowBg, sx: { width: '100%', position: 'fixed', bottom: 0, pointerEvents: 'none' } })] })));
|
|
22
22
|
}
|
|
23
23
|
export default memo(List);
|
|
@@ -87,7 +87,7 @@ export { default as OTPInput } from './OTPInput';
|
|
|
87
87
|
export { default as FlagDetails } from './FlagDetails';
|
|
88
88
|
export { default as TapLoader } from './Loaders';
|
|
89
89
|
export { default as Error } from './Error';
|
|
90
|
-
export { default as StatusBar
|
|
90
|
+
export { default as StatusBar } from './StatusBar';
|
|
91
91
|
export { default as MultiSelectStatusButton, type CurrencyOption, type MultiSelectStatusButtonProps } from './MultiSelectStatusButton';
|
|
92
92
|
export * from './Chip';
|
|
93
93
|
export * from './StatusGroupChips';
|
|
@@ -16,6 +16,6 @@ export const SUPPORTED_CURRENCY_DETAILS = {
|
|
|
16
16
|
};
|
|
17
17
|
export const SUPPORTED_CURRENCY_CODES = ['SAR', 'KWD', 'OMR', 'EGP', 'BHD', 'USD', 'AED', 'QAR', 'PKR', 'JOD', 'EUR', 'INR', 'GBP'];
|
|
18
18
|
export const CATEGORIZED_CURRENCY_CODES = {
|
|
19
|
-
regional: ['SAR', 'KWD', 'OMR', 'EGP', 'BHD', 'AED', 'QAR', '
|
|
20
|
-
global: ['USD', 'GBP', 'EUR'],
|
|
19
|
+
regional: ['SAR', 'KWD', 'OMR', 'EGP', 'BHD', 'AED', 'QAR', 'JOD'],
|
|
20
|
+
global: ['USD', 'GBP', 'EUR', 'PKR', 'INR'],
|
|
21
21
|
};
|
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.
|
|
4
|
+
"version": "0.0.229-test.17",
|
|
5
5
|
"testVersion": 17,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|