@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.
Files changed (79) hide show
  1. package/build/components/ActivityAreaChart/ActivityAreaChart.d.ts +1 -1
  2. package/build/components/ActivityAreaChart/ActivityAreaChart.js +2 -2
  3. package/build/components/ActivityAreaChart/components/ChartTooltip.d.ts +1 -1
  4. package/build/components/ActivityAreaChart/components/ChartTooltip.js +4 -4
  5. package/build/components/ActivityAreaChart/types.d.ts +1 -2
  6. package/build/components/ActivityAreaChart/utils.d.ts +1 -1
  7. package/build/components/ActivityAreaChart/utils.js +8 -11
  8. package/build/components/AppWindowWrapper/index.d.ts +1 -1
  9. package/build/components/AppWindowWrapper/index.js +1 -1
  10. package/build/components/Chip/style.d.ts +1 -0
  11. package/build/components/CountBadge/style.d.ts +1 -0
  12. package/build/components/DeviceIcon/index.d.ts +1 -0
  13. package/build/components/DeviceIcon/index.js +1 -0
  14. package/build/components/Dialog/index.d.ts +1 -0
  15. package/build/components/Dialog/index.js +1 -0
  16. package/build/components/Dialog/style.d.ts +1 -0
  17. package/build/components/DropdownMenu/index.d.ts +1 -0
  18. package/build/components/DropdownMenu/index.js +1 -0
  19. package/build/components/FlippingCard/style.d.ts +1 -0
  20. package/build/components/HeatMap/index.d.ts +1 -0
  21. package/build/components/HeatMap/index.js +1 -0
  22. package/build/components/ImageWrapper/ImageWrapper.d.ts +1 -0
  23. package/build/components/Inputs/CountriesDropDown/index.d.ts +1 -0
  24. package/build/components/Inputs/CountriesDropDown/index.js +1 -0
  25. package/build/components/Inputs/index.d.ts +1 -1
  26. package/build/components/Inputs/index.js +1 -1
  27. package/build/components/JSONViewer/style.d.ts +1 -0
  28. package/build/components/OTPInput/OTPInput.d.ts +1 -1
  29. package/build/components/OTPInput/OTPInput.js +6 -3
  30. package/build/components/OTPInput/style.d.ts +0 -1
  31. package/build/components/OTPInput/style.js +0 -1
  32. package/build/components/SearchButton/styles.d.ts +1 -0
  33. package/build/components/StatusIcons/AuthIcons/style.d.ts +1 -0
  34. package/build/components/StatusIcons/AuthorizationAutoIcons/style.d.ts +1 -0
  35. package/build/components/StatusIcons/ChargeStatusIcon/style.d.ts +1 -0
  36. package/build/components/StatusIcons/SourceIcons/style.d.ts +1 -0
  37. package/build/components/TableCells/CustomCells/ActionCell/style.d.ts +1 -0
  38. package/build/components/TableCells/CustomCells/AuthenticationCell/style.d.ts +1 -0
  39. package/build/components/TableCells/CustomCells/AuthenticationStatusCell/style.d.ts +1 -0
  40. package/build/components/TableCells/CustomCells/AuthenticationTypeCell/style.d.ts +1 -0
  41. package/build/components/TableCells/CustomCells/BalanceCell/style.d.ts +1 -0
  42. package/build/components/TableCells/CustomCells/ChannelsCell/style.d.ts +1 -0
  43. package/build/components/TableCells/CustomCells/CheckoutStatusCell/style.d.ts +1 -0
  44. package/build/components/TableCells/CustomCells/DestinationCell/DestinationCell.js +2 -2
  45. package/build/components/TableCells/CustomCells/DestinationCell/styled.js +9 -5
  46. package/build/components/TableCells/CustomCells/DestinationStatusCell/style.d.ts +1 -0
  47. package/build/components/TableCells/CustomCells/DueDateCell/style.d.ts +1 -0
  48. package/build/components/TableCells/CustomCells/IDButton/style.d.ts +1 -0
  49. package/build/components/TableCells/CustomCells/IntentsStatusCell/style.d.ts +1 -0
  50. package/build/components/TableCells/CustomCells/InvoiceStatusCell/style.d.ts +1 -0
  51. package/build/components/TableCells/CustomCells/PayoutStatusCell/style.d.ts +1 -0
  52. package/build/components/TableCells/CustomCells/ProductsCell/style.d.ts +1 -0
  53. package/build/components/TableCells/CustomCells/ReferenceCell/style.d.ts +1 -0
  54. package/build/components/TableCells/CustomCells/RefundChargeCell/style.d.ts +1 -0
  55. package/build/components/TableCells/CustomCells/RefundStatusCell/style.d.ts +1 -0
  56. package/build/components/TableCells/CustomCells/SegmentsCell/style.d.ts +1 -0
  57. package/build/components/TableCells/CustomCells/SourceCell/index.d.ts +1 -0
  58. package/build/components/TableCells/CustomCells/SourceCell/index.js +1 -0
  59. package/build/components/TableCells/CustomCells/SourceCell/style.d.ts +1 -0
  60. package/build/components/TableCells/CustomCells/SourceMergedCell/style.d.ts +1 -0
  61. package/build/components/TableCells/CustomCells/StatusCell/style.d.ts +1 -0
  62. package/build/components/TableCells/CustomCells/TokenStatusCell/style.d.ts +1 -0
  63. package/build/components/TableCells/CustomCells/style.d.ts +1 -0
  64. package/build/components/Toolbar/index.d.ts +1 -1
  65. package/build/components/Toolbar/index.js +1 -1
  66. package/build/components/VirtualTable/components/EmptyList/index.d.ts +1 -0
  67. package/build/components/VirtualTable/components/EmptyList/index.js +1 -0
  68. package/build/components/VirtualTable/style.d.ts +1 -0
  69. package/build/components/WindowSideBar/index.d.ts +1 -0
  70. package/build/components/WindowSideBar/index.js +1 -0
  71. package/build/components/index.d.ts +2 -2
  72. package/build/components/index.js +2 -2
  73. package/build/constants/assets.d.ts +1 -0
  74. package/build/constants/assets.js +1 -0
  75. package/build/utils/billing.d.ts +1 -0
  76. package/build/utils/billing.js +1 -0
  77. package/build/utils/date.d.ts +1 -1
  78. package/build/utils/date.js +13 -13
  79. package/package.json +1 -1
