@tap-payments/os-micro-frontend-shared 0.1.285 → 0.1.286-test.3
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/Chip/style.d.ts +0 -1
- package/build/components/CountBadge/style.d.ts +0 -1
- package/build/components/Dialog/style.d.ts +0 -1
- package/build/components/FlippingCard/style.d.ts +0 -1
- package/build/components/ImageWrapper/ImageWrapper.d.ts +0 -1
- package/build/components/JSONViewer/style.d.ts +0 -1
- package/build/components/LeftPeekRightExpandingChip/style.d.ts +0 -1
- package/build/components/PartnersFilter/PartnersFilter.d.ts +10 -0
- package/build/components/PartnersFilter/PartnersFilter.js +50 -0
- package/build/components/PartnersFilter/index.d.ts +1 -0
- package/build/components/PartnersFilter/index.js +1 -0
- package/build/components/RightLeftExpandingCenterChip/style.d.ts +0 -1
- package/build/components/SearchButton/styles.d.ts +0 -1
- package/build/components/StatusFilter/StatusFilter.d.ts +1 -2
- package/build/components/StatusFilter/StatusFilter.js +1 -1
- package/build/components/StatusFilter/utils.d.ts +1 -1
- package/build/components/StatusFilter/utils.js +1 -1
- package/build/components/StatusIcons/AuthIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +0 -1
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +0 -1
- package/build/components/StatusIcons/SourceIcons/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ApplicationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DateCell/DateCell.d.ts +9 -3
- package/build/components/TableCells/CustomCells/DateCell/DateCell.js +13 -16
- package/build/components/TableCells/CustomCells/DateCell/DateViewer.d.ts +3 -0
- package/build/components/TableCells/CustomCells/DateCell/DateViewer.js +29 -0
- package/build/components/TableCells/CustomCells/DateCell/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DateCell/index.js +1 -0
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/PayoutDateCell/PayoutDateCell.d.ts +2 -2
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -2
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.js +2 -2
- package/build/components/TableCells/CustomCells/SalesChannelCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/style.d.ts +0 -1
- package/build/components/TableCells/CustomCells/type.d.ts +1 -1
- package/build/components/TableReports/components/DownloadButton/style.d.ts +0 -1
- package/build/components/TableReports/style.d.ts +0 -1
- package/build/components/VirtualTables/components/style.d.ts +0 -1
- package/build/components/index.d.ts +1 -0
- package/build/components/index.js +1 -0
- package/build/types/index.d.ts +1 -0
- package/build/types/index.js +1 -0
- package/package.json +3 -3
- /package/build/{components/StatusFilter/type.d.ts → types/filter.d.ts} +0 -0
- /package/build/{components/StatusFilter/type.js → types/filter.js} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
/// <reference types="react" />
|
|
3
2
|
import { GetSourceAnimationFunction } from './type';
|
|
4
3
|
export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
5
4
|
variant?: import("./type").ChipVariant | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface PartnersFilterProps {
|
|
2
|
+
options: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
}[];
|
|
6
|
+
selectedFilters?: Record<string, boolean | undefined>;
|
|
7
|
+
onChange: (filters: Record<string, boolean | undefined>) => void;
|
|
8
|
+
}
|
|
9
|
+
export default function PartnersFilter({ options, selectedFilters, onChange }: Readonly<PartnersFilterProps>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
3
|
+
import { Popper } from '@mui/material';
|
|
4
|
+
import Box from '@mui/material/Box';
|
|
5
|
+
import { MenuItem, RadioGroup } from '../index.js';
|
|
6
|
+
import { rightArrow } from '../../constants/index.js';
|
|
7
|
+
import { StatusValue } from '../../types/index.js';
|
|
8
|
+
export default function PartnersFilter({ options, selectedFilters, onChange }) {
|
|
9
|
+
const [childAnchorEl, setChildAnchorEl] = useState(null);
|
|
10
|
+
const [hoveredStatus, setHoveredStatus] = useState(null);
|
|
11
|
+
const onChildLeave = useCallback(() => {
|
|
12
|
+
setChildAnchorEl(null);
|
|
13
|
+
setHoveredStatus(null);
|
|
14
|
+
}, []);
|
|
15
|
+
const getSelectedValue = (value) => {
|
|
16
|
+
return value === StatusValue.ALL ? undefined : value === StatusValue.ENABLED;
|
|
17
|
+
};
|
|
18
|
+
const onClickStatus = (value) => {
|
|
19
|
+
if (hoveredStatus) {
|
|
20
|
+
onChange({ [hoveredStatus]: getSelectedValue(value) });
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const radioSelectedValue = useMemo(() => {
|
|
24
|
+
const value = selectedFilters === null || selectedFilters === void 0 ? void 0 : selectedFilters[hoveredStatus || ''];
|
|
25
|
+
return value === undefined ? StatusValue.ALL : value ? StatusValue.ENABLED : StatusValue.DISABLED;
|
|
26
|
+
}, [selectedFilters, hoveredStatus]);
|
|
27
|
+
return (_jsxs(_Fragment, { children: [options.map(({ label, value }, index) => (_jsxs(MenuItem, Object.assign({ onMouseOver: (e) => {
|
|
28
|
+
setChildAnchorEl(e.currentTarget);
|
|
29
|
+
setHoveredStatus(value);
|
|
30
|
+
}, sx: Object.assign({ minHeight: '35px', padding: '8px 16px', display: 'flex', alignItems: 'center', justifyContent: 'space-between', cursor: 'pointer', '&:hover': { backgroundColor: '#fff', boxShadow: '0px 0px 16px 0px #00000021' } }, (index === options.length - 1 && {
|
|
31
|
+
borderBottom: '1px solid #F2F2F2',
|
|
32
|
+
})), 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))), _jsx(Popper, Object.assign({ open: Boolean(childAnchorEl), anchorEl: childAnchorEl, placement: "right-start", onMouseLeave: onChildLeave }, { children: _jsx(Box, Object.assign({ sx: {
|
|
33
|
+
backgroundColor: '#fff',
|
|
34
|
+
borderEndEndRadius: '8px',
|
|
35
|
+
border: '1px solid #F2F2F2',
|
|
36
|
+
} }, { children: _jsx(RadioGroup, { options: [
|
|
37
|
+
{
|
|
38
|
+
value: StatusValue.ALL,
|
|
39
|
+
label: 'All',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: StatusValue.ENABLED,
|
|
43
|
+
label: 'Available',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
value: StatusValue.DISABLED,
|
|
47
|
+
label: 'Not Available',
|
|
48
|
+
},
|
|
49
|
+
], value: radioSelectedValue, onOptionChange: onClickStatus }) })) }))] }));
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PartnersFilter } from './PartnersFilter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as PartnersFilter } from './PartnersFilter';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CustomColumnFilterProps } from '../VirtualTables';
|
|
2
|
-
import { StatusValue } from '
|
|
3
|
-
import { ColumnFilterValues } from '../../types/index.js';
|
|
2
|
+
import { ColumnFilterValues, StatusValue } from '../../types/index.js';
|
|
4
3
|
interface StatusFilterProps extends CustomColumnFilterProps {
|
|
5
4
|
options: {
|
|
6
5
|
icon: string;
|
|
@@ -6,8 +6,8 @@ import { Menu, MenuItem, RadioGroup } from '../index.js';
|
|
|
6
6
|
import { FilterCancelButton, FilterFooter, FilterOkayButton, FilterTitle } from '../Filters';
|
|
7
7
|
import { rightArrow } from '../../constants/index.js';
|
|
8
8
|
import { ClickAwayListener, Popper } from '@mui/material';
|
|
9
|
-
import { StatusValue } from './type';
|
|
10
9
|
import { getInitialStatuses } from './utils';
|
|
10
|
+
import { StatusValue } from '../../types/index.js';
|
|
11
11
|
export default function StatusFilter({ anchorEl, options, apiKey = 'statuses', initialStatuses, onCloseDropdown, onClear, onConfirm, }) {
|
|
12
12
|
const open = Boolean(anchorEl);
|
|
13
13
|
const { t } = useTranslation();
|
|
@@ -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 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 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,3 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { DateCellBaseProps } from '../../../index.js';
|
|
2
|
+
interface DateCellProps extends DateCellBaseProps {
|
|
3
|
+
currentTimezone?: string;
|
|
4
|
+
timezoneOffset?: number;
|
|
5
|
+
defaultTimezoneOffset?: number;
|
|
6
|
+
hideTimezoneIcon?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function DateCell({ value, currentTimezone, timezoneOffset, defaultTimezoneOffset, hideTimezoneIcon, ...props }: DateCellProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -10,20 +10,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
return (
|
|
26
|
-
visibility: 'visible',
|
|
27
|
-
}, className: "geography-box" }, { children: icon }))), _jsx(Box, Object.assign({ sx: Object.assign({}, (tableMode === 'sheet' && { fontSize: '11px' })) }, { children: renderedValue }))] }) })));
|
|
13
|
+
import Box from '@mui/material/Box';
|
|
14
|
+
import { Tooltip } from '../../../index.js';
|
|
15
|
+
import DateViewer from './DateViewer';
|
|
16
|
+
import { greyTimezoneIcon, TIMEZONES } from '../../../../constants/index.js';
|
|
17
|
+
import { changeDateTimezone, formatCellDate } from '../../../../utils/index.js';
|
|
18
|
+
export default function DateCell(_a) {
|
|
19
|
+
var { value, currentTimezone = TIMEZONES.UTC, timezoneOffset = 0, defaultTimezoneOffset = 0, hideTimezoneIcon = false } = _a, props = __rest(_a, ["value", "currentTimezone", "timezoneOffset", "defaultTimezoneOffset", "hideTimezoneIcon"]);
|
|
20
|
+
const formatDate = (targetTimezone) => changeDateTimezone(value, { currentTimezone, targetTimezone });
|
|
21
|
+
const formattedDate = formatDate(timezoneOffset);
|
|
22
|
+
const formattedDefaultDate = formatDate(defaultTimezoneOffset);
|
|
23
|
+
const renderDefaultDate = formatCellDate(formattedDefaultDate);
|
|
24
|
+
const showTimezoneIcon = !hideTimezoneIcon && defaultTimezoneOffset !== timezoneOffset;
|
|
25
|
+
return (_jsxs(Box, Object.assign({ sx: { display: 'flex', gap: '8px' } }, { children: [_jsx(DateViewer, Object.assign({ value: formattedDate }, props)), showTimezoneIcon && (_jsx(Tooltip, Object.assign({ title: renderDefaultDate }, { children: _jsx("img", { src: greyTimezoneIcon, width: 14, alt: "timezone" }) })))] })));
|
|
28
26
|
}
|
|
29
|
-
export default DateCell;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useMemo } from 'react';
|
|
14
|
+
import { TableCell } from '../../../TableCells';
|
|
15
|
+
import Tooltip from '../../../Tooltip';
|
|
16
|
+
import CountryFlag from '../../../CountryFlag';
|
|
17
|
+
import { formatCellDate, getCountryNameByISO } from '../../../../utils/index.js';
|
|
18
|
+
import { DateCellContainer } from './style';
|
|
19
|
+
import { GeographyBox } from '../style';
|
|
20
|
+
import { Box } from '@mui/material';
|
|
21
|
+
function DateViewer(_a) {
|
|
22
|
+
var { value, format: dateFormat, flagIcon, hasFlag, tableMode } = _a, props = __rest(_a, ["value", "format", "flagIcon", "hasFlag", "tableMode"]);
|
|
23
|
+
const icon = flagIcon && (_jsx(Tooltip, Object.assign({ title: getCountryNameByISO(flagIcon || '') }, { children: _jsx(CountryFlag, { countryCode: flagIcon }) })));
|
|
24
|
+
const renderedValue = useMemo(() => formatCellDate(value, dateFormat), [value]);
|
|
25
|
+
return (_jsx(TableCell, Object.assign({}, props, { children: _jsxs(DateCellContainer, { children: [hasFlag && (_jsx(GeographyBox, Object.assign({ sx: {
|
|
26
|
+
visibility: 'visible',
|
|
27
|
+
}, className: "geography-box" }, { children: icon }))), _jsx(Box, Object.assign({ sx: Object.assign({}, (tableMode === 'sheet' && { fontSize: '11px' })) }, { children: renderedValue }))] }) })));
|
|
28
|
+
}
|
|
29
|
+
export default DateViewer;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export default function PayoutDateCell({ value, ...props }:
|
|
1
|
+
import { DateCellBaseProps } from '../type';
|
|
2
|
+
export default function PayoutDateCell({ value, ...props }: DateCellBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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 RefundCellContainer: import("@emotion/styled").StyledComponent<{
|
|
4
3
|
hidden?: boolean | undefined;
|
|
5
4
|
color?: string | undefined;
|
|
@@ -266,7 +265,7 @@ export declare const RefundCellContainer: import("@emotion/styled").StyledCompon
|
|
|
266
265
|
isFullyUsed?: boolean | undefined;
|
|
267
266
|
}, {}, {}>;
|
|
268
267
|
export declare const PercentageContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
269
|
-
export declare const DateContainer: import("@emotion/styled").StyledComponent<import("..").
|
|
268
|
+
export declare const DateContainer: import("@emotion/styled").StyledComponent<import("..").DateCellBaseProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
270
269
|
export declare const PiePercentage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
271
270
|
percentage: number;
|
|
272
271
|
isCapture?: boolean | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { styled } from '@mui/material/styles';
|
|
2
2
|
import { motion } from 'framer-motion';
|
|
3
|
-
import
|
|
3
|
+
import DateViewer from '../DateCell/DateViewer';
|
|
4
4
|
import Box from '@mui/material/Box';
|
|
5
5
|
export const RefundCellContainer = styled(motion.div)(({ theme }) => ({
|
|
6
6
|
display: 'flex',
|
|
@@ -32,7 +32,7 @@ export const PercentageContainer = styled('div')(({ theme }) => ({
|
|
|
32
32
|
gap: theme.spacing(0.5),
|
|
33
33
|
lineHeight: 0,
|
|
34
34
|
}));
|
|
35
|
-
export const DateContainer = styled(
|
|
35
|
+
export const DateContainer = styled(DateViewer)(({ theme }) => ({
|
|
36
36
|
fontSize: '12px',
|
|
37
37
|
fontWeight: theme.typography.fontWeightRegular,
|
|
38
38
|
color: theme.palette.secondary.main,
|
|
@@ -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 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>, {}>;
|
|
@@ -5,7 +5,7 @@ import { getGeographyBoxColor } from '../../../utils/index.js';
|
|
|
5
5
|
import type { ActionType, FlagType } from './ActionCell';
|
|
6
6
|
export type GeographyBoxVariant = keyof ReturnType<typeof getGeographyBoxColor>;
|
|
7
7
|
export type PaymentMethod = 'VISA' | 'card' | 'MASTERCARD' | 'APPLE_PAY' | 'KNET' | 'MADA';
|
|
8
|
-
export interface
|
|
8
|
+
export interface DateCellBaseProps extends TableCellProps {
|
|
9
9
|
value: string | Date;
|
|
10
10
|
format?: object;
|
|
11
11
|
flagIcon?: string;
|
package/build/types/index.d.ts
CHANGED
package/build/types/index.js
CHANGED
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.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.286-test.3",
|
|
5
|
+
"testVersion": 3,
|
|
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
|
+
}
|
|
File without changes
|
|
File without changes
|