@tap-payments/os-micro-frontend-shared 0.0.34 → 0.0.36

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 (49) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +12 -12
  3. package/build/components/ActionMenu/style.d.ts +1 -1
  4. package/build/components/ActivityAreaChart/ActivityAreaChart.d.ts +1 -1
  5. package/build/components/ActivityAreaChart/ActivityAreaChart.js +2 -2
  6. package/build/components/ActivityAreaChart/components/ChartTooltip.d.ts +1 -1
  7. package/build/components/ActivityAreaChart/components/ChartTooltip.js +4 -4
  8. package/build/components/ActivityAreaChart/types.d.ts +1 -2
  9. package/build/components/ActivityAreaChart/utils.d.ts +1 -1
  10. package/build/components/ActivityAreaChart/utils.js +8 -11
  11. package/build/components/AppWindowWrapper/index.d.ts +1 -1
  12. package/build/components/AppWindowWrapper/index.js +1 -1
  13. package/build/components/DeviceIcon/index.d.ts +1 -0
  14. package/build/components/DeviceIcon/index.js +1 -0
  15. package/build/components/Dialog/index.d.ts +1 -0
  16. package/build/components/Dialog/index.js +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/HeatMap/index.d.ts +1 -0
  20. package/build/components/HeatMap/index.js +1 -0
  21. package/build/components/Inputs/CountriesDropDown/index.d.ts +1 -0
  22. package/build/components/Inputs/CountriesDropDown/index.js +1 -0
  23. package/build/components/Inputs/index.d.ts +1 -1
  24. package/build/components/Inputs/index.js +1 -1
  25. package/build/components/SearchButton/styles.d.ts +1 -1
  26. package/build/components/TableCells/CustomCells/SourceCell/index.d.ts +1 -0
  27. package/build/components/TableCells/CustomCells/SourceCell/index.js +1 -0
  28. package/build/components/TableHeader_V2/components/StatusButtons/StatusButton.js +2 -2
  29. package/build/components/TableHeader_V2/components/StatusButtons/style.d.ts +1 -1
  30. package/build/components/TableHeader_V2/components/StatusButtons/style.js +1 -1
  31. package/build/components/TableHeader_V2/index.d.ts +2 -1
  32. package/build/components/TableHeader_V2/index.js +2 -1
  33. package/build/components/Toolbar/index.d.ts +1 -1
  34. package/build/components/Toolbar/index.js +1 -1
  35. package/build/components/VirtualTable/components/EmptyList/index.d.ts +1 -0
  36. package/build/components/VirtualTable/components/EmptyList/index.js +1 -0
  37. package/build/components/WindowSideBar/index.d.ts +1 -0
  38. package/build/components/WindowSideBar/index.js +1 -0
  39. package/build/components/index.d.ts +2 -4
  40. package/build/components/index.js +2 -4
  41. package/build/utils/billing.d.ts +1 -0
  42. package/build/utils/billing.js +1 -0
  43. package/build/utils/date.d.ts +1 -1
  44. package/build/utils/date.js +13 -13
  45. package/build/utils/index.d.ts +0 -1
  46. package/build/utils/index.js +0 -1
  47. package/package.json +130 -130
  48. package/build/utils/encrypt.d.ts +0 -1
  49. package/build/utils/encrypt.js +0 -44
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Tap Payments
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Tap Payments
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- # os-micro-frontend-shared
2
-
3
- ## Publishing Workflow
4
-
5
- 1. Update version in package.json
6
- 2. Commit changes
7
- 3. Create and push a tag:
8
-
9
- ```bash
10
- npm version patch # or minor, major
11
- git push origin main --tags
12
- ```
1
+ # os-micro-frontend-shared
2
+
3
+ ## Publishing Workflow
4
+
5
+ 1. Update version in package.json
6
+ 2. Commit changes
7
+ 3. Create and push a tag:
8
+
9
+ ```bash
10
+ npm version patch # or minor, major
11
+ git push origin main --tags
12
+ ```
@@ -15,7 +15,7 @@ export declare const Charge: import("@emotion/styled").StyledComponent<import("@
15
15
  export declare const DropDownChargeGapColumn: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
16
  export declare const StyledAmount: import("@emotion/styled").StyledComponent<Pick<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & {
17
17
  ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
18
- }, "width" | "height" | "hidden" | "type" | "style" | "color" | "content" | "translate" | "children" | "ref" | "form" | "slot" | "title" | "pattern" | "key" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "value" | "name" | "src" | "alt" | "size" | "multiple" | "accept" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "min" | "minLength" | "readOnly" | "required"> & {
18
+ }, "width" | "height" | "hidden" | "type" | "style" | "color" | "content" | "translate" | "children" | "ref" | "form" | "slot" | "title" | "pattern" | "key" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "list" | "value" | "src" | "alt" | "size" | "multiple" | "accept" | "autoComplete" | "capture" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "min" | "minLength" | "name" | "readOnly" | "required"> & {
19
19
  allowDecimals?: boolean | undefined;
20
20
  allowNegativeValue?: boolean | undefined;
21
21
  id?: string | undefined;
@@ -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,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,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,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,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';
@@ -269,7 +269,6 @@ export declare const StyledInput: import("@emotion/styled").StyledComponent<{
269
269
  placeholder?: string | undefined;
270
270
  list?: string | undefined;
271
271
  value?: string | number | readonly string[] | undefined;
272
- name?: string | undefined;
273
272
  src?: string | undefined;
274
273
  alt?: string | undefined;
275
274
  size?: number | undefined;
@@ -287,6 +286,7 @@ export declare const StyledInput: import("@emotion/styled").StyledComponent<{
287
286
  maxLength?: number | undefined;
288
287
  min?: string | number | undefined;
289
288
  minLength?: number | undefined;
289
+ name?: string | undefined;
290
290
  readOnly?: boolean | undefined;
291
291
  required?: boolean | undefined;
292
292
  step?: string | number | undefined;
@@ -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';
@@ -15,7 +15,7 @@ import { useTranslation } from 'react-i18next';
15
15
  import StyledBadge, { BadgeVariants } from '../../../CountBadge';
16
16
  import { convertToNumber, formatNumber } from '../../../../utils/index.js';
17
17
  import { ChevronIcon } from './ChevronIcon';
18
- import { ChevronContainer, Label, LabelWrapper, StyledStatusIcon, StyledDropdown, statusButtonVariants } from './style';
18
+ import { ChevronContainer, Label, LabelWrapper, StatusIcon, StyledDropdown, statusButtonVariants } from './style';
19
19
  import { statusButtonIcons } from './constant';
20
20
  export const StatusButton = memo((props) => {
21
21
  var _a, _b;
@@ -30,7 +30,7 @@ export const StatusButton = memo((props) => {
30
30
  };
31
31
  const Button = statusButtonVariants[variant];
32
32
  const hasDropdown = dropdownOptions && dropdownOptions.length > 0;
33
- const statusIcon = icon ? _jsx(StyledStatusIcon, { icon: icon, variant: variant, src: statusButtonIcons[icon], alt: `${icon}-icon` }) : null;
33
+ const statusIcon = icon ? _jsx(StatusIcon, { icon: icon, variant: variant, src: statusButtonIcons[icon], alt: `${icon}-icon` }) : null;
34
34
  const statusBadge = badgeCount && !Number.isNaN(convertToNumber(badgeCount)) ? (_jsx(StyledBadge, Object.assign({ variant: variant === 'active' ? BadgeVariants.ACTIVE : BadgeVariants.INACTIVE }, { children: formatNumber(Number(badgeCount)) }))) : null;
35
35
  const dropdownIcon = hasDropdown ? _jsx(ChevronIcon, { isActive: variant === 'active' }) : null;
36
36
  return (_jsxs(_Fragment, { children: [_jsx(Button, Object.assign({ "data-testid": "StatusButton" }, restProps, { ref: buttonRef, onClick: (e) => {
@@ -18,7 +18,7 @@ export declare const CountBadge: import("@emotion/styled").StyledComponent<impor
18
18
  }, keyof import("@mui/system").BoxOwnProps<Theme>> & import("@mui/system").MUIStyledCommonProps<Theme> & {
19
19
  variant: StatusButtonVariant;
20
20
  }, {}, {}>;
21
- export declare const StyledStatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
21
+ export declare const StatusIcon: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<Theme> & {
22
22
  variant: StatusButtonVariant;
23
23
  icon?: "initiated" | "captured" | "unCaptured" | "inProgress" | "abandoned" | "cancelled" | "reversed" | "authorized" | "paidOut" | "unauthenticated" | "authenticated" | "scheduled" | "unSettled" | "search" | "view" | "reports" | "chevronDown" | "unAuthorized" | "openFlag" | "closedFlag" | "textView" | "trashBin" | undefined;
24
24
  }, React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -26,7 +26,7 @@ export const CountBadge = styled(Box)(({ theme, variant }) => ({
26
26
  fontWeight: 700,
27
27
  lineHeight: '10px',
28
28
  }));
29
- export const StyledStatusIcon = styled('img')(({ theme, variant, icon }) => {
29
+ export const StatusIcon = styled('img')(({ theme, variant, icon }) => {
30
30
  var _a;
31
31
  return (Object.assign(Object.assign({ fill: variant === 'active' ? theme.palette.common.white : theme.palette.text.primary, color: variant === 'active' ? theme.palette.common.white : theme.palette.text.primary }, (!(((_a = ['openFlag', 'closedFlag']) === null || _a === void 0 ? void 0 : _a.includes(icon !== null && icon !== void 0 ? icon : '')) && variant === 'inActive') &&
32
32
  icon !== 'captured' && {
@@ -1,4 +1,5 @@
1
- export { default as TableHeader } from './TableHeader';
1
+ import TableHeader from './TableHeader';
2
+ export default TableHeader;
2
3
  export * from './style';
3
4
  export { FiltersRow } from './FiltersRow';
4
5
  export * from './components';
@@ -1,4 +1,5 @@
1
- export { default as TableHeader } from './TableHeader';
1
+ import TableHeader from './TableHeader';
2
+ export default TableHeader;
2
3
  export * from './style';
3
4
  export { FiltersRow } from './FiltersRow';
4
5
  export * from './components';
@@ -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,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';
@@ -84,5 +84,3 @@ export { default as OTPInput } from './OTPInput';
84
84
  export { default as FlagDetails } from './FlagDetails';
85
85
  export { default as TapLoader } from './Loaders';
86
86
  export { default as Error } from './Error';
87
- export * from './Chip';
88
- export * from './TableHeader_V2';
@@ -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';
@@ -84,5 +84,3 @@ export { default as OTPInput } from './OTPInput';
84
84
  export { default as FlagDetails } from './FlagDetails';
85
85
  export { default as TapLoader } from './Loaders';
86
86
  export { default as Error } from './Error';
87
- export * from './Chip';
88
- export * from './TableHeader_V2';
@@ -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) {
@@ -38,4 +38,3 @@ export * from './geography';
38
38
  export * from './billing';
39
39
  export * from './toggleOptions';
40
40
  export * from './flag';
41
- export * from './encrypt';
@@ -38,4 +38,3 @@ export * from './geography';
38
38
  export * from './billing';
39
39
  export * from './toggleOptions';
40
40
  export * from './flag';
41
- export * from './encrypt';
package/package.json CHANGED
@@ -1,130 +1,130 @@
1
- {
2
- "name": "@tap-payments/os-micro-frontend-shared",
3
- "description": "Shared components and utilities for Tap Payments micro frontends",
4
- "version": "0.0.34",
5
- "type": "module",
6
- "main": "build/index.js",
7
- "module": "build/index.js",
8
- "types": "build/index.d.ts",
9
- "exports": {
10
- ".": {
11
- "import": "./build/index.js",
12
- "require": "./build/index.js",
13
- "types": "./build/index.d.ts"
14
- },
15
- "./constants": {
16
- "import": "./build/constants/index.js",
17
- "require": "./build/constants/index.js",
18
- "types": "./build/constants/index.d.ts"
19
- },
20
- "./components": {
21
- "import": "./build/components/index.js",
22
- "require": "./build/components/index.js",
23
- "types": "./build/components/index.d.ts"
24
- },
25
- "./components/*": {
26
- "import": "./build/components/*/index.js",
27
- "require": "./build/components/*/index.js",
28
- "types": "./build/components/*/index.d.ts"
29
- },
30
- "./hooks": {
31
- "import": "./build/hooks/index.js",
32
- "require": "./build/hooks/index.js",
33
- "types": "./build/hooks/index.d.ts"
34
- },
35
- "./utils": {
36
- "import": "./build/utils/index.js",
37
- "require": "./build/utils/index.js",
38
- "types": "./build/utils/index.d.ts"
39
- },
40
- "./theme": {
41
- "import": "./build/theme/index.js",
42
- "require": "./build/theme/index.js",
43
- "types": "./build/theme/index.d.ts"
44
- },
45
- "./types": {
46
- "import": "./build/types/index.js",
47
- "require": "./build/types/index.js",
48
- "types": "./build/types/index.d.ts"
49
- }
50
- },
51
- "license": "MIT",
52
- "author": {
53
- "name": "Ahmed Sharkawy",
54
- "email": "a.elsharkawy@tap.company"
55
- },
56
- "files": [
57
- "build",
58
- "readme.md"
59
- ],
60
- "scripts": {
61
- "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
62
- "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
63
- "dev": "vite",
64
- "build": "tsc -b && vite build ",
65
- "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
66
- "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
67
- "lint": "eslint . --color",
68
- "lint:fix": "eslint src --fix --color",
69
- "preview": "vite preview",
70
- "prepare": "husky"
71
- },
72
- "dependencies": {
73
- "@emotion/react": "^11.11.0",
74
- "@emotion/styled": "^11.11.0",
75
- "@hookform/resolvers": "^3.3.1",
76
- "@mui/material": "^5.12.3",
77
- "@uiw/react-json-view": "^2.0.0-alpha.16",
78
- "axios": "^1.4.0",
79
- "dayjs": "^1.11.8",
80
- "framer-motion": "10.11.0",
81
- "i18next": "^22.4.15",
82
- "memoize-one": "^6.0.0",
83
- "re-resizable": "^6.9.9",
84
- "react": "^18.2.0",
85
- "react-currency-input-field": "^3.6.11",
86
- "react-dom": "^18.2.0",
87
- "react-draggable": "^4.4.6",
88
- "react-dropzone": "^14.2.3",
89
- "react-hook-form": "^7.45.4",
90
- "react-hot-toast": "^2.4.1",
91
- "react-i18next": "^12.2.2",
92
- "react-multi-date-picker": "^4.1.2",
93
- "react-router-dom": "^6.14.2",
94
- "react-virtualized-auto-sizer": "^1.0.20",
95
- "react-window": "^1.8.9",
96
- "react-window-infinite-loader": "^1.0.9",
97
- "react18-input-otp": "^1.1.4",
98
- "recharts": "^2.15.1"
99
- },
100
- "devDependencies": {
101
- "@eslint/js": "^9.17.0",
102
- "@testing-library/jest-dom": "^5.16.5",
103
- "@types/lodash": "^4.17.15",
104
- "@types/react": "^18.2.6",
105
- "@types/react-dom": "^18.3.5",
106
- "@types/react-virtualized-auto-sizer": "^1.0.8",
107
- "@types/react-window": "^1.8.5",
108
- "@types/react-window-infinite-loader": "^1.0.6",
109
- "@vitejs/plugin-react": "^4.3.4",
110
- "eslint": "^9.17.0",
111
- "eslint-plugin-react-hooks": "^5.0.0",
112
- "eslint-plugin-react-refresh": "^0.4.16",
113
- "globals": "^15.14.0",
114
- "husky": "^8.0.3",
115
- "lint-staged": "^13.2.2",
116
- "prettier": "^2.8.8",
117
- "tsc-alias": "^1.8.16",
118
- "typescript": "5.0.2",
119
- "typescript-eslint": "^8.18.2",
120
- "vite": "6.0.5",
121
- "vite-plugin-svgr": "^4.3.0",
122
- "vite-tsconfig-paths": "^4.2.0"
123
- },
124
- "lint-staged": {
125
- "src/**/*.{ts,tsx,json,js,jsx}": [
126
- "yarn run prettier:fix",
127
- "yarn run lint"
128
- ]
129
- }
130
- }
1
+ {
2
+ "name": "@tap-payments/os-micro-frontend-shared",
3
+ "description": "Shared components and utilities for Tap Payments micro frontends",
4
+ "version": "0.0.36",
5
+ "type": "module",
6
+ "main": "build/index.js",
7
+ "module": "build/index.js",
8
+ "types": "build/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": "./build/index.js",
12
+ "require": "./build/index.js",
13
+ "types": "./build/index.d.ts"
14
+ },
15
+ "./constants": {
16
+ "import": "./build/constants/index.js",
17
+ "require": "./build/constants/index.js",
18
+ "types": "./build/constants/index.d.ts"
19
+ },
20
+ "./components": {
21
+ "import": "./build/components/index.js",
22
+ "require": "./build/components/index.js",
23
+ "types": "./build/components/index.d.ts"
24
+ },
25
+ "./components/*": {
26
+ "import": "./build/components/*/index.js",
27
+ "require": "./build/components/*/index.js",
28
+ "types": "./build/components/*/index.d.ts"
29
+ },
30
+ "./hooks": {
31
+ "import": "./build/hooks/index.js",
32
+ "require": "./build/hooks/index.js",
33
+ "types": "./build/hooks/index.d.ts"
34
+ },
35
+ "./utils": {
36
+ "import": "./build/utils/index.js",
37
+ "require": "./build/utils/index.js",
38
+ "types": "./build/utils/index.d.ts"
39
+ },
40
+ "./theme": {
41
+ "import": "./build/theme/index.js",
42
+ "require": "./build/theme/index.js",
43
+ "types": "./build/theme/index.d.ts"
44
+ },
45
+ "./types": {
46
+ "import": "./build/types/index.js",
47
+ "require": "./build/types/index.js",
48
+ "types": "./build/types/index.d.ts"
49
+ }
50
+ },
51
+ "license": "MIT",
52
+ "author": {
53
+ "name": "Ahmed Sharkawy",
54
+ "email": "a.elsharkawy@tap.company"
55
+ },
56
+ "files": [
57
+ "build",
58
+ "readme.md"
59
+ ],
60
+ "scripts": {
61
+ "ts:build": "rm -rf build && tsc -p tsconfig.npm.json && tsc-alias -p tsconfig.npm.json",
62
+ "push": "npm version patch --no-git-tag-version && npm run ts:build && npm publish --access public",
63
+ "dev": "vite",
64
+ "build": "tsc -b && vite build ",
65
+ "prettier": "prettier --list-different \"src/**/*.{md,mdx,ts,js,tsx,jsx,json}\"",
66
+ "prettier:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md,css,json}\"",
67
+ "lint": "eslint . --color",
68
+ "lint:fix": "eslint src --fix --color",
69
+ "preview": "vite preview",
70
+ "prepare": "husky"
71
+ },
72
+ "dependencies": {
73
+ "@emotion/react": "^11.11.0",
74
+ "@emotion/styled": "^11.11.0",
75
+ "@hookform/resolvers": "^3.3.1",
76
+ "@mui/material": "^5.12.3",
77
+ "@uiw/react-json-view": "^2.0.0-alpha.16",
78
+ "axios": "^1.4.0",
79
+ "dayjs": "^1.11.8",
80
+ "framer-motion": "10.11.0",
81
+ "i18next": "^22.4.15",
82
+ "memoize-one": "^6.0.0",
83
+ "re-resizable": "^6.9.9",
84
+ "react": "^18.2.0",
85
+ "react-currency-input-field": "^3.6.11",
86
+ "react-dom": "^18.2.0",
87
+ "react-draggable": "^4.4.6",
88
+ "react-dropzone": "^14.2.3",
89
+ "react-hook-form": "^7.45.4",
90
+ "react-hot-toast": "^2.4.1",
91
+ "react-i18next": "^12.2.2",
92
+ "react-multi-date-picker": "^4.1.2",
93
+ "react-router-dom": "^6.14.2",
94
+ "react-virtualized-auto-sizer": "^1.0.20",
95
+ "react-window": "^1.8.9",
96
+ "react-window-infinite-loader": "^1.0.9",
97
+ "react18-input-otp": "^1.1.4",
98
+ "recharts": "^2.15.1"
99
+ },
100
+ "devDependencies": {
101
+ "@eslint/js": "^9.17.0",
102
+ "@testing-library/jest-dom": "^5.16.5",
103
+ "@types/lodash": "^4.17.15",
104
+ "@types/react": "^18.2.6",
105
+ "@types/react-dom": "^18.3.5",
106
+ "@types/react-virtualized-auto-sizer": "^1.0.8",
107
+ "@types/react-window": "^1.8.5",
108
+ "@types/react-window-infinite-loader": "^1.0.6",
109
+ "@vitejs/plugin-react": "^4.3.4",
110
+ "eslint": "^9.17.0",
111
+ "eslint-plugin-react-hooks": "^5.0.0",
112
+ "eslint-plugin-react-refresh": "^0.4.16",
113
+ "globals": "^15.14.0",
114
+ "husky": "^8.0.3",
115
+ "lint-staged": "^13.2.2",
116
+ "prettier": "^2.8.8",
117
+ "tsc-alias": "^1.8.16",
118
+ "typescript": "5.0.2",
119
+ "typescript-eslint": "^8.18.2",
120
+ "vite": "6.0.5",
121
+ "vite-plugin-svgr": "^4.3.0",
122
+ "vite-tsconfig-paths": "^4.2.0"
123
+ },
124
+ "lint-staged": {
125
+ "src/**/*.{ts,tsx,json,js,jsx}": [
126
+ "yarn run prettier:fix",
127
+ "yarn run lint"
128
+ ]
129
+ }
130
+ }
@@ -1 +0,0 @@
1
- export declare function encryptDataWithPublicKey(publicKeyPem: string, data: string): Promise<string>;
@@ -1,44 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- function encryptWithPublicKey(publicKeyPem, text) {
11
- return __awaiter(this, void 0, void 0, function* () {
12
- function importPublicKey(pem) {
13
- return __awaiter(this, void 0, void 0, function* () {
14
- const pemHeader = '-----BEGIN PUBLIC KEY-----';
15
- const pemFooter = '-----END PUBLIC KEY-----';
16
- const pemContents = pem.replace(pemHeader, '').replace(pemFooter, '').trim();
17
- const binaryDerString = atob(pemContents);
18
- const binaryDer = Uint8Array.from(binaryDerString, (c) => c.charCodeAt(0));
19
- return yield window.crypto.subtle.importKey('spki', binaryDer.buffer, {
20
- name: 'RSA-OAEP',
21
- hash: 'SHA-1',
22
- }, true, ['encrypt']);
23
- });
24
- }
25
- const encoder = new TextEncoder();
26
- const key = yield importPublicKey(publicKeyPem);
27
- const encryptedBuffer = yield window.crypto.subtle.encrypt({
28
- name: 'RSA-OAEP',
29
- }, key, encoder.encode(text));
30
- const bytes = new Uint8Array(encryptedBuffer);
31
- let binary = '';
32
- for (let i = 0; i < bytes.byteLength; i++) {
33
- binary += String.fromCharCode(bytes[i]);
34
- }
35
- return btoa(binary);
36
- });
37
- }
38
- export function encryptDataWithPublicKey(publicKeyPem, data) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- if (typeof data !== 'string')
41
- throw new Error('data should be from type string');
42
- return yield encryptWithPublicKey(publicKeyPem, data);
43
- });
44
- }