@@ -1,3 +1,3 @@
1
1
  import { ActivityAreaChartProps } from './types';
2
- declare const ActivityAreaChart: ({ data, dataKey, isLoading, offset, dateRange, selectedCurrency }: ActivityAreaChartProps) => import("react/jsx-runtime").JSX.Element;
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, offset, dateRange, selectedCurrency }) => {
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, offset: offset, dateRange: dateRange, selectedCurrency: selectedCurrency });
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, offset, dateRange, selectedCurrency }: ChartTooltipProps) => import("react/jsx-runtime").JSX.Element | null;
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, offset, dateRange, selectedCurrency }) => {
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, offset, isSingleDay);
18
- return (_jsxs(TooltipContainer, Object.assign({ className: "chart-tooltip" }, { children: [_jsx(TimeTypography, { children: formattedDate !== null && formattedDate !== void 0 ? formattedDate : (_c = point === null || point === void 0 ? void 0 : point.payload) === null || _c === void 0 ? void 0 : _c.date }), _jsxs(ValueTypography, { children: [`${getTooltipFormattedValue(point, t(localizedUnitLabel), selectedCurrency)}`, (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 })] }))] })] })));
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, offset: string | number | undefined, isSingleDay: boolean) => string;
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, TIMEZONES } from '../../constants/index.js';
3
- import { changeDateTimezone, formatAmountWithCurrency, formatCellDate } from '../../utils/index.js';
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, offset, isSingleDay) => {
14
- const timezoneDate = changeDateTimezone(date !== null && date !== void 0 ? date : '', {
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(timezoneDate).isSame(todayDate, 'year');
20
- return formatCellDate(timezoneDate, isSingleDay
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,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const AgreementImageWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,2 +1,3 @@
1
1
  import DeviceIcon from './DeviceIcon';
2
+ export { isDeviceIconShown } from './utils';
2
3
  export default DeviceIcon;
@@ -1,2 +1,3 @@
1
1
  import DeviceIcon from './DeviceIcon';
2
+ export { isDeviceIconShown } from './utils';
2
3
  export default DeviceIcon;
@@ -1,3 +1,4 @@
1
1
  import Dialog from './Dialog';
2
2
  export { default as DialogToolbar } from './components/DialogToolbar';
3
+ export { DialogContent, DialogHeader, DialogFooter } from './style';
3
4
  export default Dialog;
@@ -1,3 +1,4 @@
1
1
  import Dialog from './Dialog';
2
2
  export { default as DialogToolbar } from './components/DialogToolbar';
3
+ export { DialogContent, DialogHeader, DialogFooter } from './style';
3
4
  export default Dialog;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DialogWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,3 +1,4 @@
1
1
  import DropdownMenu from './DropdownMenu';
2
2
  export type { IProps, MenuItemI } from './type';
3
+ export { StyledIconForDropDown, StyledMenuTitle, StyledOption, StyledSelect, StyledSelectComponent } from './styles';
3
4
  export default DropdownMenu;
@@ -1,2 +1,3 @@
1
1
  import DropdownMenu from './DropdownMenu';
2
+ export { StyledIconForDropDown, StyledMenuTitle, StyledOption, StyledSelect, StyledSelectComponent } from './styles';
2
3
  export default DropdownMenu;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Wrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,3 +1,4 @@
1
1
  import HeatMap from './HeatMap';
2
2
  export type { HeatMapProps, Data } from './type';
3
+ export { getColorOpacityDegree } from './utils';
3
4
  export default HeatMap;
@@ -1,2 +1,3 @@
1
1
  import HeatMap from './HeatMap';
2
+ export { getColorOpacityDegree } from './utils';
2
3
  export default HeatMap;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  declare const ImageWrapper: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,2 +1,3 @@
1
1
  import CountriesDropdown from './CountriesDropdown';
2
+ export { InputNumberStyled, MobileWrapper } from './style';
2
3
  export default CountriesDropdown;
@@ -1,2 +1,3 @@
1
1
  import CountriesDropdown from './CountriesDropdown';
2
+ export { InputNumberStyled, MobileWrapper } from './style';
2
3
  export default CountriesDropdown;
@@ -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';
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const FOOTER_HEIGHT = 37;
3
4
  export declare const TITLE_BAR_HEIGHT = "32px";
4
5
  export declare const VIEWER_HEIGHT = 545;
@@ -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 Input from 'react18-input-otp';
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(Input, Object.assign({ inputStyle: Object.assign(Object.assign({}, inputStyle), props.inputProps), focusStyle: inputFocusStyle, errorStyle: inputErrorStyle, value: otp, separator: _jsx(Separator, { children: "-" }), isInputNum: isInputNum, isInputSecure: isInputSecure, numInputs: numInputs, separateAfter: separateAfter, shouldAutoFocus: true, onChange: handleChange }, props)) })));
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);
@@ -7,7 +7,6 @@ export declare const inputStyle: {
7
7
  border: string;
8
8
  caretColor: string;
9
9
  outline: string;
10
- margin: string;
11
10
  userSelect: string;
12
11
  color: string;
13
12
  };
