@tap-payments/os-micro-frontend-shared 0.0.35 → 0.0.38
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/ActivityAreaChart/ActivityAreaChart.d.ts +1 -1
- package/build/components/ActivityAreaChart/ActivityAreaChart.js +2 -2
- package/build/components/ActivityAreaChart/components/ChartTooltip.d.ts +1 -1
- package/build/components/ActivityAreaChart/components/ChartTooltip.js +4 -4
- package/build/components/ActivityAreaChart/types.d.ts +1 -2
- package/build/components/ActivityAreaChart/utils.d.ts +1 -1
- package/build/components/ActivityAreaChart/utils.js +8 -11
- package/build/components/AppWindowWrapper/index.d.ts +1 -1
- package/build/components/AppWindowWrapper/index.js +1 -1
- package/build/components/Chip/style.d.ts +1 -0
- package/build/components/CountBadge/style.d.ts +1 -0
- package/build/components/DeviceIcon/index.d.ts +1 -0
- package/build/components/DeviceIcon/index.js +1 -0
- package/build/components/Dialog/index.d.ts +1 -0
- package/build/components/Dialog/index.js +1 -0
- package/build/components/Dialog/style.d.ts +1 -0
- package/build/components/DropdownMenu/index.d.ts +1 -0
- package/build/components/DropdownMenu/index.js +1 -0
- package/build/components/FlippingCard/style.d.ts +1 -0
- package/build/components/HeatMap/index.d.ts +1 -0
- package/build/components/HeatMap/index.js +1 -0
- package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
- package/build/components/Inputs/CountriesDropDown/index.d.ts +1 -0
- package/build/components/Inputs/CountriesDropDown/index.js +1 -0
- package/build/components/Inputs/index.d.ts +1 -1
- package/build/components/Inputs/index.js +1 -1
- package/build/components/JSONViewer/style.d.ts +1 -0
- package/build/components/OTPInput/OTPInput.d.ts +1 -1
- package/build/components/OTPInput/OTPInput.js +6 -3
- package/build/components/OTPInput/style.d.ts +0 -1
- package/build/components/OTPInput/style.js +0 -1
- package/build/components/SearchButton/styles.d.ts +1 -0
- package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
- package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
- package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.js +2 -2
- package/build/components/TableCells/CustomCells/DestinationCell/styled.js +9 -5
- package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/index.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/index.js +1 -0
- package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
- package/build/components/TableCells/CustomCells/style.d.ts +1 -0
- package/build/components/Toolbar/index.d.ts +1 -1
- package/build/components/Toolbar/index.js +1 -1
- package/build/components/VirtualTable/components/EmptyList/index.d.ts +1 -0
- package/build/components/VirtualTable/components/EmptyList/index.js +1 -0
- package/build/components/VirtualTable/style.d.ts +1 -0
- package/build/components/WindowSideBar/index.d.ts +1 -0
- package/build/components/WindowSideBar/index.js +1 -0
- package/build/components/index.d.ts +2 -2
- package/build/components/index.js +2 -2
- package/build/constants/assets.d.ts +1 -0
- package/build/constants/assets.js +1 -0
- package/build/utils/billing.d.ts +1 -0
- package/build/utils/billing.js +1 -0
- package/build/utils/date.d.ts +1 -1
- package/build/utils/date.js +13 -13
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ActivityAreaChartProps } from './types';
|
|
2
|
-
declare const ActivityAreaChart: ({ data, dataKey, isLoading,
|
|
2
|
+
declare const ActivityAreaChart: ({ data, dataKey, isLoading, dateRange, selectedCurrency }: ActivityAreaChartProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ActivityAreaChart;
|
|
@@ -3,7 +3,7 @@ import { useMemo, useState } from 'react';
|
|
|
3
3
|
import { Tooltip, ResponsiveContainer, Area, AreaChart } from 'recharts';
|
|
4
4
|
import { useTheme } from '@mui/material/styles';
|
|
5
5
|
import { ChartTooltip, LoadingChart } from './components';
|
|
6
|
-
const ActivityAreaChart = ({ data, dataKey, isLoading,
|
|
6
|
+
const ActivityAreaChart = ({ data, dataKey, isLoading, dateRange, selectedCurrency }) => {
|
|
7
7
|
const theme = useTheme();
|
|
8
8
|
const [chartHovered, setChartHovered] = useState(false);
|
|
9
9
|
const [cursorPosition, setCursorPosition] = useState({ x: 0, y: 0 });
|
|
@@ -14,7 +14,7 @@ const ActivityAreaChart = ({ data, dataKey, isLoading, offset, dateRange, select
|
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
const MemoizedChartTooltip = useMemo(() => {
|
|
17
|
-
return _jsx(ChartTooltip, { position: cursorPosition,
|
|
17
|
+
return _jsx(ChartTooltip, { position: cursorPosition, dateRange: dateRange, selectedCurrency: selectedCurrency });
|
|
18
18
|
}, [cursorPosition]);
|
|
19
19
|
if (isLoading || isEmpty) {
|
|
20
20
|
return _jsx(LoadingChart, {});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ChartTooltipProps } from '../types';
|
|
2
|
-
declare const ChartTooltip: ({ active, payload,
|
|
2
|
+
declare const ChartTooltip: ({ active, payload, dateRange, selectedCurrency }: ChartTooltipProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
export default ChartTooltip;
|
|
@@ -5,8 +5,8 @@ import { getCurrencyCodeFlag, getLocalizedUnitLabel } from '../../../utils/index
|
|
|
5
5
|
import { DATA_KEY } from '../../../constants/index.js';
|
|
6
6
|
import { TooltipContainer, TimeTypography, ValueTypography, CurrencyBox, CurrencyText, CurrencyIcon } from '../styles';
|
|
7
7
|
import { getTooltipFormattedValue, getFormattedDateWithTimezone } from '../utils';
|
|
8
|
-
const ChartTooltip = ({ active, payload,
|
|
9
|
-
var _a, _b, _c;
|
|
8
|
+
const ChartTooltip = ({ active, payload, dateRange, selectedCurrency }) => {
|
|
9
|
+
var _a, _b, _c, _d;
|
|
10
10
|
const { t } = useTranslation();
|
|
11
11
|
const dateRangeFrom = dayjs(dateRange === null || dateRange === void 0 ? void 0 : dateRange[0]);
|
|
12
12
|
const dateRangeTo = dayjs(dateRange === null || dateRange === void 0 ? void 0 : dateRange[1]);
|
|
@@ -14,8 +14,8 @@ const ChartTooltip = ({ active, payload, offset, dateRange, selectedCurrency })
|
|
|
14
14
|
if (active && (payload === null || payload === void 0 ? void 0 : payload.length)) {
|
|
15
15
|
const point = payload[0];
|
|
16
16
|
const localizedUnitLabel = getLocalizedUnitLabel(point === null || point === void 0 ? void 0 : point.dataKey, point === null || point === void 0 ? void 0 : point.value);
|
|
17
|
-
const formattedDate = ((_a = point === null || point === void 0 ? void 0 : point.payload) === null || _a === void 0 ? void 0 : _a.date) && getFormattedDateWithTimezone((_b = point === null || point === void 0 ? void 0 : point.payload) === null || _b === void 0 ? void 0 : _b.date,
|
|
18
|
-
return (_jsxs(TooltipContainer, Object.assign({ className: "chart-tooltip" }, { children: [_jsx(TimeTypography, { children: formattedDate !== null && formattedDate !== void 0 ? formattedDate : (
|
|
17
|
+
const formattedDate = ((_a = point === null || point === void 0 ? void 0 : point.payload) === null || _a === void 0 ? void 0 : _a.date) && getFormattedDateWithTimezone((_b = point === null || point === void 0 ? void 0 : point.payload) === null || _b === void 0 ? void 0 : _b.date, isSingleDay, (_c = point === null || point === void 0 ? void 0 : point.payload) === null || _c === void 0 ? void 0 : _c.hour);
|
|
18
|
+
return (_jsxs(TooltipContainer, Object.assign({ className: "chart-tooltip" }, { children: [_jsx(TimeTypography, { children: formattedDate !== null && formattedDate !== void 0 ? formattedDate : (_d = point === null || point === void 0 ? void 0 : point.payload) === null || _d === void 0 ? void 0 : _d.date }), _jsxs(ValueTypography, { children: [(point === null || point === void 0 ? void 0 : point.dataKey) === DATA_KEY.AMOUNT && (_jsxs(CurrencyBox, { children: [_jsx(CurrencyIcon, { src: getCurrencyCodeFlag(selectedCurrency), alt: `${selectedCurrency} flag` }), _jsx(CurrencyText, { children: selectedCurrency })] })), `${getTooltipFormattedValue(point, t(localizedUnitLabel), selectedCurrency)}`] })] })));
|
|
19
19
|
}
|
|
20
20
|
return null;
|
|
21
21
|
};
|
|
@@ -2,7 +2,6 @@ export interface ActivityAreaChartProps {
|
|
|
2
2
|
data: ChartDataPoint[];
|
|
3
3
|
dataKey: string;
|
|
4
4
|
isLoading?: boolean;
|
|
5
|
-
offset: string | number | undefined;
|
|
6
5
|
dateRange: [Date, Date];
|
|
7
6
|
selectedCurrency: string;
|
|
8
7
|
}
|
|
@@ -15,13 +14,13 @@ export interface ChartTooltipProps {
|
|
|
15
14
|
date?: string;
|
|
16
15
|
count?: number;
|
|
17
16
|
amount?: number;
|
|
17
|
+
hour?: number;
|
|
18
18
|
};
|
|
19
19
|
}>;
|
|
20
20
|
position?: {
|
|
21
21
|
x: number;
|
|
22
22
|
y: number;
|
|
23
23
|
};
|
|
24
|
-
offset: string | number | undefined;
|
|
25
24
|
dateRange: [Date, Date];
|
|
26
25
|
selectedCurrency: string;
|
|
27
26
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PayloadItem } from './types';
|
|
2
2
|
export declare const getTooltipFormattedValue: (point: PayloadItem | undefined, unitLabel: string, currency: string) => string;
|
|
3
|
-
export declare const getFormattedDateWithTimezone: (date: string | number | Date,
|
|
3
|
+
export declare const getFormattedDateWithTimezone: (date: string | number | Date, isSingleDay: boolean, hour?: number) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import dayjs from 'dayjs';
|
|
2
|
-
import { DATA_KEY
|
|
3
|
-
import {
|
|
2
|
+
import { DATA_KEY } from '../../constants/index.js';
|
|
3
|
+
import { formatAmountWithCurrency, formatCellDate } from '../../utils/index.js';
|
|
4
4
|
export const getTooltipFormattedValue = (point, unitLabel, currency) => {
|
|
5
5
|
if ((point === null || point === void 0 ? void 0 : point.value) === undefined || (point === null || point === void 0 ? void 0 : point.value) === null) {
|
|
6
6
|
return '';
|
|
@@ -8,16 +8,13 @@ export const getTooltipFormattedValue = (point, unitLabel, currency) => {
|
|
|
8
8
|
if ((point === null || point === void 0 ? void 0 : point.dataKey) === DATA_KEY.AMOUNT) {
|
|
9
9
|
return `${formatAmountWithCurrency(point.value, currency).fullAmount}`.trim();
|
|
10
10
|
}
|
|
11
|
-
return `${point.value} ${unitLabel}`.trim();
|
|
11
|
+
return `${point.value.toLocaleString()} ${unitLabel}`.trim();
|
|
12
12
|
};
|
|
13
|
-
export const getFormattedDateWithTimezone = (date,
|
|
14
|
-
const
|
|
15
|
-
currentTimezone: TIMEZONES.UTC,
|
|
16
|
-
targetTimezone: offset,
|
|
17
|
-
});
|
|
13
|
+
export const getFormattedDateWithTimezone = (date, isSingleDay, hour = 0) => {
|
|
14
|
+
const dayjsDate = dayjs(date).add(hour, 'hour').format();
|
|
18
15
|
const todayDate = new Date();
|
|
19
|
-
const isCurrentYear = dayjs(
|
|
20
|
-
return formatCellDate(
|
|
16
|
+
const isCurrentYear = dayjs(dayjsDate).isSame(todayDate, 'year');
|
|
17
|
+
return formatCellDate(dayjsDate, isSingleDay
|
|
21
18
|
? undefined
|
|
22
19
|
: {
|
|
23
20
|
sameDay: `[Today] ${isCurrentYear ? '' : 'YYYY'}`,
|
|
@@ -26,5 +23,5 @@ export const getFormattedDateWithTimezone = (date, offset, isSingleDay) => {
|
|
|
26
23
|
sameElse: `MMM DD ${isCurrentYear ? '' : ', YYYY'}`,
|
|
27
24
|
lastWeek: `MMM DD ${isCurrentYear ? '' : ', YYYY'}`,
|
|
28
25
|
nextWeek: `MMM DD ${isCurrentYear ? '' : ', YYYY'}`,
|
|
29
|
-
});
|
|
26
|
+
}, undefined, undefined, !!hour);
|
|
30
27
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import AppWindowWrapper from './AppWindowWrapper';
|
|
2
|
-
export { default as AppWindow, type WindowProps, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindow';
|
|
2
|
+
export { default as AppWindow, type WindowProps, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, FOOTER_HEIGHT, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindow';
|
|
3
3
|
export * from './headers/AccountHeader';
|
|
4
4
|
export * from './context';
|
|
5
5
|
export type { AppWindowProps } from './type';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import AppWindowWrapper from './AppWindowWrapper';
|
|
2
|
-
export { default as AppWindow, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindow';
|
|
2
|
+
export { default as AppWindow, LEFT_SIDEBAR, RIGHT_SIDEBAR, VIEWER_HEIGHT, VIEWER_WIDTH, animationDuration, FOOTER_HEIGHT, StyledFooter, StyledHideButton, StyledMenuLink, StyledSubmitButton, SubmitButtonWrapper, } from './AppWindow';
|
|
3
3
|
export * from './headers/AccountHeader';
|
|
4
4
|
export * from './context';
|
|
5
5
|
export default AppWindowWrapper;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const ChipStyled: import("@emotion/styled").StyledComponent<import("react").RefAttributes<unknown> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
3
4
|
variant?: import("./type").ChipVariant | undefined;
|
|
4
5
|
icon?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | import("react").ReactDOM | null | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as FileInput } from './FileInput';
|
|
2
|
-
export { default as CountriesDropdown } from './CountriesDropDown';
|
|
2
|
+
export { default as CountriesDropdown, InputNumberStyled, MobileWrapper } from './CountriesDropDown';
|
|
3
3
|
export { default as SearchInput } from './SearchInput';
|
|
4
4
|
export { default as Input } from './Input';
|
|
5
5
|
export { default as Select } from './Select';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as FileInput } from './FileInput';
|
|
2
|
-
export { default as CountriesDropdown } from './CountriesDropDown';
|
|
2
|
+
export { default as CountriesDropdown, InputNumberStyled, MobileWrapper } from './CountriesDropDown';
|
|
3
3
|
export { default as SearchInput } from './SearchInput';
|
|
4
4
|
export { default as Input } from './Input';
|
|
5
5
|
export { default as Select } from './Select';
|
|
@@ -5,6 +5,6 @@ interface OTPInputProps extends Omit<OtpInputProps, 'numInputs' | 'onChange'> {
|
|
|
5
5
|
onChange?: (otp: string) => void;
|
|
6
6
|
onSubmitOtp?: (otp: string) => void;
|
|
7
7
|
}
|
|
8
|
-
declare function OTPInput({ numInputs, separateAfter, isInputSecure, isInputNum, onSubmitOtp, onChange, ...props }: OTPInputProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function OTPInput({ numInputs, separateAfter, isInputSecure, isInputNum, onSubmitOtp, onChange, inputProps, ...props }: OTPInputProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
declare const _default: import("react").MemoExoticComponent<typeof OTPInput>;
|
|
10
10
|
export default _default;
|
|
@@ -12,10 +12,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { useState, memo } from 'react';
|
|
14
14
|
import Box from '@mui/material/Box';
|
|
15
|
-
import
|
|
15
|
+
import OtpInput from 'react18-input-otp';
|
|
16
16
|
import { inputFocusStyle, inputStyle, inputErrorStyle, Separator } from './style';
|
|
17
17
|
function OTPInput(_a) {
|
|
18
|
-
var { numInputs = 6, separateAfter = 3, isInputSecure = true, isInputNum = true, onSubmitOtp, onChange } = _a, props = __rest(_a, ["numInputs", "separateAfter", "isInputSecure", "isInputNum", "onSubmitOtp", "onChange"]);
|
|
18
|
+
var { numInputs = 6, separateAfter = 3, isInputSecure = true, isInputNum = true, onSubmitOtp, onChange, inputProps } = _a, props = __rest(_a, ["numInputs", "separateAfter", "isInputSecure", "isInputNum", "onSubmitOtp", "onChange", "inputProps"]);
|
|
19
19
|
const [otp, setOtp] = useState('');
|
|
20
20
|
const handleChange = (enteredOtp) => {
|
|
21
21
|
setOtp(enteredOtp);
|
|
@@ -28,6 +28,9 @@ function OTPInput(_a) {
|
|
|
28
28
|
'::selection': {
|
|
29
29
|
background: 'transparent',
|
|
30
30
|
},
|
|
31
|
-
} }, { children: _jsx(
|
|
31
|
+
} }, { children: _jsx(OtpInput, Object.assign({ inputStyle: Object.assign(Object.assign({}, inputStyle), inputProps), focusStyle: inputFocusStyle, errorStyle: inputErrorStyle, containerStyle: {
|
|
32
|
+
gap: '7px',
|
|
33
|
+
justifyContent: 'space-between',
|
|
34
|
+
}, value: otp, separator: _jsx(Separator, { children: "-" }), isInputNum: isInputNum, isInputSecure: isInputSecure, numInputs: numInputs, separateAfter: separateAfter, shouldAutoFocus: true, onChange: handleChange, autoComplete: "new-password", "aria-autocomplete": "none", inputProps: Object.assign({ autoComplete: 'new-password', 'aria-autocomplete': 'none', pattern: '[0-9]*' }, inputProps) }, props)) })));
|
|
32
35
|
}
|
|
33
36
|
export default memo(OTPInput);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const ActionCellContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
|
|
3
4
|
export declare const ActionsIconContainer: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
5
|
selected: boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const AuthIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
3
4
|
export declare const AuthCellContainer: import("@emotion/styled").StyledComponent<{
|
|
4
5
|
hidden?: boolean | undefined;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -11,7 +11,7 @@ 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 Tooltip from '../../../Tooltip';
|
|
14
|
-
import {
|
|
14
|
+
import { destinationSolidIcon } from '../../../../constants/index.js';
|
|
15
15
|
import { formatAmount } from '../../../../utils/index.js';
|
|
16
16
|
import { DestinationCellContainer, DestinationCount, StyledDestinationCell, StyledDestinationIcon } from './styled';
|
|
17
17
|
import TableCell from '../../TableCell';
|
|
@@ -33,6 +33,6 @@ function DestinationCell(_a) {
|
|
|
33
33
|
return (_jsx(TableCell, Object.assign({ sx: {
|
|
34
34
|
width: 'fit-content',
|
|
35
35
|
overflow: 'visible',
|
|
36
|
-
} }, props, { children: _jsx(Tooltip, Object.assign({ title: destinationsTooltip }, { children: !isTextShown ? (_jsxs(StyledDestinationCell, { children: [_jsx(StyledDestinationIcon, { src:
|
|
36
|
+
} }, props, { children: _jsx(Tooltip, Object.assign({ title: destinationsTooltip }, { children: !isTextShown ? (_jsxs(StyledDestinationCell, { children: [_jsx(StyledDestinationIcon, { src: destinationSolidIcon, pointLeft: iconDirection === 'left' }), destinationsCount > 1 && (_jsx(DestinationCellContainer, Object.assign({ destinationsCount: 1 }, { children: _jsx(DestinationCount, { children: destinationsCount }) })))] })) : (textView) })) })));
|
|
37
37
|
}
|
|
38
38
|
export default DestinationCell;
|
|
@@ -10,19 +10,23 @@ export const DestinationCellContainer = styled('span')(({ theme, destinationsCou
|
|
|
10
10
|
}));
|
|
11
11
|
export const DestinationCount = styled('span')(({ theme }) => ({
|
|
12
12
|
fontSize: theme.typography.pxToRem(12),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
backgroundColor: theme.palette.common.white,
|
|
13
|
+
color: theme.palette.info.dark,
|
|
14
|
+
fontWeight: 700,
|
|
16
15
|
paddingInline: theme.spacing(1),
|
|
17
16
|
borderRadius: theme.spacing(1),
|
|
17
|
+
display: 'flex',
|
|
18
|
+
alignItems: 'center',
|
|
19
|
+
justifyContent: 'center',
|
|
20
|
+
backgroundColor: `${theme.palette.info.dark}1A`,
|
|
18
21
|
}));
|
|
19
22
|
export const StyledDestinationCell = styled('span')(({ theme }) => ({
|
|
20
23
|
display: 'flex',
|
|
21
24
|
alignItems: 'center',
|
|
22
25
|
justifyContent: 'flex-start',
|
|
23
26
|
gap: theme.spacing(1),
|
|
24
|
-
backgroundColor:
|
|
25
|
-
|
|
27
|
+
backgroundColor: theme.palette.common.white,
|
|
28
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
29
|
+
paddingInline: theme.spacing(1),
|
|
26
30
|
borderRadius: '56px',
|
|
27
31
|
height: '24px',
|
|
28
32
|
}));
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const StyledSourceCell: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
3
4
|
export declare const StyledSourceImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
4
5
|
export declare const PaymentSourcesContainer: import("@emotion/styled").StyledComponent<{
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/// <reference types="react" />
|
|
2
3
|
export declare const GeographyBox: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme> & {
|
|
3
4
|
variant?: "Local" | "Global" | "Regional" | undefined;
|
|
4
5
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
@@ -19,14 +19,14 @@ export { default as SimpleDialog, type SimpleDialogProps } from './SimpleDialog'
|
|
|
19
19
|
export { default as SearchButton } from './SearchButton';
|
|
20
20
|
export { default as Loaders } from './Loaders';
|
|
21
21
|
export { default as ExportButton } from './ExportButton';
|
|
22
|
-
export { default as DropdownMenu, type IProps, type MenuItemI } from './DropdownMenu';
|
|
22
|
+
export { default as DropdownMenu, type IProps, type MenuItemI, StyledIconForDropDown, StyledMenuTitle, StyledOption, StyledSelect, StyledSelectComponent, } from './DropdownMenu';
|
|
23
23
|
export { default as DockButton, type DockButtonProps, type DockButtonWrapperProps } from './DockButton';
|
|
24
24
|
export { default as DateButton } from './DateButton';
|
|
25
25
|
export { default as WindowSideBar, TITLE_BAR_HEIGHT } from './WindowSideBar';
|
|
26
26
|
export { default as WindowAppIcon } from './WindowAppIcon';
|
|
27
27
|
export { default as Window } from './Window';
|
|
28
28
|
export * from './ToolbarIcon';
|
|
29
|
-
export { default as Toolbar, type ToolbarProps } from './Toolbar';
|
|
29
|
+
export { default as Toolbar, type ToolbarProps, StyledHeaderWrapper, StyledHeaderWrapperStyled } from './Toolbar';
|
|
30
30
|
export { default as ToggleButtons, type ToggleButtonProps, type ToggleButtonsProps, type ToggleOption, type ToggleOptionKey } from './ToggleButtons';
|
|
31
31
|
export { default as Text } from './Text';
|
|
32
32
|
export * from './TableCells';
|
|
@@ -19,14 +19,14 @@ export { default as SimpleDialog } from './SimpleDialog';
|
|
|
19
19
|
export { default as SearchButton } from './SearchButton';
|
|
20
20
|
export { default as Loaders } from './Loaders';
|
|
21
21
|
export { default as ExportButton } from './ExportButton';
|
|
22
|
-
export { default as DropdownMenu } from './DropdownMenu';
|
|
22
|
+
export { default as DropdownMenu, StyledIconForDropDown, StyledMenuTitle, StyledOption, StyledSelect, StyledSelectComponent, } from './DropdownMenu';
|
|
23
23
|
export { default as DockButton } from './DockButton';
|
|
24
24
|
export { default as DateButton } from './DateButton';
|
|
25
25
|
export { default as WindowSideBar, TITLE_BAR_HEIGHT } from './WindowSideBar';
|
|
26
26
|
export { default as WindowAppIcon } from './WindowAppIcon';
|
|
27
27
|
export { default as Window } from './Window';
|
|
28
28
|
export * from './ToolbarIcon';
|
|
29
|
-
export { default as Toolbar } from './Toolbar';
|
|
29
|
+
export { default as Toolbar, StyledHeaderWrapper, StyledHeaderWrapperStyled } from './Toolbar';
|
|
30
30
|
export { default as ToggleButtons } from './ToggleButtons';
|
|
31
31
|
export { default as Text } from './Text';
|
|
32
32
|
export * from './TableCells';
|
|
@@ -6,6 +6,7 @@ export declare const abandonedIcon: string;
|
|
|
6
6
|
export declare const abandonedYellowIcon: string;
|
|
7
7
|
export declare const chevronDownIcon: string;
|
|
8
8
|
export declare const reversedIcon: string;
|
|
9
|
+
export declare const destinationSolidIcon: string;
|
|
9
10
|
export declare const searchIcon: string;
|
|
10
11
|
export declare const unAuthorizedIcon: string;
|
|
11
12
|
export declare const viewIcon: string;
|
|
@@ -7,6 +7,7 @@ export const abandonedIcon = `${lightUrl}/abandoned.svg`;
|
|
|
7
7
|
export const abandonedYellowIcon = `${lightUrl}/abandonedYellow.svg`;
|
|
8
8
|
export const chevronDownIcon = `${lightUrl}/chevron-down.svg`;
|
|
9
9
|
export const reversedIcon = `${lightUrl}/reversed.svg`;
|
|
10
|
+
export const destinationSolidIcon = `${lightUrl}/destinationSolid.svg`;
|
|
10
11
|
export const searchIcon = `${lightUrl}/search.svg`;
|
|
11
12
|
export const unAuthorizedIcon = `${lightUrl}/unauthorized.svg`;
|
|
12
13
|
export const viewIcon = `${lightUrl}/view.svg`;
|
package/build/utils/billing.d.ts
CHANGED
package/build/utils/billing.js
CHANGED
package/build/utils/date.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare const generateYearList: (length?: number) => {
|
|
|
23
23
|
id: number;
|
|
24
24
|
label: number;
|
|
25
25
|
}[];
|
|
26
|
-
export declare const formatCellDate: (dateObj?: Date | string | number, customFormat?: object, currentTimezone?: string | number, expectedTimezone?: string | number) => string;
|
|
26
|
+
export declare const formatCellDate: (dateObj?: Date | string | number, customFormat?: object, currentTimezone?: string | number, expectedTimezone?: string | number, showHours?: boolean) => string;
|
|
27
27
|
export declare const formatDate: (date: Date | string | number, format?: string) => string;
|
|
28
28
|
export declare const getValueOfStartOfDay: (date?: Date | number) => number;
|
|
29
29
|
export declare const getValueOfEndOfDay: (date?: Date | number) => number;
|
package/build/utils/date.js
CHANGED
|
@@ -121,7 +121,7 @@ export const generateYearList = (length) => Array.from({ length: length !== null
|
|
|
121
121
|
id: day,
|
|
122
122
|
label: day,
|
|
123
123
|
}));
|
|
124
|
-
export const formatCellDate = (dateObj, customFormat, currentTimezone, expectedTimezone) => {
|
|
124
|
+
export const formatCellDate = (dateObj, customFormat, currentTimezone, expectedTimezone, showHours = true) => {
|
|
125
125
|
if (!dateObj) {
|
|
126
126
|
return '';
|
|
127
127
|
}
|
|
@@ -132,21 +132,21 @@ export const formatCellDate = (dateObj, customFormat, currentTimezone, expectedT
|
|
|
132
132
|
const todayDate = new Date();
|
|
133
133
|
const isCurrentYear = dayjs(dateObj).isSame(todayDate, 'year');
|
|
134
134
|
let format = {
|
|
135
|
-
sameDay:
|
|
136
|
-
nextDay:
|
|
137
|
-
lastDay:
|
|
138
|
-
sameElse:
|
|
139
|
-
lastWeek:
|
|
140
|
-
nextWeek:
|
|
135
|
+
sameDay: `[Today]${showHours ? ', h:mma' : ''}`,
|
|
136
|
+
nextDay: `[Tomorrow]${showHours ? ', h:mma' : ''}`,
|
|
137
|
+
lastDay: `[Yesterday]${showHours ? ', h:mma' : ''}`,
|
|
138
|
+
sameElse: `MMM DD, YYYY${showHours ? ', h:mma' : ''}`,
|
|
139
|
+
lastWeek: `MMM DD, YYYY${showHours ? ', h:mma' : ''}`,
|
|
140
|
+
nextWeek: `MMM DD, YYYY${showHours ? ', h:mma' : ''}`,
|
|
141
141
|
};
|
|
142
142
|
if (isCurrentYear) {
|
|
143
143
|
format = {
|
|
144
|
-
sameDay:
|
|
145
|
-
nextDay:
|
|
146
|
-
lastDay:
|
|
147
|
-
sameElse:
|
|
148
|
-
lastWeek:
|
|
149
|
-
nextWeek:
|
|
144
|
+
sameDay: `[Today]${showHours ? ', h:mma' : ''}`,
|
|
145
|
+
nextDay: `[Tomorrow]${showHours ? ', h:mma' : ''}`,
|
|
146
|
+
lastDay: `[Yesterday]${showHours ? ', h:mma' : ''}`,
|
|
147
|
+
sameElse: `MMM DD${showHours ? ', h:mma' : ''}`,
|
|
148
|
+
lastWeek: `MMM DD${showHours ? ', h:mma' : ''}`,
|
|
149
|
+
nextWeek: `MMM DD${showHours ? ', h:mma' : ''}`,
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
if (!currentTimezone && !expectedTimezone) {
|
package/package.json
CHANGED