@@ -7,7 +7,6 @@ export const inputStyle = {
7
7
  border: `1px solid #f2f2f2`,
8
8
  caretColor: 'transparent',
9
9
  outline: 'none',
10
- margin: '0 4px',
11
10
  userSelect: 'none !important',
12
11
  color: '#20232B',
13
12
  };
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const StyledInput: import("@emotion/styled").StyledComponent<{
3
4
  width?: string | number | undefined;
4
5
  height?: string | number | 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<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ErrorCodeLabel: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | 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<{
@@ -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 UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const BalanceCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | 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<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -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 { reversedIcon } from '../../../../constants/index.js';
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: reversedIcon, pointLeft: iconDirection === 'left' }), destinationsCount > 1 && (_jsx(DestinationCellContainer, Object.assign({ destinationsCount: 1 }, { children: _jsx(DestinationCount, { children: destinationsCount }) })))] })) : (textView) })) })));
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
- fontWeight: 500,
14
- color: theme.palette.common.black,
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: `${theme.palette.info.dark}1A`,
25
- paddingInline: theme.spacing(0.71875),
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 UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const Button: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const DueDateCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ProductCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | 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 ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundChargeCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const RefundCellContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | 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 ReferenceSourcesContainer: import("@emotion/styled").StyledComponent<{
@@ -1 +1,2 @@
1
1
  export { default as SourceCell } from './SourceCell';
2
+ export { StyledSourceImage } from './style';
@@ -1 +1,2 @@
1
1
  export { default as SourceCell } from './SourceCell';
2
+ export { StyledSourceImage } from './style';
@@ -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 collapsedViewIconVariants: {
3
4
  default: {
4
5
  duration: number;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const MultiRefundIcon: import("@emotion/styled").StyledComponent<{
3
4
  width?: string | number | undefined;
4
5
  height?: string | number | undefined;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const UnCapturedContainer: import("@emotion/styled").StyledComponent<{
3
4
  hidden?: boolean | undefined;
4
5
  id?: string | undefined;
@@ -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>, {}>;
@@ -1,4 +1,4 @@
1
1
  import Toolbar from './Toolbar';
2
2
  export * from './type';
3
- export { StyledHeaderWrapperStyled } from './style';
3
+ export { StyledHeaderWrapperStyled, StyledHeaderWrapper } from './style';
4
4
  export default Toolbar;
@@ -1,4 +1,4 @@
1
1
  import Toolbar from './Toolbar';
2
2
  export * from './type';
3
- export { StyledHeaderWrapperStyled } from './style';
3
+ export { StyledHeaderWrapperStyled, StyledHeaderWrapper } from './style';
4
4
  export default Toolbar;
@@ -1,2 +1,3 @@
1
1
  import EmptyList from './EmptyList';
2
+ export { StyledImage } from './styles';
2
3
  export default EmptyList;
@@ -1,2 +1,3 @@
1
1
  import EmptyList from './EmptyList';
2
+ export { StyledImage } from './styles';
2
3
  export default EmptyList;
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  interface TableWrapperProps {
3
4
  showNoDataView?: boolean;
4
5
  }
@@ -1,3 +1,4 @@
1
1
  import WindowSideBar from './WindowSideBar';
2
2
  export { TITLE_BAR_HEIGHT } from './constant';
3
+ export { SideBar, Content } from './style';
3
4
  export default WindowSideBar;
@@ -1,3 +1,4 @@
1
1
  import WindowSideBar from './WindowSideBar';
2
2
  export { TITLE_BAR_HEIGHT } from './constant';
3
+ export { SideBar, Content } from './style';
3
4
  export default WindowSideBar;
@@ -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`;
@@ -8,6 +8,7 @@ export declare const getDefaultInvoiceInfo: () => {
8
8
  email: string;
9
9
  phoneNumber: string;
10
10
  };
11
+ langCode: string;
11
12
  selectedCurrency: Currency;
12
13
  isLoading: boolean;
13
14
  totalGrossAmount: number;
@@ -8,6 +8,7 @@ export const getDefaultInvoiceInfo = () => ({
8
8
  email: '',
9
9
  phoneNumber: '',
10
10
  },
11
+ langCode: 'EN',
11
12
  selectedCurrency: {},
12
13
  isLoading: false,
13
14
  totalGrossAmount: 0,
@@ -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;
@@ -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: '[Today], h:mma',
136
- nextDay: '[Tomorrow], h:mma',
137
- lastDay: '[Yesterday], h:mma',
138
- sameElse: 'MMM DD, YYYY, h:mma',
139
- lastWeek: 'MMM DD, YYYY, h:mma',
140
- nextWeek: 'MMM DD, YYYY, h:mma',
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: '[Today], h:mma',
145
- nextDay: '[Tomorrow], h:mma',
146
- lastDay: '[Yesterday], h:mma',
147
- sameElse: 'MMM DD, h:mma',
148
- lastWeek: 'MMM DD, h:mma',
149
- nextWeek: 'MMM DD, h:mma',
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
@@ -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.35",
4
+ "version": "0.0.38",
5
5
  "type": "module",
6
6
  "main": "build/index.js",
7
7
  "module": "build/index.js",